:root {
    /* Color Palette */
    --primary-green: #0A2F23;
    /* Deep Emerald */
    --primary-blue: #152C40;
    /* Deep Navy */
    --gold: #C5A059;
    /* Muted Gold */
    --gold-light: #E5CD98;
    --cream: #F5F5F0;
    /* Off-white */
    --white: #FFFFFF;
    --dark: #121212;
    --grey-light: #E0E0E0;
    --grey-text: #666666;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1300px;
    --section-padding: 120px 40px;
    --section-padding-mobile: 80px 20px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

p {
    font-size: 1.1rem;
    color: var(--grey-text);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.no-padding-x {
    padding-left: 0;
    padding-right: 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-white {
    color: var(--white);
}

.text-light-grey {
    color: #aaa;
}

.bg-dark {
    background-color: var(--primary-green);
    color: var(--white);
}

.bg-cream {
    background-color: var(--cream);
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 500;
}

.divider-gold {
    width: 60px;
    height: 2px;
    background-color: var(--gold);
    margin: 30px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    color: var(--primary-green);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.link-gold {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-green);
    letter-spacing: -1px;
}

.sub-logo {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-left: 5px;
    text-transform: uppercase;
}

.nav-btn {
    font-size: 0.85rem;
    padding: 10px 25px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    /* Extra height for parallax */
    background: url('../../image/hero_banner.jpg') no-repeat center center/cover;
    z-index: 1;
    transform: translateZ(0);
    /* Optimize */
}

/* Hero Overlay & Mobile Position */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    /* Darker Grey/Black */
}

@media (max-width: 768px) {
    .hero-bg-parallax {
        background-position: 32% center !important;
        /* Focus left 40% */
    }
}

/* Features - Sky Semi D Highlight */
.icon-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.feature-highlight {
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Layouts - Fixed Height container to prevent jumping */
.layout-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    height: 600px;
    /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-card img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    transition: transform 0.6s ease;
    cursor: zoom-in;
}

.layout-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Location - Modern List Expanded */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 50px;
    margin-top: 40px;
}

.amenity-category h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 5px;
}

.amenity-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--primary-green);
}

.amenity-item span.dist {
    color: var(--grey-text);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .location-wrapper {
        display: flex;
        flex-direction: column-reverse;
        /* Image First */
        gap: 40px;
    }

    .location-image {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .location-image img {
        border-radius: 0;
        width: 100%;
    }

    .image-frame::after {
        display: none;
    }
}

/* Gallery - Landscape & Dots */
.swiper-slide {
    width: 600px;
    /* Landscape width */
    height: 400px;
    /* Landscape height */
    filter: brightness(0.9);
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 100%;
        /* Show full image */
        height: 280px;
    }
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--grey-light);
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Contact Form - Wider */
.glass-panel {
    max-width: 900px;
    /* Increased from 650px */
    padding: 80px;
}

.modern-form select {
    appearance: none;
    /* Fix browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* Keep select labels pinned to avoid bounce */
.modern-form select + label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--gold);
}

@media (max-width: 768px) {
    .glass-panel {
        width: 100%;
        padding: 30px 15px;
        /* Less padding to fit more content */
        margin: 0;
        border-radius: 10px;
    }

    .contact-container {
        padding: 0 10px;
    }
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    z-index: 2002;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: background 0.3s;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 2rem;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: left;
    padding-top: 60px;
}

.hero .overline {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-title em {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 600px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-down .line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Features Editorial */
.features-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 80px;
}

.feature-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.feature-divider {
    width: 1px;
    height: 150px;
    background-color: var(--grey-light);
    margin-top: 20px;
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(10, 47, 35, 0.1);
    margin-bottom: -20px;
    position: relative;
    z-index: -1;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

/* Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: center;
}

.layout-info p {
    margin-bottom: 40px;
    max-width: 400px;
}

.layout-specs {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    color: #e6e6e6;
    font-size: 0.95rem;
    display: grid;
    gap: 10px;
}

.layout-specs-title {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.layout-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.layout-specs li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.layout-note {
    margin: -10px 0 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.layout-switcher {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.layout-cta {
    margin-top: 15px;
    text-align: left;
}

.layout-whatsapp {
    color: var(--gold);
    border-color: var(--gold);
    padding: 8px 20px;
    font-size: 1.2rem;
    display: inline-block;
}

.btn-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px 0;
    position: relative;
}

.btn-tab.active {
    color: var(--gold);
}

.btn-tab.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.layout-display-wrapper {
    position: relative;
}

.layout-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.layout-content.active {
    display: block;
    opacity: 1;
}

.layout-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.layout-card img {
    transition: transform 0.6s ease;
    cursor: zoom-in;
}

.layout-card:hover img {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.layout-card:hover .zoom-hint {
    opacity: 1;
}

/* Location */
.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.amenities-list-modern {
    margin-top: 40px;
}

.amenities-list-modern li {
    display: flex;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--grey-light);
    font-size: 1.2rem;
    color: var(--primary-green);
}

.amenities-list-modern .num {
    color: var(--gold);
    font-family: var(--font-heading);
    margin-right: 20px;
    font-size: 1rem;
}

.image-frame {
    position: relative;
}

.image-frame::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    z-index: -1;
}

.location-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

/* Gallery */
.gallery-swiper {
    padding-bottom: 60px;
    overflow: hidden;
}

.swiper-slide {
    width: 400px;
    height: 500px;
    /* Portrait aspect ratio looks more editorial */
    filter: brightness(0.9);
    transition: all 0.4s ease;
}

.swiper-slide-active {
    filter: brightness(1);
    transform: scale(1.02);
}

.swiper-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.swiper-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    width: 50px;
    height: 50px;
    border: 1px solid var(--primary-green);
    border-radius: 50%;
    color: var(--primary-green);
    transition: all 0.3s;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.2rem;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Contact */
.contact {
    position: relative;
    background-color: var(--dark);
}

.contact-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../image/gallery/g5_swimmingpool.jpg') no-repeat center center/cover;
    opacity: 0.4;
    filter: grayscale(40%);
}

.contact-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 60px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--gold);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.modern-form .form-floating {
    position: relative;
    margin-bottom: 25px;
}

.modern-form input,
.modern-form select {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--dark);
    border-radius: 0;
}

.modern-form select {
    padding-top: 22px;
    padding-bottom: 8px;
}

.modern-form input:focus,
.modern-form select:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.modern-form label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: #999;
    transition: 0.3s ease all;
    pointer-events: none;
}

.modern-form input:focus~label,
.modern-form input:not(:placeholder-shown)~label,
.modern-form select:focus~label,
.modern-form select:valid~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--gold);
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-row .form-floating {
    flex: 1;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--grey-text);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--grey-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-right a {
    color: var(--primary-green);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

/* Form Success Popup */
.form-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}

.form-popup.is-visible {
    display: flex;
}

.form-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.form-popup-card {
    position: relative;
    z-index: 1;
    width: min(520px, 90vw);
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: popupIn 0.25s ease;
}

.form-popup-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.form-popup-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.form-popup-content p {
    color: var(--grey-text);
}

.form-popup-btn {
    margin-top: 20px;
    padding: 12px 30px;
}

.form-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h2 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        padding-top: 0;
        text-align: center;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .features-grid {
        flex-direction: column;
        gap: 40px;
    }

    .feature-divider {
        display: none;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .layout-switcher {
        justify-content: center;
    }

    .layout-info {
        text-align: center;
    }

    .layout-info p {
        margin: 0 auto 30px;
    }

    .layout-cta {
        text-align: center;
    }

    .layout-card {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        height: auto;
        aspect-ratio: 4 / 3;
        padding: 12px;
    }

    .layout-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .layout-note-break {
        display: block;
    }

    .location-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .image-frame::after {
        display: none;
    }

    .gallery-swiper .swiper-slide {
        width: 100%;
        height: clamp(220px, 65vw, 320px);
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-radius: var(--radius-sm);
        overflow: hidden;
    }

    .gallery-swiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .gallery-swiper .swiper-pagination {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .glass-panel {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 15px;
    }
}
