/* ==========================================================
   CHANCHALS -- Design System v3
   Palette: near-black charcoal-teal (premium, institutional) +
   muted brass/gold (trust, heritage) + warm ivory. Terracotta
   is now a minor accent only, not a primary brand color.
   Mobile-first: base styles = phone, breakpoints scale UP.
   ========================================================== */

:root{
    --teal-900:#0B1A19;
    --teal-800:#112C2A;
    --teal-700:#173F3C;
    --teal-600:#1F504C;
    --teal-500:#2A6961;
    --terracotta:#B5583A;
    --terracotta-dark:#8F4128;
    --terracotta-light:#D98F66;
    --gold:#AD8A4E;
    --gold-light:#D9BE86;
    --ivory:#FAF7F1;
    --sand:#EFE9DC;
    --sand-dark:#E1D6C0;
    --ink:#171F1D;
    --ink-soft:#57625E;
    --white:#FFFFFF;
    --success:#2E7D4F;
    --radius-sm:8px;
    --radius-md:14px;
    --radius-lg:24px;
    --shadow-card:0 6px 24px rgba(11,26,25,0.12);
    --shadow-card-hover:0 14px 36px rgba(11,26,25,0.20);
    --shadow-pop:0 16px 48px rgba(11,26,25,0.24);
    --grad-brand:linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
    --grad-accent:linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    --font-head:'Fraunces', Georgia, serif;
    --font-body:'Manrope', -apple-system, Segoe UI, Roboto, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x:hidden;}
body{
    margin:0; font-family:var(--font-body); color:var(--ink);
    background:var(--ivory); font-size:16px; line-height:1.6;
    -webkit-font-smoothing:antialiased; overflow-x:hidden; max-width:100vw;
}
h1,h2,h3,h4{font-family:var(--font-head); color:var(--teal-900); margin:0 0 .5em; line-height:1.14;}
h1{font-size:clamp(1.9rem,5vw,3.2rem); font-weight:700; letter-spacing:-0.01em;}
h2{font-size:clamp(1.55rem,4vw,2.3rem); font-weight:600;}
h3{font-size:1.28rem; font-weight:600;}
p{margin:0 0 1em; color:var(--ink-soft);}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.container{width:100%; max-width:1240px; margin:0 auto; padding:0 16px;}

/* ---------- Icon system (inline SVG, currentColor -- encoding-proof) ---------- */
.icon{width:18px; height:18px; flex-shrink:0; vertical-align:-3px;}
.icon-sm{width:14px; height:14px; vertical-align:-2px;}
.icon-chevron{width:14px; height:14px; margin-left:3px; transition:transform .2s ease;}

/* ---------- CSS-only dot separator (no unicode bullet) ---------- */
.dot{width:4px; height:4px; border-radius:50%; background:currentColor; opacity:.55; display:inline-block; flex-shrink:0;}

/* ---------- Buttons ---------- */
.btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:13px 24px; border-radius:999px; font-weight:600; font-size:.95rem;
    border:1px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{background:var(--grad-accent); color:#fff; box-shadow:0 6px 18px rgba(192,96,58,0.35);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(192,96,58,0.42);}
.btn-outline{border-color:var(--teal-900); color:var(--teal-900); background:transparent;}
.btn-outline:hover{background:var(--teal-900); color:#fff;}
.btn-cta{background:var(--teal-900); color:var(--gold-light); border:1px solid var(--gold); font-weight:700;}
.btn-cta:hover{background:var(--teal-800); transform:translateY(-1px);}
.btn-block{width:100%;}

/* ---------- Header: minimal bar at every breakpoint ---------- */
.site-header{position:sticky; top:0; z-index:60; background:var(--white); box-shadow:0 1px 0 rgba(0,0,0,.06); overflow-x:hidden;}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:10px 16px; gap:12px; overflow-x:hidden; max-width:100vw;}
.brand img{height:44px; max-width:100%;}
.header-actions{display:flex; align-items:center; gap:10px; flex-shrink:0;}
.header-call{display:none; align-items:center; gap:7px; color:var(--teal-900); font-weight:700; font-size:.9rem;}
.header-call .icon{color:var(--gold);}

/* Menu trigger -- a labeled button, not just a bare hamburger; used at every width */
.menu-trigger{
    display:flex; align-items:center; gap:9px; background:none; border:1px solid var(--sand-dark);
    padding:9px 16px; border-radius:999px; cursor:pointer; color:var(--teal-900); font-weight:700; font-size:.88rem;
    transition:background .15s ease, border-color .15s ease;
}
.menu-trigger:hover{background:var(--sand); border-color:var(--gold);}
.menu-trigger .hamburger-icon{display:flex; flex-direction:column; gap:4px;}
.menu-trigger .hamburger-icon span{width:18px; height:2px; background:var(--teal-900); display:block; border-radius:2px; transition:transform .2s ease, opacity .2s ease;}
.menu-trigger[aria-expanded="true"] .hamburger-icon span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.menu-trigger[aria-expanded="true"] .hamburger-icon span:nth-child(2){opacity:0;}
.menu-trigger[aria-expanded="true"] .hamburger-icon span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

.trust-strip{
    background:var(--grad-brand); color:var(--sand); font-size:.76rem; padding:8px 16px;
    display:flex; align-items:center; gap:10px; overflow-x:auto; white-space:nowrap;
    scrollbar-width:none; -ms-overflow-style:none;
}
.trust-strip::-webkit-scrollbar{display:none;}
.trust-item{flex-shrink:0;}
.trust-strip .dot{color:var(--gold);}

/* ---------- Full-screen overlay menu (replaces the old horizontal nav row
   entirely -- there is no width-dependent nav layout to overflow at any
   breakpoint, which is what caused the earlier scrollbar bug). ---------- */
.nav-overlay{
    position:fixed; inset:0; background:var(--teal-900); z-index:90;
    opacity:0; visibility:hidden; transition:opacity .3s ease, visibility 0s linear .3s;
    overflow-y:auto;
}
.nav-overlay.open{opacity:1; visibility:visible; transition:opacity .3s ease;}
.nav-overlay-inner{max-width:1100px; margin:0 auto; padding:24px 24px 60px; min-height:100%; display:flex; flex-direction:column;}
.nav-overlay-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:20px;}
.nav-overlay-close{
    background:none; border:1px solid rgba(250,247,241,.3); border-radius:50%; width:44px; height:44px;
    display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ivory); flex-shrink:0;
}
.nav-overlay-close:hover{background:rgba(250,247,241,.1);}
.nav-overlay-tagline{color:var(--gold-light); font-size:.85rem; font-weight:600; letter-spacing:.02em; max-width:280px; text-align:right;}

.nav-overlay-links{display:flex; flex-direction:column; margin-top:20px;}
.nav-overlay-links a{
    color:var(--ivory); font-family:var(--font-head); font-size:clamp(1.6rem,6vw,2.6rem); font-weight:600;
    padding:14px 0; border-bottom:1px solid rgba(250,247,241,.12); display:flex; align-items:center; justify-content:space-between;
}
.nav-overlay-links a:hover{color:var(--gold-light);}
.nav-overlay-links a .icon{opacity:.5; width:22px; height:22px;}

.nav-overlay-locations{margin-top:8px; padding-bottom:8px; border-bottom:1px solid rgba(250,247,241,.12);}
.nol-toggle{
    color:var(--ivory); font-family:var(--font-head); font-size:clamp(1.6rem,6vw,2.6rem); font-weight:600;
    padding:14px 0; display:flex; align-items:center; justify-content:space-between; cursor:pointer; width:100%; background:none; border:0; text-align:left;
}
.nol-toggle .icon{transition:transform .2s ease; opacity:.6;}
.nol-toggle[aria-expanded="true"] .icon{transform:rotate(180deg);}
.nol-panel{display:none; grid-template-columns:1fr; gap:2px; padding:6px 0 16px;}
.nol-panel.open{display:grid;}
.nol-panel a{color:var(--sand); opacity:.8; font-size:1rem; padding:9px 4px; display:flex; flex-direction:column;}
.nol-panel a:hover{opacity:1; color:var(--gold-light);}
.nol-panel .ndp-city{font-size:.66rem; text-transform:uppercase; letter-spacing:.06em; color:var(--gold); font-weight:700; opacity:1;}

.nav-overlay-footer{margin-top:auto; padding-top:28px; display:flex; flex-direction:column; gap:14px;}
.nol-contact{display:flex; flex-wrap:wrap; gap:18px;}
.nol-contact a{display:flex; align-items:center; gap:8px; color:var(--ivory); font-weight:600; font-size:.92rem;}
.nol-contact a .icon{color:var(--gold);}
.nav-overlay-cta{align-self:flex-start;}

/* ---------- Hero / Banner scroller ---------- */
.hero-scroller{position:relative; overflow:hidden; border-radius:0 0 var(--radius-lg) var(--radius-lg); background:var(--teal-900);}
.hero-track{display:flex; transition:transform .55s cubic-bezier(.65,.05,.36,1);}
.hero-slide{min-width:100%; position:relative; height:80vh; max-height:640px; min-height:440px;}
.hero-slide img{width:100%; height:100%; object-fit:cover;}
.hero-slide::after{content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(15,61,62,.82) 0%, rgba(15,61,62,.18) 55%, rgba(15,61,62,.4) 100%);}
.hero-copy{position:absolute; left:0; right:0; bottom:0; padding:30px 20px 44px; color:#fff; z-index:2;}
.hero-copy h1{color:#fff; margin-bottom:.3em; text-shadow:0 2px 12px rgba(0,0,0,.25);}
.hero-copy p{color:var(--sand); font-size:1.08rem;}
.hero-dots{position:absolute; bottom:16px; left:0; right:0; display:flex; justify-content:center; gap:8px; z-index:3;}
.hero-dot{width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; border:0;}
.hero-dot.active{background:var(--gold); width:24px; border-radius:5px;}
.hero-arrow{
    position:absolute; top:50%; transform:translateY(-50%); background:rgba(251,247,240,.92); color:var(--teal-900);
    border:0; width:42px; height:42px; border-radius:50%; z-index:3; display:flex; align-items:center; justify-content:center;
    cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.2); transition:background .15s ease;
}
.hero-arrow:hover{background:var(--gold-light);}
.hero-arrow.prev{left:14px;} .hero-arrow.next{right:14px;}

/* ---------- Quick search bar (overlaps hero) ---------- */
.quick-search{
    background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-pop);
    padding:18px; margin:-48px 16px 30px; position:relative; z-index:5;
    display:grid; gap:10px; grid-template-columns:1fr; border-top:3px solid var(--gold);
}
.quick-search select, .quick-search input{
    padding:12px 14px; border:1px solid var(--sand-dark); border-radius:var(--radius-sm);
    background:var(--ivory); font-family:var(--font-body); font-size:.95rem; color:var(--ink);
}
.quick-search select:focus, .quick-search input:focus{outline:2px solid var(--teal-500); outline-offset:1px;}

/* ---------- Section spacing ---------- */
.section{padding:40px 0;}
.section-tinted{background:var(--sand); position:relative;}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:22px;}
.section-head .eyebrow{color:var(--terracotta); font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:.75rem;}

/* ---------- Location chips ---------- */
.location-scroller{display:flex; gap:12px; overflow-x:auto; padding:4px 16px 14px; scroll-snap-type:x mandatory;}
.location-chip{
    scroll-snap-align:start; min-width:158px; border-radius:var(--radius-md); overflow:hidden;
    position:relative; height:114px; box-shadow:var(--shadow-card); flex-shrink:0; transition:transform .18s ease, box-shadow .18s ease;
}
.location-chip:hover{transform:translateY(-3px); box-shadow:var(--shadow-card-hover);}
.location-chip img{width:100%; height:100%; object-fit:cover;}
.location-chip span{position:absolute; left:11px; bottom:9px; color:#fff; font-weight:700; font-size:.9rem; text-shadow:0 1px 6px rgba(0,0,0,.55); z-index:2;}
.location-chip::after{content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(15,61,62,.8), transparent 60%); z-index:1;}

/* ---------- Property cards ---------- */
.property-grid{display:grid; grid-template-columns:1fr; gap:20px; padding:0 16px;}
.property-card{background:#fff; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-card); display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease;}
.property-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-card-hover);}
.property-card .pc-media{position:relative; aspect-ratio:4/3; background:var(--sand);}
.property-card .pc-media img{width:100%; height:100%; object-fit:cover;}
.pc-badge{position:absolute; top:11px; left:11px; background:var(--grad-accent); color:#fff; font-size:.72rem; font-weight:700; padding:5px 12px; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.18);}
.pc-fav{position:absolute; top:11px; right:11px; background:rgba(255,255,255,.92); border-radius:50%; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:0; color:var(--terracotta); cursor:pointer;}
.pc-body{padding:15px 15px 17px;}
.pc-price{font-family:var(--font-head); font-weight:700; color:var(--teal-900); font-size:1.22rem;}
.pc-title{font-weight:700; margin:3px 0 5px;}
.pc-loc{color:var(--ink-soft); font-size:.85rem; display:flex; align-items:center; gap:5px; margin-bottom:9px;}
.pc-specs{display:flex; gap:14px; font-size:.82rem; color:var(--ink-soft); border-top:1px dashed var(--sand-dark); padding-top:10px; margin-top:8px;}

/* ---------- Breadcrumb ---------- */
.breadcrumb{font-size:.82rem; color:var(--ink-soft); margin-bottom:14px; display:flex; align-items:center; gap:4px; flex-wrap:wrap;}
.breadcrumb .icon{opacity:.5;}
.breadcrumb a:hover{color:var(--terracotta);}

/* ---------- Property details page ---------- */
.pd-gallery{position:relative;}
.pd-gallery-main{aspect-ratio:4/3; border-radius:var(--radius-md); overflow:hidden; background:var(--sand);}
.pd-gallery-main img{width:100%; height:100%; object-fit:cover;}
.pd-thumbs{display:flex; gap:8px; overflow-x:auto; padding:10px 0;}
.pd-thumbs img{width:76px; height:58px; object-fit:cover; border-radius:8px; opacity:.7; cursor:pointer; transition:opacity .15s ease;}
.pd-thumbs img.active, .pd-thumbs img:hover{opacity:1; outline:2px solid var(--terracotta);}
.pd-video-wrap{position:relative; border-radius:var(--radius-md); overflow:hidden; aspect-ratio:16/9; margin:18px 0; box-shadow:var(--shadow-card);}
.pd-video-wrap iframe{width:100%; height:100%; border:0;}
.pd-highlights{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0;}
.pd-highlight-card{background:#fff; border-radius:var(--radius-sm); padding:16px 12px; box-shadow:var(--shadow-card); text-align:center;}
.pd-highlight-card .val{font-family:var(--font-head); font-weight:700; color:var(--terracotta); font-size:1.2rem;}
.pd-highlight-card .lbl{font-size:.78rem; color:var(--ink-soft); margin-top:2px;}
.pd-amenities{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.pd-amenity{background:var(--sand); border-radius:8px; padding:10px 12px; font-size:.88rem; font-weight:600; color:var(--teal-900); display:flex; align-items:center; gap:6px;}
.pd-amenity .icon{color:var(--terracotta);}
.pd-sticky-enquiry{background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-pop); padding:20px; margin-top:20px; border-top:3px solid var(--gold);}

/* ---------- Contact page ---------- */
.contact-info-card{background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-card); padding:20px;}
.contact-line{display:flex; align-items:center; gap:9px; margin-bottom:12px; color:var(--ink);}
.contact-line .icon{color:var(--terracotta);}
.contact-line a:hover{color:var(--terracotta);}

/* ---------- Lead form ---------- */
.lead-form{display:grid; gap:13px;}
.lead-form label{font-size:.82rem; font-weight:700; color:var(--teal-900); margin-bottom:4px; display:block;}
.lead-form input, .lead-form select, .lead-form textarea{
    width:100%; padding:12px 14px; border:1px solid var(--sand-dark); border-radius:var(--radius-sm);
    font-family:var(--font-body); font-size:.95rem; background:var(--ivory); color:var(--ink);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus{outline:2px solid var(--teal-500); outline-offset:1px;}
.lead-form textarea{min-height:90px; resize:vertical;}
.form-success{background:#E7F5EC; border:1px solid var(--success); color:#1E5C38; padding:12px 14px; border-radius:var(--radius-sm); font-weight:600;}
.form-error{background:#FDECEA; border:1px solid #C0392B; color:#8E2A1F; padding:12px 14px; border-radius:var(--radius-sm); font-weight:600;}

/* ---------- WhatsApp chat widget ---------- */
.wa-widget{position:fixed; right:16px; bottom:80px; z-index:80;}
.wa-fab{width:58px; height:58px; border-radius:50%; background:#25D366; border:0; box-shadow:var(--shadow-pop); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .15s ease;}
.wa-fab:hover{transform:scale(1.06);}
.wa-fab img{width:30px; height:30px;}
.wa-panel{
    display:none; position:absolute; bottom:70px; right:0; width:308px; max-width:88vw;
    background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-pop); overflow:hidden;
}
.wa-panel.open{display:block;}
.wa-panel-header{background:var(--grad-brand); color:#fff; display:flex; align-items:center; gap:10px; padding:14px;}
.wa-panel-header img{width:34px; height:34px; border-radius:50%; background:#fff;}
.wa-panel-header strong{display:block; font-size:.9rem;}
.wa-panel-header span{font-size:.72rem; color:var(--sand);}
.wa-panel-header button{margin-left:auto; background:none; border:0; color:#fff; cursor:pointer; padding:4px;}
.wa-panel-body{padding:14px; background:#ECE5DD;}
.wa-panel-body p{background:#fff; padding:10px 12px; border-radius:10px; display:inline-block; font-size:.85rem; box-shadow:0 1px 3px rgba(0,0,0,.08);}
.wa-quick-replies{display:flex; flex-direction:column; gap:8px; margin-top:10px;}
.wa-qr{background:#fff; border:1px solid #d9d2c8; border-radius:10px; padding:9px 12px; text-align:left; font-size:.82rem; cursor:pointer; transition:background .15s ease;}
.wa-qr:hover{background:var(--sand);}
.wa-start-btn{display:flex; align-items:center; justify-content:center; gap:6px; background:#25D366; color:#fff; font-weight:700; padding:13px; font-size:.9rem;}

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-sticky-cta{position:fixed; left:0; right:0; bottom:0; z-index:75; display:flex; background:#fff; box-shadow:0 -4px 18px rgba(0,0,0,.14);}
.msc-btn{flex:1; display:flex; align-items:center; justify-content:center; gap:5px; text-align:center; padding:13px 4px; font-weight:700; font-size:.8rem;}
.msc-call{color:var(--teal-900);}
.msc-whatsapp{color:#1E9E56;}
.msc-enquire{background:var(--grad-accent); color:#fff;}

/* ---------- Footer ---------- */
.site-footer{background:var(--teal-900); color:var(--sand); margin-top:44px; padding:44px 0 0;}
.footer-grid{display:grid; grid-template-columns:1fr; gap:28px; padding-bottom:26px;}
.footer-col h4{color:#fff; font-size:.95rem; margin-bottom:12px; letter-spacing:.02em;}
.footer-col a{display:block; color:var(--sand); opacity:.85; padding:5px 0; font-size:.88rem; transition:opacity .15s ease;}
.footer-col a:hover{opacity:1; color:var(--gold-light);}
.footer-brand p{color:var(--sand); opacity:.75; font-size:.85rem; margin-top:12px;}
.footer-tagline{color:var(--gold-light) !important; opacity:1 !important; font-weight:600; font-size:.88rem !important; margin-top:14px !important; margin-bottom:0 !important;}
.rera-disclaimer{font-size:.75rem; opacity:.65;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.14); padding:16px; font-size:.78rem; opacity:.7;}

/* ---------- Insights / cards reused ---------- */
.insight-card{background:#fff; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-card); transition:transform .18s ease, box-shadow .18s ease;}
.insight-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-card-hover);}
.insight-card img{aspect-ratio:16/10; object-fit:cover; background:var(--sand);}
.insight-card .ic-body{padding:15px;}

/* ==========================================================
   BREAKPOINTS -- tablet & desktop enhancements
   ========================================================== */
@media (min-width:768px){
    .property-grid{grid-template-columns:repeat(2,1fr);}
    .quick-search{grid-template-columns:repeat(4,1fr) auto; align-items:end;}
    .hero-arrow{display:flex;}
    .pd-amenities{grid-template-columns:repeat(3,1fr);}
    .header-call{display:flex;}
}
/* Desktop refinements for the overlay menu -- purely cosmetic (more columns,
   bigger type); the menu is a full-screen overlay at every width, so there
   is never a horizontal row of nav items that can overflow the viewport. */
@media (min-width:900px){
    .nol-panel{grid-template-columns:repeat(3,1fr); gap:4px 24px;}
    .nav-overlay-top{align-items:flex-start;}
}
@media (min-width:1100px){
    .mobile-sticky-cta{display:none;}
}
@media (min-width:1080px){
    .property-grid{grid-template-columns:repeat(3,1fr);}
    .footer-grid{grid-template-columns:2fr 1fr 1fr 1fr;}
    .pd-highlights{grid-template-columns:repeat(4,1fr);}
}

