/* ===========================================================
   UrbanNest v2.0 — Master Stylesheet
   Dark Luxury Theme | Mobile-First | PWA-Ready
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
    --bg:          #0D0F14;
    --bg-card:     #161922;
    --bg-elevated: #1C2030;
    --gold:        #C9A84C;
    --gold-light:  #E8C97A;
    --gold-dim:    rgba(201,168,76,0.15);
    --emerald:     #10B981;
    --emerald-dim: rgba(16,185,129,0.12);
    --text:        #F0F2F7;
    --text-muted:  #8B95A6;
    --text-dim:    #4B5563;
    --border:      rgba(255,255,255,0.07);
    --border-gold: rgba(201,168,76,0.25);
    --shadow:      0 8px 32px rgba(0,0,0,0.45);
    --shadow-gold: 0 4px 24px rgba(201,168,76,0.18);
    --r-lg:        18px;
    --r-md:        12px;
    --r-sm:        8px;
    --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-tap-highlight-color:transparent}
body{font-family:'DM Sans',sans-serif;background:var(--bg);color:var(--text);line-height:1.65;overflow-x:hidden;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{cursor:pointer;border:none;outline:none;font-family:inherit;background:none}
img{max-width:100%;display:block}
input,select{font-family:inherit}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container{width:100%;padding:0 1.5rem;max-width:1240px;margin:0 auto}
.section{padding:6rem 0}
@media(max-width:768px){.section{padding:4rem 0}}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.serif{font-family:'Playfair Display',serif}
.section-label{
    display:inline-flex;align-items:center;gap:0.6rem;
    font-size:0.72rem;font-weight:600;letter-spacing:2px;text-transform:uppercase;
    color:var(--gold);margin-bottom:1rem;
}
.section-label::before{content:'';width:28px;height:1px;background:var(--gold)}
.section-title{
    font-family:'Playfair Display',serif;
    font-size:clamp(2rem,4vw,2.8rem);font-weight:600;line-height:1.25;
    color:var(--text);margin-bottom:1rem;
}
.section-sub{color:var(--text-muted);font-size:1.05rem;max-width:580px;margin-bottom:3rem}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn{
    display:inline-flex;align-items:center;gap:0.5rem;
    padding:0.75rem 1.75rem;border-radius:50px;font-weight:600;font-size:0.9rem;
    transition:var(--transition);white-space:nowrap;
}
.btn-gold{
    background:linear-gradient(135deg,var(--gold),var(--gold-light));
    color:#0D0F14;box-shadow:var(--shadow-gold);
}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 8px 32px rgba(201,168,76,0.35)}
.btn-ghost{
    background:transparent;border:1px solid var(--border-gold);color:var(--gold);
}
.btn-ghost:hover{background:var(--gold-dim);border-color:var(--gold)}
.btn-sm{padding:0.5rem 1.1rem;font-size:0.82rem}

/* ── NAV ─────────────────────────────────────────────────── */
#navbar{
    position:fixed;top:0;left:0;width:100%;z-index:900;
    padding:1rem 0;
    transition:var(--transition);
}
#navbar.scrolled{
    background:rgba(13,15,20,0.92);
    backdrop-filter:blur(18px);
    border-bottom:1px solid var(--border);
    box-shadow:0 4px 24px rgba(0,0,0,0.3);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem}
.nav-logo{
    font-family:'Playfair Display',serif;font-size:1.55rem;font-weight:700;
    letter-spacing:-0.3px;white-space:nowrap;
}
.nav-logo .accent{color:var(--gold)}
.nav-links{display:flex;align-items:center;gap:2.5rem}
.nav-links a{
    font-size:0.9rem;font-weight:500;color:var(--text-muted);
    transition:color 0.2s;position:relative;
}
.nav-links a:hover,.nav-links a.active{color:var(--text)}
.nav-links a::after{
    content:'';position:absolute;bottom:-4px;left:0;width:0;height:1px;
    background:var(--gold);transition:width 0.3s;
}
.nav-links a:hover::after{width:100%}
.nav-actions{display:flex;align-items:center;gap:1rem}
.btn-hamburger{
    display:none;width:40px;height:40px;
    align-items:center;justify-content:center;
    border-radius:var(--r-sm);border:1px solid var(--border);
    color:var(--text);font-size:1.1rem;
}
.wishlist-icon{
    position:relative;width:40px;height:40px;
    display:flex;align-items:center;justify-content:center;
    border-radius:50%;border:1px solid var(--border);
    color:var(--text-muted);font-size:1rem;transition:var(--transition);
}
.wishlist-icon:hover{border-color:var(--gold);color:var(--gold)}
.wishlist-count{
    position:absolute;top:-4px;right:-4px;
    background:var(--gold);color:#000;
    width:18px;height:18px;border-radius:50%;
    font-size:0.65rem;font-weight:700;
    display:none;align-items:center;justify-content:center;
}
.wishlist-count.show{display:flex}

/* ── MOBILE NAV DRAWER ───────────────────────────────────── */
#mobile-nav{
    position:fixed;top:0;right:-100%;width:min(320px,85vw);height:100%;
    background:var(--bg-card);border-left:1px solid var(--border);
    z-index:1000;transition:right 0.35s cubic-bezier(0.4,0,0.2,1);
    display:flex;flex-direction:column;padding:2rem;
    overflow-y:auto;
}
#mobile-nav.open{right:0}
.mobile-nav-header{
    display:flex;align-items:center;justify-content:space-between;
    margin-bottom:2.5rem;
}
.mobile-nav-links{display:flex;flex-direction:column;gap:0.25rem;flex:1}
.mobile-nav-links a{
    font-size:1.1rem;font-weight:500;color:var(--text-muted);
    padding:0.85rem 0;border-bottom:1px solid var(--border);
    transition:color 0.2s;
}
.mobile-nav-links a:hover{color:var(--gold)}
.mobile-nav-footer{margin-top:auto;padding-top:2rem}
#nav-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,0.6);
    backdrop-filter:blur(4px);z-index:999;
    opacity:0;pointer-events:none;transition:opacity 0.3s;
}
#nav-overlay.show{opacity:1;pointer-events:all}

/* ── HERO ──────────────────────────────────────────── */
.hero{
    position:relative;min-height:100svh;min-height:100vh;
    display:flex;align-items:flex-end;
    /* padding-bottom accounts for:
       - 2.5rem visual breathing room above stats bar
       - 90px for the stats bar itself (1.2rem×2 padding + text)  */
    padding:0 0 calc(2.5rem + 90px);
    /* DO NOT use overflow:hidden here — it clips the search panel.
       The .hero-slide divs are position:absolute;inset:0 so they
       never bleed outside the hero anyway. */
    overflow:visible;
    clip-path:none; /* ensure nothing clips */
}
/* Slides container — overflow:hidden here, NOT on .hero */
#hero-slides{
    position:absolute;inset:0;
    overflow:hidden;z-index:0;
}
/* Slideshow layers */
.hero-slide{
    position:absolute;inset:0;background-size:cover;background-position:center;
    opacity:0;transition:opacity 1.2s ease;
}
.hero-slide.active{opacity:1}
.hero-slide::after{
    content:'';position:absolute;inset:0;
    background:linear-gradient(
        to top,
        rgba(13,15,20,0.97) 0%,
        rgba(13,15,20,0.55) 40%,
        rgba(13,15,20,0.1) 100%
    );
}
/* Caption ticker — sits above stats bar, left-aligned */
.hero-caption{
    position:absolute;
    bottom:calc(86px + 3rem);
    left:1.5rem;
    z-index:5;
    background:rgba(13,15,20,0.7);backdrop-filter:blur(10px);
    border:1px solid var(--border);border-radius:50px;
    padding:0.35rem 0.9rem;font-size:0.75rem;font-weight:500;
    color:var(--text-muted);white-space:nowrap;
    transition:opacity 0.5s;
    pointer-events:none;
}
.hero-content{
    position:relative;z-index:2;width:100%;
}
.hero-eyebrow{
    display:inline-flex;align-items:center;gap:0.5rem;
    font-size:0.78rem;font-weight:600;letter-spacing:2px;text-transform:uppercase;
    color:var(--gold);margin-bottom:1.2rem;
}
.hero h1{
    font-family:'Playfair Display',serif;
    font-size:clamp(2.6rem,6vw,4.8rem);
    font-weight:600;line-height:1.15;margin-bottom:1.5rem;
}
.hero h1 .typed-city{
    color:var(--gold);font-style:italic;
}
.hero h1 .cursor{
    display:inline-block;width:3px;height:1em;
    background:var(--gold);vertical-align:middle;
    animation:blink 0.9s step-end infinite;margin-left:2px;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}
.hero-sub{
    font-size:1.1rem;color:var(--text-muted);max-width:540px;
    margin-bottom:2.5rem;font-weight:300;
}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:4rem}
/* Slide indicators */
.hero-dots{
    position:absolute;bottom:1.5rem;left:50%;transform:translateX(-50%);
    z-index:5;display:flex;gap:0.5rem;
}
.hero-dot{
    width:6px;height:6px;border-radius:50%;
    background:rgba(255,255,255,0.3);transition:var(--transition);
}
.hero-dot.active{width:20px;border-radius:3px;background:var(--gold)}

/* Stats row at bottom of hero */
.hero-stats-row{
    position:absolute;bottom:0;left:0;right:0;z-index:3;
    background:rgba(13,15,20,0.85);backdrop-filter:blur(20px);
    border-top:1px solid var(--border);
    display:grid;grid-template-columns:repeat(4,1fr);
}
.hero-stat-item{
    padding:1.2rem 1.5rem;text-align:center;
    border-right:1px solid var(--border);
}
.hero-stat-item:last-child{border-right:none}
.hero-stat-item strong{
    display:block;font-size:1.7rem;font-weight:700;
    color:var(--gold);font-family:'Playfair Display',serif;line-height:1;
}
.hero-stat-item span{
    font-size:0.75rem;color:var(--text-muted);margin-top:0.3rem;display:block;font-weight:500;
}

/* ── SEARCH BAR ──────────────────────────────────────────── */
.search-panel{
    background:rgba(22,25,34,0.95);backdrop-filter:blur(24px);
    border:1px solid var(--border-gold);border-radius:var(--r-lg);
    /* uniform padding so nothing clips on any side */
    padding:0.6rem 0.6rem 0.6rem 0.6rem;
    display:flex;align-items:stretch;gap:0;
    max-width:920px;width:100%;
    overflow:visible;  /* never clip dropdown options */
    box-shadow:0 16px 56px rgba(0,0,0,0.5),inset 0 1px 0 rgba(255,255,255,0.04);
}
.search-field{
    /* flex:1 + min-width:0 lets fields shrink without overflow */
    flex:1;min-width:0;
    padding:0.45rem 1rem;
    border-right:1px solid var(--border);
    display:flex;flex-direction:column;justify-content:center;gap:0.1rem;
}
.search-field:last-of-type{border-right:none}
.search-field label{
    font-size:0.64rem;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
    color:var(--gold);white-space:nowrap;
}
.search-field select,.search-field input{
    background:none;border:none;outline:none;
    color:var(--text);font-size:0.88rem;font-weight:500;
    appearance:none;cursor:pointer;width:100%;
    /* prevent text from overflowing the field */
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.search-field select option{background:var(--bg-card);color:var(--text)}
.btn-search-main{
    flex-shrink:0;margin-left:0.6rem;
    background:linear-gradient(135deg,var(--gold),var(--gold-light));
    color:#0D0F14;border-radius:var(--r-md);padding:0.85rem 1.4rem;
    font-weight:700;font-size:0.88rem;white-space:nowrap;
    display:flex;align-items:center;gap:0.5rem;
    transition:var(--transition);align-self:center;
}
.btn-search-main:hover{transform:scale(1.03);box-shadow:var(--shadow-gold)}

/* ── PROPERTIES SECTION ──────────────────────────────────── */
.props-header{
    display:flex;align-items:flex-end;justify-content:space-between;
    gap:1rem;flex-wrap:wrap;margin-bottom:2.5rem;
}
.view-toggle{display:flex;gap:0.4rem}
.view-btn{
    width:38px;height:38px;border-radius:var(--r-sm);
    border:1px solid var(--border);color:var(--text-muted);
    display:flex;align-items:center;justify-content:center;
    font-size:0.9rem;transition:var(--transition);
}
.view-btn.active,.view-btn:hover{
    border-color:var(--gold);color:var(--gold);background:var(--gold-dim);
}
.results-count{
    font-size:0.85rem;color:var(--text-muted);font-weight:500;
}
.results-count span{color:var(--gold);font-weight:700}

/* ── PROPERTY GRID ───────────────────────────────────────── */
#grid-view{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
    gap:1.75rem;
}
.property-card{
    background:var(--bg-card);border-radius:var(--r-lg);
    border:1px solid var(--border);overflow:hidden;
    transition:transform var(--transition),box-shadow var(--transition),border-color var(--transition);
    cursor:pointer;position:relative;
}
.property-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 48px rgba(0,0,0,0.5);
    border-color:var(--border-gold);
}
/* Image Slider */
.card-slider{position:relative;height:252px;overflow:hidden;background:#111}
.card-slider img{
    position:absolute;inset:0;width:100%;height:100%;
    object-fit:cover;opacity:0;transition:opacity 0.45s;
}
.card-slider img.active{opacity:1}
.slide-btns{
    position:absolute;inset:0;display:flex;
    align-items:center;justify-content:space-between;
    padding:0 0.6rem;z-index:5;opacity:0;transition:opacity 0.2s;
}
.property-card:hover .slide-btns{opacity:1}
.slide-btn{
    width:30px;height:30px;background:rgba(0,0,0,0.55);
    backdrop-filter:blur(4px);border-radius:50%;border:1px solid rgba(255,255,255,0.2);
    color:#fff;display:flex;align-items:center;justify-content:center;
    font-size:0.75rem;transition:background 0.2s;
}
.slide-btn:hover{background:rgba(0,0,0,0.8)}
.slide-dots{
    position:absolute;bottom:0.6rem;left:50%;transform:translateX(-50%);
    display:flex;gap:4px;z-index:5;
}
.slide-dot{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,0.4);transition:var(--transition)}
.slide-dot.active{background:#fff;width:14px;border-radius:3px}
/* Card Badges */
.card-badges{
    position:absolute;top:0.8rem;left:0.8rem;z-index:10;
    display:flex;gap:0.4rem;flex-wrap:wrap;
}
.badge{
    font-size:0.65rem;font-weight:700;letter-spacing:0.5px;text-transform:uppercase;
    padding:0.25rem 0.7rem;border-radius:50px;
}
.badge-gold{background:var(--gold);color:#0D0F14}
.badge-green{background:var(--emerald);color:#fff}
.badge-glow{
    background:var(--gold);color:#0D0F14;
    box-shadow:0 0 12px rgba(201,168,76,0.6);
    animation:pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge{0%,100%{box-shadow:0 0 8px rgba(201,168,76,0.4)}50%{box-shadow:0 0 18px rgba(201,168,76,0.8)}}
/* Wishlist heart */
.card-wish{
    position:absolute;top:0.8rem;right:0.8rem;z-index:10;
    width:34px;height:34px;border-radius:50%;
    background:rgba(13,15,20,0.6);backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,0.15);
    display:flex;align-items:center;justify-content:center;
    color:rgba(255,255,255,0.6);font-size:0.9rem;transition:var(--transition);
}
.card-wish:hover,.card-wish.wished{
    color:#ef4444;border-color:#ef4444;background:rgba(239,68,68,0.15);
}
/* Card Body */
.card-body{padding:1.25rem 1.25rem 0.75rem}
.card-price{
    font-size:1.5rem;font-weight:700;color:var(--gold);
    font-family:'Playfair Display',serif;line-height:1;margin-bottom:0.25rem;
}
.card-psf{
    font-size:0.75rem;color:var(--text-muted);margin-bottom:0.5rem;display:block;
}
.card-title{
    font-size:1rem;font-weight:600;color:var(--text);
    margin-bottom:0.35rem;line-height:1.3;
}
.card-loc{
    font-size:0.82rem;color:var(--text-muted);
    display:flex;align-items:center;gap:0.35rem;margin-bottom:0.9rem;
}
.card-loc i{color:var(--emerald);font-size:0.75rem}
.card-meta{
    display:flex;gap:1rem;padding-top:0.75rem;
    border-top:1px solid var(--border);
}
.card-meta-item{
    display:flex;align-items:center;gap:0.35rem;
    font-size:0.8rem;font-weight:500;color:var(--text-muted);
}
.card-meta-item i{color:var(--emerald);font-size:0.75rem}
/* Card Footer */
.card-footer{
    display:flex;align-items:center;justify-content:space-between;
    padding:0.75rem 1.25rem;
    border-top:1px solid var(--border);
    background:rgba(255,255,255,0.02);
}
.card-status{
    font-size:0.72rem;font-weight:600;padding:0.25rem 0.75rem;border-radius:50px;
}
.status-ready{background:var(--emerald-dim);color:var(--emerald)}
.status-construction{background:rgba(234,179,8,0.12);color:#EAB308}
.status-resale{background:rgba(139,95,166,0.12);color:#A855F7}
.btn-tour{
    font-size:0.8rem;font-weight:600;color:var(--gold);
    display:flex;align-items:center;gap:0.35rem;transition:color 0.2s;
}
.btn-tour:hover{color:var(--gold-light)}

/* ── MAP VIEW ────────────────────────────────────────────── */
#map-view{display:none}
#map-view.active{display:block}
.map-container{
    border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--border);
    height:550px;position:relative;
}
.map-container iframe{width:100%;height:100%;border:none;filter:grayscale(20%) invert(92%) hue-rotate(180deg)}

/* ── STATS COUNTER SECTION ───────────────────────────────── */
.stats-section{
    background:linear-gradient(135deg,var(--bg-card) 0%,var(--bg-elevated) 100%);
    border-top:1px solid var(--border);border-bottom:1px solid var(--border);
}
.stats-grid{
    display:grid;grid-template-columns:repeat(4,1fr);
    gap:0;
}
.stat-card{
    padding:3rem 2rem;text-align:center;
    border-right:1px solid var(--border);
    transition:background var(--transition);
}
.stat-card:last-child{border-right:none}
.stat-card:hover{background:rgba(201,168,76,0.04)}
.stat-icon{
    width:52px;height:52px;border-radius:14px;
    background:var(--gold-dim);border:1px solid var(--border-gold);
    display:flex;align-items:center;justify-content:center;
    color:var(--gold);font-size:1.2rem;margin:0 auto 1.2rem;
}
.stat-number{
    font-family:'Playfair Display',serif;
    font-size:2.6rem;font-weight:700;color:var(--gold);
    line-height:1;margin-bottom:0.5rem;
}
.stat-label{font-size:0.85rem;color:var(--text-muted);font-weight:500}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testi-track{
    display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;
}
.testi-card{
    background:var(--bg-card);border:1px solid var(--border);
    border-radius:var(--r-lg);padding:2rem;
    transition:var(--transition);
}
.testi-card:hover{border-color:var(--border-gold);transform:translateY(-4px)}
.testi-stars{
    display:flex;gap:2px;color:var(--gold);font-size:0.85rem;margin-bottom:1.1rem;
}
.testi-text{
    font-size:0.95rem;color:var(--text-muted);line-height:1.75;
    margin-bottom:1.5rem;font-style:italic;
}
.testi-author{display:flex;align-items:center;gap:0.85rem}
.testi-avatar{
    width:46px;height:46px;border-radius:50%;
    border:2px solid var(--border-gold);object-fit:cover;
}
.testi-name{font-weight:600;font-size:0.92rem;margin-bottom:0.15rem}
.testi-loc{font-size:0.78rem;color:var(--gold)}

/* ── DEVELOPER PARTNERS MARQUEE ──────────────────────────── */
.partners-section{
    padding:3.5rem 0;border-top:1px solid var(--border);
}
.marquee-wrap{overflow:hidden;position:relative}
.marquee-wrap::before,.marquee-wrap::after{
    content:'';position:absolute;top:0;bottom:0;width:120px;z-index:2;
}
.marquee-wrap::before{left:0;background:linear-gradient(to right,var(--bg),transparent)}
.marquee-wrap::after{right:0;background:linear-gradient(to left,var(--bg),transparent)}
.marquee-track{
    display:flex;gap:3rem;width:max-content;
    animation:marquee 28s linear infinite;
}
.marquee-track:hover{animation-play-state:paused}
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.partner-chip{
    background:var(--bg-card);border:1px solid var(--border);
    border-radius:50px;padding:0.65rem 1.5rem;
    font-size:0.88rem;font-weight:600;color:var(--text-muted);
    white-space:nowrap;transition:var(--transition);
}
.partner-chip:hover{border-color:var(--border-gold);color:var(--gold)}

/* ── PROPERTY DETAIL DRAWER ──────────────────────────────── */
#drawer-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,0.7);
    backdrop-filter:blur(6px);z-index:800;
    opacity:0;pointer-events:none;transition:opacity 0.35s;
}
#drawer-overlay.open{opacity:1;pointer-events:all}
#detail-drawer{
    position:fixed;bottom:0;left:0;right:0;z-index:801;
    background:var(--bg-card);border-radius:24px 24px 0 0;
    border-top:1px solid var(--border-gold);
    max-height:92dvh;max-height:92vh;
    overflow-y:auto;
    transform:translateY(100%);
    transition:transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
#detail-drawer.open{transform:translateY(0)}
.drawer-handle{
    width:44px;height:4px;border-radius:2px;
    background:var(--border);margin:0.85rem auto;
}
.drawer-inner{padding:0 1.5rem 2rem}
.drawer-gallery{
    display:grid;grid-template-columns:2fr 1fr;gap:0.5rem;
    margin-bottom:2rem;border-radius:var(--r-lg);overflow:hidden;
}
.drawer-main-img{grid-row:1/3;height:300px;object-fit:cover;width:100%}
.drawer-thumb{height:145px;object-fit:cover;width:100%;cursor:pointer;transition:opacity 0.2s}
.drawer-thumb:hover{opacity:0.8}
.drawer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}
.drawer-price{
    font-family:'Playfair Display',serif;
    font-size:2rem;font-weight:700;color:var(--gold);line-height:1;
}
.drawer-psf{font-size:0.82rem;color:var(--text-muted);margin-top:0.3rem}
.drawer-title{
    font-size:1.25rem;font-weight:700;margin-bottom:0.35rem;
}
.drawer-loc-line{font-size:0.9rem;color:var(--text-muted);display:flex;align-items:center;gap:0.35rem}
.drawer-meta-row{
    display:flex;gap:1.5rem;flex-wrap:wrap;margin:1.25rem 0;
    padding:1.25rem;background:var(--bg-elevated);
    border-radius:var(--r-md);border:1px solid var(--border);
}
.drawer-meta-item{display:flex;flex-direction:column;gap:0.2rem;align-items:center;text-align:center;min-width:60px}
.drawer-meta-item i{font-size:1.1rem;color:var(--gold);margin-bottom:0.2rem}
.drawer-meta-item span{font-size:0.75rem;color:var(--text-muted);font-weight:500}
.drawer-meta-item strong{font-size:0.9rem;font-weight:700}
.drawer-section-title{font-size:0.85rem;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--text-muted);margin:1.5rem 0 0.85rem}
.drawer-desc{font-size:0.95rem;color:var(--text-muted);line-height:1.8;margin-bottom:1.5rem}
.amenity-chips{display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:1.5rem}
.amenity-chip{
    display:flex;align-items:center;gap:0.4rem;
    background:var(--bg-elevated);border:1px solid var(--border);
    border-radius:50px;padding:0.4rem 0.85rem;font-size:0.78rem;font-weight:500;color:var(--text-muted);
}
.amenity-chip i{color:var(--emerald);font-size:0.75rem}
/* EMI Calculator */
.emi-calc{
    background:var(--bg-elevated);border:1px solid var(--border);
    border-radius:var(--r-md);padding:1.25rem;margin-bottom:1.5rem;
}
.emi-inputs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0.75rem;margin-bottom:1rem}
.emi-field label{font-size:0.72rem;color:var(--text-muted);font-weight:600;letter-spacing:0.5px;display:block;margin-bottom:0.3rem}
.emi-field input{
    width:100%;background:var(--bg);border:1px solid var(--border);
    border-radius:var(--r-sm);padding:0.6rem 0.75rem;color:var(--text);font-size:0.9rem;
    outline:none;transition:border-color 0.2s;
}
.emi-field input:focus{border-color:var(--border-gold)}
.emi-result{
    background:var(--gold-dim);border:1px solid var(--border-gold);
    border-radius:var(--r-sm);padding:0.75rem 1rem;text-align:center;
}
.emi-result strong{font-size:1.3rem;color:var(--gold);font-family:'Playfair Display',serif}
.emi-result small{display:block;font-size:0.75rem;color:var(--text-muted);margin-top:0.2rem}
/* Drawer CTA */
.drawer-ctas{display:flex;gap:1rem;flex-wrap:wrap}
.drawer-ctas .btn{flex:1;justify-content:center}
.drawer-rera{font-size:0.72rem;color:var(--text-dim);margin-top:1rem;text-align:center}

/* ── VIRTUAL TOUR MODAL ──────────────────────────────────── */
#tour-modal{
    position:fixed;inset:0;z-index:850;
    display:flex;align-items:center;justify-content:center;
    background:rgba(0,0,0,0.9);backdrop-filter:blur(8px);
    opacity:0;pointer-events:none;transition:opacity 0.3s;
}
#tour-modal.open{opacity:1;pointer-events:all}
.tour-content{
    width:92%;max-width:900px;aspect-ratio:16/9;
    background:#000;border-radius:var(--r-lg);
    position:relative;overflow:hidden;border:1px solid var(--border-gold);
    transform:scale(0.95);transition:transform 0.3s;
}
#tour-modal.open .tour-content{transform:scale(1)}
.tour-content img{width:100%;height:100%;object-fit:cover;opacity:0.6}
.tour-play{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
    width:72px;height:72px;border-radius:50%;
    background:rgba(255,255,255,0.95);
    display:flex;align-items:center;justify-content:center;
    color:var(--bg);font-size:1.8rem;padding-left:4px;
    box-shadow:0 0 40px rgba(0,0,0,0.4);transition:transform 0.2s;
}
.tour-play:hover{transform:translate(-50%,-50%) scale(1.08)}
.tour-close{
    position:absolute;top:1rem;right:1rem;
    width:38px;height:38px;border-radius:50%;
    background:rgba(255,255,255,0.15);color:#fff;
    display:flex;align-items:center;justify-content:center;
    font-size:1rem;transition:background 0.2s;z-index:5;
}
.tour-close:hover{background:rgba(255,255,255,0.3)}
.tour-label{
    position:absolute;bottom:1.5rem;left:50%;transform:translateX(-50%);
    font-size:0.85rem;color:rgba(255,255,255,0.7);
    background:rgba(0,0,0,0.5);backdrop-filter:blur(4px);
    padding:0.4rem 1rem;border-radius:50px;
    border:1px solid rgba(255,255,255,0.15);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer{
    background:var(--bg-card);border-top:1px solid var(--border);
    padding:5rem 0 2rem;
}
.footer-grid{
    display:grid;grid-template-columns:2.2fr 1fr 1fr 1.3fr;
    gap:3rem;margin-bottom:4rem;
}
.footer-brand .footer-logo{
    font-family:'Playfair Display',serif;font-size:1.7rem;
    font-weight:700;margin-bottom:1rem;
}
.footer-brand .footer-logo .accent{color:var(--gold)}
.footer-tagline{font-size:0.9rem;color:var(--text-muted);max-width:280px;margin-bottom:1.5rem;line-height:1.7}
.footer-social{display:flex;gap:0.7rem}
.social-btn{
    width:38px;height:38px;border-radius:var(--r-sm);
    border:1px solid var(--border);
    display:flex;align-items:center;justify-content:center;
    color:var(--text-muted);font-size:0.9rem;transition:var(--transition);
}
.social-btn:hover{border-color:var(--gold);color:var(--gold);background:var(--gold-dim)}
.footer-col h5{
    font-size:0.78rem;font-weight:700;letter-spacing:1.5px;
    text-transform:uppercase;color:var(--text-muted);margin-bottom:1.25rem;
}
.footer-col a{
    display:block;font-size:0.88rem;color:var(--text-muted);
    margin-bottom:0.65rem;transition:color 0.2s;
}
.footer-col a:hover{color:var(--gold)}
.footer-contact p{
    font-size:0.88rem;color:var(--text-muted);margin-bottom:0.6rem;
    display:flex;align-items:flex-start;gap:0.65rem;
}
.footer-contact p i{color:var(--gold);margin-top:0.15rem;flex-shrink:0}
.footer-bottom{
    display:flex;justify-content:space-between;align-items:center;
    padding-top:2rem;border-top:1px solid var(--border);
    font-size:0.82rem;color:var(--text-dim);flex-wrap:wrap;gap:0.5rem;
}
.footer-bottom a{color:var(--text-dim);transition:color 0.2s}
.footer-bottom a:hover{color:var(--gold)}

/* ── PWA INSTALL BANNER ──────────────────────────────────── */
#pwa-banner{
    position:fixed;bottom:0;left:0;right:0;z-index:700;
    background:var(--bg-elevated);border-top:1px solid var(--border-gold);
    padding:1rem 1.5rem;
    display:none;align-items:center;gap:1rem;
    box-shadow:0 -8px 32px rgba(0,0,0,0.4);
}
#pwa-banner.show{display:flex}
.pwa-icon{width:44px;height:44px;border-radius:var(--r-sm);object-fit:cover;flex-shrink:0}
.pwa-text{flex:1}
.pwa-text strong{display:block;font-size:0.92rem;font-weight:700;margin-bottom:0.15rem}
.pwa-text span{font-size:0.8rem;color:var(--text-muted)}
#pwa-dismiss{
    width:32px;height:32px;border-radius:50%;
    border:1px solid var(--border);
    display:flex;align-items:center;justify-content:center;
    color:var(--text-muted);font-size:0.85rem;flex-shrink:0;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.fade-up{
    opacity:0;transform:translateY(24px);
    transition:opacity 0.6s ease,transform 0.6s ease;
}
.fade-up.visible{opacity:1;transform:translateY(0)}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:1024px){
    .footer-grid{grid-template-columns:1fr 1fr}
    .testi-track{grid-template-columns:1fr 1fr}
    .stats-grid{grid-template-columns:repeat(2,1fr)}
    .stat-card{border-bottom:1px solid var(--border)}
    .stat-card:nth-child(2n){border-right:none}
    .stat-card:nth-child(3),.stat-card:nth-child(4){border-bottom:none}
    /* Wrap search panel into 2×2 grid on tablet */
    .search-panel{
        flex-wrap:wrap;border-radius:var(--r-md);
    }
    .search-field{
        flex:1 1 calc(50% - 1rem);min-width:140px;
    }
    /* On tablet keep 2nd field border visible but remove every other right-border */
    .search-field:nth-child(2){border-right:none}
    .search-field:nth-child(3){border-bottom:none;border-top:1px solid var(--border)}
    .search-field:nth-child(4){border-right:none;border-bottom:none;border-top:1px solid var(--border)}
    .btn-search-main{width:100%;justify-content:center;margin:0.4rem 0 0;}
}
@media(max-width:768px){
    .nav-links{display:none}
    .btn-hamburger{display:flex}
    .hero-stats-row{grid-template-columns:repeat(2,1fr)}
    .hero-stat-item:nth-child(2){border-right:none}
    .hero-stat-item:nth-child(3),.hero-stat-item:nth-child(4){border-top:1px solid var(--border)}
    /* Move caption above hero text on mobile — not floating at bottom */
    .hero-caption{
        bottom:auto;
        top:auto;
        position:relative;
        display:inline-flex;
        margin-bottom:1rem;
        left:0;
    }
    .search-panel{
        flex-direction:column;border-radius:var(--r-md);padding:1rem;flex-wrap:nowrap;
    }
    .search-field{
        flex:none;width:100%;min-width:unset;
        border-right:none;border-bottom:1px solid var(--border);
        padding:0.75rem 0;
    }
    .search-field:nth-child(2){border-right:none}
    .search-field:nth-child(3){border-top:none;border-bottom:1px solid var(--border)}
    .search-field:nth-child(4){border-top:none;border-bottom:none}
    .search-field:last-of-type{border-bottom:none}
    .btn-search-main{width:100%;justify-content:center;border-radius:var(--r-sm);margin:0}
    #grid-view{grid-template-columns:1fr}
    .drawer-gallery{grid-template-columns:1fr}
    .drawer-thumb{display:none}
    .drawer-main-img{height:220px}
    .emi-inputs{grid-template-columns:1fr}
    .testi-track{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:1fr;gap:2rem}
    .footer-bottom{flex-direction:column;text-align:center}
    .props-header{flex-direction:column;align-items:flex-start}
    .hero h1{font-size:2.4rem}
}
@media(max-width:480px){
    .hero-stats-row{grid-template-columns:1fr 1fr}
    .hero-stat-item strong{font-size:1.3rem}
    .stats-grid{grid-template-columns:1fr 1fr}
    .drawer-ctas{flex-direction:column}
    .drawer-ctas .btn{flex:unset;width:100%}
}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-gold{color:var(--gold)}
.text-muted{color:var(--text-muted)}
.d-none{display:none!important}
