/* Brickwren: a working property listing website demo (concept project, fictional listings). */
:root {
  --bg: #f8f5f3; --surface: #ffffff; --surface-2: #f6f1ee; --surface-3: #efe8e4; --border: #ece4df; --border-2: #ddd2cc;
  --text: #211a1f; --text-2: #4b4349; --muted: #7b7077; --faint: #ada3a8;
  --primary: #d23358; --primary-2: #b0223f; --primary-soft: #fdebef; --primary-ring: rgba(210, 51, 88, .22);
  --ink: #2a1621; --ink-2: #3d2331; --ink-line: #3b2a35;
  --gold: #e3a12f; --gold-soft: #fff3dc; --gold-text: #9a6300;
  --green: #17794c; --green-soft: #e4f4eb; --amber: #a86400; --amber-soft: #fff1d9; --red: #c42a3c; --red-soft: #fde8eb;
  --blue: #2a5fc0; --blue-soft: #e8effc; --violet: #6b46c8; --violet-soft: #f0eafd; --rose: #b0223f; --rose-soft: #fde8ee;
  --map-land: #f3f0e8; --map-park: #d9e9cf; --map-water: #c4ddf0; --map-road: #ffffff; --map-road-edge: #e3dccf; --map-contour: #e2d9c4; --map-metro: #6b46c8;
  --map-area: rgba(210, 51, 88, .045); --map-area-line: rgba(140, 90, 110, .38); --map-text: #5d5258;
  --fp-bg: #fbf8f5; --fp-bg2: #fbf8f5; --fp-wall: #3b3437; --fp-line: #a0959b; --fp-furn: #ffffff; --fp-plant: #a7cfa1;
  --fp-living: #fbf1e6; --fp-bed: #fcebef; --fp-kitchen: #ecf5ea; --fp-bath: #e7f0f8; --fp-balc: #e8f4e6; --fp-pass: #f6f3f0; --fp-util: #f2efe9; --fp-road: #e4e1e5;
  --shadow-sm: 0 1px 2px rgba(33, 26, 31, .06);
  --shadow: 0 1px 2px rgba(33, 26, 31, .04), 0 10px 30px rgba(33, 26, 31, .06);
  --shadow-md: 0 2px 6px rgba(33, 26, 31, .05), 0 18px 44px rgba(33, 26, 31, .10);
  --shadow-lg: 0 30px 80px rgba(33, 26, 31, .22);
  --r: 18px; --r-sm: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Sitka Display", "Sitka Heading", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans-d: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121013; --surface: #1b181b; --surface-2: #221e22; --surface-3: #2a252a; --border: #2e292e; --border-2: #3c353b;
  --text: #f6f1f3; --text-2: #d9d0d5; --muted: #a59aa0; --faint: #70666c;
  --primary: #f0557a; --primary-2: #ff7d9a; --primary-soft: rgba(240, 85, 122, .15); --primary-ring: rgba(240, 85, 122, .32);
  --ink-line: #d8c9d1; --gold: #f2b54a; --gold-soft: rgba(242, 181, 74, .16); --gold-text: #f5c56c;
  --green: #4fd18e; --green-soft: rgba(79, 209, 142, .13); --amber: #f7bd4f; --amber-soft: rgba(247, 189, 79, .14); --red: #ff7b8a; --red-soft: rgba(255, 123, 138, .14);
  --blue: #8fb3ff; --blue-soft: rgba(110, 150, 255, .16); --violet: #c3a8ff; --violet-soft: rgba(167, 139, 250, .16); --rose: #ff8aa5; --rose-soft: rgba(240, 85, 122, .16);
  --map-land: #1d1c1f; --map-park: #1f2c23; --map-water: #183048; --map-road: #322e33; --map-road-edge: #26232a; --map-contour: #2c2a2c; --map-metro: #a98bff;
  --map-area: rgba(240, 85, 122, .05); --map-area-line: rgba(220, 170, 190, .3); --map-text: #c9bec4;
  --fp-bg: #1f1c1f; --fp-bg2: #1f1c1f; --fp-wall: #e9dfe4; --fp-line: #8c8087; --fp-furn: #2b262a; --fp-plant: #4c7a49;
  --fp-living: #2c2420; --fp-bed: #33212a; --fp-kitchen: #1f2c22; --fp-bath: #1d2834; --fp-balc: #1f2d21; --fp-pass: #252125; --fp-util: #26231f; --fp-road: #2b282c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35); --shadow-md: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 44px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.i { flex: none; display: block; }
.i.fill { fill: currentColor; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding: 0 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font: 700 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.eyebrow.light { color: #ffb3c4; }
.lead { font-size: 18px; color: var(--text-2); line-height: 1.6; }
kbd { font: 600 11px var(--font); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); }

/* ---------- controls ---------- */
.btn { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; white-space: nowrap; box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s, transform .1s; }
.btn:hover { border-color: var(--border-2); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #e0406a, #c92a51); border-color: #c0294e; color: #fff; box-shadow: 0 8px 18px rgba(210, 51, 88, .26), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover { background: linear-gradient(180deg, #e44a72, #bf2449); border-color: #ae2045; }
[data-theme="dark"] .btn-primary { background: linear-gradient(180deg, #f2617f, #d93a62); border-color: #e04c70; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-ghost.danger, .icon-btn.danger:hover { color: var(--red); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: transparent; box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #fff3f6; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15.5px; }
.w100 { width: 100%; }
.link { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 650; }
.link:hover { text-decoration: underline; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-sm); flex: none; }
.icon-btn:hover { border-color: var(--border-2); color: var(--text); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.on { background: var(--gold-soft); color: var(--gold-text); border-color: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.chip:hover { border-color: var(--border-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-theme="dark"] .chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.sm { height: 31px; padding: 0 12px; font-size: 12.5px; }
.chip b { font-weight: 700; opacity: .6; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.seg button { height: 32px; padding: 0 13px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.seg.w100 { display: flex; width: 100%; }
.seg.w100 button { flex: 1; }
.input, .sel { height: 44px; width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 0 14px; outline: none; color: var(--text); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .sel:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.sel { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b7077' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .flabel { font-weight: 650; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field em { font-style: normal; font-weight: 500; }
.field.bad .input, .field.bad .sel { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.ferr { display: flex; align-items: center; gap: 6px; color: var(--red); font-size: 12.5px; font-weight: 600; }
.fhint { color: var(--muted); font-size: 12.5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.search { position: relative; }
.search > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { padding-left: 40px; border-radius: 999px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.p-green { background: var(--green-soft); color: var(--green); }
.p-amber { background: var(--amber-soft); color: var(--amber); }
.p-red { background: var(--red-soft); color: var(--red); }
.p-blue { background: var(--blue-soft); color: var(--blue); }
.p-violet { background: var(--violet-soft); color: var(--violet); }
.p-rose { background: var(--rose-soft); color: var(--rose); }
.p-gold { background: var(--gold-soft); color: var(--gold-text); }
.p-gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.switch { position: relative; width: 42px; height: 24px; border-radius: 12px; background: var(--border-2); border: 0; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(18px); }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.sw-row span { display: inline-flex; align-items: center; gap: 7px; }
.sw-row.sm { font-size: 13px; gap: 9px; }
.ck { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.ck input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.ck span { flex: 1; }
.ck em { font-style: normal; color: var(--faint); font-size: 12px; font-weight: 600; }
.empty { display: grid; place-items: center; gap: 10px; text-align: center; padding: 30px 16px; color: var(--muted); }
.empty.sm { padding: 18px; font-size: 13.5px; }
.empty.big { padding: 56px 24px; }
.empty h3 { font: 600 24px/1.2 var(--display); color: var(--text); }
.empty p { max-width: 440px; }
.e-art { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.empty-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-h h3 { font: 700 17px var(--sans-d); letter-spacing: -.01em; }
.card-h small { color: var(--muted); font-size: 12.5px; }
.card-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt { margin-top: 18px; }
.note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.note-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-text); font-weight: 600; margin-bottom: 16px; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.t .r { text-align: right; font-variant-numeric: tabular-nums; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font); color: #fff; flex: none; }
.avatar.xs { width: 24px; height: 24px; font-size: 9.5px; }
.avatar.sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-text); font-weight: 700; font-size: 13px; }
.stars .i { color: var(--gold); }
.tip { position: fixed; z-index: 300; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .12s; white-space: nowrap; box-shadow: var(--shadow-md); }
.tip.on { opacity: 1; }
[data-theme="dark"] .tip { background: #f6f1f3; color: #211a1f; }

/* ---------- header and footer ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.hdr-in { height: 74px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand .logo { width: 38px; height: 38px; display: block; }
.brand b { display: block; font: 700 22px/1 var(--display); letter-spacing: -.01em; }
.brand small { display: block; font: 700 10.5px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand.light b { color: #fff; } .brand.light small { color: #e5b8c5; }
.hnav { display: flex; align-items: center; gap: 2px; }
.hnav a { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 999px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.hnav a:hover { background: var(--surface-2); color: var(--text); }
.hnav a.on { background: var(--primary-soft); color: var(--primary-2); }
.cnt { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font: 700 11px/20px var(--font); text-align: center; }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-weight: 600; }
.search-btn:hover { border-color: var(--border-2); color: var(--text); }
.pop-wrap { position: relative; }
.dot-badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--primary); color: #fff; font: 700 10.5px/19px var(--font); font-style: normal; text-align: center; padding: 0 5px; border: 2px solid var(--surface); }
.hdr-post { padding: 0 8px 0 15px; }
.hdr-post em { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.acct-btn { display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.pop { position: absolute; top: 54px; right: 0; width: 370px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; animation: pop .15s ease-out; }
.pop-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pop-h b { font: 700 15px var(--sans-d); }
.ntf { width: 100%; display: flex; gap: 12px; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; font-size: 13.5px; }
.ntf:hover { background: var(--surface-2); }
.ntf:last-child { border-bottom: 0; }
.ntf .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.ntf.unread .ico { background: var(--primary-soft); color: var(--primary); }
.ntf.unread > span > span { font-weight: 650; }
.ntf small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.acct-pop { width: 300px; }
.acct-h { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); min-width: 0; }
.acct-h b { display: block; } .acct-h small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.acct-l { display: flex; flex-direction: column; padding: 8px; }
.acct-l a, .acct-l button { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border: 0; background: transparent; border-radius: 11px; font-weight: 600; color: var(--text-2); text-align: left; width: 100%; }
.acct-l a:hover, .acct-l button:hover { background: var(--surface-2); color: var(--text); }
.main { min-height: 60vh; padding-bottom: 40px; }
.foot { background: var(--ink); color: #e9dbe1; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 54px; padding-bottom: 34px; }
.foot-brand p { color: #c3aeb8; margin-top: 16px; max-width: 320px; }
.foot .brand b { color: #fff; } .foot .brand small { color: #c99aab; }
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col b { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.foot-col a, .foot-col button { color: #d6c3cb; border: 0; background: none; padding: 0; font-size: 14px; text-align: left; }
.foot-col a:hover, .foot-col button:hover { color: #fff; }
.foot-note { display: flex; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .1); color: #c3aeb8; font-size: 13px; }
.foot-note b { color: #fff; }
.foot-c { margin-left: auto; white-space: nowrap; color: #9f8792; }
.tabbar { display: none; }
.tray { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 45; max-width: calc(100vw - 32px); animation: rise .2s ease-out; }
.tray-in { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 10px; border-radius: 22px; background: var(--ink); color: #fff; box-shadow: 0 24px 60px rgba(42, 22, 33, .35); }
[data-theme="dark"] .tray-in { background: #2c2329; border: 1px solid #3c323a; }
.tray-i { display: flex; align-items: center; gap: 9px; padding: 5px 30px 5px 5px; border-radius: 14px; background: rgba(255, 255, 255, .08); position: relative; min-width: 0; }
.tray-i .scene { width: 46px; height: 36px; border-radius: 9px; }
.tray-i b { display: block; font-size: 13px; } .tray-i small { display: block; font-size: 11.5px; color: #d8c4cd; white-space: nowrap; }
.tray-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.tray-n { font-size: 12.5px; color: #d8c4cd; padding: 0 4px; white-space: nowrap; }
.tray .btn-ghost { color: #e8d6de; } .tray .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.scene { display: block; width: 100%; height: 100%; }
.scene.tiny { width: 64px; height: 48px; border-radius: 10px; flex: none; }

/* ---------- sign in ---------- */
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 26px; padding: 40px 54px; color: #fff; background: radial-gradient(900px 500px at 85% 0%, rgba(240, 88, 124, .45), transparent 60%), linear-gradient(160deg, #2a1621, #4a1d33 120%); }
.la-copy h2 { font: 600 50px/1.05 var(--display); letter-spacing: -.02em; margin-top: 30px; max-width: 560px; }
.la-copy h2 em { font-style: italic; color: #ffb3c4; }
.la-copy p { color: #e5ccd5; font-size: 17px; margin-top: 16px; max-width: 500px; }
.la-feat { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.la-feat span { display: flex; align-items: center; gap: 11px; font-weight: 600; color: #fbe9ef; }
.la-feat .i { color: #ff9fb6; }
.la-art { margin-top: auto; }
.la-art .hero-svg { width: 100%; max-width: 560px; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.la-note { color: #c99aab; font-size: 12.5px; }
.login-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.login-box { width: min(440px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login-box h1 { font: 600 36px/1.1 var(--display); letter-spacing: -.015em; }
.login-box > p { color: var(--muted); margin-top: -6px; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-c { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); }
.role-c b { color: var(--text); font-size: 14px; }
.role-c small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.role-c .i { color: var(--muted); }
.role-c.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-ring); }
.role-c.on .i { color: var(--primary); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.demo-btn { border-width: 1.5px; border-color: var(--ink); }
[data-theme="dark"] .demo-btn { border-color: var(--text); }
.demo-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12.5px; }

/* ---------- home ---------- */
.hero { position: relative; padding: 46px 0 30px; background: radial-gradient(700px 380px at 92% 0%, rgba(240, 88, 124, .16), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(227, 161, 47, .10), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px 40px; align-items: center; }
.hero-copy h1 { font: 600 62px/1.02 var(--display); letter-spacing: -.025em; margin: 16px 0 18px; }
.hero-copy h1 em { font-style: italic; color: var(--primary); }
.hero-copy .lead { max-width: 540px; }
.hero-art .hero-svg { width: 100%; height: auto; display: block; }
.hsearch { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-md); padding: 16px 18px 16px; margin-top: 6px; position: relative; z-index: 5; }
.hs-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.hs-tabs button { height: 36px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; color: var(--muted); }
.hs-tabs button.on { background: var(--ink); color: #fff; }
[data-theme="dark"] .hs-tabs button.on { background: var(--text); color: var(--bg); }
.hs-hint { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12.5px; }
.hs-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 12px; align-items: end; }
.hs-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hs-f > label { font-size: 12px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.hs-loc { position: relative; }
.hs-in { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.hs-in:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); background: var(--surface); }
.hs-in .i { color: var(--primary); }
.hs-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: 15px; }
.hs-f .sel { height: 52px; border-radius: 16px; background-color: var(--surface-2); font-size: 15px; }
.hs-go { height: 52px; padding: 0 28px; border-radius: 16px; }
.sugg-box { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 20; animation: pop .12s ease-out; }
.sugg-g { font: 700 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }
.sugg-box button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 11px; background: transparent; text-align: left; }
.sugg-box button:hover { background: var(--surface-2); }
.sugg-box button .i { color: var(--primary); }
.sugg-box button span { flex: 1; font-weight: 600; }
.sugg-box button small { color: var(--muted); }
.sugg-e { padding: 12px; color: var(--muted); }
.hs-pop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hs-pop > span { color: var(--muted); font-size: 13px; font-weight: 600; margin-right: 2px; }
.sec { margin-top: 56px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-h h2 { font: 600 34px/1.1 var(--display); letter-spacing: -.015em; margin-top: 6px; }
.sec-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sub-h { font: 700 15px var(--sans-d); margin: 22px 0 12px; color: var(--text-2); }
.cards { display: grid; gap: 22px; }
.cards.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.rows { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.locs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.loc-c { display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.loc-c:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.loc-art svg { display: block; width: 100%; height: 80px; }
.loc-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.loc-b b { font-size: 15px; }
.loc-b > small { color: var(--muted); font-size: 12.5px; }
.loc-n { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-weight: 700; }
.loc-n small { font-weight: 500; color: var(--muted); }
.up { color: var(--green); display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 700; font-size: 12.5px; }
.dn { color: var(--red); display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 700; font-size: 12.5px; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; box-shadow: var(--shadow-sm); }
.t-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; }
.tool h3 { font: 600 23px var(--display); }
.tool p { color: var(--muted); flex: 1; margin-bottom: 6px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 48px; border-radius: 28px; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(240, 88, 124, .5), transparent 70%), linear-gradient(135deg, #2a1621, #4c1e35); flex-wrap: wrap; }
.cta h2 { font: 600 36px/1.1 var(--display); max-width: 640px; margin-top: 8px; }
.cta p { color: #e5ccd5; margin-top: 10px; max-width: 600px; }
.cta-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.cta-steps span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 600; font-size: 13px; }
.cta-steps b { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 12px; }

/* ---------- property cards ---------- */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pc-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.pc-img .scene { transition: transform .4s ease; }
.pcard:hover .pc-img .scene { transform: scale(1.03); }
.badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 70px); }
.bdg { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font: 700 11.5px var(--font); background: rgba(255, 255, 255, .94); color: #2a1621; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.bdg.feat { background: #2a1621; color: #fff; } .bdg.feat .i { color: #f6c453; }
.bdg.ver .i { color: #17794c; }
.bdg.drop { background: #e4f4eb; color: #17794c; }
.bdg.new { background: #d23358; color: #fff; }
.bdg.sold { background: #5b5258; color: #fff; }
.pc-count { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(20, 12, 16, .55); color: #fff; font-size: 11.5px; font-weight: 700; }
.save-btn { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .95); color: #4b4349; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); transition: transform .12s; }
.save-btn:hover { transform: scale(1.06); }
.save-btn.on { color: #d23358; }
.save-btn.on .i { fill: currentColor; }
.save-btn.lg, .save-btn.sm { position: static; box-shadow: var(--shadow-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.save-btn.lg.on, .save-btn.sm.on { color: var(--primary); }
.save-btn.sm { width: 34px; height: 34px; }
.pc-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.pc-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pc-price b { font: 750 21px var(--sans-d); letter-spacing: -.02em; }
.pc-price small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pc-price s { color: var(--faint); font-size: 12.5px; }
.pc-title { font-weight: 650; font-size: 14.5px; line-height: 1.35; }
.pc-title:hover { color: var(--primary); }
.pc-sub { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sub .i { color: var(--primary); }
.pc-facts { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.pc-facts span { display: inline-flex; align-items: center; gap: 5px; }
.pc-facts .i { color: var(--faint); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); min-width: 0; }
.pc-body > .pc-facts + .pc-foot { margin-top: 12px; }
.agent-mini { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); font-weight: 600; min-width: 0; }
.agent-mini > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-mini em { font-style: normal; color: var(--faint); font-weight: 500; white-space: nowrap; }
.agent-mini em::before { content: "\00B7"; margin: 0 6px; }
.cmp-btn { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 650; color: var(--text-2); white-space: nowrap; flex: none; }
.cmp-btn:hover { border-color: var(--border-2); }
.cmp-btn.on { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.pcard.row { flex-direction: row; }
.pcard.row .pc-img { width: 340px; aspect-ratio: auto; flex: none; min-height: 236px; }
.pcard.row .save-btn { left: 286px; right: auto; }
.pcard.row .pc-body { padding: 18px 22px; gap: 6px; }
.pcard.row .pc-price b { font-size: 24px; }
.pcard.row .pc-title { font-size: 16.5px; }
.pc-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 4px; }
.pc-amen { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pc-amen span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.pc-amen .i { color: var(--primary); }
.pc-acts { display: flex; gap: 8px; align-items: center; }
.pcard.mini .pc-img { aspect-ratio: 16 / 10; }
.pcard.prev { pointer-events: none; }

/* ---------- search ---------- */
.srch { padding-top: 22px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.crumbs a:hover, .crumbs button:hover { color: var(--primary); }
.crumbs button { border: 0; background: none; padding: 0; color: inherit; font-weight: 600; }
.crumbs .i { color: var(--faint); }
.srch-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.srch-top h1 { font: 600 34px/1.1 var(--display); letter-spacing: -.015em; margin-top: 6px; }
.srch-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kw { width: 230px; }
.kw .input { height: 42px; }
.sort { position: relative; display: flex; align-items: center; }
.sort > .i { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.sort .sel { height: 42px; border-radius: 999px; padding-left: 36px; width: auto; font-weight: 600; font-size: 13.5px; }
.view-seg button { padding: 0 11px; }
.filt-btn .cnt { margin-left: 2px; }
.chips-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; min-height: 31px; }
.chips-row .chip.on .i { opacity: .7; }
.chips-row .muted { font-size: 13px; }
.srch-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.srch-body.with-side { grid-template-columns: 284px minmax(0, 1fr); }
.filters { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 18px 18px 8px; }
.fp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.fp-h b { display: flex; align-items: center; gap: 8px; font: 700 16px var(--sans-d); }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--border); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 13.5px var(--font); margin-bottom: 11px; }
.budget-lab { color: var(--primary); font-weight: 700; font-size: 12.5px; text-align: right; }
.checks { display: flex; flex-direction: column; }
.fgroup .chips .chip { height: 33px; padding: 0 12px; }
.fgroup .seg { margin-bottom: 12px; }
.range2 { position: relative; height: 28px; }
.range-track { position: absolute; left: 10px; right: 10px; top: 12px; height: 5px; border-radius: 3px; background: var(--border-2); }
.range-track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--primary); }
.range2 input { position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range2 input::-webkit-slider-runnable-track { background: none; height: 28px; }
.range2 input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: #fff; border: 2.5px solid var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); cursor: grab; }
.range2 input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid var(--primary); cursor: grab; }
.range-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 4px; }
.more { display: flex; justify-content: center; margin-top: 26px; }
.end-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); margin-top: 24px; font-size: 13.5px; }
.mapv { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 18px; height: max(540px, calc(100vh - 300px)); }
.mapv-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.mcard { display: flex; gap: 12px; padding: 9px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.mcard:hover, .mcard.hl, .mcard.hl2 { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.mc-img { width: 112px; height: 84px; border-radius: 11px; overflow: hidden; flex: none; }
.mc-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-b b { font: 750 17px var(--sans-d); }
.mc-b b small { font-size: 12px; color: var(--muted); font-weight: 600; }
.mc-b > span { font-weight: 600; font-size: 13px; }
.mc-b > small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapv-map { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--map-land); box-shadow: var(--shadow); min-height: 0; }
.map-box { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.map-box:active { cursor: grabbing; }
.citymap { width: 100%; height: 100%; display: block; user-select: none; }
.citymap .loc { fill: var(--map-area); stroke: var(--map-area-line); stroke-width: 1.4; stroke-dasharray: 5 5; cursor: pointer; transition: fill .15s; }
.citymap .loc:hover { fill: rgba(210, 51, 88, .1); }
.citymap .loc.on { fill: rgba(210, 51, 88, .14); stroke: var(--primary); stroke-dasharray: 0; stroke-width: 2; }
.m-water { font: italic 600 13px var(--display); fill: #4c7fa6; letter-spacing: .04em; }
[data-theme="dark"] .m-water { fill: #7fb0d8; }
.m-st { font: 600 10.5px var(--font); fill: var(--map-metro); }
.m-loc { font: 700 13px var(--font); fill: var(--map-text); letter-spacing: .02em; pointer-events: none; paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-linejoin: round; }
.m-loc.on { fill: var(--primary); }
.pin { cursor: pointer; }
.pin-b { fill: var(--surface); stroke: var(--border-2); stroke-width: 1; filter: drop-shadow(0 3px 5px rgba(40, 10, 25, .22)); transition: fill .12s; }
.pin-t { font: 750 12px var(--font); fill: var(--text); pointer-events: none; }
.pin.fav .pin-b { stroke: var(--primary); stroke-width: 1.6; }
.pin:hover .pin-b, .pin.on .pin-b, .pin.sel .pin-b { fill: var(--primary); stroke: var(--primary); }
.pin:hover .pin-t, .pin.on .pin-t, .pin.sel .pin-t { fill: #fff; }
.pin.on, .pin.sel { filter: drop-shadow(0 0 6px rgba(210, 51, 88, .45)); }
.map-ctl { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; }
.map-legend { position: absolute; left: 14px; top: 14px; display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-2); max-width: calc(100% - 90px); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-pin { width: 18px; height: 11px; border-radius: 4px; background: var(--primary); display: inline-block; }
.lg-metro { width: 18px; height: 4px; border-radius: 2px; background: var(--map-metro); display: inline-block; }
.lg-area { width: 14px; height: 11px; border-radius: 4px; border: 1.5px dashed var(--map-area-line); display: inline-block; }
.map-tip { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); max-width: calc(100% - 28px); }
.map-card { position: absolute; left: 14px; bottom: 14px; width: min(400px, calc(100% - 28px)); display: flex; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: rise .18s ease-out; }
.mpc-img { width: 120px; height: 96px; border-radius: 12px; overflow: hidden; flex: none; }
.mpc-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mpc-b b { font: 750 18px var(--sans-d); }
.mpc-b b small { font-size: 12px; color: var(--muted); }
.mpc-b > span { font-weight: 600; font-size: 13px; line-height: 1.3; }
.mpc-b > small { color: var(--muted); font-size: 12px; }
.mpc-a { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; }
.mpc-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.fsheet { padding-top: 0; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.sheet-h > b { display: flex; align-items: center; gap: 8px; font: 700 17px var(--sans-d); }
.sheet-h .acct-h { padding: 0; border: 0; }

/* ---------- property page ---------- */
.det { padding-top: 22px; }
.det-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 14px 0 20px; flex-wrap: wrap; }
.det-t { min-width: 0; flex: 1 1 520px; }
.det-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.det-t h1 { font: 600 40px/1.08 var(--display); letter-spacing: -.02em; margin: 12px 0 8px; }
.det-loc { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; }
.det-loc .i { color: var(--primary); }
.det-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dp-v b { font: 750 38px/1 var(--sans-d); letter-spacing: -.03em; }
.dp-v small { color: var(--muted); font-weight: 600; font-size: 15px; margin-left: 4px; }
.det-price > small { color: var(--muted); font-weight: 600; }
.dp-was { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; }
.det-acts { display: flex; gap: 8px; margin-top: 10px; }
.det-acts .cmp-btn { height: 34px; }
.save-btn.lg { width: 34px; height: 34px; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 214px 214px; gap: 10px; border-radius: 24px; overflow: hidden; }
.gallery.t3 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.t3 .g-th:nth-of-type(2) { grid-row: 1 / 3; }
.gallery.t2 { grid-template-columns: 2fr 1fr; }
.g-main, .g-th { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--surface-2); display: block; }
.g-main { grid-row: 1 / 3; }
.g-main .scene, .g-th .scene { transition: transform .4s; }
.g-main:hover .scene, .g-th:hover .scene { transform: scale(1.03); }
.g-cap { position: absolute; left: 12px; bottom: 12px; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; background: rgba(20, 12, 16, .55); color: #fff; font-size: 12px; font-weight: 650; }
.g-main .badges { left: 16px; top: 16px; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 12, 16, .45); color: #fff; font: 700 20px var(--sans-d); }
.g-all { position: absolute; right: 16px; bottom: 16px; }
.g-note { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #4b4349; font-size: 11.5px; font-weight: 650; }
.det-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; margin-top: 26px; align-items: start; }
.det-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.det-side { position: sticky; top: 94px; }
.facts-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.fact { display: flex; align-items: center; gap: 12px; min-width: 0; }
.f-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex: none; }
.fact small { display: block; color: var(--muted); font-size: 12px; }
.fact b { display: block; font-size: 14px; }
.about { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.hl-g { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hl-g span { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 13px; color: var(--text-2); }
.hl-g .i { color: var(--primary); }
.amen-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.am { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 13px; background: var(--surface-2); font-weight: 600; font-size: 13.5px; }
.am .i { color: var(--primary); }
.am.no { background: transparent; border: 1px dashed var(--border-2); color: var(--faint); text-decoration: line-through; font-weight: 500; }
.am.no .i { color: var(--faint); }
.plan { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.plan-svg { display: block; width: 100%; height: auto; }
.fp-n { font: 700 12.5px var(--font); fill: var(--text); }
.fp-n.sm { font-size: 10.5px; }
.fp-t { font: 500 10.5px var(--font); fill: var(--muted); }
.near-seg { margin-bottom: 14px; flex-wrap: wrap; }
.near { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.near-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); height: 290px; }
.near-map .citymap .loc { cursor: default; }
.near-l { display: flex; flex-direction: column; }
.nr { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.nr:last-child { border-bottom: 0; }
.nr > span:nth-child(2) { flex: 1; min-width: 0; }
.nr b { display: block; font-size: 14px; }
.nr small { color: var(--muted); font-size: 12px; }
.nr em { font-style: normal; font-weight: 700; font-size: 13px; }
.nr-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.c-school { background: var(--blue-soft); color: var(--blue); } .c-hospital { background: var(--red-soft); color: var(--red); } .c-transit { background: var(--violet-soft); color: var(--violet); }
.c-shopping { background: var(--gold-soft); color: var(--gold-text); } .c-park { background: var(--green-soft); color: var(--green); }
.ph-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.ph-stats > div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.ph-stats small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.ph-stats b { font: 750 20px var(--sans-d); }
.ph-stats b i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.ph-stats em { display: block; font-size: 12px; }
.ph-stats .pos { color: var(--green); } .ph-stats .neg { color: var(--red); }
.chart-box { width: 100%; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 500 11px var(--font); fill: var(--muted); }
.chart .mk { font: 700 11px var(--font); fill: var(--gold-text); }
.chart .pt, .chart .bar-r { cursor: pointer; }
.chart .pt:hover { r: 6; }
.chart .bar-r:hover { opacity: .8; }
.spark { width: 100%; height: 36px; display: block; margin-top: 10px; }
.donut { width: 150px; height: 150px; display: block; flex: none; }
.d-big { font: 750 18px var(--sans-d); fill: var(--text); }
.d-sub { font: 600 10.5px var(--font); fill: var(--muted); }
.emi-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.emi-in { display: flex; flex-direction: column; gap: 18px; }
.sl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sl-h label, .sl-h .flabel { font-weight: 650; font-size: 13.5px; color: var(--text-2); }
.sl-h b { font: 750 15px var(--sans-d); }
.sl input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--primary) var(--p, 50%), var(--border-2) var(--p, 50%)); outline: none; margin: 8px 0; }
.sl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2.5px solid var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); cursor: grab; }
.sl input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid var(--primary); cursor: grab; }
.sl-e { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; }
.emi-loan { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-radius: 14px; background: var(--surface-2); font-weight: 600; color: var(--text-2); }
.emi-loan b { font: 750 17px var(--sans-d); color: var(--text); }
.emi-out { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 18px; background: linear-gradient(160deg, var(--primary-soft), var(--surface-2)); }
.emi-big small { display: block; color: var(--muted); font-weight: 650; font-size: 13px; }
.emi-big b { display: block; font: 750 38px/1.1 var(--sans-d); letter-spacing: -.03em; color: var(--text); margin: 2px 0 4px; }
.emi-big span { color: var(--text-2); font-size: 13px; }
.emi-viz { display: flex; align-items: center; gap: 16px; }
.emi-leg { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; min-width: 0; flex: 1; }
.emi-leg span { display: flex; align-items: center; gap: 8px; }
.emi-leg i { width: 11px; height: 11px; border-radius: 4px; flex: none; }
.emi-leg b { margin-left: auto; color: var(--text); }
.emi-leg .tot { padding-top: 8px; border-top: 1px dashed var(--border-2); }
.emi-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.emi-f .note { margin: 0; }
[data-emi-out="sched"] .tbl-wrap { margin-top: 12px; }
.t.sm td { padding: 8px 12px; font-size: 13px; }
.sim { margin-top: 10px; }
.sim .sec-h h2 { font-size: 28px; }
.agent-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.ag-top { display: flex; gap: 14px; align-items: center; }
.ag-top b { display: block; font-size: 16px; }
.ag-top small { display: block; color: var(--muted); font-size: 12.5px; }
.ag-top .rv { display: inline; margin-left: 6px; }
.ag-meta { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.ag-meta span { display: flex; align-items: center; gap: 8px; }
.ag-meta .i { color: var(--muted); }
.phone-rev { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.phone-rev small { color: var(--muted); font-size: 11.5px; }
.ag-emi { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.ag-emi b { color: var(--text); font-size: 14px; }
.ag-emi .link { margin-left: auto; font-size: 13px; }
.demo-mini { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); font-size: 12px; }
.det-bar { display: none; }

/* ---------- windows ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(30, 14, 22, .46); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.modal { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 8px; }
.modal-h h2 { font: 600 25px/1.15 var(--display); letter-spacing: -.01em; }
.modal-h p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.modal-b { padding: 14px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-f { padding: 14px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-f.split { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.mf-r { display: flex; gap: 10px; margin-left: auto; }
.v-sum { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--primary-2); }
.ov-top { place-items: start center; padding-top: 11vh; }
.ov-side { place-items: stretch end; padding: 0; }
.m-side { width: min(520px, 100%); max-height: none; height: 100vh; border-radius: 24px 0 0 24px; animation: slide .2s ease-out; }
.ov-sheet { place-items: stretch end; padding: 0; }
.m-sheet { width: min(420px, 100%); max-height: none; height: 100vh; border-radius: 24px 0 0 24px; animation: slide .2s ease-out; display: flex; flex-direction: column; }
.m-sheet .modal-b { flex: 1; overflow-y: auto; }
.m-sheet .modal-f { border-top: 1px solid var(--border); padding-top: 14px; }
.ov-gallery { background: rgba(14, 8, 11, .86); }
.m-gallery { width: min(1100px, 100%); background: #171215; border-color: #2c2328; color: #fff; }
.lb { padding: 16px 18px 18px; }
.lb-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lb-top > div { flex: 1; min-width: 0; }
.lb-top b { display: block; font: 600 20px var(--display); }
.lb-top small { color: #c9b5be; }
.lb-top .icon-btn { background: #2a2226; border-color: #3a3035; color: #fff; }
.lb-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #c9b5be; }
.lb-main { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; max-height: 62vh; width: 100%; margin: 0 auto; }
.lb-img { width: 100%; height: 100%; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #2a1621; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); z-index: 2; }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
.lb-th { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.lb-th button { width: 96px; height: 64px; flex: none; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .6; background: none; }
.lb-th button.on { border-color: #ff7d9a; opacity: 1; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.day { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.day small { font-size: 11px; color: var(--muted); font-weight: 600; }
.day b { font: 750 19px var(--sans-d); }
.day.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.on small { color: #e5ccd5; }
[data-theme="dark"] .day.on { background: var(--primary); border-color: var(--primary); }
.slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.slot { height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 650; padding: 0; }
.slot:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.slot.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot:disabled { background: var(--surface-2); color: var(--faint); text-decoration: line-through; cursor: not-allowed; }
.sent { padding: 40px 30px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sent h2 { font: 600 28px var(--display); }
.sent p { color: var(--muted); max-width: 380px; }
.sent-ic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.ag-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.ag-row > div { flex: 1; min-width: 0; }
.ag-row b { display: block; } .ag-row small { color: var(--muted); font-size: 12.5px; }
.m-top { width: min(640px, 100%); }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--muted); }
.pal-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--text); }
.pal-list { max-height: 54vh; overflow-y: auto; padding: 8px; }
.pal-g { font: 700 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 4px; }
.pal-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-weight: 600; }
.pal-i.on, .pal-i:hover { background: var(--primary-soft); }
.pal-i .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex: none; }
.pal-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-i .k { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pal-f { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pal-f kbd { margin-right: 3px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: left; }
.pick:hover { border-color: var(--primary); }
.pick > span { flex: 1; min-width: 0; }
.pick b { display: block; font-size: 13.5px; } .pick small { color: var(--muted); font-size: 12px; }
.pick .fav { color: var(--primary); fill: currentColor; }
.menu-l { gap: 2px; padding-top: 10px; }
.menu-l > a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; font-weight: 650; }
.menu-l > a:hover { background: var(--surface-2); }
.menu-l .acct-l { padding: 8px 0 0; margin-top: 8px; border-top: 1px solid var(--border); }
#toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; animation: rise .2s ease-out; max-width: 460px; }
.toast .i { color: #7ee2a8; }
.toast.warn .i { color: #ffcf6e; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .35s; }
[data-theme="dark"] .toast { background: #f6f1f3; color: #211a1f; }
[data-theme="dark"] .toast .i { color: #17794c; }

/* ---------- compare ---------- */
.cmp, .saved, .dash, .post { padding-top: 28px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph h1 { font: 600 38px/1.08 var(--display); letter-spacing: -.02em; margin-top: 4px; }
.ph p { color: var(--muted); margin-top: 6px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cmp-wrap { padding: 0; overflow-x: auto; }
.cmp-t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 720px; }
.cmp-t th, .cmp-t td { padding: 12px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-size: 13.5px; }
.cmp-t thead th { vertical-align: top; padding-top: 18px; padding-bottom: 18px; }
.cmp-t tbody th { color: var(--muted); font-weight: 650; font-size: 13px; width: 200px; }
.cmp-t .cmp-l { width: 200px; color: var(--text); }
.cmp-l span { display: block; font: 600 22px var(--display); }
.cmp-l small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; }
.cmp-t tbody tr:hover td, .cmp-t tbody tr:hover th { background: var(--surface-2); }
.cmp-t td { font-weight: 600; position: relative; }
.cmp-t td.best { background: var(--green-soft); color: var(--green); }
.best-t { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: var(--green); color: #fff; vertical-align: 1px; }
[data-theme="dark"] .best-t { color: #0e1d15; }
.cmp-t .am-r th { font-weight: 500; }
.cmp-t .yes { color: var(--green); } .cmp-t .no { color: var(--faint); }
.cmp-wrap.diff tr.same { display: none; }
.cmp-card { position: relative; display: flex; flex-direction: column; gap: 4px; }
.cmp-img { display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.cmp-x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #2a1621; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
.cmp-card b { font: 750 20px var(--sans-d); }
.cmp-card b small { font-size: 12px; color: var(--muted); }
.cmp-card a:not(.cmp-img) { font-weight: 650; font-size: 13.5px; line-height: 1.35; }
.cmp-card a:not(.cmp-img):hover { color: var(--primary); }
.cmp-card > small { color: var(--muted); font-weight: 500; }
.cmp-add { width: 100%; aspect-ratio: 3 / 2.4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; border: 2px dashed var(--border-2); background: var(--surface-2); color: var(--muted); }
.cmp-add:hover { border-color: var(--primary); color: var(--primary); }
.cmp-add b { color: var(--text); }

/* ---------- saved ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; font-weight: 650; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--primary); }
.tabs i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tabs a.on i { background: var(--primary-soft); color: var(--primary-2); }
.ss-list { display: flex; flex-direction: column; gap: 12px; }
.ss { display: flex; align-items: center; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.ss-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.ss-b { flex: 1 1 240px; min-width: 0; }
.ss-b b { display: block; font-size: 15px; } .ss-b small { color: var(--muted); }
.visit { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 12px; flex-wrap: wrap; }
.visit.past { opacity: .78; }
.vd { width: 58px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 14px; background: var(--primary-soft); color: var(--primary-2); flex: none; }
.vd b { font: 750 22px/1.1 var(--sans-d); }
.vd small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.v-img .scene.tiny { width: 84px; height: 62px; }
.v-b { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.v-b b { font-size: 15px; }
.v-b > small { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.v-a { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- post ---------- */
.post-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stepper-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 94px; }
.stepper-l button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 0; background: transparent; text-align: left; }
.stepper-l button:disabled { cursor: default; opacity: .55; }
.stepper-l button:hover:not(:disabled) { background: var(--surface-2); }
.stepper-l b { display: block; font-size: 14px; } .stepper-l small { color: var(--muted); font-size: 12px; }
.sn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-2); font-weight: 750; font-size: 13px; color: var(--muted); flex: none; background: var(--surface); }
.stepper-l li.on .sn { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper-l li.on button { background: var(--surface); box-shadow: var(--shadow-sm); }
.stepper-l li.done .sn { background: var(--green-soft); border-color: transparent; color: var(--green); }
.post-form { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.post-form h2 { font: 600 28px/1.15 var(--display); }
.post-form > .muted { margin-top: -12px; }
.post-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 4px; }
.pf-r { display: flex; gap: 10px; }
.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); text-align: left; }
.choice .i { color: var(--muted); margin-bottom: 4px; }
.choice b { font-size: 15px; } .choice small { color: var(--muted); }
.choice.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-ring); }
.choice.on .i { color: var(--primary); }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.type-t { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 650; text-align: left; }
.type-t .i { color: var(--muted); }
.type-t.on { border-color: var(--primary); background: var(--primary-soft); }
.type-t.on .i { color: var(--primary); }
.row2.in { gap: 10px; }
.affix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.affix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.affix .input { border: 0; box-shadow: none !important; }
.affix span { padding: 0 14px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.affix.pre span { padding-right: 0; }
.field.bad .affix { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.pwords { font: 700 15px var(--sans-d); color: var(--primary-2); }
.steppers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stepper-f { display: flex; flex-direction: column; gap: 7px; font-weight: 650; font-size: 13px; color: var(--text-2); }
.stepper { display: flex; align-items: center; justify-content: space-between; height: 44px; border-radius: 12px; border: 1px solid var(--border); padding: 4px; background: var(--surface); }
.stepper button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper b { font-size: 15px; }
.cmpbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.cmpbar.has { flex-direction: column; align-items: stretch; }
.cb-t { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--text-2); }
.cb-t b { color: var(--text); }
.cb-track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #59b884, #f2cf6b 50%, #e06a6a); margin: 6px 0; }
.cb-avg { position: absolute; left: 50%; top: -4px; width: 2px; height: 16px; background: var(--text); }
.cb-me { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.cmpbar small.warn { color: var(--amber); font-weight: 650; }
.amen-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.amen-pick .chip .i { color: var(--primary); }
.amen-pick .chip.on .i { color: inherit; }
.pal-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pal-t { padding: 0; border-radius: 14px; overflow: hidden; border: 2.5px solid transparent; aspect-ratio: 3 / 2; background: none; box-shadow: var(--shadow-sm); }
.pal-t.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.desc-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.desc-acts small { color: var(--faint); }
.prev-big { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; padding: 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); }
.prev-big > .scene { border-radius: 12px; height: 180px; }
.pb-b h3 { font: 600 20px var(--display); margin: 4px 0 6px; }
.pb-b p { color: var(--muted); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.sum-r { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.sum-r small { width: 80px; color: var(--muted); font-weight: 600; flex: none; }
.sum-r b { flex: 1; font-weight: 600; font-size: 13.5px; min-width: 0; }
.post-aside { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 14px; }
.pa-h { display: flex; justify-content: space-between; align-items: baseline; }
.pa-h small { color: var(--muted); font-size: 12px; }
.tips b { display: flex; align-items: center; gap: 8px; color: var(--text); }
.tips .i { color: var(--gold); }
.tips ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 5px; }

/* ---------- dashboard ---------- */
.kpi .lbl { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 650; font-size: 13px; }
.kpi .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi .val { font: 750 31px/1.1 var(--sans-d); letter-spacing: -.02em; margin-top: 14px; }
.kpi .val small { font-size: 15px; color: var(--muted); font-weight: 600; }
.kpi .kfoot { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.kpi .kfoot .up, .kpi .kfoot .dn { font-size: 12.5px; }
.lgd { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lg-bar { width: 11px; height: 11px; border-radius: 3px; background: var(--primary); display: inline-block; }
.lg-line { width: 16px; height: 3px; border-radius: 2px; background: var(--ink-line); display: inline-block; margin-left: 8px; }
.src { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.src-l { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.src-l span { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.src-l i { width: 11px; height: 11px; border-radius: 4px; }
.src-l b { margin-left: auto; color: var(--text); }
.lead-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; border-radius: 0; }
.lead-row:last-child { border-bottom: 0; }
.lead-row:hover { background: var(--surface-2); }
.lead-row > span:nth-child(2) { flex: 1; min-width: 0; }
.lead-row b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.lead-row small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-row em { font-style: normal; color: var(--faint); font-size: 12px; white-space: nowrap; width: 74px; text-align: right; }
.ud { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
.top-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.top-row:last-child { border-bottom: 0; }
.top-row > span:nth-child(2) { width: 170px; min-width: 0; }
.top-row b { display: block; font-size: 13.5px; } .top-row small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.tr-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ef6b8a, #d23358); }
.top-row em { font-style: normal; font-weight: 750; text-align: right; width: 64px; }
.top-row em small { font-weight: 500; }
.lst-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.lst-tools .search { width: 260px; }
.lst-tools .search .input { height: 40px; }
.lst { padding: 6px 18px; }
.lst-h, .lst-r { display: grid; grid-template-columns: minmax(0, 2.6fr) 1fr 1.2fr .6fr .6fr .9fr 190px; gap: 12px; align-items: center; }
.lst-h { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.lst-r { padding: 12px 0; border-bottom: 1px solid var(--border); }
.lst-r:last-child { border-bottom: 0; }
.lr-home { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lr-home > span { min-width: 0; }
.lr-home b { display: block; font-size: 14px; }
.lr-home small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-home:hover b { color: var(--primary); }
.lr-price { font-weight: 750; }
.lr-price small { color: var(--muted); font-weight: 500; }
.lst-r > span:nth-child(3) { display: flex; gap: 5px; flex-wrap: wrap; }
.lr-n { font-weight: 650; font-variant-numeric: tabular-nums; }
.lr-n small { display: none; }
.lr-acts { display: flex; gap: 6px; justify-content: flex-end; }
.inbox { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 18px; align-items: start; }
.ib-list { padding: 0; overflow: hidden; }
.ib-tools { padding: 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.ib-tools .input { height: 40px; }
.sm-chips { gap: 6px; }
.ib-items { max-height: 640px; overflow-y: auto; }
.ib-i { width: 100%; display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; position: relative; }
.ib-i:hover { background: var(--surface-2); }
.ib-i.on { background: var(--primary-soft); }
.ib-i.unread::before { content: ""; position: absolute; left: 4px; top: 26px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.ib-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ib-t { display: flex; justify-content: space-between; gap: 8px; }
.ib-t b { font-size: 14px; }
.ib-i.unread .ib-t b { font-weight: 800; }
.ib-t em { font-style: normal; color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.ib-b > small { color: var(--muted); font-size: 12px; }
.ib-m { color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-i .pill { margin-top: 2px; }
.ib-detail { display: flex; flex-direction: column; gap: 14px; min-height: 520px; }
.ld-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ld-h > div { flex: 1 1 200px; min-width: 0; }
.ld-h b { font: 600 22px var(--display); display: block; }
.ld-h small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.ld-st { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; color: var(--muted); }
.ld-st .sel { height: 38px; width: auto; border-radius: 999px; font-weight: 650; color: var(--text); }
.ld-prop { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.ld-prop > span { flex: 1; min-width: 0; }
.ld-prop b { display: block; font-size: 13.5px; } .ld-prop small { color: var(--muted); font-size: 12px; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; flex: 1; }
.msg { max-width: 78%; padding: 11px 14px; border-radius: 18px; }
.msg p { font-size: 14px; }
.msg small { display: block; margin-top: 4px; font-size: 11.5px; opacity: .7; }
.msg.buyer { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg.agent { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
[data-theme="dark"] .msg.agent { background: var(--primary); }
.quick { gap: 6px; }
.reply { display: flex; flex-direction: column; gap: 8px; }
.reply-a { display: flex; justify-content: space-between; gap: 8px; }
.ld-sheet { gap: 14px; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.tray { animation-name: trayrise; }
@keyframes trayrise { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1320px) {
  .hnav a { padding: 0 11px; }
  .search-btn span { display: none; }
  .post-grid { grid-template-columns: 210px minmax(0, 1fr) 280px; }
  .locs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .cards.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hdr-post span { display: none; }
  .det-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .post-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .stepper-l { grid-column: 1 / -1; flex-direction: row; position: static; overflow-x: auto; }
  .stepper-l li { flex: 1; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lst-h, .lst-r { grid-template-columns: minmax(0, 2.4fr) 1fr 1.2fr .6fr .6fr 170px; }
  .lst-h span:nth-child(6), .lst-r > span:nth-child(6) { display: none; }
  .cards.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srch-body.with-side .cards.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hnav { display: none; }
  .search-btn span { display: inline; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .det-body { grid-template-columns: minmax(0, 1fr); }
  .det-side { position: static; }
  .inbox { grid-template-columns: 340px minmax(0, 1fr); }
  .tools { grid-template-columns: 1fr; }
  .g2-1, .g2 { grid-template-columns: minmax(0, 1fr); }
  .pcard.row .pc-img { width: 280px; }
  .pcard.row .save-btn { left: 226px; }
  .mapv { grid-template-columns: 330px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  html, body { font-size: 14px; }
  .wrap { padding: 0 16px; }
  .hdr-in { height: 62px; gap: 10px; }
  .brand .logo { width: 34px; height: 34px; }
  .brand b { font-size: 20px; }
  .brand small { display: none; }
  .hide-s { display: none !important; }
  .search-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: var(--surface); }
  .search-btn span, .search-btn kbd { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .hdr-post { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .hdr-post em { display: none; }
  .hdr-r { gap: 8px; }
  .pop { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; }
  .main { padding-bottom: 90px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 650; }
  .tabbar .on { color: var(--primary); }
  .is-detail .tabbar { display: none; }
  .foot { margin-top: 24px; padding-bottom: 70px; }
  .is-detail .foot { padding-bottom: 80px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 36px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-note { flex-wrap: wrap; align-items: flex-start; }
  .foot-c { margin-left: 0; }
  .tray { bottom: 76px; left: 16px; right: 16px; transform: none; max-width: none; animation-name: rise; }
  .tray-in { padding: 8px; gap: 8px; border-radius: 18px; }
  .tray-i { display: none; }
  .tray-n { flex: 1; font-weight: 600; color: #fff; }
  .is-detail .tray { bottom: 84px; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 20px 0; gap: 18px; }
  .la-copy h2 { font-size: 34px; margin-top: 10px; }
  .la-copy p { font-size: 15px; }
  .la-feat { display: none; }
  .la-note { display: none; }
  .la-art { margin: 0 -6px -4px; }
  .login-form { padding: 26px 16px 40px; place-items: start center; }
  .login-box h1 { font-size: 30px; }
  .role-c small { display: none; }
  .hero { padding: 26px 0 10px; }
  .hero-copy h1 { font-size: 40px; margin: 12px 0 12px; }
  .hero-copy .lead { font-size: 15.5px; }
  .hsearch { padding: 14px; border-radius: 22px; }
  .hs-hint { display: none; }
  .hs-row { grid-template-columns: 1fr 1fr; }
  .hs-loc, .hs-go { grid-column: 1 / -1; }
  .hs-go { width: 100%; }
  .sec { margin-top: 40px; }
  .sec-h h2 { font-size: 28px; }
  .cards.g4, .cards.g3, .srch-body.with-side .cards.g3 { grid-template-columns: minmax(0, 1fr); }
  .locs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cta { padding: 28px 22px; border-radius: 22px; }
  .cta h2 { font-size: 27px; }
  .srch { padding-top: 16px; }
  .srch-top h1 { font-size: 27px; }
  .srch-tools { width: 100%; }
  .kw { order: -1; width: 100%; flex: 1 1 100%; }
  .sort { flex: 1; } .sort .sel { width: 100%; }
  .view-seg span, .save-s span { display: none; }
  .save-s { width: 42px; padding: 0; }
  .pcard.row { flex-direction: column; }
  .pcard.row .pc-img { width: 100%; min-height: 0; aspect-ratio: 3 / 2; }
  .pcard.row .save-btn { left: auto; right: 12px; }
  .pcard.row .pc-body { padding: 15px 16px 16px; }
  .pc-desc { display: none; }
  .pcard.row .pc-foot { flex-direction: column; align-items: stretch; }
  .pc-acts { justify-content: space-between; }
  .pc-acts .btn { flex: 1; }
  .mapv { grid-template-columns: minmax(0, 1fr); height: auto; }
  .mapv-map { height: 430px; order: -1; }
  .mapv-list { overflow: visible; }
  .map-card { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .mpc-img { width: 96px; height: 84px; }
  .map-tip { display: none; }
  .map-legend { left: 10px; top: 10px; gap: 8px; font-size: 11px; }
  .map-ctl { right: 10px; top: 10px; }
  .m-sheet, .m-side { width: 100%; height: auto; max-height: 92vh; border-radius: 24px 24px 0 0; align-self: end; animation: rise .2s ease-out; }
  .ov-sheet, .ov-side { place-items: end stretch; }
  .overlay { padding: 12px; }
  .ov-center, .ov-sheet, .ov-side, .ov-top { padding: 0; place-items: end stretch; }
  .modal { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .ov-gallery { place-items: center; padding: 0; }
  .m-gallery { border-radius: 0; max-height: 100vh; height: 100vh; }
  .modal-h { padding: 20px 18px 6px; }
  .modal-b { padding: 12px 18px; }
  .modal-f { padding: 12px 18px 20px; }
  .modal-h h2 { font-size: 23px; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row2, .choice2 { grid-template-columns: minmax(0, 1fr); }
  .lb { padding: 14px 12px; }
  .lb-main { aspect-ratio: 4 / 3; }
  .lb-nav { width: 40px; height: 40px; }
  .lb-note { display: none; }
  .det { padding-top: 14px; }
  .det-head { margin: 10px 0 14px; gap: 12px; }
  .det-t { flex-basis: 100%; }
  .det-t h1 { font-size: 28px; }
  .det-price { align-items: flex-start; text-align: left; }
  .dp-v b { font-size: 30px; }
  .gallery { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: 250px; border-radius: 18px; }
  .gallery .g-th { display: none; }
  .gallery .g-main { grid-row: auto; }
  .g-all { right: 12px; bottom: 12px; }
  .g-note { right: 12px; top: auto; bottom: 54px; }
  .det-body { margin-top: 16px; gap: 14px; }
  .card { padding: 18px; border-radius: 16px; }
  .facts-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .f-ic { width: 34px; height: 34px; border-radius: 10px; }
  .amen-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am { font-size: 12.5px; padding: 10px; gap: 8px; }
  .near { grid-template-columns: minmax(0, 1fr); }
  .near-map { height: 220px; }
  .ph-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ph-stats > div:last-child { grid-column: 1 / -1; }
  .ph-stats b { font-size: 17px; }
  .emi-g { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .emi-big b { font-size: 32px; }
  .emi-viz { flex-direction: column; align-items: stretch; }
  .emi-viz .donut { align-self: center; }
  .det-bar { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .det-bar > div { flex: 1; min-width: 0; }
  .det-bar b { display: block; font: 750 18px var(--sans-d); }
  .det-bar b small { font-size: 12px; color: var(--muted); }
  .det-bar > div > small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .det-bar .btn { padding: 0 14px; }
  #toasts { bottom: 84px; }
  .ph h1 { font-size: 30px; }
  .cmp-t { min-width: 560px; }
  .cmp-t th, .cmp-t td { padding: 10px 12px; font-size: 12.5px; }
  .cmp-t tbody th, .cmp-t .cmp-l { width: 118px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
  .cmp-l span { font-size: 17px; }
  .cmp-l small { display: none; }
  .cmp-card b { font-size: 16px; }
  .best-t { margin-left: 0; margin-top: 4px; display: flex; width: max-content; }
  .ss { gap: 12px; }
  .ss .btn { flex: 1; }
  .visit { gap: 12px; padding: 14px; }
  .v-img { display: none; }
  .v-a { width: 100%; }
  .v-a .btn { flex: 1; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .stepper-l { gap: 4px; }
  .stepper-l button { flex-direction: column; gap: 4px; padding: 6px 2px; text-align: center; }
  .stepper-l small { display: none; }
  .stepper-l b { font-size: 11.5px; }
  .post-form { padding: 20px 16px; }
  .post-form h2 { font-size: 24px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steppers { grid-template-columns: minmax(0, 1fr); }
  .pal-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .prev-big { grid-template-columns: minmax(0, 1fr); }
  .sum { grid-template-columns: minmax(0, 1fr); }
  .post-f { flex-wrap: wrap; }
  .pf-r { flex: 1; justify-content: flex-end; }
  .post-aside { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 16px; }
  .kpi .val { font-size: 25px; margin-top: 10px; }
  .kpi .lbl { font-size: 12px; }
  .kpi .ico { width: 28px; height: 28px; }
  .top-row > span:nth-child(2) { width: auto; flex: 1; }
  .tr-bar { display: none; }
  .lst-tools .search { width: 100%; }
  .lst { padding: 4px 14px; }
  .lst-h { display: none; }
  .lst-r { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 14px 0; }
  .lr-home { grid-column: 1 / -1; }
  .lst-r > span:nth-child(2) { grid-column: 1 / 3; }
  .lst-r > span:nth-child(3) { justify-content: flex-end; }
  .lr-n small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .lst-r > span:nth-child(6) { display: block !important; }
  .lr-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .ib-detail { display: none; }
  .ib-items { max-height: none; }
  .msg { max-width: 88%; }
}
@media (max-width: 420px) {
  .hero-copy h1 { font-size: 36px; }
  .locs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .loc-n { flex-direction: column; align-items: flex-start; gap: 2px; }
  .det-bar .btn { padding: 0 12px; font-size: 13.5px; }
}
@media print {
  .hdr, .foot, .tabbar, .tray, .det-bar, #toasts { display: none !important; }
}

/* ---------- fixes ---------- */
.hs-loc .sugg { position: absolute; left: 0; right: 0; top: 100%; height: 0; z-index: 20; }
.hs-loc .sugg-box { top: 8px; }
.ph-stats em.eq { color: var(--muted); font-style: normal; }
.g-th:has(.g-more) .g-cap { display: none; }
@media (max-width: 860px) { .mapv-map { height: 470px; } }
.citymap .roads, .citymap .metro, .citymap .m-water { pointer-events: none; }
.search-btn span { white-space: nowrap; }
@media (max-width: 1500px) { .hdr.wide .search-btn span { display: none; } .hdr.wide .hnav a { padding: 0 12px; } }
@media (max-width: 860px) { .plan { overflow-x: auto; } .plan-svg { min-width: 540px; } .chips-row .muted { display: none; } .chips-row { min-height: 0; margin: 12px 0 14px; } }
