/* Pink City Real Estate — design system
   Warm ivory ground (easy on the eyes), deep navy for text & primary actions,
   Jaipur pink for the brand and key actions, stamp green for verification, a little gold for premium accents. */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20B9; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20B9; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20B9; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20B9; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20B9; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20B9; }
/* Devanagari faces are a separate family, used only on Hindi pages: English pages never download them (the "हिंदी" switch uses the phone's own font) */
@font-face { font-family: "MuktaDeva"; src: url("../fonts/mukta-devanagari-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "MuktaDeva"; src: url("../fonts/mukta-devanagari-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC; }
@font-face { font-family: "MuktaDeva"; src: url("../fonts/mukta-devanagari-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC; }
@font-face { font-family: "MuktaDeva"; src: url("../fonts/mukta-devanagari-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC; }

:root {
  --ink: #13203B;
  --ink-2: #2A3A60;
  --paper: #FAF7F2;
  --paper-2: #F3EDE3;
  --card: #FFFFFF;
  --line: #E6DFD3;
  --line-2: #F0EAE0;
  --muted: #5D6476;
  --soft: #969AA6;
  --stamp: #0E7C59;
  --stamp-bg: #E4F3EC;
  --rose: #D93A73;
  --rose-2: #BD2C61;
  --rose-bg: #FDEAF1;
  --gold: #B0823A;
  --gold-2: #D9B26A;
  --gold-bg: #F7EEDC;
  --warn: #9A5600;
  --warn-bg: #FFF3E0;
  --deal: #1F55C4;
  --deal-bg: #EAF0FD;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --navy-deep: #0E1830;
  --solid: #13203B;
  --glass: rgba(250,247,242,.86);
  --bar: rgba(255,255,255,.96);
  --display: "Fraunces", "Mukta", Georgia, serif;
  --ui: "Bricolage", "Mukta", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-xl: 24px; --r-lg: 16px; --r-md: 12px; --r-sm: 9px;
  --shadow: 0 1px 2px rgba(19,32,59,.05), 0 8px 24px rgba(19,32,59,.07);
  --shadow-lg: 0 2px 6px rgba(19,32,59,.06), 0 24px 60px rgba(19,32,59,.14);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
h1, h2, h3, h4 { font-family: var(--ui); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #7aa2ff; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tnum { font-variant-numeric: tabular-nums; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } .wrap { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Buttons & form controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .68em 1.15em; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: .97rem; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--solid); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-stamp { background: var(--stamp); color: #fff; }
.btn-stamp:hover { background: #09684a; color: #fff; }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: #a3184a; color: #fff; }
.btn-line { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: var(--card); color: var(--danger); border-color: #f2c4bf; }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-sm { padding: .42em .8em; font-size: .875rem; }
.btn-lg { padding: .85em 1.4em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .err, .err-text { font-size: .85rem; color: var(--danger); }
.input, select.input, textarea.input { width: 100%; padding: .66em .8em; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); min-height: 44px; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgba(43,58,99,.15); }
.input.is-invalid { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

/* segmented choice chips (radio/checkbox) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .92rem; font-weight: 600; cursor: pointer; }
.choice input:checked + span { background: var(--solid); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid #7aa2ff; outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand b { font-family: var(--ui); font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brand small { display: block; font-size: .72rem; color: var(--rose); font-weight: 700; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { padding: .5em .75em; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.on { background: var(--line-2); color: var(--ink); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .82rem; font-weight: 700; }
.lang-toggle a { padding: .3em .7em; text-decoration: none; color: var(--muted); }
.lang-toggle a.on { background: var(--solid); color: #fff; }
.city-pick { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .4em .6em; background: var(--card); font-weight: 600; font-size: .9rem; max-width: 140px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--solid); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); min-width: 220px; padding: 6px; display: none; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: .55em .8em; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: .95rem; }
.dropdown a:hover, .dropdown button:hover { background: var(--line-2); }
.badge-count { background: var(--rose); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 6px; font-weight: 700; margin-left: 4px; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .city-pick { display: none; }
}

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 76px; right: 16px; z-index: 80; display: grid; gap: 8px; max-width: min(420px, calc(100% - 32px)); }
.flash { padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.flash.success { border-left: 4px solid var(--stamp); }
.flash.error { border-left: 4px solid var(--danger); }
.flash.info { border-left: 4px solid var(--deal); }
.flash button { margin: -8px -8px -8px auto; min-width: 40px; min-height: 40px; flex: none; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; background: var(--card); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: .35em; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hero { padding: 32px 0 28px; } }

.asksearch { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 6px; display: flex; align-items: center; gap: 6px; box-shadow: 0 10px 30px rgba(26,35,64,.10); }
.asksearch input { flex: 1; border: 0; outline: none; font-size: 1.08rem; padding: 12px 10px; min-width: 0; background: transparent; }
.asksearch .mic { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; flex: none; }
.asksearch .mic.listening { background: var(--rose); border-color: var(--rose); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(194,30,86,.45); } 50% { box-shadow: 0 0 0 8px rgba(194,30,86,0); } }
.asksearch .btn { height: 46px; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ask-examples button { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .35em .85em; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.ask-examples button:hover { border-color: var(--ink-2); }
.ask-understood { margin-top: 12px; font-size: .95rem; color: var(--stamp); font-weight: 600; min-height: 1.4em; }
.quick-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.quick-tabs a { padding: .4em .9em; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--muted); border: 1px solid transparent; }
.quick-tabs a.on { color: var(--ink); border-color: var(--ink); }

/* ---------- The Pakka stamp (signature element) ---------- */
.stamp-receipt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden; }
.stamp-receipt h3 { margin-bottom: 4px; padding-right: 110px; }
.stamp-seal { width: 112px; height: 112px; position: absolute; right: 6px; top: 6px; transform: rotate(-14deg); color: var(--stamp); opacity: .92; }
.stamp-seal text { font-family: var(--ui); font-weight: 800; font-size: 11.5px; letter-spacing: 2.2px; fill: currentColor; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.checklist .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--stamp-bg); color: var(--stamp); }
.checklist li.no .tick { background: var(--line-2); color: var(--soft); }
.checklist li.no { color: var(--muted); }
.checklist b { font-weight: 700; }

.pakka-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--stamp-bg); color: var(--stamp); border: 1px solid #b9e0cf; border-radius: 999px; padding: .12em .6em .12em .4em; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.pakka-chip svg { width: 15px; height: 15px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: .12em .6em; font-weight: 700; font-size: .78rem; white-space: nowrap; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.chip.rose { background: var(--rose-bg); color: var(--rose); border-color: #f4c3d4; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: #f5d8ad; }
.chip.deal { background: var(--deal-bg); color: var(--deal); border-color: #c7d6f8; }
.chip.ink { background: var(--solid); color: #fff; border-color: var(--ink); }
.chip.green { background: var(--stamp-bg); color: var(--stamp); border-color: #b9e0cf; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Property card ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.pcard:hover { border-color: #b8c2d6; }
.pcard .ph { position: relative; aspect-ratio: 4 / 3; background: var(--line-2); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .ph .count { position: absolute; right: 10px; bottom: 10px; background: rgba(26,35,64,.78); color: #fff; font-size: .75rem; padding: .1em .5em; border-radius: 6px; }
.save-btn { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.95); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.save-btn.on { color: var(--rose); }
.save-btn.on svg { fill: currentColor; }
.pcard .body { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; }
.pcard .price { font-family: var(--ui); font-size: 1.38rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard .price small { font-family: var(--body); font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.pcard .title { font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.pcard .title::after { content: ""; position: absolute; inset: 0; }
.pcard .place { color: var(--muted); font-size: .92rem; }
.specs { display: flex; flex-wrap: wrap; gap: 0; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.specs span { padding: 0 10px; border-left: 1px solid var(--line); }
.specs span:first-child { padding-left: 0; border-left: 0; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--muted); }
.pcard .save-btn { z-index: 3; }
.pcard .foot a { position: relative; z-index: 2; }
.pcard.featured { border-color: #e6a9be; }

/* ---------- Search page ---------- */
.search-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; padding: 24px 0 48px; }
.search-layout.with-map { grid-template-columns: 260px minmax(0, 1.25fr) minmax(0, .8fr); }
.search-layout .grid-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; align-self: start; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.filters h4 { font-size: .95rem; margin: 18px 0 8px; font-family: var(--body); font-weight: 700; }
.filters h4:first-child { margin-top: 0; }
.filters .choice span { font-size: .85rem; padding: .35em .75em; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head h1 { font-size: 1.45rem; margin: 0; }
.mapbox { position: sticky; top: 80px; height: calc(100vh - 100px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.mapbox #map { width: 100%; height: 100%; }
.map-price { background: var(--solid); color: #fff; font-weight: 700; font-size: .78rem; padding: 2px 7px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.25); border: 2px solid #fff; }
.filter-toggle { display: none; }
@media (max-width: 1100px) { .search-layout.with-map { grid-template-columns: 270px minmax(0, 1fr); } .search-layout.with-map .mapbox { display: none; } .search-layout.with-map.map-only .mapbox { display: block; } }
@media (max-width: 820px) {
  .search-layout, .search-layout.with-map { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; z-index: 90; border-radius: 0; max-height: none; top: 0; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .mapbox { height: 60vh; position: relative; top: 0; }
}
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager .on { background: var(--solid); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 48px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty h3 { margin-bottom: 6px; }

/* ---------- Property page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 8px; border-radius: var(--r-lg); overflow: hidden; margin-top: 18px; }
.gallery a { position: relative; display: block; background: var(--line-2); }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .more { position: absolute; inset: 0; background: rgba(26,35,64,.55); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px; } .gallery a:first-child { grid-column: span 2; grid-row: auto; } .gallery a:nth-child(n+4) { display: none; } }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 26px 0 56px; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.detail-price { font-family: var(--ui); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 20px 0; }
.facts div { background: var(--card); padding: 12px 14px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin-bottom: 10px; }
.sticky-side { position: sticky; top: 80px; display: grid; gap: 16px; }
.owner-line { display: flex; gap: 12px; align-items: center; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; }
.amenities span { border: 1px solid var(--line); border-radius: 999px; padding: .25em .8em; font-size: .9rem; background: var(--card); }
.fair-bar { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--deal) 0%, var(--stamp) 35%, var(--stamp) 65%, var(--warn) 100%); margin: 16px 0 8px; }
.fair-bar i { position: absolute; top: -5px; width: 4px; height: 20px; background: var(--solid); border-radius: 2px; transform: translateX(-2px); }
.fair-legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.verdict { font-family: var(--ui); font-weight: 800; font-size: 1.3rem; }
.verdict.fair { color: var(--stamp); } .verdict.high { color: var(--warn); } .verdict.low { color: var(--deal); }
.ask-box { display: flex; gap: 8px; margin-top: 10px; }
.ask-box input { flex: 1; }
.ask-answer { margin-top: 12px; padding: 12px 14px; background: var(--paper); border-radius: var(--r-md); font-size: .97rem; display: none; }
.ask-answer.show { display: block; }
.mini-map { height: 260px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.desc { white-space: pre-line; }

/* ---------- Generic blocks ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.steps li { list-style: none; padding: 22px 20px; border-left: 1px solid var(--line); counter-increment: s; }
.steps li:first-child { border-left: 0; }
.steps li::before { content: counter(s); font-family: var(--ui); font-weight: 800; font-size: 1.8rem; color: var(--stamp); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { border-left: 0; } .steps li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { border-left: 0; border-top: 1px solid var(--line); } .steps li:first-child { border-top: 0; } }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise > div { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.promise h3 { margin-bottom: 6px; }
.promise p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

.loc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.loc-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 600; }
.loc-list a:hover { border-color: var(--ink); color: var(--ink); }
.loc-list a span { color: var(--muted); font-weight: 400; font-size: .88rem; }

.cta-band { background: var(--solid); color: #fff; border-radius: var(--r-lg); padding: 34px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #c9d1e6; margin: 0; max-width: 56ch; }
.cta-band .btn-line { background: transparent; color: #fff; border-color: #56628a; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl th { font-size: .82rem; color: var(--muted); font-weight: 700; background: var(--paper); }
.tbl tr:last-child td { border-bottom: 0; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan.best { border: 2px solid var(--ink); }
.plan .amt { font-family: var(--ui); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--stamp); font-weight: 800; margin-right: 8px; }
.plan .btn { margin-top: auto; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.auth-card h1 { font-size: 1.7rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp-input { letter-spacing: .6em; font-size: 1.5rem; text-align: center; font-weight: 800; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button, .tabs a { background: none; border: 0; padding: .6em .9em; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; text-decoration: none; margin-bottom: -1px; }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; padding: 26px 0 56px; }
.dash-nav { display: grid; gap: 2px; align-self: start; position: sticky; top: 80px; }
.dash-nav a { padding: .6em .8em; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; display: flex; justify-content: space-between; }
.dash-nav a:hover { background: var(--card); }
.dash-nav a.on { background: var(--card); border: 1px solid var(--line); }
.dash-nav .sep { height: 1px; background: var(--line); margin: 8px 0; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash > * { min-width: 0; }
  .dash-nav { position: static; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 0 8px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .dash-nav.at-end { -webkit-mask-image: none; mask-image: none; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a { flex: none; white-space: nowrap; border: 1px solid var(--line); background: var(--card); padding: 0 14px; min-height: 40px; align-items: center; border-radius: 999px; font-size: .92rem; scroll-snap-align: start; }
  .dash-nav a.on { background: var(--solid); border-color: var(--solid); color: #fff; }
  .dash-nav .sep { display: none; }
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.stat b { display: block; font-family: var(--ui); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.list-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.list-row + .list-row { margin-top: 10px; }
.list-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--line-2); }
.list-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .list-row { grid-template-columns: 72px minmax(0, 1fr); } .list-row img { width: 72px; height: 56px; } .list-row .actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* chat */
.chat { display: grid; grid-template-rows: auto 1fr auto; height: calc(100vh - 170px); min-height: 480px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chat-body { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--solid); color: #fff; border-color: var(--ink); }
.msg.sys { align-self: center; background: var(--stamp-bg); color: var(--stamp); border-color: #b9e0cf; font-size: .88rem; font-weight: 600; }
.msg time { display: block; font-size: .72rem; opacity: .65; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; }

/* posting wizard */
.wizard { max-width: 860px; margin: 0 auto; padding: 26px 0 64px; }
.wizard fieldset { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg); padding: 22px; margin: 0 0 18px; }
.wizard legend { font-family: var(--ui); font-weight: 700; font-size: 1.15rem; padding: 0 8px; }
.photo-drop { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 22px; text-align: center; background: var(--paper); cursor: pointer; }
.photo-drop.drag { border-color: var(--ink); background: var(--card); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--line-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs figcaption { position: absolute; left: 4px; bottom: 4px; }
.thumbs .rm { position: absolute; right: 4px; top: 4px; }
.only-for { display: none; }
.only-for.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 40px 0 24px; margin-top: 40px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
.foot-grid h4 { font-family: var(--body); font-size: .95rem; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; font-size: .72rem; font-weight: 700; color: var(--muted); text-decoration: none; }
  .mobile-bar a.on { color: var(--ink); }
  .mobile-bar svg { width: 22px; height: 22px; }
  body { padding-bottom: 64px; }
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 55; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 8px; }
  .sticky-cta .btn { flex: 1; }
}
.sticky-cta { display: none; }
@media (max-width: 720px) { .sticky-cta { display: flex; } }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(26,35,64,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.open { display: flex; }
.modal-card { background: var(--card); border-radius: var(--r-lg); padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; }
.modal-card h3 { margin-bottom: 12px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,14,28,.94); z-index: 110; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.lightbox .lb-close { top: 16px; right: 16px; } .lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }

.note { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; font-size: .92rem; color: var(--ink-2); }
.note.green { background: var(--stamp-bg); border-color: #b9e0cf; color: #0a5c41; }
.note.warn { background: var(--warn-bg); border-color: #f5d8ad; color: #6f3f00; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.kpi-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi-list div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.kpi-list b { display: block; font-family: var(--ui); font-size: 1.35rem; }
.kpi-list span { font-size: .85rem; color: var(--muted); }
.stars { color: #c98a00; letter-spacing: 2px; }
.nav a, .brand b, .brand small { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 961px) { .nav .hide-lg { display: none; } }

/* =====================================================================
   Premium layer (2026 redesign) — overrides the base styles above
   ===================================================================== */
body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: var(--rose-bg); color: var(--rose-2); }
.wrap { padding: 0 24px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
@media (max-width: 480px) { .hide-xs { display: none !important; } }

/* buttons */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .005em; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--solid); box-shadow: 0 6px 18px rgba(19,32,59,.22); }
.btn-primary:hover { background: var(--ink-2); }
.btn-rose { background: var(--rose); box-shadow: 0 6px 18px rgba(196,45,98,.28); }
.btn-rose:hover { background: var(--rose-2); box-shadow: 0 10px 26px rgba(196,45,98,.34); transform: translateY(-1px); }
.btn-line { background: var(--card); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); background: var(--card); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1407; box-shadow: 0 8px 22px rgba(176,130,58,.35); }
.btn-gold:hover { color: #1b1407; transform: translateY(-1px); }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; }
.input, select.input, textarea.input { border-radius: var(--r-sm); border-color: var(--line); }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(19,32,59,.08); }

/* header */
.site-header { background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(19,32,59,.06); }
.site-header .wrap { height: 74px; gap: 22px; }
.brand { gap: 11px; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 3px 10px rgba(19,32,59,.18); }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.015em; line-height: .95; }
.brand small { font-family: var(--body); font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 4px; }
.nav { gap: 2px; }
.nav a { position: relative; font-weight: 600; color: var(--ink-2); padding: .55em .8em; border-radius: 999px; }
.nav a:hover { background: rgba(19,32,59,.05); color: var(--ink); }
.nav a.on { background: transparent; color: var(--ink); }
.nav a.on::after { content: ""; position: absolute; left: .8em; right: .8em; bottom: .15em; height: 2px; border-radius: 2px; background: var(--rose); }
.city-pick { border-radius: 999px; border-color: var(--line); background: var(--card); padding: .45em .8em; }
.lang-toggle { border-color: var(--line); background: var(--card); }
.lang-toggle a { padding: .38em .75em; }
.user-menu > button { background: var(--card); }
@media (max-width: 960px) { .nav { top: 74px; background: var(--paper); } }

/* eyebrow / kicker / section titles */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: .42em .95em .42em .7em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; font-weight: 700; color: var(--ink-2); box-shadow: 0 2px 10px rgba(19,32,59,.05); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); box-shadow: 0 0 0 4px rgba(14,124,89,.15); }
.kicker { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: 8px; }
.kicker.light { color: var(--gold-2); }
.sec-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-title h2 { margin: 0; }
.sec-title p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.sec-title.center { flex-direction: column; align-items: center; text-align: center; }
.sec-title.center p { margin-inline: auto; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; padding: .5em 0; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover { color: var(--rose); }
.link-arrow:hover svg { transform: translateX(3px); }
.section { padding: 72px 0; }
@media (max-width: 720px) { .section { padding: 48px 0; } .sec-title { flex-direction: column; align-items: flex-start; gap: 6px; } .sec-title.center { align-items: center; } }

/* ---------- Hero ---------- */
.hero2 { position: relative; overflow: hidden; padding: 56px 0 84px; background:
  radial-gradient(1100px 520px at 88% -10%, rgba(196,45,98,.10), transparent 60%),
  radial-gradient(800px 480px at -10% 110%, rgba(176,130,58,.12), transparent 60%),
  var(--paper); }
.hero2-arches { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; color: var(--gold); opacity: .16; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.hero2-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero2 h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.02; margin: 22px 0 18px; max-width: 13ch; }
.hero2 h1 em { font-style: italic; color: var(--rose); font-weight: 600; }
.hero2 .lede { font-size: 1.18rem; color: var(--muted); max-width: 50ch; margin-bottom: 28px; }
.search-shell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 10px; box-shadow: var(--shadow-lg); }
.seg { display: flex; gap: 4px; padding: 4px 4px 10px; flex-wrap: wrap; }
.seg [role=tab] { border: 0; background: transparent; padding: .5em 1.05em; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--muted); cursor: pointer; text-decoration: none; }
.seg [role=tab]:hover { color: var(--ink); background: var(--paper); }
.seg [role=tab].on { background: var(--solid); color: #fff; }
.search-shell .asksearch { border: 1.5px solid var(--line); box-shadow: none; border-radius: 18px; padding: 6px; background: var(--paper); }
.search-shell .asksearch:focus-within { border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 4px rgba(19,32,59,.07); }
.asksearch input { font-size: 1.1rem; }
.asksearch .mic { border-radius: 14px; background: var(--card); border-color: var(--line); color: var(--ink-2); }
.asksearch .btn { height: 50px; padding-inline: 1.4em; border-radius: 14px; }
.search-shell .ask-understood { margin: 8px 6px 0; min-height: 0; }
.search-shell .ask-understood:empty { display: none; }
.ask-examples { margin: 10px 4px 2px; gap: 6px; align-items: center; }
.ask-label { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; color: var(--soft); font-weight: 600; margin-right: 2px; }
.ask-examples button { background: transparent; border: 1px dashed var(--line); font-size: .86rem; color: var(--ink-2); padding: .3em .8em; }
.ask-examples button:hover { border-style: solid; border-color: var(--ink-2); background: var(--paper); }
.trust-row { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 0; flex-wrap: wrap; }
.trust-row li { padding: 0 28px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.trust-row li:first-child { padding-left: 4px; border-left: 0; }
.trust-row b { font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1; color: var(--ink); }
.trust-row span { font-size: .88rem; color: var(--muted); font-weight: 600; }

.hero2-art { position: relative; height: 600px; }
.hero2-art figure { position: absolute; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-lg); background: var(--line-2); }
.hero2-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero2-art:hover img { transform: scale(1.04); }
.hero2-art .ph-a { left: 0; top: 0; width: 60%; height: 100%; border-radius: 200px 200px 28px 28px; }
.hero2-art .ph-b { right: 0; top: 6%; width: 36%; height: 44%; }
.hero2-art .ph-c { right: 0; bottom: 0; width: 36%; height: 44%; }
.float-badge { position: absolute; left: 44%; bottom: 9%; width: 250px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite; }
.fb-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.fb-head b { font-family: var(--ui); font-size: 1rem; }
.fb-seal { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--stamp); color: #fff; }
.float-badge ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.float-badge li { display: flex; gap: 7px; align-items: center; font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.float-badge li svg { color: var(--stamp); flex: none; }
.float-price { position: absolute; left: -18px; top: 12%; background: var(--solid); color: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; animation: floaty 7s ease-in-out infinite reverse; }
.float-price b { font-family: var(--ui); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.float-price span { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: #c8cfe0; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1060px) { .hero2-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero2-art { height: 460px; max-width: 640px; } }
@media (max-width: 600px) {
  .hero2 { padding: 28px 0 56px; }
  .hero2 h1 { margin-top: 16px; }
  .hero2 .lede { font-size: 1.05rem; }
  .hero2-art { height: 340px; }
  .hero2-art .ph-a { border-radius: 140px 140px 22px 22px; }
  .float-badge { left: auto; right: 4%; bottom: 4%; width: 210px; padding: 11px 13px; }
  .float-badge li { font-size: .78rem; }
  .float-price { left: 4%; top: auto; bottom: 30%; }
  .trust-row li { padding: 0 16px; }
  .trust-row b { font-size: 1.7rem; }
  .asksearch input { font-size: 1rem; }
}

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat { display: grid; justify-items: start; gap: 4px; padding: 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.cat-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-bg); color: var(--rose); margin-bottom: 10px; transition: background .2s, color .2s; }
.cat:nth-child(2n) .cat-ic { background: var(--gold-bg); color: var(--gold); }
.cat:nth-child(3n) .cat-ic { background: var(--stamp-bg); color: var(--stamp); }
.cat:hover .cat-ic { background: var(--solid); color: #fff; }
.cat b { font-size: 1.02rem; font-weight: 700; }
.cat small { color: var(--muted); font-size: .86rem; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cat { padding: 16px 14px; } .cat-ic { width: 44px; height: 44px; } }

/* ---------- Property card ---------- */
.grid-cards { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.pcard { border: 1px solid var(--line); border-radius: 20px; background: var(--card); transition: transform .25s, box-shadow .25s, border-color .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard .ph { aspect-ratio: 4 / 3.1; overflow: hidden; margin: 8px 8px 0; border-radius: 14px; }
.pcard .ph img { transition: transform .6s ease; }
.pcard:hover .ph img { transform: scale(1.06); }
.pcard .ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(14,24,48,.35), transparent); pointer-events: none; }
.pcard .ph .count { z-index: 2; background: rgba(14,24,48,.6); backdrop-filter: blur(4px); border-radius: 999px; padding: .15em .6em; }
.save-btn { backdrop-filter: blur(4px); transition: transform .2s; }
.save-btn:hover { transform: scale(1.08); }
.pcard .body { padding: 14px 16px 16px; gap: 5px; }
.pcard .price { font-size: 1.45rem; }
.pcard .title { font-size: 1.02rem; font-weight: 700; }
.pcard .place { display: flex; align-items: center; gap: 4px; }
.specs { margin-top: 4px; gap: 6px; }
.specs span { border: 0; padding: .2em .65em; background: var(--paper); border-radius: 999px; font-size: .82rem; color: var(--ink-2); }
.specs span:first-child { padding-left: .65em; }
.pcard .foot { border-top-color: var(--line-2); }
.pcard.featured { border-color: var(--line); box-shadow: 0 0 0 2px var(--rose-bg); }
.pakka-chip { background: rgba(255,255,255,.95); border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pcard .ph .tags .chip { box-shadow: 0 2px 8px rgba(0,0,0,.12); border-color: transparent; }

/* ---------- Pakka band ---------- */
.pakka-band { position: relative; background: var(--navy-deep); color: #fff; padding: 84px 0; overflow: hidden; }
.pakka-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(196,45,98,.28), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(176,130,58,.22), transparent 60%); pointer-events: none; }
.pakka-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.pakka-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; }
.pakka-band p { color: #b9c1d6; font-size: 1.08rem; max-width: 46ch; margin-bottom: 26px; }
.pakka-checks { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pakka-checks .stamp-seal { position: absolute; right: -18px; top: -54px; width: 132px; height: 132px; color: var(--gold-2); opacity: .9; }
.pc-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .2s, border-color .2s; }
.pc-item:hover { background: rgba(255,255,255,.08); border-color: rgba(217,178,106,.4); }
.pc-item:last-child { grid-column: 1 / -1; }
.pc-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(14,124,89,.22); color: #6fe0b4; }
.pc-item:last-child .pc-ic { background: rgba(196,45,98,.22); color: #ff9cbf; }
.pc-item b { display: block; font-size: 1rem; margin-bottom: 2px; }
.pc-item p { margin: 0; font-size: .9rem; color: #a9b2c8; }
@media (max-width: 960px) { .pakka-grid { grid-template-columns: 1fr; gap: 36px; } .pakka-checks .stamp-seal { top: -70px; right: 0; width: 100px; height: 100px; } }
@media (max-width: 560px) { .pakka-band { padding: 56px 0; } .pakka-checks { grid-template-columns: 1fr; } }

/* ---------- Locality tiles ---------- */
.loc-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.loc-tile { position: relative; border-radius: 20px; overflow: hidden; display: block; text-decoration: none; color: #fff; background: var(--solid); }
.loc-tile.big { grid-row: span 2; }
.loc-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; opacity: .92; }
.loc-tile:hover img { transform: scale(1.06); }
.loc-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,24,48,.82), rgba(14,24,48,.05) 60%); }
.lt-text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: grid; gap: 2px; }
.lt-text b { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.loc-tile.big .lt-text b { font-size: 2rem; }
.lt-text small { font-size: .9rem; color: #dfe4ef; font-weight: 600; }
.loc-tiles:has(.loc-tile:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; grid-template-rows: 280px; }
.loc-tiles:has(.loc-tile:nth-child(2):last-child) .loc-tile.big { grid-row: auto; }
.loc-tiles:has(.loc-tile:nth-child(3):last-child) .loc-tile:nth-child(3) { grid-column: span 2; }
.loc-tiles:has(.loc-tile:only-child) { grid-template-columns: 1fr; grid-template-rows: 300px; }
.loc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.loc-chips a { display: inline-flex; align-items: center; gap: 6px; padding: .5em 1em; background: var(--card); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: border-color .2s, color .2s; }
.loc-chips a svg { color: var(--rose); }
.loc-chips a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 760px) { .loc-tiles, .loc-tiles:has(.loc-tile:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px; } .loc-tile.big { grid-row: auto; grid-column: span 2; } .loc-tiles .loc-tile:nth-child(4) { display: none; } .lt-text b, .loc-tile.big .lt-text b { font-size: 1.3rem; } }

/* ---------- How it works ---------- */
.how-sec { background: var(--paper-2); }
.steps2 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.steps2 li { position: relative; padding: 26px 22px 24px; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); }
.steps2 .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--solid); color: #fff; font-family: var(--ui); font-weight: 800; margin-bottom: 14px; }
.steps2 li:nth-child(2) .num { background: var(--rose); }
.steps2 li:nth-child(3) .num { background: var(--gold); }
.steps2 li:nth-child(4) .num { background: var(--stamp); }
.steps2 h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps2 p { margin: 0; color: var(--muted); font-size: .95rem; }
.promise2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.promise2 > div { padding: 22px; border-left: 3px solid var(--rose); background: transparent; }
.promise2 > div:nth-child(2) { border-left-color: var(--gold); }
.promise2 > div:nth-child(3) { border-left-color: var(--stamp); }
.promise2 h3 { font-size: 1.08rem; margin-bottom: 6px; }
.promise2 p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps2 { grid-template-columns: 1fr 1fr; } .promise2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps2 { grid-template-columns: 1fr; } }

/* ---------- Owner band ---------- */
.owner-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); background: var(--navy-deep); border-radius: 28px; overflow: hidden; color: #fff; position: relative; }
.owner-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 0% 0%, rgba(196,45,98,.35), transparent 60%); pointer-events: none; }
.ob-copy { position: relative; padding: 52px 48px; }
.ob-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 10px; }
.ob-copy > p { color: #b9c1d6; max-width: 48ch; font-size: 1.05rem; }
.ob-points { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 10px; }
.ob-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: #e7ebf4; }
.ob-points svg { color: var(--gold-2); flex: none; }
.ob-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ob-img { position: relative; min-height: 320px; }
.ob-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy-deep), transparent 40%); }
@media (max-width: 860px) { .owner-band { grid-template-columns: 1fr; } .ob-img { min-height: 220px; order: -1; } .ob-img::before { background: linear-gradient(0deg, var(--navy-deep), transparent 60%); } .ob-copy { padding: 30px 22px 34px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3cadb; border-top: 0; margin-top: 0; padding: 64px 0 28px; }
.site-footer .brand b { color: #fff; }
.site-footer .brand small { color: var(--gold-2); }
.foot-about { margin: 16px 0 12px; max-width: 38ch; color: #a3acc2; font-size: .94rem; }
.foot-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.foot-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { gap: 9px; }
.foot-grid a { color: #b3bbcf; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top-color: rgba(255,255,255,.1); color: #8e98b1; margin-top: 40px; }
.site-footer + .mobile-bar { }
main { min-height: 50vh; }

/* ---------- Inner pages: lift shared blocks ---------- */
.panel, .filters, .empty, .auth-card, .stat, .kpi-list div, .plan, .table-wrap, .chat, .wizard fieldset, .list-row { border-color: var(--line); border-radius: var(--r-lg); }
.panel, .auth-card, .plan { box-shadow: 0 1px 2px rgba(19,32,59,.04); }
.auth-card { border-radius: var(--r-xl); padding: 34px; box-shadow: var(--shadow); }
.facts { border-radius: var(--r-md); }
.gallery { border-radius: 22px; }
.mobile-bar { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.mobile-bar a.on { color: var(--rose); }
.choice input:checked + span { background: var(--solid); border-color: var(--ink); }
.pager .on { background: var(--solid); }

/* ---------- Reveal on scroll ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .float-badge, .float-price { animation: none; } }
.pakka-copy .stamp-seal { position: static; display: block; width: 110px; height: 110px; color: var(--gold-2); margin: 0 0 18px -6px; transform: rotate(-12deg); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.duo .grid-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.solo .duo-col + .duo-col { margin-top: 72px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; gap: 56px; } }
.loc-tiles .loc-tile:nth-child(4):last-child { grid-column: span 2; }
@media (max-width: 760px) { .loc-tiles .loc-tile:nth-child(4):last-child { grid-column: auto; } }
html[lang="hi"] .brand small, html[lang="hi"] .kicker, html[lang="hi"] .foot-grid h4 { letter-spacing: 0; text-transform: none; }
html[lang="hi"] .brand small { font-size: .74rem; }

/* =====================================================================
   Mobile-first layer — app-like phone experience
   ===================================================================== */
.show-sm { display: none !important; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink); }
.nav-extra { display: none; }
.crumbs { margin-top: 16px; }
.search-top { padding-top: 20px; }
.res-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sort-sel { min-height: 36px; padding: .3em .6em; width: auto; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.filter-actions { display: flex; gap: 8px; margin-top: 20px; }
.sheet-handle, .sheet-backdrop { display: none; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { margin: 0; }
details.fold > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 4px; }
details.fold[open] > summary::after { transform: rotate(-135deg); }
details.fold[open] > summary { margin-bottom: 12px; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.link-more { background: none; border: 0; padding: 0; margin-top: 8px; color: var(--rose); font-weight: 700; cursor: pointer; }
.gallery .g-count { display: none; }
.gallery a:nth-child(n+6) { display: none; }
.foot-col > summary { list-style: none; pointer-events: none; }
.foot-col > summary::-webkit-details-marker { display: none; }
.sc-price { display: none; }

/* Bottom bar (5 items, raised Post) */
@media (max-width: 720px) {
  .mobile-bar { grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(19,32,59,.06); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mobile-bar a { padding: 7px 2px 6px; font-size: .7rem; gap: 3px; }
  .mobile-bar a span { line-height: 1; }
  .mobile-bar a.on { color: var(--rose); }
  .mobile-bar .mb-post { color: var(--ink); }
  .mobile-bar .mb-plus { width: 48px; height: 48px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff; box-shadow: 0 8px 20px rgba(196,45,98,.4); border: 4px solid var(--paper); }
  .mobile-bar .mb-plus svg { width: 22px; height: 22px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Phones & small tablets ---------- */
@media (max-width: 720px) {
  .show-sm { display: grid !important; }
  /* header */
  .site-header .wrap { height: 60px; gap: 10px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .brand b { font-size: 1.15rem; }
  .brand small { font-size: .58rem; letter-spacing: .28em; }
  .menu-btn { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 12px; background: var(--card); }
  .header-right { gap: 6px; }
  .user-menu > button { padding: 3px; }
  .nav { top: 60px; padding: 8px 16px 18px; gap: 2px; box-shadow: 0 20px 40px rgba(19,32,59,.12); max-height: calc(100dvh - 60px); overflow-y: auto; }
  .nav a { padding: .85em .6em; border-radius: 10px; font-size: 1.02rem; }
  .nav a.on::after { display: none; }
  .nav .hide-lg { display: block !important; }
  .nav-extra { display: grid; gap: 12px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
  .nav-extra .btn { padding: .9em 1em; }
  .nav-extra-row { display: flex; gap: 10px; align-items: center; }
  .nav-extra .lang-toggle a { padding: .55em 1em; font-size: .9rem; }
  .nav-extra .city-pick { display: block !important; flex: 1; max-width: none; padding: .6em .8em; }
  .nav-extra .btn, .nav-extra .lang-toggle a { padding-block: .7em; }
  html.sheet-open, html.sheet-open body { overflow: hidden; }

  /* section rhythm */
  .section { padding: 36px 0; }
  .sec-title { margin-bottom: 14px; flex-direction: row; align-items: flex-end; }
  .sec-title h2 { font-size: 1.45rem; }
  .sec-title p { font-size: .92rem; margin-top: 4px; }
  .sec-title.center { align-items: flex-start; text-align: left; }
  .sec-title.center p { margin-inline: 0; }
  .kicker { font-size: .7rem; margin-bottom: 4px; }
  .link-arrow { font-size: .9rem; }

  /* horizontal swipe rails */
  .rail { display: flex !important; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 4px 16px 14px; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 auto; scroll-snap-align: start; }
  .grid-cards.rail > .pcard { width: 78%; max-width: 320px; }
  .pcard:hover { transform: none; }

  /* hero */
  .hero2 { padding: 18px 0 26px; }
  .hero2-art { display: none; }
  .hero2-arches { height: 70px; }
  .eyebrow { font-size: .76rem; padding: .35em .8em .35em .6em; }
  .hero2 h1 { font-size: 2.15rem; margin: 12px 0 14px; max-width: none; }
  .hero2 .lede { display: none; }
  .search-shell { padding: 8px; border-radius: 20px; }
  .seg { padding: 2px 2px 8px; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg [role=tab] { padding: .45em .9em; font-size: .9rem; white-space: nowrap; }
  .search-shell .asksearch { border-radius: 14px; padding: 4px; gap: 4px; }
  .asksearch input { font-size: 16px; padding: 10px 8px; }
  .asksearch .mic { width: 42px; height: 42px; border-radius: 11px; }
  .asksearch .btn { height: 42px; width: 46px; padding: 0; border-radius: 11px; }
  .chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin: 8px -8px 0; padding: 0 8px 2px; scrollbar-width: none; }
  .chips-scroll::-webkit-scrollbar { display: none; }
  .chips-scroll button { white-space: nowrap; flex: none; }
  .chips-scroll .ask-label { display: none; }
  .trust-row { margin-top: 16px; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; }
  .trust-row li { padding: 0 10px; flex: 1; text-align: center; justify-items: center; }
  .trust-row li:first-child { padding-left: 10px; }
  .trust-row b { font-size: 1.45rem; }
  .trust-row span { font-size: .74rem; }

  /* categories: round icons in one swipe row */
  .cats-sec { padding: 6px 0 22px; }
  .cats-sec .sec-title { display: none; }
  .cat-grid.rail-sm { display: flex; overflow-x: auto; gap: 4px; margin-inline: -16px; padding: 4px 12px 6px; scrollbar-width: none; }
  .cat-grid.rail-sm::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 76px; justify-items: center; text-align: center; padding: 0; background: none; border: 0; gap: 2px; }
  .cat:hover { transform: none; box-shadow: none; }
  .cat-ic { width: 58px; height: 58px; border-radius: 50%; margin-bottom: 4px; }
  .cat b { font-size: .78rem; line-height: 1.15; font-weight: 700; }
  .cat small { display: none; }

  /* property card: compact */
  .pcard { border-radius: 16px; }
  .pcard .ph { margin: 6px 6px 0; border-radius: 12px; aspect-ratio: 16 / 11; }
  .pcard .body { padding: 10px 12px 12px; gap: 3px; }
  .pcard .price { font-size: 1.22rem; }
  .pcard .title { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard .place { font-size: .84rem; }
  .specs { gap: 4px; margin-top: 2px; }
  .specs span { font-size: .76rem; padding: .15em .55em; }
  .pcard .foot { font-size: .74rem; padding-top: 8px; margin-top: 4px; }
  .save-btn { width: 34px; height: 34px; right: 8px; top: 8px; }
  .pcard .ph .tags { left: 8px; top: 8px; }

  /* search results: Amazon-style list rows */
  .grid-cards.list-sm { grid-template-columns: 1fr; gap: 10px; }
  .list-sm .pcard { display: grid; grid-template-columns: 38% minmax(0, 1fr); border-radius: 14px; }
  .list-sm .pcard .ph { aspect-ratio: auto; height: 100%; min-height: 138px; margin: 6px 0 6px 6px; border-radius: 10px; }
  .list-sm .pcard .ph::after { display: none; }
  .list-sm .pcard .ph .count { right: 6px; bottom: 6px; font-size: .68rem; }
  .list-sm .pcard .ph .tags { left: 6px; top: 6px; }
  .list-sm .pcard .ph .tags .chip, .list-sm .pakka-chip { font-size: .66rem; }
  .list-sm .save-btn { width: 30px; height: 30px; right: 6px; top: auto; bottom: 6px; left: 6px; }
  .list-sm .save-btn svg { width: 15px; height: 15px; }
  .list-sm .pcard .body { padding: 10px 12px 10px; align-content: start; }
  .list-sm .pcard .price { font-size: 1.12rem; gap: 4px; }
  .list-sm .pcard .price small { font-size: .7rem; }
  .list-sm .pcard .title { font-size: .86rem; }
  .list-sm .pcard .place { font-size: .78rem; }
  .list-sm .specs span:nth-child(n+3) { display: none; }
  .list-sm .pcard .foot { border: 0; padding-top: 2px; margin-top: 0; justify-content: flex-start; gap: 6px; }
  .list-sm .pcard .foot span + span::before { content: "· "; }

  /* search page chrome */
  .search-top { padding-top: 10px; }
  .search-top .asksearch { border-width: 1.5px; box-shadow: none; padding: 4px; border-radius: 14px; }
  .search-layout, .search-layout.with-map { padding-top: 10px; gap: 12px; }
  .results-head { position: sticky; top: 60px; z-index: 30; background: var(--paper); margin: 0 -16px 10px; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
  .results-head h1 { font-size: 1.12rem; font-family: var(--ui); font-weight: 800; letter-spacing: -0.01em; }
  .res-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .res-tools::-webkit-scrollbar { display: none; }
  .res-tools > * { flex: none; }
  .res-tools .btn-sm { padding: .45em .85em; }

  /* filters as a bottom sheet */
  .filters { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; inset-inline: 0; z-index: 95; max-height: 86dvh; border-radius: 22px 22px 0 0; border: 0; padding: 8px 18px calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 60px rgba(19,32,59,.25); overflow-y: auto; visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .sheet-handle { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 4px auto 10px; }
  .filter-actions { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); margin: 0; z-index: 2; }
  .filters:not(.open) .filter-actions { display: none; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; background: rgba(14,24,48,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .filters.open ~ .sheet-backdrop { opacity: 1; pointer-events: auto; }

  /* property page */
  .crumbs { display: none; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: 10px -16px 0; border-radius: 0; height: 290px; scrollbar-width: none; position: relative; grid-template-columns: none; grid-template-rows: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery a, .gallery a:first-child, .gallery a:nth-child(n+4), .gallery a:nth-child(n+6) { display: block; flex: 0 0 100%; scroll-snap-align: start; grid-column: auto; grid-row: auto; }
  .gallery .more { display: none; }
  .gallery .g-count { display: block; position: sticky; left: calc(100% - 64px); align-self: flex-end; margin-bottom: 12px; margin-left: -64px; flex: none; background: rgba(14,24,48,.7); color: #fff; font-size: .8rem; font-weight: 700; padding: .2em .65em; border-radius: 999px; z-index: 2; }
  .detail-grid { padding-top: 14px; gap: 16px; }
  .detail-price { font-size: 2rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0; }
  .facts div { padding: 10px 12px; }
  .panel { padding: 16px; border-radius: 16px; }
  .panel + .panel, details.panel { margin-top: 12px; }
  .stamp-receipt .stamp-seal { width: 84px; height: 84px; }
  .stamp-receipt h3 { padding-right: 80px; }
  .sticky-side { gap: 12px; }
  .sticky-cta { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); gap: 8px; align-items: center; padding: 10px 12px; box-shadow: 0 -8px 24px rgba(19,32,59,.08); }
  .sticky-cta .sc-price { display: grid; flex: 1.3; min-width: 0; line-height: 1.1; }
  .sc-price b { font-family: var(--ui); font-size: 1.12rem; font-weight: 800; }
  .sc-price small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta .btn { flex: 1; padding-inline: .6em; }
  body:has(.sticky-cta) { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }

  /* pakka band / localities / steps */
  .pakka-band { padding: 40px 0 34px; }
  .pakka-band h2 { font-size: 1.6rem; }
  .pakka-band p { font-size: .96rem; margin-bottom: 18px; }
  .pakka-copy .stamp-seal { width: 76px; height: 76px; margin-bottom: 10px; }
  .pakka-grid { gap: 22px; }
  .pakka-checks.rail > .pc-item { width: 74%; grid-column: auto; }
  .pc-item { padding: 14px; }
  .loc-tiles.rail { grid-template-rows: none; }
  .loc-tiles.rail > .loc-tile, .loc-tiles.rail > .loc-tile.big { width: 62%; height: 190px; grid-row: auto; grid-column: auto; display: block; }
  .loc-tiles .loc-tile:nth-child(4) { display: block; }
  .lt-text { left: 14px; bottom: 12px; }
  .lt-text b, .loc-tile.big .lt-text b { font-size: 1.2rem; }
  .loc-chips { flex-wrap: nowrap; overflow-x: auto; margin: 6px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .loc-chips::-webkit-scrollbar { display: none; }
  .loc-chips a { flex: none; font-size: .86rem; padding: .45em .9em; }
  .duo { gap: 32px; }
  .solo .duo-col + .duo-col { margin-top: 36px; }
  .steps2.rail > li { width: 70%; padding: 18px 16px; }
  .steps2 .num { width: 34px; height: 34px; margin-bottom: 10px; }
  .promise2.rail { margin-top: 4px; }
  .promise2.rail > div { width: 76%; padding: 14px 16px; background: var(--card); border-radius: 14px; border: 1px solid var(--line); border-left-width: 3px; }

  /* owner band */
  .ob-img { min-height: 160px; }
  .ob-copy { padding: 22px 18px 24px; }
  .ob-copy h2 { font-size: 1.6rem; }
  .ob-points { margin: 12px 0 18px; gap: 8px; font-size: .92rem; }
  .ob-actions .btn { flex: 1; padding: .8em 1em; font-size: .95rem; }

  /* footer accordion */
  .site-footer { padding: 36px 0 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 0; }
  .foot-grid > div:first-child { padding-bottom: 18px; }
  .foot-col { border-top: 1px solid rgba(255,255,255,.1); }
  .foot-col > summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
  .foot-col > summary h4 { margin: 0; }
  .foot-col > summary::after { content: "+"; color: #8e98b1; font-size: 1.2rem; }
  .foot-col[open] > summary::after { content: "–"; }
  .foot-col ul { padding-bottom: 14px; }
  .foot-bottom { margin-top: 10px; flex-direction: column; gap: 4px; }

  /* touch targets */
  .btn-sm { min-height: 38px; }
  .choice span { padding: .55em .95em; }
  .pager a, .pager span { min-width: 44px; height: 44px; }
}

/* very small phones (≤ 360px) */
@media (max-width: 360px) {
  .brand small { display: none; }
  .hero2 h1 { font-size: 1.9rem; }
  .grid-cards.rail > .pcard { width: 84%; }
  .list-sm .pcard { grid-template-columns: 36% minmax(0, 1fr); }
  .sticky-cta .sc-price { display: none; }
}

/* phone held sideways */
@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  .results-head { top: 0; }
  .gallery { height: 240px; }
  .gallery a { flex-basis: 60% !important; }
}

/* tablets 721–1060 */
@media (min-width: 721px) and (max-width: 1060px) {
  .hero2-art { display: none; }
  .hero2 { padding: 40px 0 56px; }
  .hero2 h1 { max-width: 16ch; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

/* large screens: keep content centered, never stretched */
@media (min-width: 1700px) { :root { --wrap: 1360px; } }
.gallery-wrap { position: relative; }
.g-count { display: none; }
@media (max-width: 720px) {
  .gallery .g-count { display: none !important; }
  .gallery-wrap > .g-count { display: block; position: absolute; right: 12px; bottom: 12px; background: rgba(14,24,48,.72); color: #fff; font-size: .8rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; pointer-events: none; }
}
@media (max-width: 720px) { .asksearch .btn > span { display: none; } }
@media (max-width: 720px) { .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* =====================================================================
   Speed & delight layer: card swipe, skeletons, smart search, install card
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
picture { display: contents; }

/* skeleton shimmer under every photo until it loads */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.pcard .ph, .loc-tile, .gallery a { background: linear-gradient(90deg, var(--line-2) 0%, #fbf8f3 40%, var(--line-2) 80%) 0 0 / 800px 100% var(--line-2); animation: shimmer 1.3s linear infinite; }
.pcard .ph img, .loc-tile img, .gallery img { opacity: 0; transition: opacity .35s ease, transform .6s ease; }
.pcard .ph img.is-loaded, .loc-tile img.is-loaded, .gallery img.is-loaded { opacity: 1; }
.loc-tile img.is-loaded { opacity: .92; }
html:not(.js-reveal) .pcard .ph img, html:not(.js-reveal) .loc-tile img, html:not(.js-reveal) .gallery img { opacity: 1; }

/* swipeable photos inside a card */
.pcard .ph { z-index: 2; }
.ph-strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ph-strip::-webkit-scrollbar { display: none; }
.ph-strip > a { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; }
.ph-strip img { width: 100%; height: 100%; object-fit: cover; }
.pcard:hover .ph-strip img { transform: none; }
.ph-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 5px; z-index: 3; pointer-events: none; }
.ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.ph-dots i.on { width: 16px; border-radius: 4px; background: var(--card); }
.ph-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0,0,0,.18); display: grid; place-items: center; padding-bottom: 3px; }
.ph-nav.prev { left: 8px; } .ph-nav.next { right: 8px; }
.pcard:hover .ph-nav, .ph-nav:focus-visible { opacity: 1; }
@media (hover: none) { .ph-nav { display: none; } }
.pcard .ph .tags, .pcard .ph .count, .save-btn { z-index: 4; }
.pcard .ph::after { z-index: 2; }
.list-sm .ph-dots { bottom: 7px; }
.list-sm .pcard .ph .count { display: none; }

/* smart search dropdown */
.asksearch { position: relative; }
.ask-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; max-height: min(60vh, 420px); overflow-y: auto; text-align: left; }
.sg-title { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
html[lang="hi"] .sg-title { letter-spacing: 0; }
.sg-clear { background: none; border: 0; color: var(--rose); font-weight: 700; font-size: .78rem; cursor: pointer; text-transform: none; letter-spacing: 0; }
.sg-item { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink); }
.sg-item:hover, .sg-item.on { background: var(--paper); }
.sg-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.sg-item:first-child .sg-ic { background: var(--rose-bg); color: var(--rose); }
.sg-txt { display: grid; min-width: 0; }
.sg-txt b { font-weight: 700; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-txt small { color: var(--muted); font-size: .8rem; }
.search-shell { position: relative; z-index: 5; }

/* install-the-app card */
.install-card { position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 85; max-width: 440px; margin-left: auto; display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 12px 14px; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.install-card.show { transform: none; }
.install-card img { border-radius: 12px; flex: none; }
.ic-txt { display: grid; flex: 1; min-width: 0; }
.ic-txt b { font-size: .96rem; }
.ic-txt small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.ic-x { background: none; border: 0; font-size: 1.4rem; color: var(--soft); cursor: pointer; padding: 0 4px; line-height: 1; }
@media (max-width: 720px) { .install-card { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: 10px; right: 10px; } body:has(.sticky-cta) .install-card { display: none; } }
html[lang="en-IN"] .lang-toggle a[lang="hi"] { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.hero2 { overflow: visible; overflow-x: clip; z-index: 6; position: relative; }
.hero2-copy { position: relative; z-index: 6; }

/* =====================================================================
   Vision layer: Pakka meter, fair-price badge, quick chips, preview sheet,
   voice search overlay, AI bubble, hide-on-scroll, dark mode, bigger text
   ===================================================================== */
/* Pakka meter + fair price on cards */
.trust-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: relative; z-index: 3; margin: 2px 0 1px; }
.meter { position: relative; }
.meter > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--muted); cursor: pointer; padding: .18em .55em .18em .45em; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); user-select: none; }
.meter > summary::-webkit-details-marker { display: none; }
.meter .dots { display: inline-flex; gap: 2px; }
.meter .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.meter.s5 .dots i.on, .meter.s4 .dots i.on { background: var(--stamp); }
.meter.s3 .dots i.on { background: var(--gold); }
.meter.s2 .dots i.on, .meter.s1 .dots i.on { background: #d0802a; }
.meter.s5 > summary { color: var(--stamp); background: var(--stamp-bg); border-color: transparent; }
.meter-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 10px 12px; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); display: grid; gap: 6px; font-size: .82rem; color: var(--soft); }
.meter-pop li { display: flex; gap: 6px; align-items: center; }
.meter-pop li.ok { color: var(--ink); font-weight: 600; }
.meter-pop li.ok svg { color: var(--stamp); }
.fair-badge { font-size: .74rem; font-weight: 800; padding: .2em .6em; border-radius: 999px; white-space: nowrap; }
.fair-badge.fair { background: var(--stamp-bg); color: var(--stamp); }
.fair-badge.fair::before { content: "✓ "; }
.fair-badge.high { background: var(--warn-bg); color: var(--warn); }
.fair-badge.low { background: var(--deal-bg); color: var(--deal); }
.pcard:has(.meter[open]) { z-index: 15; }

/* quick filter chips */
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 16px; }
.qchip { display: inline-flex; align-items: center; gap: 5px; padding: .42em .9em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: .86rem; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.qchip:hover { border-color: var(--ink); color: var(--ink); }
.qchip.pk { color: var(--stamp); border-color: #b9e0cf; }
.qchip.on { background: var(--solid); color: #fff; border-color: var(--solid); }
.qchip.pk.on { background: var(--stamp); border-color: var(--stamp); }
.qchip svg { flex: none; }

/* Ask-AI bubble */
.ai-fab { position: fixed; right: 20px; bottom: 24px; z-index: 58; display: inline-flex; align-items: center; gap: 8px; padding: .75em 1.1em .75em .9em; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--rose), #7a2fb8); color: #fff; font-weight: 800; font-size: .92rem; box-shadow: 0 10px 28px rgba(122,47,184,.35); cursor: pointer; transition: transform .2s; }
.ai-fab:hover { transform: translateY(-2px); }

/* display toggles */
.pill-toggle { display: inline-flex; align-items: center; gap: 8px; flex: 1; padding: .6em .9em; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; font-size: .9rem; }
.pill-toggle .pt-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); font-size: .8rem; font-weight: 800; }
.pill-toggle[aria-pressed="true"] { border-color: var(--solid); box-shadow: inset 0 0 0 1px var(--solid); }
.pill-toggle[aria-pressed="true"] .pt-ic { background: var(--solid); color: #fff; }
.header-right .icon-btn.hide-sm { width: 38px; height: 38px; border-radius: 999px; cursor: pointer; font-size: 1rem; }

/* voice-first search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: var(--paper); padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 24px; display: flex; flex-direction: column; align-items: stretch; opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .2s; overflow-y: auto; }
.search-overlay.open { opacity: 1; transform: none; }
.so-top { display: flex; align-items: center; gap: 12px; }
.so-top b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.so-mic { align-self: center; margin: 9vh 0 14px; width: 112px; height: 112px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--rose), #7a2fb8); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(196,45,98,.1), 0 0 0 26px rgba(196,45,98,.05), 0 18px 40px rgba(122,47,184,.35); cursor: pointer; }
.so-mic.listening { animation: pulse 1.2s infinite; }
.so-hint { text-align: center; font-weight: 700; color: var(--ink-2); margin: 0 0 4px; }
.so-or { text-align: center; color: var(--soft); font-size: .86rem; margin: 6px 0 14px; }
.search-overlay .asksearch { box-shadow: var(--shadow); }

/* quick preview sheet */
.pv-back { position: fixed; inset: 0; z-index: 96; background: rgba(14,24,48,.45); opacity: 0; transition: opacity .25s; }
.pv-back.open { opacity: 1; }
.pv-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 97; max-height: 88dvh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 6px 14px calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 60px rgba(19,32,59,.3); }
.pv-sheet.open { transform: none; }
.pv-sheet .sheet-handle { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 6px auto 10px; }
.pv-sheet .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--line-2); animation: none; }
.pv-sheet .ph::after { display: none; }
.pv-sheet .ph-strip img { opacity: 1; }
.pv-sheet .ph .count { position: absolute; right: 10px; top: 10px; bottom: auto; }
.pv-sheet .save-btn { position: absolute; right: 10px; bottom: 10px; top: auto; }
.pv-sheet .ph .tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.pv-sheet .body { padding: 12px 2px 4px; display: grid; gap: 6px; }
.pv-sheet .price { font-family: var(--ui); font-size: 1.6rem; font-weight: 800; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pv-sheet .price small { font-size: .82rem; color: var(--muted); font-weight: 600; }
.pv-sheet .title { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.pv-sheet .title::after { display: none; }
.pv-sheet .place { color: var(--muted); }
.pv-sheet .specs span:nth-child(n) { display: inline; }
.pv-sheet .foot { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 8px; }
.pv-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; margin-top: 12px; }
.pv-actions .btn { padding: .85em .6em; }

/* phones: hide header & bottom bar while scrolling down */
@media (max-width: 720px) {
  .site-header, .mobile-bar { transition: transform .28s ease; }
  html.chrome-hidden .site-header { transform: translateY(-100%); }
  html.chrome-hidden .results-head { top: 0; }
  .results-head { transition: top .28s ease; }
  .sticky-cta { transition: bottom .28s ease; }
  .quick-chips { flex-wrap: nowrap; overflow-x: auto; margin: -4px -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
  .quick-chips::-webkit-scrollbar { display: none; }
  .qchip { flex: none; padding: .45em .85em; }
  .ai-fab { right: 12px; bottom: calc(136px + env(safe-area-inset-bottom, 0px)); padding: .7em; }
  .ai-fab span { display: none; }
  .list-sm .trust-line { gap: 4px; }
  .list-sm .meter > summary { font-size: .7rem; padding: .12em .45em .12em .35em; }
  .list-sm .meter .dots i { width: 6px; height: 6px; }
  .list-sm .fair-badge { font-size: .68rem; padding: .15em .5em; }
  .list-sm .specs { display: none; }
  .meter-pop { min-width: 200px; }
  .list-sm .meter-pop { left: -40px; }
}

/* bigger text mode */
html.big-text { font-size: 112.5%; }
html.big-text body { font-size: 17.5px; }
html.big-text .pcard .title, html.big-text .pcard .place { font-size: 1rem; }
html.big-text .btn { min-height: 48px; }

/* ---------- Dark mode ---------- */
:root:not([data-theme]) { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EDF0F7; --ink-2: #C7CEE0; --paper: #0F1522; --paper-2: #151D2E; --card: #182133; --line: #2A3550; --line-2: #212B42;
  --muted: #A3ACC2; --soft: #7D879E; --stamp: #3CC28F; --stamp-bg: rgba(60,194,143,.14); --rose: #F0568F; --rose-2: #FF77A6; --rose-bg: rgba(240,86,143,.15);
  --gold: #D9B26A; --gold-bg: rgba(217,178,106,.14); --warn: #F0A94B; --warn-bg: rgba(240,169,75,.14); --deal: #7FA6FF; --deal-bg: rgba(127,166,255,.14);
  --danger: #FF8A80; --danger-bg: rgba(255,138,128,.14); --navy-deep: #0A101C; --solid: #2F4275; --glass: rgba(15,21,34,.86); --bar: rgba(24,33,51,.96);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45);
}
[data-theme="dark"] .site-header { background: var(--glass); }
[data-theme="dark"] .mobile-bar { background: var(--bar); }
[data-theme="dark"] .hero2 { background: radial-gradient(1100px 520px at 88% -10%, rgba(240,86,143,.12), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(217,178,106,.10), transparent 60%), var(--paper); }
[data-theme="dark"] .float-badge { background: rgba(24,33,51,.94); border-color: var(--line); }
[data-theme="dark"] .float-price { background: #0A101C; }
[data-theme="dark"] .pakka-chip { background: rgba(24,33,51,.95); color: var(--stamp); }
[data-theme="dark"] .save-btn { background: rgba(24,33,51,.92); color: var(--ink); }
[data-theme="dark"] .ph-nav { background: rgba(24,33,51,.92); color: var(--ink); }
[data-theme="dark"] .pcard .ph, [data-theme="dark"] .loc-tile, [data-theme="dark"] .gallery a { background: linear-gradient(90deg, #1b2438 0%, #232e46 40%, #1b2438 80%) 0 0 / 800px 100% #1b2438; }
[data-theme="dark"] .btn-primary, [data-theme="dark"] .seg [role=tab].on { color: #fff; }
[data-theme="dark"] .btn-line { color: var(--ink); }
[data-theme="dark"] .ask-examples button { color: var(--ink-2); }
[data-theme="dark"] .cta-band, [data-theme="dark"] .pakka-band, [data-theme="dark"] .owner-band, [data-theme="dark"] .site-footer { background: var(--navy-deep); }
[data-theme="dark"] .stamp-seal { color: var(--stamp); }
[data-theme="dark"] .pakka-copy .stamp-seal, [data-theme="dark"] .pakka-checks .stamp-seal { color: var(--gold); }
[data-theme="dark"] .chip { background: var(--card); }
[data-theme="dark"] .chip.green { border-color: transparent; }
[data-theme="dark"] .pakka-chip { border-color: transparent; }
[data-theme="dark"] .install-card, [data-theme="dark"] .ask-suggest { background: var(--card); }
[data-theme="dark"] .qchip.pk { border-color: rgba(60,194,143,.4); }
[data-theme="dark"] img { filter: brightness(.94); }
[data-theme="dark"] .brand img, [data-theme="dark"] .install-card img { filter: none; }
[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.75) invert(1) contrast(.85) hue-rotate(200deg) saturate(.4); }
[data-theme="dark"] .note.green { color: var(--stamp); border-color: transparent; }
[data-theme="dark"] .note.warn { color: var(--warn); border-color: transparent; }
[data-theme="dark"] .note { color: var(--ink-2); }
[data-theme="dark"] .chip.rose, [data-theme="dark"] .chip.warn, [data-theme="dark"] .chip.deal { border-color: transparent; }
[data-theme="dark"] .msg { background: var(--card); }
[data-theme="dark"] .msg.me { background: var(--solid); }
[data-theme="dark"] select.input, [data-theme="dark"] .city-pick { background-color: var(--card); color: var(--ink); }
[data-theme="dark"] .lang-toggle a.on { background: var(--solid); }
[data-theme="dark"] .pager .on, [data-theme="dark"] .choice input:checked + span { color: #fff; }
[hidden] { display: none !important; }
.pcard { overflow: visible; }
.pcard .body { min-width: 0; }
.list-sm .pcard .body { min-width: 0; overflow: visible; }
.list-sm .pcard .title { overflow-wrap: anywhere; }
@media (max-width: 720px) { .grid-cards.list-sm { grid-template-columns: minmax(0, 1fr); } .list-sm .pcard { min-width: 0; } .list-sm .pcard .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.grid-cards > .pcard { min-width: 0; }
@media (max-width: 820px) { .search-layout, .search-layout.with-map { grid-template-columns: minmax(0, 1fr); } .search-layout > section { min-width: 0; } }
.cat-ic.photo { padding: 0; overflow: hidden; background: var(--line-2); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }
.cat-ic.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat:hover .cat-ic.photo { background: var(--line-2); }
.cat:hover .cat-ic.photo img { transform: scale(1.08); }
@media (min-width: 721px) { .cat-ic.photo { width: 64px; height: 64px; border-radius: 18px; box-shadow: none; } }
.wrap.section, .wrap.section-tight { padding-inline: 24px; }
@media (max-width: 720px) { .wrap.section, .wrap.section-tight { padding-inline: 16px; } }

/* Hero text centered when the photo collage is hidden (phones & tablets) */
@media (max-width: 1060px) {
  .hero2-copy { text-align: center; }
  .hero2-copy .eyebrow { margin-inline: auto; }
  .hero2 h1 { margin-inline: auto; max-width: none; }
  .hero2 h1 em { display: block; }
  .hero2 .lede { margin-inline: auto; }
  .hero2 .seg { justify-content: center; }
  .hero2 .chips-scroll, .hero2 .ask-examples { justify-content: flex-start; }
  .trust-row { justify-content: center; }
  .search-shell { text-align: left; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .hero2 { padding-top: 22px; }
  .hero2-copy .eyebrow { display: flex; width: max-content; max-width: 100%; }
  .hero2 h1 { font-size: 2.35rem; line-height: 1.05; margin: 14px 0 18px; letter-spacing: -0.02em; }
  .hero2 .seg { justify-content: space-between; }
}
@media (max-width: 360px) { .hero2 h1 { font-size: 2rem; } }

/* ---------- Header: logo + name on the left, search + menu on the right ---------- */
.brand { gap: 10px; }
.brand span { display: grid; gap: 1px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; color: var(--ink); }
.brand small { font-family: var(--display); font-style: italic; font-weight: 600; font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--rose); margin: 0; line-height: 1.1; }
html[lang="hi"] .brand small { font-family: var(--body); font-style: normal; font-size: .82rem; }
.site-footer .brand small { color: var(--gold-2); }
@media (max-width: 960px) {
  .site-header .wrap { gap: 8px; }
  .site-header .brand { order: 0; }
  .site-header .header-right { order: 1; margin-left: auto; }
  .site-header .menu-btn { order: 2; }
}
@media (max-width: 720px) {
  .brand img { width: 40px; height: 40px; border-radius: 11px; }
  .brand b { font-size: 1.22rem; }
  .brand small { font-size: .86rem; display: block; }
  .icon-btn, .menu-btn { width: 42px; height: 42px; border-radius: 12px; }
}
@media (max-width: 360px) { .brand small { display: block !important; } .brand b { font-size: 1.1rem; } }

/* ---------- Badge without the dot ---------- */
.eyebrow { padding: .42em 1em; }
.eyebrow .dot { display: none; }
@media (max-width: 720px) { .hero2 h1 { font-size: 2.35rem; } .hero2 .lede { display: none; } }

/* ---------- Menu: slide-in drawer on phones & tablets ---------- */
.nav-head, .nav-backdrop, .nav .nav-ic { display: none; }
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  html.sheet-open .site-header { transform: none !important; }
  .nav, .nav.open {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(86vw, 360px); max-height: none; height: 100dvh;
    flex-direction: column; gap: 2px; margin: 0; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
    background: var(--card); border: 0; border-radius: 22px 0 0 22px; box-shadow: -20px 0 60px rgba(14,24,48,.22);
    overflow-y: auto; z-index: 110; visibility: hidden;
    /* closed drawer stays inside the screen and is clipped away — a drawer parked off-screen lets iPhone Safari pan sideways */
    clip-path: inset(0 0 0 100%); transition: clip-path .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
  }
  .nav.open { clip-path: inset(0 0 0 -80px); visibility: visible; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 105; background: rgba(14,24,48,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav.open + .nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
  .nav-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
  .nav-head .icon-btn { display: grid; cursor: pointer; }
  .nav > a { display: flex; align-items: center; gap: 12px; padding: .7em .5em; border-radius: 12px; font-size: 1rem; font-weight: 700; color: var(--ink); }
  .nav > a::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--soft); border-top: 2px solid var(--soft); transform: rotate(45deg); position: static !important; background: none !important; }
  .nav > a.on { background: var(--rose-bg); color: var(--rose-2); }
  .nav .nav-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--paper-2); color: var(--ink-2); flex: none; }
  .nav > a.on .nav-ic { background: var(--rose); color: #fff; }
  .nav .hide-lg { display: flex !important; }
  .nav-extra { display: grid; gap: 16px; padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line-2); }
  .nav-extra .nav-post, .nav-extra .nav-post:hover { color: #fff; padding: .9em 1em; font-size: 1rem; }
  .nav-group { display: grid; gap: 8px; }
  .nav-label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
  html[lang="hi"] .nav-label { letter-spacing: 0; text-transform: none; font-size: .85rem; }
  .seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: var(--paper-2); border-radius: 12px; }
  .seg2 a { text-align: center; padding: .6em .5em; border-radius: 9px; font-weight: 700; color: var(--muted); text-decoration: none; }
  .seg2 a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(19,32,59,.12); }
  .select-wrap { position: relative; }
  .select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
  .nav-extra .city-pick { display: block !important; width: 100%; max-width: none; -webkit-appearance: none; appearance: none; padding: .75em 2.6em .75em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: .98rem; }
  .display-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pill-toggle { justify-content: flex-start; padding: .65em .7em; font-size: .9rem; }
}
/* desktop header city picker: keep the arrow inside */
.header-right .city-pick { -webkit-appearance: none; appearance: none; padding-right: 2em; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235D6476' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7em center; }
[data-theme="dark"] .header-right .city-pick { background-color: var(--card); }
.btn-rose, .btn-rose:hover { color: #fff; }
html.sheet-open .site-header { z-index: 120; }
.nav .seg2 a::after, .nav .nav-post::after { display: none !important; }
@media (max-width: 960px) { .nav .seg2 a { padding: .6em .5em; } }

/* =====================================================================
   Builders: directory, builder mini-site, home strip, builder panel
   ===================================================================== */
.bl-hero { padding: 44px 0 26px; background: radial-gradient(900px 400px at 90% -20%, rgba(217,58,115,.10), transparent 60%), var(--paper); border-bottom: 1px solid var(--line-2); }
.bl-hero h1 { margin: 4px 0 8px; }
.bl-hero p { max-width: 56ch; margin: 0 0 18px; }
.bl-search { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 4px 6px 4px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; color: var(--muted); }
.bl-search:focus-within { border-color: var(--ink); }
.bl-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 4px; font-size: 1rem; min-width: 0; color: var(--ink); }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.bl-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.bl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.bl-card.featured { box-shadow: 0 0 0 2px var(--rose-bg); }
.bl-cover { position: relative; height: 140px; background: linear-gradient(135deg, var(--solid), #3b2550); }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; }
.bl-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,24,48,.45), transparent 60%); }
.bl-feat { position: absolute; right: 10px; top: 10px; z-index: 2; }
.bl-body { position: relative; padding: 36px 16px 16px; display: grid; gap: 8px; }
.bs-logo { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; background: var(--card); border: 3px solid var(--card); box-shadow: 0 6px 20px rgba(19,32,59,.18); overflow: hidden; font-family: var(--display); font-weight: 700; font-size: 2.1rem; color: var(--rose); flex: none; }
.bs-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bs-logo.sm { width: 56px; height: 56px; border-radius: 15px; font-size: 1.4rem; border-width: 2px; }
.bl-logo { position: absolute; left: 16px; top: -30px; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--card); border: 3px solid var(--card); box-shadow: 0 6px 18px rgba(19,32,59,.18); overflow: hidden; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--rose); }
.bl-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bl-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bl-name b { font-size: 1.12rem; font-weight: 800; }
.bl-ver { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; color: var(--stamp); background: var(--stamp-bg); padding: .15em .55em; border-radius: 999px; }
.bl-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--muted); }
.bl-stats b { color: var(--ink); }
.bl-areas { display: flex; gap: 5px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.bl-areas svg { color: var(--rose); flex: none; margin-top: 3px; }
.bl-join { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 32px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px dashed var(--line); }
.bl-join h3 { margin: 0 0 4px; }
.bl-join p { margin: 0; }

/* builder mini-site */
.bs-hero { position: relative; background: var(--card); border-bottom: 1px solid var(--line-2); }
.bs-cover { height: clamp(180px, 32vw, 340px); background: linear-gradient(135deg, var(--solid), #3b2550); overflow: hidden; }
.bs-cover img { width: 100%; height: 100%; object-fit: cover; }
.bs-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; padding-bottom: 20px; margin-top: -54px; }
.bs-head .bs-logo { width: 112px; height: 112px; border-radius: 26px; border-width: 4px; font-size: 2.8rem; }
.bs-title { flex: 1; min-width: 220px; padding-top: 60px; }
.bs-title h1 { margin: 6px 0 4px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.bs-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-areas { display: flex; gap: 6px; align-items: center; color: var(--muted); margin: 0; }
.bs-areas svg { color: var(--rose); }
.bs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bs-stats { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.bs-stats li { padding: 16px 12px; text-align: center; display: grid; gap: 2px; border-left: 1px solid var(--line-2); }
.bs-stats li:first-child { border-left: 0; }
.bs-stats b { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1; }
.bs-stats span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.bs-tabs { position: sticky; top: 74px; z-index: 20; display: flex; gap: 6px; margin: 18px 0 18px; padding: 6px; background: var(--paper); border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.bs-tabs::-webkit-scrollbar { display: none; }
.bs-tabs button { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: .55em 1.1em; border: 0; border-radius: 999px; background: transparent; font-weight: 800; color: var(--muted); cursor: pointer; }
.bs-tabs button span { font-size: .78rem; background: var(--paper-2); color: var(--ink-2); border-radius: 999px; padding: .05em .55em; }
.bs-tabs button.on { background: var(--solid); color: #fff; }
.bs-tabs button.on span { background: rgba(255,255,255,.2); color: #fff; }
.bs-about .panel { max-width: 780px; }
.bs-about .facts { margin: 16px 0; }
@media (max-width: 720px) {
  .bl-hero { padding: 26px 0 18px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bs-head { gap: 12px; margin-top: -44px; }
  .bs-head .bs-logo { width: 88px; height: 88px; border-radius: 22px; font-size: 2.2rem; }
  .bs-title { padding-top: 0; min-width: 0; flex-basis: 100%; }
  .bs-actions { flex-basis: 100%; }
  .bs-actions .btn { flex: 1; }
  .bs-stats b { font-size: 1.5rem; }
  .bs-tabs { top: 60px; margin: 14px -16px; padding: 8px 16px; }
  html.chrome-hidden .bs-tabs { top: 0; }
}

/* home: top builders strip */
.hb-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.hb { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 20px 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.hb:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.hb.featured { box-shadow: 0 0 0 2px var(--rose-bg); }
.hb .bs-logo.sm { box-shadow: 0 4px 14px rgba(19,32,59,.14); }
.hb b { font-size: .98rem; line-height: 1.2; }
.hb small { color: var(--muted); font-size: .8rem; }
.hb-tag { font-size: .7rem; font-weight: 800; color: var(--rose); background: var(--rose-bg); padding: .15em .6em; border-radius: 999px; display: inline-flex; gap: 3px; align-items: center; }
.hb-tag.ver { color: var(--stamp); background: var(--stamp-bg); }
@media (max-width: 720px) { .hb-row.rail > .hb { width: 44%; min-width: 150px; } }

/* builder panel */
.bp { display: grid; gap: 16px; min-width: 0; }
.bp-head { padding: 0; overflow: hidden; }
.bp-cover { height: 140px; background: linear-gradient(135deg, var(--solid), #3b2550); }
.bp-cover img { width: 100%; height: 100%; object-fit: cover; }
.bp-id { display: flex; gap: 12px; align-items: flex-end; padding: 0 18px; margin-top: -28px; }
.bp-id h1 { font-size: 1.4rem; margin: 0 0 6px; font-family: var(--ui); font-weight: 800; }
.bp-link { padding: 14px 18px 18px; display: grid; gap: 8px; }
.bp-url code { display: block; padding: .6em .8em; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-2); font-size: .9rem; overflow-x: auto; white-space: nowrap; color: var(--ink); }
.bp-link-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-stats { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.bp-boost { display: grid; gap: 12px; background: linear-gradient(135deg, var(--rose-bg), var(--card) 60%); border-color: #f4c3d4; }
.bp-boost h3 { margin: 0 0 4px; }
.bp-boost form { margin: 0; }
.bp .list-row picture { display: contents; }
.bp .list-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--line-2); }
.bp .list-row form { display: inline; margin: 0; }
[data-theme="dark"] .bp-boost { border-color: var(--line); background: var(--card); }
@media (min-width: 961px) { .site-header .nav { margin-left: 26px; } }
.bp .list-row source, .list-row source { display: none; }
.bp-id > div { padding-top: 34px; }
@media (max-width: 640px) { .bp .list-row { grid-template-columns: 84px minmax(0, 1fr); } .bp .list-row img { width: 84px; height: 64px; } }
@media (max-width: 720px) { .bp-id { flex-direction: column; align-items: flex-start; gap: 8px; } .bp-id > div { padding-top: 0; } .bp-id h1 { font-size: 1.25rem; } }
.bp-link, .bp-url { min-width: 0; max-width: 100%; } .bp-url code { max-width: 100%; text-overflow: ellipsis; overflow: hidden; }
/* F4: builder panel logo above the cover (cover is position:relative), verification checklist */
.bp-id { position: relative; z-index: 1; }
.bp-link-btns button[disabled] { opacity: .5; cursor: not-allowed; }
.bp-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-check li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.bp-check-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; font-weight: 800; background: var(--line-2); color: var(--muted); }
.bp-check .is-done .bp-check-ic { background: #DDF3E4; color: #1E7A43; }
.bp-check .is-wait .bp-check-ic { background: #FFF1D6; color: #8A5A12; }
/* F4: project unit types — form rows and the public cards */
.pu-list { display: grid; gap: 12px; margin-bottom: 12px; }
.pu-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.pu-row .field { margin-bottom: 8px; min-width: 0; }
.pu-area { display: flex; gap: 6px; } .pu-area .input:first-child { flex: 1; min-width: 0; } .pu-area select { width: auto; }
.pu-plan-now { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .pu-plan-now img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.pu-del { justify-self: start; margin-bottom: 8px; color: var(--danger); }
.pu-extra { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin: 12px 0 0; }
.pu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pu-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; align-content: start; background: var(--card); }
.pu-fp img { width: 100%; height: 130px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line-2); }
.pu-main { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pu-label { font-size: 1.1rem; } .pu-price { font-weight: 700; color: var(--rose); }
.pu-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; } .pu-facts dt { font-size: .78rem; color: var(--muted); } .pu-facts dd { margin: 0; font-weight: 600; }
/* F4: project photos on the edit page */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pg-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); display: grid; }
.pg-item img { width: 100%; height: 100px; object-fit: cover; }
.pg-item.is-del img { opacity: .3; }
.pg-cover { font-size: .85rem; padding: 6px 8px 0; display: flex; gap: 6px; align-items: center; }
.pg-btns { display: flex; gap: 4px; align-items: center; padding: 4px 6px 8px; flex-wrap: wrap; }
.pg-btns .btn { min-width: 34px; padding: .2em .5em; }
.pg-del { font-size: .85rem; color: var(--danger); display: flex; gap: 4px; align-items: center; margin-left: auto; }
.rv-tag { font-size: .7rem; padding: .1em .5em; vertical-align: middle; }
/* F4: agent page + broker network */
.ag-avatar { width: 72px; height: 72px; font-size: 1.8rem; overflow: hidden; flex: none; }
.ag-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ag-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .ag-actions { width: 100%; } .ag-actions .btn { flex: 1; } }
.ag-about h3 { margin: 0 0 6px; } .ag-about h3 + .amenities, .ag-about .desc + h3 { margin-top: 14px; }
.net-filter { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .net-filter .input { width: auto; min-height: 38px; padding: .2em .6em; max-width: 46vw; }
.net-mine { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.net-mine form { margin: 0; }
.net-switch { display: inline-flex; gap: 8px; align-items: center; border: 0; background: none; cursor: pointer; font: inherit; font-size: .85rem; color: var(--muted); padding: 4px; }
.net-switch i { width: 40px; height: 22px; border-radius: 22px; background: var(--line); position: relative; transition: background .15s; }
.net-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.net-switch.on i { background: #1E7A43; } .net-switch.on i::after { left: 21px; } .net-switch.on { color: #1E7A43; font-weight: 600; }

/* ===== Buyer "My account" (Amazon-style hub) ===== */
.acc { min-width: 0; display: grid; gap: 18px; }
.acc-hi { display: flex; align-items: center; gap: 14px; }
.acc-hi h1 { font-size: 1.6rem; margin: 0; line-height: 1.15; }
.acc-hi p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.acc-av { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-bg); color: var(--rose-2); font-weight: 800; font-size: 1.3rem; }
.acc-av.sm { width: 38px; height: 38px; font-size: 1rem; }
.acc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acc-tile { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; height: 100%; box-sizing: border-box; transition: border-color .15s, transform .15s; }
.acc-tile:hover { border-color: var(--rose); transform: translateY(-1px); }
.acc-tile b { font-size: 1.02rem; display: flex; align-items: center; gap: 6px; }
.acc-tile b em { font-style: normal; font-size: .78rem; font-weight: 800; background: var(--paper-2); color: var(--ink); border-radius: 999px; padding: 1px 8px; }
.acc-tile > span:last-child { font-size: .84rem; color: var(--muted); }
.acc-tile .acc-new { color: var(--rose-2) !important; font-weight: 700; }
.acc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-bg); color: var(--rose-2); margin-bottom: 4px; flex: none; }
.acc-visit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px; border-radius: 18px; border: 1px solid var(--stamp); background: var(--stamp-bg); }
.acc-date { display: grid; justify-items: center; width: 62px; padding: 8px 0; border-radius: 14px; background: var(--card); border: 1px solid var(--line); line-height: 1.1; }
.acc-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.acc-date b { font-size: 1.6rem; color: var(--ink); }
.acc-kicker { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--stamp); }
.acc-vtitle { display: block; font-weight: 700; color: var(--ink); text-decoration: none; margin-top: 2px; }
.acc-code { margin: 8px 0 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acc-code b { letter-spacing: 3px; font-size: 1.05rem; background: var(--card); padding: 2px 8px; border-radius: 8px; border: 1px dashed var(--stamp); }
.acc-vbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.acc-vpic { width: 120px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; display: block; }
.acc-vpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-vpic source { display: none; }
.acc-sec { min-width: 0; }
.acc-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.acc-sh h2 { font-size: 1.2rem; margin: 0; }
.acc-sh a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.acc-list { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.acc-chat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.acc-chat + .acc-chat { border-top: 1px solid var(--line-2); }
.acc-chat:hover { background: var(--paper); }
.acc-last { display: block; font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border: 1px dashed var(--line); border-radius: 16px; background: var(--card); color: var(--rose-2); }
.acc-empty > div { flex: 1; min-width: 180px; color: var(--ink); }
.acc-alert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--gold-bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.acc-alert b { display: block; }
.acc-alert .acc-ic { margin: 0; background: var(--card); color: var(--gold-2); }
.acc-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.acc-foot a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: .92rem; color: var(--muted); text-decoration: none; }
.acc-foot a:hover { color: var(--ink); }
.acc-more summary { cursor: pointer; font-weight: 700; }
.acc-more[open] summary { margin-bottom: 8px; }
@media (max-width: 720px) {
  .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .acc-visit { grid-template-columns: auto minmax(0, 1fr); }
  .acc-vpic { display: none; }
  .acc-hi h1 { font-size: 1.4rem; }
}
@media (min-width: 721px) {
  .acc .grid-cards.rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 10px; scrollbar-width: thin; }
  .acc .grid-cards.rail > * { flex: 0 0 calc((100% - 28px) / 3); min-width: 0; scroll-snap-align: start; }
}
/* Sign-up "I agree" row: a real checkbox and one line of text */
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rose); }
.agree span { min-width: 0; }

/* ===== Buttons: one look everywhere ===== */
/* "Ghost" buttons were plain text and did not look tappable. Now they have a soft fill. */
.btn-ghost { background: var(--paper-2); color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--line-2); }
.modal .btn-ghost { background: transparent; }

/* Phone: on a home or project page the Chat / Visit bar takes the place of the bottom menu,
   so only ONE bar sits at the bottom (like "Buy now" on a shop page). */
@media (max-width: 720px) {
  body:has(.sticky-cta) .mobile-bar { display: none; }
  body:has(.sticky-cta) .sticky-cta { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  body:has(.sticky-cta) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body:has(.sticky-cta) .ai-fab { display: none; }
  .sort-sel { flex: none; max-width: 190px; }
}

/* ===== ⓘ explanation tips ===== */
.tip { position: relative; display: inline-block; vertical-align: middle; line-height: 1; }
.tip > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid currentColor; color: var(--muted); font: 700 11px/1 Georgia, 'Times New Roman', serif; font-style: italic; margin-left: 3px; opacity: .85; }
.tip > summary::-webkit-details-marker { display: none; }
.tip > summary::after { content: ""; position: absolute; inset: -10px; } /* bigger tap area */
.tip[open] > summary { color: var(--rose-2); opacity: 1; }
.tip-pop { position: absolute; z-index: 70; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: min(260px, 80vw);
  background: var(--ink); color: #fff; font: 500 .82rem/1.45 inherit; font-family: inherit; font-style: normal; letter-spacing: 0; text-transform: none;
  padding: 9px 11px; border-radius: 10px; box-shadow: 0 10px 30px rgba(19,32,59,.25); white-space: normal; text-align: left; }
.tip-pop::before { content: ""; position: absolute; top: -5px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.tip.left .tip-pop { left: auto; right: -8px; transform: none; }
.tip.left .tip-pop::before { left: auto; right: 12px; }
.tip.right .tip-pop { left: -8px; transform: none; }
.tip.right .tip-pop::before { left: 12px; margin: 0; }
[data-theme="dark"] .tip-pop { background: #2b3550; }
/* tips that wrap a chip (Featured, Fair price) — the chip itself is the button */
.tip.chip-tip > summary { width: auto; height: auto; border: 0; border-radius: 0; font: inherit; color: inherit; margin: 0; opacity: 1; display: inline-flex; }
.tip.chip-tip > summary::after { inset: -4px; }
.ti { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; border: 1.2px solid currentColor; font: italic 700 9px/1 Georgia, serif; opacity: .7; margin-left: 2px; vertical-align: 1px; }
.meter-pop .mp-head { font-weight: 600; color: var(--muted); font-size: .78rem; padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px solid var(--line-2); display: block; }
.pcard .tags .tip { pointer-events: auto; }
.tip-pop::before { left: var(--arrow, 50%) !important; right: auto !important; margin-left: -5px !important; }
.tip-pop.above::before { top: auto; bottom: -5px; border-bottom: 0; border-top: 5px solid var(--ink); }

/* My listings: Edit + Boost outside, everything else under "⋯" */
.actions.la { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.la-boost { display: inline-flex; align-items: center; gap: 2px; }
.more-menu { position: relative; }
.more-menu > summary { list-style: none; min-width: 40px; font-size: 1.1rem; letter-spacing: 1px; }
.more-menu > summary::-webkit-details-marker { display: none; }
.mm-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.mm-pop a, .mm-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.mm-pop a:hover, .mm-pop button:hover { background: var(--paper); }
.mm-pop .danger { color: var(--danger, #c0392b); }
/* F3: posting a home + My listings */
.flash-stack > .flash:nth-last-child(n+3) { display: none; }   /* at most 2 messages on screen */
@media (max-width: 640px) { .actions.la .more-menu { margin-left: auto; } .mm-pop { max-width: calc(100vw - 32px); } }
.la-note { color: var(--warn); font-weight: 600; margin-top: 4px; display: flex; gap: 6px; align-items: flex-start; }
.la-checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.la-checks li { position: relative; padding-left: 16px; color: var(--muted); }
.la-checks li::before { content: "○"; color: var(--warn); position: absolute; left: 0; top: 0; }
.la-checks a { font-weight: 700; white-space: nowrap; }
.wa-soon { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.wa-soon small { font-weight: 500; font-size: .74rem; opacity: .85; }
.limit-card { margin-top: 16px; border-left: 4px solid var(--warn); }
.price-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.price-help .chip { cursor: pointer; min-height: 32px; padding: .2em .8em; }
.price-words { display: block; font-weight: 800; font-size: 1.05rem; color: var(--ink); margin-top: 4px; min-height: 1.2em; }
.price-warn { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: .88rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.price-warn[hidden] { display: none; }
.price-warn .chip { cursor: pointer; min-height: 32px; }
.area-eq { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-top: 4px; }
.area-eq:empty { display: none; }
.chip.area-conv { cursor: pointer; margin-top: 6px; white-space: normal; text-align: left; min-height: 32px; border-color: var(--rose); color: var(--rose); }
.req-tag { font-size: .72rem; font-weight: 700; color: var(--danger); background: var(--rose-bg); border-radius: 999px; padding: .1em .55em; vertical-align: middle; }
.photo-drop.is-invalid, .agree.is-invalid { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 12px; }
.err.js-err { display: block; color: var(--danger); font-size: .88rem; font-weight: 700; margin-top: 6px; }
.review-sum { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 14px; background: var(--paper); }
.review-sum[hidden] { display: none; }
.review-sum dl { display: grid; grid-template-columns: minmax(84px, auto) 1fr; gap: 6px 12px; margin: 0; font-size: .93rem; }
.review-sum dt { color: var(--muted); }
.review-sum dd { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.review-sum dd .missing { color: var(--danger); }
.review-sum .linkish { background: none; border: 0; padding: 0 2px; color: var(--rose); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; text-decoration: underline; flex: none; }
.mm-pop form { margin: 0; }

/* ===== Post property: 4 steps with a progress bar ===== */
.wz-head { position: sticky; top: calc(var(--hdr-h, 64px) + 4px); z-index: 20; background: var(--paper); padding: 10px 0 12px; margin-bottom: 8px; }
.wz-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wz-steps button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border-radius: 10px; min-width: 0; }
.wz-steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem; background: var(--card); border: 1.5px solid var(--line); color: var(--muted); }
.wz-steps .l { font-weight: 700; font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-steps li.on .n { background: var(--ink); border-color: var(--ink); color: #fff; }
.wz-steps li.on .l { color: var(--ink); }
.wz-steps li.done .n { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.wz-bar { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.wz-bar i { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--rose), var(--rose-2)); border-radius: 4px; transition: width .3s ease; }
.wz-nav { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.wz-nav .wz-count { margin-right: auto; order: -1; }
.stepped fieldset[hidden] { display: none !important; }
@media (max-width: 720px) {
  .wz-steps .l { display: none; }
  .wz-steps li.on .l { display: inline; }
  .wz-steps { grid-template-columns: auto auto auto auto; justify-content: space-between; }
  .wz-nav { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); margin: 8px -16px 0; padding: 10px 16px; z-index: 30; box-shadow: 0 -8px 20px rgba(19,32,59,.06); }
  .wz-nav .btn-lg { flex: 1; }
  .wz-nav .wz-count { width: 100%; text-align: center; margin: 0 0 2px; }
}
.mini-map, .leaflet-container { isolation: isolate; z-index: 0; position: relative; overflow: hidden; }
/* Never let anything (like the hidden side menu while the top bar slides away) make the page wider than the phone */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
html.chrome-hidden .wz-head { top: 0; }
@media (max-width: 720px) {
  body:has(.wz-nav) .mobile-bar { display: none; }
  .wz-nav { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* City page: areas as cards (with homes) + "more areas" chips */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.area-card { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.area-card:hover { border-color: var(--rose); }
.area-card b { font-size: 1rem; }
.area-card span { font-size: .86rem; color: var(--muted); }
.area-more { margin-top: 14px; }
.area-more summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 8px 0; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.area-chips a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
@media (max-width: 720px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .area-card { padding: 12px; } }
.acc-post { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--rose), var(--rose-2)); color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(217,58,115,.22); }
.acc-post b { display: block; font-size: 1.02rem; }
.acc-post span span { display: block; font-size: .85rem; opacity: .9; }
.acc-post .acc-ic { margin: 0; background: rgba(255,255,255,.18); color: #fff; }
.acc-sh h2 .tip { font-size: 1rem; }

/* ===== Home page: new blocks ===== */
.trust-line2 { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .9rem; font-weight: 600; color: var(--ink-2, var(--ink)); }
.trust-line2 li { display: inline-flex; align-items: center; gap: 5px; }
.trust-line2 svg { color: var(--stamp); }
button.link-arrow { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .88rem; color: var(--muted); }
.hb-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.hb-head h3 { margin: 0; font-size: 1.1rem; }
.pakka-lite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: center; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.pl-copy { display: flex; gap: 18px; align-items: flex-start; }
.pl-copy .stamp-seal { flex: none; }
.pl-copy h2 { font-size: 1.5rem; margin: 2px 0 6px; }
.pl-copy p { color: var(--muted); margin: 0 0 6px; }
.pl-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pl-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--paper); }
.pl-checks .pc-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--stamp-bg); color: var(--stamp); }
.pl-checks li:last-child .pc-ic { background: var(--rose-bg); color: var(--rose-2); }
.pl-checks b { display: block; font-size: .93rem; }
.pl-checks p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.loc-tiles { grid-template-rows: none; grid-auto-rows: 200px; }
@media (max-width: 960px) { .pakka-lite { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
@media (max-width: 720px) {
  .pl-copy { flex-direction: column; gap: 8px; }
  .pl-copy .stamp-seal { width: 72px; height: 72px; }
  .pl-checks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .trust-line2 { font-size: .82rem; gap: 4px 12px; margin-top: 12px; }
}

/* ===== Swipe rows on phones: every row shows the same small "peek" of the next card ===== */
@media (max-width: 720px) {
  .grid-cards.rail > *, .grid-cards.rail > .pcard { width: calc((100vw - 28px) / 1.16); max-width: 360px; }
  .loc-tiles.rail > .loc-tile, .loc-tiles.rail > .loc-tile.big { width: calc((100vw - 40px) / 2.16); height: 170px; }
  .hb-row.rail > * { width: calc((100vw - 40px) / 2.16); }
  .rail-dots { display: flex; justify-content: center; gap: 5px; margin: -4px 0 4px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .2s, background .2s; }
  .rail-dots i.on { width: 16px; background: var(--rose); }
}
@media (min-width: 721px) { .rail-dots { display: none; } }
@media (max-width: 720px) {
  .pl-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-checks li { padding: 10px; align-items: center; }
  .pl-checks p { display: none; }
  .pl-checks b { font-size: .86rem; line-height: 1.25; }
  .pl-checks li:last-child { grid-column: 1 / -1; }
}

/* ===== Builder cover: taller on phones, adjustable, "fit" mode with a soft blurred fill ===== */
.cv-fit { position: absolute; inset: 0; display: block; overflow: hidden; }
.cv-fit .cv-blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) saturate(1.1); opacity: .8; transform: scale(1.05); }
.cv-fit picture, .cv-fit > img:not(.cv-blur) { position: relative; display: block; width: 100%; height: 100%; }
.cv-fit picture img { object-fit: contain !important; }
.bs-cover, .bl-cover, .bp-cover { position: relative; overflow: hidden; }
.bs-cover picture, .bl-cover picture, .bp-cover picture { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) {
  .bs-cover { height: auto; aspect-ratio: 16 / 9; }
  .bl-cover { height: auto; aspect-ratio: 16 / 9; }
  .bp-cover { height: auto; aspect-ratio: 16 / 9; }
}
.cv-adjust { position: relative; aspect-ratio: 16 / 9; max-height: 260px; width: 100%; border-radius: 14px; overflow: hidden; cursor: grab; touch-action: none; background: var(--paper-2); border: 1px solid var(--line); user-select: none; }
.cv-adjust.dragging { cursor: grabbing; }
.cv-adjust img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cv-adjust.is-fit { cursor: default; }
.cv-adjust.is-fit img { object-fit: contain; }
.cv-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(14,24,48,.72); color: #fff; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.cv-adjust.is-fit .cv-hint { display: none; }

/* ===== ☰ menu: everything fits on one phone screen ===== */
@media (max-width: 960px) {
  .nav > a { padding: .48em .45em; gap: 10px; font-size: .98rem; }
  .nav .nav-ic { width: 32px; height: 32px; border-radius: 9px; }
  .nav .nav-ic svg { width: 17px; height: 17px; }
  .nav-head { padding: 2px 2px 8px; }
  .nav-extra { gap: 12px; padding-top: 12px; margin-top: 8px; }
  .nav-extra .nav-post, .nav-extra .nav-post:hover { padding: .75em 1em; font-size: .98rem; }
  .nav-settings { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
  .nav-settings > .seg2 { grid-column: 1 / -1; }
  .seg2.sm { display: inline-grid; grid-template-columns: auto auto; padding: 3px; gap: 2px; border-radius: 10px; }
  .nav .seg2.sm a { padding: .45em .7em; font-size: .9rem; border-radius: 8px; }
  .select-wrap.sm::after { right: 12px; }
  .nav-extra .select-wrap.sm .city-pick { padding: .55em 2em .55em .8em; font-size: .92rem; border-radius: 10px; }
  .ns-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: .95rem; cursor: pointer; display: grid; place-items: center; }
  .ns-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
}
@media (max-width: 960px) and (max-height: 640px) { .nav > a { padding: .36em .45em; } .nav .nav-ic { width: 28px; height: 28px; } }

/* Desktop header: never spill past the edge, even when logged in */
.hdr-post .pl-short { display: none; }
@media (max-width: 1480px) and (min-width: 961px) {
  .um-name { display: none !important; }
  .hdr-post .pl-long { display: none; }
  .hdr-post .pl-short { display: inline; }
  .nav a { padding-inline: .6em; }
}
@media (max-width: 1200px) and (min-width: 961px) { .header-right [data-theme-toggle] { display: none; } }

/* Facts boxes: the last row stretches, so there is never an empty grey box */
.facts { display: flex; flex-wrap: wrap; }
.facts > div { flex: 1 1 150px; }
@media (max-width: 720px) { .facts > div { flex-basis: 40%; } }

/* Search tools in ONE neat row on tablet and computer */
.res-tools .sort-sel { width: auto; flex: none; }
@media (min-width: 721px) {
  .results-head { align-items: flex-end; gap: 12px; flex-wrap: wrap; }
  .res-tools { flex-wrap: nowrap; }
  .quick-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .quick-chips::-webkit-scrollbar { display: none; }
  .quick-chips > * { flex: none; }
}

/* ===== End of page: light, like the rest of the site (no heavy dark blocks) ===== */
.owner-band, [data-theme="dark"] .owner-band { background: linear-gradient(135deg, var(--rose-bg) 0%, var(--card) 70%); color: var(--ink); border: 1px solid var(--line); }
.owner-band::before { background: radial-gradient(520px 260px at 0% 0%, rgba(217,58,115,.12), transparent 60%); }
.ob-copy h2 { color: var(--ink); }
.ob-copy > p { color: var(--muted); }
.ob-points li { color: var(--ink); }
.ob-points svg { color: var(--rose); }
.owner-band .kicker.light { color: var(--rose-2); }
.owner-band .btn-glass { background: var(--card); color: var(--ink); border: 1px solid var(--line); backdrop-filter: none; }
.owner-band .btn-glass:hover { background: var(--paper); color: var(--ink); }
.ob-img::before { background: linear-gradient(90deg, rgba(253,234,241,.0), transparent 40%); }
@media (max-width: 860px) { .ob-img::before { background: none; } .ob-img { border-radius: 0; } }

.site-footer, [data-theme="dark"] .site-footer { background: var(--paper-2); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .brand b { color: var(--ink); }
.site-footer .brand small { color: var(--rose-2); }
.foot-about { color: var(--muted); }
.foot-contact a { color: var(--ink); }
.foot-grid h4 { color: var(--ink); }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--rose-2); }
.foot-bottom { border-top-color: var(--line); color: var(--soft); }
@media (max-width: 720px) {
  .foot-col { border-top-color: var(--line); }
  .foot-col > summary::after { color: var(--soft); }
}

/* ===== ☰ menu fills the whole screen: account on top, links grow, help at the bottom ===== */
.nav-acc { display: none; }
@media (max-width: 960px) {
  .nav { gap: 0; }
  .nav-acc { display: grid; gap: 10px; padding: 10px 0 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
  .na-user { display: flex !important; align-items: center; gap: 12px; padding: 4px 2px !important; text-decoration: none; }
  .na-user::after { display: none !important; }
  .na-user .avatar { width: 42px; height: 42px; font-size: 1.05rem; }
  .na-user b { display: block; color: var(--ink); font-size: 1.02rem; }
  .na-user small { color: var(--muted); font-size: .84rem; }
  .na-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .na-tiles a { position: relative; display: grid !important; justify-items: center; gap: 4px; padding: 10px 4px !important; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: .84rem; font-weight: 700; text-decoration: none; }
  .na-tiles a::after { display: none !important; }
  .na-tiles svg { color: var(--rose-2); }
  .na-tiles .badge-count { position: absolute; top: 6px; right: 10px; font-style: normal; }
  .na-hi { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
  .na-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .na-btns .btn { padding: .65em .5em; }
  .na-btns a::after { display: none !important; }
  /* links share the free space, so the menu is full on tall phones and still fits on small ones */
  .nav > a { flex: 1 1 0; min-height: 44px; max-height: 60px; }
  .nav-extra { margin-top: 6px; }
  .nav-help { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
  .nh-wa { display: flex !important; align-items: center; gap: 10px; padding: 8px 10px !important; border-radius: 12px; background: var(--stamp-bg); color: var(--ink); text-decoration: none; }
  .nh-wa::after { display: none !important; }
  .nh-wa svg { color: var(--stamp); flex: none; }
  .nh-wa b { display: block; font-size: .9rem; }
  .nh-wa small { color: var(--muted); font-size: .8rem; }
  .nh-links { display: flex; gap: 14px; justify-content: center; }
  .nh-links a { padding: 2px 0 !important; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; }
  .nh-links a::after { display: none !important; }
}
@media (max-width: 960px) {
  .nav .na-btns .btn-primary, .nav .na-btns .btn-primary:hover { color: #fff; }
}
/* short phones (iPhone SE etc.): drop the extras so it still fits with no scrolling */
@media (max-width: 960px) and (max-height: 760px) {
  .nav-help { display: none; }
  .na-hi { display: none; }
  .nav-acc { padding: 6px 0 8px; gap: 8px; margin-bottom: 2px; }
  .na-user .avatar { width: 36px; height: 36px; }
  .na-tiles a { padding: 7px 4px !important; grid-auto-flow: column; gap: 6px; align-items: center; justify-content: center; }
  .nav > a { min-height: 40px; }
  .nav-head { padding-bottom: 6px; }
  .nav-extra { gap: 10px; padding-top: 10px; }
}
@media (max-width: 960px) and (max-height: 760px) { .na-tiles .badge-count { position: static; margin-left: 2px; } }
/* Bigger-text mode: keep the menu on one screen too */
@media (max-width: 960px) {
  html.big-text .nh-links, html.big-text .na-hi { display: none; }
  html.big-text .nav > a { min-height: 38px; }
  html.big-text .nav-acc { padding: 6px 0 8px; gap: 8px; }
  html.big-text .na-tiles a { padding: 7px 4px !important; grid-auto-flow: column; gap: 6px; align-items: center; justify-content: center; }
}
@media (max-width: 960px) and (max-height: 760px) { html.big-text .nav-help { display: none; } }
/* Owner band photo: show more of it and let it melt into the light card (like before, but light) */
.ob-img::before, [data-theme="dark"] .ob-img::before { display: block; background: linear-gradient(90deg, var(--rose-bg) 0%, transparent 38%); }
@media (max-width: 860px) {
  .ob-img { min-height: 0; aspect-ratio: 4 / 3; }
  .ob-img::before, [data-theme="dark"] .ob-img::before { display: block; background: linear-gradient(0deg, var(--rose-bg) 0%, rgba(253,234,241,0) 42%); }
  [data-theme="dark"] .ob-img::before { background: linear-gradient(0deg, var(--rose-bg) 0%, transparent 42%); }
  .ob-copy { margin-top: -36px; }
}
.ob-copy { z-index: 2; }
/* Real small photos instead of icons in "We check every home" */
.pc-photo { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--paper-2); box-shadow: 0 2px 6px rgba(19,32,59,.10); }
@media (max-width: 720px) { .pc-photo { width: 48px; height: 48px; border-radius: 10px; } }

/* EMI calculator: sliders */
.emi-row { margin: 0 0 14px; }
.emi-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.emi-lab label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.emi-lab b { font-size: .95rem; color: var(--rose-2); white-space: nowrap; }
[data-emi] input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none; cursor: pointer; margin: 6px 0;
  background: linear-gradient(90deg, var(--rose) 0 var(--p, 50%), var(--line) var(--p, 50%) 100%); }
[data-emi] input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 3px solid var(--rose); box-shadow: 0 2px 8px rgba(19,32,59,.2); }
[data-emi] input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--rose); }
.emi-result { padding: 12px 14px; border-radius: 14px; background: var(--stamp-bg); }
.emi-result.flash { animation: emiflash .7s ease; }
@keyframes emiflash { 0% { box-shadow: 0 0 0 0 rgba(14,124,89,.5); } 100% { box-shadow: 0 0 0 12px rgba(14,124,89,0); } }
.emi-result { display: block !important; } .emi-result > * { display: block; width: auto; } .emi-result .verdict { font-size: 1.5rem; margin: 2px 0 0; }

/* ===== Rate a visit ===== */
.rate-box { margin-top: 8px; }
.rate-box > summary { list-style: none; display: inline-flex; cursor: pointer; }
.rate-box > summary::-webkit-details-marker { display: none; }
.rate-box[open] > summary { display: none; }
.rate-box form { margin-top: 6px; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.rate-q { margin: 0 0 4px; font-weight: 700; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; transition: color .1s, transform .1s; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: #f5a623; }
.rate-stars label:active { transform: scale(1.15); }
.rate-stars input:focus-visible + label { outline: 2px solid var(--rose); border-radius: 6px; }
.rate-yn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rate-yn > span { flex: 1 1 100%; font-size: .9rem; font-weight: 600; }
.rating-chip { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: #b7791f; }
.rating-chip small { color: var(--muted); font-weight: 600; }
.rv-block { margin-top: 18px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rv-head h3 { margin: 0; }
.rv-big { display: inline-flex; align-items: baseline; gap: 6px; }
.rv-big b { font-size: 1.4rem; color: #b7791f; }
.rv-big small { color: var(--muted); font-weight: 600; }
.rv-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.rv-facts li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .88rem; }
.rv-facts i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--stamp) var(--w), var(--line) var(--w)); }
.rv-facts b { min-width: 3ch; text-align: right; }
.rv-item { padding: 10px 0; border-top: 1px solid var(--line-2); }
.rv-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv-item p { margin: 4px 0 2px; }
button.rating-chip { border: 1px solid var(--line); background: var(--card); cursor: pointer; font: inherit; font-weight: 700; color: #b7791f; }
.area-rate .ar-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.area-rate h3 { margin: 0; }
.ar-q { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; font-size: .92rem; }
.ar-q.good { background: var(--stamp-bg); }
.ar-q.bad { background: var(--warn-bg, #fff4e5); }
.ar-links { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; }

/* ===== Tables → cards on phones (admin, KYC list…) ===== */
@media (max-width: 720px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  table.tbl, table.tbl tbody, table.tbl tr, table.tbl td { display: block; width: 100%; }
  table.tbl thead { display: none; }
  table.tbl tr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; margin-bottom: 10px; }
  table.tbl td { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); text-align: left; }
  table.tbl td:last-child { border-bottom: 0; }
  table.tbl td::before { content: attr(data-label); font-size: .78rem; font-weight: 700; color: var(--muted); }
  table.tbl td:not([data-label])::before, table.tbl td[data-label=""]::before { display: none; }
  table.tbl td:not([data-label]), table.tbl td[data-label=""] { grid-template-columns: 1fr; }
  table.tbl td form, table.tbl td .btn { max-width: 100%; }
  table.tbl td > div, table.tbl td form { display: flex; flex-wrap: wrap; gap: 6px; }
}
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 16px; }
.feat-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-weight: 600; font-size: .92rem; }
.feat-row input { width: 20px; height: 20px; accent-color: var(--stamp); flex: none; }
@media (max-width: 720px) { .dash form[method="get"] { flex-wrap: wrap !important; } .dash form[method="get"] .input { flex: 1 1 160px; min-width: 0; } }

/* ===== Compare ===== */
.cmp-btn { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font: 700 .78rem/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.cmp-btn.on { background: var(--rose); color: #fff; }
.cmp-btn.on span::before { content: "✓ "; }
.pcard .ph-dots { bottom: 16px; }
.cmp-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 65; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(19,32,59,.3); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.cmp-bar .cb-go { color: #fff; }
.cmp-bar .cb-go.disabled { background: rgba(255,255,255,.15); box-shadow: none; pointer-events: none; }
.cmp-bar .cb-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
@media (max-width: 720px) { .cmp-bar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } body:has(.sticky-cta) .cmp-bar { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }
.drop-chip { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--stamp-bg); color: var(--stamp); font: 800 .72rem/1.4 inherit; font-family: inherit; vertical-align: 3px; }
.cmp-page { padding-block: 20px 40px; }
.cmp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cmp-top h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: calc(130px + var(--cols) * 170px); font-size: .92rem; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.cmp-table tbody tr:nth-child(even) td, .cmp-table tbody tr:nth-child(even) th { background: var(--paper); }
.cmp-lab { position: sticky; left: 0; z-index: 2; background: var(--card); width: 130px; min-width: 130px; font-size: .82rem; color: var(--muted); font-weight: 700; box-shadow: 1px 0 0 var(--line-2); }
.cmp-home { vertical-align: top; }
.cmp-pic { display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.cmp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-pic source { display: none; }
.cmp-name { display: block; margin-top: 8px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.3; }
.cmp-x { margin-top: 6px; border: 0; background: none; color: var(--muted); font: 600 .8rem/1 inherit; font-family: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.cmp-table td.win { color: var(--stamp); font-weight: 700; }
.win-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--stamp-bg); color: var(--stamp); font-size: .7rem; font-weight: 800; }
.cmp-actions td, .cmp-actions th { border-bottom: 0; }
.ten-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 14px; }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ph-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--paper); font-size: .92rem; }
.ph-list em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 70px; text-align: right; }
.ph-list em.down { color: var(--stamp); }
.ph-list em.up { color: var(--rose-2); }

/* ===== Family shortlist ===== */
.sl-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--stamp-bg); margin-bottom: 18px; }
.sl-share-btns { display: flex; gap: 8px; }
.sl-item { display: grid; gap: 6px; align-content: start; min-width: 0; }
.sl-vote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sl-vote button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 .95rem/1 inherit; font-family: inherit; color: var(--ink); cursor: pointer; }
.sl-vote button.on { background: var(--stamp-bg); border-color: var(--stamp); }
.sl-vote button.on.no { background: var(--rose-bg); border-color: var(--rose); }
.sl-vote.ro { font-size: .86rem; color: var(--muted); gap: 12px; padding: 0 4px; }
.sl-page { padding-block: 22px 40px; }
.sl-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sl-head h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sl-name { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.sl-name label { font-weight: 600; font-size: .92rem; }
.sl-name .input { max-width: 240px; }
/* list view on phones: heart bottom-left, compare as a round icon bottom-right */
@media (max-width: 720px) {
  .list-sm .cmp-btn { left: auto; right: 6px; bottom: 6px; width: 30px; height: 30px; padding: 0; justify-content: center; }
  .list-sm .cmp-btn span { display: none; }
  .list-sm .cmp-btn.on::after { content: "✓"; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--stamp); color: #fff; font-size: .62rem; display: grid; place-items: center; }
  .cmp-table { min-width: calc(92px + var(--cols) * 132px); font-size: .86rem; }
  .cmp-lab { width: 92px; min-width: 92px; font-size: .74rem; }
  .cmp-table th, .cmp-table td { padding: 8px 8px; }
  .sl-share { align-items: flex-start; }
  .sl-share > div { flex: 1 1 calc(100% - 60px); }
  .sl-share-btns { width: 100%; }
  .sl-share-btns .btn { flex: 1; }
}

.cmp-swipe{display:none;margin:0 0 8px}
@media (max-width:720px){.cmp-swipe{display:block}}

/* ---------- Round 3: visit times, scam warning, voice post ---------- */
.slot-free { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: -4px 0 12px; padding: 8px 10px; border-radius: 10px; background: var(--stamp-bg); color: var(--stamp); }
.slot-free b { color: var(--ink); }
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.slot-day { flex: none; cursor: pointer; }
.slot-day input { position: absolute; opacity: 0; pointer-events: none; }
.slot-day span { display: grid; justify-items: center; gap: 0; width: 58px; padding: 7px 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); line-height: 1.15; }
.slot-day small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.slot-day b { font-size: 1.15rem; font-family: var(--ui); }
.slot-day input:checked + span { border-color: var(--solid); background: var(--solid); color: #fff; }
.slot-day input:checked + span small { color: rgba(255,255,255,.8); }
.slot-day input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.slot-set { border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin: 4px 0 16px; }
.slot-set > summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.slot-set > summary::-webkit-details-marker { display: none; }
.slot-set > summary .acc-ic { margin: 0; background: var(--stamp-bg); color: var(--stamp); }
.slot-set > summary b { display: block; }
.slot-set > summary .small { display: block; }
.slot-edit { color: var(--rose-2); font-weight: 700; }
.slot-set[open] .slot-edit { visibility: hidden; }
.slot-set form { padding: 0 14px 14px; }
.scam-warn { align-self: flex-start; max-width: min(88%, 520px); margin: -2px 0 6px; padding: 8px 11px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: .84rem; line-height: 1.4; border: 1px solid rgba(180,35,24,.18); }
.scam-warn b { font-weight: 800; }
.voice-box { border: 1.5px dashed var(--rose); border-radius: 16px; background: var(--rose-bg); padding: 14px; margin: 0 0 18px; display: grid; gap: 10px; }
.voice-top b { display: flex; align-items: center; gap: 6px; font-family: var(--ui); color: var(--ink); }
.voice-top b svg { color: var(--rose); flex: none; }
.voice-top .small { display: block; line-height: 1.4; margin-top: 2px; }
.voice-type { display: flex; gap: 8px; align-items: stretch; }
.voice-field { position: relative; flex: 1; min-width: 0; }
.voice-field .input { width: 100%; min-height: 48px; padding-right: 54px; background: var(--card); }
.voice-box.no-mic .voice-field .input { padding-right: 14px; }
.voice-mic { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--rose-bg); color: var(--rose); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.voice-mic:hover { background: var(--rose); color: #fff; }
.voice-mic:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.voice-mic.listening { background: var(--rose); color: #fff; animation: vpulse 1.1s ease-in-out infinite; }
.voice-box.is-listening .voice-field .input { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217,58,115,.15); }
@keyframes vpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(217,58,115,.45); } 50% { box-shadow: 0 0 0 9px rgba(217,58,115,0); } }
.voice-type > .btn { flex: none; min-height: 48px; padding-inline: 18px; }
.voice-live { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--rose); font-weight: 600; }
.voice-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); flex: none; animation: vblink 1s ease-in-out infinite; }
@keyframes vblink { 50% { opacity: .25; } }
.voice-out { margin: 0; padding: 8px 10px; border-radius: 10px; font-weight: 600; }
.voice-out.ok { background: var(--stamp-bg); color: var(--stamp); }
.voice-out.bad { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 600px) { .voice-type { flex-direction: column; } .voice-type > .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .voice-mic.listening, .voice-dot { animation: none; } }

/* ---------- Round 4: landing pages, price graph ---------- */
.lp { padding-block: 18px 40px; }
.lp-crumb a { color: inherit; }
.lp-h1 { font-size: clamp(1.45rem, 3.4vw, 2.3rem); margin: 6px 0 10px; text-wrap: balance; }
.lp-facts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-facts li { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
.lp-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 16px; }
.lp-bar p { display: flex; gap: 6px; align-items: center; color: var(--stamp); }
.lp-rel { margin-top: 30px; }
.lp-rel h2, .lp-faq h2 { font-size: 1.2rem; margin: 0 0 10px; }
.lp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-links a { padding: 7px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; color: var(--ink); text-decoration: none; line-height: 1.3; }
.lp-links a:hover { border-color: var(--rose); color: var(--rose-2); }
.lp-pop { margin: 10px 0 34px; }
.lp-faq { margin-top: 32px; max-width: 760px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.lp-faq summary { cursor: pointer; font-weight: 700; }
.lp-faq p { margin: 8px 0 0; color: var(--muted); }
.pgraph { margin-top: 30px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); max-width: 620px; }
.pgraph h2 { font-size: 1.15rem; margin: 0; display: flex; gap: 6px; align-items: center; }
.pg-now { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.pg-now b { font-size: 1.5rem; font-family: var(--ui); }
.pg-chg { font-size: .82rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.pg-chg.up { background: var(--warn-bg); color: var(--warn); }
.pg-chg.down { background: var(--stamp-bg); color: var(--stamp); }
.pg-svg { width: 100%; height: auto; display: block; margin-top: 4px; overflow: visible; }
.pg-grid { stroke: var(--line); stroke-width: 1; }
.pg-ax { font-size: 10px; fill: var(--muted); font-family: var(--body); }
.pg-area { fill: none; stroke: var(--rose); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.pg-city { fill: none; stroke: var(--soft); stroke-width: 1.8; stroke-dasharray: 5 4; }
.pg-dot { fill: var(--card); stroke: var(--rose); stroke-width: 2; }
.pg-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); margin-top: 4px; }
.pg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pg-k { width: 18px; height: 0; border-top: 2.6px solid var(--rose); display: inline-block; }
.pg-k.city { border-top: 2px dashed var(--soft); }

/* Photo never zooms under the mouse (card still lifts a little) — locked for every browser */
.pcard .ph img, .pcard .ph-strip img, .pcard:hover .ph img, .pcard:hover .ph-strip img { transform: none !important; scale: none !important; zoom: 1 !important; }

/* Safari fix: Safari can't size a photo through <picture style="display:contents">, so it drew the full 960px image
   outside the card, and lost the rounded clip while the card lifts. Give picture a real box and force the clip. */
.ph picture, .ph-strip picture, .loc-tile picture, .gallery picture, .acc-vpic picture, .cmp-pic picture { display: block; width: 100%; height: 100%; }
.ph-strip > a > picture > img, .ph picture > img, .loc-tile picture > img, .gallery picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcard .ph, .loc-tile { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); }
.pcard { -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* Safari fix 2 (the real one): Safari sized the photo box from the big photo inside it, so the box grew wider than
   the card. Width is now fixed to the card (minus its margins), and the photo box ignores its content's size. */
.pcard { min-width: 0; }
.pcard > * { min-width: 0; max-width: 100%; }
.pcard .ph { width: calc(100% - 16px); max-width: calc(100% - 16px); flex: none; contain: inline-size; }
.ph-strip { width: 100%; height: 100%; }
.ph-strip > a { min-width: 0; width: 100%; overflow: hidden; }
@media (max-width: 720px) {
  .pcard .ph { width: calc(100% - 12px); max-width: calc(100% - 12px); }
  .list-sm .pcard .ph { width: auto; max-width: none; contain: none; }
}

/* Family pick on the compare page */
.pick-share { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--stamp-bg); border: 1px solid rgba(14,124,89,.18); }
.pick-share b { display: block; }
.pick-share .small { display: block; }
.pick-ic { font-size: 1.5rem; line-height: 1; }
.cmp-vote { display: flex; gap: 6px; margin-top: 8px; }
.cmp-vote button { flex: 1; justify-content: center; }
.cmp-likers { display: block; margin-top: 4px; font-weight: 600; }
@media (max-width: 720px) { .pick-share .btn { width: 100%; justify-content: center; } }
.cmp-vote { flex-wrap: nowrap; } .cmp-vote button { padding: 6px 8px; min-width: 0; gap: 4px; }

/* Calculators (stamp duty, area converter) */
.tool-page { padding-block: 18px 40px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 14px; }
.tool-out .verdict { font-size: 2rem; margin: 2px 0 10px; }
.tool-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tool-table td { padding: 9px 0; border-top: 1px solid var(--line-2); }
.tool-table td:last-child { text-align: right; font-weight: 700; }
.tool-table tr.on td { color: var(--rose-2); }
.sd-line { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--paper-2); }
@media (max-width: 720px) { .tool-grid { grid-template-columns: 1fr; } .tool-out .verdict { font-size: 1.7rem; } }

/* Near a place / near me */
.dist-chip { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--deal-bg); color: var(--deal); font-size: .74rem; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.near-bar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--deal-bg); border: 1px solid rgba(31,85,196,.18); }
.near-what { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); min-width: 0; }
.near-km { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.near-km a { padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.near-km a.on { background: var(--deal); border-color: var(--deal); color: #fff; }
.near-x { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--muted); text-decoration: none; }
.dup-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: .9rem; line-height: 1.4; }
.dup-note svg { flex: none; margin-top: 2px; }
.dup-note a { font-weight: 700; color: inherit; }
.vid-mark { font-weight: 700; margin-right: 6px; }

/* Rent receipts */
.rr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.rr-card { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card); break-inside: avoid; page-break-inside: avoid; }
.rr-head { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; margin-bottom: 8px; }
.rr-card p { margin: 0 0 12px; line-height: 1.5; }
.rr-foot { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; font-size: .85rem; }
.rr-sign { text-align: right; border-top: 1px solid var(--muted); padding-top: 4px; min-width: 150px; }
.rr-stamp { font-size: .78rem; color: var(--warn); margin: 8px 0 0 !important; }
@media print {
  .site-header, .site-footer, .mobile-bar, .no-print, .ai-fab, .cmp-bar, .toast { display: none !important; }
  body { background: #fff !important; }
  .rr-list { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
  .rr-card { border-color: #999; background: #fff; color: #000; }
}

/* Area rate card */
.rate-card { margin-bottom: 24px; }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rc-head h2 { margin: 0; font-size: 1.2rem; }
.rc-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.rc-big > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-sm); background: var(--paper-2); min-width: 0; }
.rc-big b { font-size: 1.25rem; line-height: 1.2; }
.rc-big b small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.rc-table-wrap { overflow-x: auto; }
.rc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rc-table th, .rc-table td { padding: 9px 8px 9px 0; border-top: 1px solid var(--line-2); text-align: left; vertical-align: baseline; }
.rc-table thead th { border-top: 0; font-size: .8rem; color: var(--muted); font-weight: 600; }
.rc-table tbody th { font-weight: 600; }
.rc-table td:last-child { white-space: nowrap; }
.rc-city a { color: var(--ink); text-decoration: none; }
.rc-city a:hover { color: var(--rose); text-decoration: underline; }
.rc-warn { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); display: flex; gap: 6px; align-items: flex-start; }
@media (max-width: 480px) { .rc-big { grid-template-columns: 1fr; } .rc-table { font-size: .88rem; } }

/* ===== Photo focus: owner can drag a photo to choose what the card shows ===== */
.thumbs figure[data-focusable] img { cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; }
.thumbs figure.dragging img { cursor: grabbing; }
.focus-hint { margin: 6px 0 0; }

/* ===== Search page v2 (switch: feat_search_v2): Amazon-style — filters always open on the left, compact cards, map on demand ===== */
.view-sw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.view-sw button { border: 0; background: none; color: var(--muted); padding: 7px 11px; cursor: pointer; display: grid; place-items: center; min-height: 36px; }
.view-sw button + button { border-left: 1px solid var(--line); }
.view-sw button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sv2 .res-tools [data-map-toggle][aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.deal-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); flex: none; }
.deal-seg a { padding: .42em .95em; font-weight: 700; font-size: .88rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.deal-seg a + a { border-left: 1px solid var(--line); }
.deal-seg a.on { background: var(--ink); color: var(--paper); }
.map-price.hot { background: var(--rose); transform: scale(1.18); display: inline-block; transition: transform .15s; }
.pcard.hot-card { box-shadow: 0 0 0 2px var(--rose), var(--shadow); }
.map-here { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 600; box-shadow: 0 6px 18px rgba(14,24,48,.25); white-space: nowrap; }
.map-back, .fab-map { display: none; }
.cline { display: none; }

/* searchable area list */
.loc-find { min-height: 38px; padding: .45em .75em; font-size: .9rem; margin-bottom: 8px; }
.loc-checks { display: grid; gap: 2px; }
.loc-ck { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: .9rem; cursor: pointer; border-radius: 6px; }
.loc-ck:hover { background: var(--line-2); }
.loc-ck input { width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.loc-checks:not(.all):not(.searching) .loc-ck.more { display: none; }
.loc-ck[hidden] { display: none !important; }

/* compact card (Amazon-like): big photo, a few short lines */
.cards-v2 .pcard .specs { display: none; }
.cards-v2 .pcard .cline { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-2, var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cards-v2 .cmp-btn span { display: none; }
.cards-v2 .cmp-btn { padding: 7px; }
@media (min-width: 721px) {
  .cards-v2 .pcard .body { gap: 4px; padding: 10px 14px 12px; }
  .cards-v2 .pcard .price { font-size: 1.3rem; flex-wrap: nowrap; white-space: nowrap; gap: 6px; }
  .cards-v2 .pcard .price small { overflow: hidden; text-overflow: ellipsis; }
  .cards-v2 .pcard .drop-chip { font-size: .78rem; padding: .1em .45em; }
  .cards-v2 .trust-line { flex-wrap: nowrap; overflow: hidden; margin: 0; }
  .cards-v2 .pcard .title { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .cards-v2 .pcard .place { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cards-v2 .pcard .foot { margin-top: 2px; padding-top: 7px; font-size: .76rem; }
  .cards-v2 .grid-cards:not(.as-list) .pcard .ph { aspect-ratio: 4 / 3; }
}

@media (min-width: 821px) {
  .sv2.search-layout, .sv2.search-layout.with-map { grid-template-columns: 236px minmax(0, 1fr); gap: 22px; }
  .sv2 .filters { padding: 14px 16px; border-radius: 16px; top: 80px; max-height: calc(100vh - 96px); }
  .sv2 .filters h4 { font-size: .9rem; margin: 14px 0 6px; }
  .sv2 .filters .filter-actions { display: none; }
  .sv2 .grid-cards { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
  .sv2 .grid-cards.as-list { grid-template-columns: 1fr; gap: 14px; }
  .sv2 .as-list .pcard { display: grid; grid-template-columns: minmax(240px, 36%) minmax(0, 1fr); align-items: stretch; }
  .sv2 .as-list .pcard .ph { width: auto; max-width: none; aspect-ratio: auto; height: auto; min-height: 200px; margin: 8px 0 8px 8px; }
  .sv2 .as-list .pcard .body { padding: 14px 18px; align-content: start; gap: 6px; }
  .sv2 .as-list .pcard .title { font-size: 1.05rem; -webkit-line-clamp: 2; }
}
@media (min-width: 1101px) {
  .sv2.search-layout.with-map:not(.map-off) { grid-template-columns: 236px minmax(0, 1fr) clamp(320px, 32%, 440px); }
  .sv2.map-off .mapbox { display: none; }
  .sv2 .mapbox { position: sticky; top: 80px; height: calc(100vh - 96px); }
}
@media (max-width: 1100px) {
  .sv2 .mapbox { display: none; }
  .sv2.search-layout.map-only .mapbox { display: block; position: fixed; left: 0; right: 0; top: var(--hdr, 64px); bottom: 0; height: auto; z-index: 80; border-radius: 0; border: 0; }
  .sv2.map-only .map-here { top: 12px; left: auto; right: 12px; transform: none; }
  .fab-map { display: inline-flex; align-items: center; gap: 6px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 85; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: .92rem; box-shadow: 0 10px 28px rgba(14,24,48,.35); cursor: pointer; }
  .map-open .fab-map { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .sv2 .res-tools [data-map-toggle] { display: none; }
}
@media (min-width: 721px) and (max-width: 1100px) { .fab-map { bottom: 24px; } }
@media (max-width: 820px) {
  .sv2.search-layout, .sv2.search-layout.with-map { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .sv2 .grid-cards:not(.list-sm) { grid-template-columns: 1fr; gap: 14px; }
  .deal-seg a { padding: .38em .8em; font-size: .84rem; }
  .cards-v2 .list-sm .pcard .cline { font-size: .78rem; }
}
@media (min-width: 721px) { .cards-v2 .trust-line summary, .cards-v2 .trust-line .fair-badge { white-space: nowrap; } .cards-v2 .trust-line > * { flex: none; } }
/* long colony names never stretch a card: one line with "…" */
.pcard .place { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.loc-chips .chip-rate { color: var(--muted); font-weight: 600; font-size: .78em; margin-left: 2px; }

/* Admin: today's work + health */
.todo-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.todo-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--card); }
.todo-list a:hover { border-color: var(--ink); }
.todo-list b { font-size: 1.35rem; text-align: center; }
.todo-list span { display: grid; font-weight: 600; min-width: 0; }
.todo-list small { color: var(--muted); font-weight: 500; }
.todo-list .lvl-high b { color: var(--rose); }
.todo-clear { display: flex; gap: 8px; align-items: center; color: var(--green, #1f7a4d); font-weight: 600; margin: 8px 0 0; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.health-grid > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper-2); }
.health-grid span { grid-row: span 2; font-weight: 800; }
.health-grid .ok span { color: var(--green, #1f7a4d); }
.health-grid .bad { background: var(--warn-bg); }
.health-grid .bad span { color: var(--warn); }
.health-grid small { color: var(--muted); }

/* No-internet banner + "sending" buttons */
.net-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 300; background: #2B2F3A; color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center; }
.net-bar.ok { background: #1f7a4d; }
button.is-sending { opacity: .7; cursor: progress; }
/* admin listing rows: photo beside details on big screens, on top on phones */
.adm-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .adm-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } .adm-row > a img { width: 100% !important; height: 160px !important; } }
/* a missing photo shows the soft placeholder, never its alt text with an underline */
.pcard .ph img, .gallery img, .list-row img, .adm-row img, .acc-vpic img { color: transparent; font-size: 0; }
.pcard .ph a, .acc-vpic { text-decoration: none; }
/* free tools in the phone menu, as small chips */
.nav-tools { display: none; }
@media (max-width: 960px) {
  .nav .nav-tools { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px .5em 4px; }
  .nav .nav-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .nav-chips a { padding: .5em .85em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
}
/* closest homes under an empty result */
.close-matches { margin-top: 26px; }
.close-title { font-size: 1.15rem; margin: 0 0 2px; }
.flash-link { font-weight: 700; color: inherit; text-decoration: underline; white-space: nowrap; }
/* "List your home free" page */
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps.steps-3 { grid-template-columns: 1fr; } .steps.steps-3 li { border-left: 0; border-top: 1px solid var(--line); } .steps.steps-3 li:first-child { border-top: 0; } }
.lf-hero h1 { max-width: 18ch; }
.lf-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.lf-broker { margin-top: 8px; }

/* ---------- Readability (WCAG AA): small coloured text one shade deeper ---------- */
.kicker, .chip.rose, .rose { color: var(--rose-2); }
.kicker.light { color: var(--gold-2); }
.owner-band .kicker.light { color: var(--rose-2); }
.foot-bottom { color: var(--muted); }
.rating-chip, button.rating-chip { color: #8A5A12; }
:root[data-theme="dark"] .rating-chip, :root[data-theme="dark"] button.rating-chip { color: var(--gold); }
.ph-strip:focus-visible { outline: 3px solid var(--focus, #7AA2FF); outline-offset: -3px; }

/* ===== Buyer side fixes (search, home page, visits, chat) ===== */
/* Hindi pages: Devanagari font */
html[lang="hi"] { --display: "Fraunces", "Mukta", "MuktaDeva", Georgia, serif; --ui: "Bricolage", "Mukta", "MuktaDeva", system-ui, sans-serif; --body: "Mukta", "MuktaDeva", system-ui, -apple-system, "Segoe UI", sans-serif; }
/* Phone: the "Map" pill moves up while the compare bar is showing, so "Compare →" stays tappable */
@media (max-width: 1100px) { body:has(.cmp-bar:not([hidden])) .fab-map { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 721px) and (max-width: 1100px) { body:has(.cmp-bar:not([hidden])) .fab-map { bottom: 84px; } }
/* Fingers: heart / compare on cards and BHK-type chips in filters are at least 44 × 44 */
.pcard .save-btn, .pcard .cmp-btn, .list-sm .pcard .save-btn, .list-sm .pcard .cmp-btn { min-width: 44px; height: 44px; }
.pcard .save-btn, .list-sm .pcard .save-btn, .list-sm .pcard .cmp-btn, .cards-v2 .pcard .cmp-btn { width: 44px; padding: 0; justify-content: center; }
.list-sm .pcard .save-btn svg, .list-sm .pcard .cmp-btn svg { width: 18px; height: 18px; }
.filters .choice span { min-height: 44px; min-width: 44px; justify-content: center; }
.pcard .drop-chip, .detail-price .drop-chip { font-size: .72rem; font-weight: 800; line-height: 1.4; white-space: nowrap; }
/* Price far below the area rate: a warning, not praise */
.fair-badge.warn { background: var(--warn-bg); color: var(--warn); }
.fair-badge.warn::before { content: "⚠ "; }
.note.too-low { margin: 10px 0 0; }
/* Agent / builder number for signed-in buyers */
.call-row { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.call-row .btn { flex: 1 1 auto; justify-content: center; }
.call-login { margin-bottom: 10px; }
/* "Visit booked … change / cancel" on the home's page */
.visit-booked { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--stamp-bg); }
.visit-booked .vb-ic { color: var(--stamp); flex: none; margin-top: 2px; }
.visit-booked b { display: block; }
.visit-booked .small { display: block; }
.vb-acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
/* Visits page */
.vis-sec { margin-bottom: 22px; }
.vis-h { font-size: 1.15rem; margin: 18px 0 4px; display: flex; gap: 8px; align-items: center; }
.vrow .v-addr { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.vrow .v-addr svg { flex: none; margin-top: 2px; }
.vchange { margin-top: 8px; }
.vchange > summary { list-style: none; display: inline-flex; }
.vchange > summary::-webkit-details-marker { display: none; }
.vchange-form { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.slot-set { margin: 6px 0 22px; }
/* Chat: on phones the bottom bar steps aside so it never covers the message box */
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.chat-block { margin-left: auto; }
.lead-note { display: flex; flex-direction: column; gap: 2px; }
.lead-note label { line-height: 1.2; }
@media (max-width: 720px) {
  body.chat-page .mobile-bar, body.chat-page .cmp-bar, body.chat-page .install-card { display: none !important; }
  body.chat-page .dash-nav { display: none; }
  body.chat-page .chat { height: calc(100dvh - 96px); min-height: 380px; margin-top: 8px; }
  body.chat-page .chat-head { gap: 8px; padding: 10px 12px; }
  body.chat-page .chat-form { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
.chat-body > * { flex-shrink: 0; }   /* many messages: each keeps its height and the box scrolls (they used to squash on top of each other) */
/* Removed home / 404: similar homes below the message */
.gone-similar { margin-top: 8px; }
.pick-votes-note { margin: -6px 0 14px; }
/* search sheet: budget chips are buttons that follow the Buy/Rent choice */
.bchip { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.bchip[aria-pressed="true"] span { background: var(--ink); color: #fff; border-color: var(--ink); }
.bchip:focus-visible span { outline: 3px solid #7aa2ff; outline-offset: 2px; }
.bgrp-h { margin: 4px 0 6px; }
[data-theme="dark"] .bchip[aria-pressed="true"] span { background: var(--solid); }
/* phone bottom bar on a home: long prices ("₹14,000/month") wrap their "/month" instead of running under Chat */
.sticky-cta .sc-price b { white-space: normal; overflow-wrap: anywhere; }
.sticky-cta .sc-price .sc-per { font-size: .72em; font-weight: 700; color: var(--muted); white-space: nowrap; display: inline-block; }
.sticky-cta .btn { min-width: 0; }

/* ---------- Chat, WhatsApp-style ---------- */
:root { --wa-bg: #EFE7DB; --wa-dots: rgba(19,32,59,.05); --wa-me: #D9FDD3; --wa-me-ink: #13203B; --wa-them: #FFFFFF; --wa-tick: #53BDEB; --wa-day: rgba(255,255,255,.92); --wa-sys: #FFF4C4; --wa-sys-ink: #5c4a00; }
:root[data-theme="dark"] { --wa-bg: #0B141A; --wa-dots: rgba(255,255,255,.03); --wa-me: #005C4B; --wa-me-ink: #E9EDEF; --wa-them: #1F2C34; --wa-tick: #53BDEB; --wa-day: #1F2C34; --wa-sys: #1F2C34; --wa-sys-ink: #FFD279; }
.chat.wa { grid-template-rows: auto auto auto 1fr auto; background: var(--wa-bg); }
.chat.wa .chat-head { flex-wrap: nowrap; gap: 10px; padding: 10px 12px; background: var(--card); position: relative; z-index: 2; }
.chat.wa .ch-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); flex: none; }
.chat.wa .ch-back svg { transform: rotate(180deg); }
.chat.wa .ch-back:hover { background: var(--line-2); }
.chat.wa .avatar { width: 40px; height: 40px; font-size: 1rem; }
.chat.wa .ch-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat.wa .ch-who b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat.wa .ch-sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat.wa .ch-sub .ok { color: var(--stamp); font-weight: 600; }
.chat.wa .ch-sub svg { vertical-align: -1px; }
.chat.wa .ch-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); border: 0; background: none; flex: none; font-size: 1.35rem; line-height: 1; cursor: pointer; text-decoration: none; }
.chat.wa .ch-ic:hover { background: var(--line-2); }
.chat.wa .ch-ic.call { background: var(--stamp); color: #fff; }
.chat.wa .ch-menu > summary { min-width: 0; letter-spacing: 0; }
.mm-pop.down { bottom: auto; top: calc(100% + 6px); }
.mm-pop button.danger { color: var(--danger); }
.chat-home { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.chat-home img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.chat-home .chm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-home .chm-t b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-home .chm-t span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.chat-home .chm-go { font-size: .8rem; font-weight: 700; color: var(--stamp); flex: none; }
.chat.wa .lead-note { flex-direction: row; align-items: center; gap: 8px; padding: 6px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.chat.wa .lead-note label { flex: 1; min-width: 0; font-size: .78rem; }
.chat.wa .lead-note select { width: auto; min-height: 32px; padding: .15em .5em; font-size: .85rem; }
.chat.wa .chat-body { background-color: var(--wa-bg); background-image: radial-gradient(var(--wa-dots) 1.2px, transparent 1.3px); background-size: 18px 18px; gap: 2px; padding: 12px 4% 16px; }
.chat.wa .msg { position: relative; max-width: min(78%, 520px); padding: 6px 9px 6px 10px; border: 0; border-radius: 10px; background: var(--wa-them); color: var(--ink); box-shadow: 0 1px .5px rgba(11,20,26,.13); margin-top: 8px; font-size: .95rem; line-height: 1.38; }
.chat.wa .msg.cont { margin-top: 2px; }
.chat.wa .msg:not(.cont):not(.sys) { border-top-left-radius: 0; }
.chat.wa .msg:not(.cont):not(.sys)::before { content: ""; position: absolute; top: 0; left: -7px; border-top: 0 solid transparent; border-right: 8px solid var(--wa-them); border-bottom: 9px solid transparent; }
.chat.wa .msg.me { background: var(--wa-me); color: var(--wa-me-ink); }
.chat.wa .msg.me:not(.cont) { border-top-left-radius: 10px; border-top-right-radius: 0; }
.chat.wa .msg.me:not(.cont)::before { left: auto; right: -7px; border-right: 0; border-left: 8px solid var(--wa-me); }
.chat.wa .msg .mt { white-space: pre-wrap; overflow-wrap: anywhere; }
/* time sits inside the bubble, bottom right, after the text (a little space is kept for it) */
.chat.wa .msg time { display: inline-flex; align-items: center; gap: 3px; float: right; margin: 6px 0 -4px 12px; font-size: .68rem; opacity: .62; white-space: nowrap; position: relative; top: 4px; }
.chat.wa .msg .tick { display: inline-block; width: 16px; height: 11px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M11.07.65 4.6 7.12 1.93 4.45.5 5.88l4.1 4.1L12.5 2.08z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M11.07.65 4.6 7.12 1.93 4.45.5 5.88l4.1 4.1L12.5 2.08z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain; }
.chat.wa .msg .tick.read { background: var(--wa-tick); opacity: 1; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M11.07.65 4.6 7.12 1.93 4.45.5 5.88l4.1 4.1L12.5 2.08zM15.07.65 8.6 7.12l-.8-.8-1.43 1.43 2.23 2.23L16.5 2.08z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M11.07.65 4.6 7.12 1.93 4.45.5 5.88l4.1 4.1L12.5 2.08zM15.07.65 8.6 7.12l-.8-.8-1.43 1.43 2.23 2.23L16.5 2.08z' fill='black'/%3E%3C/svg%3E"); }
.chat.wa .msg.me time { opacity: .7; }
.chat.wa .msg.sys { align-self: center; max-width: min(92%, 560px); text-align: center; background: var(--wa-sys); color: var(--wa-sys-ink); font-size: .82rem; font-weight: 600; border-radius: 8px; margin: 10px 0 6px; box-shadow: none; }
.chat.wa .msg.sys time { float: none; display: block; text-align: center; margin: 2px 0 0; top: 0; }
.chat.wa .msg.sys svg { vertical-align: -1px; }
.chat-day { align-self: center; margin: 12px 0 4px; }
.chat-day span { display: inline-block; padding: 5px 12px; border-radius: 8px; background: var(--wa-day); color: var(--muted); font-size: .76rem; font-weight: 700; box-shadow: 0 1px .5px rgba(11,20,26,.1); }
.chat.wa .scam-warn { align-self: center; max-width: 92%; margin-top: 6px; }
.chat.wa .chat-form { align-items: flex-end; gap: 8px; padding: 8px 10px; border-top: 0; background: transparent; }
.chat.wa .chat-form textarea { flex: 1; min-height: 46px; max-height: 132px; padding: 12px 16px; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; resize: none; box-shadow: 0 1px .5px rgba(11,20,26,.13); outline: none; overflow-y: auto; }
.chat.wa .chat-form textarea:focus-visible { box-shadow: 0 0 0 2px var(--stamp); }
.chat.wa .chat-form .send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--stamp); color: #fff; cursor: pointer; transition: transform .12s; }
.chat.wa .chat-form .send:active { transform: scale(.92); }
.chat.wa .chat-form .send svg { margin-left: 3px; }
.chat.wa .chat-blocked { margin: 0; padding: 14px; text-align: center; background: var(--card); }
@media (max-width: 720px) {
  body.chat-page .chat.wa { height: calc(100dvh - 76px); margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  body.chat-page .chat.wa .chat-head { padding: 8px 8px; gap: 6px; }
  body.chat-page .chat.wa .ch-ic { width: 38px; height: 38px; }
  .chat.wa .msg { max-width: 85%; }
  body.chat-page .chat.wa .chat-form { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}

/* cards: the trust line and price never spill out of the card (desktop rows are one line) */
.pcard .meter .m-short { display: none; }
@media (min-width: 721px) {
  .cards-v2 .pcard .meter .m-long { display: none; }
  .cards-v2 .pcard .meter .m-short { display: inline; }
  .cards-v2 .trust-line > * { min-width: 0; flex: 0 1 auto; }
  .cards-v2 .trust-line .fair-badge { white-space: nowrap; }
  .cards-v2 .pcard .price { min-width: 0; overflow: hidden; }
  .cards-v2 .pcard .price small { min-width: 0; flex: 0 1 auto; white-space: nowrap; }
  .cards-v2 .pcard .price .drop-chip { flex: none; margin-left: auto; }
}
@media (min-width: 721px) { .cards-v2 .trust-line { flex-wrap: wrap; overflow: visible; row-gap: 4px; } }
.detail-price .drop-chip { font-family: var(--body); letter-spacing: 0; vertical-align: middle; }

/* contact without an account */
.guest-msg .gm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 380px) { .guest-msg .gm-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.note.ok { background: var(--stamp-bg); color: var(--stamp); border-color: transparent; display: flex; gap: 6px; align-items: flex-start; }
.visitors { margin: 12px 0 16px; }
.visitor-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-2); }
.visitor-row .vr-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visitor-row .vr-msg { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.visitor-row .vr-acts { display: flex; flex-direction: column; gap: 6px; flex: none; }
@media (max-width: 560px) { .visitor-row { flex-direction: column; } .visitor-row .vr-acts { flex-direction: row; flex-wrap: wrap; } }
.nav-app { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav-app img { border-radius: 6px; }
@media (min-width: 981px) { .nav .nav-app { display: none; } }
/* live suggestions: matching homes with a small photo */
.sg-item.sg-home .sg-ic { width: 52px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--line-2); flex: none; display: grid; place-items: center; }
.sg-item.sg-home .sg-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-item.sg-home .sg-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.more-area { margin-top: 28px; }

/* ===== Chat, like WhatsApp: full screen on phones, online / typing…, photos, homes, video call, quick replies, AI ===== */
.chat.wa { display: flex; flex-direction: column; }
.chat.wa > * { flex-shrink: 0; }
.chat.wa .chat-body { flex: 1 1 auto; min-height: 0; }
.chat.wa .msg { white-space: normal; }
/* computer: the chat fills the window below the site header; no footer under it */
body.chat-page .site-footer { display: none; }
body.chat-page .dash { padding-bottom: 18px; }
@media (min-width: 721px) { body.chat-page .chat.wa { height: calc(100dvh - 120px); min-height: 460px; } }
/* phone: the whole screen is the chat (no site header, no footer, no bottom bar) */
@media (max-width: 720px) {
  body.chat-page .site-header, body.chat-page .site-footer, body.chat-page .mobile-bar, body.chat-page .flash-stack ~ .install-card { display: none !important; }
  body.chat-page main#main { padding: 0; }
  body.chat-page .dash { display: block; padding: 0; }
  body.chat-page .chat.wa { position: fixed; inset: 0; z-index: 60; height: auto; min-height: 0; margin: 0; border: 0; border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px); }
  body.chat-page .chat.wa .chat-head { padding: 8px 6px; }
  body.chat-page .chat.wa .chat-form { padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
}
/* online dot, "typing…" */
.chat.wa .avatar { position: relative; }
.chat.wa .dot-online { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #25D366; border: 2px solid var(--card); }
.chat.wa .ch-presence.live { color: var(--stamp); font-weight: 700; }
.typing-bubble { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; margin-top: 8px; border-radius: 10px; background: var(--wa-them); box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.typing-bubble[hidden] { display: none; }
.typing-bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: pc-typing 1.2s infinite ease-in-out; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; } .typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes pc-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing-bubble i { animation: none; } }
/* photo, home card, video-call card */
.chat.wa .msg.has-photo { padding: 4px 4px 6px; }
.chat.wa .m-photo { display: block; border-radius: 8px; overflow: hidden; background: var(--line-2); }
/* like WhatsApp: a neat preview about two-thirds of the screen wide; tall photos are trimmed top and bottom in the chat,
   the whole photo opens full screen on a tap; videos play here or go full screen from their own button */
.chat.wa .m-photo img { display: block; width: min(260px, 62vw); height: auto; max-height: min(330px, 42vh); object-fit: cover; cursor: zoom-in; }
.chat.wa .m-video { display: block; border-radius: 8px; overflow: hidden; background: #000; }
.chat.wa .m-video video { display: block; width: min(260px, 62vw); height: min(330px, 42vh); object-fit: cover; background: #000; }
.chat.wa .m-video video.wide { height: auto; max-height: min(330px, 42vh); object-fit: contain; }
.chat.wa .m-photo-wait { position: relative; display: grid; place-items: center; width: min(240px, 60vw); height: 150px; color: var(--muted); font-size: .85rem; }
.chat.wa .m-photo-wait b { font-weight: 700; }
.chat.wa .up-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--stamp); transition: width .2s; }
/* photo full screen */
.chat-lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #000; touch-action: pinch-zoom; }
.chat-lb[hidden] { display: none; }
.chat-lb img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.chat-lb .lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
html.lb-open, html.lb-open body { overflow: hidden; }
.chat.wa .msg.has-photo time { margin-right: 6px; }
.chat.wa .msg.sending { opacity: .7; }
.chat.wa .m-home { display: flex; gap: 10px; align-items: center; min-width: min(260px, 64vw); text-decoration: none; color: inherit; padding: 2px 0; }
.chat.wa .m-home img { width: 64px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.chat.wa .m-home span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.chat.wa .m-home b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chat.wa .m-home small { font-size: .78rem; opacity: .8; }
.chat.wa .m-meet { display: flex; align-items: center; gap: 10px; min-width: min(250px, 64vw); }
.chat.wa .mm-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #1a73e8; color: #fff; flex: none; }
.chat.wa .m-meet > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.chat.wa .m-meet small { font-size: .76rem; opacity: .75; }
.chat.wa .mm-join { background: #1a73e8; color: #fff; border-color: #1a73e8; }
/* the AI helper's answer */
.chat.wa .msg.ai { align-self: flex-start; background: var(--ai-bg, #F1ECFF); color: var(--ink); border: 1px solid var(--ai-line, #DDD2FF); }
:root[data-theme="dark"] .chat.wa .msg.ai { --ai-bg: #231d3a; --ai-line: #3b3160; }
.chat.wa .msg.ai::before { display: none; }
.chat.wa .ai-tag { display: flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; color: #6b4ce6; margin-bottom: 2px; }
:root[data-theme="dark"] .chat.wa .ai-tag { color: #b9a6ff; }
.chat.wa .ai-note { display: block; clear: both; padding-top: 4px; font-size: .7rem; color: var(--muted); }
/* quick replies + AI ideas: one row of chips above the box */
.quick-row { display: flex; gap: 6px; overflow-x: auto; padding: 6px 10px 0; scrollbar-width: none; background: var(--wa-bg); }
.quick-row::-webkit-scrollbar { display: none; }
.quick-row.hide { display: none; }
.qr-chip { flex: none; max-width: 78vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 7px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.qr-chip:hover { border-color: var(--stamp); }
.qr-chip.ai { color: #6b4ce6; border-color: #DDD2FF; background: #F7F4FF; display: inline-flex; align-items: center; gap: 4px; }
:root[data-theme="dark"] .qr-chip.ai { color: #b9a6ff; border-color: #3b3160; background: #231d3a; }
.qr-chip.ai-s { white-space: normal; max-width: 260px; text-align: left; border-color: #DDD2FF; }
.qr-chip:disabled { opacity: .7; cursor: progress; }
/* photo button inside the message row */
.chat.wa .chat-form .attach { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--muted); cursor: pointer; }
.chat.wa .chat-form .attach:hover { background: var(--line-2); color: var(--ink); }
/* "turn on notifications" card above the box */
.push-ask { display: flex; align-items: center; gap: 10px; margin: 6px 10px 0; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(11,20,26,.08); }
.push-ask[hidden] { display: none; }
.push-ask .pa-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-bg, #fde8ef); color: var(--rose, #d6336c); flex: none; }
.push-ask .pa-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.push-ask .pa-t b { font-size: .9rem; }
.push-ask .pa-t small { font-size: .78rem; color: var(--muted); }
.push-ask .pa-x { border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
/* sheets: video call, send another home */
.chat-sheet { width: min(480px, calc(100vw - 24px)); max-height: min(80dvh, 640px); border: 0; border-radius: 18px; padding: 20px 18px 18px; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(11,20,26,.3); }
.chat-sheet::backdrop { background: rgba(14,24,48,.5); }
.chat-sheet h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0 30px 6px 0; }
.chat-sheet .cs-x { position: absolute; top: 10px; right: 10px; }
.chat-sheet .cs-x button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--line-2); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.meet-steps { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 16px; }
.meet-steps li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.meet-steps li label { font-weight: 700; }
.meet-paste { display: flex; gap: 8px; width: 100%; }
.meet-paste .input { flex: 1; min-width: 0; }
.homes-pick { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; overflow-y: auto; }
.homes-pick form { margin: 0; }
.hp-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.hp-row:hover { border-color: var(--stamp); }
.hp-row img, .hp-row .hp-noimg { width: 56px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--line-2); }
.hp-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hp-row b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-row small { font-size: .78rem; color: var(--muted); }
.hp-send { color: var(--stamp); }
@media (max-width: 720px) {
  .chat-sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}
/* "Usually replies within an hour" */
.reply-speed { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--stamp); font-weight: 700; }
.push-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 16px; padding: 14px; }
.push-panel[hidden] { display: none; }
.push-panel .pp-row { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 320px; min-width: 0; }
.push-panel .pa-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fde8ef; color: var(--rose); flex: none; }
.push-panel .pp-t { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; min-width: 0; }
.push-panel .pp-t small { flex-basis: 100%; }
.push-panel .pp-st { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--line-2); color: var(--muted); }
.push-panel .pp-st[data-state="on"] { background: var(--stamp-bg, #e6f4ec); color: var(--stamp); }
.push-panel .pp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* deleted message, message options (hold / right-click / ⌄) */
.chat.wa .msg.deleted { color: var(--muted); font-style: italic; }
.chat.wa .msg.deleted .del-ic { font-style: normal; opacity: .7; }
.chat.wa .msg.picked { outline: 2px solid var(--stamp); outline-offset: 1px; }
.chat.wa .msg { -webkit-touch-callout: none; }
.chat.wa .msg .mt { -webkit-user-select: text; user-select: text; }
.chat.wa .m-more { position: absolute; top: 2px; right: 4px; width: 26px; height: 22px; border: 0; border-radius: 6px; background: inherit; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; z-index: 1; }
.chat.wa .msg:hover .m-more, .chat.wa .m-more:focus-visible { opacity: 1; }
.chat.wa .msg.has-photo .m-more { background: rgba(0,0,0,.45); color: #fff; top: 8px; right: 8px; }
.msg-acts { padding: 8px; width: min(320px, calc(100vw - 32px)); }
.msg-acts .ma-list { display: flex; flex-direction: column; }
.msg-acts button { padding: 14px 16px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.msg-acts button:hover { background: var(--line-2); }
.msg-acts button.danger { color: var(--danger, #c0392b); }
.msg-acts button[data-act="cancel"] { color: var(--muted); }
.msg-acts button[hidden] { display: none; }
@media (max-width: 720px) { .msg-acts { margin: auto auto 0; width: 100vw; max-width: 100vw; } }
.copy-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
/* empty search: "tell me when it comes" */
.wish-card { max-width: 520px; margin: 14px auto 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; }
.wish-h { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; line-height: 1.35; }
.wish-h svg { flex: none; margin-top: 2px; color: var(--rose); }
.wish-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wish-form #wMail, .wish-form button, .wish-form .wish-note { grid-column: 1 / -1; }
.wish-note { margin: 0; }
.wish-one { display: flex; justify-content: center; }
@media (max-width: 520px) { .wish-form { grid-template-columns: 1fr; } }
/* checkout: free UPI (QR with the amount, open the UPI app, then the UTR) */
.pay-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; margin: 18px 0 10px; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.upi-box { text-align: left; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); }
.upi-box h2 { font-size: 1.1rem; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upi-steps { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 16px; }
.upi-steps li > b { display: block; font-size: .92rem; margin-bottom: 8px; }
.upi-qr { width: min(240px, 70vw); margin: 0 auto 10px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.upi-qr svg { display: block; width: 100%; height: auto; }
.upi-id { text-align: center; margin: 8px 0 0; word-break: break-all; }
.upi-form { display: flex; gap: 8px; flex-wrap: wrap; }
.upi-form .input { flex: 1; min-width: 180px; letter-spacing: .06em; }
@media (pointer: fine) { .upi-app { display: none; } }   /* on a computer: scan the QR with the phone */

/* ---------- Update 26: design polish across phone, tablet and desktop ---------- */
/* Ask AI: on wide screens it sits under the contact card (the floating pill covered the WhatsApp button) */
.ai-side { display: none; }
@media (min-width: 981px) {
  body:has(.ai-side) .ai-fab { display: none; }
  .ai-side { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 16px; padding: 12px 14px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--rose), #7a2fb8); color: #fff; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: 0 8px 22px rgba(122,47,184,.25); transition: transform .15s; }
  .ai-side:hover { transform: translateY(-1px); }
  .ai-side:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
}
/* floating buttons ride above the footer (they covered footer links) and step aside when the footer fills the screen */
.fab-map, .ai-fab { translate: 0 calc(-1 * var(--foot-lift, 0px)); transition: opacity .2s; }
body.foot-in .fab-map, body.foot-in .ai-fab { opacity: 0; pointer-events: none; }
.map-open .fab-map { translate: none; }
.map-open body.foot-in .fab-map { opacity: 1; pointer-events: auto; }
/* file pickers (profile photo, KYC paper, builder logo/cover, project photos) */
.file-pick { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; flex: 1; padding: 8px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
.file-pick:hover { border-color: var(--rose); }
.file-pick:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217,58,115,.15); }
.file-pick.has-file { border-style: solid; border-color: var(--stamp); }
.fp-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.fp-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--solid); color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; pointer-events: none; }
.fp-name { flex: 1; min-width: 0; font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.file-pick.has-file .fp-name { color: var(--ink); font-weight: 600; }
.fp-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; pointer-events: none; }
/* post a property: type picker as an even icon grid (no lonely last button) */
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.type-grid .choice span { width: 100%; height: 100%; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 6px; border-radius: 14px; text-align: center; line-height: 1.2; font-size: .86rem; min-height: 74px; }
.type-grid .choice span .ic { color: var(--rose); }
.type-grid .choice input:checked + span .ic { color: #fff; }
@media (min-width: 720px) { .type-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 760px; } }
@media (max-width: 340px) { .type-grid .choice span { font-size: .78rem; } }
/* touch screens (tablets too): buttons at least 40px tall so a finger hits the right one */
@media (pointer: coarse) {
  .header-right .lang-toggle a { display: inline-flex; align-items: center; min-height: 40px; }
  .header-right .btn-sm, .res-tools .btn-sm, .res-tools .sort-sel, .res-tools form .btn { min-height: 40px; }
  .header-right .icon-btn, .header-right .user-menu > button { min-height: 40px; min-width: 40px; }
}
/* checkboxes inside a label: bigger box, easier tap */
.field > label > input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--rose); }
/* "Forgot password?" and similar one-line links under forms */
.auth-forgot a { display: inline-block; padding: 8px 0; }
/* dark-mode hover on the main button kept white text on a light fill (hard to read; it also sticks after a tap on phones) */
[data-theme="dark"] .btn-primary:hover { background: #3A5090; }
@media (hover: none) { .btn-primary:hover { background: var(--solid); } }

/* =====================================================================
   Update 27 — one size system for the whole site (all screens)
   Buttons: 48 / 44 / 36 px · boxes: 48 px · chips you tap: 36 px · same corners, softer panels
   ===================================================================== */
:root { --h-lg: 48px; --h-md: 44px; --h-sm: 36px; --h-in: 48px; }
.btn { min-height: var(--h-md); padding: 0 18px; font-size: .95rem; line-height: 1.15; }
.btn-sm { min-height: var(--h-sm); padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: var(--h-lg); padding: 0 24px; font-size: 1rem; }
.btn-block { min-height: var(--h-lg); }
.btn-sm.btn-block { min-height: var(--h-md); }
.btn .ic { flex: none; }
@media (pointer: coarse) { .btn-sm { min-height: 40px; } }
/* every one-line box the same height; long text boxes keep growing */
input.input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select.input { height: var(--h-in); min-height: var(--h-in); padding-top: 0; padding-bottom: 0; }
/* chips you tap (Lakh / Crore, filters, quick picks) */
button.chip, a.chip { min-height: 32px; padding: 0 12px; font-size: .82rem; cursor: pointer; }
@media (pointer: coarse) { button.chip, a.chip { min-height: 36px; } }
.choice span { min-height: 40px; }
/* a field never stretches to its neighbour's height (the tall "Area" box) — label, box, hint stay packed at the top */
.field { align-content: start; }
.row-2, .row-3, .row-4 { align-items: start; }
.row-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: short boxes keep sitting side by side */
@media (max-width: 640px) {
  .row-2.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .row-3.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .row-3.lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .row-3.lead > :first-child { grid-column: 1 / -1; }
  .row-2.pair .field > label, .row-3.trio .field > label, .row-3.lead .field > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* two (or three) buttons share one line instead of stacking full width */
.btn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.btn-pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn-pair > .btn, .btn-pair > form > .btn { width: 100%; min-width: 0; }
.btn-pair > form { margin: 0; display: contents; }
.btn-pair .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 4px 12px; }
@media (max-width: 340px) { .btn-pair.three { grid-template-columns: 1fr 1fr; } .btn-pair.three > :last-child { grid-column: 1 / -1; } }
/* calmer panels: hairline border + soft shadow */
.panel { border-color: var(--line-2); box-shadow: 0 1px 2px rgba(19,32,59,.04), 0 6px 18px rgba(19,32,59,.04); }
[data-theme="dark"] .panel { border-color: var(--line); box-shadow: none; }
/* post: Lakh · Crore · Negotiable on one line under the price */
.price-help .neg-choice { margin-left: 4px; }
.price-help .neg-choice span { min-height: 32px; padding: 0 12px; font-size: .82rem; }
@media (pointer: coarse) { .price-help .neg-choice span { min-height: 36px; } }
/* property photos on tablet/laptop: 1–4 photos fill the whole row (no half-empty gallery) */
@media (min-width: 721px) {
  .gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
  .gallery.n1 a:first-child { grid-row: auto; }
  .gallery.n2 { grid-template-columns: 3fr 2fr; grid-template-rows: 408px; }
  .gallery.n2 a:first-child { grid-row: auto; }
  .gallery.n3 { grid-template-columns: 2fr 1fr; }
  .gallery.n4 a:nth-child(4) { grid-column: span 2; }
}
/* tablets: the Call / Visit bar stays at the bottom (the contact card sits far down the page there) */
@media (min-width: 721px) and (max-width: 980px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; align-items: center; gap: 10px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(19,32,59,.08); padding: 10px max(20px, calc((100vw - 760px) / 2)); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta .sc-price { display: grid; flex: 1; min-width: 0; line-height: 1.15; }
  .sticky-cta .sc-price b { font-family: var(--ui); font-size: 1.25rem; font-weight: 800; }
  .sticky-cta .sc-price small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta .btn { flex: 0 0 auto; min-width: 150px; min-height: 48px; }
  body:has(.sticky-cta) { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body:has(.sticky-cta) .ai-fab { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
/* sliders in tools look like the EMI ones: full width, pink fill up to the thumb */
.emi-row input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none; cursor: pointer; margin: 6px 0;
  background: linear-gradient(90deg, var(--rose) 0 var(--p, 50%), var(--line) var(--p, 50%) 100%); }
.emi-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 3px solid var(--rose); box-shadow: 0 2px 8px rgba(19,32,59,.2); }
.emi-row input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--rose); }
/* choice chips in an even 2-column grid (stamp duty "whose name") */
.choices.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices.grid2 .choice span { width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.2; padding: 6px 10px; }
.choices.grid2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) {
  /* numbered steps: number on the left, text on the right — short rows instead of tall boxes */
  .steps, .steps.three { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 14px 16px; }
  .steps li::before { grid-row: span 2; font-size: 1.35rem; margin: 0; line-height: 1.1; }
  .steps li > * { grid-column: 2; }
}
/* number tiles (agent, city, area pages): 3 in a row on phones, 2×2 when there are four — never one alone */
@media (max-width: 640px) {
  .kpi-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi-list:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-list:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-list div { padding: 10px 12px; min-width: 0; }
  .kpi-list b { font-size: 1.1rem; }
  .kpi-list span { display: block; font-size: .76rem; line-height: 1.3; }
  /* dashboard tiles: icon left, number + name right — half the height */
  .acc-tile { grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; row-gap: 0; padding: 12px; align-content: center; }
  .acc-tile > .acc-ic { grid-row: span 3; align-self: center; }
  .acc-tile > b { font-size: 1.2rem !important; line-height: 1.15; }
  .acc-tile > span { font-size: .8rem !important; line-height: 1.3; }
  .acc-tile > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .74rem !important; }
  /* home: "Post property" and "For agents & builders" side by side */
  .ob-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ob-actions .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 6px 10px; font-size: .9rem; }
}
/* broker network filter: two boxes and the button on one line */
.net-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
.net-filter .input { width: 100%; max-width: none; }
.net-filter .btn { min-height: 48px; }
/* city page: area rates show 8 rows first, the rest behind "Show all" */
.rc-fold .rc-more { display: none; }
.rc-unfold { margin-top: 12px; }
@media (max-width: 640px) { .rc-city td .small { display: none; } }
/* plans: phones swipe through them side by side (no 7 tall cards one under another); 3 plans sit in one row on tablets */
@media (max-width: 640px) {
  .plan-grid:has(> :nth-child(2)) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 2px 16px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .plan-grid:has(> :nth-child(2))::-webkit-scrollbar { display: none; }
  .plan-grid:has(> :nth-child(2)) > .plan { flex: 0 0 82%; scroll-snap-align: start; }
}
@media (min-width: 641px) { .plan-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* app pages (dashboard, post, login…): one quiet footer line instead of the full site footer */
.foot-mini { display: none; }
.app-page .site-footer { padding: 18px 0; margin-top: 24px; }
.app-page .site-footer .foot-grid { display: none; }
.app-page .site-footer .foot-bottom { margin-top: 0; padding-top: 0; border-top: 0; flex-wrap: wrap; gap: 6px 16px; }
.app-page .foot-mini { display: inline; }
.app-page .foot-mini a { color: inherit; }
.show-xs { display: none; }
@media (max-width: 480px) { .show-xs { display: inline; } }
