/* =========================================
   1. LUXURY RESET & VARIABLES
   ========================================= */
:root {
    --bg-color: #F9F9F7;
    --text-main: #111111;
    --text-muted: #666666;
    /* PALM GREEN ACCENT */
    --accent: #3F704D;
    --white: #ffffff;
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'Inter', sans-serif;
    --container-padding: 5vw;
    --border-radius: 24px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.5;
    margin: 0 !important;
    padding: 0 !important;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVIGATION (Fixed Layout)
   ========================================= */
.nav-luxury {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    padding: 0 var(--container-padding);
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 9999;
    transition: background 0.4s ease;
    color: #ffffff !important;
}

.brand-logo img {
    height: 85px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
    filter: none; 
}

/* Center Links */
.nav-center {
    display: flex;
    gap: 3rem;
    height: 100%;
    align-items: center;
}

.nav-center a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff !important;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-center a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Right Side Container */
.nav-right {
    display: flex;
    align-items: center;
    gap: 35px; 
}

/* Cove Link */
.btn-cove {
    font-size: 0.75rem; 
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64C5EB !important; /* Cove Blue */
    transition: all 0.3s ease;
    line-height: 1.3;
    text-align: right; 
}

.btn-cove:hover {
    color: #ffffff !important; 
    text-decoration: underline;
}

/* Reserve Button */
.btn-reserve {
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-reserve:hover {
    background: #ffffff;
    color: var(--accent) !important; 
    border-color: #ffffff;
}

/* =========================================
   3. HERO SECTION (Zoom & Bleed Fix)
   ========================================= */
.hero-luxury {
    position: relative;
    height: 100vh;
    width: 100%;
    top: 0;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-luxury::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-bg-container {
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 110%; 
    z-index: -1;
}

.hero-bg-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1.05); 
}

.hero-overlay-text {
    z-index: 2;
    text-align: center;
    color: #ffffff;
    margin-top: 50px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    font-weight: 400;
}

.hero-title .indent {
    margin-left: 1.5em;
    font-style: italic;
    display: block;
}

.hero-sub {
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    z-index: 5;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* =========================================
   4. SECTIONS LAYOUT
   ========================================= */
.statement-section, .residences-section, .details-section, .location-luxury, .booking-section {
    padding: 6rem var(--container-padding);
    background: var(--bg-color);
}

.statement-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main);
}

.statement-text .highlight {
    color: var(--accent);
    display: block;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header-lux {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.center-header {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
}

.section-header-lux h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
}

/* =========================================
   5. BENTO GRID
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 400px 400px;
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.bento-item.large { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; grid-column: 3; }
.bento-item.wide { grid-column: span 2; }

.bento-img-wrapper { height: 100%; width: 100%; }
.bento-img-wrapper img { height: 100%; width: 100%; object-fit: cover; transition: 0.5s; }
.bento-item:hover .bento-img-wrapper img { transform: scale(1.05); }

.bento-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

/* =========================================
   6. EDITORIAL BREAK
   ========================================= */
.editorial-break {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.editorial-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.editorial-img img {
    height: 100%; width: 100%; object-fit: cover;
    filter: brightness(0.7);
}

.editorial-text {
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.editorial-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-style: italic;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* =========================================
   7. AMENITIES LIST
   ========================================= */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.detail-col h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-main);
}

.luxury-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.luxury-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: padding-left 0.3s ease;
}

.luxury-list li:hover {
    padding-left: 20px;
    color: var(--accent);
}

.luxury-list li span {
    font-family: var(--font-serif);
    color: var(--accent);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: bold;
}

/* =========================================
   8. LOCATION
   ========================================= */
.location-luxury {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    height: auto;
    min-height: 600px;
}

.loc-text {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.loc-text h3 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin: 1rem 0;
}

.loc-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
}

.loc-image { height: 100%; }
.loc-image img { height: 100%; width: 100%; }

.loc-points {
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.loc-points li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.loc-points li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    display: block;
}

.loc-note {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: gap 0.3s ease, color 0.3s ease;
}

.link-arrow:hover {
    gap: 20px;
    color: var(--accent);
}

/* =========================================
   9. BOOKING SECTION
   ========================================= */
.booking-section {
    background: #ffffff;
    min-height: 100vh;
}

.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    background: #ffffff;
    height: 85vh; 
    min-height: 600px;
    overflow-y: hidden;
    overscroll-behavior: contain;
}

#cloudbeds {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer-luxury {
    background: #111;
    color: white;
    padding: 5rem var(--container-padding);
    text-align: center;
}

.footer-cta h2 { font-family: var(--font-serif); font-size: 3rem; margin-bottom: 1rem; }

.btn-large-white {
    padding: 1rem 3rem; background: white; color: black; border-radius: 50px; display: inline-block;
}

.btn-large-white:hover {
    background: var(--accent);
    color: white;
}

.direct-contact p { opacity: 0.6; margin-bottom: 0.5rem; }
.direct-contact a { border-bottom: 1px solid white; padding-bottom: 2px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   11. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    /* Hide nav center links */
    .nav-center { display: none; }
    
    /* Hide Cove link on mobile to prevent overcrowding */
    .btn-cove { display: none; }
    
    .hero-title { font-size: 14vw; }
    
    .bento-grid { display: flex; flex-direction: column; }
    .bento-item, .bento-item.large, .bento-item.tall { height: 300px; width: 100%; }
    
    .details-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .location-luxury { grid-template-columns: 1fr; }
    .loc-text { padding: 4rem 2rem; }
    .loc-image { height: 400px; }
    
    .footer-bottom { flex-direction: column; align-items: center; gap: 2rem; }
    
    .booking-container { 
        padding: 0; 
        height: 80vh; 
    }
}

/* =========================================
   12. GALLERY PAGE STYLES
   ========================================= */
.gallery-hero {
    height: 50vh;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
    top: 0;
}

.gallery-hero-content {
    z-index: 2;
}

.gallery-hero h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin-bottom: 1rem;
}

.gallery-section {
    padding: 4rem var(--container-padding);
    background: var(--bg-color);
}

.luxury-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.9;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .luxury-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    
    .gallery-item.wide, 
    .gallery-item.tall {
        grid-column: auto;
        grid-row: auto;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
}
 
/* Shared family collection: interactive island concierge */
.planner-invite {
    background: #0a292d;
    color: #fff;
    padding: clamp(5rem, 9vw, 9rem) var(--container-padding);
    position: relative;
    overflow: hidden;
}
.planner-invite::after {
    content: "";
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -12rem;
    bottom: -20rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(255,255,255,.025), 0 0 0 10rem rgba(255,255,255,.018);
}
.planner-invite__eyebrow {
    font: 500 .7rem/1 var(--font-sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #8fd4d1;
    margin-bottom: 2.5rem;
}
.planner-invite__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: end;
    position: relative;
    z-index: 1;
}
.planner-invite h2 {
    font: 400 clamp(3.6rem, 7.5vw, 8.2rem)/.88 var(--font-serif);
    letter-spacing: -.045em;
    margin: 0;
}
.planner-invite h2 em { color: #efb94f; font-weight: 400; }
.planner-invite__copy p { font: 300 1rem/1.8 var(--font-sans); color: rgba(255,255,255,.72); }
.planner-invite__copy ul { list-style: none; padding: 0; margin: 2rem 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.planner-invite__copy li { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .6rem .9rem; font: 500 .64rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.planner-launch, .booking-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #efb94f;
    color: #0a292d;
    padding: 1.15rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font: 500 .72rem/1 var(--font-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: transform .25s ease, background .25s ease;
}
.planner-launch:hover, .booking-button:hover { transform: translateY(-3px); background: #fff; }
.booking-cta { max-width: 680px; margin: 0 auto; text-align: center; }
.booking-lead { color: var(--text-muted); line-height: 1.7; margin: 0 auto 1.8rem; }
.booking-note { margin-top: 1.2rem; text-transform: uppercase; letter-spacing: .14em; font-size: .65rem; color: var(--text-muted); }
@media (max-width: 1080px) {
    .nav-center a:last-child { display: none; }
}
@media (max-width: 760px) {
    .planner-invite__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .planner-invite h2 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
    .planner-launch { width: 100%; }
}
