/* ===== Cityscope Vadodara — main stylesheet ===== */
/* Theme: refined luxury real-estate look, inspired by full-bleed hero
   photography and serif/sans pairing used by high-end residence sites. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Montserrat:wght@200;300;400;500;600&display=swap');

:root{
  /* Alina-inspired minimal luxury palette */
  --red-900:#000000;
  --red-700:#1a1a1a;
  /* Premium bronze/gold accent */
  --red:#b89947;
  --red-600:#9a7b32;
  --red-100:#f8f5ee;
  --red-50:#fcfbfa;
  --gold:#b89947;
  --ink:#000000;
  --ink-700:#333333;
  --gray-600:#888888;
  --gray-400:#bbbbbb;
  --gray-200:#e5e5e5;
  --gray-100:#f4f4f4;
  --white:#ffffff;
  --green:#4a6b57;
  --radius-sm:0px; /* Sharper edges for luxury feel */
  --radius-md:2px;
  --radius-lg:4px;
  --shadow-sm:0 4px 12px rgba(0,0,0,.04);
  --shadow-md:0 8px 24px rgba(0,0,0,.08);
  --shadow-lg:0 20px 40px rgba(0,0,0,.12);
  --maxw:480px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:'Montserrat',sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  letter-spacing:0.5px;
}
h1,h2,h3,h4{
  font-family:'Cormorant Garamond',serif;
  margin:0;
  font-weight:400;
  letter-spacing:1px;
}
p{margin:0;}
a{text-decoration:none;color:inherit;}
button{font-family:inherit;cursor:pointer;}
img{display:block;max-width:100%;}
input,select,textarea{font-family:inherit;}
.hidden { display: none !important; }
.eyebrow{
  font-family:'Montserrat',sans-serif;font-size:11px;font-weight:500;letter-spacing:4px;text-transform:uppercase;color:var(--gold);
}

.app{
  max-width:var(--maxw);
  margin:0 auto;
  background:var(--white);
  min-height:100vh;
  position:relative;
  padding-bottom:78px;
  box-shadow:0 0 60px rgba(0,0,0,.08);
}

/* ===== scrollbar hide for horizontal rows ===== */
.hide-scroll{scrollbar-width:none;-ms-overflow-style:none;}
.hide-scroll::-webkit-scrollbar{display:none;}

/* ===== Top bar (detail pages) ===== */
.topbar{
  position:sticky;top:0;z-index:40;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;
  background:linear-gradient(135deg,var(--red-900),var(--red));
  color:var(--white);
}
.icon-btn{
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.14);
  border:none;color:var(--white);
  transition:background .15s ease;
  flex-shrink:0;
}
.icon-btn:hover{background:rgba(255,255,255,.26);}
.icon-btn.active svg{fill:var(--white);}
.brand{
  display:flex;flex-direction:column;align-items:center;gap:2px;
}
.brand .brand-name{font-family:'Playfair Display',serif;font-weight:700;font-size:16px;letter-spacing:1px;display:flex;align-items:center;gap:6px;}
.brand .brand-sub{font-size:9px;letter-spacing:4px;opacity:.8;font-family:'Jost',sans-serif;}
.topbar-actions{display:flex;gap:8px;}

/* ===== Hero (home page) — full-bleed photo slider ===== */
.hero-slider{
  position:relative;height:100vh;min-height:500px;max-height:none;overflow:hidden;background:var(--ink);
}
.hero-slider .slide{
  position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;transition:opacity 2s ease-in-out;
}
.hero-slider .slide.active{opacity:1;}
.hero-slider .slide-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.4) 0%,rgba(0,0,0,.1) 30%,rgba(0,0,0,.1) 70%,rgba(0,0,0,.6) 100%);
}
.hero-top{
  position:absolute;top:0;left:0;right:0;z-index:3;color:#fff;
  display:flex;align-items:center;justify-content:space-between;padding:20px 24px;
}
.hero-content{
  position:absolute;left:0;right:0;bottom:12%;z-index:2;padding:0 30px;color:#fff;text-align:center;
}
.hero-content .eyebrow{color:var(--gold); margin-bottom: 12px; display: block;}
.hero-content h1{
  font-size:38px;line-height:1.1;font-weight:400;margin-top:10px;text-transform:uppercase;letter-spacing:4px;
}
.hero-content h1 em{font-style:italic;color:var(--gold);font-weight:300;}
.hero-content p.sub{
  margin-top:16px;font-size:13px;font-weight:300;opacity:.9;line-height:1.8;letter-spacing:1px;
}
.hero-dots{display:flex;justify-content:center;gap:12px;margin-top:30px;position:relative;z-index:2;}
.hero-dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.3);transition:all 0.4s ease;}
.hero-dots span.active{background:var(--gold);}

/* Search card */
.search-card{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
  margin:-60px 16px 24px;
  position:relative;z-index:4;
  overflow:hidden;
}
.tabs{display:flex;background:var(--gray-100);}
.tabs button{
  flex:1;border:none;background:transparent;padding:14px 4px;
  font-size:11.5px;font-weight:600;color:var(--gray-600);letter-spacing:1.5px;text-transform:uppercase;
  border-bottom:2px solid transparent;
}
.tabs button.active{background:var(--white);color:var(--red);border-bottom:2px solid var(--red);}
.search-fields{padding:16px 18px 8px;}
.field{
  display:flex;align-items:center;gap:12px;
  padding:12px 4px;border-bottom:1px solid var(--gray-200);
}
.field:last-of-type{border-bottom:none;}
.field .ic{color:var(--red);flex-shrink:0;display:flex;}
.field .meta{flex:1;min-width:0;}
.field .meta label{display:block;font-size:10px;color:var(--gray-400);font-weight:600;text-transform:uppercase;letter-spacing:1.2px;}
.field select,.field input{
  border:none;outline:none;width:100%;font-size:14px;font-weight:500;color:var(--ink);background:transparent;padding:2px 0;appearance:none;font-family:'Jost',sans-serif;
}
.field .chev{color:var(--gray-400);}
.btn-search{
  width:calc(100% - 32px);margin:10px 16px 16px;
  background:var(--ink);color:var(--white);border:none;border-radius:var(--radius-sm);
  padding:15px;font-weight:600;font-size:12.5px;letter-spacing:1.8px;text-transform:uppercase;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.btn-search:active{opacity:.85;}

/* Badges row */
.badges{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:8px;padding:16px 16px 10px;
}
.badge{
  text-align:center;font-size:10.5px;font-weight:600;color:var(--ink-700);
  display:flex;flex-direction:column;align-items:center;gap:8px;
}
.badge .ic-wrap{
  width:44px;height:44px;border-radius:14px;background:var(--red-50);
  display:flex;align-items:center;justify-content:center;color:var(--red);
}

/* Section headers */
.section{padding:22px 18px 4px;}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.section-head h2{font-size:17px;font-weight:700;}
.section-head a{font-size:12.5px;color:var(--red);font-weight:700;display:flex;align-items:center;gap:2px;}

/* Property cards - featured horizontal row */
.prop-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px;}
.prop-card{
  flex:0 0 220px;background:var(--white);border-radius:var(--radius-md);
  border:1px solid var(--gray-200);overflow:hidden;box-shadow:var(--shadow-sm);
}
.prop-card .thumb{position:relative;height:130px;overflow:hidden;background:var(--gray-200);}
.prop-card .thumb img{width:100%;height:100%;object-fit:cover;}
.tag{
  position:absolute;top:8px;left:8px;background:var(--red);color:#fff;
  font-size:10px;font-weight:700;padding:4px 8px;border-radius:6px;letter-spacing:.3px;
}
.tag.rent{background:var(--ink-700);}
.fav-btn{
  position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;
  background:rgba(255,255,255,.92);border:none;display:flex;align-items:center;justify-content:center;color:var(--gray-400);
}
.fav-btn.active{color:var(--red);}
.fav-btn svg{width:15px;height:15px;}
.prop-card .body{padding:10px 12px 12px;}
.prop-card h3{font-size:13.5px;font-weight:700;margin-bottom:3px;}
.prop-card .loc{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--gray-600);margin-bottom:6px;}
.prop-card .loc svg{flex-shrink:0;color:var(--red);}
.prop-card .price{font-size:14px;font-weight:800;color:var(--red);}
.prop-card .price span{font-size:10.5px;color:var(--gray-400);font-weight:600;}
.prop-card .specs{display:flex;gap:8px;margin-top:6px;font-size:10.5px;color:var(--gray-600);}
.prop-card .specs span{display:flex;align-items:center;gap:3px;}

/* Full width list card (buy/rent/saved) */
.prop-list{display:flex;flex-direction:column;gap:14px;padding:14px 18px 10px;}
.prop-card.wide{display:flex;flex-direction:row;flex:none;}
.prop-card.wide .thumb{width:118px;height:auto;flex-shrink:0;}
.prop-card.wide .body{flex:1;min-width:0;padding:10px 12px;}

/* CTA banner */
.cta-banner{
  background:linear-gradient(135deg, var(--ink) 0%, #1f1b18 100%);
  margin:0 24px 32px;border-radius:24px;padding:32px 24px;color:#fff;
  display:flex;flex-direction:column;align-items:flex-start;gap:24px;
  position:relative;overflow:hidden;
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
.cta-banner::before{
  content:'';position:absolute;top:0;right:0;bottom:0;left:0;
  background:radial-gradient(circle at 100% 0%, rgba(200,160,95,0.2) 0%, transparent 70%);
  pointer-events:none;
}
.cta-left{
  display:flex;align-items:center;gap:20px;
  position:relative;z-index:1;
}
.cta-banner .icon-circle{
  width:64px;height:64px;border-radius:20px;
  background:linear-gradient(135deg, rgba(200,160,95,0.2), rgba(200,160,95,0.05));
  border:1px solid rgba(200,160,95,0.2);
  display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0;
  color:var(--gold);
}
.cta-banner .txt{flex:1;}
.cta-banner h3{font-size:18px;margin-bottom:6px;font-family:'Playfair Display',serif;letter-spacing:0.5px;}
.cta-banner p{font-size:13px;opacity:0.8;line-height:1.5;margin-bottom:0;}
.cta-right{
  width:100%;position:relative;z-index:1;
}
.cta-banner .btn-white{
  display:inline-block;width:100%;text-align:center;
  background:var(--gold);color:#fff;
  padding:14px 24px;border-radius:12px;
  font-size:14px;font-weight:600;text-decoration:none;
  box-shadow:0 8px 20px rgba(200,160,95,0.25);
  transition:all 0.3s ease;
}
.cta-banner .btn-white:hover{
  background:var(--gold-800);transform:translateY(-2px);
}

/* Why choose */
.why-section { display: flex; flex-direction: column; gap: 16px; }
.why-left h2 { font-size: 22px; line-height: 1.3; }
.why-left p.hint { line-height: 1.5; color: var(--gray-600); }
.why-list{display:flex;flex-direction:column;gap:12px;margin-top:2px;}
.why-item{display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:600;color:var(--ink-700);}
.why-item svg{color:var(--green);flex-shrink:0;}
.skyline-deco{margin-top:8px;opacity:.55;}

/* Bottom nav */
.bottom-nav{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:var(--maxw);background:#fff;
  border-top:1px solid var(--gray-200);
  display:flex;justify-content:space-around;align-items:center;
  padding:9px 4px 12px;z-index:50;
}
.bottom-nav a{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  font-size:10px;font-weight:600;color:var(--gray-400);flex:1;
}
.bottom-nav a.active{color:var(--red);}
.bottom-nav a .fab{
  width:46px;height:46px;border-radius:50%;background:var(--red);
  display:flex;align-items:center;justify-content:center;color:#fff;
  margin-top:-26px;box-shadow:0 6px 16px rgba(174,138,85,.45);border:4px solid #fff;
}

/* ===== Property detail page ===== */
.gallery{position:relative;background:var(--gray-200);}
.gallery img{width:100%;height:300px;object-fit:cover;}
.gallery .counter{
  position:absolute;bottom:14px;left:14px;background:rgba(0,0,0,.55);color:#fff;
  font-size:11px;font-weight:600;padding:5px 10px;border-radius:8px;display:flex;align-items:center;gap:5px;
}
.gallery .dots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:5px;}
.gallery .dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);}
.gallery .dots span.active{background:#fff;width:16px;border-radius:4px;}
.gallery .sale-tag{position:absolute;top:14px;left:0;background:var(--red);color:#fff;font-size:12px;font-weight:700;padding:6px 14px;border-radius:0 8px 8px 0;}

.detail-card{
  background:#fff;border-radius:24px 24px 0 0;margin-top:-20px;position:relative;z-index:2;
  padding:20px 18px 10px;
}
.detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
.detail-head h1{font-size:19px;font-weight:700;}
.detail-head .loc{display:flex;align-items:center;gap:4px;color:var(--gray-600);font-size:12.5px;margin-top:5px;}
.detail-head .loc svg{color:var(--red);flex-shrink:0;}
.detail-head .price-block{text-align:right;flex-shrink:0;}
.detail-head .price-block .price{font-size:17px;font-weight:800;color:var(--red);}
.detail-head .price-block .unit{font-size:11px;color:var(--gray-400);font-weight:600;}
.detail-head .price-block .neg{font-size:11px;color:var(--green);font-weight:700;margin-top:2px;}

.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}
.chip{
  display:flex;align-items:center;gap:5px;border:1px solid var(--gray-200);border-radius:20px;
  padding:6px 12px;font-size:11.5px;font-weight:600;color:var(--ink-700);
}
.chip.verified{border-color:var(--green);color:var(--green);}
.chip svg{color:var(--red);flex-shrink:0;}
.chip.verified svg{color:var(--green);}

.spec-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:18px;text-align:center;}
.spec-grid .spec{display:flex;flex-direction:column;align-items:center;gap:6px;}
.spec-grid .spec .ic-wrap{width:38px;height:38px;border-radius:10px;background:var(--red-50);display:flex;align-items:center;justify-content:center;color:var(--red);}
.spec-grid .spec b{font-size:13px;font-weight:700;}
.spec-grid .spec span{font-size:10px;color:var(--gray-600);}

.panel{
  border:1px solid var(--gray-200);border-radius:16px;padding:16px;margin-top:18px;
}
.panel h4{font-size:14.5px;font-weight:700;margin-bottom:12px;}
.agent-row{display:flex;align-items:center;gap:10px;}
.agent-row .avatar{width:44px;height:44px;border-radius:50%;background:var(--red-100);display:flex;align-items:center;justify-content:center;color:var(--red);flex-shrink:0;}
.agent-row .info{flex:1;min-width:0;}
.agent-row .info .name{font-size:13.5px;font-weight:700;display:flex;align-items:center;gap:5px;}
.agent-row .info .name svg{color:var(--green);}
.agent-row .info .rating{font-size:11px;color:var(--gray-600);display:flex;align-items:center;gap:3px;margin-top:2px;}
.agent-row .info .rating svg{color:var(--gold);}
.agent-actions{display:flex;gap:8px;margin-top:14px;}
.btn-outline{
  flex:1;border:1.5px solid var(--ink);color:var(--ink);background:#fff;border-radius:var(--radius-sm);
  padding:11px;font-weight:600;font-size:11.5px;letter-spacing:1px;text-transform:uppercase;display:flex;align-items:center;justify-content:center;gap:6px;
}
.btn-fill{
  flex:1;border:none;color:#fff;background:var(--ink);border-radius:var(--radius-sm);
  padding:11px;font-weight:600;font-size:11.5px;letter-spacing:1px;text-transform:uppercase;display:flex;align-items:center;justify-content:center;gap:6px;
}
.btn-fill.wa{background:#4C7A5E;}

.desc-text{font-size:13px;line-height:1.65;color:var(--ink-700);}
.desc-text.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.see-more{color:var(--red);font-weight:700;font-size:12.5px;margin-top:8px;display:inline-flex;align-items:center;gap:3px;border:none;background:none;}

.amenity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 8px;}
.amenity{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;font-size:11px;font-weight:600;color:var(--ink-700);}
.amenity .ic-wrap{width:36px;height:36px;border-radius:10px;background:var(--red-50);display:flex;align-items:center;justify-content:center;color:var(--red);}

.map-box{
  height:120px;border-radius:12px;margin-top:10px;position:relative;overflow:hidden;
  background:
    linear-gradient(var(--gray-200) 1px, transparent 1px) 0 0/22px 22px,
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px) 0 0/22px 22px,
    #eef1ea;
}
.map-box .pin{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%);color:var(--red);}
.map-box .road{position:absolute;background:#d7cfc9;}

.bottom-actions{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:var(--maxw);
  background:#fff;border-top:1px solid var(--gray-200);display:flex;gap:10px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));z-index:50;
}

/* ===== Sell property wizard ===== */
.sell-hero{
  background:linear-gradient(160deg,var(--red-900),var(--red));color:#fff;padding:20px 18px 60px;position:relative;
}
.sell-hero h1{font-size:21px;line-height:1.3;font-weight:700;max-width:220px;}
.sell-card-float{
  background:#fff;border-radius:18px;box-shadow:var(--shadow-lg);margin:-42px 18px 0;padding:16px;position:relative;z-index:2;
}
.sell-card-float h4{font-size:14px;margin-bottom:12px;}
.perk{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--gray-100);}
.perk:last-of-type{border-bottom:none;}
.perk .ic-wrap{width:34px;height:34px;border-radius:9px;background:var(--red-50);color:var(--red);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.perk b{display:block;font-size:12.5px;}
.perk span{font-size:10.5px;color:var(--gray-600);}

.step-progress{display:flex;align-items:center;gap:5px;padding:16px 18px 0;}
.step-progress .bar{flex:1;height:4px;border-radius:3px;background:var(--gray-200);}
.step-progress .bar.done{background:var(--red);}
.step-label{padding:8px 18px 0;font-size:11.5px;color:var(--gray-600);font-weight:700;}

.type-grid{display:flex;flex-direction:column;gap:10px;margin-top:14px;}
.type-opt{
  display:flex;align-items:center;gap:12px;border:1.5px solid var(--gray-200);border-radius:14px;padding:13px;position:relative;
}
.type-opt.selected{border-color:var(--red);background:var(--red-50);}
.type-opt .ic-wrap{width:42px;height:42px;border-radius:11px;background:var(--red-50);color:var(--red);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.type-opt .info b{display:block;font-size:13.5px;}
.type-opt .info span{font-size:11px;color:var(--gray-600);}
.type-opt .check{position:absolute;top:10px;right:10px;width:20px;height:20px;border-radius:50%;background:var(--red);color:#fff;display:none;align-items:center;justify-content:center;}
.type-opt.selected .check{display:flex;}

.form-wrap{padding:18px;}
.f-group{margin-bottom:16px;}
.f-group label{display:block;font-size:12px;font-weight:700;color:var(--ink-700);margin-bottom:7px;}
.f-group .hint{font-size:11px;color:var(--gray-400);font-weight:500;margin-top:5px;}
.input, select.input, textarea.input{
  width:100%;border:1.5px solid var(--gray-200);border-radius:11px;padding:12px 14px;font-size:13.5px;font-weight:600;color:var(--ink);outline:none;background:#fff;
}
.input:focus{border-color:var(--red);}
.input-icon{position:relative;}
.input-icon .ic{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--gray-400);}
.input-icon input{padding-left:38px;}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.unit-input{position:relative;}
.unit-input span{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:11.5px;color:var(--gray-400);font-weight:700;}

.stepper-input{display:flex;align-items:center;border:1.5px solid var(--gray-200);border-radius:11px;overflow:hidden;}
.stepper-input button{width:38px;height:42px;border:none;background:var(--gray-100);font-size:17px;font-weight:700;color:var(--red);}
.stepper-input .val{flex:1;text-align:center;font-weight:700;font-size:14px;}

.pill-select{display:flex;gap:8px;flex-wrap:wrap;}
.pill-select button{
  border:1.5px solid var(--gray-200);background:#fff;border-radius:20px;padding:9px 15px;font-size:12px;font-weight:700;color:var(--ink-700);display:flex;align-items:center;gap:5px;
}
.pill-select button.active{border-color:var(--red);background:var(--red);color:#fff;}
.pill-select button.active svg{color:#fff;}

.use-loc{
  margin-top:10px;display:flex;align-items:center;justify-content:center;gap:6px;
  border:1.5px dashed var(--red);color:var(--red);background:var(--red-50);border-radius:10px;padding:9px;font-size:12px;font-weight:700;width:100%;
}

.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px;}
.photo-slot{
  aspect-ratio:1;border-radius:10px;border:1.5px dashed var(--gray-200);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--gray-400);font-size:10px;font-weight:700;
  position:relative;overflow:hidden;background:var(--gray-100);
}
.photo-slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.photo-slot .rm{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;border:none;z-index:2;}
.photo-slot.add{border-color:var(--red);color:var(--red);background:var(--red-50);}
.photo-slot input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;}

.price-insight{
  background:var(--red-50);border-radius:12px;padding:12px 14px;margin-top:10px;display:flex;align-items:flex-start;gap:10px;
}
.price-insight .ic-wrap{width:30px;height:30px;border-radius:8px;background:#fff;color:var(--green);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.price-insight b{font-size:11.5px;display:block;margin-bottom:6px;color:var(--ink-700);}
.price-insight .figs{display:flex;justify-content:space-between;font-size:12.5px;font-weight:800;color:var(--red);}
.price-insight .figs span{display:block;font-size:9.5px;color:var(--gray-500,#8b8388);font-weight:600;margin-top:2px;}

.toggle-row{display:flex;align-items:center;justify-content:space-between;}
.switch{width:44px;height:25px;border-radius:20px;background:var(--gray-200);position:relative;border:none;flex-shrink:0;}
.switch.on{background:var(--red);}
.switch .knob{position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;transition:left .15s ease;box-shadow:0 1px 3px rgba(0,0,0,.3);}
.switch.on .knob{left:22px;}

.amenity-select-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:6px;}
.amenity-opt{
  aspect-ratio:1;border-radius:12px;border:1.5px solid var(--gray-200);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9.5px;font-weight:700;color:var(--ink-700);text-align:center;padding:4px;
}
.amenity-opt.selected{border-color:var(--red);background:var(--red-50);color:var(--red);}
.amenity-opt svg{flex-shrink:0;}

.review-card{border:1px solid var(--gray-200);border-radius:14px;padding:14px;margin-top:14px;}
.review-top{display:flex;gap:10px;}
.review-top img{width:64px;height:64px;border-radius:10px;object-fit:cover;flex-shrink:0;background:var(--gray-200);}
.review-top .edit{margin-left:auto;font-size:11px;font-weight:700;color:var(--red);align-self:flex-start;}
.review-line{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--gray-100);font-size:12.5px;}
.review-line:last-child{border-bottom:none;}
.review-line span:first-child{color:var(--gray-600);}
.review-line span:last-child{font-weight:700;text-align:right;max-width:60%;}

.next-steps{margin-top:16px;}
.next-item{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px;}
.next-item .num{width:24px;height:24px;border-radius:50%;background:var(--red-50);color:var(--red);font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.next-item p{font-size:12.5px;color:var(--ink-700);line-height:1.5;}

.sticky-cta{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:var(--maxw);
  background:#fff;border-top:1px solid var(--gray-200);padding:12px 18px calc(12px + env(safe-area-inset-bottom));z-index:50;
}
.sticky-cta .btn-fill{width:100%;padding:14px;font-size:14px;border-radius:12px;}
.sticky-cta .fine{text-align:center;font-size:10px;color:var(--gray-400);margin-top:6px;}
.step-panel{display:none;}
.step-panel.active{display:block;}

/* Agency spotlight (Senada-style bio block) */
.agency-section{padding:8px 18px 26px;display:flex;flex-direction:column;gap:16px;}
.agency-photo{width:100%;height:220px;background-size:cover;background-position:center;border-radius:var(--radius-md);}
.agency-copy h2{font-size:22px;margin-top:8px;}
.agency-copy p{font-size:13px;line-height:1.7;color:var(--ink-700);margin-top:12px;font-weight:300;}
.agency-actions{display:flex;align-items:center;gap:18px;margin-top:16px;}
.btn-outline-dark{
  border:1.5px solid var(--ink);color:var(--ink);padding:11px 20px;border-radius:var(--radius-sm);
  font-size:11.5px;font-weight:600;letter-spacing:1px;text-transform:uppercase;
}
.link-underline{font-size:12px;font-weight:600;color:var(--red);border-bottom:1px solid var(--red);padding-bottom:2px;}

/* Footer */
.site-footer{
  background:var(--red-900);color:rgba(255,255,255,.82);padding:36px 24px 26px;margin-top:6px;text-align:center;
}
.site-footer .brand-name{font-family:'Playfair Display',serif;font-size:19px;font-weight:700;letter-spacing:1px;display:flex;}
.site-footer .brand-sub{font-size:9px;letter-spacing:4px;color:var(--gold);}
.footer-tag{font-size:12px;margin-top:14px;font-weight:300;opacity:.85;}
.footer-contact{display:flex;flex-direction:column;gap:14px;margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14);}
.footer-contact p{font-size:12.5px;margin-top:5px;font-weight:300;}
.footer-links{display:flex;justify-content:center;gap:18px;margin-top:24px;font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:600;}
.footer-copy{font-size:10.5px;opacity:.5;margin-top:22px;}

/* empty state */
.empty{padding:60px 30px;text-align:center;color:var(--gray-600);}
.empty .ic-wrap{width:64px;height:64px;border-radius:50%;background:var(--red-50);color:var(--red);display:flex;align-items:center;justify-content:center;margin:0 auto 16px;}
.empty h3{font-size:15px;margin-bottom:6px;color:var(--ink);}
.empty p{font-size:12.5px;line-height:1.5;}

/* page header simple */
.page-title-bar{padding:18px 18px 4px;}
.page-title-bar h1{font-size:20px;font-weight:700;}
.page-title-bar p{font-size:12px;color:var(--gray-600);margin-top:4px;}

.toast{
  position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;
  padding:11px 20px;border-radius:30px;font-size:12.5px;font-weight:600;z-index:100;box-shadow:0 8px 20px rgba(0,0,0,.25);
  opacity:0;pointer-events:none;transition:opacity .25s ease, transform .25s ease;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(-6px);}

.account-card{margin:18px;border:1px solid var(--gray-200);border-radius:16px;padding:18px;display:flex;align-items:center;gap:14px;}
.account-card .avatar{width:56px;height:56px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;flex-shrink:0;}
.account-list{margin:0 18px;border:1px solid var(--gray-200);border-radius:16px;overflow:hidden;}
.account-list a{display:flex;align-items:center;gap:12px;padding:14px 16px;font-size:13.5px;font-weight:600;border-bottom:1px solid var(--gray-100);color:var(--ink-700);}
.account-list a:last-child{border-bottom:none;}
.account-list a .ic-wrap{width:34px;height:34px;border-radius:9px;background:var(--red-50);color:var(--red);display:flex;align-items:center;justify-content:center;}
.account-list a .chev{margin-left:auto;color:var(--gray-400);}

@media (max-width:380px){
  .amenity-select-grid{grid-template-columns:repeat(3,1fr);}
}

/* ===== Map view (Buy/Rent listings) ===== */
.map-wrap{
  position:relative;
  height:calc(100dvh - 214px);
  min-height:300px;
  display:none;
  overflow:hidden;
}
.map-wrap.active{display:block;}
.map-wrap #propMap{width:100%;height:100%;background:var(--gray-100);position:relative;z-index:1;}
.prop-list.hidden{display:none;}

/* toggle pill: Map <-> List View */
.view-toggle{
  position:fixed;bottom:96px;left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:7px;
  background:var(--red);color:#fff;border:none;border-radius:30px;
  padding:11px 20px;font-size:13px;font-weight:700;
  box-shadow:0 10px 26px rgba(174,138,85,.35);z-index:60;
}
.view-toggle svg{width:16px;height:16px;flex-shrink:0;}

/* "Search this area" pill, shown after map is panned */
.map-search-area{
  position:absolute;top:14px;left:50%;transform:translateX(-50%) translateY(-60px);
  background:#fff;color:var(--red);border:1.5px solid var(--red-100);
  border-radius:30px;padding:9px 16px;font-size:12.5px;font-weight:700;
  display:flex;align-items:center;gap:6px;box-shadow:var(--shadow-md);
  opacity:0;pointer-events:none;transition:opacity .2s ease, transform .2s ease;z-index:900;
}
.map-search-area.show{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto;}
.map-search-area svg{width:14px;height:14px;}

/* custom zoom + locate controls, brand-styled */
.map-controls{
  position:absolute;right:12px;bottom:14px;display:flex;flex-direction:column;
  gap:8px;z-index:900;
}
.map-controls button{
  width:38px;height:38px;border-radius:12px;border:none;background:#fff;
  color:var(--ink);box-shadow:var(--shadow-md);display:flex;align-items:center;
  justify-content:center;font-size:18px;font-weight:700;
}
.map-controls button.locate-btn{color:var(--red);}
.map-controls button svg{width:16px;height:16px;}

/* price-tag marker */
.map-pin {
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  border: 2px solid #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
}
.map-pin:hover, .map-pin.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: scale(1.05);
  z-index: 1000 !important;
}
.map-pin:hover::after, .map-pin.active::after {
  border-top-color: var(--gold);
}

/* bottom preview sheet for tapped marker */
.map-preview {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 950;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--gray-200);
}
.map-preview.show { transform: translateY(0); }
.map-preview img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.map-preview .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.map-preview h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.map-preview .loc { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-600); margin-bottom: 6px; }
.map-preview .loc svg { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }
.map-preview .price { font-size: 16px; font-weight: 700; color: var(--ink); }
.map-preview .close-preview{
  position:absolute;top:-10px;right:-6px;width:24px;height:24px;border-radius:50%;
  background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;
  border:2px solid #fff;font-size:13px;line-height:1;
}
.leaflet-attribution-flag{display:none !important;}
.leaflet-control-attribution{font-size:9px !important;}

/* ===== Broker card (shown on property page when a broker is assigned) ===== */
.broker-card{}
.broker-top{display:flex;align-items:flex-start;gap:12px;}
.broker-photo{width:58px;height:58px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid var(--red-100);}
.broker-info{flex:1;min-width:0;}
.broker-name{font-size:14.5px;font-weight:700;}
.broker-exp{font-size:11px;color:var(--gray-600);display:flex;align-items:center;gap:4px;margin-top:3px;}
.broker-exp svg{color:var(--gold);}
.broker-chip{
  display:inline-block;margin-top:6px;font-size:10.5px;font-weight:600;color:var(--red-600);
  background:var(--red-50);border-radius:20px;padding:4px 10px;
}
.broker-bio{font-size:12px;line-height:1.55;color:var(--ink-700);margin:12px 0 0;}

/* ===== Admin portal ===== */
.admin-topbar{background:var(--ink);color:#fff;}
.admin-topbar .brand-name,.admin-topbar .brand-sub{color:#fff;}
.admin-tabs{display:flex;gap:6px;padding:14px 18px 0;overflow-x:auto;}
.admin-tab{
  flex-shrink:0;padding:9px 15px;border-radius:20px;font-size:12px;font-weight:700;
  color:var(--gray-600);background:var(--gray-100);border:none;white-space:nowrap;
}
.admin-tab.active{background:var(--ink);color:#fff;}
.admin-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px;}
.admin-stat{
  border:1px solid var(--gray-200);border-radius:14px;padding:16px;text-align:center;
}
.admin-stat b{display:block;font-size:22px;font-weight:800;color:var(--ink);}
.admin-stat span{font-size:11px;color:var(--gray-600);}
.admin-section{padding:0 18px 18px;}
.admin-section h4{font-size:14px;font-weight:700;margin:18px 0 10px;}

.broker-mgmt-card{
  display:flex;gap:12px;align-items:flex-start;border:1px solid var(--gray-200);
  border-radius:14px;padding:12px;margin-bottom:10px;
}
.broker-mgmt-card img{width:52px;height:52px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.broker-mgmt-card .body{flex:1;min-width:0;}
.broker-mgmt-card .body b{font-size:13px;}
.broker-mgmt-card .body .meta{font-size:11px;color:var(--gray-600);margin-top:2px;}
.broker-mgmt-card .body .bio{font-size:11.5px;color:var(--ink-700);margin-top:6px;line-height:1.5;}
.broker-mgmt-card .rm-broker{
  border:none;background:var(--red-50);color:var(--red);width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px;
}

.admin-listing-row{
  display:flex;gap:10px;align-items:center;border:1px solid var(--gray-200);
  border-radius:14px;padding:10px;margin-bottom:10px;
}
.admin-listing-row img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex-shrink:0;}
.admin-listing-row .body{flex:1;min-width:0;}
.admin-listing-row .body b{font-size:12.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.admin-listing-row .body span{font-size:11px;color:var(--gray-600);}
.admin-listing-row select{
  font-size:11px;border:1px solid var(--gray-200);border-radius:8px;padding:6px 6px;
  max-width:108px;color:var(--ink-700);background:#fff;
}
.admin-listing-row .del-listing{
  border:none;background:var(--red-50);color:var(--red);width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px;
}

.photo-slot.circle{border-radius:50%;width:84px;height:84px;margin:0 auto;}
.admin-login-wrap{
  max-width:var(--maxw);margin:0 auto;min-height:100vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;padding:24px;text-align:center;
}
.admin-login-wrap .ic-wrap{
  width:60px;height:60px;border-radius:50%;background:var(--red-50);color:var(--red);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.admin-login-wrap h1{font-family:'Playfair Display',serif;font-size:20px;margin-bottom:6px;}
.admin-login-wrap p{font-size:12.5px;color:var(--gray-600);margin-bottom:24px;}
.admin-login-wrap .form-wrap{width:100%;padding:0;text-align:left;}
.admin-login-wrap .btn-fill{width:100%;padding:13px;border-radius:10px;margin-top:6px;}
.admin-error{color:var(--red);font-size:12px;font-weight:600;margin-top:-8px;margin-bottom:14px;display:none;}
.admin-error.show{display:block;}

/* ===== Desktop View Overrides ===== */
.desktop-nav-wrap { display: none; }

@media (min-width: 768px) {
  :root {
    --maxw: 100%;
  }
  .app {
    padding-bottom: 0;
  }

  /* Navigation */
  .bottom-nav {
    display: none;
  }
  .desktop-nav-wrap {
    display: none;
  }
  .desktop-nav-wrap.full-width-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    margin-left: 24px;
  }
  .topbar, .hero-top {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
    z-index: 100;
  }
  .hero-top {
    border-bottom: none;
    background: transparent;
  }
  .topbar .icon-btn:not(.notif-btn), .hero-top .icon-btn {
    display: none; /* Hide menu/back buttons */
  }
  #logoutBtn {
    display: flex !important;
    margin-left: auto;
  }
  .brand {
    flex-shrink: 0;
  }
  .desktop-nav-left {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .desktop-nav-search {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 6px 12px;
    width: 280px;
  }
  .desktop-nav-search .search-ic {
    font-size: 14px;
    margin-right: 8px;
    color: var(--gray-600);
  }
  .desktop-nav-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: var(--ink);
  }
  .desktop-nav-right {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .d-nav-link {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink);
    opacity: 0.7;
    transition: all 0.2s ease;
  }
  .d-nav-link:hover, .d-nav-link.active {
    opacity: 1;
    color: var(--gold);
  }
  .account-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 20px;
    color: var(--ink);
    opacity: 1;
  }
  .account-link:hover {
    background: var(--gray-200);
  }
  .hero-top .d-nav-link.active {
    color: var(--gold);
  }
  .topbar-actions {
    display: none;
  }
  .page-title-bar {
    padding: 32px 32px 12px;
  }
  .page-title-bar h1 {
    font-size: 28px;
  }

  /* Hero */
  .hero-slider {
    height: 100vh;
    min-height: 700px;
    max-height: none;
  }
  .hero-content {
    bottom: 18%;
  }
  .hero-content h1 {
    font-size: 72px;
    margin-top: 24px;
    letter-spacing: 8px;
  }
  .hero-content p.sub {
    font-size: 16px;
    max-width: 600px;
    margin: 24px auto 0;
    letter-spacing: 2px;
  }
  .hero-dots {
    margin-top: 48px;
  }

  /* Search Card */
  .search-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin: -50px 5% 32px;
    border-radius: var(--radius-lg);
    background: var(--white);
  }
  .tabs {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
  .tabs button {
    padding: 16px 24px;
    border-left: none;
    border-bottom: 3px solid transparent;
    text-align: center;
    font-size: 13.5px;
  }
  .tabs button.active {
    border-left: none;
    border-bottom: 3px solid var(--red);
  }
  .search-card .search-fields {
    grid-column: 1;
    display: flex;
    flex: 1;
    align-items: center;
    padding: 0;
  }
  .search-card .field {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--gray-200);
    padding: 16px 24px;
  }
  .search-card .field:last-of-type {
    border-right: none;
  }
  .search-card .field select {
    font-size: 15px;
  }
  .search-card .btn-search {
    grid-column: 2;
    width: auto;
    margin: 16px 24px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    align-self: center;
  }

  /* Badges */
  .badges {
    padding: 24px 32px;
  }
  .badge {
    font-size: 13.5px;
  }
  .badge .ic-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  /* Sections */
  .section {
    padding: 32px;
  }
  .section-head {
    margin-bottom: 24px;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .section-head a {
    font-size: 14.5px;
  }

  /* Properties Layouts */
  .prop-row, .prop-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 16px;
    overflow: visible;
  }
  /* On buy.html tabs */
  #saleRentTabs.tabs {
    flex-direction: row;
    margin: 0 !important;
  }
  #saleRentTabs button {
    border: none;
    text-align: center;
    border-radius: 32px;
    margin: 4px;
    color: var(--gray-600);
    font-weight: 600;
  }
  #saleRentTabs button.active {
    background: var(--gold);
    color: #fff;
    border: none;
  }
  /* Remove width constraints for cards in grid */
  .prop-card {
    flex: none;
  }
  .prop-card.wide {
    flex-direction: column;
  }
  .prop-card.wide .thumb {
    width: 100%;
    height: 200px;
  }
  .prop-card .thumb {
    height: 200px;
  }
  .prop-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .prop-card .loc {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .prop-card .price {
    font-size: 18px;
  }
  .prop-card .specs {
    font-size: 12.5px;
    margin-top: 10px;
  }

  /* CTA & Agency */
  .cta-banner {
    margin: 64px 5% 48px;
    padding: 56px 80px;
    border-radius: 32px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }
  .cta-banner::before {
    background: radial-gradient(circle at 100% 50%, rgba(200, 160, 95, 0.15) 0%, transparent 60%);
  }
  .cta-left {
    gap: 32px;
  }
  .cta-banner .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    font-size: 32px;
  }
  .cta-banner h3 {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .cta-banner p {
    font-size: 15.5px;
  }
  .cta-right {
    width: auto;
  }
  .cta-banner .btn-white {
    width: auto;
    padding: 18px 40px;
    font-size: 15.5px;
  }
  /* Why Section Desktop */
  .why-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    gap: 64px;
  }
  .why-left {
    width: 40%;
  }
  .why-left h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 24px;
  }
  .why-left p.hint {
    font-size: 16px !important;
  }
  .why-list {
    width: 55%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .why-item {
    font-size: 15.5px;
    gap: 16px;
  }
  .why-item svg {
    width: 24px;
    height: 24px;
  }

  .agency-section {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding: 60px 32px;
  }
  .agency-photo {
    flex: 1;
    height: 400px;
  }
  .agency-copy {
    flex: 1;
  }
  .agency-copy h2 {
    font-size: 36px;
    margin-top: 12px;
  }
  .agency-copy p {
    font-size: 16px;
    margin-top: 20px;
  }
  .agency-actions {
    margin-top: 32px;
  }
  .btn-outline-dark {
    padding: 14px 28px;
    font-size: 13px;
  }

  /* Footer */
  .site-footer {
    padding: 60px 32px 40px;
    margin-top: 20px;
  }
  .footer-contact {
    flex-direction: row;
    justify-content: center;
    gap: 80px;
    margin-top: 40px;
    padding-top: 40px;
  }
  .footer-contact p {
    font-size: 14.5px;
  }

  /* Property Details */
  .gallery img {
    height: 60vh;
    min-height: 500px;
  }
  .detail-card {
    max-width: 1000px;
    margin: -80px auto 40px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .detail-card > * {
    grid-column: 1;
  }
  .detail-card > .chip-row {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
  .detail-card > .bottom-actions {
    grid-column: 2;
    grid-row: 2;
    position: static;
    transform: none;
    border-top: none;
    padding: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
  }
  .detail-head h1 {
    font-size: 28px;
  }
  .detail-head .loc {
    font-size: 15px;
    margin-top: 8px;
  }
  .detail-head .price-block .price {
    font-size: 26px;
  }
  .detail-head .price-block .unit {
    font-size: 14px;
  }
  .chip-row {
    margin-top: 20px;
  }
  .chip {
    padding: 8px 16px;
    font-size: 13.5px;
  }
  .spec-grid {
    margin-top: 32px;
    gap: 16px;
  }
  .spec-grid .spec .ic-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .spec-grid .spec b {
    font-size: 15px;
  }
  .spec-grid .spec span {
    font-size: 12.5px;
  }
  .desc-text {
    font-size: 15px;
  }
  .amenity-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 16px;
  }
  .amenity {
    font-size: 13px;
  }
  .amenity .ic-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .map-box {
    height: 200px;
    margin-top: 20px;
  }
  
  /* Sticky actions become static on desktop side-panel (moved to .detail-card > .bottom-actions above) */
  .panel {
    margin-top: 0;
  }

  /* Buy Page specific overrides */
  .search-fields[style] {
    padding: 10px 32px 24px !important;
  }
  .map-wrap {
    height: 600px;
    margin: 0 32px 32px;
    border-radius: var(--radius-lg);
  }
  .view-toggle {
    display: none !important;
  }

  /* Split View (Zillow style map layout on Desktop) */
  body.split-view {
    /* Removed overflow: hidden to allow page scrolling */
  }
  body.split-view .app {
    display: grid;
    grid-template-columns: 48% 52%;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  }
  body.split-view .topbar,
  body.split-view .page-title-bar,
  body.split-view .toolbar-row,
  body.split-view .search-fields {
    grid-column: 1 / -1;
  }
  body.split-view .results-header {
    grid-column: 2 / 3;
    grid-row: 5;
    padding: 16px 24px 0;
  }
  body.split-view .prop-list {
    grid-column: 2 / 3;
    grid-row: 6;
    padding: 16px 24px 32px;
    grid-template-columns: repeat(2, 1fr) !important;
    align-content: start;
  }
  body.split-view .map-wrap {
    grid-column: 1 / 2;
    grid-row: 5 / span 2;
    margin: 0;
    height: calc(100vh - 240px);
    position: sticky;
    top: 24px;
    align-self: start;
    border-radius: 12px;
    border-top: 1px solid var(--gray-200);
  }

  /* Sell form wrapper */
  .sell-card-float {
    margin: -80px auto 40px;
    max-width: 700px;
    padding: 40px;
  }
  .type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sticky-cta {
    position: static;
    transform: none;
    padding: 32px 0 0;
    border-top: none;
  }
  
  /* General account/admin */
  .account-card {
    margin: 32px;
    padding: 32px;
    gap: 24px;
  }
  .account-card .avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }
  .account-list {
    margin: 0 32px 32px;
  }
  .account-list a {
    padding: 20px 24px;
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
}

@media (min-width: 768px) {
  .mobile-only { display: none !important; }
  #viewToggleBtn { display: none !important; }
  
  .page-title-bar {
    padding: 32px 5% 0;
  }
  .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 16px;
  }
  .breadcrumbs .home-ic {
    color: var(--gray-600);
  }
  .header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
  }
  .header-left h1 {
    font-size: 44px;
    margin-bottom: 8px;
  }
  .header-left .sub-title {
    font-size: 16px;
    color: var(--gray-600);
  }
  .header-stats {
    display: flex;
    gap: 32px;
    align-items: center;
    border-right: 1px solid var(--gray-200);
    padding-right: 48px;
    margin-right: -16px; /* offset the ill gap */
  }
  .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .stat-box strong {
    font-size: 24px;
    font-weight: 700;
  }
  .stat-box span {
    font-size: 12px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .header-illustration {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .header-illustration .ill-img {
    width: 140px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.8;
  }
  .header-illustration .ill-txt {
    font-size: 10px;
    color: var(--gray-600);
    letter-spacing: 1px;
    line-height: 1.4;
  }
  .header-illustration .line {
    width: 32px;
    height: 2px;
    background: var(--gold);
    margin-top: 6px;
  }

  .toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    margin-bottom: 24px;
  }
  #saleRentTabs {
    margin: 0 !important;
    width: 400px;
    border-radius: 12px !important;
  }
  .view-modes {
    display: flex;
    gap: 16px;
  }
  .view-modes button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
  }
  .view-modes button.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
  }
  .view-modes-realtor {
    gap: 4px !important;
  }
  .view-modes-realtor button {
    border: none !important;
  }

  .realtor-search-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0 0;
  }
  .realtor-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-400);
    border-radius: 40px;
    padding: 6px 6px 6px 20px;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
  }
  .realtor-input-wrap:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
  }
  .realtor-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 12px;
    background: transparent;
    font-family: inherit;
    color: var(--ink);
  }
  .realtor-input-wrap .search-ic {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .save-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 40px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14.5px;
    transition: opacity 0.2s;
  }
  .save-search-btn:hover {
    opacity: 0.85;
  }
  .view-modes-realtor {
    gap: 0;
    background: var(--gray-100);
    border-radius: 40px;
    padding: 4px;
    border: none;
  }
  .view-modes-realtor button {
    border: none;
    background: transparent;
    padding: 12px 24px;
    border-radius: 36px;
    color: var(--ink);
  }
  .view-modes-realtor button.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .desktop-filters {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 24px 24px !important;
    border-bottom: 1px solid var(--gray-200);
  }
  .desktop-filters .field {
    width: 250px;
    margin-bottom: 0 !important;
  }
  .filter-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
  }
  .filter-actions {
    display: flex;
    margin-left: auto;
    gap: 12px;
  }
  .sort-btn, .more-filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
  }
  
  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 5% 16px;
  }
  #dResultCount {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--gray-600);
  }
  .right-actions {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .verified-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  .verified-check input {
    width: 16px;
    height: 16px;
  }
  .grid-list-toggle {
    display: flex;
    gap: 8px;
  }
  .grid-list-toggle button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
  }
  .grid-list-toggle button.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }

  /* Grid Layout for Prop Cards */
  #listWrap {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 0 5% 64px !important;
  }
  #listWrap.hidden {
    display: none !important;
  }
  #listWrap .empty {
    grid-column: 1 / -1;
    margin: 100px auto;
    text-align: center;
    max-width: 400px;
    align-items: center;
  }

  /* Split View Layout - Zillow Style */
  body.split-view .app {
    display: grid;
    grid-template-columns: 48% 52%;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  }
  body.split-view .topbar,
  body.split-view .page-title-bar,
  body.split-view .toolbar-row {
    grid-column: 1 / -1;
  }
  body.split-view .page-title-bar {
    padding-top: 12px;
  }
  body.split-view .toolbar-row {
    margin-bottom: 4px;
    padding-top: 8px;
  }
  body.split-view .search-fields {
    grid-column: 1 / -1;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
  }
  body.split-view .results-header {
    grid-column: 2 / 3;
    grid-row: 5 / 6;
  }
  body.split-view #listWrap {
    grid-column: 2 / 3;
    grid-row: 6 / 7;
    /* Let list dictate height naturally instead of having its own scroll */
    overflow-y: visible !important;
    height: auto !important;
    min-height: 0;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: max-content;
    /* Make cards broader by reducing horizontal padding from 5% to 16px */
    padding: 0 16px 64px !important;
    /* Reduce gap between the two cards */
    gap: 12px !important;
  }
  body.split-view #listWrap .prop-card {
    height: auto !important;
  }
  /* Make cards bigger by increasing image height */
  body.split-view #listWrap .prop-card .thumb {
    height: 240px;
  }
  body.split-view #mapWrap {
    grid-column: 1 / 2;
    grid-row: 5 / 7;
    display: block !important;
    /* Map sticks below the sticky search-fields */
    height: calc(100vh - 110px) !important;
    position: sticky;
    top: 86px;
    align-self: start;
    border-radius: 12px;
    overflow: hidden;
  }

  .prop-card {
    margin-bottom: 0 !important;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    cursor: pointer;
  }
  .prop-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--gold);
  }
  .prop-card.highlighted {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold);
  }
  .prop-card .thumb {
    height: 200px;
    flex-shrink: 0;
    position: relative;
  }
  .image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .image-nav:hover { background: rgba(0,0,0,0.8); }
  .image-nav.left { left: 8px; }
  .image-nav.right { right: 8px; }
  
  .img-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .prop-card .body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .prop-card .price-row {
    margin-bottom: 8px;
  }
  .prop-card .price {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
  }
  .prop-card .price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
  }
  .prop-card .specs {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-600);
  }
  .prop-card .specs b {
    color: var(--ink);
  }
  .prop-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ink);
    font-family: inherit;
  }
  .prop-card .loc {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
  }
  .card-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .agent-txt {
    display: flex;
    flex-direction: column;
  }
  .agent-txt .name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .agent-txt .time {
    font-size: 11px;
    color: var(--gray-400);
  }
}
