/* Google Fonts are loaded asynchronously from each HTML page (see <head>). */

/* CSS Variables */
:root {
    --primary-bg: #FFFFFF;
    --accent-bg: #F5EFE4; /* Warm Sand */
    --primary-text: #1a1a1a;
    --secondary-text: #4a4a4a;
    --cta-navy: #4682B4; /* Steel blue (brand) */
    --cta-gold: #C5A059;
    --border-color: rgba(0, 0, 0, 0.1);
    --header-height: 90px;
    --hero-overlay: rgba(70, 130, 180, 0.42);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    /* Header: frosted bar when scrolled (white + blur) */
    --header-glass-bg: rgba(255, 255, 255, 0.82);
    --header-glass-border: rgba(70, 130, 180, 0.12);
    --header-glass-shadow: 0 8px 32px rgba(70, 130, 180, 0.1);
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1300px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

p {
    letter-spacing: 0.01em;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cta-gold);
    display: block;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--section-padding) 0;
}

.bg-light {
    background-color: var(--accent-bg);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
    line-height: 1.1;
}

/* Premium Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Text-heavy blocks: always visible (reveal is decorative only) */
.legal-content.reveal,
.legal-content.reveal.active {
    opacity: 1;
    transform: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--cta-navy);
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--cta-gold);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    height: 100%;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--cta-navy);
    color: var(--cta-navy);
}

.btn-outline:hover {
    color: white;
}

.btn-white-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-white-outline:hover {
    background-color: white;
    color: var(--cta-navy);
}

.btn-gold {
    background-color: var(--cta-gold);
    color: white;
}

/* Proximity Ribbon */
.proximity-ribbon {
    background: var(--cta-navy);
    color: white;
    padding: 30px 0;
    border-bottom: 4px solid var(--cta-gold);
}

.proximity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.proximity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.proximity-item i {
    font-size: 1.8rem;
    color: var(--cta-gold);
}

.proximity-item span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .proximity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Enquire Section (Unit Pages) */
.enquire-section {
    background: var(--accent-bg);
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.enquire-content {
    max-width: 700px;
    margin: 0 auto;
}

.enquire-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--cta-navy);
}

.enquire-content p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
}

/* Header & Nav */
#header-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

#header-root.scrolled {
    height: 75px;
    background: var(--header-glass-bg);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--header-glass-border);
    box-shadow: var(--header-glass-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo .logo-wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--cta-navy);
    line-height: 1.1;
}

.logo .logo-word {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo .logo-trail {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--cta-gold);
    margin-top: 6px;
}

#header-root.scrolled .logo .logo-word {
    color: var(--cta-navy);
}

.logo a {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.logo a img {
    height: 52px;
    width: auto;
    max-width: min(260px, 55vw);
    display: block;
    object-fit: contain;
}

#header-root.scrolled .logo a img {
    height: 46px;
}

.logo-wordmark--footer .logo-word {
    color: #fff;
}

.logo-wordmark--footer .logo-trail {
    color: var(--cta-gold);
}

.footer-brand .logo-wordmark {
    margin-bottom: 16px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
    line-height: 0;
    text-decoration: none;
}

.footer-logo {
    height: 56px;
    width: auto;
    max-width: min(280px, 100%);
    display: block;
    object-fit: contain;
}

#footer-root .footer-logo {
    filter: none;
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 40px;
    position: relative;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-text);
    padding: 10px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--cta-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Override .nav-links a padding (higher specificity than .btn alone) */
.nav-links a.btn {
    padding: 16px 44px;
    color: #fff;
}

.nav-links a.btn::after {
    display: none;
}

#header-root.scrolled .nav-links a.btn {
    color: white;
}


/* Hero Section */
.hero {
    height: 100vh;
    /* Fallback when no background-image is set on the section (e.g. index uses optimized WebP in HTML). */
    background-image: linear-gradient(165deg, #1a3c5a 0%, #2d5a80 42%, #3d6d94 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 25px;
    line-height: 1;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 45px;
    font-weight: 300;
    max-width: 650px;
    letter-spacing: 0.05em;
}

.hero .subtitle,
.unit-hero .subtitle {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 2px rgba(70, 130, 180, 0.55), 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Editorial Layouts - Grid */
.experience-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.experience-content h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.experience-content > h2:first-child {
    margin-top: 0;
}

.text-center > h2.section-title:first-child {
    margin-top: 0;
}

.experience-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.exp-img-large {
    grid-column: span 2;
    height: 400px;
    overflow: hidden;
}

.exp-img-small {
    height: 250px;
    overflow: hidden;
}

.exp-img-large picture,
.exp-img-small picture {
    display: block;
    width: 100%;
    height: 100%;
}

.exp-img-large img, .exp-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.exp-img-large:hover img, .exp-img-small:hover img {
    transform: scale(1.05);
}

/* Featured apartments */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.apartment-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 60px;
}

.apartment-card > picture {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.apartment-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform 1.5s ease;
}

.apartment-card:hover img {
    transform: scale(1.1);
}

.apartment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7));
    z-index: -1;
}

.apartment-info h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Luxury Amenities Grid */
.premium-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.amenity-card {
    background: white;
    padding: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--cta-gold);
}

.amenity-card i {
    font-size: 2.5rem;
    color: var(--cta-navy);
    margin-bottom: 30px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 40px;
}

.map-embed-card {
    padding: 0;
    overflow: hidden;
}

.map-embed-card iframe {
    display: block;
    width: 100%;
    height: min(480px, 55vh);
    min-height: 320px;
    border: 0;
}

.map-embed-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.25rem;
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.map-embed-footer .btn {
    text-decoration: none;
}

.hero--compact {
    height: 50vh;
    min-height: 300px;
    max-height: 420px;
}

.hero--terms {
    padding-top: 15vh;
    box-sizing: border-box;
}

.hero--terms .hero-content {
    padding-top: 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 48px;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.legal-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cta-navy);
    margin: 2.5rem 0 1rem;
}

.legal-content h3:first-of-type {
    margin-top: 1rem;
}

.legal-content strong {
    color: var(--cta-navy);
    font-weight: 600;
}

.legal-content a {
    color: var(--cta-navy);
    font-weight: 600;
}

.legal-content a:hover {
    color: var(--cta-gold);
}

.legal-content ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
    color: var(--secondary-text);
    line-height: 1.75;
    font-size: 0.95rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 28px 24px;
    }
}

/* Testimonials Editorial */
.testimonials-editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
}

.testimonial-item i {
    color: var(--cta-gold);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mega Menu logic (Basic Desktop) */
.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -50px;
    width: 250px;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mega-menu a {
    color: var(--primary-text) !important;
    display: block;
    padding: 10px 0;
    font-size: 0.7rem;
    border-bottom: 1px solid #eee;
}

.mega-menu a:last-child {
    border-bottom: none;
}

/* Unit Template Styles */
.unit-hero {
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.unit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(70, 130, 180, 0.72), transparent);
    z-index: 1;
}

.unit-hero .container {
    position: relative;
    z-index: 2;
}

.unit-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.stat-item i {
    color: var(--cta-gold);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Hidden until floor plan assets are ready — remove display:none to show */
.unit-floor-plan-section,
.section:has(.floor-plan-placeholder) {
    display: none;
}

.floor-plan-placeholder {
    width: 100%;
    height: 600px;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    margin-top: 50px;
    box-shadow: var(--glass-shadow);
    transition: all 0.5s ease;
}

.floor-plan-placeholder:hover {
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .unit-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Footer Implementation */
#footer-root {
    background-color: #ffffff;
    color: var(--primary-text);
    padding: 100px 0 40px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.3fr 0.9fr 1.2fr;
    gap: 48px;
    margin-bottom: 80px;
}

#footer-root .min-stay-footer {
    max-width: 300px;
    line-height: 1.8;
    color: var(--primary-text);
}

#footer-root .footer-contact h4,
#footer-root .footer-social h4,
#footer-root .footer-newsletter h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cta-navy);
    margin-bottom: 30px;
}

#footer-root .footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--primary-text);
}

#footer-root .footer-contact a {
    color: var(--primary-text);
    text-decoration: none;
}

#footer-root .footer-contact a:hover {
    color: var(--cta-navy);
}

#footer-root .footer-contact i {
    color: var(--cta-navy);
    margin-top: 5px;
}

#footer-root .social-icons {
    display: flex;
    gap: 20px;
}

#footer-root .social-icons a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(70, 130, 180, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--cta-navy);
    transition: all 0.4s ease;
}

#footer-root .social-icons a:hover {
    background-color: var(--cta-navy);
    border-color: var(--cta-navy);
    color: #fff;
    transform: translateY(-5px);
}

#footer-root .footer-newsletter-intro,
#footer-root .footer-newsletter-note {
    color: var(--primary-text);
    line-height: 1.65;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

#footer-root .footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#footer-root .footer-newsletter-form input[type="email"] {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-text);
    font-family: inherit;
    font-size: 0.9rem;
}

#footer-root .footer-newsletter-form input::placeholder {
    color: var(--secondary-text);
}

#footer-root .footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 28px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--primary-text);
    text-transform: uppercase;
}

#footer-root .footer-bottom-links a {
    color: var(--cta-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(70, 130, 180, 0.35);
}

#footer-root .footer-bottom-links a:hover {
    color: var(--cta-navy);
    border-bottom-color: var(--cta-navy);
    opacity: 0.85;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .min-stay-footer {
        margin: 0 auto;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Burger menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--cta-navy);
    margin: 6px;
    transition: all 0.3s ease;
}

.nav-active {
    transform: translateX(0%) !important;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.toggle .line1,
.toggle .line3 {
    background-color: var(--cta-navy);
}

/* Apartment page — photo gallery (All photos) */
.unit-gallery-section {
    margin-top: 40px;
}

.unit-gallery {
    position: relative;
}

.unit-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.unit-gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.unit-gallery-thumb:hover,
.unit-gallery-thumb:focus-visible {
    border-color: var(--cta-gold);
    transform: translateY(-2px);
    outline: none;
}

.unit-gallery-thumb picture {
    display: block;
    width: 100%;
    height: 100%;
}

.unit-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.unit-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unit-gallery-lightbox[hidden] {
    display: none !important;
}

.unit-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.92);
    cursor: pointer;
}

.unit-gallery-lightbox-inner {
    position: relative;
    z-index: 2;
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 16px 16px;
}

.unit-gallery-lightbox-img {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.unit-gallery-lightbox-close,
.unit-gallery-lightbox-prev,
.unit-gallery-lightbox-next {
    position: absolute;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.unit-gallery-lightbox-close:hover,
.unit-gallery-lightbox-prev:hover,
.unit-gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.22);
}

.unit-gallery-lightbox-close {
    top: 8px;
    right: 8px;
}

.unit-gallery-lightbox-prev {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.unit-gallery-lightbox-next {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .unit-gallery-lightbox-prev {
        left: 4px;
    }
    .unit-gallery-lightbox-next {
        right: 4px;
    }
    .unit-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Apartments page: three-column showcase + inventory */
.apartments-showcase-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.apartments-showcase-col {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 28px 24px 32px;
}

.apartments-showcase-col h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--cta-gold);
    margin-bottom: 14px;
}

.apartments-showcase-col .tier-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: var(--cta-navy);
}

.apartments-showcase-col p {
    color: var(--secondary-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.apartments-inventory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 28px;
}

.filter-pill {
    font-family: 'Montserrat', sans-serif;
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 10px 18px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 999px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
    border-color: var(--cta-gold);
    color: var(--cta-navy);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.inventory-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.inventory-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.inventory-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inventory-card-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1;
    max-width: calc(100% - 20px);
}

.inventory-card-tags span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 5px 8px;
}

.inventory-card-body {
    padding: 12px 14px 16px;
}

.inventory-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cta-navy);
}

.explore-card figure {
    margin: -40px -40px 20px;
    height: 200px;
    overflow: hidden;
}

.explore-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.facilities-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 48px;
}

.facilities-gallery figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
}

.facilities-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.faq-list details {
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-right: 4px;
}

.faq-list summary::-webkit-details-marker,
.faq-list summary::marker {
    display: none;
}

.faq-list summary::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 2px;
    border-right: 2px solid var(--cta-gold);
    border-bottom: 2px solid var(--cta-gold);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 6px;
}

.faq-list details p {
    margin-top: 12px;
    color: var(--secondary-text);
    line-height: 1.75;
    font-size: 0.95rem;
}

.home-newsletter {
    background: var(--accent-bg);
    border-top: 1px solid var(--border-color);
}

.home-newsletter-inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.home-newsletter-intro {
    color: var(--secondary-text);
    line-height: 1.75;
    margin-bottom: 0;
}

.home-newsletter .footer-newsletter-form {
    max-width: 440px;
    margin: 24px auto 0;
    width: 100%;
}

.home-newsletter .footer-newsletter-form input[type="email"] {
    width: 100%;
    padding: 18px 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 54px;
    background: #fff;
    color: var(--primary-text);
    border: 1px solid var(--border-color);
}

.home-newsletter .footer-newsletter-form input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.home-newsletter .footer-newsletter-form .btn {
    width: 100%;
    min-height: 54px;
    padding: 18px 40px;
}

@media (max-width: 992px) {
    .apartments-showcase-three {
        grid-template-columns: 1fr;
    }

    .facilities-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .experience-grid { grid-template-columns: 1fr; gap: 40px; }
    .testimonials-editorial { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 25px; }
    .hero h1 { font-size: 3rem; }
    .apartments-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.5rem; }
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--cta-navy);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
    }
    .nav-links li {
        margin: 20px 0;
    }
    .nav-links li a {
        font-size: 1.2rem;
        color: white !important;
    }
    .burger {
        display: block;
    }
}

