/* "Showroom at night": graphite, warm platinum text and one champagne accent (chrome and leather, not tech blue).
   Light is ivory with a bronze accent. Blue is kept only for the Verified badge, where it means trust.
   Dark is the default (set in the layout's head script); "System" follows the device via the media query. */
:root {
  --bg: #f6f4ef; --card: #ffffff; --raise: #fbfaf7; --text: #16181c; --muted: #5d6168; --line: #e3ded3;
  --brand: #8a6a2f; --brand-ink: #ffffff; --brand-soft: color-mix(in srgb, #8a6a2f 12%, transparent);
  --ok: #1d7a4a; --bad: #b42318; --sold: #6b6f76; --verified: #0a6cbd;
  --amber: #9a5b08; --amber-bg: #fbefd6; --approve-ink: #fff; --shadow: 0 10px 30px rgb(40 30 10 / .10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0b0c0f; --card: #14161b; --raise: #1a1d23; --text: #ece9e4; --muted: #a29e97; --line: #272a31; --brand: #d4b47a; --brand-ink: #17130b; --brand-soft: color-mix(in srgb, #d4b47a 14%, transparent); --ok: #63d394; --bad: #f28b82; --sold: #9a9ea6; --verified: #6cb8ff; --amber: #e9c27a; --amber-bg: color-mix(in srgb, #d4a24a 16%, transparent); --approve-ink: #06210f; --shadow: 0 14px 40px rgb(0 0 0 / .45); }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #0b0c0f; --card: #14161b; --raise: #1a1d23; --text: #ece9e4; --muted: #a29e97; --line: #272a31; --brand: #d4b47a; --brand-ink: #17130b; --brand-soft: color-mix(in srgb, #d4b47a 14%, transparent); --ok: #63d394; --bad: #f28b82; --sold: #9a9ea6; --verified: #6cb8ff; --amber: #e9c27a; --amber-bg: color-mix(in srgb, #d4a24a 16%, transparent); --approve-ink: #06210f; --shadow: 0 14px 40px rgb(0 0 0 / .45); }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); text-decoration: none; }
a:hover, .linkish:hover { text-decoration: underline; }
p, li, dd, .hint { text-wrap: pretty; } /* no single word left alone on the last line */
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: .5rem 0; }
h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
h3 { font-size: 1.05rem; margin: .25rem 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 48px; }
footer { color: var(--muted); font-size: .875rem; padding: 24px 16px; border-top: 1px solid var(--line); }

.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
/* Keep "#inquire" jumps and focused fields clear of the sticky header. */
html { scroll-padding-top: 80px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav form { margin: 0; }

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px; padding: 10px 16px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.danger { color: var(--bad); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.hero { padding: 32px 0 8px; }
.hero p { color: var(--muted); margin: 0; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; font-weight: 600; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 10px; width: 100%; }
textarea { resize: vertical; }
/* Plain dropdowns: our own chevron instead of the browser's. */
select { appearance: none; padding-right: 36px; cursor: pointer; background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23a29e97' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select:hover, .combo-btn:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
option, optgroup { background: var(--card); color: var(--text); }
.count, .meta, .hint { color: var(--muted); font-size: .9rem; margin: .25rem 0; }
.empty { color: var(--muted); padding: 32px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgb(0 0 0 / .08); }
.card img, .nophoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.nophoto { display: grid; place-items: center; background: var(--line); color: color-mix(in srgb, var(--muted) 75%, var(--text)); }
.card .body { padding: 12px 14px 14px; }
.card.sold img { filter: grayscale(.8); opacity: .75; }
.price { font-weight: 800; font-size: 1.15rem; margin: 0; }
.price.big { font-size: 1.6rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  background: color-mix(in srgb, var(--ok) 15%, transparent); color: color-mix(in srgb, var(--ok) 80%, var(--text)); }
.badge.wait { background: color-mix(in srgb, #d97706 18%, transparent); color: #b45309; }
.badge.rejected { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.badge.sold { background: color-mix(in srgb, var(--sold) 20%, transparent); color: var(--sold); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
/* Car photos: the main photo always fills a fixed 16:10 frame (cropped to fit), thumbnails below swap it. */
.gallery { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.gallery-main { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--line); }
.gallery-main img, .gallery-main .nophoto { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main .nophoto { aspect-ratio: auto; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--line); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; transition: opacity .15s; }
.gallery-thumbs button:hover img, .gallery-thumbs [aria-pressed="true"] img { opacity: 1; }
.gallery-thumbs [aria-pressed="true"] { border-color: var(--brand); }
/* Specs: key facts as tiles, the rest as a details list. */
.spec-tiles { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.spec-tiles li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.spec-tiles svg { grid-row: 1 / span 2; color: var(--brand); }
.spec-label { font-size: .8rem; color: var(--muted); }
.spec-tiles strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
/* Two even columns that always fill the box; row lines sit between rows only (the first is clipped), an odd last item spans both. */
.spec-details { margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; overflow: hidden;
  padding: 2px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.spec-details > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 560px) { .spec-details { grid-template-columns: 1fr; } }
.spec-details div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); margin-top: -1px; }
.spec-details dt { color: var(--muted); }
.spec-details dd { margin: 0; font-weight: 600; text-align: right; }
/* Tablets: the seller/inquiry column moves under the photos instead of getting squeezed. */
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } .sticky-aside { position: static; } }
.desc { white-space: pre-line; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.narrow { max-width: 640px; margin: 24px auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { padding: 10px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); margin: 0; }
.alert.ok { color: var(--ok); border-color: var(--ok); }
.alert.error { color: var(--bad); border-color: var(--bad); }

.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.table { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .8rem; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 14px; }
.actions form { margin: 0; }
.inquiry h3 { margin: 0; }

@media (max-width: 800px) {
  .two { grid-template-columns: 1fr; }
}

/* pager */
.pagination { display: flex; gap: 12px; align-items: center; margin: 24px 0; }
.pagination > a, .pagination > .disabled { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; }
.pagination .disabled { opacity: .5; }

/* ---------- admin: listing review ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #d97706;
  color: #fff; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }

.admin { --row-hover: color-mix(in srgb, var(--brand) 4%, var(--card)); padding-top: 24px; }

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.admin-sub { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
.admin-search { display: flex; gap: 8px; flex: 0 1 380px; }
.admin-search input { min-height: 44px; }
.admin-search .btn { min-height: 44px; }

/* Review states double as the summary: the count is the headline, the label explains it. */
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 24px 0 16px; align-items: stretch;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.state { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--card); color: var(--muted); text-decoration: none; min-height: 44px; }
.state:hover { text-decoration: none; background: var(--row-hover); }
.state-n { font-size: 1.75rem; font-weight: 750; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.state-label { font-size: .875rem; }
.state[aria-current] { box-shadow: inset 0 -3px 0 var(--brand); color: var(--text); }
.state[aria-current] .state-label { font-weight: 600; }
.state.has-work .state-n { color: var(--amber); }
.state.has-work { background: color-mix(in srgb, var(--amber-bg) 45%, var(--card)); }

.admin-flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, var(--card)); color: var(--text); }

.review-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-row { display: grid; grid-template-columns: 120px minmax(0, 1.4fr) minmax(0, 1.1fr) 120px auto; gap: 20px; align-items: start;
  padding: 16px 18px; border-top: 1px solid var(--line); }
.review-row:first-child { border-top: 0; }
.review-row:hover { background: var(--row-hover); }

.review-thumb { display: block; width: 120px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--line); }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-thumb span { display: grid; place-items: center; height: 100%; font-size: .8rem; color: color-mix(in srgb, var(--muted) 75%, var(--text)); }

.review-title { font-weight: 650; color: var(--text); font-size: 1.02rem; }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag { font-size: .75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.review-price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.review-specs { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }

.review-seller, .review-when { display: flex; flex-direction: column; gap: 2px; font-size: .875rem; min-width: 0; }
.review-seller a { overflow-wrap: anywhere; }
.review-seller > a:first-child { font-weight: 600; font-size: .95rem; }
.review-seller span, .review-when span { color: var(--muted); }
.review-when time { color: var(--text); }

.review-actions { display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
.review-actions form { margin: 0; }
.act { width: 100%; min-height: 44px; padding: 0 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.act-approve { background: var(--ok); color: var(--approve-ink); }
.act-approve:hover { filter: brightness(1.08); }
.act-reject { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.act-reject:hover { background: color-mix(in srgb, var(--bad) 8%, transparent); }

.admin-empty { padding: 48px 24px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 12px; }
.admin-empty h2 { margin: 0 0 6px; }
.admin-empty p { margin: 0; color: var(--muted); }

@media (max-width: 980px) {
  .review-row { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .review-thumb { width: 96px; }
  .review-seller, .review-when { grid-column: 2 / 3; }
  .review-actions { grid-column: 3; grid-row: 1 / span 3; }
}
@media (max-width: 600px) {
  .states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-row { grid-template-columns: 80px minmax(0, 1fr); gap: 12px 14px; }
  .review-thumb { width: 80px; }
  .review-seller, .review-when, .review-actions { grid-column: 1 / -1; grid-row: auto; }
  .review-when { flex-direction: row; gap: 8px; }
  .review-actions { flex-direction: row; }
  .admin-search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* ---------- header account menu ---------- */
.nav-cta { padding: 8px 14px; }
.profile { position: relative; }
.profile summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px 4px 4px; border-radius: 999px;
  cursor: pointer; list-style: none; border: 1px solid var(--line); color: var(--text); user-select: none; }
.profile summary::-webkit-details-marker { display: none; }
.profile summary:hover, .profile[open] summary { background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: .95rem; }
.profile-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .925rem; }
.caret { color: var(--muted); transition: transform .15s ease; }
.profile[open] .caret { transform: rotate(180deg); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / .18); display: flex; flex-direction: column; }
.menu-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.menu-who span { color: var(--muted); overflow-wrap: anywhere; }
.menu a, .menu button { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--text);
  font: inherit; font-size: .95rem; text-align: left; background: none; border: 0; cursor: pointer; width: 100%; }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: color-mix(in srgb, var(--brand) 10%, var(--card)); text-decoration: none; }
.menu form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.menu button { color: var(--bad); }
@media (max-width: 600px) {
  .profile-name { display: none; }
  .nav-cta { padding: 8px 12px; }
}


/* notices */
.site-notice { margin-top: 16px; }
.verify-banner { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 16px; border-color: #d97706; }
.verify-banner form { margin: 0; }


/* ---------- seller profile ---------- */
main.wrap { padding-top: 24px; }
.btn-quiet { background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); }
.btn-quiet:hover { background: color-mix(in srgb, var(--brand) 8%, var(--card)); filter: none; text-decoration: none; }
.btn:hover { text-decoration: none; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-logo { width: 128px; height: 128px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; flex: none;
  background: var(--brand); color: var(--brand-ink); font-size: 3rem; font-weight: 800; box-shadow: 0 0 0 5px var(--card); }
.profile-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.profile-logo.small { width: 72px; height: 72px; border-radius: 14px; font-size: 1.75rem; }
.profile-logo.tiny { width: 48px; height: 48px; border-radius: 12px; font-size: 1.25rem; text-decoration: none; box-shadow: none; }
.profile-main h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.015em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.profile-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }
.badge.kind { background: color-mix(in srgb, var(--brand) 16%, transparent); color: color-mix(in srgb, var(--brand) 70%, var(--text)); }
.section-title { margin: 8px 0 14px; }
.profile-about h2 { margin-bottom: 8px; }
.profile-about .desc { margin: 0; max-width: 70ch; }
.profile-empty p { margin: 0 0 6px; }
.sticky-aside { position: sticky; top: 80px; }
.seller-box { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.seller-box > :not(.profile-logo) { grid-column: 2; }
.seller-box h2 { margin: 0; }
.seller-box .meta, .seller-box p { margin: 2px 0 0; }

.logo-field { display: flex; gap: 16px; align-items: center; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; }

/* ---------- brochure: cover, overlapping logo, stats ---------- */
.brochure { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 24px; }
.brochure-cover { position: relative; aspect-ratio: 16 / 5; min-height: 180px; background-size: cover; background-position: center;
  background-color: color-mix(in srgb, var(--brand) 30%, var(--card));
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--brand) 55%, #0b1220), color-mix(in srgb, var(--brand) 15%, var(--card))); }
.brochure-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .35), transparent 45%); }
/* Sits on any cover colour, so it stays white with dark text in every state. */
.cover-cta, .cover-cta:hover { position: absolute; right: 16px; top: 16px; z-index: 1; background: #fff; color: #111; border: 0; filter: none;
  box-shadow: 0 2px 10px rgb(0 0 0 / .3); }
.cover-cta:hover { background: #eef2ff; }
/* The logo hangs 64px into the cover; the name gets its own 20px of air below the cover. */
.brochure-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; padding: 20px 28px 24px; }
.brochure-head .profile-logo { margin-top: -84px; position: relative; z-index: 1; }
.brochure-head .profile-main h1 { margin-bottom: 8px; }
.brochure-head .profile-actions { justify-content: flex-end; }
.brochure-stats { display: flex; margin: 0; border-top: 1px solid var(--line); }
.brochure-stats div { flex: 1; padding: 14px 28px; border-left: 1px solid var(--line); }
.brochure-stats div:first-child { border-left: 0; }
.brochure-stats dt { color: var(--muted); font-size: .85rem; }
.brochure-stats dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; }

.cover-preview { aspect-ratio: 16 / 5; border-radius: 12px; background: var(--line) center / cover; display: grid; place-items: center; color: var(--muted); margin-bottom: 8px; }
.cover-field { display: flex; flex-direction: column; gap: 8px; }

/* Verified and Featured badges */
.verified { display: inline-flex; align-items: center; gap: 3px; color: var(--verified); font-size: .8rem; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.verified.big { font-size: .95rem; }
.verified.big svg { width: 22px; height: 22px; }
.badge.featured { background: #f59e0b; color: #1f1300; }
.card-media { position: relative; }
.badge.on-photo { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.card.is-featured { border-color: color-mix(in srgb, #f59e0b 55%, var(--line)); }
.card-seller { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.featured-row { margin-bottom: 28px; }

@media (max-width: 800px) {
  .profile-logo { width: 96px; height: 96px; font-size: 2.3rem; }
  .brochure-head { grid-template-columns: auto minmax(0, 1fr); padding: 16px 20px 20px; }
  .brochure-head .profile-logo { margin-top: -64px; }
  .brochure-head .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .brochure-stats div { padding: 12px 20px; }
  .sticky-aside { position: static; }
}
@media (max-width: 480px) {
  .brochure-head { grid-template-columns: 1fr; }
  .brochure-cover { aspect-ratio: 16 / 7; }
}

/* admin sections and seller rows */
.admin-sections { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.admin-sections a { padding: 8px 16px; border-radius: 7px; color: var(--muted); font-weight: 600; min-height: 36px; }
.admin-sections a:hover { text-decoration: none; color: var(--text); }
.admin-sections a[aria-current] { background: var(--brand); color: var(--brand-ink); }
.act-feature { background: transparent; color: var(--amber); border-color: color-mix(in srgb, #f59e0b 60%, transparent); }
.act-feature[aria-pressed="true"] { background: #f59e0b; color: #1f1300; }
.act-feature:hover { filter: brightness(1.05); }
.seller-row { grid-template-columns: 48px minmax(0, 1.3fr) minmax(0, 1.2fr) auto auto; align-items: center; }
.seller-counts { display: flex; gap: 18px; margin: 0; font-size: .85rem; }
.seller-counts dt { color: var(--muted); }
.seller-counts dd { margin: 0; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .seller-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .seller-row .review-seller, .seller-row .seller-counts { grid-column: 2 / 3; }
  .seller-row .review-actions { grid-column: 3; grid-row: 1 / span 3; }
}
@media (max-width: 600px) {
  .seller-row { grid-template-columns: 48px minmax(0, 1fr); }
  .seller-row .review-seller, .seller-row .seller-counts, .seller-row .review-actions { grid-column: 1 / -1; grid-row: auto; }
}


/* ---------- primary nav and seller directory ---------- */
.primary { margin-right: auto; margin-left: 12px; gap: 4px; }
.primary a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.primary a:hover { color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.primary a[aria-current] { color: var(--text); background: color-mix(in srgb, var(--brand) 14%, var(--card)); }

.directory-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin: 16px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--text); font-size: .9rem; }
.chips a:hover { text-decoration: none; border-color: var(--brand); }
.chips a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.seller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.seller-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; }
.seller-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: 0 6px 20px rgb(0 0 0 / .08); }
.seller-card-cover { aspect-ratio: 16 / 5; background: center / cover;
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--brand) 55%, #0b1220), color-mix(in srgb, var(--brand) 15%, var(--card))); }
.seller-card-body { padding: 0 16px 16px; }
.seller-card-body .profile-logo.tiny { width: 56px; height: 56px; margin-top: -28px; box-shadow: 0 0 0 4px var(--card); position: relative; }
.seller-card-body h2 { font-size: 1.05rem; margin: 10px 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.seller-card-body .meta { margin: 0; }
.seller-card-count { margin: 10px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* appearance switch in the account menu */
.menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-top: 6px; border-top: 1px solid var(--line); font-size: .95rem; }
.segmented { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.menu .segmented button { width: auto; min-height: 30px; padding: 0 10px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.menu .segmented button:hover { background: var(--card); color: var(--text); }
.menu .segmented button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.menu-theme + form { margin-top: 0; }

/* seller contact email and website links */
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.profile-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; font-size: .875rem;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); max-width: 100%; overflow-wrap: anywhere; }
.profile-links a:hover { border-color: var(--brand); text-decoration: none; }
.profile-links svg { color: var(--muted); flex: none; }
.links-field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.links-field legend { font-size: .875rem; font-weight: 600; margin-bottom: 4px; padding: 0; }

/* name lock and requests, character counter */
.locked-name { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; }
.locked-name .hint, .locked-name .alert { margin: 0; }
input:disabled { opacity: .75; cursor: not-allowed; }
.char-count { margin: -6px 0 0; text-align: right; font-variant-numeric: tabular-nums; }
.seller-only > .char-count { margin-top: 6px; } /* sign-up: no flex gap here to pull back from */
.char-count.near { color: var(--amber); font-weight: 600; }
.name-request { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.name-request p { margin: 0 0 8px; font-size: .9rem; }
.name-request form { display: flex; gap: 8px; flex-wrap: wrap; }
.name-request .act { width: auto; min-height: 36px; }

/* Philippine phone input with a fixed +63 */
.phone-field { display: flex; flex-direction: column; gap: 4px; }
.phone-field > label { font-size: .875rem; font-weight: 600; }
.phone-field .hint { margin: 0; font-size: .8rem; }
.phone-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.phone-input:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.phone-prefix { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-right: 1px solid var(--line); background: var(--card);
  font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone-prefix .flag { font-size: .65rem; font-weight: 800; padding: 1px 4px; border-radius: 3px; color: #fff;
  background: linear-gradient(#0038a8 0 50%, #ce1126 50%); letter-spacing: .03em; }
.phone-input input { border: 0; border-radius: 0; background: transparent; min-height: 44px; font-variant-numeric: tabular-nums; }
.phone-input input:focus-visible { outline: none; }

/* image cropper on Edit Profile */
.cropper { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 12px; background: var(--bg); }
.cropper[hidden] { display: none; }
.cropper-title { margin: 0; font-weight: 600; }
.crop-frame { position: relative; overflow: hidden; width: 100%; max-height: 60vh; border-radius: 10px; background: #000; cursor: grab; touch-action: none; user-select: none; }
.cropper[data-ratio="1"] .crop-frame { max-width: 320px; margin: 0 auto; }
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.crop-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .7); border-radius: inherit; pointer-events: none; }
.crop-zoom { flex-direction: row; align-items: center; gap: 12px; }
.crop-zoom input { padding: 0; }

/* change cover / logo from your own public page */
.quick-images { margin-bottom: 16px; }
.quick-images .cropper { margin-bottom: 0; }
.quick-images.saving .cropper { opacity: .6; pointer-events: none; }
.cover-cta { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.profile-logo-wrap { position: relative; align-self: end; }
.brochure-head .profile-logo-wrap { margin-top: -84px; z-index: 1; }
.brochure-head .profile-logo-wrap .profile-logo { margin-top: 0; }
.logo-change { position: absolute; right: -6px; bottom: -6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.logo-change:hover { background: color-mix(in srgb, var(--brand) 12%, var(--card)); }
.cover-cta:focus-visible, .logo-change:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 800px) { .brochure-head .profile-logo-wrap { margin-top: -64px; } }

.cover-cta { flex-direction: row; }
.logo-change { z-index: 2; }

/* Facebook and Instagram chips: brand-coloured icon, normal text for contrast */
.profile-links .social.fb svg { color: #1877f2; }
.profile-links .social.ig svg { color: #e1306c; }
.links-field .phone-prefix { font-weight: 500; color: var(--muted); }
.links-field .phone-prefix { min-width: 9.2em; }

/* labelled link groups on the profile: Socials, Email, Other links */
.link-group { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-top: 12px; }
.link-group + .link-group { margin-top: 8px; }
.link-group .profile-links { margin: 0; }
.link-group-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
@media (max-width: 480px) { .link-group { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- home page ad slider ---------- */
.ads { position: relative; border-radius: 16px; overflow: hidden; background: #0b1220; margin-bottom: 8px; }
.ads-slides { position: relative; aspect-ratio: 16 / 5; min-height: 240px; }
.ad-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ad-slide.is-active { opacity: 1; visibility: visible; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .72) 0%, rgb(0 0 0 / .35) 45%, transparent 75%); }
.ad-copy { position: absolute; z-index: 1; left: clamp(20px, 5vw, 56px); top: 50%; transform: translateY(-50%); max-width: min(460px, 70%); color: #fff; }
.ad-copy h2 { font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 8px 0; color: #fff; }
.ad-copy p { margin: 0 0 16px; color: rgb(255 255 255 / .88); }
.ad-copy .btn { min-height: 44px; display: inline-flex; align-items: center; }
.ad-label { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: rgb(255 255 255 / .9); color: #111; }
.ads-controls { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgb(0 0 0 / .45); }
.ads-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer; }
.ads-btn:hover { background: rgb(255 255 255 / .18); }
.ads .i-play, .ads.is-paused .i-pause { display: none; }
.ads.is-paused .i-play { display: block; }
.ads-dots { display: flex; gap: 2px; }
.ads-dots button { width: 24px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ads-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .5); transition: width .2s; }
.ads-dots button[aria-current]::before { width: 18px; border-radius: 4px; background: #fff; }
.ads :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
  .ads-slides { aspect-ratio: 4 / 3; }
  .ad-slide::after { background: linear-gradient(0deg, rgb(0 0 0 / .8) 0%, rgb(0 0 0 / .3) 55%, transparent 80%); }
  .ad-copy { top: auto; bottom: 64px; transform: none; max-width: calc(100% - 40px); }
  .ads-controls { left: 50%; right: auto; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .ad-slide { transition: none; } }


/* =================== Showroom theme (layered on top of the base styles) =================== */
body { background: radial-gradient(1100px 420px at 50% -120px, var(--brand-soft), transparent 70%) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.015em; }
h1 { font-weight: 750; }

/* header: translucent bar, wordmark with a champagne mark */
.top { background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top .wrap { min-height: 64px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.logo { display: block; height: 28px; aspect-ratio: 726 / 120; background: var(--logo) left center / contain no-repeat; }
:root { --logo: url("../brand/logo-light.webp"); --emboss-light: #fff; --emboss-dark: rgb(40 30 10 / .28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo: url("../brand/logo-dark.webp"); --emboss-light: rgb(255 255 255 / .14); --emboss-dark: rgb(0 0 0 / .7); } }
:root[data-theme="dark"] { --logo: url("../brand/logo-dark.webp"); --emboss-light: rgb(255 255 255 / .14); --emboss-dark: rgb(0 0 0 / .7); }
.nav-count { background: var(--brand); color: var(--brand-ink); }

/* buttons */
.btn { border-radius: 10px; font-weight: 700; letter-spacing: .01em; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18); transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

/* hero: taller, cinematic ad slider */
.ads { border-radius: 20px; margin-top: 4px; box-shadow: var(--shadow); }
.ads-slides { aspect-ratio: 16 / 6; min-height: 380px; }
.ad-copy h2 { font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; }
.ad-label { background: var(--brand); color: var(--brand-ink); }
.ads-controls { bottom: 112px; }

/* search panel floating over the bottom of the hero */
.finder { position: relative; z-index: 3; margin: 24px auto 0; padding: 22px 24px 24px; border-radius: 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-top: 2px solid color-mix(in srgb, var(--brand) 70%, transparent); box-shadow: var(--shadow); }
.ads + .finder { margin-top: -88px; width: calc(100% - 48px); }
.finder-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.finder-head h1 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.finder-head p { margin: 0; color: var(--muted); }
.finder .filters { background: none; border: 0; padding: 0; margin: 16px 0 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.finder .filter-q { grid-column: span 2; }
.finder input, .finder select { min-height: 46px; background-color: var(--bg); }
.finder .btn { min-height: 46px; }

/* trust strip */
.trust { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.trust svg { color: var(--brand); flex: none; margin-top: 2px; }
.trust strong { display: block; font-size: .975rem; }
.trust span { color: var(--muted); font-size: .875rem; }

/* section titles get a short champagne rule */
.section-title { font-size: 1.3rem; position: relative; padding-top: 12px; margin: 8px 0 16px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--brand); }

/* car cards */
.grid { gap: 20px; }
.card { border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); text-decoration: none; }
.card-media { overflow: hidden; }
.card img, .card .nophoto { aspect-ratio: 16 / 10; transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.card-flags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-flags .badge { box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 1.02rem; font-weight: 650; }
.card .price { color: var(--brand); font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-specs { margin: 0; color: var(--muted); font-size: .875rem; }
.card-seller { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .875rem; font-weight: 600; }
.card-seller > span:last-child { color: var(--muted); font-weight: 400; }
.card.is-featured { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.badge.featured { background: var(--brand); color: var(--brand-ink); }
.card.sold img { filter: grayscale(.85); opacity: .7; }

/* footer */
.site-footer { margin-top: 48px; padding: 44px 0 0; background: var(--card); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { max-width: 34.5ch; }
.footer-brand p { margin: 16px 0 0; }
/* Footer logo: as wide as the paragraph, pressed into the background (the logo is a mask; the shadows on the link give the edges). */
.footer-brand .brand { display: block; filter: drop-shadow(0 1px 0 var(--emboss-light)) drop-shadow(0 -1px 0 var(--emboss-dark)); }
.footer-brand .logo { width: 100%; height: auto; background: color-mix(in srgb, var(--text) 13%, var(--card));
  -webkit-mask: var(--logo) center / 100% 100% no-repeat; mask: var(--logo) center / 100% 100% no-repeat; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer h2 { font-size: .95rem; color: var(--text); margin: 0 0 4px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding: 18px 16px 22px; border-top: 1px solid var(--line); font-size: .825rem; }

@media (max-width: 900px) {
  .finder .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ads-slides { min-height: 340px; }
  .ads-controls { bottom: 64px; }
  .ads + .finder { margin-top: -48px; width: calc(100% - 16px); }
  .finder { padding: 18px 16px; }
  .finder .filters { grid-template-columns: 1fr; }
  .finder .filter-q { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .card, .card img, .btn { transition: none; } .card:hover img { transform: none; } }

/* keep the slide text and controls clear of the search panel that overlaps the hero */
.ad-copy { top: 42%; }
@media (max-width: 600px) { .ad-copy { bottom: 104px; } .ads-controls { bottom: 56px; } }

/* Height instead of aspect-ratio: with a min-height, aspect-ratio widened the slider past the screen on phones. */
.ads-slides { aspect-ratio: auto; height: clamp(380px, 36vw, 470px); min-height: 0; }
@media (max-width: 600px) { .ads-slides { height: 420px; } .ad-copy { top: auto; } }

/* ---------- header nav: inline on wide screens, behind a menu button on phones ---------- */
.nav-panel { display: flex; align-items: center; flex: 1; gap: 16px; min-width: 0; }
.nav-panel .primary { margin-left: 4px; }
.account-links { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }
.nav-toggle .i-close, .top.menu-open .nav-toggle .i-menu { display: none; }
.top.menu-open .nav-toggle .i-close { display: inline; }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: nowrap; gap: 10px; }
  .top .brand { margin-right: auto; }
  .js .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--line); background: transparent; color: var(--text); }
  .js .nav-toggle:hover, .top.menu-open .nav-toggle { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
  .js .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 10px 16px 18px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .top.menu-open .nav-panel { display: flex; }
  .nav-panel nav { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-panel .primary { margin: 0; }
  .nav-panel nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 12px; border-radius: 10px;
    font-size: 1.05rem; font-weight: 600; color: var(--text); }
  .nav-panel nav a:not(.btn):hover, .nav-panel nav a[aria-current] { background: var(--brand-soft); text-decoration: none; }
  .account-links { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
  .account-links .btn { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 6px; font-size: 1rem; }
  .profile { order: 0; }
}

/* ---------- Featured: first, in a framed showcase, with gold-framed cards ---------- */
.showcase { margin: 8px 0 34px; padding: 22px 22px 24px; border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  background: radial-gradient(700px 220px at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%), var(--card); }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.showcase-head h2 { margin: 2px 0 0; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.showcase-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--brand); font-size: .85rem; font-weight: 700; }
.showcase-note { margin: 0; color: var(--muted); font-size: .875rem; }
.showcase-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card.is-featured { border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, #f1d9a3, var(--brand) 35%, color-mix(in srgb, var(--brand) 40%, #3a2c12) 65%, #f1d9a3) border-box; }
.card.is-featured:hover { box-shadow: 0 16px 44px color-mix(in srgb, var(--brand) 22%, transparent); }
.badge.featured { display: inline-flex; align-items: center; gap: 4px; }

/* profile header: handle under the name; links in their own full-width row */
.profile-handle { color: var(--brand); font-weight: 600; }
.brochure-head { align-items: center; }
.brochure-head .profile-logo-wrap { align-self: end; }
.brochure-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 14px 28px 16px; border-top: 1px solid var(--line); }
.brochure-links .link-group { display: flex; align-items: center; gap: 10px; margin: 0; }
.brochure-links .link-group + .link-group { margin: 0; padding-left: 32px; border-left: 1px solid var(--line); }
.brochure-links .link-group-label { white-space: nowrap; }
.handle-ok { color: var(--ok); }
.handle-bad { color: var(--bad); }
.handle-field { display: flex; flex-direction: column; gap: 4px; }
.handle-field > label { font-size: .875rem; font-weight: 600; }
.handle-field .phone-prefix { font-weight: 500; color: var(--muted); }
@media (max-width: 800px) {
  .brochure-links { padding: 14px 20px 16px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .brochure-links .link-group + .link-group { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) { .brochure-links .link-group { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* admin-only bump (hidden paid placement) */
.badge.bumped { background: color-mix(in srgb, var(--verified) 16%, transparent); color: var(--verified); }
.act-bump { background: transparent; color: var(--text); border-color: var(--line); }
.act-bump:hover { background: var(--brand-soft); }
.bump-form { display: flex; flex-direction: column; gap: 4px; }
.bump-remove { font-size: .85rem; align-self: center; }

/* add/edit car form sections */
.form-section { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.form-section legend { padding: 0 8px; font-weight: 700; color: var(--brand); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; }
.checks .check { font-size: .95rem; min-height: 32px; }
label.short { max-width: 240px; }
.car-form .narrow, .car-form { max-width: 760px; }

/* car page: kind line, deal box, history checklist */
.car-kind { margin: 4px 0 16px; color: var(--muted); font-weight: 600; }
.price .tag { vertical-align: middle; font-weight: 600; }
.deal-box { margin: 0 0 20px; padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-soft); }
.deal-box h2 { margin: 0 0 8px; font-size: 1rem; color: var(--brand); }
.deal-box dl { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.deal-box dt { color: var(--muted); font-size: .85rem; }
.deal-box dd { margin: 0; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fact-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.fact { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .875rem; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; }
.checklist svg { color: var(--ok); flex: none; }

/* search: main row plus More Filters */
.finder .filters { grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr auto; }
.finder .filter-q { grid-column: auto; }
.more-filters { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.more-filters summary { cursor: pointer; font-weight: 600; color: var(--brand); width: max-content; min-height: 32px; display: flex; align-items: center; }
.more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
@media (max-width: 900px) { .finder .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .finder .filter-q { grid-column: 1 / -1; } .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .finder .filters, .more-grid { grid-template-columns: 1fr; } }

/* sign-up: buy or sell */
.role-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-pick legend { font-weight: 600; font-size: .875rem; margin-bottom: 6px; padding: 0; }
.role-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-weight: 400; }
.role-card input { position: absolute; left: 16px; top: 17px; width: auto; accent-color: var(--brand); }
.role-card strong { font-size: 1rem; }
.role-card span { color: var(--muted); font-size: .85rem; }
.role-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.signup:has(#role-buyer:checked) .seller-only, .signup:has(#role-buyer:checked) .seller-only-inline, .signup:has(#role-seller:checked) .buyer-only-inline { display: none; }
@media (max-width: 600px) { .role-pick { grid-template-columns: 1fr; } }

/* buyers: auto-filled inquiry note, registered buyer tag, account page */
.autofill-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: .9rem; }
.tag.registered { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); color: var(--ok); font-weight: 600; }
.account-page { max-width: 760px; margin: 0 auto; }
.account-page > .box { margin: 16px 0 28px; }

/* demo listings */
.badge.demo { background: #e2e8f0; color: #1e293b; letter-spacing: .02em; }
.demo-note { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.demo-toggle { font-size: .85rem; align-self: center; }

/* search-as-you-type suggestions */
.suggest { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; max-height: 360px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-weight: 400; }
.suggest li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected=true] { background: var(--brand-soft); }
.suggest-type { font-size: .72rem; font-weight: 700; color: var(--muted); }
.suggest-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-label mark { background: none; color: var(--brand); font-weight: 800; }
.suggest-meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.finder .filter-q { position: relative; }

.suggest { right: auto; width: max(100%, min(460px, 86vw)); }
.suggest-label { white-space: normal; overflow-wrap: anywhere; }

/* Terms, Privacy, Safety; reports; delete account */
.legal { max-width: 72ch; margin: 24px auto 0; line-height: 1.65; }
.legal h2 { margin: 2rem 0 .5rem; scroll-margin-top: 84px; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .4rem 0; }
.legal p a, .legal li a, .aside-links a, .signup .check a, .stack .hint a { text-decoration: underline; text-underline-offset: 3px; }
.legal .btn { text-decoration: none; }
.legal-short h2 { margin-top: 0; }
.legal-warn { border-color: var(--amber); background: var(--amber-bg); }
.legal .meta { margin-bottom: 16px; }
.legal-table { display: table; width: 100%; border-collapse: collapse; font-size: .925rem; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; white-space: normal; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { /* each row becomes a short block */
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal-table td { padding: 2px 0; border: 0; }
  .legal-table td + td { color: var(--muted); }
  .legal-table td:nth-child(2)::before { content: "Why: "; font-weight: 600; }
  .legal-table td:nth-child(3)::before { content: "Basis: "; font-weight: 600; }
}
.aside-links { text-align: center; font-size: .9rem; }
.footer-note { flex-basis: 100%; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.badge.overdue { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.admin-head + .box, .admin-head + .review-list, .admin-head + .admin-empty { margin-top: 20px; }
.report-close { display: flex; gap: 12px; align-items: end; margin-top: 12px; }
.report-close label { flex: 1; }
.delete-account { margin-top: 40px; }
.delete-account summary { cursor: pointer; font-weight: 600; color: var(--bad); }
@media (max-width: 560px) { .report-close { flex-direction: column; align-items: stretch; } }

/* Styled dropdown (js/combo.js) over a visually hidden <select> */
.combo { position: relative; }
.combo-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.combo-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 9px 12px 9px 10px;
  font: inherit; font-weight: 400; text-align: left; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.finder .combo-btn { min-height: 46px; }
.combo-btn.is-invalid { border-color: var(--bad); }
.combo-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-btn svg { flex: none; color: var(--muted); transition: transform .15s; }
.combo.is-open .combo-btn { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.combo.is-open .combo-btn svg { transform: rotate(180deg); color: var(--brand); }
.combo-pop { position: absolute; z-index: 45; top: calc(100% + 6px); left: 0; width: max(100%, 240px); padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-weight: 400; }
.combo-search { min-height: 38px; margin-bottom: 4px; background: var(--raise); border-color: transparent; }
.combo-pop.to-left { left: auto; right: 0; }
.combo.is-short .combo-pop { width: max(100%, 180px); }
.combo.is-short .combo-search { position: absolute; top: 0; left: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
.combo-search:focus { outline: none; border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.combo-list { list-style: none; margin: 0; padding: 0; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.combo-list [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.combo-list [role=option].is-active { background: var(--brand-soft); }
.combo-list [role=option][aria-selected=true] { color: var(--brand); font-weight: 600; }
.combo-list [role=option][aria-selected=true]::after { content: "✓"; font-weight: 700; }
.combo-group { padding: 10px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.combo-list.is-empty::after { content: "No matches"; display: block; padding: 10px; color: var(--muted); }
.combo-list [hidden] { display: none; }
