
:root {
  --yellow: #ffdd2d;
  --yellow-hover: #fcc521;
  --yellow-ink: #333333;
  --bg: #f6f7f8;
  --card: #ffffff;
  --card-2: #f6f7f8;
  --chip: #eef0f3;
  --chip-hover: #e4e7eb;
  --text: #333333;
  --text-2: rgba(0, 16, 36, 0.62);
  --text-3: rgba(0, 16, 36, 0.42);
  --line: rgba(0, 16, 36, 0.08);
  --shadow: none;
  --shadow-hover: 0 6px 20px rgba(0, 16, 36, 0.14);
  --shadow-float: 0 1px 4px rgba(0, 16, 36, 0.18);
  --header: rgba(255, 255, 255, 0.86);
  --good: #0ca30c;
  --good-bg: rgba(12, 163, 12, 0.1);
  --warn: #b77700;
  --warn-bg: rgba(250, 178, 25, 0.16);
  --bad: #d03b3b;
  --bad-bg: rgba(208, 59, 59, 0.1);
  --blue: #2a78d6;
  --blue-bg: rgba(42, 120, 214, 0.1);
  --series: #2a78d6;
  --diverge-cheap: #2a78d6;
  --diverge-pricey: #e34948;
  --grid: #e1e0d9;
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10; --card: #1c1c1f; --card-2: #232327; --chip: #2a2a2f; --chip-hover: #34343a;
    --text: #f2f2f3; --text-2: rgba(255, 255, 255, 0.64); --text-3: rgba(255, 255, 255, 0.42);
    --line: rgba(255, 255, 255, 0.09); --header: rgba(20, 20, 22, 0.82);
    --shadow: none;
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.5);
    --good-bg: rgba(12, 163, 12, 0.18); --warn: #fab219; --warn-bg: rgba(250, 178, 25, 0.14);
    --bad: #e66767; --bad-bg: rgba(230, 103, 103, 0.16); --blue: #5598e7; --blue-bg: rgba(57, 135, 229, 0.16);
    --series: #3987e5; --diverge-cheap: #3987e5; --diverge-pricey: #e66767; --grid: #2c2c2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e10; --card: #1c1c1f; --card-2: #232327; --chip: #2a2a2f; --chip-hover: #34343a;
  --text: #f2f2f3; --text-2: rgba(255, 255, 255, 0.64); --text-3: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.09); --header: rgba(20, 20, 22, 0.82);
  --shadow: none;
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.5);
  --good-bg: rgba(12, 163, 12, 0.18); --warn: #fab219; --warn-bg: rgba(250, 178, 25, 0.14);
  --bad: #e66767; --bad-bg: rgba(230, 103, 103, 0.16); --blue: #5598e7; --blue-bg: rgba(57, 135, 229, 0.16);
  --series: #3987e5; --diverge-cheap: #3987e5; --diverge-pricey: #e66767; --grid: #2c2c2a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(30px, 3.4vw, 44px); }
h2 { font-size: clamp(22px, 2.2vw, 28px); }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 14px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }

.header { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; flex-shrink: 0; }
.logo-mark { width: 30px; height: 36px; display: grid; place-items: center; color: var(--text); }
.logo-svg { width: 30px; height: 36px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { background: var(--chip); color: var(--text); }
.nav a.active { color: var(--text); background: var(--chip); }
.nav .count { font-size: 12px; font-weight: 700; background: var(--yellow); color: #333; border-radius: 10px; padding: 0 6px; line-height: 18px; }
.nav .count:empty { display: none; }
.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-sm); border: 0; background: var(--chip); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--chip-hover); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-sun, .theme-moon { display: grid; place-items: center; line-height: 0; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: grid; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: grid; } :root:not([data-theme="light"]) .theme-moon { display: none; } }
@media (max-width: 900px) {
  .header-inner { gap: 10px; }
  .logo-text { display: none; }
  .nav a { padding: 8px; }
  .nav .lbl { display: none; }
  .header-search { max-width: none; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 0; cursor: pointer; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s; }
.btn-primary { background: var(--yellow); color: #333; }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-secondary { background: var(--chip); color: var(--text); }
.btn-secondary:hover { background: var(--chip-hover); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--chip); color: var(--text); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

.input, .select { height: 44px; border-radius: var(--r-sm); border: 2px solid transparent; background: var(--chip); padding: 0 12px; outline: none; width: 100%; min-width: 0; }
.input:focus, .select:focus { border-color: var(--yellow); background: var(--card); }
.search-box { position: relative; }
.search-box .input { padding-left: 40px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-hover); padding: 6px; z-index: 60; display: none; max-height: 420px; overflow: auto; border: 1px solid var(--line); }
.suggest.open { display: block; }
.suggest a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; }
.suggest a:hover, .suggest a.hl { background: var(--chip); }
.suggest .s-kind { min-width: 72px; font-size: 12px; color: var(--text-3); }
.suggest .s-title { font-weight: 600; }
.suggest .s-sub { font-size: 13px; color: var(--text-2); }
.suggest .s-empty { padding: 10px; color: var(--text-2); }

.seg { display: inline-flex; background: var(--chip); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--text-2); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow-float); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 0; background: var(--chip); padding: 7px 12px; border-radius: var(--r-sm); cursor: pointer; font-weight: 500; font-size: 14px; color: var(--text); }
.opt:hover { background: var(--chip-hover); }
.opt.on { background: var(--yellow); color: #333; }
.label { font-size: 13px; color: var(--text-2); font-weight: 500; margin-bottom: 6px; display: block; }
.money { position: relative; }
.money .input { padding-right: 52px; }
.money span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; pointer-events: none; }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600; background: var(--chip); color: var(--text-2); white-space: nowrap; line-height: 1.5; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--blue-bg); color: var(--blue); }
.metro-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--text-3); }

.filterbar { display: flex; gap: 8px; align-items: center; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--card); flex-wrap: wrap; position: relative; z-index: 40; }
.fchip { position: relative; }
.fchip > button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--r-sm); border: 0; background: var(--chip); cursor: pointer; font-weight: 500; font-size: 14.5px; color: var(--text); white-space: nowrap; }
.fchip > button:hover { background: var(--chip-hover); }
.fchip.active > button { background: var(--yellow); color: #333; }
.fchip > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .5; }
.pop { position: absolute; top: calc(100% + 8px); left: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-hover); padding: 16px; width: 320px; display: none; z-index: 70; }
.fchip.open .pop { display: block; }
.pop .sec + .sec { margin-top: 14px; }
.pop .foot { display: flex; justify-content: space-between; margin-top: 16px; gap: 8px; }
.filterbar .sort { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.filterbar .sort .select { height: 38px; width: auto; font-size: 14.5px; }
.filterbar .found { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.reset { border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.explore { display: grid; grid-template-columns: 460px minmax(0, 1fr); height: calc(100vh - 64px - 59px); }
.explore .list { overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); }
.explore .mapwrap { position: relative; }
.explore .map { position: absolute; inset: 0; }
.list-inner { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.view-toggle { display: none; }
@media (max-width: 960px) {
  .explore { grid-template-columns: 1fr; height: calc(100vh - 64px - 59px); }
  .explore .mapwrap { display: none; }
  .explore.show-map .list { display: none; }
  .explore.show-map .mapwrap { display: block; }
  .view-toggle { display: inline-flex; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 45; box-shadow: var(--shadow-hover); }
  .filterbar { padding: 10px 16px; }
  .filterbar .sort { margin-left: 0; }
  .pop { position: fixed; left: 12px; right: 12px; width: auto; top: 120px; }
}

.cx { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; cursor: pointer; position: relative; }
.cx:hover, .cx.hot { border-color: var(--text-3); }
.thumb { position: relative; border-radius: 8px; overflow: hidden; background: var(--chip); aspect-ratio: 1 / 1; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--text-3); }
.cx-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cx-price { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.cx-price { padding-right: 64px; }
.cx-month { font-size: 13.5px; color: var(--text-2); margin-top: -2px; }
.cx-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-meta { font-size: 13.5px; color: var(--text-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cx-meta .dot::before { content: "·"; margin-right: 6px; color: var(--text-3); }
.cx-sig { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cx-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.mini-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.mini-btn:hover { background: var(--chip); color: var(--text); }
.mini-btn svg { width: 18px; height: 18px; }
.mini-btn.on { color: #e34948; }
.mini-btn.on svg { fill: #e34948; }
.mini-btn.cmp.on { color: var(--text); background: var(--yellow); }
.mini-btn.cmp.on svg { fill: none; }

.empty { padding: 40px 24px; text-align: center; color: var(--text-2); }
.empty b { color: var(--text); display: block; font-size: 17px; margin-bottom: 6px; }
.relax { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; align-items: center; }
.more { margin: 4px 12px 20px; }

.map-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--card); padding: 8px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow-hover); font-size: 14px; z-index: 5; display: none; }
.map-hint.show { display: block; }
.work-marker { width: 30px; height: 30px; border-radius: 50%; background: #333; color: var(--yellow); display: grid; place-items: center; font-size: 15px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: grab; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-2); padding: 24px; }
.map3d-popup { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-hover); width: 260px; transform: translate(-50%, calc(-100% - 18px)); position: relative; overflow: hidden; }
.map3d-popup-close { position: absolute; right: 6px; top: 6px; z-index: 2; border: 0; background: rgba(0,0,0,.45); color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.pop-card .pc-img { aspect-ratio: 16 / 9; background: var(--chip); position: relative; }
.pop-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pop-card .pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.maplibregl-popup-content { padding: 0; border-radius: var(--r-md); overflow: hidden; background: var(--card); color: var(--text); }
.maplibregl-popup-tip { border-top-color: var(--card) !important; }

.page { padding-top: 28px; padding-bottom: 56px; }
.page h1 { font-size: clamp(26px, 3vw, 36px); }
.lead { color: var(--text-2); margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.section { margin-top: 28px; }
.section > h2 { font-size: 21px; margin-bottom: 12px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 380px; }
.gallery a, .gallery div { position: relative; background: var(--chip); overflow: hidden; border-radius: var(--r-lg); }
.gallery a:first-child { grid-row: span 2; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 240px; } .gallery a:not(:first-child) { display: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "head side" "body side"; gap: 0 24px; margin-top: 20px; align-items: start; }
.hero-head { grid-area: head; }
.hero-body { grid-area: body; }
.hero .side { grid-area: side; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; grid-template-areas: "head" "side" "body"; } .hero .side { position: static; margin-top: 18px; } }
.hero h1 { margin-bottom: 6px; }
.hero .sub { color: var(--text-2); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts .fact { padding: 14px 16px; border-right: 1px solid var(--line); }
.facts .fact:last-child { border-right: 0; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } .facts .fact { border-bottom: 1px solid var(--line); } }
.fact .k { font-size: 13px; color: var(--text-2); }
.fact .v { font-weight: 700; font-size: 18px; }
.fact .v small { font-weight: 500; font-size: 13px; color: var(--text-2); display: block; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; }
.side .price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.side .monthly { color: var(--text-2); }
.side .knobs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 13px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); }

details.fold { border-top: 1px solid var(--line); }
details.fold:last-of-type { border-bottom: 1px solid var(--line); }
details.fold > summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font-weight: 400; font-size: 24px; color: var(--text-3); }
details.fold[open] > summary::after { content: "−"; }
details.fold > summary .hint { font-weight: 500; font-size: 14px; color: var(--text-2); margin-left: auto; margin-right: 16px; }
details.fold > .body { padding-bottom: 20px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.kv span:first-child { color: var(--text-2); }
.kv b { font-weight: 600; text-align: right; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.strip figure { margin: 0; flex: 0 0 180px; }
.strip img { width: 180px; height: 120px; object-fit: cover; border-radius: var(--r-md); background: var(--chip); }
.strip figcaption { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.minimap { height: 320px; border-radius: var(--r-md); overflow: hidden; position: relative; border: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px; }

.pick-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.pick-form .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .pick-form { grid-template-columns: 1fr; } }
.pick-map { height: 240px; border-radius: var(--r-md); overflow: hidden; position: relative; border: 1px solid var(--line); }
.versus { display: grid; grid-template-columns: 150px repeat(var(--n, 3), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.versus > div { padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.versus .rowlabel { color: var(--text-2); font-size: 14px; }
.versus .head { padding: 0; }
.versus .head a { display: block; }
.versus .head .img { aspect-ratio: 16 / 10; background: var(--chip); position: relative; }
.versus .head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.versus .head .t { padding: 10px 14px; font-weight: 700; }
.versus .head .t small { display: block; font-weight: 500; color: var(--text-2); font-size: 13px; }
.versus .best { background: var(--good-bg); color: var(--good); font-weight: 700; }
.versus .place { position: absolute; top: 8px; left: 8px; background: var(--yellow); color: #333; font-weight: 800; border-radius: 6px; padding: 0 8px; }
@media (max-width: 760px) { .versus { grid-template-columns: 110px repeat(var(--n, 3), minmax(140px, 1fr)); overflow-x: auto; } }

.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 180px 1fr 90px; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 10px; background: var(--chip); border-radius: 5px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--series); border-radius: 5px; }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.kpi .k { color: var(--text-2); font-size: 14px; }

.footer { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--text-3); font-size: 13px; }
.footer a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #333; color: #fff; padding: 10px 16px; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast a { color: var(--yellow); text-decoration: underline; }
.loading { opacity: .55; transition: opacity .15s; }
.nav svg { width: 18px; height: 18px; }
.btn.on[data-fav] { background: var(--chip); color: #e34948; }
.btn.on[data-cmp] { background: var(--yellow); color: #333; }
.hero-head, .hero-body { min-width: 0; }
.table-wrap { overflow-x: auto; }
.cx-meta.place { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cx-meta.place .metro-dot { margin-right: 5px; vertical-align: 1px; }
.seg button { white-space: nowrap; }
.pop { width: 340px; }
@media (max-width: 640px) { .table .opt-col { display: none; } }

.metros { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.metro { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.metro .metro-dot { margin: 0; }
.metro .walk { color: var(--text-3); }
.act { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text); }
.act svg { width: 18px; height: 18px; }
.act:hover { border-color: var(--text-3); }
.act.fav.on { color: #e34948; border-color: rgba(227,73,72,.4); background: rgba(227,73,72,.06); }
.act.fav.on svg { fill: #e34948; }
.act.cmp.on { border-color: var(--text); }
.act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay .big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.pay .rowline { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.pay .rowline b { color: var(--text); font-weight: 600; }
.slider { width: 100%; }
.pay hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.range2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt[disabled], .chk.dis { opacity: .35; pointer-events: none; }
.pick-list { max-height: 260px; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.chk:hover { background: var(--chip); }
.chk input { accent-color: #ffdd2d; width: 16px; height: 16px; }
.chk .n { margin-left: auto; color: var(--text-3); font-size: 13px; }
.geo { position: relative; }
.geo .suggest { top: calc(100% + 4px); }
.heat-old { display: flex; gap: 6px; align-items: center; position: absolute; left: 12px; top: 12px; z-index: 5; background: var(--card); padding: 6px; border-radius: var(--r-sm); box-shadow: var(--shadow-hover); flex-wrap: wrap; max-width: calc(100% - 80px); }
.heat .label { margin: 0 4px 0 6px; }
.heat .opt { padding: 5px 10px; font-size: 13px; }
.legend { position: absolute; left: 12px; bottom: 12px; z-index: 5; background: var(--card); padding: 8px 12px; border-radius: var(--r-sm); box-shadow: var(--shadow-hover); font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.legend .grad { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #d03b3b, #f2b233, #2fae5a); }
.rank-pin { width: 26px; height: 26px; border-radius: 50%; background: #ffdd2d; color: #333; font-weight: 800; font-size: 13px; display: grid; place-items: center; border: 2px solid #333; box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; }
.know { margin-top: 10px; background: var(--card-2); border: 1px dashed var(--text-3); border-radius: var(--r-lg); padding: 14px; display: grid; grid-template-columns: 150px repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px 14px; }
.know h4 { font-size: 14px; color: var(--text-2); font-weight: 600; }
@media (max-width: 760px) { .know { grid-template-columns: 1fr; } }
.know .col { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.versus .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.versus .acts .act { height: 34px; padding: 0 10px; font-size: 13px; }
.more-rows { grid-column: 1 / -1; padding: 0 !important; border-bottom: 0 !important; }
.more-rows > summary { padding: 12px 14px; cursor: pointer; font-weight: 600; list-style: none; color: var(--text-2); }
.more-rows .versus { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.dev-hero { display: flex; gap: 18px; align-items: center; }
.dev-logo { width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--yellow); color: #333; display: grid; place-items: center; font-weight: 800; font-size: 28px; flex-shrink: 0; }
.devlink { text-decoration: underline; text-underline-offset: 3px; }
.versus .head .img { aspect-ratio: auto; height: 190px; }
.over { font-size: 12px; font-weight: 600; color: var(--warn); margin-left: 6px; }
.mline { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--text-3); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; flex-shrink: 0; text-shadow: 0 0 2px rgba(0,0,0,.55); }
.mline.two { font-size: 9px; letter-spacing: -0.4px; }
.metro { gap: 5px; }
input[type=range].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; }
input[type=range].slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--chip-hover); border: 0; }
input[type=range].slider::-moz-range-track { height: 6px; border-radius: 3px; background: var(--chip-hover); border: 0; }
input[type=range].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); margin-top: -8px; cursor: pointer; }
input[type=range].slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.thumb .rank { position: absolute; top: 6px; left: 6px; z-index: 2; }
.rank-pin.sm { width: 24px; height: 24px; font-size: 12px; }
.layers { position: absolute; left: 12px; top: 12px; z-index: 6; }
.layers > button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow-hover); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.layers > button svg { width: 20px; height: 20px; }
.layers.on > button { background: var(--yellow); color: #333; }
.layers .menu { position: absolute; left: 0; top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-hover); padding: 6px; width: 220px; display: none; }
.layers.open .menu { display: block; }
.layers .menu .t { font-size: 12px; color: var(--text-3); padding: 6px 10px 4px; }
.layers .menu button { display: flex; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text); gap: 8px; align-items: center; }
.layers .menu button:hover { background: var(--chip); }
.layers .menu button.on { font-weight: 700; }
.layers .menu button.on::after { content: "✓"; margin-left: auto; }
.versus .head .sig { padding: 0 14px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.versus .x { display: none; }
.versus.expanded .x { display: block; }
.vs-more { margin-top: 10px; }
.q { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.q:first-child { border-top: 0; padding-top: 0; }
.q > .ql { font-weight: 600; padding-top: 8px; }
.q > .ql small { display: block; font-weight: 400; color: var(--text-3); font-size: 13px; margin-top: 2px; }
@media (max-width: 760px) { .q { grid-template-columns: 1fr; gap: 8px; } .q > .ql { padding-top: 0; } }
.cl { border-radius: 50%; background: rgba(42,120,214,.92); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.halo { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #ffdd2d; box-shadow: 0 0 0 3px rgba(255,221,45,.35); pointer-events: none; }
.mapwrap .map, .minimap, .pick-map { background: var(--card-2); }
.mlines { display: inline-flex; gap: 2px; }
input[type=range].slider::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--yellow) 0, var(--yellow) var(--p, 0%), var(--chip-hover) var(--p, 0%)); }
input[type=range].slider::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--yellow); }
.clear-x { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 14px; }
.clear-x:hover { color: var(--bad); }
.clear-x.armed { color: var(--bad); font-weight: 600; }
body[data-page="map"] { overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
body[data-page="map"] > main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body[data-page="map"] .explore { flex: 1; min-height: 0; height: auto; }
body[data-page="map"] .list { overscroll-behavior: contain; }
.mapwrap { overscroll-behavior: contain; touch-action: none; }
.map-tip { transform: translate(-50%, calc(-100% - 14px)); background: var(--card); color: var(--text); border-radius: 10px; box-shadow: var(--shadow-hover); padding: 6px 10px; font-size: 13px; white-space: nowrap; display: flex; flex-direction: column; pointer-events: none; }
.map-tip span { color: var(--text-2); font-size: 12px; }
.pop-list { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.pop-list b { margin-bottom: 6px; padding-right: 24px; }
.pop-list a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.pop-list a:hover { background: var(--chip); }
.pop-list small { color: var(--text-2); white-space: nowrap; }
.poi-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.poi-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.poi-ic { display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); flex-shrink: 0; }
.poi-ic svg { width: 62%; height: 62%; }
.poi-ic.here { background: #ffdd2d; color: #333; font-size: 10px; font-weight: 800; border-color: #333; }
.mapwrap, .minimap, .pick-map { position: relative; isolation: isolate; overflow: hidden; z-index: 0; }
.filterbar { z-index: 40; }
.header { z-index: 50; }
@media (max-width: 960px) { .explore .list { padding-bottom: 72px; } }
.map-tip { z-index: 1; }
.versus .head { position: relative; }
.why-btn { position: absolute; top: 8px; right: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: #333; font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.why-btn:hover { background: var(--yellow); }
.why-pop { display: none; position: absolute; top: 46px; right: 8px; left: 8px; z-index: 4; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-hover); padding: 10px 12px; font-size: 13.5px; }
.why-pop.open { display: block; }
.why { padding: 4px 0 4px 18px; position: relative; line-height: 1.35; }
.why::before { position: absolute; left: 0; font-weight: 800; }
.why.good::before { content: "+"; color: var(--good); }
.why.warn::before { content: "−"; color: var(--warn); }
.why.info { color: var(--text-2); padding-left: 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 8px; }
.dev-logo.img { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 0; }
.dev-logo.img img { width: 100%; height: 100%; object-fit: contain; }
.s-logo { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart { padding: 16px 18px; min-width: 0; }
.chart.wide { grid-column: 1 / -1; }
.chart h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.an-h { font-size: 21px; margin: 28px 0 12px; }
.kpis { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) { .charts { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, 1fr); } }
.ltag { display: inline-block; color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.table.legal td { vertical-align: top; }
