/* Look: white ground, navy ink, one orange accent kept for deal signals.
   Shape rule: pictures 16px, panels 20px, inputs and buttons 12px, chips full pill. */
@font-face { font-family: Rubik; src: url(/fonts/rubik-hebrew.woff2) format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Rubik; src: url(/fonts/rubik-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Assistant; src: url(/fonts/assistant-hebrew.woff2) format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Assistant; src: url(/fonts/assistant-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

:root {
  --bg: #ffffff; --soft: #f4f6f9; --line: #e3e8ef; --line-strong: #cfd6e0;
  --text: #0e1a2b; --muted: #5a6676;
  --ink: #0e1a2b; --ink-on: #ffffff;
  --deal: #c2410c; --deal-soft: #fff1e7; --deal-text: #9a3412;
  --danger: #b42318;
  --lift: 0 2px 8px rgb(14 26 43 / .08); --float: 0 12px 32px rgb(14 26 43 / .10);
  --display: Rubik, Assistant, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --soft: #151f31; --line: #243146; --line-strong: #33435c;
    --text: #e9eef6; --muted: #9aa7b8;
    --ink: #e9eef6; --ink-on: #0b1220;
    --deal: #fb923c; --deal-soft: #3a2212; --deal-text: #fdba74;
    --danger: #f97066;
    --lift: 0 2px 8px rgb(0 0 0 / .35); --float: 0 12px 32px rgb(0 0 0 / .4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 Assistant, system-ui, 'Segoe UI', sans-serif; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
bdi[dir=ltr] { unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--deal); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- frame ---------- */
.top { position: sticky; top: 0; z-index: 1100; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1480px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.5px; }
.brand span { font-size: .85rem; color: var(--muted); }
.search { flex: 1; max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--lift); background: var(--bg); }
.search:focus-within { border-color: var(--text); }
.search i { font-size: 1.25rem; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.search input::placeholder { color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent;
  text-decoration: none; font-weight: 600; cursor: pointer; white-space: nowrap; }
.nav a:hover, .nav button:hover { background: var(--soft); }
.nav a[aria-current=page] { background: var(--soft); }
.nav button { color: var(--muted); font-weight: 500; }
.nav i { font-size: 1.2rem; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 32px 96px; }
.wrap.narrowpage { max-width: 1240px; padding-top: 24px; }

.tabs { display: none; }
@media (max-width: 899px) {
  .top-in { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px 12px; justify-content: space-between; }
  .top .nav a { display: none; }
  .search { order: 3; flex: 1 0 100%; max-width: none; height: 46px; }
  .brand b { font-size: 1.45rem; }
  .wrap { padding: 0 16px 112px; }
  .wrap.narrowpage { padding-top: 16px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 1100;
    background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; text-decoration: none; color: var(--muted); font-size: .8rem; font-weight: 600; }
  .tabs i { font-size: 1.5rem; }
  .tabs a[aria-current=page] { color: var(--text); }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease; }
.btn:hover { background: var(--soft); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-on); }
.btn.primary:hover { background: var(--ink); opacity: .9; }
.btn.big { min-height: 52px; font-size: 1.05rem; width: 100%; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); padding-inline: 10px; }
.btn.quiet:hover { background: var(--soft); color: var(--text); }
.btn.on { background: var(--deal-soft); border-color: var(--deal-soft); color: var(--deal-text); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn i { font-size: 1.25rem; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .88rem; font-weight: 500; color: var(--muted); }
.field > span:empty { display: none; }
.field input, .field select, .field textarea { min-height: 46px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .86rem; font-weight: 700; background: var(--soft); color: var(--text); white-space: nowrap; }
.badge.hot { background: var(--ink); color: var(--ink-on); }
.badge.soft { background: var(--deal-soft); color: var(--deal-text); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- filter rows ---------- */
.bar { border-bottom: 1px solid var(--line); margin-inline: -32px; padding: 14px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.chips::-webkit-scrollbar, .picks::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .12s ease; }
.chip:hover { border-color: var(--text); }
.chip:active { transform: scale(.97); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--ink-on); }
.picks { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.pick select { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; max-width: 100%; }
.pick select:hover { border-color: var(--text); }
.pick.on select { border-color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--text); }
@media (max-width: 899px) { .bar { margin-inline: -16px; padding: 12px 16px; } .picks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; } .pick { flex: none; } }

/* ---------- browse: results beside the map ---------- */
.browse { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; align-items: start; }
.browse.split { grid-template-columns: minmax(0, 1fr) minmax(360px, 36%); }
.sidemap { position: sticky; top: 100px; height: calc(100dvh - 124px); min-height: 420px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
@media (max-width: 1099px) { .browse.split { grid-template-columns: minmax(0, 1fr); } .browse.split .sidemap { display: none; } }
.listhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 24px; }
.listhead h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -.4px; line-height: 1.2; }
.listhead p { color: var(--muted); margin-top: 2px; }
@media (max-width: 899px) { .browse { padding-top: 20px; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 24px; }
.card { position: relative; }
.card-link { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.card-shot { position: relative; margin-bottom: 9px; border-radius: 16px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.card-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-shot img { transform: scale(1.04); }
.card-shot.sat::after { content: ''; position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 3px solid #fff; border-radius: 999px;
  box-shadow: 0 0 0 1.5px rgb(0 0 0 / .45), inset 0 0 0 1.5px rgb(0 0 0 / .45); pointer-events: none; }
.card-tag { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px; background: #0e1a2b; color: #fff; font-size: .82rem; font-weight: 700; }
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.card-price b { font-family: var(--display); font-weight: 700; font-size: 1.36rem; letter-spacing: -.3px; }
.card-price small { font-size: .82rem; color: var(--muted); }
.card-deal { font-weight: 700; font-size: .95rem; color: var(--deal); }
.card-info { font-size: .95rem; color: var(--muted); }
.card-facts { font-size: .95rem; }
.card-place { font-size: .9rem; color: var(--muted); }
.star { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #0e1a2b; display: grid; place-items: center; box-shadow: 0 2px 8px rgb(14 26 43 / .2); transition: transform .12s ease; }
.star:hover { transform: scale(1.08); }
.star:active { transform: scale(.94); }
.star i { font-size: 1.3rem; }
.star.on { color: #c2410c; }
.more { display: flex; justify-content: center; margin-top: 36px; }

.skeleton { border-radius: 16px; background: linear-gradient(100deg, var(--soft) 40%, var(--line) 50%, var(--soft) 60%); background-size: 200% 100%; min-height: 300px; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .btn, .star, .chip, .card-shot img { transition: none; } .card:hover .card-shot img { transform: none; } }

.empty { text-align: center; padding: 72px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty i { font-size: 2.6rem; color: var(--text); }
.empty h2 { color: var(--text); font-family: var(--display); font-size: 1.3rem; margin: 10px 0 4px; }
.empty .btn { margin-top: 16px; }

/* ---------- map ---------- */
.mapbox { height: calc(100dvh - 300px); min-height: 420px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: var(--soft); }
.leaflet-container { font: inherit; background: var(--soft); }
.leaflet-popup-content { margin: 14px 16px; font-size: .95rem; display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.leaflet-popup-content .btn { min-height: 42px; margin-top: 8px; }
.leaflet-popup-content-wrapper { border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: var(--float); }
.leaflet-popup-tip { background: var(--bg); }
.pop-price { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }

/* ---------- property page ---------- */
.p-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 20px; }
.p-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.25rem); letter-spacing: -.6px; line-height: 1.15; }
.p-sub { color: var(--muted); font-size: 1.1rem; margin: 4px 0 10px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 36px; height: 440px; }
.gallery.solo { grid-template-columns: 1fr; }
.gallery > * { border-radius: 20px; overflow: hidden; min-height: 0; }
#satmap { background: var(--soft); height: 100%; }
.g-side { display: flex; flex-direction: column; gap: 12px; }
.g-side > * { flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; }
.g-side img { width: 100%; height: 100%; object-fit: cover; display: block; flex: 2; }
.gallery.solo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-tile { background: var(--soft); padding: 20px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; text-decoration: none; transition: background .15s ease; }
.g-tile:hover { background: var(--line); }
.g-tile i { font-size: 1.6rem; margin-bottom: auto; }
.g-tile b { font-family: var(--display); font-size: 1.15rem; }
.g-tile span { color: var(--muted); font-size: .95rem; }
@media (max-width: 899px) { .gallery { grid-template-columns: 1fr; height: auto; margin-bottom: 24px; } #satmap { height: 300px; } .g-side { flex-direction: row; } .g-side img { display: none; } .g-tile { padding: 14px 16px; } .g-tile span { display: none; } }

.p-body { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.p-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.p-aside { flex: 1 1 340px; max-width: 420px; min-width: 0; position: sticky; top: 100px; }
@media (max-width: 1023px) { .p-aside { position: static; max-width: none; order: -1; } .p-body { gap: 28px; } }
.summary { border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--float); display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.summary small { color: var(--muted); font-size: .95rem; }
.summary .price { font-family: var(--display); font-weight: 700; font-size: 2.4rem; letter-spacing: -1px; line-height: 1.15; }
.summary hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 4px 0; }
.summary h2 { font-family: var(--display); font-size: 1.2rem; }
.summary .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
.summary .tile { padding: 12px 14px; }
.summary .tile b { font-size: 1.15rem; }

.sec { padding: 32px 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec > h2 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.3px; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px 16px; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.3px; }
.stat span { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tile { background: var(--soft); border-radius: 16px; padding: 18px 20px; }
.tile small { display: block; color: var(--muted); font-size: .92rem; }
.tile b { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.3px; }
.tile.deal { background: var(--deal-soft); }
.tile.deal b, .tile.deal small { color: var(--deal-text); }
.notice { background: var(--deal-soft); color: var(--deal-text); padding: 14px 18px; border-radius: 16px; line-height: 1.6; margin-bottom: 20px; }

.rows { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; }
.rows dt { color: var(--muted); }
.rows dd { overflow-wrap: anywhere; }

.lead { padding: 18px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.lead:first-of-type { border-top: 0; padding-top: 0; }
.lead-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.lead-title { font-weight: 700; font-size: 1.08rem; }
.lead small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.summary .form-grid { margin-top: 0; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
details.adder { margin-top: 16px; }
details.adder summary, details.explain summary { cursor: pointer; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details.adder summary { border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 18px; min-height: 46px; }
details.explain { background: var(--soft); border-radius: 16px; padding: 4px 18px; margin-bottom: 18px; }
details.explain p { margin: 0 0 12px; line-height: 1.6; }
.hint { color: var(--muted); font-size: .95rem; }

table { width: 100%; border-collapse: collapse; }
th { text-align: start; color: var(--muted); font-weight: 500; font-size: .9rem; padding: 0 0 8px; }
td { padding: 11px 0; border-top: 1px solid var(--line); }
td + td, th + th { padding-inline-start: 16px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.photos:empty { display: none; }
.photo { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo button { position: absolute; top: 6px; inset-inline-end: 6px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: #fff; color: #b42318; cursor: pointer; display: grid; place-items: center; }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; }
.links a:hover { border-color: var(--text); }

/* ---------- add + login ---------- */
.narrow { max-width: 680px; margin: 32px auto 0; }
.panel { border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--float); background: var(--bg); }
.panel > h2 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg .btn.on { background: var(--ink); border-color: var(--ink); color: var(--ink-on); }
.results { display: grid; gap: 8px; margin-top: 16px; }
.result { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; min-height: 60px; }
.result:hover { border-color: var(--text); }
.result small { display: block; color: var(--muted); }
.result i { font-size: 1.3rem; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--soft); }
.login .panel { width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; }
.err { color: var(--danger); font-weight: 600; }

.listhead .pick.on select { border-color: var(--line-strong); box-shadow: none; font-weight: 600; }
.listhead .pick select { font-weight: 600; }
.pick { position: relative; }

/* ---------- more information ---------- */
.tabs { grid-template-columns: repeat(5, 1fr) !important; }
.gallery.has-photo { grid-template-columns: 1.3fr 1fr .8fr; }
.gallery > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-tile.dark { background: var(--ink); color: var(--ink-on); }
.g-tile.dark:hover { background: var(--ink); opacity: .9; }
.g-tile.dark span { color: inherit; opacity: .78; }
@media (max-width: 899px) { .gallery.has-photo { grid-template-columns: 1fr; } .gallery > img { height: 240px; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 24px; }
.points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.points i { font-size: 1.3rem; color: var(--deal); flex: none; margin-top: 2px; }
.viol { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.viol h3 { margin: 0 0 8px; font-size: 1.05rem; }
.viol-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; }
.viol-row small { color: var(--muted); }
.guide-intro { max-width: 70ch; margin-bottom: 20px; line-height: 1.65; }
.srcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.src { background: var(--soft); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.src > b { font-family: var(--display); font-size: 1.1rem; }
.src p { color: var(--muted); line-height: 1.6; flex: 1; }
.src .btn { min-height: 42px; }

/* ---------- cards: satellite view from ready tiles, seller heat ---------- */
.mosaic { position: absolute; top: 0; left: 0; width: 200%; aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; direction: ltr; }
.card-shot .mosaic img { height: auto; aspect-ratio: 1; }
.card:hover .card-shot .mosaic img { transform: none; }
.card-heat { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #fff; color: #9a3412; box-shadow: 0 2px 8px rgb(14 26 43 / .2); }
.card-heat.hot { background: #c2410c; color: #fff; }
.grid.stale { opacity: .5; transition: opacity .15s ease; }

/* ---------- how motivated the seller is ---------- */
.motive { display: flex; align-items: center; gap: 22px; }
.motive .tier { display: block; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.2px; }
.motive p { color: var(--muted); line-height: 1.55; max-width: 52ch; margin-top: 2px; }
.dial { --v: 0; flex: none; width: 108px; height: 108px; border-radius: 999px; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--deal) calc(var(--v) * 1%), var(--line) 0); }
.dial.cool { background: conic-gradient(var(--muted) calc(var(--v) * 1%), var(--line) 0); }
.dial::before { content: ''; position: absolute; inset: 9px; border-radius: 999px; background: var(--bg); }
.dial > div { position: relative; text-align: center; line-height: 1.1; }
.dial b { display: block; font-family: var(--display); font-size: 2.1rem; letter-spacing: -1px; }
.dial small { color: var(--muted); font-size: .78rem; }
.reasons { list-style: none; margin: 22px 0 0; padding: 0; }
.reasons li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.reasons li > span { flex: 1; min-width: 0; }
.reasons i { font-size: 1.3rem; color: var(--deal); flex: none; }
.reasons li > b { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--deal-soft); color: var(--deal-text); font-size: .88rem; }
@media (max-width: 599px) { .motive { gap: 16px; } .dial { width: 88px; height: 88px; } .dial b { font-size: 1.7rem; } }

/* ---------- deal analysis ---------- */
#deal { scroll-margin-top: 96px; }
.lead-in { color: var(--muted); max-width: 68ch; line-height: 1.6; margin: -6px 0 0; }
.step { padding-top: 28px; }
.step + .step { margin-top: 28px; border-top: 1px dashed var(--line-strong); }
.step > h3 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.2px; margin-bottom: 16px; }
.step h4 { margin: 22px 0 10px; font-size: 1rem; font-weight: 700; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: var(--ink-on); display: grid; place-items: center; font-size: .95rem; }
.step .field { margin-top: 0; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
@media (max-width: 699px) { .form-grid.three { grid-template-columns: 1fr; } }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { text-align: start; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; transition: transform .12s ease; }
.opt:hover { border-color: var(--text); }
.opt:active { transform: scale(.98); }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--soft); }
.opt b { font-family: var(--display); font-size: 1.08rem; }
.opt span { color: var(--muted); font-size: .9rem; line-height: 1.4; flex: 1; }
.opt small { font-weight: 700; font-size: 1.02rem; margin-top: 8px; }
@media (max-width: 599px) { .opts { grid-template-columns: 1fr; } }
.sys { display: flex; flex-wrap: wrap; gap: 8px; }
.sys .chip { height: auto; min-height: 44px; padding: 6px 16px; display: inline-flex; align-items: center; gap: 8px; }
.sys .chip small { color: var(--muted); font-size: .88rem; font-weight: 500; }
.sys .chip.on small { color: inherit; opacity: .8; }
.sys em { font-style: normal; font-size: .76rem; font-weight: 700; background: var(--deal-soft); color: var(--deal-text); padding: 1px 8px; border-radius: 999px; }
.dim { opacity: .4; }
.total-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 18px; padding: 16px 20px; background: var(--soft); border-radius: 16px; font-weight: 600; }
.total-line b { font-family: var(--display); font-size: 1.45rem; letter-spacing: -.3px; }
.seg.two { grid-template-columns: 1fr 1fr; }
.comps { display: flex; flex-direction: column; }
.comp { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.comp:first-child { border-top: 0; }
.comp input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin: 0; }
.comp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.comp-main b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.comp-main .badge { font-size: .78rem; padding: 2px 10px; }
.comp-main small, .comp-price small { color: var(--muted); font-size: .9rem; }
.comp-price { flex: none; text-align: end; display: flex; flex-direction: column; gap: 2px; }
.comp.off { opacity: .45; }
.comp.off .comp-price b { text-decoration: line-through; }
.busy { display: flex; align-items: center; gap: 10px; }
.busy::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 999px; border: 2.5px solid var(--line-strong); border-top-color: var(--deal); }
@media (prefers-reduced-motion: no-preference) { .busy::before { animation: spin .8s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.moneybar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--soft); direction: ltr; }
.moneybar i { display: block; height: 100%; }
.s-price { background: var(--ink); }
.s-repairs { background: var(--muted); }
.s-costs { background: var(--line-strong); }
.s-profit { background: var(--deal); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 14px; color: var(--muted); font-size: .92rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 999px; }
.money td:last-child { text-align: end; white-space: nowrap; }
.money tr.sum td { font-weight: 700; border-top: 2px solid var(--text); }
.money tr.win td, .money tr.lose td { font-weight: 700; font-size: 1.15rem; }
.money tr.win td { color: var(--deal); }
.money tr.lose td { color: var(--danger); }
.points.checks { grid-template-columns: 1fr; gap: 14px; }
.points.checks li { font-weight: 500; line-height: 1.55; }

/* ---------- the bottom line, in the side card ---------- */
.bl { display: flex; flex-direction: column; gap: 14px; }
.bl-max { background: var(--ink); color: var(--ink-on); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; }
.bl-max small { color: inherit; opacity: .78; }
.bl-max b { font-family: var(--display); font-size: 2.2rem; letter-spacing: -1px; line-height: 1.15; }
.bl-max span { font-weight: 600; opacity: .9; }
.bl-max.good { background: var(--deal); }
.verdict { font-weight: 600; line-height: 1.5; }
.verdict.good { color: var(--deal); }
.bl .tile small { font-size: .84rem; line-height: 1.3; }
/* each tile overlaps the next by a pixel, so no hairline shows between them at odd card widths */
.card-shot .mosaic img { width: calc(100% + 1px); max-width: none; }
