/* Color Palette and Basic Setup */
:root {
    --dark-blue: #1c2833;
    --aero-blue: #2980b9;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-blue);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Typography */
h1 { font-size: 3.5rem; margin-bottom: 10px; }
h2 { font-size: 2.5rem; margin-bottom: 30px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--aero-blue); }
p { margin-bottom: 20px; font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--aero-blue);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: var(--dark-blue);
}

/* Sections */
.section {
    padding: 80px 0;
}
.bg-light-gray { background-color: var(--light-gray); }
.bg-blue { background-color: var(--dark-blue); }
.text-white h2, .text-white h3, .text-white p { color: var(--white); }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(28, 40, 51, 0.7), rgba(28, 40, 51, 0.7)), url('hero-image.jpg') center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}
.card, .amenity-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.bg-blue .amenity-item {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
}

/* Gallery with Overlays */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative; /* This is crucial for positioning the caption */
    height: 300px;
    border-radius: 8px;
    overflow: hidden; /* Keeps everything inside the rounded corners */
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents the image from stretching */
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* This makes a slightly transparent dark blue/gray bar */
    background-color: rgba(28, 40, 51, 0.85); 
    color: var(--white);
    padding: 15px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--light-gray);
    padding: 60px 0 30px;
}
.copyright {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Link styling for the dark blue background */
.bg-blue a, 
.bg-blue a:visited {
    color: var(--white); /* Keeps the link white before and after clicking */
    text-decoration: underline; 
    text-underline-offset: 4px; /* Drops the underline down a bit so it looks cleaner */
    transition: color 0.3s ease;
}

.bg-blue a:hover {
    color: var(--aero-blue); /* Turns to your aviation blue when they hover over it */
    text-decoration: none; /* Removes the underline on hover for a slick effect */
}

/* Link styling for the white cards in the light gray section */
.card a, 
.card a:visited {
    color: var(--aero-blue); /* Uses your aviation blue to match the card icons/headers */
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.card a:hover {
    color: var(--dark-blue); /* Turns dark blue on hover */
    text-decoration: none; /* Removes the underline on hover */
}

/* Lightbox Overlay */
.gallery-item img {
    cursor: pointer; /* Changes the mouse to a pointing hand so people know they can click */
}

.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Puts it on top of everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark semi-transparent background */
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh; /* Keeps the image from getting taller than the screen */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

/* Lightbox Navigation Arrows */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-size: 2.5rem;
    background: transparent;
    border: none;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--aero-blue);
}

/* Position the arrows outside the image on large screens */
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* Move arrows inside the image on smaller screens (like phones) */
@media (max-width: 768px) {
    .lightbox-prev { left: 10px; background: rgba(0,0,0,0.3); border-radius: 4px; }
    .lightbox-next { right: 10px; background: rgba(0,0,0,0.3); border-radius: 4px;}
}