/* ===================================================
   MARÈVA AT THE OASIS - Gallery Stylesheet
   =================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-gold: #C4975F;
    --primary-gold-light: #D4A76A;
    --gold-dark: #A67C4E;
    --gold-gradient: linear-gradient(135deg, #D4A76A 0%, #C4975F 50%, #A67C4E 100%);
    --primary-dark: #0D0D0D;
    --secondary-dark: #1A1A1A;
    --tertiary-dark: #2A2A2A;
    --primary-white: #FFFFFF;
    --off-white: #FEFDFB;
    --bg-light: #F8F7F5;
    --border-light: #E5E5E5;
    --border-gold: rgba(196, 151, 95, 0.3);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.12);
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-elegant: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--primary-white);
    overflow-x: hidden;
}

/* ===== CUSTOM CURSOR (FIXED) ===== */
.cursor-outer {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(196, 151, 95, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* KEY FIX */
    z-index: 100000;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cursor-inner {
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* KEY FIX */
    z-index: 100000;
    transition: transform 0.08s ease-out, width 0.2s, height 0.2s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cursor-outer.hover {
    width: 60px;
    height: 60px;
    border-color: var(--primary-gold);
    background: rgba(196, 151, 95, 0.1);
}

.cursor-inner.hover {
    width: 4px;
    height: 4px;
}

@media screen and (max-width: 992px) {
    .cursor-outer, .cursor-inner { display: none !important; }
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-smooth);
}
.nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 1;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}
.nav.scrolled {
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}
.nav.scrolled::before { opacity: 0; }
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-white);
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: color var(--transition-fast);
}
.nav.scrolled .nav-logo { color: var(--primary-dark); }
.nav-logo span { color: var(--primary-gold); }
.nav-menu { display: flex; list-style: none; gap: 40px; }
.nav-menu a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-white);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast);
}
.nav.scrolled .nav-menu a { color: var(--text-dark); }
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: width var(--transition-smooth);
}
.nav-menu a:hover::before, .nav-menu a.active::before { width: 100%; }
.nav-menu a:hover { color: var(--primary-gold); }
.nav-cta {
    padding: 14px 35px;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
}
.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gold);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.nav-cta:hover::before { left: 0; }
.nav-cta:hover { color: var(--primary-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.nav-toggle span { width: 28px; height: 2px; background: var(--primary-white); transition: all var(--transition-fast); }
.nav.scrolled .nav-toggle span { background: var(--primary-dark); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right var(--transition-elegant);
}
.mobile-menu.active { right: 0; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--primary-white);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.mobile-menu.active a { opacity: 1; transform: translateY(0); }

/* ===== HERO SECTION ===== */
.gallery-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.gallery-hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 20s ease infinite alternate; }
@keyframes slowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 0.5) 50%, rgba(13, 13, 13, 0.8) 100%);
    z-index: 2;
}
.gallery-hero-content { position: relative; z-index: 3; text-align: center; padding: 0 20px; max-width: 900px; margin-top: 60px; }
.gallery-hero-tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary-gold);
    margin-bottom: 25px;
    padding: 12px 28px;
    border: 1px solid rgba(196, 151, 95, 0.5);
}
.gallery-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--primary-white);
    margin-bottom: 25px;
    line-height: 1.1;
}
.gallery-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.9;
}
.gallery-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--primary-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.gallery-hero-scroll:hover { opacity: 1; color: var(--primary-gold); }
.gallery-hero-scroll i { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } }

/* ===== SECTION STYLES ===== */
.gallery-section { padding: 100px 5%; max-width: 1600px; margin: 0 auto; }
.gallery-section-alt { background: var(--bg-light); max-width: 100%; padding: 100px 5%; }
.gallery-section-alt > * { max-width: 1600px; margin-left: auto; margin-right: auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 20px;
}
.section-label::before, .section-label::after { content: ''; width: 50px; height: 1px; background: var(--primary-gold); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}
.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ===== FEATURED GRID ===== */
.featured-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 350px 350px;
    gap: 20px;
    margin-bottom: 25px;
}
.featured-hero-grid .gallery-card:first-child { grid-row: span 2; }

/* ===== UNIFORM GRID ===== */
.gallery-uniform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.gallery-uniform-grid .gallery-card { aspect-ratio: 4 / 3; }

/* ===== GALLERY CARD ===== */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: var(--bg-light);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(13, 13, 13, 0.9) 100%);
    opacity: 0; transition: opacity var(--transition-fast);
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 30px;
    transform: translateY(20px); opacity: 0; transition: all var(--transition-fast);
}
.gallery-card:hover .gallery-card-content { transform: translateY(0); opacity: 1; }
.gallery-card-category {
    font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--primary-gold); margin-bottom: 8px; display: block;
}
.gallery-card-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--primary-white); line-height: 1.3; }
.gallery-card-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
    width: 65px; height: 65px; background: rgba(255, 255, 255, 0.95); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.gallery-card:hover .gallery-card-icon { transform: translate(-50%, -50%) scale(1); }
.gallery-card-icon i { color: var(--primary-gold); font-size: 1.2rem; }

/* ===== LOCATION MAP ===== */
.location-wrapper {
    background: var(--primary-white); padding: 15px; border-radius: 12px;
    box-shadow: var(--shadow-medium); border: 1px solid var(--border-light); overflow: hidden;
}
.map-frame-wrapper {
    position: relative; overflow: hidden; border-radius: 8px;
    border: 1px solid rgba(196, 151, 95, 0.2); height: 500px;
}
.map-frame-wrapper iframe {
    width: 100%; height: 100%; border: 0; display: block;
    filter: grayscale(10%) contrast(1.05); transition: filter var(--transition-smooth);
}
.map-frame-wrapper:hover iframe { filter: none; }
.location-highlights {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 0; background: var(--primary-white);
}
.highlight-item {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    padding: 35px 20px; border-right: 1px solid var(--border-light); transition: background var(--transition-fast);
}
.highlight-item:last-child { border-right: none; }
.highlight-item:hover { background: var(--bg-lighter); }
.highlight-icon {
    width: 50px; height: 50px; border-radius: 50%; background: rgba(196, 151, 95, 0.1);
    display: flex; align-items: center; justify-content: center; color: var(--primary-gold); font-size: 1.2rem; flex-shrink: 0;
}
.highlight-item:hover .highlight-icon { background: var(--primary-gold); color: var(--primary-white); transform: scale(1.1); }
.highlight-text h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--primary-dark); margin-bottom: 2px; line-height: 1; }
.highlight-text p { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }

/* ===== VIDEO SECTION ===== */
.video-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.video-featured { grid-column: span 2; }
.video-card {
    position: relative; overflow: hidden; border-radius: 8px;
    background: #000; box-shadow: var(--shadow-medium);
}
.video-card-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; cursor: pointer;
}
.video-thumbnail {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; transition: opacity var(--transition-fast);
}
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.video-card:hover .video-thumbnail img { transform: scale(1.05); }
.video-thumbnail-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}
.video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; background: var(--primary-white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}
.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.1);
}
.video-play-btn i { color: var(--primary-gold); font-size: 1.8rem; margin-left: 5px; }
.iframe-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.iframe-container iframe { width: 100%; height: 100%; border: none; }
.video-card-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); pointer-events: none; z-index: 4;
}
.video-card-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--primary-white); margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.video-card-duration { font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; color: rgba(255, 255, 255, 0.8); display: flex; align-items: center; gap: 6px; }
.video-card-duration i { color: var(--primary-gold); }

/* ===== FLOOR PLAN ===== */
.floorplan-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.floorplan-card {
    background: var(--primary-white); border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-soft); transition: all var(--transition-smooth);
    border: 1px solid var(--border-light); cursor: pointer;
}
.floorplan-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-strong); }
.floorplan-image {
    position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.floorplan-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-smooth); }
.floorplan-card:hover .floorplan-image img { transform: scale(1.05); }
.floorplan-badge {
    position: absolute; top: 15px; left: 15px; background: var(--primary-gold);
    color: var(--primary-white); padding: 8px 18px; border-radius: 25px;
    font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.floorplan-zoom {
    position: absolute; top: 15px; right: 15px; width: 45px; height: 45px;
    background: var(--primary-white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(-10px); transition: all var(--transition-fast);
    cursor: pointer; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}
.floorplan-card:hover .floorplan-zoom { opacity: 1; transform: translateY(0); }
.floorplan-zoom i { color: var(--primary-gold); font-size: 0.9rem; }
.floorplan-info { padding: 25px; }
.floorplan-type { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--primary-dark); margin-bottom: 20px; text-align: center; }
.floorplan-specs {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 20px;
    background: var(--bg-light); border-radius: 10px; margin-bottom: 15px;
}
.floorplan-spec { text-align: center; }
.floorplan-spec-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--primary-dark); margin-bottom: 3px; display: block; }
.floorplan-spec-label { font-family: var(--font-body); font-size: 0.65rem; font-weight: 500; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.05em; }
.floorplan-price { text-align: center; padding: 15px; background: var(--primary-dark); border-radius: 10px; margin-bottom: 15px; }
.floorplan-price-label { font-family: var(--font-body); font-size: 0.65rem; font-weight: 500; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; display: block; }
.floorplan-price-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--primary-gold); }
.floorplan-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 25px; border-radius: 8px; font-family: var(--font-body); font-size: 0.8rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
    transition: all var(--transition-fast); cursor: pointer; border: none; background: var(--primary-gold); color: var(--primary-white);
}
.floorplan-btn:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ===== LOAD MORE ===== */
.load-more-wrapper { text-align: center; margin-top: 60px; }
.load-more-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 18px 50px;
    background: transparent; border: 2px solid var(--primary-gold); color: var(--primary-gold);
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; cursor: pointer; border-radius: 50px; transition: all var(--transition-fast);
}
.load-more-btn:hover { background: var(--primary-gold); color: var(--primary-white); }

/* ===== VIRTUAL TOUR ===== */
.virtual-tour-section { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.virtual-tour-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.virtual-tour-bg img { width: 100%; height: 100%; object-fit: cover; }
.virtual-tour-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.virtual-tour-content { position: relative; z-index: 2; text-align: center; max-width: 600px; padding: 0 20px; }
.virtual-tour-title { font-family: var(--font-display); font-size: 3rem; color: #fff; margin-bottom: 20px; }
.virtual-tour-text { font-family: var(--font-body); color: rgba(255,255,255,0.9); line-height: 1.8; margin-bottom: 30px; }

/* ===== SPLIT CTA ===== */
.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.split-image { position: relative; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.split-section:hover .split-image img { transform: scale(1.05); }
.split-content {
    display: flex; flex-direction: column; justify-content: center; padding: 80px; background: var(--primary-dark);
}
.split-content .section-title { text-align: left; color: var(--primary-white); }
.split-content .section-subtitle { text-align: left; color: rgba(255, 255, 255, 0.7); max-width: 100%; }
.split-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 18px 40px;
    background: var(--primary-gold); color: var(--primary-white); text-decoration: none; border-radius: 4px;
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    transition: all var(--transition-fast); width: fit-content;
}
.split-btn:hover { background: var(--gold-dark); transform: translateX(5px); }

/* ===== LIGHTBOX Z-INDEX FIX ===== */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.97); 
    z-index: 999999; /* Higher than cursor */
    display: none;
    align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-fast);
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-close {
    position: fixed; top: 25px; right: 25px; width: 55px; height: 55px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all var(--transition-fast); 
    z-index: 1000001; /* Highest */
    color: var(--primary-white); font-size: 1.2rem;
}
.lightbox-close:hover { background: var(--primary-gold); border-color: var(--primary-gold); transform: rotate(90deg); }
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%); width: 55px; height: 55px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all var(--transition-fast); 
    z-index: 1000001; /* Highest */
    color: var(--primary-white); font-size: 1rem;
}
.lightbox-nav:hover { background: var(--primary-gold); border-color: var(--primary-gold); }
.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }
.lightbox-counter {
    position: fixed; top: 35px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.15em; 
    z-index: 1000001;
}
.lightbox-content { position: relative; max-width: 85%; max-height: 80%; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox-caption { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 1000001; }
.lightbox-caption p { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--primary-gold); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px; }
.lightbox-caption h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--primary-white); }

/* ===== FOOTER ===== */
.footer { background: #050505; padding: 100px 5% 50px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 80px; max-width: 1400px; margin: 0 auto; padding-bottom: 80px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand .footer-logo { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--primary-white); text-decoration: none; display: inline-block; margin-bottom: 25px; }
.footer-brand .footer-logo span { color: var(--primary-gold); }
.footer-brand p { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; color: rgba(255, 255, 255, 0.45); line-height: 1.9; margin-bottom: 35px; }
.footer-social { display: flex; gap: 15px; }
.footer-social a { width: 45px; height: 45px; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: var(--primary-white); transition: all var(--transition-fast); font-size: 1rem; }
.footer-social a:hover { background: var(--primary-gold); border-color: var(--primary-gold); color: var(--primary-dark); }
.footer-column h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--primary-white); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 30px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 18px; }
.footer-links a { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: all var(--transition-fast); position: relative; display: inline-block; }
.footer-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--primary-gold); transition: width var(--transition-fast); }
.footer-links a:hover { color: var(--primary-gold); }
.footer-links a:hover::after { width: 100%; }
.footer-newsletter p { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: rgba(255, 255, 255, 0.45); line-height: 1.8; margin-bottom: 25px; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 15px; }
.footer-newsletter-form input { padding: 16px 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--primary-white); font-family: var(--font-body); font-size: 0.9rem; transition: all var(--transition-fast); }
.footer-newsletter-form input:focus { outline: none; border-color: var(--primary-gold); }
.footer-newsletter-form button { padding: 16px 25px; background: var(--primary-gold); border: none; color: var(--primary-dark); font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all var(--transition-fast); }
.footer-newsletter-form button:hover { background: var(--gold-dark); color: var(--primary-white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 50px auto 0; }
.footer-bottom p { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: rgba(255, 255, 255, 0.35); }
.footer-legal { display: flex; gap: 40px; }
.footer-legal a { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: rgba(255, 255, 255, 0.35); text-decoration: none; transition: color var(--transition-fast); }
.footer-legal a:hover { color: var(--primary-gold); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 40px; right: 40px; width: 55px; height: 55px;
    background: var(--primary-gold); color: var(--primary-dark); border: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--transition-fast); z-index: 998; font-size: 1.1rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dark); color: var(--primary-white); transform: translateY(-8px); box-shadow: var(--shadow-gold); }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1200px) {
    .featured-hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 280px; }
    .featured-hero-grid .gallery-card:first-child { grid-row: span 1; }
    .gallery-masonry-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
    .floorplan-showcase { grid-template-columns: repeat(2, 1fr); }
    .video-featured { grid-column: span 1; }
    .video-showcase { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 50px; }
    .location-highlights { grid-template-columns: repeat(2, 1fr); }
    .highlight-item { border-right: none; border-bottom: 1px solid var(--border-light); }
    .highlight-item:nth-child(2n) { border-left: 1px solid var(--border-light); }
    .highlight-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media screen and (max-width: 992px) {
    .nav-menu, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .gallery-hero { height: 65vh; min-height: 480px; }
    .gallery-hero-title { font-size: 3rem; }
    .gallery-section { padding: 80px 5%; }
    .section-title { font-size: 2.2rem; }
    .gallery-uniform-grid { grid-template-columns: repeat(2, 1fr); }
    .video-showcase { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .split-image { min-height: 400px; }
    .split-content { padding: 60px 40px; }
    .cursor-outer, .cursor-inner { display: none !important; }
}

@media screen and (max-width: 768px) {
    .gallery-hero { height: 60vh; min-height: 450px; }
    .gallery-hero-title { font-size: 2.5rem; }
    .gallery-hero-scroll { display: none; }
    .gallery-section { padding: 60px 5%; }
    .featured-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 15px; }
    .featured-hero-grid .gallery-card { aspect-ratio: 4/3; }
    .gallery-uniform-grid { grid-template-columns: 1fr; gap: 15px; }
    .floorplan-showcase { grid-template-columns: 1fr; gap: 25px; }
    .map-frame-wrapper { height: 350px; }
    .location-highlights { grid-template-columns: 1fr; }
    .highlight-item { border-left: none !important; border-bottom: 1px solid var(--border-light); }
    .highlight-item:last-child { border-bottom: none; }
    .split-image { min-height: 300px; }
    .split-content { padding: 50px 25px; }
    .split-content .section-title { font-size: 1.8rem; }
    .footer-content { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 25px; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .back-to-top { bottom: 25px; right: 25px; width: 50px; height: 50px; }
}
/* ===== Phase 2 SEO: Gallery Context Links + Language Switch ===== */
.language-switch {
    display: inline-flex;
}

.language-switch a, a.language-switch {
    border: 1px solid rgba(196, 151, 95, 0.45);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-context-links {
    padding-top: 20px;
}

.gallery-context-card {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-gold);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.gallery-context-links-list {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.gallery-context-links-list a {
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 12px 14px;
    transition: var(--transition-fast);
}

.gallery-context-links-list a:hover {
    color: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}