:root {
  --bg: #ffffff;
  --soft: #f7f7f7;
  --soft-2: #f2f1ee;
  --line: #ebebeb;
  --line-2: #dddddd;
  --ink: #222222;
  --ink-2: #484848;
  --ink-3: #717171;
  --ink-4: #b0b0b0;
  --coral: #ff385c;
  --coral-deep: #e31c5f;
  --coral-grad: linear-gradient(90deg, #e61e4d 0%, #e31c5f 50%, #d70466 100%);
  --coral-soft: #fff1f3;
  --teal: #00a699;
  --teal-soft: #e6f6f4;
  --blue: #428bff;
  --amber: #e07912;
  --amber-soft: #fff4e6;
  --r-card: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 8px 28px rgba(0, 0, 0, 0.18);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --t-gelado: #4aa8f0; --t-frio: #22b8b0; --t-justo: #9a958b; --t-quente: #f59e0b; --t-fervendo: #e5383b;
  --t-grad: linear-gradient(90deg, #2563eb, #22b8cf, #94d82d, #ffd43b, #ff922b, #e03131);
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --top-h: 80px;
  --cats-h: 78px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- topbar ---------- */
.topbar {
  height: var(--top-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 40px; border-bottom: 1px solid var(--line); position: relative; z-index: 20; background: var(--bg);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; justify-self: start; }
.logo img { width: 34px; height: 34px; transition: transform .5s var(--spring); }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo span {
  font-weight: 800; font-size: 22px; letter-spacing: -0.04em;
  background: var(--coral-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.search-pill {
  position: relative; display: flex; align-items: center; height: 56px; padding: 0 8px 0 0;
  border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, .06);
  background: var(--bg); transition: box-shadow .25s var(--ease);
}
.search-pill:hover { box-shadow: var(--shadow-2); }
.sp-seg { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; height: 100%; border-radius: 999px; transition: background .2s; cursor: pointer; }
.sp-seg:hover { background: var(--soft); }
.sp-seg:focus-within { background: var(--bg); box-shadow: var(--shadow-2); }
.sp-label { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.sp-seg input { border: 0; outline: none; background: none; padding: 0; font-size: 13.5px; color: var(--ink); width: 100%; }
.sp-seg input::placeholder { color: var(--ink-3); }
.sp-addr { width: 250px; }
.sp-area { width: 120px; }
.sp-kind { cursor: default; padding-right: 14px; }
.sp-div { width: 1px; height: 30px; background: var(--line-2); flex: none; }
.sp-toggle { display: flex; gap: 2px; margin-top: 1px; }
.sp-toggle button { font-size: 13px; color: var(--ink-3); padding: 0 6px 0 0; transition: color .2s; }
.sp-toggle button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.sp-toggle button + button { border-left: 1px solid var(--line-2); padding-left: 6px; }
.sp-go {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--coral-grad); flex: none; transition: transform .2s var(--ease), filter .2s;
}
.sp-go:hover { transform: scale(1.05); filter: saturate(1.15); }
.sp-results {
  position: absolute; top: calc(100% + 10px); left: 0; width: 420px; background: var(--bg); border-radius: 24px;
  box-shadow: var(--shadow-3); padding: 12px; z-index: 30;
}
.sp-results button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; }
.sp-results button:hover, .sp-results button.active { background: var(--soft); }
.sp-results .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft-2); display: grid; place-items: center; flex: none; }
.sp-results .ico img { width: 28px; height: 28px; }
.sp-results .sub { font-size: 12px; color: var(--ink-3); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.top-link { font-size: 14px; font-weight: 600; text-decoration: none; padding: 11px 14px; border-radius: 999px; transition: background .2s; }
.top-link:hover { background: var(--soft); }
.top-orb { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: box-shadow .2s; }
.top-orb:hover { box-shadow: var(--shadow-2); }
.top-orb img { transition: transform .5s var(--spring); }
.top-orb:hover img { transform: rotate(18deg) scale(1.12); }
.mode-badge { font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 5px 10px; border-radius: 999px; }

/* ---------- categorias ---------- */
.cats {
  height: var(--cats-h); display: flex; gap: 36px; padding: 0 40px; align-items: stretch; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); position: relative; z-index: 10; box-shadow: 0 1px 0 var(--line);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: none;
  color: var(--ink-3); font-size: 12px; font-weight: 600; position: relative; padding: 4px 0 0; opacity: .72;
  transition: opacity .2s, color .2s;
}
.cat img { width: 30px; height: 30px; transition: transform .45s var(--spring); filter: saturate(.85); }
.cat:hover { opacity: 1; color: var(--ink); }
.cat:hover img { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); border-radius: 2px; }
.cat:hover::after { transform: scaleX(1); background: var(--line-2); }
.cat[aria-selected="true"] { opacity: 1; color: var(--ink); }
.cat[aria-selected="true"]::after { transform: scaleX(1); background: var(--ink); }
.cat[aria-selected="true"] img { filter: none; animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18) rotate(-6deg); } 100% { transform: scale(1); } }

/* ---------- shell ---------- */
.shell {
  height: calc(100vh - var(--top-h) - var(--cats-h)); display: grid; grid-template-columns: minmax(0, 55%) minmax(0, 45%);
}
.list-pane { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.view { padding: 28px 40px 56px; max-width: 880px; }
.view.entering > * { animation: rise .6s var(--ease) both; }
.view.entering > *:nth-child(2) { animation-delay: .05s; }
.view.entering > *:nth-child(3) { animation-delay: .1s; }
.view.entering > *:nth-child(4) { animation-delay: .15s; }
.view.entering > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.map-pane { position: relative; padding: 0 24px 24px 0; }
#map { position: absolute; top: 0; left: 0; right: 24px; bottom: 24px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-1); }
.map-float { position: absolute; z-index: 3; display: flex; gap: 8px; }
.map-float-top { top: 16px; left: 16px; }
.map-float-bottom { bottom: 62px; left: 16px; right: 40px; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.map-float-bottom > * { pointer-events: auto; }
.layer-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-toggle {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-3); box-shadow: var(--shadow-1); transition: all .2s var(--ease);
}
.chip-toggle:hover { border-color: var(--ink); color: var(--ink); }
.chip-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.legend { background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-2); width: 220px; backdrop-filter: blur(8px); }
.legend-title { font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.legend-bar { height: 8px; border-radius: 4px; background: var(--t-grad); }
.legend-scale { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.home-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 999px; padding: 9px 16px 9px 10px;
  font-weight: 700; font-size: 13px; box-shadow: var(--shadow-2); transition: transform .2s var(--ease), box-shadow .2s;
}
.home-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); }
.pick-banner {
  display: none; position: absolute; z-index: 5; top: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600; gap: 10px; align-items: center; box-shadow: var(--shadow-3);
}
.pick-banner button { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; opacity: .8; }
body.picking .pick-banner { display: flex; }
body.picking #map { cursor: crosshair; }
.map-toggle { display: none; }

/* maplibre */
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--shadow-2) !important; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-popup-content { border-radius: 16px !important; padding: 16px !important; box-shadow: var(--shadow-3) !important; font-family: var(--sans); min-width: 260px; }
.maplibregl-popup-close-button { font-size: 20px; right: 8px; top: 6px; color: var(--ink-3); }
.maplibregl-popup-tip { display: none; }

/* marcadores HTML */
.price-pin {
  position: relative; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; letter-spacing: -0.01em;
  padding: 6px 10px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .18);
  white-space: nowrap; cursor: pointer; transition: transform .25s var(--spring), background .2s, color .2s; font-variant-numeric: tabular-nums;
  animation: pinIn .5s var(--spring) both;
}
.price-pin:hover { transform: scale(1.08); z-index: 2; }
.price-pin.active { background: var(--ink); color: #fff; transform: scale(1.12); }
.price-pin.sus { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--coral); }
.price-pin .off {
  position: absolute; top: -15px; right: -14px; background: var(--coral-grad); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(227, 28, 95, .4);
}
@keyframes pinIn { from { opacity: 0; transform: translateY(8px) scale(.8); } to { opacity: 1; transform: none; } }
.home-pin { position: relative; width: 64px; height: 64px; display: grid; place-items: center; pointer-events: none; }
.home-pin img { width: 52px; height: 52px; position: relative; z-index: 2; animation: float 2.8s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.home-pin::before, .home-pin::after {
  content: ""; position: absolute; left: 50%; top: 78%; width: 30px; height: 12px; margin-left: -15px; border-radius: 50%;
  border: 2px solid var(--coral); animation: ring 2.4s ease-out infinite;
}
.home-pin::after { animation-delay: 1.2s; }
.home-pin .tag {
  position: absolute; z-index: 3; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- tipografia ---------- */
.eyebrow { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin: 6px 0 10px; text-wrap: balance; }
.h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.lead { color: var(--ink-3); font-size: 15px; margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.hl-coral { color: var(--coral-deep); }
.hl-teal { color: var(--teal); }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head .h2 { display: flex; align-items: center; gap: 10px; }
.section-head .h2 img { width: 30px; height: 30px; }
.divider { height: 1px; background: var(--line); margin: 36px 0; border: 0; }

/* ---------- blocos ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-1); }
.card-flat { background: var(--soft); border-radius: var(--r-card); padding: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.stat-label { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.icon-3d { transition: transform .45s var(--spring); }
.icon-3d.float { animation: float 3.2s ease-in-out infinite; }
*:hover > .icon-3d.tilt { transform: rotate(-8deg) scale(1.1) translateY(-2px); }

/* hero / veredito */
.hero {
  position: relative; border-radius: 24px; padding: 28px; overflow: hidden;
  background: radial-gradient(120% 100% at 100% 0%, #fff1f3 0%, #ffffff 55%); border: 1px solid #ffe0e6;
}
.hero.lvl-justo, .hero.lvl-barato { background: radial-gradient(120% 100% at 100% 0%, #e6f6f4 0%, #fff 55%); border-color: #cdeee9; }
.hero-icon { position: absolute; right: 22px; top: 22px; width: 92px; height: 92px; animation: float 3.4s ease-in-out infinite; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .15)); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; letter-spacing: .01em; }
.badge.coral { background: var(--coral-grad); color: #fff; }
.badge.teal { background: var(--teal); color: #fff; }
.badge.soft { background: var(--soft); color: var(--ink-2); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.verdict-title { font-size: 40px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 14px 0 12px; max-width: 78%; text-wrap: balance; }
.verdict-text { color: var(--ink-2); font-size: 15px; max-width: 82%; margin: 0; text-wrap: pretty; }
.hero-stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.hero-stat .k { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.hero-stat .v { font-size: 24px; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.is-loading .hero, .is-loading .chart-card { opacity: .6; transition: opacity .2s; }

/* prédio escolhido */
.bld-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.bld-row > img { width: 44px; height: 44px; }
.bld-row .t { font-weight: 700; font-size: 14.5px; }
.bld-row .s { font-size: 12.5px; color: var(--ink-3); }
.link-btn { font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.inline-search { position: relative; margin-top: 10px; }
.inline-search input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 13px 14px; outline: none; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.inline-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.inline-results { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-3); padding: 8px; }
.inline-results button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.inline-results button:hover { background: var(--soft); }
.inline-results .sub { font-size: 12px; color: var(--ink-3); }

/* formulário */
.form-card { padding: 4px 22px; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow-label { font-size: 15px; font-weight: 600; }
.frow-sub { font-size: 12.5px; color: var(--ink-3); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink-4); color: var(--ink-2); font-size: 18px; line-height: 1;
  display: grid; place-items: center; transition: border-color .2s, color .2s;
}
.stepper button:hover { border-color: var(--ink); color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper .num { min-width: 34px; text-align: center; font-size: 15px; font-weight: 600; }
.money { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 12px; width: 150px; transition: border-color .2s, box-shadow .2s; }
.money:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.money span { color: var(--ink-3); font-size: 13px; }
.money input { border: 0; outline: none; width: 100%; font-weight: 700; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.money.bad { border-color: #ffb3c1; background: var(--coral-soft); }
.range-wrap { flex: 1; max-width: 260px; display: flex; align-items: center; gap: 12px; }
.range-wrap .num { font-weight: 700; min-width: 56px; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) 0 var(--p), var(--line-2) var(--p) 100%); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; margin-top: -10px; background: #fff;
  border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .15s var(--ease);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.conds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 16px 0 20px; }
.cond {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  text-align: left; font-weight: 600; font-size: 13.5px; transition: border-color .2s, box-shadow .2s, background .2s; user-select: none;
}
.cond img { width: 34px; height: 34px; transition: transform .45s var(--spring); }
.cond:hover { border-color: var(--ink); }
.cond:hover img { transform: rotate(-8deg) scale(1.1); }
.cond.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--soft); }
.cond.on img { animation: pop .5s var(--spring); }
.cond .pct { font-size: 11.5px; color: var(--coral-deep); font-weight: 700; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: all .25s var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "›"; transform: rotate(90deg); transition: transform .25s; font-size: 18px; color: var(--ink-3); }
details.more[open] summary::after { transform: rotate(-90deg); }
input[type="date"], .select { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 12px; outline: none; background: #fff; }

/* gráficos */
.chart-card { padding: 22px; }
.chart-card .h3 + .muted { margin-top: 2px; }
.chart { width: 100%; display: block; overflow: visible; margin-top: 10px; }
.chart text { font-family: var(--sans); fill: var(--ink-3); font-size: 11px; }
.chart .num-label { font-variant-numeric: tabular-nums; font-weight: 600; }
.chart-caption { font-size: 13px; color: var(--ink-3); margin-top: 10px; text-wrap: pretty; }
.chart-caption strong { color: var(--ink); }

/* cartas */
.trumps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.trump {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 18px 18px; background: #fff;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.trump:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.trump img { width: 44px; height: 44px; margin-bottom: 12px; transition: transform .45s var(--spring); }
.trump:hover img { transform: rotate(-8deg) scale(1.1); }
.trump-title { font-weight: 800; font-size: 15px; letter-spacing: -0.015em; }
.trump-text { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; text-wrap: pretty; }
.counter {
  display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 20px; color: #fff; background: var(--ink); position: relative; overflow: hidden;
}
.counter img { width: 64px; height: 64px; animation: float 3s ease-in-out infinite; }
.counter .k { font-size: 12.5px; font-weight: 600; opacity: .7; }
.counter .v { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.counter .why { font-size: 13px; opacity: .8; margin-top: 2px; }
.counter::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 56, 92, .45), transparent 70%); }

/* anúncios */
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; background: #fff;
  transition: border-color .2s, background .2s;
}
.fchip:hover { border-color: var(--ink); }
.fchip.on { border-color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); }
.fchip select, .fchip input { border: 0; outline: none; background: none; font-weight: 700; font-size: 13px; padding: 0; }
.fchip input { width: 66px; }
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; margin-top: 24px; }
.lcard { text-align: left; display: block; cursor: pointer; }
.lphoto { position: relative; aspect-ratio: 20 / 19; border-radius: 14px; overflow: hidden; background: var(--soft-2); }
.lphoto .slides { display: flex; height: 100%; transition: transform .45s var(--ease); }
.lphoto .slides > * { flex: none; width: 100%; height: 100%; object-fit: cover; }
.lphoto .ph { display: grid; place-items: center; background: linear-gradient(160deg, #f6f3ee, #ece7df); }
.lphoto .ph img { width: 42%; height: auto; opacity: .95; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .14)); transition: transform .6s var(--spring); }
.lcard:hover .lphoto .ph img { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
.lphoto .nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; box-shadow: var(--shadow-1); opacity: 0; transition: opacity .2s; font-size: 16px;
}
.lphoto .nav.prev { left: 10px; }
.lphoto .nav.next { right: 10px; }
.lcard:hover .lphoto .nav { opacity: 1; }
.lphoto .dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.lphoto .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.lphoto .dots i.on { background: #fff; }
.heart { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; transition: transform .25s var(--spring); }
.heart:hover { transform: scale(1.12); }
.heart svg path { fill: rgba(0, 0, 0, .5); stroke: #fff; stroke-width: 2; transition: fill .2s; }
.heart.on svg path { fill: var(--coral); }
.heart.on { animation: pop .45s var(--spring); }
.lbadge {
  position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800;
  box-shadow: var(--shadow-1); display: flex; align-items: center; gap: 5px;
}
.lbadge.sus { background: var(--ink); color: #fff; }
.lbadge img { width: 16px; height: 16px; }
.lmeta { margin-top: 10px; }
.lrow { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ltitle { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lscore { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.lsub { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lprice { margin-top: 4px; font-size: 14.5px; }
.lprice b { font-weight: 800; }
.lprice s { color: var(--ink-3); margin-right: 4px; }
.lcard.active .ltitle { text-decoration: underline; text-underline-offset: 3px; }
.empty { text-align: center; padding: 48px 24px; border-radius: 24px; background: var(--soft); }
.empty img { width: 120px; height: 120px; margin: 0 auto 8px; animation: float 3.4s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .16)); }
.empty .h2 { margin-top: 6px; }
.empty p { color: var(--ink-3); max-width: 420px; margin: 8px auto 0; font-size: 14.5px; }
.empty .row { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  color: #fff; background: var(--coral-grad); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(227, 28, 95, .55); }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { box-shadow: var(--shadow-2); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--soft); box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; text-align: left; }
.step { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow-1); }
.step img { width: 36px; height: 36px; margin-bottom: 8px; }
.step b { display: block; font-size: 14px; }
.step span { font-size: 12.5px; color: var(--ink-3); }

/* prédios-alvo */
.targets { display: grid; gap: 14px; }
.target {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease); cursor: pointer; background: #fff;
}
.target:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.target-ico { width: 76px; height: 76px; border-radius: 14px; background: linear-gradient(160deg, #f6f3ee, #ece7df); display: grid; place-items: center; }
.target-ico img { width: 48px; height: 48px; transition: transform .45s var(--spring); }
.target:hover .target-ico img { transform: rotate(-8deg) scale(1.1); }
.target-name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.target-why { color: var(--ink-3); font-size: 13px; margin-top: 2px; text-wrap: pretty; }
.target-links { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.target-links a { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; }
.target-links a:hover { border-color: var(--ink); }
.target-rent { text-align: right; }
.target-rent .v { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.target-rent .k { font-size: 12px; color: var(--ink-3); }
.save { font-size: 12px; font-weight: 800; color: var(--teal); }

/* comparáveis */
.comps { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.comps th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 0 0 10px; }
.comps td { padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.comps .r { text-align: right; font-variant-numeric: tabular-nums; }
.comps tr.same td:first-child { font-weight: 700; }
.comps tr.same .tag { background: var(--coral-soft); color: var(--coral-deep); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.comps .sub { color: var(--ink-3); font-size: 12px; }

/* golpes */
.scam-list { display: grid; gap: 12px; }
.scam { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); }
.scam img { width: 48px; height: 48px; }
.scam b { font-size: 15px; }
.scam p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.checker { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.checker label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; }
.checker input { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 12px; outline: none; font-size: 14px; }
.checker input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.check-result { margin-top: 16px; display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; animation: rise .5s var(--ease) both; }
.check-result img { width: 56px; height: 56px; }
.check-result.ok { background: var(--teal-soft); }
.check-result.warn { background: var(--amber-soft); }
.check-result.bad { background: var(--coral-soft); }

/* conselheiro */
.view-chat { display: flex; flex-direction: column; height: 100%; max-width: 760px; padding-bottom: 0; }
.chat-head { display: flex; align-items: center; gap: 14px; }
.chat-head img { width: 56px; height: 56px; animation: float 3.2s ease-in-out infinite; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 24px 0; min-height: 280px; }
.msg { max-width: 88%; font-size: 15px; line-height: 1.6; animation: rise .4s var(--ease) both; }
.msg.user { align-self: flex-end; background: var(--soft); padding: 11px 16px; border-radius: 20px 20px 6px 20px; }
.msg.ai { align-self: flex-start; display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.msg.ai > img { width: 32px; height: 32px; }
.msg.ai .body p { margin: 0 0 10px; }
.msg.ai .body ul, .msg.ai .body ol { margin: 0 0 10px; padding-left: 20px; }
.msg.ai .body li { margin: 4px 0; }
.msg.ai .body h4 { margin: 14px 0 6px; font-size: 15px; }
.msg.ai .body code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.typing { display: inline-flex; gap: 5px; padding: 8px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.chips button img { width: 20px; height: 20px; }
.chips button:hover { border-color: var(--ink); box-shadow: var(--shadow-1); }
.composer { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 24%); padding: 18px 0 24px; }
.composer form { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line-2); border-radius: 28px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow-2); background: #fff; }
.composer textarea { flex: 1; border: 0; outline: none; resize: none; max-height: 160px; padding: 8px 0; font-size: 15px; line-height: 1.45; }
.send { width: 42px; height: 42px; border-radius: 50%; background: var(--coral-grad); color: #fff; display: grid; place-items: center; flex: none; transition: transform .2s var(--ease); }
.send:hover { transform: scale(1.06); }
.send:disabled { opacity: .35; transform: none; cursor: default; }

/* tooltip e toasts */
.tooltip { position: fixed; z-index: 60; pointer-events: none; background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; box-shadow: var(--shadow-3); max-width: 280px; }
.toast-wrap { position: fixed; z-index: 70; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-3); animation: toastIn .45s var(--spring) both; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.toast img { width: 22px; height: 22px; }
.toast.out { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.cred { padding: 8px 40px 40px; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; max-width: 880px; }
.cred b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cred .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.skel { background: linear-gradient(90deg, var(--soft) 25%, #efefef 37%, var(--soft) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 12px; }
@keyframes sk { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .sp-addr { width: 190px; }
  .sp-area { width: 96px; }
  .top-link { display: none; }
  .view, .cred { padding-left: 28px; padding-right: 28px; }
  .verdict-title { font-size: 34px; }
}
@media (max-width: 900px) {
  :root { --top-h: 72px; --cats-h: 72px; }
  body { overflow: auto; }
  .topbar { grid-template-columns: 1fr; padding: 10px 16px; height: auto; gap: 0; }
  .logo, .top-actions { display: none; }
  .search-pill { height: 52px; width: 100%; }
  .sp-area, .sp-div:nth-of-type(2) { display: none; }
  .sp-addr { flex: 1; width: auto; padding-left: 18px; }
  .sp-kind .sp-label { display: none; }
  .sp-results { width: 100%; }
  .cats { padding: 0 16px; gap: 26px; position: sticky; top: 0; }
  .shell { display: block; height: auto; }
  .list-pane { overflow: visible; }
  .view { padding: 20px 16px 96px; }
  .cred { padding: 0 16px 120px; }
  .map-pane { position: fixed; inset: 0; z-index: 40; padding: 0; display: none; }
  #map { right: 0; bottom: 0; border-radius: 0; }
  body.show-map .map-pane { display: block; }
  body.show-map { overflow: hidden; }
  .map-float-bottom { bottom: 96px; right: 16px; }
  .legend { display: none; }
  .map-toggle {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff; border-radius: 999px; padding: 13px 20px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-3);
    transition: transform .2s var(--ease);
  }
  .map-toggle:active { transform: translateX(-50%) scale(.96); }
  .map-toggle .mt-list { display: none; }
  body.show-map .map-toggle .mt-map { display: none; }
  body.show-map .map-toggle .mt-list { display: inline; }
  .hero { padding: 22px; }
  .hero-icon { width: 46px; height: 46px; right: 16px; top: 16px; }
  .filters-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .filters-bar::-webkit-scrollbar { display: none; }
  .filters-bar > * { flex: none; }
  .verdict-title { font-size: 30px; max-width: 100%; }
  .verdict-text { max-width: 100%; }
  .h1 { font-size: 26px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listings { grid-template-columns: 1fr; }
  .target { grid-template-columns: 56px 1fr; }
  .target-ico { width: 56px; height: 56px; }
  .target-rent { grid-column: 2; text-align: left; }
  .checker { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .money { width: 130px; }
  .frow { flex-wrap: wrap; }
  .range-wrap { max-width: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- v2: cidade, radar, automático ---------- */
.legend-badge { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 2px 8px; border-radius: 999px; margin: -2px 0 7px; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.pills::-webkit-scrollbar { display: none; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 15px 9px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 700; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s;
}
.pill-btn img { width: 22px; height: 22px; transition: transform .45s var(--spring); }
.pill-btn:hover { border-color: var(--ink); }
.pill-btn:hover img { transform: rotate(-8deg) scale(1.1); }
.pill-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-btn[aria-pressed="true"] img { animation: pop .5s var(--spring); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; overflow: hidden; background: #fff; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.kpi:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.kpi img { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; transition: transform .45s var(--spring); }
.kpi:hover img { transform: rotate(-8deg) scale(1.1); }
.kpi .k { font-size: 12px; color: var(--ink-3); font-weight: 600; padding-right: 40px; }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.rank { display: grid; gap: 2px; }
.rank-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(80px, 38%) 96px; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px;
  text-align: left; width: 100%; transition: background .15s;
}
.rank-row:hover, .rank-row.active { background: var(--soft); }
.rank-row .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rank-row .nm { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .bar { height: 8px; border-radius: 4px; background: var(--soft-2); overflow: hidden; }
.rank-row .bar i { display: block; height: 100%; border-radius: 4px; transform-origin: left; animation: grow .7s var(--ease) both; }
.rank-row .val { text-align: right; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes grow { from { transform: scaleX(0); } }
.dist-card { border-radius: 24px; padding: 24px; background: linear-gradient(160deg, #fff 40%, #fafafa); border: 1px solid var(--line); box-shadow: var(--shadow-2); position: relative; animation: rise .5s var(--ease) both; }
.dist-card .close { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 18px; }
.dist-card .close:hover { background: var(--soft-2); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.metric-grid .stat-value { font-size: 18px; }
.mini-list { display: grid; gap: 8px; margin-top: 10px; }
.mini-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-align: left; width: 100%; transition: border-color .2s; }
.mini-item:hover { border-color: var(--ink); }
.mini-item img { width: 32px; height: 32px; }
.mini-item .t { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item .s { font-size: 12px; color: var(--ink-3); }
.mini-item .r { text-align: right; font-weight: 800; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.radar-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) 220px; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; cursor: pointer; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.radar-item + .radar-item { margin-top: 12px; }
.radar-item:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.radar-item .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--soft-2); display: grid; place-items: center; }
.radar-item .ico img { width: 34px; height: 34px; }
.radar-item .t { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radar-item .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.radar-item .nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; }
.radar-item .nums span { white-space: nowrap; }
.radar-item .nums b { font-weight: 800; font-variant-numeric: tabular-nums; }
.stack-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--soft-2); }
.stack-bar i { display: block; height: 100%; animation: grow .7s var(--ease) both; transform-origin: left; }
.manifesto { font-size: 15px; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.method { margin-top: 36px; padding: 18px; border-radius: 16px; background: var(--soft); font-size: 13px; color: var(--ink-2); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.method img { width: 40px; height: 40px; }
.method b { color: var(--ink); }
.select-pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13px; background: #fff; outline: none; }
.select-pill:focus { border-color: var(--ink); }
.more-btn { display: block; margin: 18px auto 0; }

/* painel automático */
.top-orb { position: relative; }
.top-orb .dot { position: absolute; right: 3px; top: 3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: var(--ink-4); }
.top-orb .dot.ok { background: #19b37b; box-shadow: 0 0 0 0 rgba(25, 179, 123, .5); animation: ping 2.4s infinite; }
.top-orb .dot.bad { background: var(--coral); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(25, 179, 123, .45); } 70% { box-shadow: 0 0 0 8px rgba(25, 179, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 179, 123, 0); } }
.auto-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .3s; }
.auto-scrim.open { opacity: 1; pointer-events: auto; }
.auto-panel {
  position: fixed; z-index: 81; top: 12px; right: 12px; bottom: 12px; width: 460px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-3);
  transform: translateX(calc(100% + 24px)); transition: transform .5s var(--ease); display: flex; flex-direction: column; overflow: hidden;
}
.auto-panel.open { transform: none; }
.auto-head { display: flex; gap: 14px; align-items: center; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.auto-head img { width: 52px; height: 52px; animation: float 3.2s ease-in-out infinite; }
.auto-body { flex: 1; overflow-y: auto; padding: 8px 22px 28px; }
.st-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.st-row img { width: 30px; height: 30px; }
.st-row .t { font-weight: 700; font-size: 14px; }
.st-row .s { font-size: 12.5px; color: var(--ink-3); }
.st-badge { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st-badge.ok { background: var(--teal-soft); color: #008a7e; }
.st-badge.warn { background: var(--amber-soft); color: var(--amber); }
.st-badge.off { background: var(--soft); color: var(--ink-3); }
.st-badge.bad { background: var(--coral-soft); color: var(--coral-deep); }
.auto-steps { counter-reset: s; display: grid; gap: 10px; margin-top: 12px; }
.auto-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.auto-step::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.auto-step b { color: var(--ink); }
.path-box { display: flex; align-items: center; gap: 8px; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.path-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.path-box .btn { font-family: var(--sans); }
.drop {
  margin-top: 12px; border: 2px dashed var(--line-2); border-radius: 18px; padding: 22px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; color: var(--ink-3); font-size: 13.5px;
}
.drop img { width: 48px; height: 48px; margin: 0 auto 6px; transition: transform .45s var(--spring); }
.drop:hover, .drop.over { border-color: var(--coral); background: var(--coral-soft); color: var(--ink); }
.drop.over img { transform: translateY(-6px) scale(1.1); }
.drop b { color: var(--ink); }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-row { grid-template-columns: 22px minmax(0, 1fr) 90px; }
  .rank-row .bar { display: none; }
  .radar-item { grid-template-columns: 44px minmax(0, 1fr); }
  .radar-item .ico { width: 44px; height: 44px; }
  .radar-item .tl { grid-column: 1 / -1; }
  .auto-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 90vh; border-radius: 24px 24px 0 0; transform: translateY(105%); }
  .auto-panel.open { transform: none; }
}

/* ---------- v3: fluidez ---------- */
button, .btn, .cat, .pill-btn, .fchip, .chip-toggle, .lcard, .target, .radar-item, .rank-row, .mini-item, .trump, .kpi { -webkit-tap-highlight-color: transparent; }
.btn:active, .pill-btn:active, .fchip:active, .chip-toggle:active, .seg button:active, .stepper button:active, .cond:active, .top-orb:active, .kbd-hint:active, .sp-go:active, .home-btn:active { transform: scale(.96); transition-duration: .08s; }
.lcard:active, .target:active, .radar-item:active, .rank-row:active, .mini-item:active, .alert-hit:active, .pal-item:active { transform: scale(.985); transition: transform .08s; }
.kpi-skel { height: 104px; border-radius: var(--r-card); }
.skel { position: relative; overflow: hidden; background: var(--soft); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.list-pane { view-transition-name: lista; contain: layout paint; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(lista) { animation: vt-out .16s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(lista) { animation: vt-in .24s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.kpi .v, .stat-value, .hero-stat .v, .counter .v { min-height: 1.2em; }

/* topo: busca ⌘K e sino */
.kbd-hint { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: box-shadow .2s, border-color .2s; }
.kbd-hint:hover { box-shadow: var(--shadow-1); border-color: var(--ink); color: var(--ink); }
kbd { font-family: var(--sans); font-size: 11.5px; font-weight: 700; background: var(--soft); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--ink-2); }
.top-orb .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral-grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.top-orb .count.bump { animation: pop .45s var(--spring); }

/* ficha do prédio */
.sheet-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet-scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 71; top: calc(var(--top-h) + var(--cats-h) + 8px); right: 32px; bottom: 32px; width: min(500px, 44vw); background: #fff; border-radius: 24px;
  box-shadow: var(--shadow-3); transform: translateX(calc(100% + 40px)); transition: transform .45s var(--ease); display: flex; flex-direction: column; overflow: hidden; will-change: transform;
}
.sheet.open { transform: none; }
.sheet-grab { display: none; }
.sheet-close { position: absolute; z-index: 2; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); font-size: 20px; display: grid; place-items: center; }
.sheet-close:hover { background: var(--soft-2); }
.sheet-body { flex: 1; overflow-y: auto; padding: 24px 24px 28px; overscroll-behavior: contain; }
.ficha-head { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.ficha-ico { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(160deg, #f6f3ee, #ece7df); display: grid; place-items: center; flex: none; }
.ficha-selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ficha-selos .badge img { width: 16px; height: 16px; }
.ficha-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ficha-kpis .stat { padding: 11px; }
.ficha-kpis .stat-value { font-size: 17px; }
.ficha-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ficha-val { margin-top: 10px; padding: 16px; border-radius: 16px; background: var(--soft); }
.ficha-val-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ficha-val-out { margin: 10px 0 2px; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.ficha-val-out b { font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet-foot:empty { display: none; }
.ficha-actions { padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fff; display: flex; gap: 8px; flex-wrap: wrap; }
.ficha-actions .btn { padding: 11px 16px; font-size: 13.5px; }
.ficha-actions .btn img { width: 20px; height: 20px; }
.cmp-bars { display: grid; gap: 8px; margin-top: 10px; }
.cmp-row { display: grid; grid-template-columns: 120px 1fr 90px; gap: 10px; align-items: center; font-size: 13px; }
.cmp-row span:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-row .bar { height: 10px; border-radius: 5px; background: var(--soft-2); overflow: hidden; }
.cmp-row .bar i { display: block; height: 100%; border-radius: 5px; transform-origin: left; animation: grow .7s var(--ease) both; }
.cmp-row b { text-align: right; font-variant-numeric: tabular-nums; }
.tl-track { position: relative; height: 46px; margin-top: 12px; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--line); border-radius: 2px; }
.tl-year { position: absolute; top: 28px; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-3); }
.tl-dot { position: absolute; top: 11px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); animation: pop .4s var(--spring) both; }
.tl-dot.ev { width: 16px; height: 16px; top: 9px; margin-left: -8px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--ink-3); }
.tl-legend i, .tl-list i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.tl-list { display: grid; gap: 6px; margin-top: 12px; font-size: 12.5px; }
.tl-list div { display: grid; grid-template-columns: 14px 74px 1fr auto; gap: 6px; align-items: center; }
.tl-list .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* comparador */
.cmp-drawer {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translate(-50%, 140%); width: min(860px, calc(100vw - 32px)); background: #fff;
  border-radius: 22px; box-shadow: var(--shadow-3); transition: transform .45s var(--ease); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
}
.cmp-drawer.show { transform: translate(-50%, 0); }
.cmp-bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; }
.cmp-chips { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 6px 5px 8px; border-radius: 999px; background: var(--soft); font-size: 12.5px; font-weight: 700; max-width: 240px; }
.cmp-chip img { width: 20px; height: 20px; }
.cmp-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-chip button { width: 22px; height: 22px; border-radius: 50%; background: #fff; font-size: 14px; line-height: 1; flex: none; }
.cmp-table-wrap { display: none; overflow: auto; padding: 0 16px 16px; }
.cmp-drawer.expanded .cmp-table-wrap { display: block; animation: rise .35s var(--ease) both; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp-table th { text-align: left; padding: 8px 10px; vertical-align: bottom; font-weight: 700; }
.cmp-table th .sub { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.cmp-table td { padding: 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cmp-table td:first-child { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.cmp-table td.best { font-weight: 800; color: #00857a; background: var(--teal-soft); border-radius: 8px; }
.cmp-add { position: absolute; bottom: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 12px; font-weight: 800; box-shadow: var(--shadow-1); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.lcard:hover .cmp-add, .cmp-add.on, .lcard:focus-within .cmp-add { opacity: 1; transform: none; }
.cmp-add.on { background: var(--ink); color: #fff; }

/* paleta */
.palette { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .28); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: fadeIn .15s both; }
@keyframes fadeIn { from { opacity: 0; } }
.pal-card { width: min(640px, calc(100vw - 32px)); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; animation: palIn .22s var(--ease) both; }
@keyframes palIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pal-input input { flex: 1; border: 0; outline: none; font-size: 17px; color: var(--ink); }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.pal-group { font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 10px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 12px; }
.pal-item img { width: 30px; height: 30px; flex: none; }
.pal-item b { display: block; font-size: 14.5px; }
.pal-item span span { display: block; font-size: 12px; color: var(--ink-3); }
.pal-item.active { background: var(--soft); }
.pal-item kbd { margin-left: auto; }
.pal-empty { padding: 24px; text-align: center; color: var(--ink-3); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pal-foot kbd { margin-right: 3px; }

/* mini-modal e alertas */
.mini-modal { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .28); display: grid; place-items: center; padding: 16px; animation: fadeIn .15s both; }
.mm-card { width: min(440px, 100%); background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-3); animation: palIn .22s var(--ease) both; }
.mm-field { display: grid; gap: 6px; margin-top: 16px; font-size: 12px; font-weight: 700; }
.mm-field input { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none; }
.mm-field input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mm-sum, .alert-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mm-sum span, .alert-chips span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.mm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.alert-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 12px; }
.alert-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.alert-hits { display: grid; gap: 6px; margin-top: 12px; }
.alert-hit { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 10px; background: var(--soft); text-align: left; width: 100%; font-size: 13px; }
.alert-hit .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-hit.novo { background: var(--coral-soft); }
.alert-hit.novo .t::before { content: "novo · "; color: var(--coral-deep); font-weight: 800; }
.alert-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.alert-actions .small { margin-left: auto; }
.btn.danger { background: var(--coral-soft); color: var(--coral-deep); border-color: #ffc2cc; }

/* brigar ou mudar */
.brigar-head { display: flex; gap: 14px; align-items: center; }
.brigar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.scen { border-radius: 14px; padding: 14px; background: var(--soft); display: grid; gap: 6px; align-content: start; }
.scen-k { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.scen-k i { width: 10px; height: 10px; border-radius: 50%; }
.scen-a .scen-k i { background: #ff385c; }
.scen-b .scen-k i { background: #222; }
.scen-c .scen-k i { background: #00a699; }
.scen-v { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.scen-s { font-size: 11.5px; color: var(--ink-3); }
.scen .select-pill { padding: 7px 10px; font-size: 12px; max-width: 100%; }
.money.mini { width: 100%; padding: 6px 10px; background: #fff; }
.money.mini input { font-size: 15px; }
.costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 8px; }
.costs label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.costs .num-in { border: 1px solid var(--line-2); border-radius: 12px; padding: 7px 10px; font-size: 15px; font-weight: 700; width: 100%; }
.costs .chk { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; }
.brigar-verdict { display: flex; gap: 12px; align-items: center; margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--teal-soft); font-size: 14.5px; text-wrap: pretty; }
.brigar-verdict img { flex: none; }

@media (max-width: 900px) {
  .kbd-hint { display: none; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 88vh; border-radius: 24px 24px 0 0; transform: translateY(105%); }
  .sheet.open { transform: none; }
  .sheet-grab { display: block; width: 40px; height: 5px; border-radius: 4px; background: var(--line-2); margin: 8px auto 0; flex: none; }
  .ficha-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-row { grid-template-columns: 96px 1fr 80px; }
  .brigar-grid, .costs { grid-template-columns: 1fr; }
  .cmp-drawer { bottom: 84px; }
  .palette { padding-top: 8vh; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(lista), ::view-transition-new(lista) { animation: none; }
}


/* ---------- Escritura: marca, tipografia e temperatura ---------- */
.logo span { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.035em; background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.logo-mark { flex: none; }
.logo-merc { transform-origin: 50% 100%; animation: merc 1.6s var(--spring) both .2s; }
.logo:hover .logo-merc { animation: merc .9s var(--spring) both; }
@keyframes merc { 0% { transform: scaleY(.15); } 60% { transform: scaleY(1.06); } 100% { transform: scaleY(1); } }
.h1, .h2, .verdict-title, .kpi .v, .hero-stat .v, .counter .v, .stat-value, .target-rent .v, .scen-v, .of-price b, .lprice b, .rank-row .val, .empty .h2 { font-family: var(--display); }
.h1 { letter-spacing: -0.03em; font-weight: 800; }
.verdict-title { letter-spacing: -0.035em; }
.legal-links { flex-basis: 100%; }
.legal-links a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover { color: var(--ink); }

/* selo de temperatura */
.tbadge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; box-shadow: var(--shadow-1); color: var(--ink); }
.tbadge i { width: 10px; height: 10px; border-radius: 50%; background: var(--t-justo); box-shadow: 0 0 0 3px rgba(0, 0, 0, .05); }
.tbadge.t-gelado i { background: var(--t-gelado); } .tbadge.t-frio i { background: var(--t-frio); }
.tbadge.t-quente i { background: var(--t-quente); } .tbadge.t-fervendo i { background: var(--t-fervendo); }
.tbadge.t-suspeito { background: var(--ink); color: #fff; } .tbadge.t-suspeito i { background: #fff; }
.tbadge.t-gelado { color: #1d6fb0; } .tbadge.t-frio { color: #0f7f79; } .tbadge.t-quente { color: #a55f00; } .tbadge.t-fervendo { color: #b4141f; }
.price-pin .pin-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--t-justo); }
.price-pin.t-gelado .pin-dot { background: var(--t-gelado); } .price-pin.t-frio .pin-dot { background: var(--t-frio); }
.price-pin.t-quente .pin-dot { background: var(--t-quente); } .price-pin.t-fervendo .pin-dot { background: var(--t-fervendo); }
.price-pin.t-suspeito { color: var(--ink-3); text-decoration: line-through; }
.price-pin.active .pin-dot { box-shadow: 0 0 0 2px #fff; }
.tdot { width: 14px; height: 14px; border-radius: 50%; margin: 0 9px; box-shadow: 0 0 0 3px rgba(0, 0, 0, .05); }

/* Explorar */
.ex-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 0 10px; margin-top: 18px; background: linear-gradient(#fff 85%, rgba(255, 255, 255, 0)); }
.fbadge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 5px; }
.ex-fontes { margin-top: 4px; }
.ex-count { margin-top: 18px; font-size: 15px; min-height: 22px; }
.ex-count b { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ex-chips span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.ex-grid { position: relative; margin-top: 18px; }
.ex-card { position: absolute; top: 0; left: 0; will-change: transform; contain: layout paint; }
.ldiff { font-size: 13px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsrc { float: right; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 3px; max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lscore b { font-family: var(--display); }
.ex-empty .steps { text-align: left; }

/* filtros (modal) */
body.modal-open { overflow: hidden; }
.flt { position: fixed; inset: 0; z-index: 92; background: rgba(0, 0, 0, .32); display: grid; place-items: center; padding: 20px; animation: fadeIn .15s both; }
.flt-card { width: min(720px, 100%); max-height: min(88vh, 900px); background: #fff; border-radius: 24px; box-shadow: var(--shadow-3); display: flex; flex-direction: column; overflow: hidden; animation: palIn .25s var(--ease) both; }
.flt-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.flt-x { width: 34px; height: 34px; border-radius: 50%; font-size: 20px; }
.flt-x:hover { background: var(--soft); }
.flt-body { overflow-y: auto; padding: 4px 26px 20px; overscroll-behavior: contain; }
.flt-body section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.flt-body section:last-child { border-bottom: 0; }
.flt-t { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.flt-tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.flt-tipos button { display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); text-align: left; font-weight: 700; font-size: 13.5px; transition: border-color .15s, box-shadow .15s, background .15s; }
.flt-tipos button img { width: 32px; height: 32px; }
.flt-tipos button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--soft); }
.flt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.flt-money { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.flt-money .money { width: 100%; }
.flt-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; }
.flt-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.flt-steps button, .flt-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; transition: all .15s; }
.flt-steps button[aria-pressed="true"], .flt-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.flt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.flt-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.flt-switch b { display: block; font-size: 15px; font-weight: 600; }
.flt-switch span span { display: block; font-size: 12.5px; color: var(--ink-3); }
.flt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.flt-switch i { width: 48px; height: 30px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.flt-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .25s var(--spring); }
.flt-switch input:checked + i { background: var(--ink); }
.flt-switch input:checked + i::after { transform: translateX(18px); }
.flt-switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.flt-nota { display: flex; align-items: center; gap: 12px; width: 60%; }
.flt-nota b { min-width: 70px; text-align: right; }
.flt-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.flt-foot .btn { min-width: 210px; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* ficha do anúncio */
.of-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #f6f3ee, #ece7df); margin-right: 36px; }
.of-photo .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.of-photo .slides img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.of-photo .ph { height: 100%; display: grid; place-items: center; }
.of-photo .ph img { width: 40%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .14)); }
.of-price { margin-top: 10px; }
.of-price b { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; }
.of-price span { color: var(--ink-3); margin-left: 4px; }
.of-thermo { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--soft); }
.of-scale { position: relative; height: 10px; border-radius: 5px; }
.of-scale i { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow-1); animation: slideIn .8s var(--spring) both; }
@keyframes slideIn { from { left: 50%; transform: scale(.4); } }
.of-scale-l { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--ink-3); margin-top: 6px; }
.of-diff { margin: 10px 0 2px; font-size: 15px; }
.of-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.of-facts div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.of-facts span { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.of-facts b { font-size: 15px; }

/* mercúrio subindo no carregamento */
.mercury { position: fixed; z-index: 100; top: 0; left: 0; height: 3px; width: 0; background: var(--t-grad); opacity: 0; transition: width .4s var(--ease), opacity .3s; pointer-events: none; }
.mercury.on { opacity: 1; }
@media (max-width: 900px) {
  .flt { padding: 0; place-items: end center; }
  .flt-card { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .flt-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flt-line { flex-wrap: wrap; }
  .flt-nota { width: 100%; }
  .of-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-photo { margin-right: 0; margin-top: 30px; }
  .ex-bar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ex-bar > * { flex: none; }
}
.onb { display: grid; gap: 18px; padding: 24px; position: relative; }
.onb-ico { position: absolute; right: 20px; top: 18px; }
.onb-step { padding-right: 80px; }
.onb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.onb .btn { justify-self: start; }
.onb .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 900px) { .onb-grid { grid-template-columns: 1fr; } .onb-step { padding-right: 0; } .onb-ico { display: none; } }

.manifesto-line { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(74, 168, 240, .1), rgba(233, 228, 216, .25), rgba(229, 56, 59, .1)); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.manifesto-line img { flex: none; }
.admin-only[hidden] { display: none !important; }
.apify-cost { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.auto-form { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.auto-form input { flex: 1; min-width: 140px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; }
.auto-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.auto-note { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); font-size: 13px; color: #7a4b00; }

/* herói do Meu aluguel: régua de temperatura vertical */
.hero-t { display: grid; grid-template-columns: 112px 1fr; gap: 26px; align-items: stretch; background: radial-gradient(120% 100% at 100% 0%, #fff4ef 0%, #fff 60%); border-color: #ffe2d6; }
.hero-t.temp-frio, .hero-t.temp-gelado { background: radial-gradient(120% 100% at 100% 0%, #eef7fd 0%, #fff 60%); border-color: #d6ecfa; }
.hero-t.temp-justo { background: radial-gradient(120% 100% at 100% 0%, #f7f5ef 0%, #fff 60%); border-color: var(--line); }
.hero-main .verdict-title { max-width: 100%; }
.hero-main .verdict-text { max-width: 100%; }
.thermo-v { position: relative; display: grid; grid-template-columns: 52px 30px; grid-template-rows: 1fr 36px; column-gap: 8px; min-height: 260px; }
.tv-scale { grid-row: 1; grid-column: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 10.5px; font-weight: 700; color: var(--ink-3); padding: 2px 0 10px; }
.tv-scale span:nth-child(1) { color: var(--t-fervendo); } .tv-scale span:nth-child(2) { color: var(--t-quente); } .tv-scale span:nth-child(4) { color: var(--t-frio); } .tv-scale span:nth-child(5) { color: var(--t-gelado); }
.tv-tube { grid-row: 1; grid-column: 2; position: relative; width: 18px; justify-self: center; border-radius: 10px 10px 0 0; background: #f3f1ec; box-shadow: inset 0 0 0 2px var(--ink); overflow: visible; }
.tv-tube::before { content: ""; position: absolute; inset: 3px; border-radius: 8px 8px 0 0; background: linear-gradient(0deg, rgba(74, 168, 240, .18), rgba(233, 228, 216, .25) 50%, rgba(229, 56, 59, .18)); }
.tv-merc { position: absolute; left: 5px; right: 5px; bottom: 0; height: var(--tv-pedido, 50%); border-radius: 6px 6px 0 0; background: linear-gradient(0deg, var(--tv-cor, #ff385c), color-mix(in srgb, var(--tv-cor, #ff385c) 70%, #fff)); transition: height 1.1s var(--spring), background .4s; animation: mercRise 1.4s var(--spring) both; }
@keyframes mercRise { from { height: 0; } }
.tv-bulb { grid-row: 2; grid-column: 2; justify-self: center; width: 34px; height: 34px; margin-top: -4px; border-radius: 50%; background: var(--tv-cor, #ff385c); box-shadow: inset 0 0 0 2.5px var(--ink), 0 6px 14px color-mix(in srgb, var(--tv-cor, #ff385c) 45%, transparent); transition: background .4s; }
.tv-mark { position: absolute; left: 24px; transform: translateY(50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: bottom 1.1s var(--spring); }
.tv-mark::before { content: ""; width: 12px; height: 2px; background: currentColor; margin-left: -8px; }
.tv-mark b { font-size: 10.5px; font-weight: 800; }
.tv-justo { bottom: 50%; color: var(--ink-3); }
.tv-hoje { bottom: var(--tv-hoje, 50%); color: var(--ink-2); }
.tv-pedido { bottom: var(--tv-pedido, 50%); color: var(--tv-cor, #ff385c); }
.tbadge-inline { background: #fff; box-shadow: var(--shadow-1); color: var(--ink); gap: 7px; }
.tbadge-inline i { width: 10px; height: 10px; border-radius: 50%; background: var(--t-justo); display: inline-block; }
.tbadge-inline.t-gelado i { background: var(--t-gelado); } .tbadge-inline.t-frio i { background: var(--t-frio); }
.tbadge-inline.t-quente i { background: var(--t-quente); } .tbadge-inline.t-fervendo i { background: var(--t-fervendo); }
@media (max-width: 900px) {
  .hero-t { grid-template-columns: 84px 1fr; gap: 14px; }
  .thermo-v { grid-template-columns: 44px 26px; min-height: 220px; column-gap: 4px; }
  .tv-mark b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tv-merc { animation: none; } }

/* ---------- lado do inquilino: total, negociar, saúde ---------- */
.tb2 { top: 46px; }
.gbadge { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; }
.lsrc2 { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.ldiff { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; min-height: 2.7em; }
.lprice { display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; }
.lprice b { font-size: 16px; }
.ltotal { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.neg-btn { margin-left: auto; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; flex: none; transition: transform .15s; }
.neg-btn:hover { transform: translateY(-1px); }
.neg-offer { display: grid; gap: 6px; margin-top: 14px; padding: 18px; border-radius: 18px; background: #fff4ef; border: 1px solid #ffe0d2; }
.neg-offer.frio { background: #eef7fd; border-color: #d6ecfa; }
.neg-offer .k { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.neg-offer .v { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.neg-offer .s { font-size: 13px; color: var(--ink-2); }
.neg-offer p { margin: 4px 0 0; font-weight: 700; font-size: 14.5px; }
.neg-total { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13.5px; }
.neg-args, .neg-q { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.neg-args li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; }
.neg-links { display: grid; gap: 4px; margin-top: 6px; }
.neg-links .link-btn { text-align: left; font-size: 13px; }
.neg-q li { position: relative; padding-left: 22px; font-size: 14px; }
.neg-q li::before { content: "?"; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.neg-card { padding: 22px; }
.check-result.hot { background: #fff4ef; }
.of-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.of-total { margin: 6px 0 0; font-size: 13.5px; }
.of-golpe { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--ink-2); }
.of-golpe.warn { background: #fff1e6; color: #7a3b00; }
.hero-total { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 14px; }
.hero-total.warn { background: #fff4e6; border-color: #ffd9a8; color: #7a4b00; }
.saude { padding: 2px 0; }
.saude-top { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.saude-nota { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--c) 0 100%); position: relative; flex: none; }
.saude-nota::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.saude-nota b, .saude-nota span { position: relative; text-align: center; }
.saude-nota b { font-family: var(--display); font-size: 24px; line-height: 1; }
.saude-nota span { font-size: 10px; color: var(--ink-3); }
.saude-scale { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #e5383b, #f59e0b 50%, #22b8b0); }
.saude-scale i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); animation: slideIn .8s var(--spring) both; }
.saude-l { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--ink-3); margin-top: 5px; }
.saude-alertas { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.saude-alertas li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13.5px; }
.saude-alertas span { display: block; font-size: 12.5px; color: var(--ink-2); }
.saude-transp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.saude-transp span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--soft); font-size: 12.5px; }
.saude-checado { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.saude-pedir { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.saude-pedir ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.saude-pedir label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.saude-pedir input { margin-top: 3px; accent-color: var(--ink); }
.onb-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }


/* ---------- mapa protagonista ---------- */
.shell { grid-template-columns: 480px minmax(0, 1fr); transition: grid-template-columns .4s var(--ease); }
body.tab-conselheiro .shell { grid-template-columns: min(720px, 48vw) minmax(0, 1fr); }
body.map-full .shell { grid-template-columns: 0 minmax(0, 1fr); }
body.map-full .list-pane { visibility: hidden; }
.list-pane { border-right: 1px solid var(--line); }
.view { padding: 24px 24px 48px; max-width: none; }
.cred { padding: 8px 24px 32px; max-width: none; }
.map-pane { padding: 0; }
#map { inset: 0; right: 0; bottom: 0; border-radius: 0; box-shadow: none; }
.map-float-top { top: 14px; left: 14px; }
.map-float-bottom { bottom: 30px; left: 14px; right: 14px; }
.map-expand { position: absolute; z-index: 4; top: 14px; right: 56px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; box-shadow: var(--shadow-2); transition: transform .2s var(--ease); }
.map-expand:hover { transform: translateY(-1px); }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trumps { grid-template-columns: 1fr; }
.ex-card .lphoto { aspect-ratio: 16 / 10; }
.hero-t { grid-template-columns: 92px 1fr; gap: 18px; padding: 22px; }
.verdict-title { font-size: 32px; }
@media (min-width: 901px) { .sp-addr { width: 290px; } }

/* conselheiro: largura de leitura confortável, sem vão */
.view-chat { max-width: none; padding: 24px 24px 0; }
.view-chat > * { width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; }
.chat-log { padding: 18px 0; }
.msg { max-width: 100%; }
.msg.user { max-width: 85%; }
.msg.ai { width: 100%; }
.composer { padding-bottom: 20px; }
.md-table { overflow-x: auto; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.md-table th { text-align: left; background: var(--soft); font-weight: 700; padding: 8px 12px; white-space: nowrap; }
.md-table td { padding: 8px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .shell { grid-template-columns: 420px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .shell, body.tab-conselheiro .shell { display: block; }
  .list-pane { border-right: 0; }
  .view { padding: 20px 16px 96px; }
  .map-expand { display: none; }
  .view-chat { padding: 20px 16px 0; }
}

.abcbadge { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 11px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-1); }
.abc-note { margin: 8px 0 4px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); }

/* ---------- Para você ---------- */
.pv-entry { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: linear-gradient(120deg, #fff4ef, #fff 45%, #eef7fd); border: 1px solid #f3e6dd; }
.pv-entry-top { display: flex; gap: 14px; align-items: center; }
.pv-ico { flex: none; }
.pv-entry .h2 { font-size: 19px; line-height: 1.2; }
.pv-entry-actions { display: flex; gap: 8px; }
.pv-entry-actions .btn { flex: 1; }
.pv-dots { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.pv-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-2); transition: background .25s; }
.pv-dots i.on { background: var(--ink); }
.pv-step-h { display: flex; gap: 14px; align-items: center; }
.pv-prios { display: grid; gap: 10px; margin-top: 16px; }
.pv-prio { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); }
.pv-prio-l { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pv-prio-l b { display: block; font-size: 14.5px; }
.pv-prio-l span { display: block; font-size: 12px; color: var(--ink-3); }
.pv-w { display: flex; gap: 4px; flex: none; }
.pv-w button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 800; transition: all .15s; }
.pv-w button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pv-result { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); }
.pv-head { display: flex; gap: 12px; align-items: flex-start; }
.pv-head .h2 { font-size: 18px; line-height: 1.25; }
.pv-ai { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--soft); font-size: 14px; }
.pv-ai-h { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.pv-ai-t p { margin: 0 0 8px; }
.pv-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.pv-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; animation: rise .45s var(--ease) both; }
.pv-item:nth-child(2) { animation-delay: .04s; } .pv-item:nth-child(3) { animation-delay: .08s; } .pv-item:nth-child(n+4) { animation-delay: .12s; }
.pv-main { display: grid; grid-template-columns: 24px 56px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px; }
.pv-main:hover { background: var(--soft); }
.pv-n { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink-3); text-align: center; }
.pv-t { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-p { font-size: 13.5px; margin-top: 2px; }
.pv-p b { font-family: var(--display); }
.pv-why { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 2px; }
.pv-ring-arc { transition: stroke-dashoffset 1s var(--spring); animation: ringIn 1s var(--spring) both; }
@keyframes ringIn { from { stroke-dashoffset: 138; } }
.pv-comp { padding: 0 12px 10px; }
.pv-comp summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.pv-bar { display: grid; grid-template-columns: 1fr 120px 48px; gap: 8px; align-items: center; font-size: 12px; padding: 3px 0; }
.pv-bar i { height: 7px; border-radius: 4px; background: var(--soft-2); overflow: hidden; display: block; }
.pv-bar i b { display: block; height: 100%; background: var(--ink); border-radius: 4px; animation: grow .7s var(--ease) both; transform-origin: left; }
.pv-bar em { font-style: normal; color: var(--ink-3); text-align: right; }
.pv-avoid { margin-top: 16px; padding: 14px; border-radius: 14px; background: #fff4ef; }
.pv-avoid ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.pv-avoid li { display: grid; gap: 2px; }
.pv-avoid span { color: var(--ink-2); }
.pv-actions { margin-top: 14px; }
.pv-pin { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 14px; box-shadow: 0 0 0 3px #fff, var(--shadow-2); animation: pinIn .45s var(--spring) both; cursor: pointer; }
.pv-pin:hover { background: var(--coral); }
@media (max-width: 900px) { .pv-entry { flex-wrap: wrap; } .pv-entry-actions { flex-direction: row; width: 100%; } .pv-entry-actions .btn { flex: 1; } .pv-ico { display: none; } }
/* resultados de busca dentro de modais e folhas com rolagem: no fluxo, sem corte */
.flt-body .inline-results, .sheet .inline-results, .card .inline-results { position: static; box-shadow: none; border: 1px solid var(--line); margin-top: 8px; }
/* corpo do modal encolhe e rola; o rodapé fica sempre visível */
.flt-body { min-height: 0; flex: 1 1 auto; }
.flt-head, .flt-foot { flex: none; }

/* ---------- home útil (Explorar) ---------- */
.home { display: grid; gap: 12px; }
.home-card { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); animation: rise .45s var(--ease) both; }
.home-card + .home-card { animation-delay: .05s; }
.home-h { display: flex; gap: 12px; align-items: center; }
.home-h .h3 { font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; }
.qc-grid { display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.qc-grid .money { width: 100%; padding: 8px 10px; }
.qc-place { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13.5px; font-weight: 600; }
.qc-place span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-res { margin-top: 12px; padding: 14px; border-radius: 14px; background: #fff4ef; animation: rise .4s var(--ease) both; }
.qc-res.frio { background: #eef7fd; }
.qc-selo { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.qc-frase { font-weight: 700; font-size: 14.5px; margin-top: 2px; }
.qc-actions { display: flex; gap: 8px; margin-top: 10px; }
.meu-sum { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.meu-sum b { font-size: 14.5px; }
.orc-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font-weight: 600; font-size: 14px; }
.orc-row .money { width: 150px; }
.orc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.orc-chips button { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; transition: border-color .15s, background .15s; }
.orc-chips button:hover { border-color: var(--ink); background: var(--soft); }
.orc-chips button span { color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.home-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-tile { display: grid; gap: 4px; justify-items: start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); text-align: left; transition: border-color .15s, box-shadow .15s; }
.home-tile:hover { border-color: var(--ink); box-shadow: var(--shadow-1); }
.home-tile b { font-size: 13.5px; }
.home-tile span { font-size: 11.5px; color: var(--ink-3); }
.ex-empty.compact { padding: 26px 18px; }
.ex-empty.compact > img { width: 72px; height: 72px; }
.ex-empty.compact .steps { display: none; }
@media (max-width: 900px) { .qc-grid { grid-template-columns: 1fr 1fr; } .qc-grid label:first-child { grid-column: 1 / -1; } }

.pv-pin { width: auto; height: auto; min-width: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; font-family: var(--sans); font-weight: 800; font-size: 13px; }
.pv-pin b { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 12px; }

/* ---------- avaliar o imóvel ---------- */
.av-cta { display: grid; grid-template-columns: 40px 1fr 16px; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px dashed #f2b8a6; background: #fff8f4; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.av-cta:hover { border-style: solid; box-shadow: var(--shadow-1); transform: translateY(-1px); }
.av-cta b { display: block; font-size: 14.5px; }
.av-cta span span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.av-cta i { font-style: normal; font-size: 22px; color: var(--ink-3); }
.av-live { padding: 12px 22px 0; }
.av-live-in { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 14px; transition: background .3s; }
.av-live-in.cai { background: #eef7fd; }
.av-live-in.sobe { background: #fff4ef; }
.av-items { display: grid; gap: 8px; }
.av-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); }
.av-item-l { display: flex; gap: 10px; align-items: center; font-size: 14px; min-width: 0; }
.av-stars { display: flex; align-items: center; gap: 4px; flex: none; }
.av-stars button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); font-weight: 800; font-size: 13px; color: var(--ink-3); transition: all .15s; }
.av-stars button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.av-stars button:hover { border-color: var(--ink); }
.av-lbl { width: 56px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-align: right; }
.av-unit { border: 0; background: none; font-weight: 700; outline: none; }
.av-card { padding: 18px; }
.av-card-h { display: flex; gap: 12px; align-items: center; }
@media (max-width: 900px) { .av-item { flex-wrap: wrap; } .av-lbl { display: none; } }


/* =====================================================================
   CELULAR (definitivo): mapa sempre visível atrás, conteúdo numa sheet
   arrastável. Nada passa da largura da tela; só barras internas rolam.
   ===================================================================== */
.sheet-grip { display: none; }
@media (min-width: 901px) {
  @media (min-width: 901px) { .sheet { top: 12px; bottom: 12px; right: 12px; } }
}
@media (max-width: 900px) {
  :root { --hdr: 124px; }
  html, body { overflow: hidden; height: 100%; width: 100%; max-width: 100%; }
  body { position: fixed; inset: 0; }
  .topbar { display: flex; align-items: center; gap: 10px; height: 60px; padding: 6px 16px; border-bottom: 0; }
  .logo { display: inline-flex; flex: none; }
  .logo span { display: none; }
  .logo-mark { width: 30px; height: 30px; }
  .top-actions { display: flex; flex: none; gap: 6px; }
  .top-actions .kbd-hint, .top-actions #topAdvisor { display: none; }
  .top-orb { width: 40px; height: 40px; }
  .search-pill { flex: 1; min-width: 0; width: auto; height: 46px; padding: 0 4px 0 0; }
  .sp-seg { min-width: 0; }
  .sp-addr { flex: 1; min-width: 0; width: auto; padding: 0 12px 0 16px; }
  .sp-addr input { min-width: 0; width: 100%; font-size: 14px; }
  .sp-addr .sp-label { font-size: 11px; }
  .sp-area, .sp-kind, .sp-div { display: none !important; }
  .sp-go { width: 38px; height: 38px; }
  .sp-results { left: -48px; width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  .cats { height: 64px; gap: 22px; padding: 0 16px; overflow-x: auto; overscroll-behavior-x: contain; position: relative; top: auto; box-shadow: 0 1px 0 var(--line); }
  .cat { font-size: 11.5px; }
  .cat img { width: 26px; height: 26px; }
  .shell { display: block; height: auto; }
  /* mapa: ocupa a tela abaixo do cabeçalho, sempre visível */
  .map-pane, body.show-map .map-pane { display: block; position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; z-index: 1; padding: 0; }
  #map { position: absolute; inset: 0; border-radius: 0; }
  .map-float-top { top: 10px; left: 12px; right: 64px; }
  .layer-toggles { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .layer-toggles::-webkit-scrollbar { display: none; }
  .chip-toggle { padding: 7px 12px; font-size: 12px; flex: none; }
  .map-float-bottom { top: 10px; right: 12px; left: auto; bottom: auto; }
  .legend, .map-expand, .maplibregl-ctrl-top-right { display: none !important; }
  .home-btn { padding: 8px 12px 8px 8px; font-size: 12px; }
  .pick-banner { max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
  /* conteúdo: sheet arrastável por cima do mapa */
  .list-pane { position: fixed; left: 0; right: 0; bottom: 0; top: var(--sheet-top, 52vh); z-index: 30; background: #fff; border-radius: 22px 22px 0 0; border-right: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .14); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; transition: top .35s var(--ease); contain: layout paint; }
  .list-pane.dragging { transition: none; }
  body.show-map .list-pane { top: calc(100% - 86px) !important; }
  .sheet-grip { display: grid; place-items: center; position: sticky; top: 0; z-index: 7; height: 24px; background: #fff; cursor: grab; touch-action: none; }
  .sheet-grip span { width: 40px; height: 5px; border-radius: 4px; background: var(--line-2); }
  .view, .view-chat { padding: 4px 16px 110px; max-width: 100%; }
  .cred { padding: 0 16px 120px; }
  .ex-bar { top: 24px; margin-left: -16px; margin-right: -16px; padding: 10px 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ex-bar::-webkit-scrollbar { display: none; }
  .ex-fontes { margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .map-toggle { z-index: 50; bottom: max(18px, env(safe-area-inset-bottom)); }
  /* texto quebra, nada estoura */
  .view * { overflow-wrap: anywhere; }
  .h1 { font-size: 26px; }
  .lead { font-size: 14.5px; }
  .toast { max-width: calc(100vw - 32px); }
  .counter { flex-wrap: wrap; }
  .counter .btn { width: 100%; }
  .hero-stats { gap: 16px; }
  .comps { table-layout: fixed; }
  .comps td:first-child { width: 58%; }
  .trumps, .targets, .scam-list { grid-template-columns: 1fr; }
  .target { grid-template-columns: 56px minmax(0, 1fr); }
  .radar-item { grid-template-columns: 44px minmax(0, 1fr); }
  .ficha-actions .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
/* até 480 px: régua de temperatura horizontal, acima do texto */
.thermo-h { display: none; }
@media (max-width: 480px) {
  .hero-t { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px; }
  .hero-t .thermo-v { display: none; }
  .thermo-h { display: block; }
  .th-bar { position: relative; height: 12px; border-radius: 6px; background: var(--t-grad); margin: 22px 4px 0; }
  .th-justo { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); opacity: .55; border-radius: 1px; }
  .th-mk { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 3px solid var(--ink-3); box-shadow: var(--shadow-1); transition: left 1s var(--spring); }
  .th-hoje { left: var(--tv-hoje, 50%); border-color: var(--ink-3); }
  .th-pedido { left: var(--tv-pedido, 50%); border-color: var(--tv-cor, #ff385c); width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .th-pedido::after { content: "pedido"; position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; color: var(--tv-cor, #ff385c); white-space: nowrap; }
  .th-lbls { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
  .th-leg { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
  .th-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
  .verdict-title { font-size: 26px; }
  .hero-total { align-items: flex-start; }
  .saude-top { gap: 12px; }
  .saude-nota { width: 64px; height: 64px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi .v { font-size: 22px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-stars button { width: 30px; height: 30px; }
}

@media (max-width: 900px) {
  .search-pill { width: 100%; min-width: 0; }
  .sp-addr { flex: 1; width: auto; min-width: 0; }
  .sp-kind { padding: 0 8px 0 4px; }
}
@media (max-width: 900px) {
  .checker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checker label, .checker input, .checker .seg { min-width: 0; }
  .checker input { width: 100%; }
  .checker .btn { grid-column: 1 / -1; }
  .onb-grid, .flt-row { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
}

/* ---------- cobertura ---------- */
.cov-card { padding: 0; overflow: hidden; }
.cov-wrap { overflow-x: auto; max-width: 100%; }
.cov-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cov-table th { position: sticky; top: 0; background: #fff; text-align: left; padding: 0; border-bottom: 1px solid var(--line); }
.cov-table th button { width: 100%; text-align: left; padding: 10px 12px; font-weight: 700; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.cov-table th button[aria-sort="descending"], .cov-table th button[aria-sort="ascending"] { color: var(--ink); }
.cov-table td { padding: 9px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cov-table td.r, .cov-table th:not(:first-child) button { text-align: right; }
.cov-table tbody tr { cursor: pointer; transition: background .15s; }
.cov-table tbody tr:hover { background: var(--soft); }
.cov-table tr.zero { background: #fff5f5; }
.cov-table tr.zero td:first-child { font-weight: 800; color: #c92a2a; }
.zero-tag { color: #c92a2a; }
.zero-soft { color: var(--t-quente); font-weight: 700; }

.legend-src { margin-top: 6px; font-size: 10px; color: var(--ink-3); line-height: 1.3; }

/* avisos sempre no topo: nunca cobrem o conteúdo */
.toast-wrap { top: 92px; bottom: auto; }
@media (max-width: 900px) {
  .toast-wrap { top: calc(var(--hdr) + 8px); width: calc(100vw - 32px); }
  .toast { justify-content: center; }
  /* alça da sheet com o botão Mapa/Lista: nada flutua sobre o texto */
  .map-toggle, body.show-map .map-toggle { display: none !important; }
  .sheet-grip { height: 36px; grid-template-columns: 1fr; }
  .grip-bar { display: block; width: 40px; height: 5px; border-radius: 4px; background: var(--line-2); justify-self: center; cursor: grab; }
  .grip-bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
  .sheet-map-btn { position: absolute; right: 12px; top: 5px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
  .ex-bar { top: 36px; }
  body.show-map .list-pane { top: calc(100% - 52px) !important; }
  /* conselheiro: campo de digitação no fluxo, sem cobrir mensagens */
  .composer { position: static; background: none; padding: 12px 0 24px; }
}
