/* Thakbo Koi? — app styles. Tokens from the Figma file "Thakbo Koi?" (light first, dark via media query + data-theme toggle). */
:root {
  color-scheme: light;
  --page: #f4f7f8; --surface: #ffffff; --surface-2: #f4f7f8; --surface-3: #e9eff1;
  --ink: #172b32; --ink-2: #687c84; --ink-3: #687c84;
  --hair: #dce5e8; --axis: #c4d0d4; --grid: #e6ecee; --ring: rgba(23,43,50,.10);
  --accent: #087f63; --accent-ink: #087f63; --accent-soft: #e7f4ef; --accent-line: #087f63;
  --btn: #087f63; --btn-hover: #06654f; --btn-ink: #ffffff;
  --brand: #09664d; --coral: #f55c40;
  --s1: #087f63; --s2: #f55c40; --s3: #2a78d6; --s4: #eda100;
  --seq-100:#d4efe5; --seq-200:#a9dfcb; --seq-300:#72c7a9; --seq-400:#3aab87; --seq-450:#13916f; --seq-500:#087f63; --seq-600:#06654f; --seq-700:#044a3a;
  --good:#0ca30c; --good-ink:#006300; --warn:#fab219; --serious:#ec835a; --crit:#d03b3b;
  --price: #172b32;
  --overlay: rgba(23,43,50,.475);
  --shadow: 0 1px 2px rgba(23,43,50,.05), 0 8px 24px rgba(23,43,50,.08);
  --shadow-pop: 0 2px 6px rgba(23,43,50,.08), 0 18px 48px rgba(23,43,50,.18);
  --radius: 12px;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Hind Siliguri", "Noto Sans Bengali", sans-serif;
  --f-bn: "Hind Siliguri", "Inter", "Noto Sans Bengali", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page:#101c22; --surface:#18282f; --surface-2:#101c22; --surface-3:#213239;
    --ink:#e8f1f3; --ink-2:#9db0b8; --ink-3:#94a7af;
    --hair:#30434c; --axis:#3f545d; --grid:#243840; --ring: rgba(255,255,255,.10);
    --accent:#62d5ad; --accent-ink:#62d5ad; --accent-soft:#203e36; --accent-line:#418971;
    --btn:#13916f; --btn-hover:#18a47e; --btn-ink:#ffffff;
    --s1:#62d5ad; --s2:#f2795f; --s3:#5598e7; --s4:#c98500;
    --seq-100:#14302a; --seq-200:#1b4a3d; --seq-300:#21654f; --seq-400:#2a8466; --seq-450:#3aa27e; --seq-500:#4dbb94; --seq-600:#7fd8b8; --seq-700:#b5ebd6;
    --good-ink:#0ca30c; --price:#e8f1f3;
    --overlay: rgba(4,10,13,.62);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-pop: 0 2px 6px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page:#101c22; --surface:#18282f; --surface-2:#101c22; --surface-3:#213239;
  --ink:#e8f1f3; --ink-2:#9db0b8; --ink-3:#94a7af;
  --hair:#30434c; --axis:#3f545d; --grid:#243840; --ring: rgba(255,255,255,.10);
  --accent:#62d5ad; --accent-ink:#62d5ad; --accent-soft:#203e36; --accent-line:#418971;
  --btn:#13916f; --btn-hover:#18a47e; --btn-ink:#ffffff;
  --s1:#62d5ad; --s2:#f2795f; --s3:#5598e7; --s4:#c98500;
  --seq-100:#14302a; --seq-200:#1b4a3d; --seq-300:#21654f; --seq-400:#2a8466; --seq-450:#3aa27e; --seq-500:#4dbb94; --seq-600:#7fd8b8; --seq-700:#b5ebd6;
  --good-ink:#0ca30c; --price:#e8f1f3;
  --overlay: rgba(4,10,13,.62);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-pop: 0 2px 6px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 14px/1.45 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border: 1px solid var(--hair); z-index: 100; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- layout ---------- */
.main { max-width: 1440px; margin: 0 auto; padding: 32px 40px 24px; overflow-x: clip; }
.browse { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
#results { min-width: 0; }
.filters-btn { display: none; }
@media (max-width: 960px) {
  .browse { grid-template-columns: minmax(0, 1fr); }
  .filters-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair); background: var(--surface); border-radius: 7px; padding: 6px 11px; font-weight: 600; }
  .filters { display: none; position: fixed; inset: 0; z-index: 40; max-height: none; border-radius: 0; padding-bottom: 80px; }
  body.filters-open .filters { display: block; }
  body.filters-open { overflow: hidden; }
  .filters .fhead { position: sticky; top: 0; background: var(--surface); z-index: 1; border-bottom: 1px solid var(--hair); }
  .filters .apply { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--hair); z-index: 2; display: flex; gap: 10px; }
  .filters .apply .btn { flex: 1; }
}
@media (min-width: 961px) { .filters .apply { display: none; } }
.fhead .done { display: none; }
@media (max-width: 960px) { .fhead .done { display: inline-block; border: 1px solid var(--hair); border-radius: 6px; padding: 3px 10px; margin-left: 8px; color: var(--ink); font-weight: 600; } }
@media (max-width: 600px) {
  table.t .hide-sm { display: none; }
  table.t { font-size: 12.5px; } table.t th, table.t td { padding: 6px 5px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px 12px; } .kpi .v { font-size: 21px; }
  .card-p { padding: 14px 12px; } .card-p h2 small { display: block; margin: 2px 0 0; }
  .dash header h1 { font-size: 20px; }
  .area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .acard { padding: 8px 10px; } .acard .m { font-size: 11px; }
  .tscroll { max-height: 420px; }
  .legend { gap: 10px; }
  .sublist .hd a { margin-left: 0; }
  .grid { grid-template-columns: 1fr; }
  .grid.list .card { flex-direction: column; } .grid.list .card .thumb { width: auto; height: 160px; }
  .toolbar .right { width: 100%; flex-wrap: wrap; }
  .toolbar .right .filters-btn { flex: 1; justify-content: center; }
  .toolbar h1 { font-size: 17px; }
}
.filters { position: sticky; top: 66px; max-height: calc(100vh - 80px); overflow: auto; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 6px 0 10px; }
.filters::-webkit-scrollbar { width: 8px; } .filters::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 8px; }
.fhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; }
.fhead h2 { margin: 0; font-size: 14px; font-weight: 700; }
.fhead button { border: 0; background: none; color: var(--accent-ink); font-size: 12.5px; padding: 2px 4px; }
details.fg { border-top: 1px solid var(--hair); }
details.fg summary { list-style: none; cursor: pointer; padding: 9px 14px; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: space-between; user-select: none; }
details.fg summary::-webkit-details-marker { display: none; }
details.fg summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 16px; }
details.fg[open] summary::after { content: "–"; }
details.fg summary .cnt { font-size: 11px; background: var(--accent-soft); color: var(--accent-ink); padding: 1px 7px; border-radius: 10px; margin-left: 8px; font-weight: 600; }
.fbody { padding: 0 14px 10px; display: flex; flex-direction: column; gap: 4px; }
[hidden] { display: none !important; }
.opt { display: flex; align-items: center; gap: 8px; padding: 3px 2px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.opt:hover { background: var(--surface-2); }
.opt input { margin: 0; accent-color: var(--accent); }
.opt .lab { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .n { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.opt.dim { opacity: .5; }
.opt.on .lab { font-weight: 600; }
.more { border: 0; background: none; color: var(--accent-ink); font-size: 12px; text-align: left; padding: 3px 2px; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.range input { width: 100%; padding: 6px 8px; border: 1px solid var(--hair); border-radius: 6px; background: var(--page); min-width: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chip { border: 1px solid var(--hair); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--axis); color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip .n { color: var(--ink-3); font-weight: 400; margin-left: 5px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: var(--accent-ink); }
.segs { display: flex; flex-wrap: wrap; gap: 4px; }
.segs button { border: 1px solid var(--hair); background: var(--surface); border-radius: 6px; padding: 4px 9px; font-size: 12.5px; color: var(--ink-2); }
.segs button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fsearch { width: 100%; padding: 6px 8px; border: 1px solid var(--hair); border-radius: 6px; background: var(--page); margin-bottom: 4px; }

/* ---------- results ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.toolbar h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.toolbar .sub { color: var(--ink-2); font-size: 13px; }
.toolbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
select.sel { padding: 6px 28px 6px 10px; border: 1px solid var(--hair); border-radius: 7px; background: var(--surface); appearance: auto; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-chips .chip { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.active-chips .chip b { font-weight: 600; }
.active-chips .chip .x { margin-left: 6px; opacity: .7; }
.viewbtn { border: 1px solid var(--hair); background: var(--surface); border-radius: 7px; padding: 6px 9px; color: var(--ink-2); }
.viewbtn[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.grid.list { grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; position: relative; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.grid.list .card { flex-direction: row; }
.grid.list .card .thumb { width: 200px; height: auto; min-height: 140px; flex: none; }
.thumb { height: 160px; background: var(--surface-2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph { font-size: 34px; opacity: .55; }
.thumb .kind { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: rgba(16,20,18,.7); color: #fff; }
.thumb .kind.wanted { background: var(--s2); }
.thumb .kind.commercial { background: var(--s4); color: #111; }
.thumb .kind.sale { background: var(--crit); }
.thumb .when { position: absolute; right: 8px; top: 8px; font-size: 11px; padding: 2px 7px; border-radius: 5px; background: rgba(16,20,18,.6); color: #fff; }
.cbody { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.price { font-size: 19px; font-weight: 700; color: var(--price); letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; }
.price .per { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.price .note { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.price.none { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.ctitle { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.ctitle a { color: inherit; }
.ctitle a::after { content: ""; position: absolute; inset: 0; }
.loc { color: var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.loc b { font-weight: 600; color: var(--ink); }
.specs { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: 12.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); text-transform: capitalize; }
.tag.unit { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.cfoot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; position: relative; z-index: 1; }
.src { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink-2); }
.src i { width: 8px; height: 8px; border-radius: 50%; background: var(--s2); display: inline-block; }
.src i.fb { background: var(--s1); }
.cfoot a.ext { margin-left: auto; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.cfoot .ph { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 0; flex-wrap: wrap; }
.pager button { border: 1px solid var(--hair); background: var(--surface); border-radius: 7px; padding: 6px 11px; min-width: 36px; color: var(--ink-2); }
.pager button[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--hair); border-radius: var(--radius); }
.loading { opacity: .55; pointer-events: none; }
.skel { height: 260px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow: auto; }
.modal[hidden] { display: none; }
.modal-bg { position: fixed; inset: 0; background: rgba(8,10,9,.55); }
.modal-card { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; max-width: 880px; width: 100%; box-shadow: var(--shadow); padding: 26px 28px 28px; }
.modal-x { position: absolute; right: 12px; top: 10px; border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; }
.mhead { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.mhead .src { font-size: 13px; }
.modal h2 { margin: 4px 0 6px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.mprice { font-size: 26px; font-weight: 700; color: var(--price); margin: 6px 0 12px; }
.mprice .per { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main cta" "main facts"; gap: 0 22px; align-content: start; }
.m-main { grid-area: main; } .m-cta { grid-area: cta; } .m-facts { grid-area: facts; }
@media (max-width: 760px) { .mgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cta" "main" "facts"; } .m-facts { margin-top: 16px; } .modal { padding: 10px 6px; } .modal-card { padding: 18px 14px 20px; border-radius: 10px; } .modal h2 { font-size: 18px; } .mprice { font-size: 22px; } }
.mimg { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; margin: 6px 0 14px; border: 1px solid var(--hair); }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 14px; color: var(--ink); background: var(--page); border: 1px solid var(--hair); border-radius: 10px; padding: 14px 16px; max-height: 520px; overflow: auto; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; align-content: start; }
.facts dt { color: var(--ink-3); } .facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.cta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 9px; font-weight: 600; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.phone { font-variant-numeric: tabular-nums; }
.srcnote { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.similar { margin-top: 22px; border-top: 1px solid var(--hair); padding-top: 14px; }
.similar h3 { margin: 0 0 10px; font-size: 14px; }
.simgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sim { border: 1px solid var(--hair); border-radius: 8px; padding: 9px 11px; background: var(--page); cursor: pointer; }
.sim:hover { border-color: var(--axis); }
.sim .p { font-weight: 700; color: var(--price); }
.sim .t { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- dashboard ---------- */
.dash { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.dash header h1 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.dash header p { margin: 0; color: var(--ink-2); max-width: 78ch; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 14px 16px 12px; }
.kpi .v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.kpi .l { color: var(--ink-2); font-size: 12.5px; margin-top: 3px; }
.kpi .s { color: var(--ink-3); font-size: 11.5px; }
.card-p { min-width: 0; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; }
.card-p h2 { margin: 0 0 2px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card-p h2 small { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 8px; }
.card-p .sub { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; max-width: 90ch; }
.card-p h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.acard { background: var(--page); border: 1px solid var(--hair); border-radius: 9px; padding: 10px 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.acard:hover { border-color: var(--accent); }
.acard[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.acard .a { font-weight: 700; display: flex; justify-content: space-between; gap: 6px; }
.acard .a .n { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.acard .m { font-size: 12px; color: var(--ink-3); }
.acard .bar { height: 4px; background: var(--surface-3); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.acard .bar i { display: block; height: 100%; background: var(--seq-450); border-radius: 2px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }
.scroll { overflow-x: auto; }
svg text { font-family: inherit; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin: 8px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.chart-note { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
table.t { border-collapse: collapse; width: 100%; font-size: 13px; }
table.t th, table.t td { padding: 6px 8px; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }
table.t th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--surface); }
table.t th.num, table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t tbody tr { cursor: pointer; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t tbody tr.on { background: var(--accent-soft); }
.tscroll { max-height: 560px; overflow: auto; border: 1px solid var(--hair); border-radius: 8px; }
.meter { display: inline-block; width: 56px; height: 6px; background: var(--seq-100); border-radius: 3px; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--seq-450); }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--page); padding: 6px 9px; border-radius: 6px; font-size: 12px; line-height: 1.35; max-width: 280px; box-shadow: var(--shadow); }
.sublist { margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 16px; }
.sublist .hd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sublist .hd h3 { font-size: 16px; margin: 0; }
.sublist .hd a { margin-left: auto; font-weight: 600; }
.minigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sumline { font-size: 13.5px; color: var(--ink-2); margin: 0 0 10px; }
.sumline b { color: var(--ink); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--page); padding: 9px 14px; border-radius: 8px; z-index: 70; font-size: 13px; }
.about { max-width: 820px; line-height: 1.6; }
.about h1 { font-size: 24px; margin: 0 0 10px; } .about h2 { font-size: 16px; margin: 22px 0 6px; }
.about ul { padding-left: 20px; } .about code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.srctable td:first-child { font-weight: 600; }

/* ---------- turnstile gate ---------- */
.gate { position: fixed; inset: 0; z-index: 80; background: var(--page); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate[hidden] { display: none; }
.gate-card { max-width: 460px; width: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 28px 28px 22px; text-align: center; box-shadow: var(--shadow); }
.gate-card h2 { margin: 8px 0 6px; font-size: 19px; }
.gate-card p { color: var(--ink-2); margin: 0 0 14px; }
.ts-widget { display: flex; justify-content: center; min-height: 65px; }

/* accounts */
.acct { position: relative; }
.acct-btn { padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.acct-btn .avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; }
.acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 10px; }
.modal.narrow .modal-card { max-width: 420px; }
.auth form { display: grid; gap: 12px; margin: 4px 0 12px; }
.auth label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.auth input { padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--page); font-weight: 400; }
.auth input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.auth-err { margin: 0; min-height: 1em; color: var(--crit); font-size: 13.5px; }
.auth-err:empty { display: none; }
.sso { display: grid; gap: 8px; margin: 14px 0 4px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; margin: 14px 0 8px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }
@media (max-width: 640px) { .acct-name { display: none; } }

/* member listings */
.panel { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .panel { padding: 16px 14px; } }
.tabs .post-cta { color: var(--accent-ink); font-weight: 600; }
.vtick { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; white-space: nowrap; margin-left: 6px; }
.src.member { font-weight: 600; }
.panel.narrow-panel { max-width: 760px; margin: 0 auto; }
.panel h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; margin-bottom: 10px; }
.nudge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface-2); margin: 12px 0; font-size: 14px; }
.pform { display: grid; gap: 14px; margin-top: 16px; }
.pform label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.pform input, .pform select, .pform textarea { padding: 9px 11px; border: 1px solid var(--hair); border-radius: 8px; background: var(--page); font-weight: 400; width: 100%; }
.pform textarea { font: inherit; resize: vertical; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.pform fieldset { border: 1px solid var(--hair); border-radius: 8px; padding: 8px 12px 12px; margin: 0; }
.pform legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.pform .checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pform label.chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.pform label.chk input { width: auto; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
ul.auth-err { padding-left: 18px; }
.mine-item { display: grid; gap: 8px; align-content: start; }
.btn.danger { color: var(--crit); border-color: var(--crit); background: transparent; }
.acct-menu a.btn { justify-content: flex-start; }
@media (max-width: 700px) { .g2, .g4 { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================================================
   Thakbo Koi? redesign (Figma: Desktop/Mobile · Browse + supporting control states)
   ===================================================================================================== */
.ic { display: inline-block; flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; color: var(--ink-2); vertical-align: middle; }
.ic12 { width: 12px; height: 12px; } .ic13 { width: 13px; height: 13px; } .ic14 { width: 14px; height: 14px; }
.ic18 { width: 18px; height: 18px; } .ic30 { width: 30px; height: 30px; } .ic38 { width: 38px; height: 38px; }
.ic.accent { color: var(--accent); }

/* ---------- header (80px, white, hairline) ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--hair); }
.top-in { max-width: 1440px; height: 80px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; justify-content: center; width: 172px; height: 44px; flex: none; border-radius: 8px; }
.brand img { display: block; width: 150px; height: 44px; }
.brand:hover { text-decoration: none; }
.tabs { display: flex; gap: 2px; margin: 0 auto; }
.tabs a { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tabs a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--accent-ink); }
.tabs .post-cta { color: var(--accent-ink); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 24px; flex: none; margin-left: auto; }
.tabs + .topsearch + .actions { margin-left: 0; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -7px; border: 0; background: none; border-radius: 8px; color: var(--ink); }
.iconbtn .ic { color: var(--ink); }
.iconbtn:hover { background: var(--surface-2); }
.topsearch { display: none; flex: 1; max-width: 640px; margin: 0 auto; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border: 1px solid var(--accent-line); border-radius: 100px; background: var(--surface); }
.topsearch input { flex: 1; min-width: 0; border: 0; background: none; font-size: 14px; outline: none; color: var(--ink); }
.topsearch .btn-p { height: 32px; padding: 0 16px; }
.topsearch #searchClose { margin: 0 4px 0 0; }
body.searching .topsearch { display: flex; }
body.searching .tabs, body.searching #searchBtn { display: none; }

/* ---------- controls (36px pills) ---------- */
.ctl { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; padding: 0 9px; border: 1px solid var(--hair); border-radius: 100px; background: var(--surface); color: var(--ink); font: 500 12px/1 var(--f-ui); white-space: nowrap; flex: none; }
.ctl:hover { border-color: var(--axis); }
.ctl .ic { color: var(--ink-2); }
.ctl.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.ctl.on .ic { color: var(--accent-ink); }
.ctl .badge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--btn); color: var(--btn-ink); font-size: 10px; font-weight: 700; margin-left: 2px; }
.ctl.loc { min-width: 165px; }
.ctl.loc .lbl { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.btn-p, .btn-o { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 18px; border-radius: 100px; font: 600 12px/1 var(--f-ui); white-space: nowrap; }
.btn-p { background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn); }
.btn-p:hover { background: var(--btn-hover); border-color: var(--btn-hover); text-decoration: none; }
.btn-o { background: var(--surface); color: var(--ink); border: 1px solid var(--hair); }
.btn-o:hover { border-color: var(--axis); text-decoration: none; }
.btn-p.wide { width: 100%; }
.btn-p.grow { flex: 1; }
.link { border: 0; background: none; padding: 2px 0; color: var(--accent-ink); font: 500 13px var(--f-ui); }
.link:hover { text-decoration: underline; }
.m-only { display: none; }

/* ---------- pinned filter bar ---------- */
.fbar { position: sticky; top: 80px; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--hair); }
.fbar-in { max-width: 1440px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; gap: 7px; }
.fbar .types { display: flex; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; }
.fbar .types::-webkit-scrollbar { display: none; }
.fbar .refine { display: flex; gap: 6px; flex: none; }
.fbar .viewc { display: flex; gap: 7px; align-items: center; margin-left: auto; flex: none; }
.vtoggle { display: flex; gap: 0; padding: 0; border-radius: 8px; background: var(--surface-2); }
.vtoggle button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; }
.vtoggle button .ic { color: var(--ink-2); }
.vtoggle button[aria-pressed="true"] .ic { color: var(--accent); }

/* ---------- results ---------- */
.results.loading { opacity: .6; transition: opacity .15s; }
.summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.summary h1 { margin: 0; font: 400 28px/1.2 var(--f-ui); color: var(--ink); letter-spacing: -.005em; }
.summary .stats { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.summary .tagline { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.achips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; }
.achip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 9px; border: 1px solid var(--accent-line); border-radius: 100px; background: var(--accent-soft); color: var(--accent-ink); font: 600 12px/1 var(--f-ui); }
.achip span { font-size: 13px; }
.aclear { border: 0; background: none; color: var(--ink); font: 400 12px var(--f-ui); padding: 4px; }
.aclear:hover { text-decoration: underline; }

.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.lcard:hover { box-shadow: var(--shadow); border-color: var(--axis); }
.photo { position: relative; height: 168px; flex: none; background: var(--surface-2); overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .nophoto { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.photo .nophoto .ic { color: var(--ink-2); }
.photo.none .nophoto { display: flex; }
.ubadge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 6px; background: var(--surface); color: var(--ink); font: 600 11px/1.45 var(--f-ui); }
.ubadge .ic { color: var(--accent); }
.cdet { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; min-width: 0; }
.cprice { font-family: var(--f-bn); color: var(--price); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.cprice .amt { font-size: 24px; font-weight: 600; line-height: 1.2; }
.cprice .per { font: 400 11px var(--f-ui); color: var(--ink-2); }
.cprice .note { font: 500 11px var(--f-ui); color: var(--ink-2); }
.cprice.none { font-size: 17px; font-weight: 600; line-height: 1.4; }
.ctitle { margin: 0; font: 500 15px/1.4 var(--f-bn); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctitle a { color: inherit; }
.ctitle a:hover { text-decoration: none; }
.ctitle a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cmeta { font-size: 12px; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; }
.cmeta .cplace { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ctags { display: flex; gap: 6px; flex-wrap: wrap; }
.ttag { padding: 4px 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); font: 500 10px/1.2 var(--f-ui); }
.ttag.kind { background: color-mix(in srgb, var(--coral) 14%, var(--surface)); color: var(--coral); }
.call { position: relative; z-index: 2; color: var(--accent-ink); font: 600 12px var(--f-ui); white-space: nowrap; }
.csrc { margin-top: auto; font-size: 10px; line-height: 1.5; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 2; pointer-events: none; }
.csrc .src { font-weight: 400; color: inherit; display: inline; }
.csrc .src.member { font-weight: 600; color: var(--ink); }
.csrc .vtick { pointer-events: auto; }
.lgrid.list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lgrid.list .lcard { flex-direction: row; }
.lgrid.list .photo { width: 260px; height: auto; min-height: 180px; }
.lgrid.list .ctitle { white-space: normal; }

.sk { border-radius: 12px; background: linear-gradient(90deg, var(--surface-3), var(--surface), var(--surface-3)); background-size: 200% 100%; animation: sh 1.2s infinite; }
.sk-h { height: 34px; width: min(460px, 80%); border-radius: 8px; } .sk-l { height: 14px; width: min(340px, 60%); border-radius: 6px; }
.sk-card { height: 380px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 64px 20px; background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; color: var(--ink-2); }
.empty-state h2 { margin: 6px 0 0; font: 600 18px var(--f-ui); color: var(--ink); }
.empty-state p { margin: 0; max-width: 420px; font-size: 13px; }
.empty-state .btn-o { margin-top: 8px; }

.pgr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 24px 0; margin-top: 20px; }
.pinfo { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.pinfo.right { text-align: right; }
.pages { display: flex; gap: 6px; justify-content: center; align-items: center; }
.pg { min-width: 36px; height: 36px; padding: 0 9px; border: 1px solid var(--hair); border-radius: 100px; background: var(--surface); color: var(--ink); font: 500 12px/1 var(--f-ui); display: inline-flex; align-items: center; justify-content: center; }
.pg.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.pg:disabled { opacity: .4; cursor: default; }
.pg.gap { cursor: default; }
.notice { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--hair); padding: 16px 0 20px; margin-top: 16px; font-size: 11px; line-height: 1.45; color: var(--ink-2); }
.notice p { margin: 0; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--ink-2); }

/* ---------- popovers, dialogs, sheets ---------- */
.pop { position: fixed; inset: 0; z-index: 35; }
.pop-bg { position: absolute; inset: 0; background: var(--overlay); }
.pop-panel { position: absolute; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 24px; width: 400px; max-height: calc(100vh - 120px); overflow: auto; }
.pop[data-kind="loc"] .pop-panel { left: 40px; top: 142px; width: 520px; height: min(850px, calc(100vh - 160px)); padding: 0; overflow: hidden; }
.pop[data-kind="filters"] .pop-panel { left: 50%; top: 68px; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); height: calc(100vh - 88px); max-height: 944px; padding: 0; overflow: hidden; }
.pop[data-kind="tenant"] .pop-panel, .pop[data-kind="more"] .pop-panel, .pop[data-kind="sort"] .pop-panel { width: 360px; padding: 18px 16px 12px; }
.pop[data-kind="beds"] .pop-panel { width: 360px; }
body.pop-open { overflow: hidden; }
.phd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.phd h2 { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 20px/1.3 var(--f-ui); color: var(--ink); }
.pop[data-kind="tenant"] .phd h2, .pop[data-kind="more"] .phd h2, .pop[data-kind="sort"] .phd h2 { font-size: 13px; font-weight: 600; }
.px { display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -6px -6px 0; border: 0; background: none; border-radius: 8px; flex: none; }
.px .ic { color: var(--ink-2); }
.px:hover { background: var(--surface-2); }
.pdesc { margin: -2px 0 20px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.pnote { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--ink-2); }
.inp { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--surface); color: var(--ink); font: 400 14px var(--f-ui); min-width: 0; }
.inp::placeholder { color: var(--ink-2); }
.inp:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.inp:disabled { background: var(--surface-2); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.fsb .pills { margin: 0; }
.pill { height: 36px; padding: 0 9px; border: 1px solid var(--hair); border-radius: 100px; background: var(--surface); color: var(--ink); font: 500 12px/1 var(--f-ui); white-space: nowrap; }
.pill:hover { border-color: var(--axis); }
.pill.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.pills.sq { margin-top: 0; gap: 6px; } .pills.sq .pill { min-width: 30px; height: 30px; padding: 0 8px; font-size: 11px; }
.pact { display: flex; gap: 10px; margin-top: 28px; }
.pact .btn-o { min-width: 90px; }
.crow-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0; cursor: pointer; font-size: 13px; color: var(--ink); }
.crow-opt input { width: 13px; height: 13px; margin: 0 2px; accent-color: var(--accent); flex: none; }
.crow-opt .ol { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-opt .on-n { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.crow-opt .muted { color: var(--ink-2); font-size: 12px; }
.pop[data-kind="rent"] .crow-opt { margin-top: 20px; }
.plist .crow-opt { min-height: 41px; }
.radios .crow-opt input { accent-color: var(--accent); width: 14px; height: 14px; }

/* location picker */
.pop[data-kind="loc"] .phd { padding: 20px 24px 0; margin: 0 0 12px; }
.pop[data-kind="loc"] .phd h2 { font-size: 20px; }
.lsearch { padding: 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; font-size: 12px; color: var(--accent-ink); }
.crumbs span { color: var(--accent-ink); }
.crumb { border: 0; background: none; padding: 0; color: var(--accent-ink); font: 400 12px var(--f-ui); }
.crumb:hover { text-decoration: underline; }
.pscroll { flex: 1; overflow-y: auto; padding: 12px 24px 16px; overscroll-behavior: contain; }
.lh { margin: 6px 0 2px; font: 600 14px var(--f-ui); color: var(--ink); }
.lrow { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--hair); }
.lrow .crow-opt { flex: 1; min-width: 0; }
.drill { display: grid; place-items: center; width: 28px; height: 34px; border: 0; background: none; border-radius: 6px; flex: none; }
.drill .ic { color: var(--ink); }
.drill:hover { background: var(--surface-2); }
.pfoot { border-top: 1px solid var(--hair); padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.pfoot .pnote { margin: 0; }

/* Filters dialog */
.fhd { padding: 24px 24px 22px; margin: 0; border-bottom: 1px solid var(--hair); }
.fhd h2 { font-size: 22px; font-weight: 600; }
.fhd-r { display: flex; align-items: center; gap: 22px; }
.eyebrow { margin: 0 0 6px; font-size: 11px; letter-spacing: .02em; color: var(--ink-2); }
.eyebrow span { text-transform: uppercase; }
.fsec { border-bottom: 1px solid var(--hair); padding: 14px 0 16px; }
.fsec summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.fsec summary::-webkit-details-marker { display: none; }
.fsec summary h3 { margin: 0; font: 600 14px var(--f-ui); color: var(--ink); }
.fsec .chev { transform: rotate(180deg); transition: transform .15s; }
.fsec:not([open]) .chev { transform: none; }
.fsb { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.c2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.c1 { display: grid; }
.glist { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid var(--hair); border-radius: 8px; }
.gopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 6px 12px; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; font: 400 13px var(--f-bn); color: var(--ink); }
.gopt span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gopt:last-child { border-bottom: 0; }
.gopt:hover { background: var(--surface-2); }
.gopt.on { background: var(--ink); color: var(--surface); }
.gopt.on .on-n { color: inherit; }
.pop[data-kind="filters"] .pfoot { gap: 10px; padding: 18px 24px 20px; }
.pop[data-kind="filters"] .pfoot .btn-p { height: 36px; }

/* account, auth, member UI on the new tokens */
.acct-btn { padding: 0 12px; }
.acct-btn .avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 11px; margin-left: -4px; }
.acct-menu { top: calc(100% + 8px); border-radius: 12px; }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn { border-radius: 100px; }
.modal-card { border-radius: 16px; }
.minigrid .lcard .photo { height: 140px; }

/* ---------- responsive (Figma mobile frames are 390 wide) ---------- */
@media (max-width: 1180px) {
  .tabs { display: none; }
  .fbar-in { flex-wrap: wrap; }
  .fbar .types { flex: 1 1 0; }
  .fbar .refine { order: 3; }
  .fbar .viewc { order: 4; }
}
@media (max-width: 700px) {
  .top-in { height: 68px; padding: 0 16px; gap: 12px; }
  .brand { width: auto; height: 36px; padding: 0 4px; margin-left: -4px; }
  .brand img { width: 120px; height: 35px; }
  .actions { gap: 20px; }
  .acct-btn { border: 0; background: none; padding: 0 2px; font-size: 14px; }
  .acct-btn .acct-name { display: none; }
  body.searching .brand, body.searching .actions { display: none; }
  .topsearch { height: 40px; }
  .fbar { top: 68px; }
  .fbar-in { padding: 12px 16px; gap: 8px; }
  .ctl.loc { width: 100%; height: 40px; font-size: 14px; }
  .ctl.loc .lbl { max-width: none; }
  .fbar .types { flex: 1 1 100%; margin: 0 -16px; padding: 0 16px; }
  .ctl { height: 36px; font-size: 13px; padding: 0 10px; }
  .fbar .refine { flex: 1; }
  .fbar .viewc { gap: 4px; }
  .vtoggle { background: none; }
  .vtoggle button[aria-pressed="true"] { display: none; }
  .d-only, span.d-only { display: none !important; }
  .m-only { display: block; } span.m-only { display: inline; }
  .main { padding: 24px 16px 16px; }
  .summary h1 { font-size: 24px; }
  .lgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .photo { height: 228px; }
  .lgrid.list .lcard { flex-direction: column; } .lgrid.list .photo { width: auto; min-height: 0; height: 180px; }
  .pgr { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
  .pgr .pinfo { justify-self: start; } .pgr .pinfo.right { display: none; }
  .pages { flex-wrap: wrap; }
  .notice { flex-direction: column; }
  .pop .pop-panel, .pop[data-kind] .pop-panel { left: 0 !important; right: 0; top: auto !important; bottom: 0; transform: none; width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0; }
  .pop[data-kind="loc"] .pop-panel, .pop[data-kind="filters"] .pop-panel { height: 92vh; max-height: none; }
  .c2 { grid-template-columns: minmax(0, 1fr); }
}

.topsearch input::-webkit-search-cancel-button { display: none; }
.fbar .types.ovf { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.srcnote, .srcnote a { overflow-wrap: anywhere; }

/* header actions hug the right edge whenever the centre nav is hidden */
@media (max-width: 1180px) { .tabs + .topsearch + .actions { margin-left: auto; } }
/* mobile: header + filter bar slide away while scrolling down, return on scroll up */
@media (max-width: 700px) {
  .top, .fbar { transition: transform .22s ease; will-change: transform; }
  body.nav-hidden .top { transform: translateY(-100%); }
  body.nav-hidden .fbar { transform: translateY(calc(-100% - 68px)); }
}

.auth .pwlab { display: flex; align-items: baseline; gap: 6px; }
.auth .forgot { margin-left: auto; font-weight: 500; font-size: 12.5px; }
.auth .btn, .sso .btn { height: 42px; }
.sso .btn { background: var(--surface); border: 1px solid var(--hair); color: var(--ink); font-weight: 600; }
.sso .btn:hover { border-color: var(--axis); background: var(--surface-2); }
.panel.auth form { display: grid; gap: 12px; margin-top: 16px; }

/* logo: dark-mode wordmark variant instead of a white plate */
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}

/* card filter shortcuts (location parts, tenant tag) sit above the card's full-size link */
.lcard .cf { position: relative; z-index: 2; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.lcard .cplace .cf:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.lcard .ttag.cf { padding: 4px 8px; background: var(--accent-soft); color: var(--accent-ink); font: 500 10px/1.2 var(--f-ui); }
.lcard .ttag.cf:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }

/* verify nudge: text block + button (was splitting into separate flex items) */
.nudge { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.nudge p { margin: 0; flex: 1 1 220px; line-height: 1.5; }
.nudge .vtick { margin: 0 2px; }
/* post form: keep paired fields aligned when one label wraps */
.pform .g2, .pform .g4 { align-items: end; }
/* photo / video uploads */
.mediaf .mgrid-up { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.mediaf .mgrid-up:empty { display: none; }
.mtile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--hair); }
.mtile img, .mtile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtile.busy img, .mtile.busy video { opacity: .55; }
.mtile .mx { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(16,28,34,.75); }
.mtile .mx .ic { color: #fff; }
.mtile .mcover, .mtile .mvbadge { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 5px; background: var(--btn); color: #fff; font: 600 10px/1.5 var(--f-ui); }
.mtile .mvbadge { background: rgba(16,28,34,.75); }
.mtile .mcov { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border: 0; border-radius: 100px; background: rgba(16,28,34,.75); color: #fff; font: 600 10px var(--f-ui); }
.mtile .mprog { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); overflow: hidden; }
.mtile .mprog i { display: block; height: 100%; background: var(--btn); transition: width .2s; }
.mdrop { display: flex !important; flex-direction: row !important; align-items: center; gap: 14px; padding: 16px; margin-top: 10px; border: 1.5px dashed var(--axis); border-radius: 12px; cursor: pointer; font-weight: 400 !important; background: var(--surface-2); }
.mdrop:hover, .mdrop.over { border-color: var(--accent); background: var(--accent-soft); }
.mdrop-ic .ic { color: var(--accent); }
/* listing gallery */
.gallery { margin-bottom: 14px; }
.gview { border-radius: 12px; overflow: hidden; background: #000; }
.gmain { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #000; }
.gthumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gth { position: relative; flex: none; width: 76px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.gth.on { border-color: var(--accent); }
.gth img, .gth video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gth .mvbadge { position: absolute; inset: auto auto 4px 4px; padding: 0 5px; border-radius: 4px; background: rgba(16,28,34,.75); color: #fff; font-size: 10px; }

/* legal pages (/privacy, /terms) */
.legal article { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 36px 40px; line-height: 1.65; font-size: 15px; }
.legal h1 { margin: 0 0 8px; font: 600 30px/1.2 var(--f-ui); }
.legal h2 { margin: 30px 0 8px; font: 600 19px/1.3 var(--f-ui); }
.legal h3 { margin: 18px 0 6px; font: 600 15px/1.3 var(--f-ui); }
.legal .lede { color: var(--ink-2); }
.legal ul { padding-left: 20px; } .legal li { margin: 6px 0; }
.legal code { font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.legal + .main .notice { max-width: 760px; margin: 0 auto; }
.legalnote { margin-top: 4px; }
@media (max-width: 700px) { .legal article { padding: 24px 18px; font-size: 14.5px; } .legal h1 { font-size: 24px; } }

/* saved-search alerts */
.sumrow { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.alertbtn { gap: 6px; }
.alertbtn:hover { text-decoration: none; }
.alert-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.alert-sum .achip { height: 28px; font-size: 11.5px; cursor: default; }
.freq { border: 0; padding: 0; margin: 4px 0 0; } .freq legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.freq .crow-opt { font-weight: 400; }
.alist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.aitem { border: 1px solid var(--hair); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.aitem.off { opacity: .7; }
.ahead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aname { font-size: 15px; }
.astate { font: 600 11px var(--f-ui); padding: 3px 8px; border-radius: 100px; background: var(--accent-soft); color: var(--accent-ink); }
.aitem.off .astate { background: var(--surface-3); color: var(--ink-2); }
.aact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aact .asel { width: auto; height: 36px; padding: 0 10px; font-size: 12px; border-radius: 100px; }
.btn-o.danger { color: var(--crit); }
.auth .freq label.crow-opt { display: flex; grid-template-columns: none; align-items: center; gap: 10px; font-weight: 400; }
.auth .freq label.crow-opt input { width: 14px; height: 14px; padding: 0; margin: 0 2px; }

/* email-alert button lives in the header (Browse only) */
.alertslot:empty { display: none; }
.alertslot .alertbtn { height: 36px; }
.alertslot .m-only { display: none; }
@media (max-width: 700px) {
  .alertslot .alertbtn { height: 32px; padding: 0 10px; font-size: 12px; }
  .alertslot .d-only { display: none !important; } .alertslot .m-only { display: inline; }
}

/* "Post a listing" sits with the other header actions, as the one filled button */
.actions .post-btn { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; }
.actions .post-btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); text-decoration: none; }
.actions .post-btn .m-only { display: none; }
.actions { gap: 12px; }
.actions .iconbtn { margin: -7px 0; }
.actions .alertslot + .iconbtn { margin-left: 4px; }
@media (max-width: 700px) {
  .actions { gap: 8px; }
  .actions .post-btn { height: 32px; padding: 0 10px; font-size: 12px; }
  .actions .post-btn .d-only { display: none !important; } .actions .post-btn .m-only { display: inline; }
}
@media (max-width: 700px) {
  .top-in { gap: 8px; padding: 0 12px; }
  .brand img { width: 100px; height: 29px; }
  .actions { gap: 6px; }
  .actions .iconbtn { width: 30px; height: 30px; margin: 0 -2px; }
  .actions .alertslot .alertbtn { padding: 0 9px; }
  .acct-btn { padding: 0 2px; font-size: 13px; }
}
@media (max-width: 360px) { .brand img { width: 86px; height: 25px; } .actions .post-btn { padding: 0 8px; } }
@media (max-width: 340px) { #themeBtn { display: none; } }

/* original post taken down at the source */
.gone { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--crit) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--crit) 40%, transparent); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.btn.disabled { opacity: .55; cursor: default; pointer-events: none; }
.lcard.gone-card { opacity: .45; }

/* map pin on the post form and listing */
.mapf .maprow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mapf .maprow .inp { flex: 1 1 260px; }
.mapf .maprow .link { font-weight: 600; }
.mapbox iframe, .lmap iframe { width: 100%; height: 240px; border: 0; border-radius: 10px; display: block; margin-top: 10px; background: var(--surface-2); }
.lmap { margin: 0 0 14px; display: grid; gap: 8px; justify-items: start; }
