/* ArbiBase Property Browser v2 — styles */
html, body { height: 100%; }
body {
  background: var(--ab-bg);
  color: var(--ab-text);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
}
::selection { background: var(--ab-emerald); color: #0b0f12; }

/* shell */
.dash { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.side { border-right: 1px solid var(--ab-line); background: #090d10; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { height: 64px; display: flex; align-items: center; padding: 0 20px; gap: 10px; border-bottom: 1px solid var(--ab-line); }
.side-brand span { font-weight: 700; letter-spacing: -0.02em; font-size: 16px; }
.side-section { padding: 14px 14px 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ab-text-muted); }
.side-nav { display: flex; flex-direction: column; padding: 0 8px; gap: 1px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; color: var(--ab-text-dim); text-decoration: none; font-size: 13.5px; font-weight: 500; border-radius: 6px; border-left: 2px solid transparent; }
.side-link:hover { color: var(--ab-text); background: rgba(255,255,255,0.025); }
.side-link.active { color: var(--ab-text); background: rgba(47,185,138,0.06); border-left-color: var(--ab-emerald); position: relative; }
.side-link .ic { width: 16px; height: 16px; opacity: 0.85; flex: none; }
.side-link .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-muted); padding: 1px 6px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.side-link.active .count { color: var(--ab-emerald); background: rgba(47,185,138,0.1); }
.side-spacer { flex: 1; }
.side-user { border-top: 1px solid var(--ab-line); padding: 14px 16px; display: flex; align-items: center; gap: 11px; }
.side-user .av { width: 32px; height: 32px; background: linear-gradient(135deg, var(--ab-emerald), #1a6a52); color: #0b0f12; display: grid; place-items: center; font-weight: 700; font-size: 13px; border-radius: 50%; }
.side-user .nm { font-size: 13px; font-weight: 600; line-height: 1.2; }
.side-user .rl { font-family: var(--font-mono); font-size: 10px; color: var(--ab-text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Top bar ---------- */
.main { min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 32px; border-bottom: 1px solid var(--ab-line); background: rgba(11,15,18,0.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.top-crumb { font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-muted); letter-spacing: 0.12em; text-transform: uppercase; }
.top-crumb b { color: var(--ab-text-dim); font-weight: 500; }
.top-search { margin-left: 20px; flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--ab-line); background: rgba(255,255,255,0.02); border-radius: 6px; }
.top-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--ab-text); font-size: 13px; font-family: var(--font-display); }
.top-search input::placeholder { color: var(--ab-text-muted); }
.top-search .kbd { font-family: var(--font-mono); font-size: 10px; padding: 2px 5px; border: 1px solid var(--ab-line); color: var(--ab-text-muted); border-radius: 3px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ab-line); background: transparent; color: var(--ab-text-dim); cursor: pointer; position: relative; border-radius: 6px; }
.iconbtn:hover { color: var(--ab-text); border-color: var(--ab-line-strong); }
.iconbtn .dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--ab-emerald); border-radius: 50%; }

/* ---------- Hero ---------- */
.hero { padding: 36px 32px 24px; border-bottom: 1px solid var(--ab-line); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-muted); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; display: flex; gap: 14px; align-items: center; }
.hero-eyebrow .dot { display: inline-block; width: 6px; height: 6px; margin-right: 3px; vertical-align: middle; background: var(--ab-emerald); border-radius: 50%; box-shadow: 0 0 0 4px rgba(47,185,138,0.18); }
.hero h1 { margin: 0; font-weight: 300; font-size: 48px; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 em { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400; color: var(--ab-emerald); }
.hero-sub { margin: 12px 0 0; color: var(--ab-text-dim); font-size: 15px; max-width: 620px; }
.hero-stats { font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-muted); text-align: right; line-height: 1.7; }
.hero-stats .kv { display: flex; gap: 14px; justify-content: flex-end; align-items: baseline; }
.hero-stats .lbl { letter-spacing: 0.12em; text-transform: uppercase; }
.hero-stats .val { color: var(--ab-text); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- Filters ---------- */
.filters { padding: 16px 32px; border-bottom: 1px solid var(--ab-line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,0.012); }
.fbox { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--ab-line); background: var(--ab-bg-2); flex: 1; max-width: 320px; border-radius: 6px; }
.fbox svg { color: var(--ab-text-muted); flex: none; }
.fbox input { flex: 1; background: transparent; border: none; outline: none; color: var(--ab-text); font-size: 13px; font-family: var(--font-display); }
.fbox input::placeholder { color: var(--ab-text-muted); }
.chip-wrap { position: relative; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--ab-line); background: transparent; color: var(--ab-text); font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font-display); border-radius: 6px; }
.chip:hover { border-color: var(--ab-line-strong); }
.chip.active { color: var(--ab-emerald); border-color: var(--ab-emerald-line); background: rgba(47,185,138,0.05); }
.chip .ct { font-family: var(--font-mono); font-size: 10px; color: var(--ab-text-muted); margin-left: 2px; }
.chip.active .ct { color: var(--ab-emerald); }
.chip svg { color: var(--ab-text-muted); }
.chip.active svg { color: var(--ab-emerald); }
.vchip-group { margin-left: auto; display: flex; border: 1px solid var(--ab-line); border-radius: 6px; overflow: hidden; }
.vchip { width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--ab-text-muted); background: transparent; border: none; border-right: 1px solid var(--ab-line); }
.vchip:last-child { border-right: none; }
.vchip:hover { color: var(--ab-text); }
.vchip.active { color: var(--ab-emerald); background: rgba(47,185,138,0.06); }

/* ---------- Dropdowns ---------- */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px;
  background: var(--ab-bg-2);
  border: 1px solid var(--ab-line-strong);
  z-index: 50;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.dropdown.open { display: block; }
.dd-head {
  padding: 12px 16px 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ab-text-muted);
  border-bottom: 1px solid var(--ab-line);
}
.dd-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 13px; color: var(--ab-text-dim);
  cursor: pointer; border-bottom: 1px solid var(--ab-line);
  transition: background 80ms;
}
.dd-opt:hover { background: rgba(255,255,255,0.03); color: var(--ab-text); }
.dd-opt.checked { color: var(--ab-text); }
.dd-opt input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--ab-line-strong);
  background: transparent; cursor: pointer; flex: none;
  display: grid; place-items: center;
}
.dd-opt input[type="checkbox"]:checked {
  background: var(--ab-emerald); border-color: var(--ab-emerald);
}
.dd-opt input[type="checkbox"]:checked::after {
  content: '✓'; color: #0b0f12; font-size: 11px; font-weight: 700;
}
.dd-ct { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--ab-text-muted); }
.dd-foot { padding: 10px 16px; display: flex; justify-content: flex-end; }
.dd-apply {
  padding: 6px 16px; background: var(--ab-emerald); color: #0b0f12;
  border: none; font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}
.dd-apply:hover { background: #38c895; }

/* Range inputs */
.dd-range { padding: 14px 16px; }
.dd-range-inputs { display: flex; align-items: center; gap: 10px; }
.dd-field { flex: 1; }
.dd-field label { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ab-text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.dd-input { width: 100%; padding: 8px 10px; background: var(--ab-bg); border: 1px solid var(--ab-line); color: var(--ab-text); font-family: var(--font-mono); font-size: 13px; }
.dd-sep { color: var(--ab-text-muted); font-size: 16px; margin-top: 16px; }
.dd-presets { display: flex; gap: 6px; margin-top: 12px; }
.dd-preset {
  padding: 5px 10px; border: 1px solid var(--ab-line);
  background: transparent; color: var(--ab-text-dim);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; cursor: pointer;
}
.dd-preset:hover { border-color: var(--ab-line-strong); color: var(--ab-text); }
.dd-preset.active { color: var(--ab-emerald); border-color: var(--ab-emerald-line); background: rgba(47,185,138,0.05); }

/* Seg buttons in dropdown */
.dd-seg { display: flex; border: 1px solid var(--ab-line); margin: 8px 16px; }
.dd-seg-btn {
  flex: 1; padding: 8px; background: transparent; border: none;
  border-right: 1px solid var(--ab-line); color: var(--ab-text-dim);
  font-family: var(--font-mono); font-size: 11px; cursor: pointer;
  letter-spacing: 0.06em;
}
.dd-seg-btn:last-child { border-right: none; }
.dd-seg-btn.active { color: var(--ab-emerald); background: rgba(47,185,138,0.06); }
.dd-seg-btn:hover:not(.active) { color: var(--ab-text); }

/* ---------- Active filter chips ---------- */
.active-row { padding: 12px 32px; border-bottom: 1px solid var(--ab-line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; }
.active-row .lbl { color: var(--ab-text-muted); letter-spacing: 0.12em; text-transform: uppercase; margin-right: 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 4px;
  border: 1px solid var(--ab-emerald-line);
  color: var(--ab-emerald);
  background: rgba(47,185,138,0.05);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill .x { color: var(--ab-emerald); opacity: 0.7; cursor: pointer; }
.pill .x:hover { opacity: 1; }
.active-row .clear { color: var(--ab-text-dim); text-decoration: none; margin-left: auto; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--ab-line); padding-bottom: 1px; }
.active-row .clear:hover { color: var(--ab-text); }

/* ---------- Results meta ---------- */
.resmeta { padding: 16px 32px; display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--ab-line); }
.resmeta .count { font-weight: 300; font-size: 22px; letter-spacing: -0.02em; }
.resmeta .count em { font-family: "Newsreader", Georgia, serif; font-style: italic; color: var(--ab-emerald); }
.resmeta .small { font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.sortbox { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.sortbox select {
  background: transparent; color: var(--ab-text); border: 1px solid var(--ab-line);
  padding: 6px 10px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}

/* ---------- Grid view ---------- */
.grid { padding: 24px 32px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.hide { display: none; }
.card { background: transparent; text-decoration: none; color: var(--ab-text); display: flex; flex-direction: column; border: 1px solid var(--ab-line); position: relative; transition: border-color 120ms; }
.card:hover { border-color: var(--ab-line-strong); }
.card:hover .card-cta { color: var(--ab-emerald); }
.card.selected { border-color: var(--ab-emerald-line); }
.card-img {
  position: relative; aspect-ratio: 16 / 11;
  background-size: cover; background-position: center;
  background-color: var(--ab-bg-3); overflow: hidden;
}
.card-img .ph {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, transparent 8px 16px), var(--ab-bg-3);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ab-text-muted); text-transform: uppercase;
}
.img-tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.img-tr { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.img-bl { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 6px; }
.badge {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 7px;
  background: rgba(11,15,18,0.78); color: var(--ab-text);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge.new { color: var(--ab-emerald); border-color: var(--ab-emerald-line); background: rgba(11,15,18,0.85); }
.badge.verified { color: var(--ab-emerald); }
.badge.hot { color: var(--ab-amber); border-color: rgba(201,160,99,0.4); }
.badge.mtr { color: #c0a9da; border-color: rgba(192,169,218,0.4); }

/* Card select checkbox */
.card-check {
  z-index: 5;
  width: 30px; height: 30px;
  background: rgba(11,15,18,0.78); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid; place-items: center;
  cursor: pointer; color: transparent; transition: all 100ms;
}
.card-check:hover { border-color: var(--ab-emerald); }
.card-check.on { background: var(--ab-emerald); border-color: var(--ab-emerald); color: #0b0f12; }
.compare-label.at-limit { color: var(--ab-amber); }

.heart-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(11,15,18,0.78);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ab-text-dim); cursor: pointer;
  backdrop-filter: blur(6px);
}
.heart-btn:hover { color: var(--ab-amber); }
.heart-btn.faved { color: var(--ab-amber); }
.heart-btn.faved svg { fill: var(--ab-amber); }

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ab-text-muted); letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.card-eyebrow .sep { color: var(--ab-line-strong); }
.card-addr { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ab-text); line-height: 1.3; }
.card-addr small { display: block; color: var(--ab-text-muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.card-stats { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ab-text-dim); }
.card-stats b { color: var(--ab-text); font-weight: 600; }

.card-econ {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0;
  margin-top: 4px; border-top: 1px solid var(--ab-line); border-bottom: 1px solid var(--ab-line);
}
.econ { padding: 10px 0; border-right: 1px solid var(--ab-line); }
.econ:last-child { border-right: none; }
.econ .lbl { font-family: var(--font-mono); font-size: 9.5px; color: var(--ab-text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.econ .val { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; line-height: 1; }
.econ .val.coc { color: var(--ab-emerald); }
.econ .val .u { font-size: 10.5px; color: var(--ab-text-muted); font-family: var(--font-mono); font-weight: 400; margin-left: 1px; }

.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card-cta { font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-dim); letter-spacing: 0.12em; text-transform: uppercase; transition: color 120ms; }
.card-tags { display: flex; gap: 6px; }
.micro-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ab-text-muted); padding: 2px 6px; border: 1px solid var(--ab-line); }

/* ---------- List view ---------- */
.list { padding: 0 32px 40px; display: none; }
.list.show { display: block; }
.ltable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ltable thead th {
  text-align: left; font-family: var(--font-mono); font-size: 10px;
  color: var(--ab-text-muted); letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; padding: 14px 12px;
  border-bottom: 1px solid var(--ab-line); background: rgba(255,255,255,0.012);
}
.ltable thead th.r { text-align: right; }
.ltable tbody tr { border-bottom: 1px solid var(--ab-line); cursor: pointer; }
.ltable tbody tr:hover { background: rgba(47,185,138,0.025); }
.ltable tbody tr.selected { background: rgba(47,185,138,0.04); }
.ltable tbody td { padding: 14px 12px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.ltable .thumb { width: 56px; height: 42px; background-size: cover; background-position: center; background-color: var(--ab-bg-3); position: relative; }
.ltable .thumb .ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 6px, transparent 6px 12px), var(--ab-bg-3); }
.ltable .addr { font-weight: 500; color: var(--ab-text); }
.ltable .addr small { display: block; color: var(--ab-text-muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.ltable .num { font-family: var(--font-mono); font-size: 12.5px; }
.ltable .num.coc { color: var(--ab-emerald); font-weight: 600; }
.ltable .num.dim { color: var(--ab-text-dim); }
.ltable .r { text-align: right; }
.ltable .stat-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--ab-line); color: var(--ab-text-dim); }
.stat-pill.str { color: var(--ab-emerald); border-color: var(--ab-emerald-line); }
.stat-pill.mtr { color: #c0a9da; border-color: rgba(192,169,218,0.4); }
.stat-pill.review { color: var(--ab-amber); border-color: rgba(201,160,99,0.4); }

/* Row checkbox */
.row-check {
  width: 18px; height: 18px;
  border: 1px solid var(--ab-line-strong); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: transparent;
}
.row-check:hover { border-color: var(--ab-emerald); }
.row-check.on { background: var(--ab-emerald); border-color: var(--ab-emerald); color: #0b0f12; }

/* ---------- Map view ---------- */
.map-view { display: none; border-bottom: 1px solid var(--ab-line); }
.map-view.show { display: grid; grid-template-columns: 1fr 340px; }
.map-container {
  height: 560px; position: relative; overflow: hidden;
  background: var(--ab-bg-2);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(47,185,138,0.03) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(47,185,138,0.02) 0%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100%, 100%, 48px 48px, 48px 48px;
}
.map-bg {
  position: absolute; inset: 0;
  /* Subtle continental shapes via gradients */
  background:
    radial-gradient(ellipse 180px 120px at 55% 35%, rgba(255,255,255,0.02) 0%, transparent 100%),
    radial-gradient(ellipse 120px 80px at 38% 42%, rgba(255,255,255,0.015) 0%, transparent 100%),
    radial-gradient(ellipse 100px 70px at 72% 58%, rgba(255,255,255,0.018) 0%, transparent 100%);
}

.map-cluster { position: absolute; z-index: 2; }
.cluster-ring {
  position: absolute; width: 80px; height: 80px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 1px solid rgba(47,185,138,0.2);
  border-radius: 50%;
  animation: pulse-ring 3s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.1; }
}
.cluster-dot {
  width: 14px; height: 14px;
  background: var(--ab-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47,185,138,0.25), 0 0 20px rgba(47,185,138,0.15);
  position: relative; z-index: 3;
}
.cluster-label {
  position: absolute; left: 22px; top: -6px;
  white-space: nowrap;
  background: rgba(11,15,18,0.88); backdrop-filter: blur(8px);
  border: 1px solid var(--ab-line);
  padding: 6px 12px; z-index: 4;
}
.cluster-name { font-size: 12px; font-weight: 600; color: var(--ab-text); display: block; }
.cluster-count { font-family: var(--font-mono); font-size: 10px; color: var(--ab-emerald); letter-spacing: 0.08em; text-transform: uppercase; }
.cluster-pins { position: absolute; top: 0; left: 0; }
.map-pin {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--ab-emerald);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 100ms, box-shadow 100ms;
}
.map-pin:hover { transform: scale(1.8); box-shadow: 0 0 0 3px rgba(47,185,138,0.35); }

.map-legend {
  position: absolute; top: 16px; left: 16px;
  background: rgba(11,15,18,0.88); backdrop-filter: blur(8px);
  border: 1px solid var(--ab-line); padding: 14px 18px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-muted);
  letter-spacing: 0.06em; z-index: 5;
}
.map-legend-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ab-text); margin-bottom: 8px; letter-spacing: 0; }
.map-legend-dot { display: inline-block; width: 8px; height: 8px; background: var(--ab-emerald); border-radius: 50%; margin-right: 6px; vertical-align: 0; }

.map-toolbar {
  position: absolute; bottom: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 2px; z-index: 5;
}
.map-zoom {
  width: 36px; height: 36px;
  background: rgba(11,15,18,0.88); backdrop-filter: blur(8px);
  border: 1px solid var(--ab-line);
  display: grid; place-items: center;
  color: var(--ab-text-dim); cursor: pointer;
}
.map-zoom:hover { color: var(--ab-text); border-color: var(--ab-line-strong); }

/* Map sidebar */
.map-sidebar { border-left: 1px solid var(--ab-line); display: flex; flex-direction: column; overflow: hidden; }
.map-sidebar-head {
  padding: 16px 18px; border-bottom: 1px solid var(--ab-line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.map-sidebar-title { font-size: 14px; font-weight: 600; }
.map-sidebar-ct { font-family: var(--font-mono); font-size: 10px; color: var(--ab-text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.map-sidebar-list { flex: 1; overflow-y: auto; }
.ms-card {
  padding: 14px 18px; border-bottom: 1px solid var(--ab-line);
  cursor: pointer; transition: background 80ms;
}
.ms-card:hover { background: rgba(47,185,138,0.03); }
.ms-card-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--ab-text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.ms-card-addr { font-size: 13.5px; font-weight: 500; color: var(--ab-text); }
.ms-card-addr small { display: block; color: var(--ab-text-muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.ms-card-metrics { display: flex; gap: 14px; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-dim); }
.ms-card-metrics .coc { color: var(--ab-emerald); font-weight: 600; }

/* ---------- Pagination ---------- */
.pager {
  padding: 24px 32px; display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--ab-line);
  font-family: var(--font-mono); font-size: 11px; color: var(--ab-text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pager .pg { display: flex; gap: 4px; }
.pager .pg button {
  width: 32px; height: 32px; border: 1px solid var(--ab-line);
  background: transparent; color: var(--ab-text-dim);
  font-family: var(--font-mono); font-size: 11px; cursor: pointer;
}
.pager .pg button.active { color: var(--ab-emerald); border-color: var(--ab-emerald-line); background: rgba(47,185,138,0.06); }
.pager .pg button:hover:not(.active) { color: var(--ab-text); }

/* ---------- Compare tray ---------- */
.compare-tray {
  position: fixed; bottom: 0; left: 232px; right: 0;
  background: rgba(11,15,18,0.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--ab-emerald-line);
  padding: 14px 32px;
  transform: translateY(100%);
  transition: transform 200ms ease;
  z-index: 40;
}
.compare-tray.show { transform: translateY(0); }
.compare-inner { display: flex; align-items: center; gap: 20px; }
.compare-left { display: flex; align-items: center; gap: 10px; color: var(--ab-emerald); flex: none; }
.compare-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.compare-slots { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.compare-slot {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--ab-line);
  font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
}
.compare-slot .cs-x { color: var(--ab-text-muted); cursor: pointer; font-size: 14px; }
.compare-slot .cs-x:hover { color: var(--ab-text); }
.compare-actions { display: flex; gap: 8px; flex: none; }
.compare-btn {
  padding: 8px 16px; border: 1px solid var(--ab-line);
  background: transparent; color: var(--ab-text);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; font-weight: 600;
}
.compare-btn:hover { border-color: var(--ab-line-strong); }
.compare-btn.primary { background: var(--ab-emerald); color: #0b0f12; border-color: var(--ab-emerald); }
.compare-btn.primary:hover { background: #38c895; }
.compare-btn.ghost { font-weight: 400; }

/* ---------- Quick view modal ---------- */
.qv-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: none; place-items: center;
}
.qv-overlay.open { display: grid; }
.qv-modal {
  width: 640px; max-height: 80vh;
  background: var(--ab-bg-2);
  border: 1px solid var(--ab-line-strong);
  overflow-y: auto; position: relative;
}
.qv-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 32px; height: 32px;
  background: rgba(11,15,18,0.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: var(--ab-text-dim); cursor: pointer;
}
.qv-close:hover { color: var(--ab-text); }
.qv-img {
  height: 220px;
  background-size: cover; background-position: center; background-color: var(--ab-bg-3);
}
.qv-content { padding: 24px; }
.qv-eyebrow { font-family: var(--font-mono); font-size: 10.5px; color: var(--ab-text-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.qv-title { font-size: 24px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 6px; }
.qv-title em { font-family: "Newsreader", Georgia, serif; font-style: italic; color: var(--ab-emerald); }
.qv-sub { color: var(--ab-text-dim); font-size: 13.5px; margin-bottom: 18px; }
.qv-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ab-line); border-left: 1px solid var(--ab-line);
}
.qv-metric {
  padding: 14px; border-right: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
}
.qv-metric .lbl { font-family: var(--font-mono); font-size: 9.5px; color: var(--ab-text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.qv-metric .val { font-size: 20px; font-weight: 400; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.qv-metric .val.coc { color: var(--ab-emerald); }
.qv-actions { display: flex; gap: 8px; margin-top: 18px; }
.qv-btn {
  flex: 1; height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ab-line); background: transparent;
  color: var(--ab-text); font-size: 12.5px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-display);
}
.qv-btn:hover { border-color: var(--ab-line-strong); }
.qv-btn.primary { background: var(--ab-emerald); color: #0b0f12; border-color: var(--ab-emerald); font-weight: 600; }
.qv-btn.primary:hover { background: #38c895; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .compare-tray { left: 0; }
  .map-view.show { grid-template-columns: 1fr; }
  .map-sidebar { display: none; }
}
