/* Brand palette (docs/brand-guide.webp): Navy #0B2344, Marine Blue #007BFF,
   Aqua #00C2FF, Cloud Gray #E6E8EB. Type: Montserrat. */
:root {
  --navy: #0B2344; --marine: #007BFF; --aqua: #00C2FF; --cloud: #E6E8EB;
  --bg: #F4F6F8; --surface: #ffffff; --text: #0B2344; --muted: #56657A; --line: var(--cloud);
  /* Marine Blue darkened a step so white button text and links meet WCAG AA contrast */
  --brand: #0066D6; --brand-ink: #ffffff; --accent: var(--aqua); --accent-ink: #0B2344; --accent-soft: #E1F4FE;
  --header: var(--navy); --header-ink: #ffffff; --shadow: 0 1px 2px rgba(11,35,68,.06), 0 4px 14px rgba(11,35,68,.07);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07172D; --surface: #0E2442; --text: #E6E8EB; --muted: #9AABC2; --line: #1E3A5F;
    --brand: #4DA3FF; --brand-ink: #05162B; --accent-soft: #0F3554;
    --header: #061428; --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, .card-title, .card-price, .vdp-price, .seller-name, .btn { font-weight: 700; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.site-header { background: var(--header); color: var(--header-ink); }
.site-header { border-bottom: 3px solid var(--marine); }
.header-row { display: flex; align-items: center; gap: 28px; padding-top: 10px; padding-bottom: 10px; }
.brand { flex: none; display: block; line-height: 0; }
.brand img { height: 68px; width: auto; }
.ai-search { flex: 1; display: flex; max-width: 640px; }
.ai-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; border-radius: var(--radius) 0 0 var(--radius);
  font-size: 15px; font-family: inherit; background: #fff; color: #0B2344; }
.ai-search button { padding: 0 20px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--aqua);
  color: var(--navy); font: 700 15px Montserrat, sans-serif; cursor: pointer; }
.ai-search button:hover { background: #33CEFF; }
.ai-search.busy button { opacity: .6; }

/* buttons + inputs */
.btn { display: inline-block; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-size: 14px; font-family: inherit; text-align: center; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-block { display: block; width: 100%; margin-top: 8px; }
.link-quiet { color: var(--muted); font-size: 13px; }
select, .range input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit; }

/* results page */
.srp { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 24px 0; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  align-self: start; position: sticky; top: 16px; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; }
.f-field { display: block; margin: 0 0 14px; }
.f-field > span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 4px; }
.range { display: flex; gap: 8px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-head h1 { margin: 0; }
.results-tools { display: flex; gap: 8px; align-items: center; }
.show-filters { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .12s ease; }
.card:hover { transform: translateY(-2px); }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--aqua); color: var(--navy); font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; }
.photo-count { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px;
  padding: 2px 8px; border-radius: 6px; }
.card-body { padding: 12px 14px 14px; }
.card-title { font-weight: 600; }
.card-price { font-size: 1.15rem; margin: 2px 0 4px; color: var(--brand); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.card-loc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pager { display: flex; justify-content: center; gap: 20px; align-items: center; padding: 28px 0; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; margin-top: 16px; }

/* detail page */
.crumbs { padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.vdp { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 12px 0 24px; }
.gallery-main { aspect-ratio: 4 / 3; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; }
.thumb { flex: 0 0 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.thumb.on { border-color: var(--aqua); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.vdp-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; }
.vdp-price { font-size: 1.8rem; color: var(--brand); }
.vdp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vdp-facts span { background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.vdp-facts .pending { background: #fdecc8; color: #5a3d00; }
.seller { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.seller-name { font-weight: 700; }
.vdp-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; font-weight: 600; text-align: right; }
.description { white-space: pre-line; }
.similar { padding: 24px 0; }
.page { max-width: 720px; padding: 32px 0; }

.site-footer { background: var(--header); color: #C9D3E0; margin-top: 40px; padding: 22px 0; font-size: 13px;
  border-top: 3px solid var(--marine); }
.footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo img { height: 40px; width: auto; display: block; }
.site-footer nav { display: flex; gap: 18px; flex: 1; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }

@media (max-width: 900px) {
  .srp, .vdp, .vdp-detail { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
  .show-filters { display: inline-block; }
}
@media (max-width: 560px) {
  .header-row { flex-wrap: wrap; gap: 8px; }
  .brand img { height: 52px; }
  .ai-search { max-width: none; flex-basis: 100%; }
  .specs { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px; }
}

/* ---------- main nav (Boats / Power / Sail / Research menu) ---------- */
.site-nav { background: rgba(255,255,255,.04); border-top: 1px solid rgba(255,255,255,.08); }
.nav-row { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: #D7E1EE; text-decoration: none;
  font: 600 14px Montserrat, sans-serif; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.nav-link:hover, .nav-menu.open .nav-menu-btn { color: #fff; }
.nav-link.on, .nav-menu.on .nav-menu-btn { color: #fff; border-bottom-color: var(--aqua); }
.nav-menu { position: relative; }
.nav-menu-btn svg { transition: transform .15s ease; }
.nav-menu.open .nav-menu-btn svg { transform: rotate(180deg); }
.nav-dropdown { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 290px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11,35,68,.18); }
.nav-menu.open .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.nav-dropdown a:hover, .nav-dropdown a:focus { background: var(--accent-soft); }
.nav-dropdown strong { display: block; font-size: 14px; }
.nav-dropdown span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.est-payment { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; }

/* ---------- finance calculator ---------- */
.calc-hero { text-align: center; padding: 36px 0 8px; }
.calc-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 8px; }
.calc-hero h1 span { color: var(--brand); }
.calc-hero p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 28px 0 8px; align-items: start; }
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.calc-card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-bottom: 16px; }
.calc-card h2 svg { color: var(--brand); }
.calc-mode { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.calc-mode button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px; cursor: pointer;
  font: 600 14px Montserrat, sans-serif; color: var(--muted); margin-bottom: -1px; }
.calc-mode button.on { color: var(--brand); border-bottom-color: var(--brand); }
.calc-field { margin-bottom: 20px; }
.calc-field[hidden] { display: none; }
.calc-field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.stepper:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,123,255,.15); }
.stepper button { flex: none; width: 42px; height: 44px; border: 0; background: var(--bg); color: var(--text); font-size: 20px; cursor: pointer; }
.stepper button:hover { background: var(--accent-soft); }
.stepper input { flex: 1; min-width: 0; width: 100%; border: 0; padding: 0 8px; height: 44px; font: 600 16px Montserrat, sans-serif;
  color: var(--text); background: transparent; outline: none; }
.stepper .affix { color: var(--muted); font-size: 14px; padding: 0 8px; }
.calc-field input[type=range] { width: 100%; margin: 12px 0 2px; accent-color: var(--marine); }
.ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.calc-note { font-size: 12px; color: var(--muted); margin: 0; }
.calc-result { background: linear-gradient(160deg, var(--navy) 0%, #0F3A70 60%, #0B5BB5 100%); color: #fff; border-radius: 14px;
  padding: 28px; position: sticky; top: 16px; box-shadow: 0 12px 30px rgba(11,35,68,.25); }
.calc-headline { text-align: center; padding: 8px 0 18px; }
.calc-label { font-weight: 700; font-size: 1.05rem; color: #CFE6FF; }
.calc-big { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.1; margin: 6px 0; letter-spacing: -.01em; }
.calc-sub { font-size: 13px; color: #CFE6FF; }
.calc-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.15); }
.calc-bar span { display: block; height: 100%; transition: width .25s ease; }
#o-bar-principal { background: var(--aqua); } #o-bar-interest { background: #7FB8FF; }
.calc-legend { display: flex; gap: 16px; font-size: 12px; color: #CFE6FF; margin: 8px 0 14px; }
.calc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.k-principal { background: var(--aqua); } .k-interest { background: #7FB8FF; }
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.calc-stats div { background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
.calc-stats dt { font-size: 12px; color: #CFE6FF; }
.calc-stats dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 700; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cloud); }
.calc-disclaimer { font-size: 11.5px; line-height: 1.5; color: #B9CBE2; margin: 14px 0 0; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 28px 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-result { position: static; }
}
@media (max-width: 560px) {
  .nav-row { overflow-x: auto; }
  .nav-link { padding: 9px 10px; font-size: 13px; }
  .nav-menu { position: static; }
  .nav-dropdown { left: 16px; right: 16px; min-width: 0; }
  .calc-card, .calc-result, .faq { padding: 18px; }
  .calc-stats dd { font-size: 1rem; }
}

/* ---------- accounts ---------- */
.nav-account { margin-left: auto; display: flex; align-items: center; }
.inline-form { display: inline; margin: 0; }
.flashes { margin: 16px 0 0; display: grid; gap: 8px; }
.flash { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.flash-ok { border-color: #8fd3b0; background: #E9F8F0; color: #0b5132; }
.flash-error { border-color: #f1b0b0; background: #FDEEEE; color: #7a1717; }
@media (prefers-color-scheme: dark) {
  .flash-ok { background: #0f3324; color: #b9f0d2; border-color: #1f6b47; }
  .flash-error { background: #3a1414; color: #ffc9c9; border-color: #7a2a2a; }
}
.auth-card { max-width: 440px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 560px; }
.auth-card h2 { margin-top: 18px; }
.auth-alt { font-size: 14px; margin: 14px 0 0; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.field input, .field select, .field textarea, .cell-input { width: 100%; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--text); font: 15px Montserrat, sans-serif; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,123,255,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted small, small { font-weight: 400; }

/* ---------- admin ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 4px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; flex-basis: 100%; }
.admin-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 12px 0 18px; overflow-x: auto; }
.admin-nav a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-nav a.on { color: var(--text); border-bottom-color: var(--brand); }
.pill { display: inline-block; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 8px;
  font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; }
.pill-muted { background: var(--line); color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 1.05rem; }
.panel h3 { font-size: .95rem; margin: 16px 0 8px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.admin-grid .panel { margin-bottom: 0; }
.admin-grid + .panel, .admin-grid { margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpis b { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.kpis span { font-size: 12px; color: var(--muted); }
.callout { display: block; background: var(--accent-soft); border: 1px solid var(--aqua); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 18px; text-decoration: none; color: var(--text); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; }
.bar { flex: 1; min-height: 2px; background: linear-gradient(180deg, var(--aqua), var(--marine)); border-radius: 3px 3px 0 0; }
.bars-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-tight td { padding: 5px 8px; font-size: 13px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.wrapcell { word-break: break-word; max-width: 360px; }
.nowrap { white-space: nowrap; }
.cell-input { padding: 6px 8px; font-size: 13px; min-width: 120px; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-danger { background: #C62828; color: #fff; }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--line); }
.st-ok { background: #DDF5E8; color: #0b5132; } .st-warning { background: #FFF1D6; color: #6b4600; }
.st-error { background: #FDE2E2; color: #7a1717; }
.request { display: grid; grid-template-columns: 1fr 320px; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.request:first-of-type { border-top: 0; }
.request-who > div { font-size: 14px; margin-top: 2px; }
.match { color: #0b7a45; font-weight: 600; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-inline .field { margin: 0; min-width: 160px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; padding-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg a { padding: 7px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg a.on { background: var(--brand); color: #fff; }
.rejects { margin-top: 12px; font-size: 14px; }
ul.plain { list-style: none; padding: 0; font-size: 14px; }
code { background: var(--bg); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
@media (max-width: 700px) {
  .request { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .nav-account { margin-left: 0; }
}
.pre { white-space: pre-wrap; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 420px; overflow: auto; margin: 0; }

/* ---------- research: dealers, boat data, marinas ---------- */
.r-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 0; overflow-x: auto; }
.r-tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.r-tabs a.on { color: var(--text); border-bottom-color: var(--aqua); }
.r-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 16px; }
.r-search input[type=search] { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font: 15px Montserrat, sans-serif; }
.r-search select { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text);
  font: 14px Montserrat, sans-serif; max-width: 100%; }
.r-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; flex-basis: 100%; order: 3; }
.r-checks .check { padding: 0; }
.r-seg { margin: 0 0 16px; }
.r-list { display: grid; gap: 8px; }
.r-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.r-row:hover { border-color: var(--brand); }
.r-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.r-row-main strong { overflow-wrap: anywhere; }
.r-row-main span { font-size: 13px; }
.r-row-side { flex: none; font-size: 14px; color: var(--muted); text-align: right; }
.r-row-side b { color: var(--brand); font-size: 1.05rem; }
.r-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 8px 0 8px; align-items: start; }
.r-detail h1 { margin-bottom: 4px; }
.r-sub { margin: 0 0 14px; }
.r-detail .panel { margin-top: 16px; }
.r-detail .kpis { margin-top: 14px; }
.r-photo { width: 100%; border-radius: 8px; margin-bottom: 12px; display: block; }
.r-hero { margin: 6px 0 4px; aspect-ratio: 16 / 9; }
.r-others { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.r-credit { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.r-letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 5; }
.r-letters a { display: inline-block; min-width: 30px; text-align: center; padding: 4px 6px; border-radius: 6px; text-decoration: none;
  font-weight: 700; font-size: 14px; background: var(--surface); border: 1px solid var(--line); }
.r-letter { scroll-margin-top: 56px; }
.r-letter h2 { border-bottom: 2px solid var(--aqua); display: inline-block; padding-right: 10px; margin: 18px 0 8px; }
.r-makes { list-style: none; padding: 0; margin: 0; columns: 4 220px; column-gap: 24px; font-size: 14px; }
.r-makes li { padding: 3px 0; break-inside: avoid; }
.r-table { padding: 6px 10px; }
.r-ratios { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.r-ratios div { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.r-ratios dt { font-size: 13px; color: var(--muted); }
.r-ratios dd { margin: 2px 0 4px; font-size: 1.4rem; font-weight: 700; color: var(--brand); }
.r-ratios p { margin: 0; font-size: 12px; }
.r-amen { list-style: none; padding: 0; margin: 0; columns: 3 160px; font-size: 14px; }
.r-amen li { padding: 3px 0 3px 22px; position: relative; break-inside: avoid; }
.r-amen li::before { content: "✓"; position: absolute; left: 2px; color: var(--marine); font-weight: 700; }
.r-amen-near li::before { content: "•"; color: var(--muted); }
.r-map iframe { width: 100%; height: 300px; border: 0; border-radius: 8px; display: block; margin-bottom: 6px; }
@media (max-width: 900px) {
  .r-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .r-row { padding: 10px 12px; }
  .r-table .tbl { font-size: 13px; }
}
.r-search > select, .r-search > .btn { width: auto; flex: none; margin: 0; }
.r-search > input[type=search] { width: auto; }
.st-none { background: var(--line); color: var(--muted); }
.switch { display: inline-block; position: relative; width: 40px; height: 22px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,123,255,.3); }
.footer-family { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.footer-family .muted { color: #9DB0C7; }
