:root {
  --bg:#f6f3ec; --surf:#fdfcf9; --card:#ffffff; --hover:#efeae0; --line:#e4ddd0;
  --txt:#1a1917; --mut:#756f65; --pri:#c25238; --pri-h:#a8432b; --pri-s:rgba(194,82,56,.10);
  --sage:#1f6b5c; --sage-s:#e7f3f0; --brass:#b08d57; --amb:#9a6b25; --red:#b42318; --red-s:#fef3f2;
  --pill-bg:#ffffff; --pill-txt:#1a1917; --pill-sel:#1a1917; --pill-sel-txt:#fdfcf9;
  --sh-sm:0 1px 2px rgba(26,25,23,.04), 0 3px 10px rgba(26,25,23,.03);
  --sh:0 12px 32px rgba(26,25,23,.13);
  --font-serif:"Fraunces","Georgia",serif;
  --font-head:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  --font-body:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
}
[data-theme="dark"] {
  --bg:#121210; --surf:#181816; --card:#1e1e1b; --hover:#272622; --line:#2e2d28;
  --txt:#f3efe6; --mut:#9c968b; --pri:#e27358; --pri-h:#f08469; --pri-s:rgba(226,115,88,.15);
  --sage:#4db8a3; --sage-s:rgba(77,184,163,.14); --brass:#c9a86c; --amb:#eab308; --red:#f87171; --red-s:rgba(248,113,113,.15);
  --pill-bg:#22221f; --pill-txt:#f3efe6; --pill-sel:#f3efe6; --pill-sel-txt:#121210;
  --sh-sm:0 1px 4px rgba(0,0,0,.38); --sh:0 14px 36px rgba(0,0,0,.58);
}

* { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; font-family:var(--font-body); }
h1, h2, h3, .hc-name, .hc-price, .price-pill, .cluster-pill, .area-pill, .mp-name, .mp-price { font-family:var(--font-head); }
html, body { height:100%; background:var(--bg); color:var(--txt); overflow:hidden; font-size:14.5px; -webkit-font-smoothing:antialiased; }
body { display:flex; flex-direction:column; height:100dvh; }
.ic { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }

.topbar { background:var(--surf); border-bottom:1px solid var(--line); padding:10px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:62px; z-index:20; flex-shrink:0; }
.brand { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.logo { width:34px; height:34px; border-radius:10px; background:var(--pri); display:grid; place-items:center; color:#fff; flex-shrink:0; }
.brand-txt h1 { font-size:15px; font-weight:700; letter-spacing:-.02em; line-height:1.15; }
.brand-txt small { display:block; font-size:11px; color:var(--mut); margin-top:1px; }

.omni { flex:1 1 auto; max-width:540px; display:flex; align-items:center; gap:6px; background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:4px 10px 4px 4px; min-height:42px; min-width:0; }
.omni:focus-within { border-color:var(--txt); background:var(--surf); }
.seg-mini { display:inline-flex; background:var(--surf); border:1px solid var(--line); border-radius:999px; padding:2px; flex-shrink:0; }
.seg-mini button { border:none; background:transparent; color:var(--mut); padding:5px 12px; border-radius:999px; font-size:12.5px; font-weight:600; cursor:pointer; }
.seg-mini button.active { background:var(--txt); color:var(--surf); }
.omni-sep { width:1px; height:18px; background:var(--line); flex-shrink:0; }
.search-wrap { flex:1 1 120px; position:relative; min-width:0; }
.s-ic { position:absolute; left:6px; top:50%; transform:translateY(-50%); color:var(--mut); pointer-events:none; }
.search-wrap input { width:100%; border:none; background:transparent; color:var(--txt); padding:6px 6px 6px 28px; font-size:13.5px; outline:none; }

.h-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.btn { background:var(--surf); color:var(--txt); border:1px solid var(--line); border-radius:999px; padding:7px 14px; font-size:13px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; text-decoration:none; white-space:nowrap; }
.btn:hover { background:var(--hover); }
.btn.active { background:var(--txt); color:var(--surf); border-color:var(--txt); }
.btn.pri { background:var(--pri); color:#fff; border-color:var(--pri); }
.btn.pri:hover { background:var(--pri-h); border-color:var(--pri-h); }
.btn.wa { background:#15803d; color:#fff; border-color:#15803d; }
.btn.icon { padding:0; width:38px; min-width:38px; }
.btn.xs { min-height:30px; padding:4px 12px; font-size:12px; }
.badge { background:var(--pri); color:#fff; border-radius:999px; padding:1px 6px; font-size:10.5px; font-weight:700; font-variant-numeric:tabular-nums; }
.btn.active .badge { background:var(--surf); color:var(--txt); }
.txt-btn { border:none; background:none; color:var(--pri); font-size:12.5px; font-weight:600; cursor:pointer; }

.subbar { background:var(--surf); border-bottom:1px solid var(--line); padding:8px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-shrink:0; }
.chips { display:flex; align-items:center; gap:7px; overflow-x:auto; scrollbar-width:none; min-width:0; }
.chips::-webkit-scrollbar { display:none; }
.chip { background:transparent; color:var(--mut); border:1px solid var(--line); border-radius:999px; padding:5px 13px; font-size:12.5px; font-weight:500; cursor:pointer; white-space:nowrap; }
.chip:hover { color:var(--txt); border-color:var(--mut); }
.chip.active { background:var(--txt); color:var(--surf); border-color:var(--txt); font-weight:600; }
.sort-sel { background:transparent; color:var(--txt); border:1px solid var(--line); border-radius:999px; padding:5px 12px; font-size:12.5px; font-weight:500; cursor:pointer; flex-shrink:0; }

.ws { flex:1; display:flex; min-height:0; position:relative; }
#listPane { width:430px; max-width:100%; background:var(--bg); border-right:1px solid var(--line); display:flex; flex-direction:column; min-height:0; }
.list-head { padding:10px 18px; display:flex; justify-content:space-between; align-items:center; font-size:12.5px; font-weight:500; color:var(--mut); border-bottom:1px solid var(--line); flex-shrink:0; }
#activeBar { display:none; background:var(--surf); border-bottom:1px solid var(--line); padding:7px 16px; gap:6px; align-items:center; overflow-x:auto; flex-shrink:0; scrollbar-width:none; }
#activeBar::-webkit-scrollbar { display:none; }
.af-pill { background:var(--hover); color:var(--txt); border-radius:999px; padding:3px 10px; font-size:11.5px; font-weight:500; white-space:nowrap; }
#cardList { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:14px 16px 88px; display:flex; flex-direction:column; gap:11px; }

.hc { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:15px 16px; cursor:pointer; display:flex; gap:13px; box-shadow:var(--sh-sm); transition:border-color .14s, box-shadow .14s; }
.hc:hover { border-color:var(--mut); box-shadow:0 6px 20px rgba(0,0,0,.06); }
.hc.sel { border-color:var(--txt); box-shadow:0 0 0 1px var(--txt); }
.hc-thumb { width:74px; height:74px; border-radius:12px; object-fit:cover; flex-shrink:0; background:var(--hover); }
.hc-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.hc-row1 { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.hc-name { font-size:15px; font-weight:700; line-height:1.25; letter-spacing:-.015em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hc-loc { font-size:12.5px; color:var(--mut); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.heart-btn { width:32px; height:32px; border-radius:50%; border:none; background:transparent; color:var(--mut); display:grid; place-items:center; cursor:pointer; flex-shrink:0; margin:-4px -6px 0 0; }
.heart-btn:hover { background:var(--hover); color:var(--pri); }
.heart-btn.sv { color:var(--pri); }
.heart-btn.sv svg { fill:var(--pri); }
.hc-row2 { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.hc-price { font-size:16.5px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.hc-tags { display:flex; gap:5px; align-items:center; }
.tag { font-size:11px; padding:2.5px 8px; border-radius:999px; font-weight:600; white-space:nowrap; }
.tag.good { background:var(--sage-s); color:var(--sage); }
.tag.warn { background:var(--red-s); color:var(--red); }
.hc-row3 { font-size:12.5px; color:var(--mut); display:flex; justify-content:space-between; align-items:center; gap:8px; }
.hc-row3 span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hc-u { font-size:11.5px; font-weight:600; color:var(--txt); flex-shrink:0; }

#mapPane { flex:1; position:relative; min-height:0; }
#map { width:100%; height:100%; background:var(--bg); }
#map.map-street .leaflet-tile-pane { filter:saturate(.62) contrast(.95) brightness(1.03); }
#map.map-dark .leaflet-tile-pane { filter:invert(100%) hue-rotate(180deg) brightness(.88) contrast(.92) saturate(.45); }
#map.map-sat .leaflet-tile-pane { filter:none; }

.map-ctl { position:absolute; top:14px; right:14px; z-index:500; display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.seg-map { display:inline-flex; background:var(--surf); border:1px solid var(--line); border-radius:999px; padding:3px; gap:2px; box-shadow:var(--sh); }
.seg-map button { border:none; background:transparent; color:var(--mut); padding:5px 11px; border-radius:999px; font-size:12px; font-weight:600; cursor:pointer; }
.seg-map button.active { background:var(--txt); color:var(--surf); }
.map-togs { display:flex; gap:6px; }
.map-pill { background:var(--surf); color:var(--txt); border:1px solid var(--line); border-radius:999px; padding:6px 13px; font-size:12px; font-weight:600; cursor:pointer; box-shadow:var(--sh); }
.map-pill:hover { background:var(--hover); }
.map-pill.active { background:var(--txt); color:var(--surf); border-color:var(--txt); }
.map-pill.left { position:absolute; top:14px; left:54px; z-index:500; }

.pill-wrap, .cluster-wrap { background:none; border:none; }
.price-pill { position:relative; transform:translate(-50%,-50%); display:inline-flex; align-items:center; background:var(--pill-bg); color:var(--pill-txt); border:1px solid rgba(0,0,0,.14); border-radius:999px; padding:5px 10px; font-size:12px; font-weight:700; white-space:nowrap; box-shadow:0 2px 10px rgba(0,0,0,.18); cursor:pointer; transition:transform .13s; font-variant-numeric:tabular-nums; }
.price-pill.val { background:var(--sage); color:#fff; border-color:var(--sage); }
.price-pill.hov, .price-pill.sel, .price-pill:hover { background:var(--pill-sel); color:var(--pill-sel-txt); border-color:var(--pill-sel); transform:translate(-50%,-50%) scale(1.12); z-index:1000; }

.cluster-pill { position:relative; transform:translate(-50%,-50%); display:inline-flex; align-items:center; gap:5px; background:var(--txt); color:var(--surf); border:2px solid var(--surf); border-radius:999px; padding:5px 10px; font-size:12px; font-weight:700; white-space:nowrap; box-shadow:0 4px 14px rgba(0,0,0,.26); cursor:pointer; font-variant-numeric:tabular-nums; }
.cluster-pill:hover { background:var(--pri); color:#fff; }
.cluster-cnt { opacity:.75; font-size:11px; }

.area-pill { position:relative; transform:translate(-50%,-50%); display:inline-flex; align-items:center; gap:5px; background:rgba(255,255,255,.88); backdrop-filter:blur(6px); color:var(--txt); border:1px dashed var(--mut); border-radius:999px; padding:4px 10px; font-size:11.5px; font-weight:600; white-space:nowrap; box-shadow:0 2px 10px rgba(0,0,0,.12); cursor:pointer; }
[data-theme="dark"] .area-pill { background:rgba(25,25,24,.88); color:#f4f4f0; }
.area-pill:hover { border-style:solid; border-color:var(--pri); color:var(--pri); }

.map-preview { position:absolute; left:14px; right:14px; bottom:74px; max-width:400px; margin:0 auto; background:var(--surf); border:1px solid var(--line); border-radius:18px; padding:14px 16px; box-shadow:var(--sh); z-index:600; display:flex; flex-direction:column; gap:7px; }
.mp-top { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.mp-name { font-size:15px; font-weight:700; }
.mp-loc { font-size:12.5px; color:var(--mut); }
.mp-row { display:flex; align-items:center; gap:8px; }
.mp-price { font-size:16.5px; font-weight:800; font-variant-numeric:tabular-nums; }
.mp-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; padding-top:8px; border-top:1px solid var(--line); }
.mp-meta { font-size:12px; color:var(--mut); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.mob-float { display:none; position:fixed; bottom:calc(18px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); z-index:700; background:var(--txt); color:var(--surf); border:none; border-radius:999px; padding:11px 20px; font-size:13.5px; font-weight:600; align-items:center; gap:7px; box-shadow:0 8px 24px rgba(0,0,0,.28); cursor:pointer; }

.backdrop { position:fixed; inset:0; background:rgba(0,0,0,.40); display:none; z-index:900; backdrop-filter:blur(3px); }
.sheet { position:fixed; top:0; right:0; width:450px; max-width:100%; height:100dvh; background:var(--surf); border-left:1px solid var(--line); box-shadow:var(--sh); z-index:950; display:none; flex-direction:column; }
.s-head { padding:16px 20px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:10px; flex-shrink:0; }
.s-head h2 { font-size:18px; font-weight:700; letter-spacing:-.02em; line-height:1.2; }
.sub-line { font-size:12.5px; color:var(--mut); margin-top:2px; }
.s-body { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:18px 20px; display:flex; flex-direction:column; gap:16px; }
.s-foot { padding:12px 20px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); display:flex; gap:10px; background:var(--surf); flex-shrink:0; }
.s-foot .btn { flex:1; min-height:44px; font-size:14px; }

.f-sec { display:flex; flex-direction:column; gap:6px; }
.f-sec label { font-size:12px; font-weight:600; color:var(--mut); }
.f-sec select, .f-sec input:not([type="range"]) { width:100%; background:var(--bg); color:var(--txt); border:1px solid var(--line); border-radius:12px; padding:9px 12px; font-size:13.5px; min-height:42px; }
.pill-row { display:flex; flex-wrap:wrap; gap:8px; }
.p-opt { background:var(--bg); color:var(--txt); border:1px solid var(--line); border-radius:999px; padding:8px 14px; font-size:13px; font-weight:500; cursor:pointer; min-height:38px; }
.p-opt.active { background:var(--txt); color:var(--surf); border-color:var(--txt); font-weight:600; }

.range-card { background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:12px 14px 10px; display:flex; flex-direction:column; gap:10px; }
.range-top { display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:var(--mut); }
.range-top strong { color:var(--txt); font-weight:700; font-variant-numeric:tabular-nums; }
.dual { position:relative; height:22px; display:flex; align-items:center; }
.d-track { position:absolute; left:0; right:0; height:4px; border-radius:99px; background:var(--line); }
.d-fill { position:absolute; height:4px; border-radius:99px; background:var(--pri); }
.dual input[type="range"] { position:absolute; left:0; width:100%; margin:0; background:none; border:none; padding:0; pointer-events:none; -webkit-appearance:none; appearance:none; height:22px; }
.dual input[type="range"]::-webkit-slider-thumb { pointer-events:auto; -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:var(--surf); border:2px solid var(--txt); cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.22); }
.dual input[type="range"]::-moz-range-thumb { pointer-events:auto; width:18px; height:18px; border-radius:50%; background:var(--surf); border:2px solid var(--txt); cursor:pointer; }

.d-actions { display:flex; gap:8px; flex-wrap:wrap; }
.sec-lbl { font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--mut); font-weight:600; margin-bottom:8px; }
.unit-list { display:flex; flex-direction:column; gap:8px; }
.unit-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 14px; background:var(--bg); border:1px solid var(--line); border-radius:14px; text-decoration:none; color:var(--txt); }
a.unit-row:hover { border-color:var(--pri); }
.u-left { min-width:0; }
.u-price { font-family:var(--font-head); font-size:15.5px; font-weight:700; font-variant-numeric:tabular-nums; }
.u-meta { font-size:12px; color:var(--mut); margin-top:2px; }
.u-right { font-size:12px; font-weight:600; color:var(--pri); white-space:nowrap; display:flex; align-items:center; gap:6px; }
.zb-dot { width:7px; height:7px; border-radius:50%; background:var(--sage); display:inline-block; }

.info-strip { background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:12px 14px; font-size:13px; line-height:1.5; color:var(--txt); }
.info-strip small { display:block; color:var(--mut); font-size:11.5px; margin-top:3px; }
.g2 { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.met { background:var(--bg); border:1px solid var(--line); border-radius:13px; padding:11px 12px; }
.met small { display:block; font-size:11px; color:var(--mut); }
.met strong { display:block; font-size:14px; font-weight:600; margin-top:2px; line-height:1.3; }
.risk-low { color:var(--sage); } .risk-moderate { color:var(--amb); } .risk-high { color:var(--red); }

.quiet-links { display:flex; flex-direction:column; gap:8px; }
.quiet-links a { font-size:13px; color:var(--mut); text-decoration:none; display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--line); }
.quiet-links a:hover { color:var(--txt); }
.rev { background:var(--bg); border-radius:12px; padding:10px 12px; font-size:13px; line-height:1.45; margin-top:7px; }
textarea { width:100%; background:var(--bg); color:var(--txt); border:1px solid var(--line); border-radius:12px; padding:10px 12px; font-size:13.5px; }
.help-txt { font-size:13px; color:var(--mut); line-height:1.5; }

.modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.48); display:none; place-items:center; z-index:1000; padding:12px; backdrop-filter:blur(3px); }
.mcard { background:var(--surf); border:1px solid var(--line); border-radius:20px; width:880px; max-width:100%; max-height:88dvh; overflow:auto; padding:20px; box-shadow:var(--sh); }
.m-head { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.m-head h2 { font-size:18px; font-weight:700; }
table.ctbl { width:100%; border-collapse:collapse; margin-top:14px; font-size:13px; }
table.ctbl th, table.ctbl td { border:1px solid var(--line); padding:10px; text-align:left; }
table.ctbl th { background:var(--bg); color:var(--mut); font-weight:600; }
.empty { text-align:center; padding:44px 16px; color:var(--mut); }
.empty p { margin-bottom:14px; }
.toast { position:fixed; bottom:74px; left:50%; transform:translateX(-50%) translateY(16px); background:var(--txt); color:var(--surf); padding:10px 18px; border-radius:999px; font-size:13px; font-weight:600; opacity:0; pointer-events:none; transition:all .2s; z-index:1200; box-shadow:var(--sh); }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width: 1024px) {
  .topbar { padding:8px 12px; gap:8px; flex-wrap:wrap; min-height:auto; }
  .brand { order:1; } .h-right { order:2; }
  .omni { order:3; flex:1 0 100%; max-width:100%; }
  .lbl { display:none; }
  .subbar { padding:7px 12px; }
  #listPane { width:100%; border-right:none; }
  body.view-list #mapPane, body.view-map #listPane { display:none; }
  body.view-map #mapPane { display:block; }
  .mob-float { display:inline-flex; }
  #cardList { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); align-content:start; padding:12px 12px 86px; }
  .sheet { width:100%; top:auto; bottom:0; height:88dvh; border-left:none; border-top:1px solid var(--line); border-radius:22px 22px 0 0; }
}
@media (max-width: 560px) {
  #cardList { grid-template-columns:1fr; }
}
/* Bombay Homes Signature Identity — Art Deco Sea-Pine, Limestone & Antique Brass */
:root {
  --bg:#f2ede3; --surf:#fbf9f4; --card:#fffdf9; --hover:#ebe4d7; --line:#e1d8c7;
  --txt:#162421; --mut:#6d6a61; --pri:#c25238; --pri-h:#a7422a; --pri-s:rgba(194,82,56,.11);
  --pine:#162a27; --pine-l:#1f3b36; --sage:#1f6b5c; --sage-s:#e5f2ee; --brass:#c49e5c; --brass-s:rgba(196,158,92,.14);
  --pill-bg:#fffdf9; --pill-txt:#162a27; --pill-sel:#c25238; --pill-sel-txt:#fffdf9;
  --sh-sm:0 1px 2px rgba(22,42,39,.05), 0 4px 12px rgba(22,42,39,.04);
  --sh:0 12px 32px rgba(22,42,39,.15);
}
[data-theme="dark"] {
  --bg:#0e1211; --surf:#151b19; --card:#1a221f; --hover:#222c28; --line:#283430;
  --txt:#f2ede2; --mut:#98a19c; --pri:#e27358; --pri-h:#f08469; --pri-s:rgba(226,115,88,.16);
  --pine:#0f1615; --pine-l:#1b2825; --sage:#4db8a3; --sage-s:rgba(77,184,163,.14); --brass:#d0ae6f; --brass-s:rgba(208,174,111,.15);
  --pill-bg:#1e2825; --pill-txt:#f2ede2; --pill-sel:#e27358; --pill-sel-txt:#0e1211;
}

.topbar { background:var(--pine); border-bottom:1px solid rgba(196,158,92,.38); color:#f6f1e7; }
.logo { background:rgba(196,158,92,.14); color:var(--brass); border:1px solid rgba(196,158,92,.48); border-radius:11px; }
.brand-txt h1 { font-family:var(--font-serif); font-size:18px; font-weight:600; letter-spacing:-.01em; color:#fbf7ee; }
.brand-txt small { color:rgba(246,241,231,.64); }

.topbar .omni { background:rgba(255,253,249,.09); border-color:rgba(196,158,92,.28); }
.topbar .omni:focus-within { background:rgba(255,253,249,.15); border-color:var(--brass); }
.topbar .seg-mini { background:rgba(0,0,0,.22); border-color:rgba(255,255,255,.10); }
.topbar .seg-mini button { color:rgba(246,241,231,.68); }
.topbar .seg-mini button.active { background:var(--brass); color:#141e1c; }
.topbar .omni-sep { background:rgba(246,241,231,.18); }
.topbar .s-ic { color:rgba(246,241,231,.60); }
.topbar .search-wrap input { color:#fbf7ee; }
.topbar .search-wrap input::placeholder { color:rgba(246,241,231,.52); }

.topbar .btn { background:rgba(255,253,249,.08); color:#f6f1e7; border-color:rgba(246,241,231,.18); }
.topbar .btn:hover { background:rgba(255,253,249,.16); border-color:rgba(196,158,92,.55); }
.topbar .btn.active { background:var(--brass); color:#141e1c; border-color:var(--brass); }

.subbar { background:var(--surf); border-bottom:1px solid var(--line); }
.n-chip { background:transparent; color:var(--txt); border:none; border-radius:999px; padding:6px 12px; font-size:12.5px; font-weight:600; cursor:pointer; white-space:nowrap; transition:all .14s; }
.n-chip:hover { background:var(--hover); }
.n-chip.active { background:var(--pine); color:#f6f1e7; box-shadow:0 2px 6px rgba(22,42,39,.18); }
[data-theme="dark"] .n-chip.active { background:var(--brass); color:#111715; }
.chip-sep { width:1px; height:18px; background:var(--line); flex-shrink:0; margin:0 3px; }
.chip.active { background:var(--sage); color:#fff; border-color:var(--sage); }

.hc { position:relative; border-radius:14px; border:1px solid var(--line); background:var(--card); overflow:hidden; transition:border-color .15s, transform .15s, box-shadow .15s; }
.hc::before { content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; border-radius:0 3px 3px 0; background:transparent; transition:background .15s; }
.hc:hover { border-color:rgba(196,158,92,.65); transform:translateY(-1px); box-shadow:0 8px 22px rgba(22,42,39,.08); }
.hc:hover::before { background:var(--brass); }
.hc.sel { border-color:var(--pine); box-shadow:0 0 0 1px var(--pine); }
.hc.sel::before { background:var(--pri); }
.hc-name { font-family:var(--font-serif); font-size:16px; font-weight:600; letter-spacing:-.01em; color:var(--txt); }
.hc-loc { text-transform:uppercase; letter-spacing:.06em; font-size:10.5px; font-weight:600; color:var(--mut); }
.hc-star { color:var(--brass); font-weight:700; letter-spacing:0; }
.hc-price { color:var(--txt); }
.tag.zb-brass { background:var(--brass-s); color:#8a6830; }
[data-theme="dark"] .tag.zb-brass { color:var(--brass); }

.s-head { background:var(--surf); position:relative; }
.s-head h2, .m-head h2 { font-family:var(--font-serif); font-size:20px; font-weight:600; letter-spacing:-.015em; }
.s-head::after { content:""; position:absolute; left:20px; bottom:-1px; width:44px; height:2px; background:var(--brass); border-radius:2px; }
.s-head::before { content:""; position:absolute; left:68px; bottom:-1px; width:10px; height:2px; background:var(--pri); border-radius:2px; }

#map.map-street .leaflet-tile-pane { filter:sepia(0.14) saturate(0.60) contrast(0.95) brightness(1.01); }
#map.map-dark .leaflet-tile-pane { filter:invert(100%) hue-rotate(165deg) brightness(.86) contrast(.93) saturate(.42); }
.seg-map, .map-pill { background:rgba(251,249,244,.88); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-color:rgba(22,42,39,.14); }
[data-theme="dark"] .seg-map, [data-theme="dark"] .map-pill { background:rgba(21,27,25,.88); border-color:rgba(208,174,111,.22); }
.seg-map button.active, .map-pill.active { background:var(--pine); color:#f6f1e7; border-color:var(--pine); }
[data-theme="dark"] .seg-map button.active, [data-theme="dark"] .map-pill.active { background:var(--brass); color:#111715; border-color:var(--brass); }

.cluster-pill { background:var(--pine); color:#f6f1e7; border:1.5px solid var(--brass); box-shadow:0 4px 14px rgba(14,24,22,.32); padding:5px 11px; }
.cluster-pill:hover { background:var(--pri); border-color:#fff; color:#fff; }
.cluster-cnt { color:var(--brass); opacity:1; font-weight:600; }
.cluster-pill:hover .cluster-cnt { color:#fff; }
.price-pill { background:var(--pill-bg); color:var(--pill-txt); border:1px solid rgba(22,42,39,.18); }
.price-pill.val { background:var(--sage); color:#fff; border-color:var(--sage); }
.area-pill { background:rgba(251,249,244,.92); border:1px dashed var(--brass); color:var(--txt); }
[data-theme="dark"] .area-pill { background:rgba(21,27,25,.92); color:#f2ede2; }
.mob-float { background:var(--pine); color:#f6f1e7; border:1px solid rgba(196,158,92,.45); }
