html, body {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
    width: 100vw; /* Explicitly set body width to viewport width */
}

body.home-page main {
    padding-top: 0; /* No padding at the top of main for home page as hero is not fixed */
}

/* Padding for main content on non-home pages */
body:not(.home-page) main {
    padding-top: 5rem; /* Adjust based on header height */
}

/* Styles for header on non-home pages */
body:not(.home-page) header {
    background-color: #E5E3DF;
    position: relative; /* Override fixed position */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Re-add shadow */
    justify-content: space-between; /* Restore default header behavior */
}

header {
    background-color: transparent;
    padding: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-shadow: none;
    transition: background-color 0.3s ease-in-out; /* Add transition for smooth background change */
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.3); /* 30% transparent black */
}

body:not(.home-page) nav a {
    color: #333333;
}

body:not(.home-page) nav a:hover {
    color: #E45C4F;
}

nav {
    display: flex;
    align-items: center;
    margin-right: auto;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav a:hover, nav a.active {
    color: #61B5D8;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    position: relative; /* For absolute positioning of child images */
    width: 150px; /* Set a fixed width for the logo container */
    height: 50px; /* Set a fixed height for the logo container */
}

.nav-logo-link:hover {
    cursor: pointer;
}

.nav-logo, .nav-logo-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure logo fits within its container */
    transition: opacity 0.3s ease-in-out;
}

.nav-logo-hover {
    opacity: 0; /* Hidden by default */
}

.nav-logo-link:hover .nav-logo-default {
    opacity: 0; /* Hide default logo on hover */
}

.nav-logo-link:hover .nav-logo-hover {
    opacity: 1; /* Show hover logo on hover */
}

body:not(.home-page) .hamburger-menu .bar {
    background-color: #333333;
}

/* Hamburger Menu styles */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 11; /* Above header and nav links */
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white; /* White bars for contrast on hero image */
    transition: all 0.3s ease-in-out;
}

/* Default nav links styling (desktop) */
nav.nav-links {
    display: flex;
    align-items: center;
    margin-right: auto;
}

nav.nav-links a {
    margin: 0 1rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav.nav-links a:hover, nav.nav-links a.active {
    color: #61B5D8;
}

body:not(.home-page) .language-selector a {
    color: #333333;
    background-color: transparent;
    border: 1px solid #333333;
}

body:not(.home-page) .language-selector a:hover {
    background-color: #E45C4F;
    color: white;
    border-color: #E45C4F;
}

.language-selector a {
    background-color: rgba(0, 123, 255, 0.7);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 0.5rem;
    text-decoration: none;
}

.language-selector a:hover {
    background-color: #3F92BC;
}

main {
    padding: 0;
}

#content h1 {
    color: #61B5D8;
}

@media (max-width: 768px) {
    /* Mobile specific styles */
    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

    nav.nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden off-screen by default */
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9); /* Dark overlay */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease-in-out;
    }

    nav.nav-links.open {
        left: 0; /* Slide in when open */
    }

    nav.nav-links a {
        margin: 1rem 0;
        color: white; /* White links for dark overlay */
        font-size: 1.5em;
    }

    .language-selector {
        position: fixed; /* Keep language selector fixed */
        top: 1rem;
        right: 50px; /* Position it next to hamburger icon */
        z-index: 11;
    }

    .language-selector a {
        background-color: rgba(0, 123, 255, 0.7);
    }
}


.hero-section {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    height: 100vh; /* Fill entire viewport height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    z-index: 1; /* Ensure it's above other body content, but header is above this */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-content {
    z-index: 1;
    padding: 1rem;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.2em;
}

.about-section, .featured-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    position: relative;
    z-index: 2; /* Ensure these sections appear above the hero section */
}

.about-section h2, .featured-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #61B5D8;
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.featured-item img.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-item h3 {
    margin: 1rem 0.5rem 0.5rem;
    color: #61B5D8;
}

.featured-item p {
    padding: 0 1rem;
    font-size: 0.9em;
    line-height: 1.5;
}

.button {
    display: inline-block;
    background-color: #61B5D8;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin: 1rem 0;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #3F92BC;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .about-section, .featured-section {
        margin: 1rem auto;
        padding: 1rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.content-image {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.page-title {
    text-align: center;
    font-size: 2.5em;
    color: #61B5D8;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.gallery-grid-section {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Large image left, small images right */
    grid-template-rows: repeat(2, 1fr); /* Two rows */
    gap: 10px;
    height: 600px; /* Set a fixed height for the gallery grid */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-item.gallery-item-large {
    grid-column: 1 / 2; /* Large image in the first column (left) */
    grid-row: 1 / 3; /* Span both rows */
}

.gallery-small-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for small images */
    grid-template-rows: repeat(2, 1fr); /* 2 rows for small images */
    gap: 10px;
    grid-column: 2 / 3; /* Small images in the second column (right) */
}

.gallery-item img.gallery-image {
    width: 100%;
    height: 100%; /* Fill parent container */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img.gallery-image {
    transform: scale(1.05); /* Hover zoom effect */
}

.details-overview-section {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.details-list {
    flex: 1; /* Takes up available space */
    min-width: 280px; /* Minimum width before wrapping */
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.detail-icon {
    font-size: 1.5em;
    margin-right: 1rem;
    color: #61B5D8;
}

.short-description {
    flex: 2; /* Takes up more space */
    min-width: 300px; /* Minimum width before wrapping */
}

.short-description h2 {
    color: #61B5D8;
    margin-top: 0;
}

@media (max-width: 768px) {
    .details-overview-section {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Stack images on mobile */
        height: auto;
    }

    .gallery-item.gallery-item-large {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-small-items {
        grid-template-columns: 1fr; /* Stack small images on mobile */
        grid-template-rows: auto;
    }
}

.key-info-band {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.key-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 2rem;
    flex: 1;
    min-width: 120px;
    border-right: 1px solid #eee;
}

.key-info-item:last-child {
    border-right: none;
}

.key-info-icon {
    font-size: 1.6em;
    margin-bottom: 0.4rem;
}

.key-info-item p {
    margin: 0;
    font-size: 0.85em;
    color: #555;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .key-info-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        width: 50%;
        flex: none;
    }

    .key-info-item:last-child {
        border-bottom: none;
    }
}

.description-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.description-section h2 {
    color: #61B5D8;
    margin-top: 0;
    margin-bottom: 1rem;
}

.description-section p {
    line-height: 1.8;
    color: #444;
}

.services-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #61B5D8;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-icon {
    font-size: 1.4em;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.service-item p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #444;
}

.amenities-section, .reviews-section, .environmental-impact-section, .faq-section, .other-accommodations-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.amenities-section h2, .reviews-section h2, .environmental-impact-section h2, .faq-section h2, .other-accommodations-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #61B5D8;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.amenity-item {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.amenity-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 0.5rem;
}

.map-placeholder {
    height: 300px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    border-radius: 8px;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .apartment-details-section {
        flex-direction: column;
    }

    .details-sidebar {
        order: -1; /* Place sidebar above main content on mobile */
    }

    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

footer {
    background-color: #9DDABD;
    text-align: center;
    padding: 2rem 1rem;
    color: white; /* Changed footer text color to white */
    margin-top: 2rem;
}

footer p {
    margin: 0.5rem 0;
    line-height: 1.5;
}