/* SA CarMarket Place public site */
:root {
  /* Palette: Rivo Foods gold, bronze and cream, with midnight green */
  --bg: #ffffff;          /* page background */
  --soft: #f2f5f5;        /* light grey fill for inputs and tags inside white boxes */
  --card: #ffffff;
  --ink: #0d2629;         /* near-black midnight green for body text */
  --muted: #57696c;
  --line: #e9e0c9;        /* soft gold-tinted borders */
  --brand: #004953;       /* midnight green: buttons, hero */
  --brand-dark: #00333b;  /* deeper midnight green: hovers, headings, footer */
  --brand-tint: #e3eff0;
  --accent: #c9a042;      /* gold trim: featured tags, price marker */
  --accent-light: #e6cf8f;
  --bronze: #7c4606;      /* "FOODS" / "DRIED" lettering */
  --serif: Georgia, "Times New Roman", Times, serif;
  --header-h: calc(67px + env(safe-area-inset-top, 0px));
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 51, 59, .06), 0 4px 16px rgba(0, 51, 59, .07);
  --great-bg: #e2eedf; --great: #1d5a2c;
  --good-bg: #e4ecef;  --good: #25506a;
  --fair-bg: #f6ebcf;  --fair: #6e4a08;
  --high-bg: #f6e0da;  --high: #8e2f1d;
  --none-bg: #eeeae0;  --none: #5d6166;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header and footer */
/* Header and menu bar */
/* The menu bar stays pinned to the top of the screen while the page scrolls. */
.site-header { background: var(--brand-dark); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0, 30, 35, .18); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
/* Logo lockup: "SA" above "Car", "PLACE" tucked under the end of "Market". */
.logo {
  display: inline-grid; grid-template-columns: auto auto;
  grid-template-areas: ". sa" "mark name" ". place";
  align-items: center; column-gap: 8px;
  text-decoration: none; font-size: 24px; flex: none; color: #fbf8f1;
}
.logo-mark { grid-area: mark; color: #fbf8f1; }
.logo-name { grid-area: name; font-weight: 700; font-family: var(--serif); letter-spacing: -.005em; line-height: 1; }
.logo b { color: var(--accent); font-weight: 700; }
.logo-sa, .logo-place {
  font-family: var(--serif); font-weight: 700; font-size: .5em; line-height: 1;
  letter-spacing: .22em; text-transform: uppercase;
}
.logo-sa { grid-area: sa; justify-self: start; margin: 0 0 -.66em .06em; }
.logo-place { grid-area: place; justify-self: end; margin: -.7em -.06em 0 0; text-transform: none; letter-spacing: .06em; font-size: .56em; }

.menu { display: flex; align-items: center; justify-content: space-between; flex: 1; min-width: 0; }
.menu-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.menu-item { position: relative; }
.menu-top {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  background: none; border: 0; border-radius: 8px; color: #f2eedf; font: inherit; font-size: 15.5px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.menu-top:hover, .menu-top[aria-expanded="true"] { background: rgba(255, 255, 255, .09); color: #fff; }
.menu-top.is-current { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.chev { flex: none; transition: transform .15s; opacity: .85; }
.menu-top[aria-expanded="true"] .chev { transform: rotate(180deg); }
.user-icon { flex: none; }
.saved-count { color: var(--accent-light); }
.login-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; margin-left: 8px;
  border: 1.5px solid var(--accent); border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600;
}
.login-btn:hover { background: var(--accent); color: #231601; }

.submenu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 51, 59, .18);
}
.sub-right .submenu { left: auto; right: 0; }
.menu-top[aria-expanded="true"] + .submenu { display: block; }
.submenu a, .sub-link {
  display: block; width: 100%; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none;
  font: inherit; font-size: 15px; text-align: left; background: none; border: 0; cursor: pointer;
}
.submenu a:hover, .sub-link:hover { background: var(--brand-tint); color: var(--brand-dark); }
.submenu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.sub-title { margin: 8px 12px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bronze); }
.sub-title:first-child { margin-top: 4px; }
.sub-note { margin: 6px 12px 8px; font-size: 14px; color: var(--muted); max-width: 230px; }
.menu-toggle { display: none; }

/* Desktop: dropdowns also open on hover */
@media (hover: hover) and (min-width: 1121px) {
  .has-sub:hover > .submenu { display: block; }
  .has-sub:hover > .menu-top .chev { transform: rotate(180deg); }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}

/* Phones and tablets: burger button, menu drops down as a full-width panel */
@media (max-width: 1200px) {
  :root { --header-h: calc(63px + env(safe-area-inset-top, 0px)); }
  body.menu-open { overflow: hidden; }
  .header-row { justify-content: space-between; min-height: 60px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: none; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 8px; cursor: pointer; color: #fbf8f1;
  }
  .menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--brand-dark); border-bottom: 3px solid var(--accent); padding: 8px 12px 16px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  }
  .menu-open .menu { display: flex; }
  .menu-list { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-right { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 8px; padding-top: 8px; }
  .menu-top { width: 100%; justify-content: space-between; font-size: 16px; min-height: 48px; }
  .menu-top .chev { margin-left: auto; }
  .menu-top.is-current { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 8px 8px 0; }
  .submenu, .sub-right .submenu { position: static; box-shadow: none; border: 0; border-radius: 8px; margin: 2px 0 8px; min-width: 0; }
  .login-btn { margin: 8px 0 0; justify-content: center; width: 100%; min-height: 46px; }
}

.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--great-bg); color: var(--great); font-weight: 500; }

/* Buttons and form controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-block { width: 100%; }
select, input[type="search"], input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f6b67' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field .errorlist { list-style: none; margin: 2px 0 0; padding: 0; color: var(--high); font-size: 13px; }
.form-error { padding: 10px 12px; border-radius: 10px; background: var(--high-bg); color: var(--high); font-size: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

/* Hero search */
.hero { background: var(--brand); color: #fff; padding: 36px 0 32px; border-bottom: 3px solid var(--accent); }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: .005em; }
.hero-sub { margin: 8px 0 20px; color: var(--accent-light); max-width: 640px; }
.searchbar {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px;
  background: var(--card); padding: 8px; border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.searchbar input, .searchbar select { border-color: transparent; background-color: var(--soft); }
.searchbar .btn { padding: 0 22px; }

/* Results layout */
.results-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.filters-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; }
/* The whole filter column stays in view below the menu bar; long filter lists scroll inside it. */
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; border-radius: var(--radius); }
.filters-box summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-weight: 700; padding: 12px 0; }
.filters-box summary::-webkit-details-marker { display: none; }
.filters-box summary > span:first-child::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.filters-box[open] summary > span:first-child::after { transform: translateY(1px) rotate(-135deg); }
.filters-box:not([open]) { padding-bottom: 4px; }
.count-pill { background: var(--brand); color: #fff; font-size: 12px; border-radius: 99px; padding: 1px 8px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.filter-grid .wide { grid-column: 1 / -1; }
.filter-actions { display: grid; gap: 8px; margin-top: 16px; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h2 { font-family: var(--serif); color: var(--brand-dark); font-size: 24px; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort label { font-size: 14px; color: var(--muted); }
.sort select { width: auto; min-width: 190px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--brand-tint); color: var(--brand-dark); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { background: #d2e5e7; }

/* Listing cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-art, .detail-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 10% 8% 4%;
  background: linear-gradient(180deg, #f4f7f7 0%, #e6eced 100%);
}
.card-body { padding: 14px 16px 16px; }
.card-price { font-size: 22px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; color: var(--brand-dark); }
.card-title { font-size: 16px; margin-top: 10px; }
.card-variant { margin: 2px 0 8px; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; font-size: 14px; }
.card-meta li:not(:last-child)::after { content: "·"; margin: 0 7px; color: var(--muted); }
.card-where { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.card-where span:last-child { text-align: right; }

.tag { position: absolute; top: 10px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.tag-featured { left: 10px; background: var(--accent); color: #2e1d02; }
.tag-condition { right: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line); }

.rating { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 6px; }
.rating-great { background: var(--great-bg); color: var(--great); }
.rating-good  { background: var(--good-bg);  color: var(--good); }
.rating-fair  { background: var(--fair-bg);  color: var(--fair); }
.rating-high  { background: var(--high-bg);  color: var(--high); }
.rating-none  { background: var(--none-bg);  color: var(--none); }

/* Car illustration */
.car-art { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.car-shadow { fill: rgba(28, 35, 33, .14); }
.car-body { stroke: rgba(28, 35, 33, .28); stroke-width: 1; }
.car-glass { fill: #33464f; stroke: rgba(255,255,255,.45); stroke-width: 1; }
.car-line { stroke: rgba(28, 35, 33, .3); stroke-width: 1.2; fill: none; }
.car-wheel circle { fill: #1f2426; }
.car-wheel .car-hub { fill: #a7adb2; }

/* Pagination and empty state */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.empty p { color: var(--muted); margin: 8px 0 18px; }

/* Detail page */
.crumbs { margin: 20px 0 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs-hero { margin: 0 0 8px; color: rgba(255, 255, 255, .7); }
.crumbs-hero a { color: rgba(255, 255, 255, .85); }

/* Popular searches (links for visitors and search engines) */
.popular { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 8px; }
.popular h2 { font-family: var(--serif); font-size: 22px; color: var(--brand-dark); margin: 0 0 12px; }
.popular-intro { max-width: 820px; margin-bottom: 20px; }
.popular-intro p { color: var(--muted); margin: 0; }
.popular-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 28px; }
.popular h3 { font-size: 15px; margin: 8px 0 6px; color: var(--ink); }
.popular ul { list-style: none; margin: 0; padding: 0; }
.popular li { margin: 0 0 4px; }
.popular a { font-size: 14px; color: var(--brand); text-decoration: none; }
.popular a:hover { text-decoration: underline; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.detail-art { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16 / 8; }
.detail-art .car-art { max-width: 520px; }
.art-note { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--muted); }
.detail-title { font-family: var(--serif); color: var(--brand-dark); font-size: clamp(28px, 3.6vw, 38px); margin-top: 20px; }
.detail-variant { color: var(--muted); font-size: 18px; margin: 4px 0 16px; }
.keyspecs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.keyspecs li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.keyspecs span { display: block; font-size: 12px; color: var(--muted); }
.keyspecs b { font-size: 15px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel h2 { font-size: 18px; margin-bottom: 12px; color: var(--brand-dark); }
.panel p { margin: 0; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.features li { background: var(--soft); border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.features li::before { content: "✓ "; color: var(--bronze); font-weight: 700; }

.range { margin-top: 22px; }
.range-track { position: relative; height: 10px; border-radius: 99px; background: var(--soft); margin: 18px 9px 0; }
.range-band { position: absolute; top: 0; bottom: 0; background: #c6dcdf; border-radius: 99px; }
.range-median { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--brand); transform: translateX(-1px); }
.range-mark { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); transform: translate(-50%, -50%); }
.range-legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 14px; }
.range-legend li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range-legend b { margin-left: auto; }
.key { display: inline-block; flex: none; }
.key-car { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.key-median { width: 2px; height: 14px; background: var(--brand); margin: 0 5px; }
.key-band { width: 12px; height: 10px; border-radius: 3px; background: #c6dcdf; }

.detail-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.price-card, .enquiry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.price-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; color: var(--brand-dark); }
.drop { margin: 10px 0 0; color: var(--great); font-weight: 600; font-size: 14px; }
.seller { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.seller p { margin: 0; }
.seller-name { font-weight: 700; }
.enquiry h2 { font-size: 18px; margin-bottom: 6px; }
.enquiry form { display: grid; gap: 12px; margin-top: 10px; }
.similar { margin-top: 36px; }
.similar h2 { font-family: var(--serif); color: var(--brand-dark); font-size: 24px; margin-bottom: 14px; }

/* Makes page */
.page-pad { padding-top: 28px; }
.page-pad h1 { font-family: var(--serif); color: var(--brand-dark); font-size: 34px; }
.makes { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.makes a { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.makes a:hover { box-shadow: var(--shadow); }
.makes span { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { margin-top: 64px; background: var(--brand-dark); color: #e9e3cf; border-top: 3px solid var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; padding: 44px 0 32px; }
.footer-col h2 { font-size: 15px; font-weight: 700; color: var(--accent); margin: 0 0 14px; letter-spacing: .01em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 4px 0; color: #dfe7e3; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.footer-bottom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 28px; padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-logo { font-size: 28px; grid-row: span 2; justify-self: start; }
.footer-note { margin: 0; font-size: 13.5px; color: #adc3c6; max-width: 720px; }
.trap-link { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-copy { margin: 0; font-size: 13.5px; color: #adc3c6; }

/* About, contact, help, legal */
.stat-row { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-row li { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 16px; }
.stat-row b { display: block; font-size: 30px; color: var(--brand-dark); line-height: 1.1; }
.stat-row span { color: var(--muted); font-size: 14px; }
.contact-list { margin: 0; display: grid; gap: 10px; }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; }
.faq { margin-bottom: 26px; }
.faq h2 { font-family: var(--serif); color: var(--brand-dark); font-size: 22px; margin-bottom: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--bronze); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 16px 16px; }
.warn-panel { border-left: 4px solid var(--high); border-radius: 0; }
.warn-ticks li::before { content: "!"; color: var(--high); left: 8px; }
.legal .panel p + ul, .legal .panel ul + p { margin-top: 10px; }
.legal .panel h3 { font-size: 16px; color: var(--brand-dark); margin: 16px 0 6px; }
.legal .panel h3:first-child { margin-top: 0; }
.legal .panel p + p { margin-top: 10px; }
.legal section.panel, .terms-part { scroll-margin-top: calc(var(--header-h) + 12px); }
.summary-panel { border-top: 3px solid var(--accent); background: #fbf9f3; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.terms-part { margin-top: 30px; }
.part-title { font-family: var(--serif); color: var(--brand-dark); font-size: 24px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.terms-part > .muted { margin: -2px 0 12px; }
.disclosures { margin: 12px 0 0; display: grid; }
.disclosures div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.disclosures div:last-child { border-bottom: 0; }
.disclosures dt { color: var(--muted); }
.disclosures dd { margin: 0; font-weight: 600; }
.cookie-table { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14.5px; }
.cookie-table [role="row"] { display: grid; grid-template-columns: 130px 1fr 190px; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.cookie-table .ct-head { border-top: 0; background: var(--soft); font-weight: 700; color: var(--brand-dark); }

/* Installable app */
[hidden] { display: none !important; }
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
.install-btn { color: var(--accent-light); }
.install-btn:hover { color: #fff; }
.app-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.app-hero img { flex: none; height: auto; }
.app-hero .lead { margin-bottom: 0; }
.install-now { border-top: 3px solid var(--accent); }
/* Mobile-only / desktop-only content (the class is set on <html> before the page draws) */
.is-desktop .only-mobile, .is-mobile .only-desktop { display: none !important; }
.phone-handoff { display: flex; align-items: center; gap: 28px; border-top: 3px solid var(--accent); }
.handoff-text { flex: 1; }
.qr { flex: none; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; line-height: 0; }
.qr svg { width: 180px; height: 180px; }
.app-url { word-break: break-all; color: var(--brand-dark); }
.installed-note { border-left: 4px solid var(--great); border-radius: 0; }
.offline-page { text-align: center; padding-top: 72px; padding-bottom: 40px; }
.offline-page .offline-logo { display: block; margin: 0 auto 8px; max-width: 70%; height: auto; }
.offline-page h1 { font-family: var(--serif); color: var(--brand-dark); font-size: 34px; margin-top: 12px; }
.offline-page .lead { margin: 10px auto 22px; }

/* Text-box right-click menu (replaces the browser's menu, which has Inspect) */
.text-menu { position: fixed; z-index: 1000; min-width: 200px; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 51, 59, .22); font-size: 14px; }
.text-menu button { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.text-menu button:hover:not([disabled]), .text-menu button:focus-visible { background: var(--brand-tint); color: var(--brand-dark); outline: none; }
.text-menu button[disabled] { color: #a9b3b4; cursor: default; }
.text-menu kbd { font: inherit; font-size: 12px; color: var(--muted); }
.text-menu button[disabled] kbd { color: #c3cbcc; }
.tm-hint { margin: 4px 10px 6px; font-size: 12.5px; color: var(--bronze); }

/* Accounts */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.auth-card h1 { font-family: var(--serif); color: var(--brand-dark); font-size: 30px; }
.auth-card > .muted { margin: 6px 0 18px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card input[type="password"] { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.auth-card small { font-size: 12.5px; }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: 15px; }
.flash-info { background: var(--brand-tint); color: var(--brand-dark); }
.save-form { margin: 14px 0 0; }
.save-btn { margin-top: 14px; }
.save-form .save-btn { margin-top: 0; }
.save-btn.is-saved { border-color: var(--accent); color: var(--bronze); background: #fbf3df; }
.calc-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.profile-section { margin-top: 32px; }
.profile-section h2 { font-family: var(--serif); color: var(--brand-dark); font-size: 24px; margin-bottom: 14px; }
.lead-list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.lead-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lead-list li:last-child { border-bottom: 0; }
.lead-list a { font-weight: 600; }
.lead-status { margin-left: auto; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-dark); }

/* Dealers */
.province-chips { margin: 18px 0 20px; }
.chip-on { background: var(--brand); color: #fff; }
.chip-on:hover { background: var(--brand-dark); }
.dealer-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dealer-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.dealer-card h2 { font-family: var(--serif); color: var(--brand-dark); font-size: 21px; }
.dealer-card p { margin: 0; }
.dealer-card .btn { margin-top: auto; }
.branch-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; font-size: 14.5px; }

/* Content pages */
.prose-page { max-width: 900px; }
.prose-page .panel p + p { margin-top: 10px; }
.lead { font-size: 18px; color: var(--muted); margin: 8px 0 22px; max-width: 680px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.two-col .panel { margin-bottom: 0; }
.steps { margin: 12px 0 16px; padding-left: 22px; display: grid; gap: 10px; }
.ticks { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--bronze); font-weight: 700; }
.rating-key { margin: 0; display: grid; gap: 10px; }
.rating-key div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; }
.rating-key dd { margin: 0; }
.link-panel { display: block; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.link-panel:hover { box-shadow: var(--shadow); }

/* Finance calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; margin-top: 20px; align-items: start; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-form .form-error { grid-column: 1 / -1; margin: 0; }
.calc-result { border-top: 3px solid var(--accent); position: sticky; top: calc(var(--header-h) + 16px); }
.calc-result p { margin: 0; }
.calc-big { font-size: 40px; font-weight: 800; color: var(--brand-dark); letter-spacing: -.02em; margin: 2px 0 12px !important; }
.calc-specs { grid-template-columns: 1fr; margin-bottom: 14px; }
.calc-result .small { margin-bottom: 14px; }

/* Small screens */
@media (max-width: 960px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results-layout, .detail-layout, .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-result { position: static; }
  .filters, .detail-side { position: static; max-height: none; overflow: visible; }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar input, .searchbar .btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .toc ol { columns: 1; }
  .disclosures div { grid-template-columns: 1fr; gap: 2px; }
  .cookie-table [role="row"] { grid-template-columns: 1fr; gap: 2px; }
  .cookie-table .ct-head { display: none; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .app-hero { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 32px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-logo { grid-row: auto; }
  .stat-row b { font-size: 24px; }
  .calc-form { grid-template-columns: 1fr; }
  .rating-key div { grid-template-columns: 1fr; gap: 4px; }
  .auth-card { padding: 22px 18px; }
  .logo { font-size: 20px; }
  .hero { padding: 24px 0; }
  .sort select { min-width: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* ---- Car photos ------------------------------------------------------------------ */
.card-art.has-photo { padding: 0; background: #e6eced; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery { margin-bottom: 4px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #0f1f22; aspect-ratio: 3 / 2; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-prev { left: 12px; } .gallery-next { right: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; padding: 2px 9px; border-radius: 99px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scroll-snap-type: x mandatory; }
.gallery-thumb { flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; scroll-snap-align: start; }
.gallery-thumb img { display: block; width: 96px; height: 64px; object-fit: cover; }
.gallery-thumb.is-current { border-color: var(--accent); }

/* ---- Selling ---------------------------------------------------------------------- */
.preview-banner { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--fair-bg); color: var(--fair); font-size: 15px; }
.owner-panel .btn { margin-top: 8px; }
.owner-panel form { margin: 0; }
.danger-link { color: var(--high); }
.submenu a.sub-alert { color: var(--high); font-weight: 700; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.my-ads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.my-ad { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.my-ad-pic { display: grid; place-items: center; width: 120px; height: 80px; border-radius: 8px; overflow: hidden; background: #e6eced; }
.my-ad-pic img { width: 100%; height: 100%; object-fit: cover; }
.my-ad-pic .car-art { width: 92%; }
.my-ad-info p { margin: 2px 0 0; font-size: 14px; }
.my-ad-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.my-ad-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.my-ad-actions form { margin: 0; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-right: 6px; background: var(--soft); color: var(--muted); }
.status-active { background: var(--great-bg); color: var(--great); }
.status-pending { background: var(--fair-bg); color: var(--fair); }
.status-removed { background: var(--high-bg); color: var(--high); }
.seller-leads li { justify-content: space-between; align-items: flex-start; }
.lead-message { margin: 6px 0 0; font-style: italic; }
.lead-contact { display: flex; gap: 6px; flex-wrap: wrap; }
.lead-contact .btn { font-weight: 600; }

.sell-page { max-width: 880px; }
.sell-step h2 { display: flex; align-items: center; gap: 10px; }
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 15px; flex: none; }
.sell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sell-grid .field.wide { grid-column: 1 / -1; }
.sell-page .panel p.small, .sell-page .field p.small { margin-top: 4px; }
.sell-page select:disabled { opacity: .6; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--high); }
.check.has-error { color: var(--high); }
.price-guide { background: var(--soft); border-radius: 10px; padding: 12px 14px; align-self: stretch; }
.price-guide p { margin: 0; }
.guide-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.guide-range { font-size: 18px; margin: 2px 0 4px !important; color: var(--brand-dark); }
.btn-small { padding: 6px 12px; min-height: 0; font-size: 14px; margin-top: 8px; }
.photo-drop {
  display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--soft); cursor: pointer; font-size: 15px !important; color: var(--ink) !important; font-weight: 400 !important;
}
.photo-drop:hover { border-color: var(--accent); }
.photo-drop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 24px; flex: none; }
#id_photos { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.photo-item { position: relative; display: grid; gap: 4px; }
.photo-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.photo-main { position: absolute; left: 6px; top: 6px; background: var(--accent); color: #2e1d02; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.photo-remove { border: 1px solid var(--line); background: var(--card); border-radius: 6px; font: inherit; font-size: 13px; padding: 3px; cursor: pointer; color: var(--high); }
.feature-boxes { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.sell-submit { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sell-page textarea { width: 100%; }
@media (max-width: 600px) {
  .my-ad { grid-template-columns: 96px 1fr; }
  .my-ad-pic { width: 96px; height: 64px; }
  .my-ad-actions { grid-column: 1 / -1; }
  .gallery-nav { width: 38px; height: 38px; font-size: 24px; }
}

/* ---- Sell form: steps and listing quality ------------------------------------------ */
[hidden] { display: none !important; }
.stepper { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); padding: 10px 0 12px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.stepper-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex: 1 1 520px; }
.stepper-list li { flex: 1; }
.stepper-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-align: left; border-bottom: 3px solid var(--line); }
.stepper-item:disabled { cursor: default; opacity: .6; }
.stepper-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft);
  color: var(--muted); font-size: 13px; font-weight: 700; flex: none; }
.stepper-item.is-done { color: var(--ink); border-bottom-color: var(--accent); }
.stepper-item.is-done .stepper-no { background: var(--accent); color: #2e1d02; }
.stepper-item.is-current { color: var(--brand-dark); font-weight: 700; border-bottom-color: var(--brand); }
.stepper-item.is-current .stepper-no { background: var(--brand); color: #fff; }
.quality { flex: 0 1 220px; }
.quality-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.quality-head b { color: var(--ink); }
.quality-bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.quality-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--high); transition: width .3s; }
.quality.q-mid .quality-bar span { background: var(--accent); }
.quality.q-high .quality-bar span { background: var(--great); }
.quality-box { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin: 14px 0 16px; max-width: 460px; }
.quality-box p { margin: 10px 0 2px !important; }
.quality-tips { margin: 0; padding-left: 18px; font-size: 14px; }
.sub-head { font-size: 15px; margin: 18px 0 10px; color: var(--ink); }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--line); }
.step-nav .sell-submit { margin: 0; }
.js-msg { color: var(--high); font-size: 13px; margin: 2px 0 0; }
.field-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 4px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 10px 22px; font-size: 15px; min-width: 64px; text-align: center; }
.segmented label + label span { border-left: 1px solid var(--line); }
.segmented input:checked + span { background: var(--brand); color: #fff; font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.sell-summary { display: grid; gap: 0; margin: 0 0 4px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sell-summary div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.sell-summary div:last-child { border-bottom: 0; }
.sell-summary dt { color: var(--muted); font-size: 14px; }
.sell-summary dd { margin: 0; font-weight: 600; }
@media (max-width: 700px) {
  .stepper-label { display: none; }
  .stepper-item { justify-content: center; }
  .stepper-item.is-current .stepper-label { display: inline; }
  .stepper-item.is-current { flex: 3; }
  .quality { flex: 1 1 100%; }
}

/* ---- Car page: history and condition -------------------------------------------------- */
.history-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; }
.history-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.history-list span { color: var(--muted); }
.warn-badge { display: inline-block; background: var(--high-bg); color: var(--high); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 99px; }
.ok-badge { display: inline-block; background: var(--great-bg); color: var(--great); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 99px; }

/* ---- Packages and payment ------------------------------------------------------------ */
.packages { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.package-card { position: relative; display: block; cursor: pointer; }
.package-card input { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; accent-color: var(--brand); }
.package-body { display: grid; gap: 4px; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); }
.package-card:hover .package-body { border-color: var(--accent); }
.package-card input:checked + .package-body { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.package-card input:focus-visible + .package-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.package-card.is-featured .package-body { background: linear-gradient(180deg, #fffaf0, #fff); }
.package-name { font-weight: 700; font-size: 17px; padding-right: 28px; }
.package-price { font-size: 26px; font-weight: 800; color: var(--brand-dark); letter-spacing: -.01em; }
.package-days { font-size: 14px; font-weight: 600; }
.package-blurb { font-size: 13px; color: var(--muted); }
.tag-inline { display: inline-block; background: var(--accent); color: #2e1d02; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; vertical-align: 2px; }
.pay-page { max-width: 820px; }
.pay-center { text-align: center; max-width: 620px; padding-top: 48px; }
.pay-car { display: flex; gap: 14px; align-items: center; margin: 12px 0 18px; }
.pay-car-pic { width: 120px; height: 80px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #e6eced; flex: none; }
.pay-car-pic img { width: 100%; height: 100%; object-fit: cover; }
.pay-car-pic .car-art { width: 92%; }
.pay-car p { margin: 0 0 2px; }
.pay-car-title { font-weight: 700; }
.pay-actions { margin-top: 8px; }
.pay-btn { min-width: 260px; }
.pay-actions p { margin-top: 10px !important; }
.test-note { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 8px; background: var(--fair-bg); color: var(--fair); font-size: 13px; font-weight: 600; }
.spinner { width: 42px; height: 42px; margin: 18px auto; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-draft { background: var(--fair-bg); color: var(--fair); }
.status-changes { background: var(--high-bg); color: var(--high); }
.status-expired { background: var(--soft); color: var(--muted); }
.review-note { margin: 6px 0 0; padding: 8px 10px; border-left: 3px solid var(--high); background: var(--high-bg); border-radius: 6px; font-size: 14px; }
.price-list { list-style: none; padding: 0; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.price-list li { display: grid; grid-template-columns: 90px 70px 1fr; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-list li:last-child { border-bottom: 0; }

/* --- My ads: views and alerts (sellers' dashboard) --- */
.st h1 { margin-bottom: 4px; }
.st-periods { display: flex; gap: 6px; }
.st-periods a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; background: var(--card); }
.st-periods a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.st-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.st-label { color: var(--muted); font-size: 13px; }
.st-value { font-size: 30px; font-weight: 700; color: var(--brand-dark); margin: 2px 0; font-variant-numeric: tabular-nums; }
.st-unit { font-size: 18px; font-weight: 400; color: var(--muted); }
.st-hint { color: var(--muted); font-size: 13px; }
.st-chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 10px; }
.st-chart-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.st-chart-head h2 { font-family: var(--serif); color: var(--brand-dark); font-size: 22px; margin: 0; }
.st-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.st-controls select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: 14px; max-width: 100%; }
.st-metrics { display: flex; gap: 4px; flex-wrap: wrap; }
.st-metrics button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.st-metrics button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-chart { position: relative; margin-top: 12px; }
.st-chart svg { display: block; width: 100%; height: 220px; }
.st-bar { fill: var(--brand); }
.st-hover { fill: var(--brand-tint); }
.st-grid { stroke: #e7ecec; stroke-width: 1; }
.st-axis { fill: var(--muted); font-size: 11px; }
.st-tip { position: absolute; transform: translate(-50%, -100%); background: var(--brand-dark); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.st-numbers summary { cursor: pointer; color: var(--brand); font-size: 14px; margin-top: 6px; }
.st-table-wrap { max-height: 300px; overflow: auto; margin-top: 8px; }
.st-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table-wrap th, .st-table-wrap td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.st-table-wrap th { color: var(--muted); font-weight: 400; }
.st-ads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-ad { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.st-ad .my-ad-title { font-size: 16px; }
.st-ad p { margin: 2px 0 0; }
.st-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; }
.st-nums div { min-width: 64px; }
.st-nums dt { color: var(--muted); font-size: 12px; }
.st-nums dd { margin: 0; font-weight: 700; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-nums dd .muted { font-weight: 400; font-size: 12px; }
.st-tips { margin: 10px 0 0; padding: 8px 10px 8px 28px; background: var(--fair-bg); border-radius: 8px; font-size: 14px; color: var(--ink); }
.st-tips li + li { margin-top: 4px; }
.st-ad-actions { display: flex; flex-direction: column; gap: 6px; }
.st-email { margin: 0; }
.st-alerts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.st-alert { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.st-alert:last-child { border-bottom: 0; }
.st-alert.is-new { background: var(--brand-tint); }
.st-alert-head { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.st-alert-head a { color: var(--brand-dark); }
.st-alert p { margin: 2px 0 0; }
.st-new { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--brand); color: #fff; border-radius: 99px; padding: 2px 8px; }
.owner-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; text-align: center; }
.owner-stats b { display: block; font-size: 20px; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.owner-stats span { font-size: 12px; color: var(--muted); }
.menu-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--high); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; margin-left: 4px; }
@media (max-width: 700px) {
  .st-ad { grid-template-columns: 84px 1fr; }
  .st-ad .my-ad-pic { width: 84px; height: 60px; }
  .st-ad-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .st-chart svg { height: 180px; }
  .st-value { font-size: 26px; }
}

/* --- Trucks section --- */
.truck-chassis { fill: #37434a; }
.truck-leg { stroke: #37434a; stroke-width: 3; fill: none; }
.hero-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.makes-head { font-family: var(--serif); color: var(--brand-dark); font-size: 24px; margin: 32px 0 0; }
.licence-panel p { margin: 0 0 8px; }
.licence-code { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; border-radius: 6px; padding: 2px 10px; margin-right: 6px; }
.kind-pick { margin-bottom: 14px; }
.kind-pick legend { font-weight: 600; margin-bottom: 6px; }
.kind-pick .segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kind-pick .segmented label + label span { border-left: 0; }
.kind-pick .segmented span { padding: 10px 8px; min-width: 0; height: 100%; box-sizing: border-box;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
@media (max-width: 520px) { .kind-pick .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kind-pick .segmented span { padding: 10px 6px; font-size: 14px; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--link, var(--brand)); text-decoration: underline;
  font: inherit; cursor: pointer; }
#own-version { margin-top: 8px; }
#own-version input { width: 100%; }
.mach-track { fill: #2f383d; }
.mach-frame { stroke: #2f383d; stroke-width: 4; }
.mach-mast { stroke: #2f383d; stroke-width: 5; fill: none; }

/* For sale / For hire tabs above the search bar, and hire prices */
.deal-tabs { display: inline-flex; gap: 4px; margin: 4px 0 10px; background: rgba(255,255,255,.12); border-radius: 10px; padding: 4px; }
.deal-tabs a { color: #fff; text-decoration: none; padding: 6px 16px; border-radius: 7px; font-weight: 600; font-size: 15px; }
.deal-tabs a[aria-current="page"] { background: #fff; color: var(--brand); }
.deal-tabs a:not([aria-current]):hover { background: rgba(255,255,255,.18); }
.per { font-size: .6em; font-weight: 600; color: var(--muted, #667); }
.tag-hire { top: auto; bottom: 10px; left: 10px; background: var(--brand); color: #fff; }
.hire-terms { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; }
.hire-terms li { padding: 3px 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row .field input { width: 100%; box-sizing: border-box; }
.deal-pick { margin-bottom: 14px; }
.deal-pick legend { font-weight: 600; margin-bottom: 6px; }
.footer-copy a { color: inherit; text-decoration: underline; }

/* Ad prices by category (Sell page) */
.table-scroll { overflow-x: auto; margin: 8px 0 6px; }
.price-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.price-table th, .price-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { font-weight: 700; vertical-align: bottom; }
.price-table thead th span { display: block; font-weight: 400; }
.price-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tbody th { font-weight: 600; }
.two-col > * { min-width: 0; }
@media (max-width: 520px) { .price-table th, .price-table td { padding: 7px 6px; font-size: 13px; } }
.panel .btn { max-width: 100%; white-space: normal; text-align: center; }

.ok-note { background: #e8f4ec; border: 1px solid #b9dcc5; color: #1d5b33; padding: 8px 12px; border-radius: 8px; font-size: 14px; }

.continue-site { margin: 0 0 14px; }
