﻿/* =====================================================================
   FindMotos public look: 80% Airbnb simplicity, 20% Porsche detail.
   Loaded after site.css on public pages. Wide, bright, photo-led layouts;
   FindMotos blue reserved for the brand and the main actions.
   ===================================================================== */

:root {
  --wrap: 1680px;
  --wrap-w: min(92vw, var(--wrap));
  --header-h: 76px;
  --r-card: 10px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --soft: #f5f6f8;
  --soft-2: #eef0f3;
  --hair: #e6e8ec;
  --lift: 0 24px 48px -24px rgba(16, 24, 40, .38), 0 4px 12px -4px rgba(16, 24, 40, .08);
}

/* 92% of the viewport on desktop, capped; comfortable gutters on small screens. */
.wrap { width: var(--wrap-w); margin: 0 auto; }
.container { max-width: none; width: var(--wrap-w); padding: 0; }
body[data-page="home"] { background: #fff; }

/* ---------- Header: logo left, menus right, dropdowns and an account panel ---------- */
.site-header { height: var(--header-h); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--hair); }
.site-header > .wrap { position: relative; height: 100%; display: flex; align-items: center; gap: 14px; }
.site-header .logo { font-size: 21px; margin-right: auto; }
/* Public site: wordmark only, no FM mark (Mr M, 2026-11-19). Header, phone menu and footer. */
.site-header .fm-logo { height: 23px; }
@media (max-width: 640px) { .site-header .fm-logo { height: 20px; } }
.hnav { display: flex; align-items: center; gap: 2px; height: 100%; }
.hn-item { position: relative; height: 100%; display: flex; align-items: center; }
.hn-item.hn-mega { position: static; }
.hn-link { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 13px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.hn-link:hover, .hn-item.open > .hn-link { color: var(--brand); }
.hn-link.active { color: var(--ink); font-weight: 550; }
.hn-link .icon:last-child:not(:first-child) { opacity: .7; transition: transform .25s var(--ease-out); }
.hn-item.open > .hn-link .icon:last-child:not(:first-child) { transform: rotate(180deg); }
.hn-drop, .hn-panel { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s; z-index: 60; }
.hn-item.open .hn-drop, .hn-item.open .hn-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s; }
.hn-drop { position: absolute; top: calc(100% - 6px); left: 0; min-width: 240px; padding: 8px; border-radius: 8px; background: #fff; box-shadow: 0 24px 48px -16px rgba(16, 24, 40, .28), 0 0 0 1px rgba(16, 24, 40, .06); }
.hn-drop::before { content: ""; position: absolute; top: -6px; left: 28px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(16, 24, 40, .06); }
.hn-drop a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 6px; font-size: 14.5px; color: var(--text); transition: background .15s, color .15s; }
.hn-drop a:hover { background: var(--brand-50); color: var(--brand); }
.hn-contact { left: auto; right: 0; min-width: 290px; }
.hn-contact::before { left: auto; right: 34px; }
.hn-contact a { align-items: flex-start; }
.hn-contact a .icon { margin-top: 3px; color: var(--brand); flex-shrink: 0; }
.hn-contact span { display: flex; flex-direction: column; }
.hn-contact b { font-weight: 550; color: var(--ink); }
.hn-contact em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.hn-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 32px 0 34px; background: #fff; border-top: 1px solid var(--hair); border-radius: 0 0 10px 10px; box-shadow: 0 40px 60px -30px rgba(16, 24, 40, .4), 0 0 0 1px rgba(16, 24, 40, .05); }
.hp-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0; max-width: 1240px; }
.hp-intro { display: flex; gap: 22px; padding-right: 40px; }
.hp-art { width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: radial-gradient(circle at 35% 30%, #fff, var(--brand-50) 70%); border: 1px solid var(--brand-100); }
.hp-intro b, .hp-col > b { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.hp-intro ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.85; color: var(--text); }
.hp-intro p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.hp-intro p a, .hp-small:hover { color: var(--brand); font-weight: 550; }
.hp-col { display: flex; flex-direction: column; gap: 10px; padding: 0 36px; border-left: 1px solid var(--hair); }
.hp-input { position: relative; display: block; }
.hp-input input { width: 100%; height: 46px; padding: 0 42px 0 14px; border: 1px solid #d5dae1; border-radius: 6px; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.hp-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(7, 76, 155, .12); }
.hp-input .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.hp-small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.hp-full { display: inline-flex; align-items: center; gap: 4px; justify-content: center; color: var(--brand); font-weight: 550; }
.hp-btn { height: 46px; width: 100%; border: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 550; cursor: pointer; transition: background .2s, box-shadow .2s; }
.hp-btn:hover { background: var(--brand-600); box-shadow: 0 10px 22px -12px rgba(7, 76, 155, .9); }
.hp-btn-outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.hp-btn-outline:hover { background: var(--brand-50); box-shadow: none; }
.hp-link { display: flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--text); cursor: pointer; }
.hp-link:hover { color: var(--brand); }
.header-saved { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background .2s, color .2s; }
.header-saved:hover { background: var(--soft); color: #e5484d; }
.header-saved .count-pill { top: 2px; right: 0; left: auto; }

/* Phone drawer */
.mn-group summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; font-weight: 550; color: var(--ink); list-style: none; cursor: pointer; border-radius: 6px; }
.mn-group summary::-webkit-details-marker { display: none; }
.mn-group summary .icon { transition: transform .25s; }
.mn-group[open] summary .icon { transform: rotate(180deg); }
.mn-group a { display: block; padding: 10px 12px 10px 26px; font-size: 15px; color: var(--text); border-radius: 6px; }
.mn-group a:hover, .mn-link:hover { background: var(--soft); }
.mn-link { display: block; padding: 14px 12px; font-weight: 550; color: var(--ink); border-radius: 6px; }

/* ---------- Shared buttons ---------- */
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 6px; border: 1px solid #d9dde3; background: #fff; color: var(--ink); font-weight: 550; font-size: 15px; white-space: nowrap; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out), background .2s; }
.btn-pill:hover { border-color: var(--ink); box-shadow: 0 6px 16px -10px rgba(11, 18, 32, .45); }
.btn-pill .icon { transition: transform .3s var(--ease-out); }
.btn-pill:hover .icon { transform: translateX(3px); }
.btn-pill-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-pill-primary:hover { background: var(--brand-600); border-color: var(--brand-600); box-shadow: 0 10px 24px -12px rgba(7, 76, 155, .8); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; font-size: 15px; color: var(--ink); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
img.img-failed { opacity: 0; }

.btn-pill-light { background: #fff; border-color: #fff; color: var(--brand); }
.btn-pill-light:hover { background: #eef4fb; border-color: #eef4fb; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.btn-pill-ghost { background: transparent; border-color: rgba(255, 255, 255, .42); color: #fff; }
.btn-pill-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }
.save-btn.saved { color: #e5484d; }

/* =====================================================================
   Home page
   ===================================================================== */
/* The photo is drawn taller than the hero and pinned to the bottom, so its top is cut off and the pyramids rise above the search box. */
@keyframes fm-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ah-digits { display: inline-flex; gap: 3px; }
.ah-digits b { width: 30px; height: 40px; display: grid; place-items: center; border-radius: 4px; background: linear-gradient(180deg, #0a5bb5 50%, var(--brand) 50%); color: #fff; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 6px 12px -8px rgba(7, 76, 155, .9); }

/* ---------- Dealer banner ---------- */
.ah-promo-wrap { padding: clamp(36px, 3.5vw, 56px) 0; }
.ah-promo { position: relative; display: grid; grid-template-columns: 1.15fr 1fr .9fr; align-items: center; gap: 24px; min-height: 176px; margin: 0 auto; padding: 22px 44px; border-radius: 10px; overflow: hidden; color: #fff; isolation: isolate; background: radial-gradient(circle at 60% 50%, rgba(255, 255, 255, .13) 0 21%, transparent 21.3%), radial-gradient(circle at 60% 50%, rgba(255, 255, 255, .07) 0 33%, transparent 33.3%), linear-gradient(110deg, #074c9b 0%, #05336a 100%); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.ah-promo:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(7, 76, 155, .8); }
.ap-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9cc6f5; }
.ap-copy b { display: block; margin-top: 6px; font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.ap-sub { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.ap-car { width: 100%; max-width: 400px; justify-self: center; transform: scale(1.2) translateY(6%); filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .35)); transition: transform .6s var(--ease-out); }
.ah-promo:hover .ap-car { transform: scale(1.24) translate(2%, 6%); }
.ap-offer { text-align: right; }
.ap-offer > span:first-child { font-size: 14px; color: rgba(255, 255, 255, .78); }
.ap-offer b { display: block; font-size: clamp(26px, 2.3vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.ap-offer small { font-size: 15px; font-weight: 550; opacity: .8; }
.ap-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-top: 14px; padding: 0 18px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }

/* ---------- Sections ---------- */
.ah-section { padding: clamp(56px, 5vw, 88px) 0; }
.ah-section.is-soft { background: #f4f6f9; }
.ah-more { display: flex; justify-content: center; margin-top: 36px; }

/* Our selection of vehicles */
/* ---- Section headers: kicker with index, sentence-case title, note and link on the right, orange underline ---- */
.fm-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px) auto; align-items: end; gap: 14px 48px; margin: 0 auto 36px; padding-bottom: 22px; border-bottom: 1px solid #dfe3e9; }
.fm-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--accent); }
.fh-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.fh-kicker i { display: inline-flex; align-items: center; gap: 10px; font-style: normal; font-weight: 600; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.fh-kicker i::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.fm-head h1, .fm-head h2 { font-size: clamp(26px, 2.3vw, 36px); font-weight: 550; letter-spacing: -.026em; line-height: 1.12; color: var(--ink); }
.fm-head p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.fm-head p a { color: var(--brand); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(7, 76, 155, .3); text-underline-offset: 3px; }
.fm-head p a:hover { text-decoration-color: currentColor; }
.fh-link { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid #d5dae1; border-radius: 6px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: border-color .2s, color .2s; }
.fh-link:hover { border-color: var(--brand); color: var(--brand); }
.fh-link .icon { transition: transform .2s; }
.fh-link:hover .icon { transform: translateX(3px); }

.ah-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; margin: 0 auto; }
.ah-model { display: flex; flex-direction: column; align-items: center; padding: 18px 16px 22px; border-radius: 10px; text-align: center; color: var(--ink); transition: background .3s, box-shadow .45s var(--ease-out), transform .45s var(--ease-out); }
.ah-model:hover { background: #fff; box-shadow: var(--lift); transform: translateY(-4px); }
.am-img { display: block; width: 100%; aspect-ratio: 2 / 1; }
.am-img img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.22); transition: transform .7s var(--ease-out); }
.ah-model:hover .am-img img { transform: scale(1.28); }
.am-name { margin-top: 12px; font-size: 15px; color: var(--text); }
.am-name b { font-weight: 600; letter-spacing: .03em; color: var(--ink); }
.am-price { margin-top: 4px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.am-price em { font-style: normal; font-size: 16px; font-weight: 600; color: var(--brand); }
.am-count { margin-top: 2px; font-size: 12.5px; color: var(--subtle); }
.ah-dots { display: none; }

/* How it works */
.ah-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.ah-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ah-step:not(:last-child)::after { content: ""; position: absolute; top: 64px; left: calc(50% + 80px); right: calc(-50% + 66px); border-top: 2px dashed var(--brand-100); }
.as-art { position: relative; width: 128px; height: 128px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: radial-gradient(circle at 32% 28%, #fff 0%, var(--brand-50) 62%, #dce9f7 100%); border: 1px solid var(--brand-100); box-shadow: 0 20px 40px -26px rgba(7, 76, 155, .7); transition: transform .45s var(--ease-out); }
.ah-step:hover .as-art { transform: translateY(-4px) rotate(-3deg); }
.as-art i { position: absolute; top: 2px; right: 2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 3px solid #fff; background: var(--accent); color: #fff; font-style: normal; font-size: 14px; font-weight: 600; }
.ah-step b { font-size: 16px; font-weight: 600; color: var(--ink); }
.ah-step p { max-width: 230px; margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Brands */
.ah-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0 auto; }
.ah-brand { padding: 18px 18px 14px; border: 1px solid var(--hair); border-top: 3px solid var(--brand); border-radius: 7px; background: #fff; transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.ah-brand:hover { box-shadow: 0 18px 36px -24px rgba(16, 24, 40, .45); transform: translateY(-2px); }
.ah-brand summary { display: flex; align-items: flex-start; gap: 10px; list-style: none; pointer-events: none; }
.ah-brand summary::-webkit-details-marker { display: none; }
.ab-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ab-title b { font-size: 14.5px; font-weight: 600; letter-spacing: .03em; color: var(--ink); }
.ab-title em { font-style: normal; font-size: 13px; color: var(--muted); }
.ab-mark { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ab-chev { display: none; }
.ah-brand ul { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--soft-2); }
.ah-brand li a { display: flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 14px; color: var(--text); transition: color .15s; }
.ah-brand li a .icon { color: var(--subtle); flex-shrink: 0; }
.ah-brand li a span { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--soft); font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ah-brand li a:hover { color: var(--brand); }
.ah-brand li a:hover .icon { color: var(--brand); }
.ah-brand .ab-all a { font-weight: 550; color: var(--brand); }
.ah-also { display: flex; justify-content: flex-start; margin-left: auto; margin-right: auto; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ah-also b { margin-right: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.ah-also a { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--hair); border-radius: 6px; background: #fff; font-size: 13.5px; color: var(--text); transition: border-color .2s, color .2s; }
.ah-also a span { font-size: 12px; color: var(--subtle); }
.ah-also a:hover { border-color: var(--brand); color: var(--brand); }
.ah-also a.ah-also-all { border-color: transparent; background: none; font-weight: 550; color: var(--brand); }

/* Services */
.ah-services { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; margin: 0 auto; align-items: start; }
.asv-nav { display: flex; flex-direction: column; border-left: 2px solid var(--hair); }
.asv-tab { margin-left: -2px; padding: 12px 18px; border: 0; border-left: 2px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 500; text-align: left; color: var(--subtle); cursor: pointer; transition: color .2s, border-color .2s; }
.asv-tab:hover { color: var(--ink); }
.asv-tab.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.asv-arrow { display: none; }
.asv-panel { display: none; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: center; }
.asv-panel.is-active { display: grid; animation: fm-fade .4s var(--ease-out); }
.asv-copy h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.asv-copy p { margin-top: 12px; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.asv-copy > .btn-pill { margin-top: 22px; }
.asv-art { width: 220px; height: 220px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: radial-gradient(circle at 34% 28%, #fff 0%, var(--brand-50) 58%, #d6e6f7 100%); border: 1px solid var(--brand-100); box-shadow: 0 30px 60px -36px rgba(7, 76, 155, .7); }
.asv-calc { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--brand-100); border-radius: 8px; background: #fff; }
.mc-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mc-price label { font-size: 14px; color: var(--muted); }
.mc-price output { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.asv-calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--fill, 12%), #dfe4ea var(--fill, 12%)); outline: none; }
.asv-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(7, 76, 155, .35); cursor: pointer; }
.asv-calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; }
.mc-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; align-items: end; }
.mc-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.mc-row select { height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--hair); background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.mc-out { height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 14px; border-radius: 6px; background: var(--brand-50); }
.mc-out span { font-size: 13px; color: var(--muted); }
.mc-out b { font-size: 19px; font-weight: 600; color: var(--brand); }
.mc-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.mc-foot small { font-size: 12.5px; color: var(--subtle); }
.mc-foot .btn-pill { height: 42px; }

/* ---------- Listing cards (search results and other pages) ---------- */
.lcard:not(.horizontal) { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.lcard:not(.horizontal):hover { box-shadow: none; transform: none; }
.lcard .media { background: linear-gradient(180deg, #f5f6f8, #e6e9ee); }
.lcard:not(.horizontal) .media { aspect-ratio: 4 / 3; border-radius: var(--r-card); transition: box-shadow .45s var(--ease-out), transform .45s var(--ease-out); }
.lcard:not(.horizontal):hover .media { box-shadow: var(--lift); transform: translateY(-4px); }
.lcard .media img { transition: transform .9s var(--ease-out); }
.lcard:hover .media img { transform: scale(1.035); }
.lcard .media .tags { top: 14px; left: 14px; }
.lcard .badge-glass { background: #fff; font-weight: 550; font-size: 12.5px; height: 30px; padding: 0 12px; border-radius: 999px; box-shadow: 0 2px 10px -3px rgba(16, 24, 40, .22); }
.lcard .tag-drop { color: var(--success); }
.lcard .media .photos { position: absolute; bottom: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(11, 18, 32, .6); color: #fff; font-size: 12px; font-weight: 550; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.lcard:hover .media .photos { opacity: 1; transform: none; }
.lcard .save-btn { top: 14px; right: 14px; width: 40px; height: 40px; background: #fff; box-shadow: 0 2px 10px -3px rgba(16, 24, 40, .3); transition: transform .2s var(--ease-out), color .2s; }
.lcard .save-btn:hover { transform: scale(1.08); color: var(--accent); }
.lcard:not(.horizontal) .body { padding: 18px 2px 0; gap: 10px; }
.lc-head { min-width: 0; }
.lcard .title { font-size: 18px; font-weight: 550; letter-spacing: -.018em; line-height: 1.3; color: var(--ink); }
.lcard .variant { font-size: 14.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .specs { gap: 6px 16px; font-size: 14px; color: #4b5565; }
.lcard:not(.horizontal) .foot { border-top: 1px solid var(--soft-2); padding-top: 14px; margin-top: 2px; align-items: flex-end; }
.lcard .price { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lcard .price-was { font-size: 13px; font-weight: 500; }
.card-grid .lcard .price-was { display: none; } /* the Price drop badge on the photo carries it */
.lcard .monthly { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.lcard .loc { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.lcard .foot > div:first-child { min-width: 0; }
.lcard.horizontal { border-radius: var(--r-card); }

/* ---------- Footer (light) ---------- */
.site-footer { background: var(--soft); color: var(--muted); border-top: 1px solid var(--hair); padding: 64px 0 32px; }
.site-footer .logo { color: var(--ink); }
.site-footer .logo span b { color: var(--brand); }
.site-footer h4 { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 15px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid #e1e4e8; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; max-width: 420px; font-size: 15px; }
.site-footer .newsletter { display: flex; flex-direction: column; gap: 8px; margin-top: 0; max-width: 460px; width: 100%; }
.site-footer .newsletter label { font-size: 14px; color: var(--ink); font-weight: 550; }
.nl-row { display: flex; gap: 8px; }
.site-footer .nl-row .input { flex: 1; border-radius: 6px; height: 48px; padding: 0 20px; background: #fff; border-color: #dfe2e7; color: var(--ink); }
.site-footer .nl-row .input::placeholder { color: var(--subtle); }
.nl-row .btn { border-radius: 6px; height: 48px; padding: 0 22px; }
.site-footer .footer-grid { grid-template-columns: repeat(5, 1fr); }
.site-footer .footer-bottom { border-top-color: #e1e4e8; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .asv-panel.is-active { animation: none; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1360px) {
  .hn-link { padding: 0 10px; }
  .ah-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .fm-head { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; }
  .fm-head p { grid-column: 1 / -1; grid-row: 2; max-width: 640px; }
  :root { --header-h: 68px; }
  .hnav { display: none; }
  /* Phone/tablet header: logo on the left, menu button on the right (no account icon; Dealer login is in the menu). */
  .site-header > .wrap { gap: 6px; }
  .site-header .logo { margin-right: auto; }
  .site-header .menu-toggle { display: inline-flex; width: 44px; height: 44px; margin-right: -10px; }
  .ah-promo { grid-template-columns: 1.3fr 1fr; padding: 26px 32px; }
  .ah-models { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
  .ap-car { display: none; }
  .ah-steps { grid-template-columns: 1fr 1fr; gap: 28px 36px; max-width: 760px; }
  .ah-step { flex-direction: row; align-items: center; text-align: left; gap: 18px; }
  .ah-step::after { display: none; }
  .as-art { width: 96px; height: 96px; margin: 0; flex-shrink: 0; }
  .as-art .icon { width: 32px; height: 32px; }
  .ah-step > b, .ah-step > p { grid-column: 2; }
  .ah-step { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 4px; }
  .ah-step .as-art { grid-row: 1 / 3; }
  .ah-step b { align-self: end; }
  .ah-step p { margin-top: 0; align-self: start; max-width: none; }
  .ah-services { grid-template-columns: 1fr; gap: 28px; }
  .asv-nav { flex-direction: row; border-left: 0; border-bottom: 2px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
  .asv-nav::-webkit-scrollbar { display: none; }
  .asv-tab { flex-shrink: 0; margin: 0 0 -2px; border-left: 0; border-bottom: 2px solid transparent; }
  .asv-tab.is-active { border-bottom-color: var(--accent); }
  .asv-panel { grid-template-columns: minmax(0, 1fr) 170px; gap: 32px; }
  .asv-art { width: 170px; height: 170px; }
  .asv-art .icon { width: 56px; height: 56px; }
  .site-footer .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .fm-head { grid-template-columns: 1fr; margin-bottom: 26px; padding-bottom: 18px; }
  .fm-head p { grid-row: auto; font-size: 14.5px; }
  .fm-head h1, .fm-head h2 { font-size: 24px; }
  .fh-kicker { font-size: 11.5px; margin-bottom: 8px; }
  .fh-link { display: none; }
  :root { --wrap-w: calc(100vw - 32px); } /* phone: bring the pyramids into the gap above the search box */
  .ah-promo { grid-template-columns: 1fr; gap: 16px; padding: 26px 24px; text-align: left; }
  .ap-offer { text-align: left; }
  .ah-models { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; margin: 0 -16px; padding: 0 16px; }
  .ah-models::-webkit-scrollbar { display: none; }
  .ah-model { flex: 0 0 100%; scroll-snap-align: center; }
  .ah-model:hover { background: none; box-shadow: none; transform: none; }
  .ah-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
  .ah-dots i { width: 8px; height: 8px; border-radius: 4px; background: #cfd6df; transition: width .3s, background .3s; }
  .ah-dots i.on { width: 22px; background: var(--brand); }
  .ah-steps { grid-template-columns: 1fr; gap: 22px; }
  .ah-brands { grid-template-columns: 1fr; gap: 10px; }
  .ah-brand { padding: 0; }
  .ah-brand summary { pointer-events: auto; align-items: center; padding: 16px 16px; cursor: pointer; }
  .ab-chev { display: grid; color: var(--muted); transition: transform .25s; }
  .ah-brand[open] .ab-chev { transform: rotate(180deg); }
  .ah-brand ul { margin: 0 16px; padding-bottom: 10px; }
  .ah-also { justify-content: flex-start; }
  .asv-nav { justify-content: space-between; align-items: center; border-bottom: 0; overflow: visible; }
  .asv-tab { display: none; padding: 8px 6px; border-bottom: 0; font-size: 15.5px; }
  .asv-tab.is-active { display: block; }
  .asv-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d5dae1; background: #fff; color: var(--ink); cursor: pointer; }
  .asv-panel.is-active { grid-template-columns: 1fr; gap: 20px; }
  .asv-art { order: -1; width: 140px; height: 140px; margin: 0 auto; }
  .mc-row { grid-template-columns: 1fr 1fr; }
  .mc-out { grid-column: 1 / -1; }
  .mc-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid > :first-child { grid-column: auto; }
}

/* =====================================================================
   Search results (/cars): filters sidebar, result cards with hover lift
   ===================================================================== */
.sr { padding-bottom: 80px; }
.sr-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 18px 0 18px; font-size: 13px; color: var(--subtle); }
.sr-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sr-crumbs a:hover { color: var(--brand); }
.sr-crumbs span { color: var(--ink); }

.sr-promo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 32px; min-height: 120px; padding: 18px 36px; overflow: hidden; border-radius: 10px; background: radial-gradient(420px 220px at 62% 120%, rgba(255, 255, 255, .16), transparent 70%), linear-gradient(110deg, var(--brand-700), var(--brand) 70%, #0a5bb5); color: #fff; }
.sp-kicker { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #9cc6f5; }
.sp-copy b { display: block; margin-top: 6px; font-size: clamp(19px, 1.5vw, 23px); font-weight: 550; letter-spacing: -.015em; line-height: 1.25; }
.sp-car { width: clamp(220px, 20vw, 320px); margin: -24px 0 -34px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .35)); transition: transform .5s var(--ease-out); }
.sr-promo:hover .sp-car { transform: translateX(-8px); }
.sp-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 6px; background: var(--accent); font-size: 14.5px; font-weight: 550; white-space: nowrap; transition: background .2s; }
.sr-promo:hover .sp-btn { background: var(--accent-600); }

.sr-head { max-width: none; margin: 36px 0 28px; }
.sr-head .fh-kicker i::after { display: none; }
.sr-head .fh-kicker i { color: var(--accent); }

.sr-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; align-items: start; }

/* ---- Filters ---- */
.sr-filters { padding-right: 8px; }
.sf-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.sf-top b { font-size: 16px; font-weight: 600; color: var(--ink); }
.sf-clear { margin-left: auto; font-size: 13.5px; color: var(--brand); }
.sf-clear:hover { text-decoration: underline; }
.sf-close { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 6px; background: var(--soft); place-items: center; cursor: pointer; }
.sf-clear + .sf-close { margin-left: 0; }
.sf-group { border-top: 1px solid var(--hair); }
.sf-group summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.sf-group summary::-webkit-details-marker { display: none; }
.sf-group summary .icon { color: var(--subtle); transition: transform .25s; }
.sf-group[open] summary .icon { transform: rotate(180deg); }
.sf-group > div { padding-bottom: 16px; }
.sf-list { display: grid; gap: 2px; }
.sf-check { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; color: var(--text); cursor: pointer; }
.sf-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-check em { font-style: normal; font-size: 12.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.sf-check:hover span { color: var(--brand); }
.sf-check input, .sf-body input, .sf-colour input { margin: 0; }
.sf-check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid #c3c9d2; border-radius: 4px; background: #fff center / 12px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; }
.sf-check input:checked { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.sf-check input:focus-visible, .sf-body:has(input:focus-visible), .sf-colour:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.sf-check.is-extra { display: none; }
.show-all .sf-check.is-extra { display: grid; }
.is-empty { opacity: .45; }
.sf-more { justify-self: start; margin-top: 4px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--brand); cursor: pointer; }
.sf-more:hover { text-decoration: underline; }

.sf-range { padding: 4px 4px 18px !important; }
.sr-track { position: relative; height: 28px; }
.sr-track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: #e2e6ec; }
.sr-track i { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--brand); }
.sr-track input { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; appearance: none; background: none; pointer-events: none; z-index: 2; }
.sr-track input::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border: 2px solid var(--brand); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, .2); pointer-events: auto; cursor: grab; }
.sr-track input::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--brand); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, .2); pointer-events: auto; cursor: grab; }
.sr-track input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(7, 76, 155, .2); }
.sr-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.sf-bodies { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sf-body { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; font-size: 13px; color: var(--text); text-align: center; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.sf-body input, .sf-colour input { position: absolute; opacity: 0; pointer-events: none; }
.sf-body .body-ic { width: 52px; height: 26px; margin-bottom: 4px; color: var(--muted); }
.sf-body em { font-style: normal; font-size: 11.5px; color: var(--subtle); }
.sf-body:hover { border-color: #c9d3e0; }
.sf-body:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.sf-body:has(input:checked) .body-ic { color: var(--brand); }
.sf-colours { display: flex; flex-wrap: wrap; gap: 12px; }
.sf-colour { position: relative; cursor: pointer; }
.sf-colour i { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .14); transition: box-shadow .15s, transform .15s; }
.sf-colour:hover i { transform: scale(1.08); }
.sf-colour:has(input:checked) i { box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .14), 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.sf-foot, .sr-filter-bar, .sr-scrim { display: none; }

/* ---- Results ---- */
.sr-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sr-count { margin: 0; font-size: 14.5px; color: var(--muted); }
.sr-count b { margin-right: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--brand); }
.sr-sort, .sr-size { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.sr-sort select, .sr-size select { height: 40px; padding: 0 34px 0 12px; border: 1px solid #d5dae1; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6778' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; appearance: none; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.sr-sort select:focus-visible, .sr-size select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.sr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.sr-chips a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--brand-100); border-radius: 6px; background: var(--brand-50); font-size: 13.5px; color: var(--brand); transition: background .15s; }
.sr-chips a:hover { background: var(--brand-100); }
.sr-chips .sr-chips-clear { border-color: transparent; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sr-chips .sr-chips-clear:hover { background: none; color: var(--ink); }

.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; transition: opacity .2s; }
.sr.is-loading .sr-grid, .sr.is-loading .sr-count { opacity: .5; }

.sc { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s; }
.sc-media { position: relative; display: block; height: 220px; overflow: hidden; background: var(--soft); transition: height .35s var(--ease-out); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.sc-tag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 4px; background: #fff; font-size: 12px; font-weight: 550; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
.sc-tag.is-drop { color: var(--accent-600); }
.sc-tag.is-new { background: var(--brand); color: #fff; }
.sc-tag.is-featured { background: var(--accent); color: #fff; }
.sc-tag.is-featured .icon { color: #fff; }
.sc-tag.is-new .icon { color: #fff; }
.sc-photos { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; background: rgba(11, 18, 32, .62); font-size: 12px; color: #fff; backdrop-filter: blur(6px); }
.sc-save { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 8px rgba(16, 24, 40, .14); cursor: pointer; transition: transform .2s, color .2s; }
.sc-save:hover { transform: scale(1.08); color: #e0384b; }
.sc-save.saved { color: #e0384b; }
.sc-save.saved svg { fill: currentColor; }
.sc-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.sc-title { font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.sc-title b { font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.sc-title:hover { color: var(--brand); }
.sc-variant { margin: 3px 0 0; overflow: hidden; font-size: 13.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.sc-specs { margin: 8px 0 0; font-size: 12.5px; letter-spacing: .01em; color: var(--text); }
.sc-specs i { margin: 0 6px; font-style: normal; color: #c3c9d2; }
.sc-loc { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sc-loc .icon { flex-shrink: 0; color: var(--subtle); }
.sc-loc span { overflow: hidden; text-overflow: ellipsis; }
.sc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; }
.sc-price s { font-size: 13px; color: var(--subtle); }
.sc-price b { font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: var(--brand); }
.sc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sc-badges span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid #d5dae1; border-radius: 4px; font-size: 12px; font-weight: 500; color: var(--ink); }
.sc-badges .icon { color: var(--success); }
.sc-badges .is-private .icon { color: var(--accent); }
/* Dealers that aren't verified: a neutral badge, so every card says who is selling. */
.sc-badges .is-dealer .icon { color: var(--brand); }
.sc-monthly { display: flex; align-items: center; gap: 5px; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed #e3e7ed; font-size: 13.5px; color: var(--muted); }
.sc-monthly b { font-weight: 550; color: var(--brand); }
.sc-info { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid #b8c0cb; border-radius: 50%; font-size: 10.5px; font-weight: 600; font-family: Georgia, serif; font-style: italic; color: var(--subtle); cursor: help; }
.sc-info em { position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 5; width: 230px; padding: 10px 12px; border-radius: 6px; background: var(--ink); font: 400 12.5px/1.45 var(--font); font-style: normal; color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .2s, transform .2s; }
.sc-info:hover em, .sc-info:focus em { opacity: 1; transform: translate(-50%, 0); }
.sc-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 0; overflow: hidden; background: var(--brand); font-size: 14.5px; font-weight: 550; color: #fff; transition: height .35s var(--ease-out), background .2s; }
.sc-cta:hover { background: var(--brand-600); }
.sc-cta .icon { transition: transform .2s; }
.sc-cta:hover .icon { transform: translateX(3px); }
@media (hover: hover) {
  .sc:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 48px -26px rgba(16, 24, 40, .45), 0 6px 14px -6px rgba(16, 24, 40, .12); }
  .sc:hover .sc-media { height: 172px; }
  .sc:hover .sc-media img { transform: scale(1.04); }
  .sc:hover .sc-cta { height: 48px; }
}
.sc:focus-within .sc-cta { height: 48px; }
.sc:focus-within .sc-media { height: 172px; }

.sr-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 36px; }
.sr-pages { display: flex; gap: 6px; }
.sr-pages a, .sr-pages span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 6px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sr-pages a:hover { border-color: var(--brand); color: var(--brand); }
.sr-pages .is-on { border-color: var(--brand); background: var(--brand); color: #fff; }
.sr-pages .is-off { opacity: .4; }
.sr-pages .is-gap { border-color: transparent; }
.sr-showing { justify-self: end; margin: 0; font-size: 13.5px; color: var(--subtle); }
.sr-note { margin: 32px 0 0; font-size: 12.5px; color: var(--subtle); text-align: center; }
.sr-empty { display: grid; justify-items: center; gap: 10px; padding: 64px 24px; border: 1px dashed #d5dae1; border-radius: 10px; text-align: center; }
.sr-empty > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.sr-empty h2 { font-size: 20px; font-weight: 600; }
.sr-empty p { margin: 0 0 8px; color: var(--muted); }

@media (max-width: 1100px) {
  .sr-layout { grid-template-columns: minmax(0, 1fr); }
  .sr-filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: min(400px, 100vw); max-height: none; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 0 20px; background: #fff; box-shadow: 24px 0 48px -24px rgba(16, 24, 40, .4); transform: translateX(-102%); transition: transform .35s var(--ease-out); }
  .sr-filters.is-open { transform: none; }
  .sf-top { position: sticky; top: 0; z-index: 2; margin: 0 -20px; padding: 14px 20px; border-bottom: 1px solid var(--hair); background: #fff; }
  .sf-close { display: grid; }
  .sf-form { flex: 1; }
  .sf-group:first-child { border-top: 0; }
  .sf-foot { position: sticky; bottom: 0; display: flex; gap: 10px; margin: 0 -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); background: #fff; }
  .sf-reset { flex: 1; height: 48px; display: grid; place-items: center; border: 1px solid #d5dae1; border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
  .sf-show { flex: 2; height: 48px; border: 0; border-radius: 6px; background: var(--accent); font: inherit; font-size: 15px; font-weight: 550; color: #fff; cursor: pointer; }
  .sr-scrim { position: fixed; inset: 0; z-index: 85; display: block; background: rgba(11, 18, 32, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sr-scrim.is-open { opacity: 1; pointer-events: auto; }
  html.sr-locked { overflow: hidden; }
  .sr-filter-bar { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-bottom: 18px; border: 0; border-radius: 6px; background: var(--brand); font: inherit; font-size: 15px; font-weight: 550; color: #fff; cursor: pointer; }
  .sr-filter-bar span { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 11px; background: var(--accent); font-size: 12.5px; }
  .sr-promo { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-car { display: none; }
}
@media (max-width: 760px) {
  .sr-crumbs { margin: 14px 0; }
  .sr-promo { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .sp-btn { justify-self: start; height: 40px; }
  .sr-head { margin: 26px 0 20px; }
  .sr-bar { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .sr-sort { justify-content: space-between; }
  .sr-sort select { flex: 1; max-width: 240px; }
  .sr-count { text-align: center; }
  .sr-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sc-media { height: 230px; }
  .sr-pager { grid-template-columns: 1fr; justify-items: center; }
  .sr-showing { justify-self: center; }
}

/* =====================================================================
   Listing details (/cars/details/{id})
   ===================================================================== */
.cd { padding-bottom: 88px; }
.cd-preview { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid #f3d9a4; border-radius: 8px; background: var(--warning-50); font-size: 14.5px; color: #7a4b00; }
.cd-preview a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--brand); white-space: nowrap; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "gallery panel" "main side"; gap: 28px 40px; align-items: start; }
.cd-gallery { grid-area: gallery; }
.cd-panel { grid-area: panel; }
.cd-main { grid-area: main; min-width: 0; }
.cd-side { grid-area: side; position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }

.cd-gallery .gallery-main { border-radius: 10px; aspect-ratio: 16 / 10; }
.cd-gallery .gallery-nav { width: 42px; height: 42px; opacity: 0; transition: opacity .2s; }
.cd-gallery .gallery-main:hover .gallery-nav { opacity: 1; }
.cd-tags { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.cd-tags span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 4px; background: #fff; font-size: 12.5px; font-weight: 550; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
.cd-tags .is-drop { color: var(--accent-600); }
.cd-count { position: absolute; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 4px; background: rgba(11, 18, 32, .64); font-size: 12.5px; color: #fff; backdrop-filter: blur(6px); }
.cd-count { right: 14px; }
.cd-gallery .thumbs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.cd-gallery .thumb { border-radius: 6px; }

.cd-panel { padding: 26px 26px 22px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.cd-panel h1 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.cd-panel h1 b { font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.cd-variant { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.cd-price { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair); }
.cd-price s { display: block; font-size: 14px; color: var(--subtle); }
.cd-price b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--brand); }
.cd-price p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.cd-price a { font-weight: 550; color: var(--brand); text-decoration: underline; text-decoration-color: rgba(7, 76, 155, .3); text-underline-offset: 3px; }
.cd-buttons { display: grid; gap: 10px; margin-top: 20px; }
.cd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border: 1px solid #d5dae1; border-radius: 6px; background: #fff; font: inherit; font-size: 15px; font-weight: 550; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.cd-btn:hover { border-color: var(--brand); color: var(--brand); }
.cd-btn.is-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.cd-btn.is-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 12px 24px -14px rgba(7, 76, 155, .9); }
.cd-btn.is-accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.cd-btn.is-accent:hover { border-color: var(--accent-600); background: var(--accent-600); color: #fff; box-shadow: 0 12px 24px -14px rgba(214, 74, 15, .9); }
.cd-btn.is-ghost { height: 42px; font-size: 14.5px; }
.cd-btn.is-block { width: 100%; }
.cd-avatar { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.cd-avatar.is-lg { width: 56px; height: 56px; font-size: 18px; }
.cd-avatar.is-private { background: var(--accent-50); color: var(--accent-600); }

.cd-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.cd-keys > div { display: grid; justify-items: center; gap: 2px; padding: 18px 8px; text-align: center; }
.cd-keys > div + div { border-left: 1px solid var(--hair); }
.cd-keys .icon { margin-bottom: 6px; color: var(--brand); }
.cd-keys span { font-size: 12.5px; color: var(--subtle); }
.cd-keys b { font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }

.cd-nav { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 28px; margin: 28px 0 8px; overflow-x: auto; border-bottom: 1px solid var(--hair); background: var(--bg); scrollbar-width: none; }
.cd-nav::-webkit-scrollbar { display: none; }
.cd-nav a { position: relative; flex-shrink: 0; padding: 16px 0 14px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.cd-nav a:hover { color: var(--ink); }
.cd-nav a.is-on { color: var(--ink); }
.cd-nav a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.cd-sec { padding: 32px 0 8px; scroll-margin-top: calc(var(--header-h) + 60px); }
.cd-h { position: relative; margin-bottom: 18px; padding-left: 14px; font-size: 21px; font-weight: 550; letter-spacing: -.015em; color: var(--ink); }
.cd-h::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--accent); }
.cd-prose p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: var(--text); }
.cd-spec { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; overflow: hidden; }
.cd-spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--hair); }
.cd-spec > div:nth-child(odd) { border-right: 1px solid var(--hair); }
.cd-spec > div:nth-last-child(-n+2) { border-bottom: 0; }
.cd-spec dt { font-size: 14px; color: var(--muted); }
.cd-spec dd { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 550; color: var(--ink); text-align: right; }
.cd-spec dd i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .16); }
.cd-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.cd-features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.cd-features .icon { flex-shrink: 0; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }

.cd-calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; overflow: hidden; }
.cd-calc-in { display: grid; gap: 22px; padding: 24px; }
.cd-field { display: grid; gap: 10px; }
.cd-field > span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 550; color: var(--ink); }
.cd-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.cd-field input[type=range] { width: 100%; accent-color: var(--brand); }
.cd-field select, .cd-input input, .cd-input textarea { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d5dae1; border-radius: 6px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.cd-field select { padding-right: 36px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6778' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; cursor: pointer; }
.cd-input textarea { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.cd-field select:focus, .cd-input input:focus, .cd-input textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(7, 76, 155, .12); }
.cd-calc-out { display: grid; align-content: center; gap: 4px; padding: 24px; background: var(--brand-50); }
.cd-calc-out > span { font-size: 13.5px; color: var(--muted); }
.cd-calc-out b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--brand); }
.cd-calc-out small { font-size: 12.5px; color: var(--muted); }
.cd-calc-out small em { font-style: normal; font-weight: 550; color: var(--ink); }
.cd-calc-out .cd-btn { margin-top: 14px; }

.cd-seller { padding: 24px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.cd-seller-head { display: flex; align-items: center; gap: 14px; }
.cd-seller-head > div { flex: 1; min-width: 0; }
.cd-seller-head b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.cd-seller-head > div > span { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.cd-seller-head .icon { color: #f5a524; }
.cd-verified { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--brand-50); font-size: 12px; font-weight: 550; color: var(--brand); }
.cd-verified .icon { color: var(--brand) !important; }
.cd-verified.is-private { background: var(--accent-50); color: var(--accent-600); }
.cd-verified.is-private .icon { color: var(--accent-600) !important; }
.cd-seller p { margin: 18px 0; font-size: 15px; line-height: 1.7; color: var(--text); }
.cd-seller ul { display: grid; gap: 10px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--hair); list-style: none; }
.cd-seller li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.cd-seller li .icon { color: var(--subtle); }

.cd-contact { padding: 24px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.cd-contact h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.cd-contact form { display: grid; gap: 14px; }
.cd-input { display: grid; gap: 6px; }
.cd-input > span:first-child { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.cd-input em { font-style: normal; font-weight: 400; color: var(--subtle); }
.cd-input .field-validation-error { font-size: 13px; color: var(--danger); }
.cd-input:has(.input-validation-error) input, .cd-input:has(.input-validation-error) textarea { border-color: var(--danger); }
.cd-error ul { margin: 0; padding: 10px 14px; border-radius: 6px; background: var(--danger-50); list-style: none; font-size: 14px; color: var(--danger); }
.cd-error.validation-summary-valid { display: none; }
.cd-fine { margin: 0; font-size: 12.5px; color: var(--subtle); text-align: center; }
.cd-fine a { text-decoration: underline; }
.cd-sent { display: grid; justify-items: center; gap: 6px; padding: 12px 0; text-align: center; }
.cd-sent > span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--success-50); color: var(--success); }
.cd-sent p { margin: 0 0 10px; color: var(--muted); }
.cd-trust { display: grid; gap: 14px; margin: 0; padding: 20px 22px; border-radius: 10px; background: var(--soft); list-style: none; }
.cd-trust li { display: flex; gap: 12px; font-size: 13.5px; color: var(--muted); }
.cd-trust .icon { flex-shrink: 0; color: var(--brand); }
.cd-trust b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.cd-similar { margin-top: 72px; }
.cd-similar .fm-head { max-width: none; }
.sr-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1360px) {
  .cd-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px 32px; }
  .cd-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-keys > div:nth-child(4) { border-left: 0; }
  .cd-keys > div:nth-child(n+4) { border-top: 1px solid var(--hair); }
  .sr-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .cd-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "panel" "main" "side"; }
  .cd-side { position: static; }
  .cd-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cd-panel { padding: 20px; }
  .cd-panel h1 { font-size: 22px; }
  .cd-price b { font-size: 28px; }
  .cd-spec { grid-template-columns: 1fr; }
  .cd-spec > div:nth-child(odd) { border-right: 0; }
  .cd-spec > div:nth-last-child(2) { border-bottom: 1px solid var(--hair); }
  .cd-features { grid-template-columns: 1fr; }
  .cd-calc { grid-template-columns: 1fr; }
  .cd-seller-head { flex-wrap: wrap; }
  .cd-seller-head .cd-btn { width: 100%; }
  .cd-gallery .gallery-nav { opacity: 1; }
  .cd-gallery .thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 28%; overflow-x: auto; scrollbar-width: none; }
  .cd-gallery .thumbs .thumb:nth-child(n+6) { display: block; }
  .sr-grid.is-4 { grid-template-columns: minmax(0, 1fr); }
  .cd-nav { gap: 22px; }
}

/* =====================================================================
   Interior pages: shared header, dealers, dealer showroom
   ===================================================================== */
.pg { padding-bottom: 88px; }
.pg-head { max-width: none; margin: 26px 0 28px; }
.pg-head.is-tight { margin-top: 48px; }
.pg-head .fh-kicker i::after { display: none; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pg-chips a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid #d5dae1; border-radius: 6px; background: #fff; font-size: 14px; color: var(--text); transition: all .15s; }
.pg-chips a em { font-style: normal; font-size: 12.5px; color: var(--subtle); }
.pg-chips a:hover { border-color: var(--brand); color: var(--brand); }
.pg-chips a.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pg-chips a.is-on em { color: rgba(255, 255, 255, .7); }

/* Dealer cards on /dealers reuse the search card (.sc) */
/* WhatsApp button on a dealer card (top right of the photo). */
/* Car page on phones: Call and WhatsApp bar fixed to the bottom of the screen. */
.cd-mbar { display: none; }
@media (max-width: 760px) {
  .cd-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e3e7ed; background: #fff; box-shadow: 0 -10px 24px -16px rgba(16, 24, 40, .35); }
  .cd-mbar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .cd-mbar-txt b { font-size: 16px; font-weight: 600; color: var(--brand); white-space: nowrap; }
  .cd-mbar-txt span { overflow: hidden; font-size: 12.5px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
  .cd-mbar .cd-btn { width: auto; height: 44px; padding: 0 14px; }
  body:has(.cd-mbar) { padding-bottom: 72px; }
}
.dc-wa { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 16px -6px rgba(16, 24, 40, .45); transition: transform .2s; }
.dc-wa:hover { transform: scale(1.08); color: #fff; }
.dd-social { display: flex; gap: 8px; margin-top: 8px; }
.dd-social a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e3e7ed; border-radius: 6px; color: var(--brand); }
.dd-social a:hover { border-color: var(--brand); }
.dd-info p > a { display: block; }
.dc-logo { position: absolute; right: 12px; bottom: 10px; width: 46px; height: 46px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 8px; font-size: 15px; font-weight: 600; color: #fff; box-shadow: 0 6px 16px -6px rgba(16, 24, 40, .45); }
.dc-name { font-weight: 600; }
.dc-years { display: flex; align-items: center; gap: 4px; }
.dc-years .icon { color: var(--subtle); }
.dc-years b { font-weight: 600; color: var(--ink); }
.dc-years i { margin: 0 6px; }
.dc-unit { font-size: 13.5px; color: var(--muted); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.dl-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s; }
.dl-cover { position: relative; display: block; height: 150px; background: radial-gradient(300px 160px at 80% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(120deg, var(--c1), var(--c2)); }
.dl-cover img { position: absolute; right: 18px; bottom: -14px; width: 62%; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .35)); transition: transform .5s var(--ease-out); }
.dl-avatar { position: absolute; left: 22px; bottom: -24px; width: 56px; height: 56px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 10px; font-size: 18px; font-weight: 600; color: #fff; box-shadow: 0 6px 16px -6px rgba(16, 24, 40, .4); }
.dl-body { display: flex; flex: 1; flex-direction: column; padding: 38px 22px 20px; }
.dl-body > b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.dl-meta { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.dl-meta .icon { color: var(--subtle); }
.dl-meta .icon:first-child { color: #f5a524; }
.dl-meta em { font-style: normal; color: var(--subtle); }
.dl-meta i { width: 3px; height: 3px; margin: 0 6px; border-radius: 50%; background: #c3c9d2; }
.dl-about { display: -webkit-box; margin-top: 12px; overflow: hidden; font-size: 14px; line-height: 1.6; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--muted); }
.dl-body .dl-about + .dl-foot { margin-top: 18px; }
.dl-foot b { font-weight: 600; color: var(--ink); }
.dl-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--brand); white-space: nowrap; }
.dl-go .icon { transition: transform .2s; }
@media (hover: hover) {
  .dl-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 48px -26px rgba(16, 24, 40, .45), 0 6px 14px -6px rgba(16, 24, 40, .12); }
  .dl-card:hover .dl-cover img { transform: translateX(-10px); }
  .dl-card:hover .dl-go .icon { transform: translateX(3px); }
}

.dd-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 220px; margin-top: 4px; padding: 36px 40px; overflow: hidden; border-radius: 10px; background: radial-gradient(520px 260px at 70% 110%, rgba(255, 255, 255, .16), transparent 70%), linear-gradient(115deg, var(--c2), var(--c1)); color: #fff; }
.dd-id { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; }
.dd-avatar { width: 76px; height: 76px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: rgba(255, 255, 255, .12); font-size: 24px; font-weight: 600; backdrop-filter: blur(6px); }
.dd-kicker { font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.dd-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 550; letter-spacing: -.025em; color: #fff; }
.dd-years { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14.5px; }
.dd-years > .icon { color: rgba(255, 255, 255, .72); }
.dd-years em { font-style: normal; color: rgba(255, 255, 255, .72); }
.dd-years span { display: inline-flex; align-items: center; gap: 5px; height: 26px; margin-left: 8px; padding: 0 9px; border-radius: 4px; background: rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 550; }
.dd-car { position: absolute; right: 300px; bottom: -26px; z-index: 1; width: min(30vw, 440px); filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .4)); }
.dd-cta { position: relative; z-index: 2; display: grid; gap: 10px; }
.dd-avatar.has-img { overflow: hidden; padding: 8px; background: #fff; }
.dd-avatar.has-img img { width: 100%; height: 100%; object-fit: contain; }
.dd-car.is-photo { bottom: 50%; transform: translateY(50%); width: min(22vw, 300px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; filter: none; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55); }
.dd-info a { color: var(--brand); word-break: break-all; }
.cd-btn.is-light { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .1); color: #fff; }
.cd-btn.is-light:hover { border-color: #fff; background: rgba(255, 255, 255, .18); color: #fff; }
.dd-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.dd-info > div { display: flex; gap: 14px; padding: 20px 22px; }
.dd-info > div + div { border-left: 1px solid var(--hair); }
.dd-info > div > span { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--brand-50); color: var(--brand); }
.dd-info p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.dd-info b { display: block; margin-bottom: 2px; font-size: 14.5px; font-weight: 600; color: var(--ink); }

@media (max-width: 1360px) { .dd-car { right: 260px; width: 26vw; } 
}
@media (max-width: 1100px) {
  .dd-hero { grid-template-columns: 1fr; }
  .dd-car { display: none; }
  .dd-cta { grid-template-columns: repeat(3, max-content); }
  .dd-info { grid-template-columns: 1fr; }
  .dd-info > div + div { border-left: 0; border-top: 1px solid var(--hair); }
}
@media (max-width: 760px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dd-hero { padding: 26px 22px; }
  .dd-id { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dd-avatar { width: 60px; height: 60px; font-size: 20px; }
  .dd-cta { grid-template-columns: 1fr; }
  .pg-chips { flex-wrap: nowrap; margin: 0 -16px 24px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .pg-chips a { flex-shrink: 0; }
}

/* ---- Help, legal and error pages ---- */
.pg-split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.pg-toc { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; }
.pg-toc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-left: 2px solid var(--hair); font-size: 14.5px; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.pg-toc a:hover { color: var(--ink); }
.pg-toc a.is-on { border-left-color: var(--accent); background: #fff; color: var(--ink); font-weight: 550; }
.pg-toc .icon { color: var(--subtle); }
.pg-toc a.is-on .icon { color: var(--brand); }
.pg-body { min-width: 0; }
.pg-sec { padding-bottom: 36px; scroll-margin-top: calc(var(--header-h) + 24px); }
.pg-faq { border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.pg-faq details + details { border-top: 1px solid var(--hair); }
.pg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 15.5px; font-weight: 550; color: var(--ink); cursor: pointer; list-style: none; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary span { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 6px; background: var(--soft); color: var(--brand); transition: transform .25s, background .2s; }
.pg-faq details[open] summary span { transform: rotate(45deg); background: var(--brand-50); }
.pg-faq summary:hover { color: var(--brand); }
.pg-faq p { margin: -4px 0 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.pg-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pg-contact a { display: grid; gap: 4px; padding: 22px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.pg-contact a:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--lift); }
.pg-contact span { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 8px; background: var(--brand-50); color: var(--brand); }
.pg-contact b { font-size: 15.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pg-contact em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.pg-doc { padding: 12px 36px 28px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.pg-doc section { padding: 24px 0; border-bottom: 1px solid var(--hair); }
.pg-doc h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.pg-doc h2 i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--brand-50); font-style: normal; font-size: 13.5px; color: var(--brand); }
.pg-doc p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--text); }
.pg-doc p + p, .pg-doc ul + p { margin-top: 10px; }
.pg-doc ul { margin: 10px 0 0; padding-left: 22px; }
.pg-doc li { margin: 5px 0; font-size: 15.5px; line-height: 1.7; color: var(--text); list-style: disc; }
.pg-doc .pg-doc-foot { padding-top: 22px; font-size: 14px; color: var(--muted); }
.pg-doc-foot a { color: var(--brand); text-decoration: underline; }
.pg-oops { display: grid; justify-items: center; gap: 12px; padding: 110px 0 140px; text-align: center; }
.pg-oops-code { display: grid; place-items: center; min-width: 120px; height: 120px; padding: 0 24px; border-radius: 12px; background: var(--brand-50); font-size: 52px; font-weight: 600; letter-spacing: -.03em; color: var(--brand); box-shadow: inset 0 -4px 0 var(--accent); }
.pg-oops-code.is-error { background: var(--danger-50); color: var(--danger); }
.pg-oops h1 { margin-top: 18px; font-size: clamp(26px, 3vw, 36px); font-weight: 550; letter-spacing: -.025em; }
.pg-oops p { max-width: 480px; margin: 0; font-size: 16px; color: var(--muted); }
.pg-oops-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.pg-split.is-3 { grid-template-columns: 240px minmax(0, 1fr) 340px; }
.pg-legal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.pg-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; align-content: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.pg-aside .pg-contact { grid-template-columns: 1fr; gap: 12px; }
.pg-aside .pg-contact a { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px; }
.pg-aside .pg-contact span { grid-row: span 2; margin: 0; }
.pg-card { padding: 22px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.pg-card b { display: block; margin-bottom: 12px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.pg-card ol { display: grid; gap: 10px; margin: 0; padding: 0 0 0 20px; font-size: 14.5px; color: var(--muted); }
.pg-card li::marker { color: var(--accent); font-weight: 600; }
@media (max-width: 1100px) {
  .pg-split { grid-template-columns: 1fr; gap: 8px; }
  .pg-split.is-3, .pg-legal { grid-template-columns: 1fr; gap: 24px; }
  .pg-aside { position: static; }
  .pg-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .pg-toc a { border: 1px solid #d5dae1; border-radius: 6px; background: #fff; }
  .pg-toc a.is-on { border-color: var(--brand); }
  .pg-contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pg-doc { padding: 6px 20px 20px; }
  .pg-faq summary { padding: 16px; font-size: 15px; }
  .pg-faq p { padding: 0 16px 18px; }
  .pg-oops { padding: 72px 0 96px; }
}

/* ---- Sell with us (/fortraders) ---- */
.ft-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 400px; padding: 56px 56px; overflow: hidden; border-radius: 10px; background: radial-gradient(700px 360px at 78% 110%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(115deg, var(--brand-700), var(--brand) 62%, #0a5bb5); color: #fff; }
.ft-hero h1 { margin: 12px 0 16px; font-size: clamp(32px, 3.4vw, 52px); font-weight: 550; letter-spacing: -.03em; line-height: 1.06; color: #fff; }
.ft-copy p { max-width: 520px; margin: 0; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ft-visual { position: relative; height: 300px; }
.ft-visual img { position: absolute; left: 50%; bottom: -10px; width: min(560px, 100%); transform: translateX(-50%); filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .4)); }
.ft-kpi { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 18px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .45); }
.ft-kpi span { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-50); color: var(--brand); }
.ft-kpi b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.ft-kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ft-kpi.is-a { top: 0; left: 4%; }
.ft-kpi.is-b { top: 34px; right: 0; }
.ft-kpi.is-b span { background: var(--accent-50); color: var(--accent-600); }
.ft-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.ft-stats > div { display: grid; gap: 2px; padding: 22px 26px; }
.ft-stats > div + div { border-left: 1px solid var(--hair); }
.ft-stats b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--brand); }
.ft-stats span { font-size: 14px; color: var(--muted); }
.ft-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ft-feature { padding: 26px 24px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.ft-feature:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--lift); }
.ft-feature > span { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 10px; background: var(--brand-50); color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); }
.ft-feature b { font-size: 17px; font-weight: 600; color: var(--ink); }
.ft-feature p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.ft-toggle { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--soft-2); }
.ft-toggle label { cursor: pointer; }
.ft-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ft-toggle span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); transition: all .2s; }
.ft-toggle em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--success); }
.ft-toggle input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.ft-toggle input:focus-visible + span { outline: 2px solid var(--brand); }
.ft-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ft-plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.ft-plan.is-popular { border: 2px solid var(--brand); box-shadow: var(--lift); }
.ft-ribbon { position: absolute; top: -13px; left: 28px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 4px; background: var(--accent); font-size: 12px; font-weight: 600; color: #fff; }
.ft-plan-name { font-size: 20px; font-weight: 600; color: var(--ink); }
.ft-plan-tag { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.ft-price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.ft-price b { font-size: 34px; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.ft-price span { font-size: 14px; color: var(--muted); }
.ft-note { margin: 4px 0 0; font-size: 12.5px; color: var(--subtle); }
.ft-plan ul { display: grid; gap: 11px; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--hair); list-style: none; }
.ft-plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); }
.ft-plan li .icon { flex-shrink: 0; margin-top: 2px; color: var(--success); }
.ft-plan .cd-btn { margin-top: auto; }
.ft-join { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); overflow: hidden; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.ft-join-side { padding: 36px; background: radial-gradient(360px 220px at 100% 100%, rgba(255, 255, 255, .14), transparent 70%), linear-gradient(140deg, var(--brand-700), var(--brand)); color: rgba(255, 255, 255, .8); }
.ft-join-side > b { display: block; font-size: 22px; font-weight: 550; letter-spacing: -.015em; color: #fff; }
.ft-join-side p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; }
.ft-join-side ul { display: grid; gap: 14px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); list-style: none; font-size: 14.5px; }
.ft-join-side li { display: flex; align-items: center; gap: 10px; }
.ft-join-form { padding: 36px; }
.ft-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ft-form .is-wide { grid-column: 1 / -1; }
/* Spam trap on the partner form: off screen, never seen by people. */
.ft-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 1360px) { .ft-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}
@media (max-width: 1100px) {
  .ft-hero { grid-template-columns: 1fr; padding: 44px 36px; }
  .ft-visual { height: 240px; }
  .ft-stats { grid-template-columns: 1fr 1fr; }
  .ft-stats > div:nth-child(3) { border-left: 0; }
  .ft-stats > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .ft-plans { grid-template-columns: 1fr; max-width: 560px; }
  .ft-join { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ft-hero { padding: 32px 22px 0; }
  .ft-visual { height: 200px; margin: 0 -22px; }
  .ft-kpi { padding: 10px 12px; }
  .ft-kpi b { font-size: 18px; }
  .ft-kpi.is-b { display: none; }
  .ft-stats > div { padding: 18px; }
  .ft-stats b { font-size: 21px; }
  .ft-features { grid-template-columns: 1fr; }
  .ft-join-side, .ft-join-form { padding: 24px 20px; }
  .ft-form { grid-template-columns: 1fr; }
}

/* ---- FindMotos app (footer, sell page) ---- */
.footer-app { display: flex; align-items: center; gap: 28px; max-width: 760px; }
.footer-app b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.footer-app p { margin: 4px 0 0; max-width: 340px; font-size: 14px; color: var(--muted); }
.app-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.app-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 8px; background: #0b1220; color: #fff; transition: transform .25s var(--ease-out), box-shadow .25s, background .2s; }
.app-btn:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(11, 18, 32, .8); }
.app-btn span { display: grid; line-height: 1.1; text-align: left; }
.app-btn em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .72); }
.app-btn b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.app-btns.is-light .app-btn { background: #fff; color: var(--ink); }
.app-btns.is-light .app-btn em { color: var(--muted); }
.app-btns.is-light .app-btn b { color: var(--ink); }
.app-btns.is-light .app-btn:hover { background: #f4f6f9; }
@media (max-width: 760px) {
  .footer-app { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---- Sell privately ---- */
.ft-hero.is-private { background: radial-gradient(700px 360px at 78% 110%, rgba(240, 90, 26, .28), transparent 70%), linear-gradient(115deg, var(--brand-700), var(--brand) 62%, #0a5bb5); }
.sl-note { display: flex; align-items: center; gap: 8px; margin-top: 18px !important; font-size: 14px !important; color: rgba(255, 255, 255, .7) !important; }
.ft-hero .ft-kpi b { font-size: 16px; }
.sl-steps { list-style: none; margin: 0; padding: 0; }
.sl-n { display: block; margin-bottom: 4px; font-style: normal; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sl-link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.sl-faq { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.sl-dealer { display: grid; gap: 8px; padding: 28px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; transition: transform .3s var(--ease-out), box-shadow .3s; }
.sl-dealer:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.sl-dealer > span { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.sl-dealer b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.sl-dealer p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.sl-dealer em { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-style: normal; font-weight: 600; color: #fff; }
@media (max-width: 1100px) { .sl-faq { grid-template-columns: 1fr; } 
}

/* ---- Home services: two buttons ---- */
.asv-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-pill.is-ghost { background: transparent; }
.sl-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Search: make and model dropdowns ---- */
.sf-selects { display: grid; gap: 12px; }
.sf-select { display: grid; gap: 6px; }
.sf-select > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.sf-select select { width: 100%; height: 44px; padding: 0 38px 0 14px; border: 1px solid #d5dae1; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font: inherit; font-size: 14.5px; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sf-select select:hover { border-color: #b8c0cc; }
.sf-select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7, 76, 155, .14); }
.sf-select.is-off select { background-color: #f4f6f9; color: var(--subtle); cursor: not-allowed; }
/* Slider handles track the pointer without lag. */
.sr-track input::-webkit-slider-thumb { transition: box-shadow .15s; }
.sr-track input:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 0 0 6px rgba(7, 76, 155, .14), 0 2px 6px rgba(16, 24, 40, .2); }
.sr-track input { touch-action: none; }
.sc-badges .is-triptik { border-color: #f5c9a8; background: var(--accent-50); color: var(--accent-600); }

/* Homepage featured cars and dealers: a 4-up grid, a swipe row on phones */
.ah-rail-more { display: none; }
@media (max-width: 700px) {
  .sr-grid.ah-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; margin: 0 -16px; padding: 4px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .sr-grid.ah-rail::-webkit-scrollbar { display: none; }
  .sr-grid.ah-rail > * { scroll-snap-align: start; }
  .ah-rail-more { display: flex; }
}
.ah-sponsor { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.ah-sponsor .icon { color: var(--subtle); }
.ah-sponsor a { color: var(--brand); font-weight: 550; text-decoration: underline; text-decoration-color: rgba(7, 76, 155, .3); text-underline-offset: 3px; }

/* For dealers: featured boost prices */
.ft-boosts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 32px 48px; margin-top: 32px; padding: 32px 36px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.fb-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.fb-copy h3 { margin: 10px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.fb-copy p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.fb-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fb-opt { position: relative; display: grid; gap: 4px; padding: 22px 18px 18px; border: 1px solid #d5dae1; border-radius: 8px; text-align: center; }
.fb-opt em { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 4px; background: var(--accent); font-size: 11px; font-style: normal; font-weight: 600; color: #fff; white-space: nowrap; }
.fb-opt span { font-size: 14px; font-weight: 500; color: var(--muted); }
.fb-opt b { font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: var(--brand); }
.fb-opt small { font-size: 12.5px; color: var(--subtle); }
@media (max-width: 960px) { .ft-boosts { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; } 
}
@media (max-width: 480px) { .fb-options { grid-template-columns: minmax(0, 1fr); gap: 18px; } 
}

/* Homepage: Find a car near you (cities and budgets) */
.ah-cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ah-city { position: relative; display: grid; gap: 4px; padding: 24px 24px 22px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; color: var(--ink); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s; }
.ac-pin { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; background: #eaf1fa; color: var(--brand); transition: background .3s, color .3s; }
.ah-city b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ac-count { font-size: 14.5px; color: var(--text); }
.ac-count em { font-style: normal; font-weight: 600; color: var(--brand); }
.ac-meta { font-size: 13px; color: var(--muted); }
.ac-go { position: absolute; top: 24px; right: 22px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #d5dae1; border-radius: 50%; color: var(--ink); transition: background .3s, border-color .3s, color .3s, transform .3s; }
@media (hover: hover) {
  .ah-city:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 40px -24px rgba(16, 24, 40, .4), 0 6px 14px -6px rgba(16, 24, 40, .1); }
  .ah-city:hover .ac-pin { background: var(--brand); color: #fff; }
  .ah-city:hover .ac-go { border-color: var(--accent); background: var(--accent); color: #fff; transform: translateX(2px); }
}
.ah-budgets { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 32px; padding: 22px 24px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; }
.ah-budgets > b { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ah-budgets > div { display: flex; flex-wrap: wrap; gap: 10px; }
.ah-budgets a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .2s, color .2s, background .2s; }
.ah-budgets a em { font-style: normal; font-size: 12.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.ah-budgets a:hover { border-color: var(--brand); color: var(--brand); background: #f5f8fd; }

@media (max-width: 1100px) { .ah-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}
@media (max-width: 560px) {
  .ah-cities { gap: 12px; }
  .ah-city { padding: 18px 16px; }
  .ac-pin { width: 38px; height: 38px; margin-bottom: 10px; }
  .ah-city b { font-size: 17px; }
  .ac-meta { display: none; }
  .ac-go { display: none; }
  .ah-budgets { padding: 18px 16px; }
  .ah-budgets > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .ah-budgets a { justify-content: space-between; }
}

/* EXP-2: listing age and views in place of the monthly estimate (Experiments:EXP-2 in appsettings.json). */
.sc-fresh { justify-content: space-between; }
.sc-fresh span { display: inline-flex; align-items: center; gap: 6px; }
.sc-fresh .icon { color: var(--subtle); }
.sc-fresh .sc-seller { font-weight: 500; color: var(--ink); }
.sc-fresh .sc-seller.is-verified .icon { color: var(--success); }
/* Verified dealers stand out a little: a soft green pill instead of plain text. */
.sc-fresh .sc-seller.is-verified { padding: 3px 9px 3px 7px; border-radius: 4px; background: color-mix(in srgb, var(--success) 10%, #fff); color: color-mix(in srgb, var(--success) 85%, #000); font-weight: 600; }
.sc-fresh .sc-seller.is-dealer .icon { color: var(--brand); }
.sc-fresh .sc-seller.is-private .icon { color: var(--accent); }
.sc-badges .is-colour { color: var(--ink); }
.sc-swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .18); }
.sc-badges .is-plain svg { width: 22px; height: 14px; color: var(--muted); }

/* Footer: brand and app block sit in the first column of the link grid */
.site-footer .footer-grid.footer-main { grid-template-columns: minmax(280px, 1.7fr) repeat(5, minmax(0, 1fr)); gap: 40px 32px; }
.footer-main .footer-brand p { max-width: 340px; font-size: 14.5px; line-height: 1.6; }
.footer-main .footer-app { display: block; max-width: none; margin-top: 26px; padding-top: 22px; border-top: 1px solid #e1e4e8; }
.footer-main .footer-app p { margin: 4px 0 14px; max-width: 320px; font-size: 13.5px; }
@media (max-width: 1100px) {
  .site-footer .footer-grid.footer-main { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .site-footer .footer-grid.footer-main > .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
  .footer-main .footer-brand > .logo, .footer-main .footer-brand > p { grid-column: 1; }
  .footer-main .footer-app { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; border: 0; }
}
@media (max-width: 760px) {
  .site-footer .footer-grid.footer-main { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid.footer-main > .footer-brand { display: block; grid-column: 1 / -1; }
  .footer-main .footer-app { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e1e4e8; }
}

/* Section heads without an intro line: title left, link right. */
.fm-head:not(:has(> p)) { grid-template-columns: minmax(0, 1fr) auto; }
.ah-city { align-content: start; }

/* Language switcher: EN / العربية, desktop dropdown and a toggle in the phone menu. */
.hn-lang { margin-left: 6px; padding-left: 8px; border-left: 1px solid #e1e4e8; height: 24px; }
.site-header.on-dark .hn-lang { border-left-color: rgba(255, 255, 255, .25); }
.hn-lang .hn-link { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.hn-langs { left: auto; right: 0; min-width: 180px; }
.hn-langs::before { left: auto; right: 22px; }
.hn-langs a { justify-content: space-between; }
.hn-langs a[lang="ar"] { font-size: 15.5px; }
.hn-langs a.is-on { color: var(--brand); font-weight: 550; }
.hn-langs a .icon { color: var(--brand); }
.mn-lang { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; padding-top: 16px; border-top: 1px solid #e8ebef; }
.mn-lang span { margin-right: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.mn-lang a { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.mn-lang a.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }

/* Test photos (Photos:TestImages): real photos sit in a framed 4:3 tile instead of the floating studio cut-outs. */
.test-photos .ap-car, .test-photos .sp-car, .test-photos .dd-car { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; filter: none; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55); }
.test-photos .ap-car { max-width: 340px; transform: none; }
.test-photos .ah-promo:hover .ap-car { transform: translateY(-4px); }
.test-photos .sp-car { width: clamp(180px, 15vw, 230px); margin: 0; }
.test-photos .dd-car { bottom: 50%; transform: translateY(50%); width: min(22vw, 300px); }
.dd-years > span:first-child { margin-left: 0; }

/* Dealer banner artwork: the finished design from 1024px up; below that the art crop sits above the live text. */
.ah-promo.has-art .ap-full, .ah-promo.has-art .ap-art { display: none; }
@media (min-width: 1024px) {
  .ah-promo.has-art { display: block; min-height: 0; padding: 0; background: #0b4aa2; }
  .ah-promo.has-art .ap-full { display: block; width: 100%; height: auto; }
  .ah-promo.has-art .ap-copy, .ah-promo.has-art .ap-offer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1023px) {
  .ah-promo.has-art { grid-template-columns: 1fr; padding-top: 0; background: linear-gradient(180deg, #0b4aa2 0%, #05336a 100%); }
  .ah-promo.has-art .ap-art { display: block; width: calc(100% + 64px); max-width: none; margin: 0 -32px; aspect-ratio: 880 / 560; object-fit: cover; object-position: center 30%; }
  .ah-promo.has-art .ap-offer { text-align: left; }
}
@media (max-width: 760px) {
  .ah-promo.has-art .ap-art { width: calc(100% + 48px); margin: 0 -24px; }
}

/* Browse by brand rows: body outline on the left, arrow on the right (no live counts) */
.ah-brand li a .ab-body { display: inline-flex; flex-shrink: 0; width: 30px; margin-right: 4px; font-style: normal; color: var(--subtle); transition: color .15s; }
.ah-brand li a .ab-body .body-ic { width: 30px; height: 15px; }
.ah-brand li a .ab-go { display: inline-flex; margin-left: auto; font-style: normal; color: var(--subtle); transition: color .15s, transform .2s var(--ease-out); }
.ah-brand li a:hover .ab-body, .ah-brand li a:hover .ab-go { color: var(--brand); }
.ah-brand li a:hover .ab-go { transform: translateX(3px); }
.ah-brand .ab-all a .ab-go { color: var(--brand); }

/* Calls and WhatsApp only: no on-site messaging, numbers always shown */
.cd-btn.is-whatsapp .icon { color: #1fa855; }
.cd-btn.is-whatsapp:hover { border-color: #1fa855; color: #12813f; }
.cd-wa { display: grid; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e3e7ed; }
.cd-wa-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cd-wa-title .icon { color: #1fa855; }

/* For dealers hero: Mr M's finished banner on desktop, photo over live text below 1024px */
.ft-hero.has-art .fa-full, .ft-hero.has-art .fa-hot, .ft-hero.has-art .fa-art { display: none; }
@media (min-width: 1024px) {
  .ft-hero.has-art { display: block; min-height: 0; padding: 0; background: #0b4aa2; }
  .ft-hero.has-art .fa-full { display: block; width: 100%; height: auto; }
  .ft-hero.has-art .fa-hot { display: block; position: absolute; top: 65.4%; height: 9.8%; border-radius: 6px; transition: box-shadow .2s, background .2s; }
  .ft-hero.has-art .fa-hot.is-join { left: 4.4%; width: 14.7%; }
  .ft-hero.has-art .fa-hot.is-login { left: 20.2%; width: 11.9%; }
  .ft-hero.has-art .fa-hot:hover { background: rgba(255, 255, 255, .08); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
  .ft-hero.has-art .fa-hot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
  .ft-hero.has-art .ft-copy { display: none; }
}
@media (max-width: 1023px) {
  .ft-hero.has-art { grid-template-columns: 1fr; padding-top: 0; background: linear-gradient(180deg, #0b4aa2, #05336a); }
  .ft-hero.has-art .fa-art { display: block; width: calc(100% + 72px); max-width: none; margin: 0 -36px 8px; aspect-ratio: 1132 / 600; object-fit: cover; object-position: center 40%; }
}
@media (max-width: 760px) {
  .ft-hero.has-art { padding-bottom: 32px; }
  .ft-hero.has-art .fa-art { width: calc(100% + 44px); margin: 0 -22px 8px; }
}

/* EXP-151: car photos as a grid on tablets and up (one large, four small). Phones keep the swipe gallery. */
.cd-mosaic { display: none; }
@media (min-width: 761px) {
  .cd-gallery.has-mosaic > .gallery-main, .cd-gallery.has-mosaic > .thumbs { display: none; }
  .cd-mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; }
  .cd-mosaic.n-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 7; }
  .cd-mosaic.n-3 { grid-template-columns: 2fr 1fr; }
  .cd-mosaic.n-4 .cm-tile:nth-child(2) { grid-row: span 2; }
  .cm-tile { position: relative; min-height: 0; padding: 0; border: 0; overflow: hidden; background: var(--line-2); cursor: zoom-in; }
  .cd-mosaic:not(.n-2) .cm-tile:first-child { grid-row: span 2; }
  .cm-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .3s; }
  .cm-tile:hover img { transform: scale(1.04); filter: brightness(1.04); }
  .cm-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
  .cm-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 18, 32, .55); font-size: 17px; font-weight: 600; color: #fff; transition: background .2s; }
  .cm-tile:hover .cm-more { background: rgba(11, 18, 32, .45); }
  .cd-mosaic .cd-tags { pointer-events: none; }
  .cm-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 0; border-radius: 4px; background: #fff; font: inherit; font-size: 13px; font-weight: 550; color: var(--ink); box-shadow: 0 4px 14px rgba(16, 24, 40, .18); cursor: pointer; }
  .cm-all:hover { color: var(--brand); }
}

/* Car page: location line under the title, inspection tip, and descriptions that keep their line breaks (Arabic reads right to left) */
.cd-prose p { white-space: pre-line; }
.cd-prose p[dir="rtl"], .cd-prose p:dir(rtl) { text-align: right; }
.ah-budgets a em { display: inline-flex; color: var(--subtle); }
.ah-budgets a:hover em { color: var(--brand); }
/* V2 dealer cards (API data): logo image or initials on the brand blue. */
.dc-logo.is-initials { background: #074C9B; }
.dc-logo.has-img { background: #fff; overflow: hidden; padding: 2px; }
.dc-logo.has-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }

/* Dealer preview of their own car (/cars/{id}?handler=preview) */
.cd-preview .cd-preview-links { margin-left: auto; display: inline-flex; gap: 16px; flex-shrink: 0; }
.cd-preview .cd-preview-links a { margin-left: 0; }
@media (max-width: 640px) {
  .cd-preview { flex-wrap: wrap; }
  .cd-preview .cd-preview-links { margin-left: 0; width: 100%; }
}

/* Launch offer (public): pill on the homepage dealer banner, box above the plans on "For dealers" */
.ap-launch { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--accent, #f05a1a); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
@media (min-width: 1024px) {
  .ah-promo.has-art .ap-launch { position: absolute; top: 13%; right: 3.6%; }
}
.ft-launch { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 24px; padding: 22px 24px; border: 1px solid #f7c7ad; border-radius: 10px; background: linear-gradient(135deg, #fff4ee, #fff 70%); }
.ft-launch-ic { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--accent, #f05a1a); color: #fff; }
.ft-launch b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); }
.ft-launch p { margin: 6px 0 0; color: var(--muted); }
.ft-launch ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 14px; color: var(--ink); }
.ft-launch li { display: flex; gap: 8px; align-items: flex-start; }
.ft-launch li .icon { color: var(--success, #0f9d63); margin-top: 3px; flex-shrink: 0; }
.ft-free { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--accent, #f05a1a); }
@media (max-width: 760px) {
  .ft-launch { flex-direction: column; padding: 18px; }
  .ft-launch ul { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Dealer page (/dealers/{slug}): slim header, one contact strip, then the stock ---------- */
.dv-card { margin-top: 4px; overflow: hidden; border: 1px solid var(--hair); border-radius: 10px; background: #fff; }
/* Banner drawn from the dealer's name, like a showroom sign: light background with soft curves, large dark name,
   the last word spaced out below, a short orange line and the city. No photos. */
.dv-banner { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 56px; overflow: hidden; border-bottom: 1px solid var(--hair); background: linear-gradient(160deg, #fbfbfc 0%, #f3f4f6 100%); }
.dv-banner::before, .dv-banner::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.dv-banner::before { right: -12%; bottom: -78%; width: 70%; height: 150%; background: linear-gradient(200deg, rgba(16, 24, 40, .09), rgba(16, 24, 40, 0) 60%); }
.dv-banner::after { left: -18%; top: -120%; width: 60%; height: 170%; background: linear-gradient(20deg, rgba(16, 24, 40, 0) 40%, rgba(16, 24, 40, .07)); }
.dv-b-text { position: relative; z-index: 1; min-width: 0; }
.dv-banner h1 { margin: 0; color: #1d2128; }
.dv-b-main { display: block; font-size: clamp(40px, 5vw, 76px); font-weight: 600; line-height: 1; letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; }
.dv-b-sub { display: block; margin-top: 12px; font-size: clamp(22px, 2.6vw, 40px); font-weight: 300; line-height: 1; letter-spacing: .32em; text-transform: uppercase; color: #5b616b; }
.dv-b-line { display: block; width: 72px; height: 2px; margin: 26px 0 18px; background: var(--accent); }
.dv-b-place { margin: 0; font-size: 13.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #5b616b; }
.dv-b-logo { position: relative; z-index: 1; width: 120px; height: 120px; flex-shrink: 0; padding: 12px; border: 1px solid var(--hair); border-radius: 10px; background: #fff; }
.dv-b-logo img { width: 100%; height: 100%; object-fit: contain; }
/* Arabic letters join up, so no letter spacing or capitals there. */
[dir="rtl"] .dv-b-main, [dir="rtl"] .dv-b-sub, [dir="rtl"] .dv-b-place { letter-spacing: 0; text-transform: none; }
.dv-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 28px; }
.dv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; font-size: 14px; color: var(--muted); }
.dv-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dv-meta .icon { color: var(--subtle); }
.dv-meta .dv-verified { height: 26px; padding: 0 9px 0 7px; border-radius: 4px; background: color-mix(in srgb, var(--success) 10%, #fff); font-weight: 600; color: color-mix(in srgb, var(--success) 85%, #000); }
.dv-meta .dv-verified .icon { color: var(--success); }
.dv-actions { display: flex; gap: 10px; flex-shrink: 0; padding-bottom: 2px; }
.dv-actions .cd-btn { height: 46px; white-space: nowrap; }
.cd-btn.is-icon { width: 46px; padding: 0; }

/* About the dealer (left) and Visit the showroom (right) */
.dv-info { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; margin-top: 20px; }
.dv-panel { padding: 30px 32px; border: 1px solid var(--hair); border-radius: 10px; background: #fff; }
.dv-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.dv-panel h2 { margin: 0 0 14px; font-size: clamp(22px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.dv-story-text { max-width: 70ch; margin: 0; font-size: 16px; line-height: 1.7; color: #3d4450; white-space: pre-line; }
.dv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 26px 0 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.dv-facts > div { padding: 18px 20px 18px 0; }
.dv-facts > div + div { padding-left: 20px; border-left: 1px solid var(--hair); }
.dv-facts dt { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--subtle); }
.dv-facts dd { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: #1d2128; }
.dv-facts dd.is-verified { color: var(--success); }
.dv-promise { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.dv-promise .icon { flex-shrink: 0; margin-top: 1px; color: var(--brand); }
.dv-story { display: flex; flex-direction: column; }
.dv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: auto 0 0; padding: 24px 0 0; list-style: none; }
.dv-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 8px; background: var(--soft); }
.dv-steps i { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; font-style: normal; font-size: 14px; font-weight: 600; color: var(--accent); box-shadow: 0 0 0 1px var(--hair); }
.dv-steps p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.dv-steps b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.dv-visit { display: flex; flex-direction: column; background: linear-gradient(160deg, #fbfbfc, #f4f5f7); }
.dv-rows { display: grid; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.dv-rows li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.dv-rows li > .icon { flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.dv-rows b { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.dv-rows a { color: var(--brand); word-break: break-all; }
.dv-visit-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.dv-visit-foot .cd-btn { height: 44px; }
.dv-visit-foot .dd-social { margin: 0; }
.dv-visit-foot .dd-social a { background: #fff; }
[dir="rtl"] .dv-label, [dir="rtl"] .dv-facts dt, [dir="rtl"] .dv-rows b { letter-spacing: 0; text-transform: none; }

@media (max-width: 1100px) {
  .dv-top { flex-direction: column; align-items: flex-start; }
  .dv-info { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dv-banner { min-height: 0; padding: 30px 20px 26px; }
  .dv-b-main { font-size: 32px; }
  .dv-b-sub { margin-top: 8px; font-size: 18px; letter-spacing: .28em; }
  .dv-b-line { width: 56px; margin: 18px 0 12px; }
  .dv-b-place { font-size: 11.5px; letter-spacing: .16em; }
  .dv-b-logo { display: none; }
  .dv-top { padding: 18px; gap: 18px; }
  .dv-info { gap: 16px; margin-top: 16px; }
  .dv-panel { padding: 22px 20px; }
  .dv-story-text { font-size: 15px; }
  .dv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-facts > div, .dv-facts > div + div { padding: 14px 0; border-left: 0; }
  .dv-facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hair); }
  .dv-facts > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .dv-facts dd { font-size: 22px; }
  .dv-steps { grid-template-columns: 1fr; gap: 8px; padding-top: 18px; }
  .dv-steps li { padding: 12px 14px; }
  .dv-meta { gap: 6px 14px; font-size: 13.5px; }
  .dv-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px; width: 100%; }
  .dv-actions .cd-btn { padding: 0 12px; font-size: 14.5px; }
  .dv-actions .cd-btn.is-icon { padding: 0; }
  .fm-head.dv-head { grid-template-columns: 1fr; }
  .fm-head.dv-head .sr-sort { justify-self: start; }
}

/* ---------- Sell privately hero: Cairo photo with a curved edge + the app on a phone ---------- */
.ft-hero.is-private .ft-copy { position: relative; z-index: 2; }
.sl-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; overflow: hidden; clip-path: ellipse(100% 120% at 100% 50%); }
.sl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.sl-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 51, 106, .55), rgba(5, 51, 106, 0) 45%), linear-gradient(0deg, rgba(5, 40, 90, .35), transparent 40%); }
.sl-visual { z-index: 2; height: 340px; }
.sl-phone { position: absolute; left: 56%; top: 50%; width: 220px; padding: 10px 10px 14px; transform: translate(-50%, -50%) rotate(-4deg); border: 6px solid #10141c; border-radius: 30px; background: #fff; color: var(--ink); box-shadow: 0 40px 60px -24px rgba(0, 0, 0, .65); }
.sl-phone-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 8px; font-size: 11px; font-weight: 600; }
.sl-phone-top i { width: 54px; height: 14px; border-radius: 10px; background: #10141c; margin-right: 40px; }
.sl-phone-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.sl-phone-head b { font-size: 14px; font-weight: 600; }
.sl-live { padding: 2px 8px; border-radius: 4px; background: color-mix(in srgb, var(--success) 12%, #fff); font-size: 11px; font-weight: 600; color: var(--success); }
.sl-phone-car { display: grid; place-items: center; height: 96px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #eef1f5, #dfe4ea); }
.ft-visual.sl-visual .sl-phone-car img { position: static; width: 92%; transform: none; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .25)); }
.sl-phone-body { display: grid; gap: 2px; padding: 10px 4px 8px; }
.sl-phone-body b { font-size: 14px; font-weight: 600; }
.sl-phone-body span { font-size: 11px; color: var(--muted); }
.sl-phone-body em { margin-top: 4px; font-style: normal; font-size: 16px; font-weight: 600; color: var(--brand); }
.sl-phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 4px; }
.sl-phone-btns span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border-radius: 6px; background: var(--brand); font-size: 11.5px; font-weight: 600; color: #fff; }
.sl-phone-btns .is-wa { border: 1px solid var(--hair); background: #fff; color: var(--ink); }
.sl-phone-btns .is-wa .icon { color: #1fa855; }
.sl-visual .ft-kpi { z-index: 3; }
.sl-visual .ft-kpi.is-a { top: 6px; left: -8%; }
.sl-visual .ft-kpi.is-b { top: auto; bottom: 24px; right: 0; }
@media (max-width: 1100px) {
  .sl-photo { position: relative; width: auto; height: 300px; margin: 8px -36px 0; clip-path: ellipse(120% 100% at 50% 100%); }
  .ft-hero.is-private { padding-bottom: 0; }
  .sl-visual { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; }
  .sl-phone { top: 52%; transform: translate(-50%, -50%) rotate(-4deg) scale(.82); }
  .sl-visual .ft-kpi.is-a { top: 24px; left: 20px; }
  .sl-visual .ft-kpi.is-b { right: 20px; }
}
@media (max-width: 720px) {
  .sl-photo { height: 280px; margin: 8px -22px 0; }
  .sl-visual { height: 280px; }
  .sl-phone { left: 64%; top: 56%; transform: translate(-50%, -50%) rotate(-4deg) scale(.68); }
  .sl-visual .ft-kpi.is-a { top: 34px; left: 12px; }
}

/* Missing car details (car page): red "Pending" until the seller adds them. */
.is-pending { color: #d92d20; font-weight: 600; }

/* ============ Homepage hero (Mr M 2026-11-30: V20 chosen, every other hero option removed) ============
   FindMotos blue hero joined to a menu bar of the same blue (softened from navy 2026-11-30), car photo top right, "Buy & sell cars in Egypt", typed search box with the filter button,
   orange button the same height as the box, then the latest cars. */

/* Menu bar blended into the blue hero (Mr M 2026-11-30: same FindMotos blue as the hero, not the old navy) */
body:has(.is-bx) .site-header { background: #0a58b0; border-bottom: 0; box-shadow: 0 1px 0 #0a58b0; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
/* No hairline between the menu bar and the hero at any screen scaling (Mr M 2026-11-30) */
body:has(.is-bx) .hx-v-top { margin-top: -1px; }
body:has(.is-bx) .site-header .fm-logo path { stroke: #fff; }
body:has(.is-bx) .site-header .hn-link { color: rgba(255, 255, 255, .88); }
body:has(.is-bx) .site-header .hn-link:hover, body:has(.is-bx) .site-header .hn-item.open > .hn-link, body:has(.is-bx) .site-header .hn-link.active { color: #fff; }
body:has(.is-bx) .site-header .hn-lang { border-left-color: rgba(255, 255, 255, .3); }
body:has(.is-bx) .site-header .menu-toggle { color: #fff; }

/* Hero */
.hx { position: relative; padding: 0 0 clamp(36px, 4vw, 56px); background: #fff; }
.hx-v-top { position: relative; overflow: hidden; padding: clamp(40px, 4.4vw, 64px) 0 clamp(36px, 4vw, 56px); background: radial-gradient(70% 120% at 15% 100%, rgba(80, 150, 230, .45) 0%, transparent 70%), linear-gradient(180deg, #0a58b0 0%, #074c9b 100%); }
.hx-v-inner { position: relative; display: flex; align-items: center; gap: 40px; }
.hx-v-copy { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; max-width: 560px; }
.hx .hx-v-title { margin: 0; max-width: none; font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; color: #fff; }
.hx-bx-car { position: absolute; right: 0; top: 0; bottom: 0; width: min(50vw, 720px); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.hx-bx-car img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.hx-bx-car::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 76, 155, .2) 0%, transparent 35%, transparent 70%, rgba(7, 76, 155, .4) 100%); }

/* Search: box with the filter button, orange button under it */
.hx-k1-search { position: relative; width: 100%; max-width: 560px; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.hx-k1-box { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 7px 0 16px; box-sizing: border-box; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .55); }
.hx-k1-box > .icon { flex-shrink: 0; color: var(--brand); }
.hx-k1-box input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.hx-k1-box input::placeholder { color: #7a8594; }
.hx-k1-box:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .4); }
.hx-k1-filter { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #eaf1f9; color: var(--brand); }
.hx-k1-filter:hover { background: #dbe7f5; }
.hx-app-go { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.hx-app-go:hover { background: var(--accent-600); }
.hx-k1-go { width: 100%; height: 54px; font-size: 16px; }
/* Typed search suggestions (wwwroot/js/hero-text.js) */
.hx-type-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; box-shadow: 0 18px 40px -16px rgba(4, 20, 44, .35); text-align: left; }
.hx-type-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 6px; font-size: 15px; color: var(--ink); cursor: pointer; }
.hx-type-list li em { font-style: normal; font-size: 13px; color: var(--muted); }
.hx-type-list li:hover, .hx-type-list li[aria-selected="true"] { background: #f1f5fb; color: var(--brand); }

/* Latest cars */
.hx-v-cars { padding-top: 36px; padding-bottom: 56px; }
.hx-browse-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hx-browse-head h2 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.005em; color: var(--ink); }
.hx-browse-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand); text-decoration: none; }
.hx-grid { display: grid; gap: 20px; margin-top: 20px; }
.hx-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-more { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 1200px) {
  .hx-grid.is-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hx-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: shorter menu bar that scrolls away with the page, tighter hero, smaller car photo top right */
@media (max-width: 640px) {
  body:has(.is-bx) { --header-h: 52px; }
  body[data-page="home"] .site-header { position: relative; }
  .hx-v-top { padding: 22px 0 18px; }
  .hx .hx-v-title { font-size: 24px; line-height: 1.15; }
  .hx-v-copy, .hx-k1-search { max-width: none; }
  .hx-k1-search { margin-top: 16px; gap: 10px; }
  .hx-k1-box { height: 50px; }
  .hx-k1-go { height: 50px; font-size: 15px; }
  .hx-bx-car { top: 0; bottom: auto; right: -40px; width: 230px; height: 104px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%), linear-gradient(180deg, #000 60%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 40%), linear-gradient(180deg, #000 60%, transparent 100%); mask-composite: intersect; }
  .hx-bx-car img { object-position: 80% 55%; }
  .hx-v-cars { padding-top: 24px; }
  .hx-browse-head h2 { font-size: 18px; }
  .hx-grid.is-4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Rest of the homepage: card shadows and orange icons (Mr M 2026-11-27) */
.ah-brand { border: 1px solid #e3e7ed; border-radius: 10px; box-shadow: 0 1px 2px rgba(4, 20, 44, .05), 0 12px 26px -20px rgba(4, 20, 44, .35); }
.ah-brand .ab-mark { background: #fff1ea; color: var(--accent); }
.ah-city, .ah-budgets { box-shadow: 0 1px 2px rgba(4, 20, 44, .05), 0 12px 26px -20px rgba(4, 20, 44, .35); }
.ac-pin { background: #fff1ea; color: var(--accent); }
.ah-city:hover .ac-pin { background: var(--accent); color: #fff; }
.ah-budgets a { border-radius: 8px; background: #fff; }

/* ============ Car page aligned with the FindMotos app (Mr M 2026-11-30) ============
   Photo with round share / full screen buttons, count and dots; "2023 Honda Civic", trim and listed date; EGP in orange and the price in blue;
   seller row with Private / Dealer and Triptik pills; key facts with orange icons; tabs; one-column specification and two-column equipment
   with "Show all"; seller card; WhatsApp message card; safety tips; similar cars; price, Call and WhatsApp bar on phones. */
.cd-round { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(16, 24, 40, .18); cursor: pointer; }
.cd-g-share { top: 14px; right: 14px; }
.cd-g-full { right: 14px; bottom: 14px; width: 38px; height: 38px; color: var(--brand); pointer-events: none; }
.cd-count { left: 14px; right: auto; height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(24, 30, 42, .62); font-size: 13px; }
.cd-dots { position: absolute; left: 50%; bottom: 14px; z-index: 2; display: flex; gap: 5px; transform: translateX(-50%); }
.cd-dots i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .7); transition: background .2s; }
.cd-dots i.is-on { background: var(--accent); }
.cd-gallery .gallery-nav { top: 50%; }

.cd-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cd-panel h1 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); }
.cd-variant { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.cd-listed { flex-shrink: 0; padding-top: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cd-panel .cd-price { margin: 12px 0 0; padding: 0; border: 0; display: flex; align-items: baseline; gap: 5px; }
.cd-panel .cd-price small { font-size: 15px; font-weight: 600; color: var(--accent); }
.cd-panel .cd-price b { display: inline; font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--brand); }
.cd-who { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.cd-who > div:first-child { min-width: 0; }
.cd-who b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.cd-who > div:first-child > span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.cd-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.cd-pills span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 104px; height: 32px; padding: 0 14px; border-radius: 8px; background: #eef1f5; font-size: 13px; font-weight: 600; color: #44505f; }
.cd-pills .is-trade { background: #e8eff8; color: var(--brand); }
.cd-pills .is-triptik { background: #0b3a78; color: #fff; }
.cd-pills .is-new { background: var(--accent-50); color: var(--accent-600); }
.cd-btn { border-radius: 10px; }
.cd-btn.is-primary { border-color: #0b3a78; background: #0b3a78; }
.cd-btn.is-whatsapp { border: 1.5px solid #1f8a4c; color: #1f8a4c; background: #fff; }
.cd-btn.is-whatsapp .icon { color: #1f8a4c; }
.cd-btn.is-whatsapp:hover { border-color: #1f8a4c; background: #eef8f1; color: #1f8a4c; }
.cd-btn.is-outline { border: 1.5px solid #0b3a78; background: #fff; color: #0b3a78; }
.cd-btn.is-outline:hover { background: #f2f6fb; }

.cd-keys .icon { color: var(--accent); }
.cd-keys span { font-size: 13px; color: var(--muted); }
.cd-keys b { font-size: 15.5px; }
.cd-nav a { font-size: 15px; }
.cd-h { padding-left: 0; font-size: 20px; font-weight: 600; }
.cd-h::before { display: none; }

.cd-spec { grid-template-columns: minmax(0, 1fr); }
.cd-spec > div, .cd-spec > div:nth-child(odd) { padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--hair); }
.cd-spec > div:last-child, .cd-more-wrap:not(.is-open) .cd-spec > div:nth-child(9) { border-bottom: 0; }
.cd-spec dt { font-size: 15px; }
.cd-spec dd { font-size: 15px; font-weight: 500; }
.cd-more-wrap:not(.is-open) .is-extra { display: none; }
.cd-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--brand); cursor: pointer; }
.cd-toggle .icon { transition: transform .2s; }
.cd-more-wrap.is-open .cd-toggle .icon { transform: rotate(180deg); }
.cd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.cd-features li { font-size: 15px; }
.cd-features .icon { width: 28px; height: 28px; padding: 6px; }

.cd-seller { display: block; padding: 20px; }
.cd-seller.is-link { color: inherit; transition: border-color .2s, box-shadow .2s; }
.cd-seller.is-link:hover { border-color: #cfd8e3; box-shadow: 0 12px 26px -20px rgba(4, 20, 44, .45); }
.cd-seller-head { align-items: center; }
.cd-seller-head > .icon { flex-shrink: 0; color: var(--subtle); }
.cd-seller-head b { font-size: 17px; }
.cd-seller-head > div > span { font-size: 13.5px; }
.cd-seller p { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.cd-seller p .icon { color: var(--subtle); }
.cd-seller .cd-seller-go { font-weight: 500; color: var(--brand); }
.cd-avatar.is-lg { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); font-size: 20px; }
.cd-avatar.is-private { background: var(--accent-50); color: var(--accent-600); }
.cd-avatar.is-logo { overflow: hidden; border: 1px solid #e3e7ed; background: #fff; }
.cd-avatar.is-logo img { width: 100%; height: 100%; object-fit: contain; }
.cd-verified { height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; }

.cd-contact.cd-wa { display: grid; gap: 14px; margin: 0; padding: 20px; border: 1px solid #e3e7ed; }
.cd-wa-title { font-size: 16px; font-weight: 500; }
.cd-wa-title .icon { color: #1fa855; }
.cd-wa .cd-input > span:first-child { font-size: 13.5px; font-weight: 400; color: var(--muted); }
.cd-wa .cd-input textarea { border-radius: 10px; font-size: 15px; resize: none; }
.cd-wa .cd-btn { height: 52px; font-size: 16px; }
.cd-wa .cd-btn .icon { color: #fff; }
.cd-trust { gap: 18px; padding: 20px; border: 1px solid #e3e7ed; background: #fff; }
.cd-trust li { font-size: 14.5px; line-height: 1.5; }
.cd-trust b { margin-bottom: 2px; font-size: 15.5px; }

.cd-similar { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--hair); }
.cd-similar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cd-kicker { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cd-similar-head h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.cd-similar-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.cd-similar-more { display: none; }

@media (max-width: 760px) {
  .cd { padding-top: 0; }
  .cd-crumbs { display: none; }
  .cd-grid { gap: 0; }
  .cd-gallery { margin: 0 -16px; }
  .cd-gallery .gallery-main { aspect-ratio: 4 / 3; border-radius: 0; }
  .cd-gallery .gallery-nav, .cd-gallery .thumbs { display: none; }
  .cd-panel { padding: 18px 0 20px; border: 0; border-radius: 0; background: none; }
  .cd-panel h1 { font-size: 22px; }
  .cd-panel .cd-price b { font-size: 30px; }
  .cd-buttons { display: none; }
  .cd-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-keys > div { padding: 16px 6px; }
  .cd-nav { gap: 0; margin-top: 24px; }
  .cd-nav a { flex: 1 0 auto; padding: 14px 10px 12px; text-align: center; }
  .cd-sec { padding-top: 28px; }
  .cd-spec > div, .cd-spec > div:nth-child(odd) { padding: 15px 18px; }
  .cd-spec > div:nth-last-child(2) { border-bottom: 1px solid var(--hair); }
  .cd-spec > div:last-child, .cd-more-wrap:not(.is-open) .cd-spec > div:nth-child(9) { border-bottom: 0; }
  .cd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .cd-features li { font-size: 14.5px; }
  .cd-side { gap: 20px; margin-top: 24px; }
  .cd-similar { margin: 40px -16px 0; padding: 28px 16px 0; }
  .cd-similar-head { margin-bottom: 16px; }
  .cd-similar-head h2 { font-size: 22px; }
  .cd-similar-head .fh-link { display: none; }
  .cd-rail.sr-grid.is-4 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; margin-right: -16px; padding-right: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cd-rail::-webkit-scrollbar { display: none; }
  .cd-rail > * { scroll-snap-align: start; }
  .cd-similar-more { display: flex; height: 52px; margin-top: 18px; font-size: 16px; }
  .cd-mbar { gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cd-mbar-txt span { font-size: 12.5px; color: var(--muted); }
  .cd-mbar-txt b { display: flex; align-items: baseline; gap: 3px; font-size: 18px; color: var(--brand); }
  .cd-mbar-txt b small { font-size: 12.5px; font-weight: 600; color: var(--accent); }
  .cd-mbar .cd-btn { height: 50px; padding: 0 14px; font-size: 15px; }
  body:has(.cd-mbar) { padding-bottom: 84px; }
}

/* =====================================================================
   Phones only (Mr M 2026-11-30): results page bar like the app, and a
   shorter car card. Desktop and tablet are unchanged.
   ===================================================================== */
.sr-appbar { display: none; }
@media (max-width: 760px) {
  .sr-crumbs { display: none; }
  .sr-head { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
  .sr-filter-bar { display: none; }
  .sr-filters:not(.is-open) { box-shadow: none; }
  .sr-appbar { position: sticky; top: var(--header-h); z-index: 6; display: flex; gap: 8px; margin: 0 -16px 10px; padding: 12px 16px 10px; background: var(--bg); }
  .sr-appbar-q { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #d5dae1; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--subtle); text-align: left; cursor: pointer; }
  .sr-appbar-q .icon { flex-shrink: 0; color: var(--muted); }
  .sr-appbar-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sr-appbar-q.is-set { color: var(--ink); font-weight: 500; }
  .sr-appbar-f { position: relative; flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--brand); color: #fff; cursor: pointer; }
  .sr-appbar-f span { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); border-radius: 10px; background: var(--accent); font-size: 11.5px; font-weight: 600; line-height: 1; }
  .sr-bar { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 12px; }
  .sr-count { text-align: left; font-size: 14px; }
  .sr-count b { font-size: 15px; color: var(--ink); }
  .sr-count span { display: none; }
  .sr-sort { justify-content: flex-end; }
  .sr-sort > span { display: none; }
  .sr-sort select { flex: none; max-width: 200px; height: 36px; padding: 0 30px 0 10px; background-position: right 8px center; font-size: 13.5px; }
  .sr-chips { margin-bottom: 12px; }
  .sr-grid { gap: 14px; }

  /* Shorter car card on phones */
  .sc-media, .sr-grid .sc-media { height: 190px; }
  .sc:focus-within .sc-media { height: 190px; }
  .sc:focus-within .sc-cta { height: 0; }
  .sc-tag { top: 10px; left: 10px; height: 24px; }
  .sc-body { padding: 12px 14px 12px; }
  .sc-variant.is-empty { display: none; }
  .sc-specs { margin-top: 5px; }
  .sc-loc { margin-top: 6px; font-size: 12.5px; }
  .sc-price { margin-top: 6px; }
  .sc-price b { font-size: 19px; }
  .sc-badges { margin-top: 8px; }
  .sc-badges:not(:has(span)) { display: none; }
  .sc-monthly { margin-top: 10px; padding-top: 10px; font-size: 12.5px; }

  /* Dealer page: the full phone number gets its own row so it is never cut off */
  .dv-actions { grid-template-columns: minmax(0, 1fr) 46px; }
  .dv-actions .cd-btn[data-lead="call"] { grid-column: 1 / -1; }
}

/* ============ Hero options W1 and W3 (Mr M 2026-11-30, open /?hero=w1 or w3; W2 and W4 removed) ============ */
.hw-switch { position: fixed; left: 50%; bottom: 16px; z-index: 80; display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #0b1220; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transform: translateX(-50%); max-width: calc(100vw - 24px); overflow-x: auto; }
.hw-switch a { flex-shrink: 0; padding: 8px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.hw-switch a.is-on { background: #fff; color: var(--ink); }
.hw-kicker { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.hw .hw-title { margin: 0; font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.hw-sub { margin: 12px 0 0; max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.hw-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.hw-photo { overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 10; box-shadow: 0 24px 50px -30px rgba(4, 20, 44, .55); }
.hw-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
/* Search box with the button beside it on wide screens */
.hw-box.is-row { max-width: 620px; flex-direction: row; }
.hw-box.is-row .hx-k1-box { flex: 1 1 auto; }
.hw-box.is-row .hx-k1-go { width: auto; padding: 0 28px; }
.hw .hx-k1-box { border: 1px solid #d5dde8; }

/* Menu bar blended into each option's top section (Mr M 2026-11-30): same background, no line */
body:has(.hw-1) .site-header, body:has(.hw-3) .site-header { border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:has(.hw-1) .site-header { background: #f3f7fc; box-shadow: 0 1px 0 #f3f7fc; }
body:has(.hw-3) .site-header { background: #fff; box-shadow: 0 1px 0 #fff; }
.hw-1 .hw-top, .hw-3 .hw-top { margin-top: -1px; }
.hw-3 .hw-top { background: linear-gradient(180deg, #fff 0%, #f6f9fc 100%); }

/* W1 Light */
.hw-1 .hw-top { padding: clamp(40px, 4.4vw, 64px) 0; background: linear-gradient(180deg, #f3f7fc 0%, #fbfcfe 100%); border-bottom: 1px solid #e8edf3; }

/* W3 Body types */
.hw-3 .hw-top { padding: clamp(40px, 4.4vw, 64px) 0 clamp(28px, 3vw, 40px); background: #fff; border-bottom: 1px solid #e8edf3; }
.hw-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hw-center .hw-sub { margin-left: auto; margin-right: auto; }
.hw-center .hw-box { margin-left: auto; margin-right: auto; }
.hw-bodies { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 860px; margin-top: 28px; }
.hw-body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.hw-body:hover { border-color: var(--brand); box-shadow: 0 12px 26px -20px rgba(4, 20, 44, .45); }
.hw-body-ic { height: 34px; display: grid; place-items: center; color: var(--brand); }
.hw-body b { font-size: 14px; font-weight: 500; }
.hw-body em { margin-top: -4px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.hw-body-ic { width: 44px; height: 44px; border-radius: 10px; background: #eaf1fb; }

@media (max-width: 900px) {
  .hw-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hw-1 .hw-photo { display: none; }
  .hw-bodies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hw .hw-title { font-size: 26px; }
  .hw-sub { font-size: 15px; }
  .hw-1 .hw-top, .hw-3 .hw-top { padding: 24px 0; }
  .hw-box.is-row { flex-direction: column; }
  .hw-box.is-row .hx-k1-go { width: 100%; }
  .hw-bodies { gap: 8px; margin-top: 20px; }
  .hw-body { padding: 12px 4px 10px; }
  .hw-body b { font-size: 13px; }
  .hw-body em { font-size: 11.5px; }
  .hw-body-ic { width: 38px; height: 38px; }
  .hw-switch { bottom: 10px; }
}

/* W1: collection boxes in one row under the search and photo (Mr M 2026-11-30) */
.hw-bodies.is-row { max-width: none; margin-top: 32px; }
.hw-bodies.is-row .hw-body { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
.hw-bodies.is-row .hw-body-ic { flex-shrink: 0; width: 42px; height: 42px; }
.hw-body-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hw-bodies.is-row .hw-body em { margin-top: 0; }
@media (max-width: 1200px) {
  .hw-bodies.is-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hw-bodies.is-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .hw-bodies.is-row .hw-body { gap: 10px; padding: 10px; }
  .hw-bodies.is-row .hw-body-ic { width: 36px; height: 36px; }
  .hw-bodies.is-row .hw-body b { font-size: 13.5px; }
}

/* Shorter W1 (Mr M 2026-11-30): the pale hero ends just under the search, collections sit below it */
.hw-1 .hw-top { padding: 32px 0 36px; }
.hw-1 .hw-under { padding: 20px 0 4px; }
.hw-1 .hw-bodies.is-row { margin-top: 0; }
/* W1 title smaller (Mr M 2026-11-30) */
.hw-1 .hw-title { font-size: clamp(26px, 2.3vw, 34px); }
/* W1 less text (Mr M 2026-11-30): no sentence under the title, one-line cards */
.hw-1 .hw-copy .hw-box { margin-top: 22px; }
/* W1: big FM removed (Mr M 2026-11-30), the copy takes the full width */
.hw-1 .hw-inner { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
  .hw-1 .hw-top { padding: 24px 0; }
  .hw-1 .hw-under { padding-top: 16px; }
}

/* Softer hero search, button and title on all hero versions (Mr M 2026-11-30) */
.hx .hx-v-title { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.hw .hw-title { font-size: clamp(26px, 2.5vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.hw-1 .hw-title { font-size: clamp(24px, 2.1vw, 30px); }
.hx-k1-box { height: 50px; box-shadow: 0 8px 22px -18px rgba(4, 20, 44, .35); }
.hw .hx-k1-box { border-color: #e2e8f0; }
.hx-k1-box input { font-size: 15.5px; }
.hx-k1-box input::placeholder { color: #949eab; }
.hx-k1-box > .icon { opacity: .75; }
.hx-k1-filter { width: 36px; height: 36px; background: #f1f5fa; }
.hx-k1-go { height: 50px; font-size: 15.5px; font-weight: 500; }
.hw-box.is-row .hx-k1-go { padding: 0 24px; }
@media (max-width: 640px) {
  .hx .hx-v-title, .hw .hw-title { font-size: 24px; }
  .hx-k1-box, .hx-k1-go { height: 48px; }
}

/* W3 even softer text, and a shorter top on phones (Mr M 2026-11-30) */
.hw-3 .hw-top { padding-bottom: clamp(40px, 4.4vw, 64px); }
/* W1 and W3 button in FindMotos blue; on phones it sits under the box like W1 (Mr M 2026-11-30) */
.hw-1 .hx-k1-go, .hw-3 .hx-k1-go { background: var(--brand); }
.hw-1 .hx-k1-go:hover, .hw-3 .hx-k1-go:hover { background: var(--brand-600); }
.hw-3 .hw-title { font-weight: 400; color: #1c2633; }
.hw-3 .hw-sub { color: #7a8594; }
.hw-3 .hw-body b { font-weight: 400; color: #2a3441; }
.hw-3 .hw-body em { color: #8a94a1; }
@media (max-width: 640px) {
  .hw-3 .hw-top { padding: 16px 0 18px; }
  .hw-3 .hw-title { font-size: 22px; }
  .hw-3 .hw-sub { display: none; }
  .hw-3 .hw-box { margin-top: 14px; gap: 8px; }
  .hw-3 .hw-bodies { margin-top: 14px; gap: 6px; }
  .hw-3 .hw-body { gap: 6px; padding: 10px 4px 9px; }
  .hw-3 .hw-body-ic { width: 32px; height: 32px; border-radius: 8px; }
  .hw-3 .hw-body-ic .icon { width: 18px; height: 18px; }
  .hw-3 .hw-body b { font-size: 12.5px; line-height: 1.25; }
  .hw-3 .hw-body em { display: none; }
}

/* Homepage brands, simplified (Mr M 2026-11-30) */
.ah-brands-simple { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.abs-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 56px; padding: 0 16px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, color .2s; }
.abs-tile b { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abs-tile .icon { flex-shrink: 0; color: #9aa4b1; transition: color .2s, transform .2s; }
.abs-tile:hover { border-color: var(--brand); color: var(--brand); }
.abs-tile:hover .icon { color: var(--brand); transform: translateX(2px); }
@media (max-width: 1100px) {
  .ah-brands-simple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ah-brands-simple { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .abs-tile { height: 50px; padding: 0 14px; }
  .abs-tile b { font-size: 14.5px; }
}

/* ============ Homepage versions V1-V10, marketplace round (test page /homes, Mr M 2026-11-30).
   Delete this block with Pages/HomeVersions.cshtml(.cs) and Pages/Shared/_HomeSearchPanel.cshtml once one is chosen. ============ */
.hl-switch { gap: 2px; }
.hl-switch a { padding: 8px 10px; }

/* Search panel */
.sp { width: 100%; max-width: 860px; padding: 2px 18px 18px; border-radius: 10px; background: #fff; box-shadow: 0 24px 50px -30px rgba(4, 20, 44, .45); box-sizing: border-box; }
.sp-tabs { display: flex; gap: 22px; margin-bottom: 14px; border-bottom: 1px solid #e6ebf1; }
.sp-tabs button { height: 46px; padding: 0 2px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.sp-tabs button.is-on { border-bottom-color: var(--brand); color: var(--ink); }
.sp-line { display: flex; flex-direction: column; gap: 10px; }
.sp.is-row .sp-line { flex-direction: row; }
.sp .sp-box { flex: 1 1 auto; min-width: 0; height: 52px; border: 1px solid #d9e1ec; box-shadow: none; }
.sp .sp-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7, 76, 155, .12); }
.sp-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-size: 15.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s; }
.sp-go:hover { background: var(--brand-600); }

/* Top section */
.mk-hero { position: relative; margin-top: -1px; }
.mk-hero.is-photo { background: #0b2f5c; }
.mk-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.mk-hero.is-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 28, 60, .86) 0%, rgba(4, 28, 60, .6) 45%, rgba(4, 28, 60, .25) 100%); }
.mk-hero.is-photo.is-centre::after { background: rgba(4, 28, 60, .58); }
.mk-hero .wrap { position: relative; z-index: 3; } /* above the V7 body strip, so the suggestions list shows over it */
.mk-pad { padding-top: 56px; padding-bottom: 60px; }
.is-photo .mk-pad { padding-top: 72px; padding-bottom: 76px; }
.mk-title { margin: 0; font-size: clamp(28px, 2.8vw, 42px); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.mk-sub { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.is-photo .mk-title { color: #fff; }
.is-photo .mk-sub { color: rgba(255, 255, 255, .85); }
.mk-hero .sp { margin-top: 26px; }
.is-centre .mk-pad { display: flex; flex-direction: column; align-items: center; text-align: center; }
.is-centre .sp { text-align: left; }
.is-centre .sp-tabs { justify-content: flex-start; }
.mk-kicker { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.mk-overlap { position: relative; z-index: 2; margin-top: -46px; }

/* Sections */
.mk-block { padding-top: 48px; }
.mk-block.is-soft { margin-top: 48px; padding-bottom: 48px; background: #f6f9fc; }
.mk-block.is-soft + .mk-block { padding-top: 48px; }
.mk-hero + .mk-block.is-soft { margin-top: 0; }
.mk-end { height: 64px; }
.mk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mk-head h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.mk-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand); white-space: nowrap; }
.mk-cars { margin-top: 0; }
.mk-bodies, .mk-budget-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mk-bodies a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 8px 14px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; color: var(--ink); text-align: center; transition: border-color .2s, box-shadow .2s; }
.mk-bodies a:hover, .mk-budget-cards a:hover { border-color: var(--brand); box-shadow: 0 12px 26px -22px rgba(4, 20, 44, .5); }
.mk-bodies .body-ic { width: 64px; height: 32px; color: var(--brand); }
.mk-bodies b { font-size: 14px; font-weight: 500; }
.mk-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-pills a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid #d9e1ec; border-radius: 8px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.mk-pills a:hover { border-color: var(--brand); color: var(--brand); }
.mk-budget-cards a { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.mk-budget-cards span { color: var(--brand); }
.mk-budget-cards b { font-size: 15.5px; font-weight: 500; }
.mk-budget-cards em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 13px; color: var(--brand); }
.mk-app { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: 10px; background: linear-gradient(135deg, #0a58b0 0%, #074c9b 100%); color: #fff; }
.mk-app b { display: block; font-size: 21px; font-weight: 500; }
.mk-app span { display: block; margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.mk-dealer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid #e3e9f1; border-radius: 10px; background: #f6f9fc; color: var(--ink); }
.mk-dealer img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.mk-dealer > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 32px 40px; }
.mk-dealer b { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.mk-dealer em { max-width: 520px; font-style: normal; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.mk-dealer .btn-pill { margin-top: 6px; }

@media (max-width: 1100px) {
  .mk-bodies, .mk-budget-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mk-dealer { grid-template-columns: minmax(0, 1fr); }
  .mk-dealer img { min-height: 0; max-height: 200px; }
}
@media (max-width: 640px) {
  .mk-pad, .is-photo .mk-pad { padding-top: 24px; padding-bottom: 28px; }
  .mk-title { font-size: 24px; }
  .mk-sub { font-size: 14.5px; }
  .mk-hero .sp { margin-top: 16px; }
  .sp { padding: 0 12px 12px; }
  .sp-tabs { gap: 18px; margin-bottom: 10px; }
  .sp-tabs button { height: 42px; font-size: 14.5px; }
  .sp.is-row .sp-line { flex-direction: column; gap: 8px; }
  .sp .sp-box, .sp-go { height: 48px; font-size: 14.5px; }
  .mk-overlap { margin-top: -20px; }
  .mk-block { padding-top: 32px; }
  .mk-block.is-soft { margin-top: 32px; padding-bottom: 32px; }
  .mk-block.is-soft + .mk-block { padding-top: 32px; }
  .mk-end { height: 40px; }
  .mk-head h2 { font-size: 19px; }
  .mk-bodies { gap: 8px; }
  .mk-bodies a { padding: 12px 4px 10px; }
  .mk-bodies .body-ic { width: 52px; height: 26px; }
  .mk-bodies b { font-size: 13px; }
  .mk-budget-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mk-app { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .mk-dealer > div { padding: 22px 20px; }
  .mk-dealer b { font-size: 20px; }
}

/* V20 Discover (Mr M 2026-11-30; V9-V19 removed 2026-12-01) */
.ap-top { margin-top: -1px; padding: 28px 0 32px; background: #fff; border-bottom: 1px solid #e8edf3; }
.ap-search { position: relative; display: flex; gap: 10px; max-width: 900px; }
.ap-box { flex: 1 1 auto; min-width: 0; height: 52px; border: 1px solid #d9e1ec; box-shadow: none; }
.ap-go { height: 52px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.ap-go:hover { background: var(--brand-600); }
body:has(.ap-top.ap-v20) .site-header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 #fff; }
.ap-v20 { padding-bottom: 0; }
.ap-v20 .ap-search { margin: 0 auto; }
.ap-catbar { display: flex; justify-content: center; gap: 8px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; }
.ap-catbar a { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; gap: 6px; min-width: 84px; padding: 6px 8px 12px; border-bottom: 2px solid transparent; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .2s, border-color .2s; }
.ap-catbar a > span { display: grid; place-items: center; height: 28px; }
.ap-catbar .body-ic { width: 44px; height: 22px; }
.ap-catbar a:hover { color: var(--ink); border-bottom-color: #d5dde8; }
.ap-catbar a.is-on { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 900px) {
  .ap-catbar { justify-content: flex-start; margin-right: -16px; padding-right: 16px; }
}
@media (max-width: 640px) {
  .ap-top { padding: 16px 0 18px; }
  .ap-go { padding: 0 18px; }
  .ap-box, .ap-go { height: 48px; }
  .ap-catbar { margin-top: 14px; }
  .ap-catbar a { min-width: 72px; }
}


/* ============ Homepage versions V21-V25: app-style phone look from Mr M's 5 screenshots (2026-11-30) ============ */
.ms-top { padding: 34px 0 10px; background: #fff; }
.ms-top.is-photo { position: relative; overflow: hidden; background: linear-gradient(180deg, #f4f8fd 0%, #fff 100%); }
.ms-top.is-photo::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46%; background: url(/images/k7-car.jpg) right center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); opacity: .9; pointer-events: none; }
.ms-top .wrap { position: relative; z-index: 3; }
.ms-title { position: relative; display: inline-block; margin: 0 0 26px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; color: #0b2347; }
.ms-title em { font-style: normal; }
.ms-swoosh { display: block; width: 120px; height: 12px; margin-top: 6px; }
.ms-swoosh path { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; }
.ms-search { display: flex; gap: 10px; align-items: stretch; max-width: 760px; }
.ms-box { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px -10px rgba(4, 30, 66, .25); color: #3d4b5f; }
.ms-box > svg { flex-shrink: 0; }
.ms-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.ms-box input::placeholder { color: #7d8898; }
.ms-go { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: auto; padding: 0 24px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ms-v24 .ms-box, .ms-v24 .ms-go { border-radius: 12px; }

.ms-v23 { padding-bottom: 30px; background: #f4f8fd; }

@media (max-width: 900px) {
  .ms-top.is-photo::after { width: 60%; }
}
@media (max-width: 640px) {
  .ms-top { padding: 24px 0 4px; }
  .ms-title { margin-bottom: 22px; font-size: 32px; }
  .ms-top.is-photo .ms-title { font-size: 28px; }
  .ms-top.is-photo::after { width: 52%; bottom: auto; height: 132px; opacity: .8; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 40%, #000 80%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 40%, #000 80%); }
  .ms-swoosh { width: 96px; }
  .ms-search { flex-wrap: wrap; }
  .ms-go { width: 100%; height: 50px; }
  .ms-box { height: 50px; padding-right: 14px; }
}

/* V9 (v=21), V10 (v=23) and V11 (v=24): menu bar blended into the top, tighter top (Mr M 2026-12-01) */
body:has(.ms-v21) .site-header { background: #fff; border-bottom: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:has(.ms-v23) .site-header, body:has(.ms-v24) .site-header { background: #f4f8fd; border-bottom: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ms-v21, .ms-v23, .ms-v24 { margin-top: -1px; padding: 14px 0 26px; }
.ms-v24 { background: #f4f8fd; border-bottom: 1px solid #e8edf3; }
.ms-v21, .ms-v23 { border-bottom: 1px solid #e8edf3; }
.ms-top.ms-v21 .ms-title, .ms-top.ms-v23 .ms-title, .ms-top.ms-v24 .ms-title { margin-bottom: 18px; font-size: clamp(26px, 2.4vw, 36px); }
.ms-v21 .ms-swoosh, .ms-v23 .ms-swoosh, .ms-v24 .ms-swoosh { width: 96px; margin-top: 4px; }
.ms-v21 .ms-box, .ms-v23 .ms-box, .ms-v24 .ms-box { height: 50px; }
.ms-v24.is-photo::after { width: 40%; }
@media (max-width: 640px) {
  .ms-v21, .ms-v23, .ms-v24 { padding: 8px 0 18px; }
  .ms-top.ms-v21 .ms-title, .ms-top.ms-v23 .ms-title, .ms-top.ms-v24 .ms-title { margin-bottom: 14px; font-size: 26px; }
  .ms-v21 .ms-swoosh, .ms-v23 .ms-swoosh, .ms-v24 .ms-swoosh { width: 80px; }
  .ms-v21 .ms-search, .ms-v23 .ms-search, .ms-v24 .ms-search { gap: 8px; }
  .ms-v21 .ms-box, .ms-v23 .ms-box, .ms-v24 .ms-box, .ms-v21 .ms-go, .ms-v23 .ms-go, .ms-v24 .ms-go { height: 46px; }
  .ms-v24.is-photo::after { height: 92px; width: 50%; }
}

/* V6 Photo (v=7): body types in the budget card look, overlapping the photo (Mr M 2026-12-01) */
.mk-budget-cards.is-bodies a { box-shadow: 0 16px 34px -24px rgba(4, 20, 44, .45); }
.mk-budget-cards.is-bodies span { display: flex; align-items: center; height: 24px; }
.mk-budget-cards.is-bodies .body-ic { width: 48px; height: 24px; }
@media (max-width: 640px) {
  .mk-budget-cards.is-bodies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-budget-cards.is-bodies a { padding: 12px 10px; }
  .mk-budget-cards.is-bodies b { font-size: 14px; }
  .mk-budget-cards.is-bodies em { font-size: 12px; }
  .mk-budget-cards.is-bodies .body-ic { width: 40px; height: 20px; }
}

/* V9-V11 titles lighter (Mr M 2026-12-01: "reduce the boldness of the header") */
.ms-top.ms-v21 .ms-title, .ms-top.ms-v23 .ms-title, .ms-top.ms-v24 .ms-title { font-weight: 400; color: #2a3d58; }
.ms-v21 .ms-swoosh path, .ms-v23 .ms-swoosh path, .ms-v24 .ms-swoosh path { stroke-width: 3; }

/* V12 (v=26) "Elegant plus": V10 made livelier (Mr M 2026-12-01) */
body:has(.ms-v26) .site-header { background: #f4f8fd; border-bottom: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ms-v26 { position: relative; overflow: hidden; margin-top: -1px; padding: 22px 0 34px; border-bottom: 1px solid #e8edf3; background: radial-gradient(900px 380px at 85% 10%, #e4eefb 0%, rgba(228, 238, 251, 0) 70%), #f4f8fd; }
.ms-26 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ms-kicker { display: flex; width: max-content; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px 5px 10px; border: 1px solid #d9e5f4; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--brand); }
.ms-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ms-top.ms-v26 .ms-title { margin-bottom: 22px; font-size: clamp(32px, 3vw, 46px); font-weight: 400; color: #2a3d58; }
.ms-top.ms-v26 .ms-title em { color: var(--brand); }
.ms-v26 .ms-swoosh { width: 110px; }
.ms-v26 .ms-swoosh path { stroke-width: 3; }
.ms-v26 .ms-search { max-width: none; }
.ms-v26 .ms-box { height: 52px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ms-chips a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid #d9e5f4; border-radius: 999px; background: #fff; font-size: 13.5px; color: #2a3d58; transition: border-color .2s, color .2s, background .2s; }
.ms-chips a .icon { color: var(--brand); }
.ms-chips a:hover { border-color: var(--brand); color: var(--brand); }
.ms-26-art { position: relative; }
.ms-26-art img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 70% 50%; border-radius: 10px; box-shadow: 0 30px 60px -36px rgba(4, 30, 66, .55); }
.ms-note { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 500; color: #2a3d58; box-shadow: 0 14px 30px -16px rgba(4, 30, 66, .45); }
.ms-note .icon { color: var(--brand); }
.ms-note.is-a { left: -22px; bottom: 26px; }
.ms-note.is-b { right: 18px; top: -14px; }
@media (max-width: 1000px) {
  .ms-26 { grid-template-columns: minmax(0, 1fr); }
  .ms-26-art { display: none; }
}
@media (max-width: 640px) {
  .ms-v26 { padding: 10px 0 20px; background: radial-gradient(420px 220px at 100% 0%, #e4eefb 0%, rgba(228, 238, 251, 0) 70%), #f4f8fd; }
  .ms-kicker { margin-bottom: 10px; font-size: 12px; }
  .ms-top.ms-v26 .ms-title { margin-bottom: 14px; font-size: 28px; }
  .ms-v26 .ms-swoosh { width: 80px; }
  .ms-v26 .ms-search { gap: 8px; }
  .ms-v26 .ms-box, .ms-v26 .ms-go { height: 46px; }
  .ms-chips { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0 0; padding-right: 16px; scrollbar-width: none; }
  .ms-chips a { flex-shrink: 0; height: 32px; font-size: 13px; }
}

/* Every homepage title in the V11 font (Mr M 2026-12-01: "I like the font used in V11 ... use it in every other header"):
   the site font at regular weight, slightly tight. Colours stay as each theme has them. */
body .hx .hx-v-title, body .hw .hw-title, body .mk-title, body .ms-top .ms-title { font-family: var(--font); font-weight: 400; letter-spacing: -.025em; }
.ms-top .ms-title em { font-style: normal; }

/* V9, V10, V11 (v=21, 23, 24): search box and button stacked on desktop too (Mr M 2026-12-01) */
.ms-v21 .ms-search, .ms-v23 .ms-search, .ms-v24 .ms-search { flex-direction: column; gap: 10px; max-width: 560px; }
.ms-v21 .ms-box, .ms-v23 .ms-box, .ms-v24 .ms-box { flex: none; }
.ms-v21 .ms-go, .ms-v23 .ms-go, .ms-v24 .ms-go { width: 100%; height: 50px; }
@media (max-width: 640px) {
  .ms-v21 .ms-search, .ms-v23 .ms-search, .ms-v24 .ms-search { gap: 8px; max-width: none; }
  .ms-v21 .ms-go, .ms-v23 .ms-go, .ms-v24 .ms-go { height: 46px; }
}

/* A little orange on every homepage theme (Mr M 2026-12-01: "be careful not to overdo it"): one short orange stroke
   under each title, and the active category underline on V8. Buttons stay blue (the current hero keeps its orange button). */
.ms-top .ms-swoosh path { stroke: var(--accent); }
body .mk-title::after, body .hw .hw-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 12px; border-radius: 2px; background: var(--accent); }
.mk-hero.is-centre .mk-title::after { margin-left: auto; margin-right: auto; }
.ap-catbar a.is-on { border-bottom-color: var(--accent); }
.hw-center .hw-title::after { margin-left: auto; margin-right: auto; }

/* V13 (v=27) "Stack": V9 (white top) with the three newest cars fanned on the right (Mr M 2026-12-01) */
body:has(.ms-v27) .site-header { background: #fff; border-bottom: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ms-v27 { position: relative; overflow: hidden; margin-top: -1px; padding: 18px 0 34px; border-bottom: 1px solid #e8edf3; }
.ms-top.ms-v27 .ms-title { margin-bottom: 20px; font-size: clamp(30px, 2.8vw, 42px); color: #2a3d58; }
.ms-top.ms-v27 .ms-title em { color: var(--brand); }
.ms-v27 .ms-swoosh { width: 104px; }
.ms-v27 .ms-swoosh path { stroke-width: 3; }
.ms-v27 .ms-search { max-width: none; }
.ms-v27 .ms-box { height: 52px; }
.ms-stack { position: relative; height: 330px; }
.ms-stack::before { content: ""; position: absolute; inset: 6% 4% 2% 10%; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; background: radial-gradient(circle at 40% 40%, #e3edfa 0%, #f2f7fd 60%, rgba(242, 247, 253, 0) 75%); }
.ms-mini { position: absolute; width: 250px; overflow: hidden; border: 1px solid #e6ebf2; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 24px 44px -26px rgba(4, 30, 66, .5); transition: transform .25s, box-shadow .25s; }
.ms-mini img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ms-mini > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.ms-mini b { font-size: 14.5px; font-weight: 500; }
.ms-mini em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--brand); }
.ms-mini:nth-of-type(1) { left: 4%; top: 46px; transform: rotate(-6deg); }
.ms-mini:nth-of-type(2) { left: 34%; top: 0; z-index: 2; transform: rotate(2deg); }
.ms-mini:nth-of-type(3) { right: 0; top: 70px; transform: rotate(7deg); }
.ms-mini:hover { z-index: 3; transform: rotate(0) translateY(-6px); box-shadow: 0 30px 50px -26px rgba(4, 30, 66, .6); }
.ms-stack-tag { position: absolute; left: 10%; bottom: 8px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--brand); box-shadow: 0 10px 24px -14px rgba(4, 30, 66, .45); }
.ms-stack-tag .icon { color: var(--accent); }
@media (max-width: 1200px) {
  .ms-mini { width: 210px; }
}
@media (max-width: 1000px) {
  .ms-stack { display: none; }
}
@media (max-width: 640px) {
  .ms-v27 { padding: 8px 0 18px; }
  .ms-top.ms-v27 .ms-title { margin-bottom: 14px; font-size: 28px; }
  .ms-v27 .ms-swoosh { width: 80px; }
  .ms-v27 .ms-search { gap: 8px; }
  .ms-v27 .ms-box, .ms-v27 .ms-go { height: 46px; }
}
/* V8 Discover on phones: button under the box so "Browse all cars" fits on one line */
@media (max-width: 640px) {
  .ap-search { flex-wrap: wrap; gap: 8px; }
  .ap-go { width: 100%; }
}

/* A touch more orange on every homepage theme (Mr M 2026-12-01: "maybe we need a little orange accent across all versions"):
   a short orange bar before section titles, orange "See all" arrows and an orange search icon in the box. Buttons stay blue. */
body[data-page="home"] .mk-head h2::before, body[data-page="home"] .hx-v-head h2::before { content: ""; display: inline-block; width: 4px; height: .8em; margin-right: 10px; border-radius: 2px; background: var(--accent); vertical-align: -1px; }
body[data-page="home"] .mk-head a .icon, body[data-page="home"] .hx-v-head a .icon, body[data-page="home"] .fh-link .icon { color: var(--accent); }
body[data-page="home"] .ms-box > .icon, body[data-page="home"] .hx-k1-box > .icon { color: var(--accent); }

/* Search button under the box on every theme, desktop too (Mr M 2026-12-01) */
.ms-top .ms-search { flex-direction: column; gap: 10px; }
.ms-top .ms-box { flex: none; }
.ms-top .ms-go { width: 100%; height: 50px; }
.ms-v26 .ms-search, .ms-v27 .ms-search { max-width: 560px; }
.ap-search { flex-direction: column; gap: 10px; max-width: 640px; }
.ap-box { flex: none; }
.ap-go { width: 100%; }
@media (max-width: 640px) {
  .ms-top .ms-search, .ap-search { gap: 8px; max-width: none; }
  .ms-top .ms-go { height: 46px; }
}

/* V14 (v=28) "Riverfront": Mr M's golden-hour Nile photo, title and search on the sky (Mr M 2026-12-01) */
body:has(.rv-hero) .site-header { border-bottom: 0; }
.rv-hero { position: relative; overflow: hidden; margin-top: -1px; min-height: 560px; display: flex; align-items: center; background: #0d2d57; }
.rv-hero picture { position: absolute; inset: 0; }
.rv-photo { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.rv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 28, 60, .62) 0%, rgba(6, 28, 60, .36) 34%, rgba(6, 28, 60, 0) 58%), linear-gradient(0deg, rgba(6, 28, 60, .28) 0%, rgba(6, 28, 60, 0) 30%); pointer-events: none; }
.rv-in { position: relative; z-index: 3; padding-top: 48px; padding-bottom: 56px; }
.rv-copy, .rv-card { max-width: 520px; }
.rv-kicker { display: flex; width: max-content; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px 5px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13px; font-weight: 500; color: #fff; }
.rv-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
body .rv-hero .rv-title { margin: 0 0 24px; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.1; color: #fff; text-shadow: 0 2px 18px rgba(4, 20, 44, .35); }
.rv-title .ms-swoosh { width: 110px; }
.rv-title .ms-swoosh path { stroke: var(--accent); stroke-width: 3; }
.rv-search { flex-direction: column; gap: 10px; max-width: none; }
.rv-search .ms-box { flex: none; height: 52px; border-color: transparent; box-shadow: 0 16px 34px -18px rgba(4, 20, 44, .55); }
.rv-search .ms-go { width: 100%; height: 50px; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rv-chips a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13.5px; color: #fff; transition: background .2s; }
.rv-chips a .icon { color: #ffd2bd; }
.rv-chips a:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 900px) {
  .rv-hero { min-height: 480px; }
}
@media (max-width: 640px) {
  .rv-hero { display: block; min-height: 0; background: #f4f8fd; }
  .rv-hero picture { position: absolute; top: 0; left: 0; right: 0; bottom: auto; height: 290px; }
  .rv-photo { object-position: 64% 50%; }
  .rv-hero::after { bottom: auto; height: 290px; background: linear-gradient(180deg, rgba(6, 28, 60, .5) 0%, rgba(6, 28, 60, .15) 55%, rgba(6, 28, 60, .35) 100%); }
  .rv-in { padding-top: 18px; padding-bottom: 20px; }
  .rv-copy { min-height: 224px; }
  .rv-kicker { margin-bottom: 10px; font-size: 12px; }
  body .rv-hero .rv-title { font-size: 30px; }
  .rv-title .ms-swoosh { width: 80px; }
  .rv-card { position: relative; z-index: 4; margin-top: 8px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 18px 36px -22px rgba(4, 20, 44, .45); }
  .rv-search { gap: 8px; }
  .rv-search .ms-box { height: 46px; border-color: #dfe5ee; box-shadow: none; }
  .rv-search .ms-go { height: 46px; }
  .rv-chips { flex-wrap: nowrap; overflow-x: auto; margin: 10px -12px 0 0; padding-right: 12px; scrollbar-width: none; }
  .rv-chips a { flex-shrink: 0; height: 32px; font-size: 13px; border-color: #d9e5f4; background: #f4f8fd; color: #2a3d58; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rv-chips a .icon { color: var(--brand); }
}

/* P1-P20: V10 Pale variations (Mr M 2026-12-01). Colours come from --pv-bg, --pv-accent, --pv-ink, --pv-btn set on the section. */
.pv-top { position: relative; overflow: hidden; margin-top: -1px; padding: 14px 0 28px; background: var(--pv-bg); border-bottom: 1px solid rgba(7, 76, 155, .08); }
.pv-in { position: relative; z-index: 2; }
.pv-kicker { display: flex; width: max-content; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 12px 5px 10px; border: 1px solid rgba(7, 76, 155, .14); border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 500; color: var(--pv-ink); }
.pv-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--pv-accent); }
body .pv-top .pv-title { margin: 0 0 18px; font-size: clamp(26px, 2.4vw, 36px); color: var(--pv-ink); }
.pv-top .ms-swoosh { width: 96px; margin-top: 4px; }
.pv-top .ms-swoosh path { stroke: var(--pv-accent); stroke-width: 3; }
.pv-bar { display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--pv-accent); }
.pv-marker { position: relative; z-index: 0; padding: 0 4px; margin-left: -4px; background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--pv-accent) 28%, transparent) 58%); }
.pv-search { flex-direction: column; gap: 10px; max-width: 560px; }
.pv-search .ms-box { flex: none; height: 50px; }
.pv-search .ms-box > .icon { color: var(--pv-accent) !important; }
.pv-search .ms-go { width: 100%; height: 50px; background: var(--pv-btn, var(--brand)); }
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; margin-top: 14px; }
.pv-chips a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid rgba(7, 76, 155, .16); border-radius: 999px; background: #fff; font-size: 13.5px; color: var(--pv-ink); transition: border-color .2s; }
.pv-chips a .icon { color: var(--pv-accent); }
.pv-chips a:hover { border-color: var(--pv-accent); }
.pv-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.pv-facts li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--pv-ink); opacity: .9; }
.pv-facts .icon { color: var(--pv-accent); }
.pv-cats { display: flex; gap: 10px; max-width: 560px; margin-top: 16px; }
.pv-cats a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 1px solid rgba(7, 76, 155, .12); border-radius: 10px; background: #fff; font-size: 13px; color: var(--pv-ink); transition: border-color .2s; }
.pv-cats a:hover { border-color: var(--pv-accent); }
.pv-cats .body-ic { width: 40px; height: 20px; color: var(--pv-accent); }
.pv-popular { margin: 14px 0 0; font-size: 14px; color: var(--pv-ink); }
.pv-popular b { font-weight: 500; margin-right: 4px; }
.pv-popular a { margin-right: 12px; color: var(--pv-ink); text-decoration: underline; text-decoration-color: var(--pv-accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
/* backgrounds with a little pattern */
.pv-top.has-dots::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(7, 76, 155, .12) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.pv-top.has-rings::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(240, 90, 26, .06); box-shadow: 0 0 0 90px rgba(7, 76, 155, .04); }
.pv-top.has-wave { padding-bottom: 54px; border-bottom: 0; }
.pv-top.has-wave::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 40px; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.pv-top.has-topline { border-top: 4px solid var(--pv-accent); }
/* dark backgrounds */
.pv-top.is-dark { border-bottom: 0; }
.pv-top.is-dark .pv-kicker, .pv-top.is-dark .pv-chips a { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; }
.pv-top.is-dark .pv-search .ms-box { border-color: transparent; }
.pv-top.is-dark .ms-go { color: #0b2347; }
.pv-top.is-dark .pv-facts li { color: #fff; }
@media (max-width: 640px) {
  .pv-top { padding: 8px 0 18px; }
  .pv-top.has-wave { padding-bottom: 40px; }
  .pv-top.has-wave::after { height: 24px; }
  .pv-kicker { margin-bottom: 10px; font-size: 12px; }
  body .pv-top .pv-title { margin-bottom: 14px; font-size: 26px; }
  .pv-top .ms-swoosh { width: 80px; }
  .pv-search { gap: 8px; max-width: none; }
  .pv-search .ms-box, .pv-search .ms-go { height: 46px; }
  .pv-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .pv-chips a { flex-shrink: 0; height: 32px; font-size: 13px; }
  .pv-facts { flex-direction: column; gap: 6px; margin-top: 12px; }
  .pv-facts li { font-size: 13.5px; }
  .pv-cats { gap: 6px; }
  .pv-cats a { font-size: 12px; }
  .pv-cats .body-ic { width: 34px; height: 17px; }
  .pv-popular a { display: inline-block; margin: 2px 10px 2px 0; }
}
/* P21-P40 extras (Mr M 2026-12-01): smaller box, darker themes, glass, line, pill, centred, card, photo. */
.pv-top.is-dark .ms-go { color: var(--pv-btn-ink, #0b2347); }
.pv-top.is-dark .pv-title em { color: inherit; }
.pv-sub { max-width: 520px; margin: -6px 0 16px; font-size: 15px; line-height: 1.5; color: var(--pv-ink); opacity: .72; }
.pv-top.x-small .pv-search { max-width: 430px; gap: 8px; }
.pv-top.x-small .pv-search .ms-box, .pv-top.x-small .pv-search .ms-go { height: 44px; }
.pv-top.x-small .pv-chips, .pv-top.x-small .pv-cats { max-width: 430px; }
.pv-top.x-glass .pv-search .ms-box { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); box-shadow: none; color: #fff; }
.pv-top.x-glass .pv-search .ms-box input { color: #fff; }
.pv-top.x-glass .pv-search .ms-box input::placeholder { color: rgba(255, 255, 255, .7); }
.pv-top.x-pill .pv-search .ms-box, .pv-top.x-pill .pv-search .ms-go { border-radius: 999px; }
.pv-top.x-pill .pv-search .ms-box { padding-left: 18px; }
.pv-top.x-line .pv-search .ms-box { padding: 0 2px; border: 0; border-bottom: 2px solid rgba(7, 76, 155, .3); border-radius: 0; background: transparent; box-shadow: none; }
.pv-top.x-line .pv-search .ms-box:focus-within { border-bottom-color: var(--pv-accent); }
.pv-top.x-line.is-dark .pv-search .ms-box { border-bottom-color: rgba(255, 255, 255, .45); color: #fff; }
.pv-top.x-line.is-dark .pv-search .ms-box input { color: #fff; }
.pv-top.x-line.is-dark .pv-search .ms-box input::placeholder { color: rgba(255, 255, 255, .7); }
.pv-top.x-line .pv-search .ms-go { margin-top: 6px; }
.pv-top.x-oneline .pv-title { white-space: nowrap; }
.pv-top.x-tight { padding: 8px 0 20px; }
.pv-top.x-tight .pv-title { margin-bottom: 12px; }
.pv-top.x-center .pv-in { text-align: center; }
.pv-top.x-center .pv-kicker, .pv-top.x-center .pv-search, .pv-top.x-center .pv-sub { margin-left: auto; margin-right: auto; }
.pv-top.x-center .ms-swoosh, .pv-top.x-center .pv-bar { display: block; margin-left: auto; margin-right: auto; }
.pv-top.x-center .pv-search { text-align: left; }
.pv-top.x-center .pv-chips, .pv-top.x-center .pv-facts { justify-content: center; margin-left: auto; margin-right: auto; }
.pv-top.x-dotsdark::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%); mask-image: linear-gradient(90deg, transparent 25%, #000 80%); }
.pv-photo { position: absolute; z-index: 1; right: 0; top: 0; width: 50%; height: 100%; object-fit: cover; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.pv-top.x-center .pv-photo { width: 100%; opacity: .18; -webkit-mask-image: none; mask-image: none; }
.pv-top.x-card { padding-bottom: 32px; }
.pv-card { max-width: 600px; padding: 22px 24px 24px; border: 1px solid rgba(7, 76, 155, .1); border-radius: 10px; background: #fff; box-shadow: 0 18px 40px -24px rgba(4, 30, 66, .45); }
.pv-top.x-card.is-dark .pv-card .pv-title, .pv-top.x-card.is-dark .pv-card .pv-sub { color: #2a3d58; }
.pv-top.x-card.is-dark .pv-card .ms-go { color: var(--pv-btn-ink, #fff); }
.pv-top.x-card .pv-card .pv-search { max-width: none; }
.pv-top.x-card .pv-search .ms-box { box-shadow: none; background: #f6f8fb; }
@media (max-width: 640px) {
  .pv-top.x-small .pv-search { max-width: none; }
  .pv-top.x-small .pv-search .ms-box, .pv-top.x-small .pv-search .ms-go { height: 42px; }
  .pv-top.x-oneline .pv-title { white-space: normal; }
  .pv-sub { margin-top: -4px; font-size: 14px; }
  .pv-photo { width: 70%; opacity: .3; }
  .pv-card { padding: 16px; }
  .pv-top.x-center .pv-chips { justify-content: flex-start; }
}
/* P versions use the exact V10 Pale title: Inter, weight 400 (Mr M 2026-12-01). */
body .pv-top h1.pv-title, body .pv-top h1.pv-title em { font-family: var(--font); font-weight: 400; letter-spacing: -.025em; }
/* P versions: compact and soft top (Mr M 2026-12-01: "more compact, shorter and less bold text area and button, soften"). */
body .pv-top { padding-top: 8px; padding-bottom: 20px; }
body .pv-top.has-wave { padding-bottom: 44px; }
body .pv-top .pv-kicker { margin-bottom: 10px; }
body .pv-top h1.pv-title { margin-bottom: 14px; }
body .pv-top .ms-swoosh { margin-top: 2px; }
body .pv-top .pv-sub { margin-bottom: 12px; }
body .pv-top .pv-search { gap: 8px; max-width: 480px; }
body .pv-top .pv-search .ms-box, body .pv-top .pv-search .ms-go { height: 44px; }
body .pv-top .pv-search .ms-box { border-color: #e3e8ef; box-shadow: 0 2px 10px -6px rgba(4, 30, 66, .18); }
body .pv-top.is-dark .pv-search .ms-box { border-color: transparent; box-shadow: none; }
body .pv-top.x-glass .pv-search .ms-box { border-color: rgba(255, 255, 255, .22); }
body .pv-top.x-line .pv-search .ms-box { box-shadow: none; }
body .pv-top .pv-search .ms-go { font-weight: 500; box-shadow: none; }
body .pv-top.x-small .pv-search { max-width: 420px; }
body .pv-top.x-small .pv-search .ms-box, body .pv-top.x-small .pv-search .ms-go { height: 40px; }
body .pv-top .pv-chips, body .pv-top .pv-facts, body .pv-top .pv-cats, body .pv-top .pv-popular { margin-top: 12px; }
body .pv-top .pv-chips a { height: 32px; }
body .pv-top.x-card { padding-bottom: 24px; }
body .pv-top .pv-card { padding: 18px 20px 20px; }
@media (max-width: 640px) {
  body .pv-top { padding-top: 4px; padding-bottom: 14px; }
  body .pv-top.has-wave { padding-bottom: 34px; }
  body .pv-top h1.pv-title { margin-bottom: 12px; }
  body .pv-top .pv-search { max-width: none; }
  body .pv-top .pv-search .ms-box, body .pv-top .pv-search .ms-go { height: 42px; }
  body .pv-top.x-small .pv-search .ms-box, body .pv-top.x-small .pv-search .ms-go { height: 40px; }
  body .pv-top .pv-chips, body .pv-top .pv-facts { margin-top: 10px; }
  body .pv-top .pv-card { padding: 14px; }
}
/* P18 (V1 Light boxes) and P19 (V6 Photo body type boxes) under the P5 search (Mr M 2026-12-01). */
body .pv-top .pv-tiles, body .pv-top .pv-bodybox { max-width: 860px; margin-top: 18px; }
body .pv-top .pv-bodybox a { box-shadow: 0 10px 24px -20px rgba(4, 20, 44, .4); }
body .pv-top .pv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
@media (max-width: 640px) {
  body .pv-top .pv-tiles, body .pv-top .pv-bodybox { margin-top: 14px; }
  body .pv-top .pv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Search boxes that look and act like a real text field (Mr M 2026-12-01: "I don't even feel that I can start typing").
   Clear border, darker hint text, a focus ring, a popular-searches list on tap, and a button that follows what is typed (hero-text.js). */
.ms-box, .hx-k1-box { cursor: text; transition: border-color .15s, box-shadow .15s; }
body .ms-box, body .pv-top .pv-search .ms-box { border: 1.5px solid #b9c7da; box-shadow: 0 1px 2px rgba(4, 30, 66, .06); }
body .ms-box input::placeholder, body .hx-k1-box input::placeholder { color: #536175; opacity: 1; }
body .ms-box:focus-within, body .pv-top .pv-search .ms-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7, 76, 155, .16); }
body .pv-top.is-dark .pv-search .ms-box { border-color: #fff; }
body .pv-top.is-dark .pv-search .ms-box:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
body .pv-top.x-glass .pv-search .ms-box { border-color: rgba(255, 255, 255, .55); }
body .pv-top.x-glass .pv-search .ms-box input::placeholder { color: rgba(255, 255, 255, .85); }
body .pv-top.x-line .pv-search .ms-box { border-width: 0 0 2px; border-radius: 0; box-shadow: none; }
body .pv-top.x-line .pv-search .ms-box:focus-within { box-shadow: none; border-bottom-color: var(--pv-accent); }
body .pv-top.x-line.is-dark .pv-search .ms-box { border-color: rgba(255, 255, 255, .7); }
body .pv-top.x-line.is-dark .pv-search .ms-box input::placeholder { color: rgba(255, 255, 255, .85); }
.hx-type-list.is-popular::before { content: "Popular searches"; display: block; padding: 6px 12px 4px; font-size: 12.5px; color: var(--muted); }
.hx-go-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-go, .hx-k1-go { min-width: 0; }
/* Less "made by AI" (Mr M 2026-12-01): no "Egypt's car marketplace" pill, no dot or ring patterns. */
.pv-kicker, .ms-kicker, .rv-kicker { display: none !important; }
/* The suggestions list must not be cut off by the hero edge. */
.hx-v-top:focus-within, .rv-hero:focus-within, .pv-top:focus-within { overflow: visible; z-index: 40; }
.hx-v-top:focus-within { position: relative; }
/* P41 (Mr M 2026-12-01): three sideways rows under the search; the first tile of each row names it, stays put and has its own colour. */
.pv-rows { display: flex; flex-direction: column; gap: 10px; max-width: none; margin-top: 18px; }
.pv-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.pv-row-head { flex: 0 0 104px; white-space: nowrap; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #fff; }
.pv-row-head.is-makes { background: #074c9b; }
.pv-row-head.is-budget { background: #f05a1a; }
.pv-row-head.is-mixed { background: #0b2347; }
.pv-row-scroll { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.pv-row-scroll::-webkit-scrollbar { display: none; }
.pv-row-scroll a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border: 1px solid #dbe3ee; border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink); white-space: nowrap; scroll-snap-align: start; transition: border-color .2s; }
.pv-row-scroll a:hover { border-color: var(--brand); }
.pv-row-scroll a .icon { color: var(--brand); }
.pv-row-scroll a.is-all { color: var(--brand); font-weight: 500; }
.pv-row-scroll a:last-child { margin-right: 24px; }
@media (max-width: 640px) {
  .pv-rows { margin-top: 14px; margin-right: -16px; }
  .pv-row-head { flex-basis: 86px; padding: 0 10px; font-size: 13px; }
  .pv-row-scroll a { height: 42px; padding: 0 14px; font-size: 13.5px; }
}
/* P20-P40 on desktop: the six boxes sit on the right instead of under the search (Mr M 2026-12-01: "the other side feels empty"). */
@media (min-width: 1024px) {
  .pv-top.x-side .pv-in { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 56px; align-items: center; }
  .pv-top.x-side .pv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; width: 100%; margin: 0 0 0 auto; }
  .pv-top.x-side .pv-tiles .hw-body { padding: 16px 18px; }
  .pv-top.x-side .pv-tiles .hw-body b { font-size: 15px; }
  .pv-top.x-side .pv-tiles .hw-body em { font-size: 13px; }
  .pv-top.x-side { padding-top: 16px; padding-bottom: 32px; }
}
/* Phones: no quick chips or three facts on the P versions that already have boxes or rows under the search (P18-P41; Mr M 2026-12-01). */
@media (max-width: 640px) {
  .pv-top.x-tiles .pv-chips, .pv-top.x-tiles .pv-facts,
  .pv-top.x-bodybox .pv-chips, .pv-top.x-bodybox .pv-facts,
  .pv-top.x-rows .pv-chips, .pv-top.x-rows .pv-facts { display: none; }
}
/* P25 phones: smaller, neater boxes, three per row, icon over a short label (Mr M 2026-12-01). */
@media (max-width: 640px) {
  .pv-top.x-mini .pv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
  .pv-top.x-mini .pv-tiles .hw-body { flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 0; padding: 12px 6px 10px; border-color: #e1e7ef; border-radius: 10px; text-align: center; box-shadow: 0 4px 12px -10px rgba(4, 30, 66, .35); }
  .pv-top.x-mini .pv-tiles .hw-body-ic { width: 30px; height: 30px; border-radius: 8px; }
  .pv-top.x-mini .pv-tiles .hw-body-ic svg { width: 17px; height: 17px; }
  .pv-top.x-mini .pv-tiles .hw-body-tx { align-items: center; }
  .pv-top.x-mini .pv-tiles .hw-body b { font-size: 12.5px; line-height: 1.25; }
  .pv-top.x-mini .pv-tiles .hw-body em { display: none; }
}
/* P25 phones, tidier (Mr M 2026-12-01): equal 64px boxes, plain icon (no tinted square), one-line label, hairline border, no shadow. */
@media (max-width: 640px) {
  body .pv-top.x-mini .pv-tiles { grid-auto-rows: 64px; gap: 6px; }
  body .pv-top.x-mini .pv-tiles .hw-body { justify-content: center; gap: 5px; padding: 0 4px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; box-shadow: none; }
  body .pv-top.x-mini .pv-tiles .hw-body:hover { border-color: var(--brand); box-shadow: none; }
  body .pv-top.x-mini .pv-tiles .hw-body-ic { width: auto; height: auto; background: none; border-radius: 0; color: var(--brand); }
  body .pv-top.x-mini .pv-tiles .hw-body-ic svg { width: 18px; height: 18px; stroke-width: 1.7; }
  body .pv-top.x-mini .pv-tiles .hw-body-tx { width: 100%; }
  body .pv-top.x-mini .pv-tiles .hw-body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: -.005em; color: #2a3d58; }
}
/* P25: total cars in stock under the title (the homepage's one count). */
.pv-stock { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 15px; color: var(--pv-ink); }
.pv-stock i { flex-shrink: 0; margin-left: 3px; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .16); }
.pv-stock b { font-weight: 600; color: var(--brand); }
.pv-top.is-dark .pv-stock b { color: #fff; }
@media (max-width: 640px) {
  .pv-stock { margin: -2px 0 12px; font-size: 14px; }
}
/* P42: the first section below slides up over the top with 30px rounded corners on phones only, square on desktop (Mr M 2026-12-01). */
.pv-top.x-lap { padding-bottom: 52px; border-bottom: 0; }
.pv-top.x-lap + .mk-block { position: relative; z-index: 3; margin-top: -24px; padding-top: 28px; border-radius: 0; background: #fff; box-shadow: 0 -10px 24px -20px rgba(4, 30, 66, .35); }
@media (max-width: 640px) {
  .pv-top.x-lap { padding-bottom: 40px; }
  .pv-top.x-lap + .mk-block { margin-top: -20px; padding-top: 22px; border-radius: 15px 15px 0 0; } /* Mr M 2026-12-01: 30px, then 15px */
}
/* P43: boxes that blend into the off-white top: see-through white, warm hairline border, softer icons (Mr M 2026-12-01). */
body .pv-top.x-blend .pv-tiles .hw-body { border-color: rgba(60, 50, 30, .09); background: rgba(255, 255, 255, .5); box-shadow: none; }
body .pv-top.x-blend .pv-tiles .hw-body:hover { border-color: rgba(7, 76, 155, .35); background: rgba(255, 255, 255, .85); }
body .pv-top.x-blend .pv-tiles .hw-body-ic { background: rgba(7, 76, 155, .06); color: #2f5f9e; }
body .pv-top.x-blend .pv-tiles .hw-body b { color: #2a3d58; }
body .pv-top.x-blend .pv-tiles .hw-body em { color: #7a7f88; }
body .pv-top.x-blend .pv-chips a { border-color: rgba(60, 50, 30, .1); background: rgba(255, 255, 255, .5); }
@media (max-width: 640px) {
  body .pv-top.x-blend .pv-tiles .hw-body { border-color: rgba(60, 50, 30, .08); background: rgba(255, 255, 255, .45); }
  body .pv-top.x-blend .pv-tiles .hw-body-ic { background: none; }
}
/* P47-P55: the blended boxes on deep blue backgrounds: faint see-through white, white text. */
body .pv-top.x-blend.is-dark .pv-tiles .hw-body { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); }
body .pv-top.x-blend.is-dark .pv-tiles .hw-body:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); }
body .pv-top.x-blend.is-dark .pv-tiles .hw-body-ic { background: rgba(255, 255, 255, .1); color: #fff; }
body .pv-top.x-blend.is-dark .pv-tiles .hw-body b { color: #fff; }
body .pv-top.x-blend.is-dark .pv-tiles .hw-body em { color: rgba(255, 255, 255, .72); }
body .pv-top.x-blend.is-dark .pv-chips a { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); }
body .pv-top.x-blend.is-dark .pv-stock i { box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); background: #4ade80; }
@media (max-width: 640px) {
  body .pv-top.x-blend.is-dark .pv-tiles .hw-body-ic { background: none; }
  body .pv-top.x-blend.is-dark .pv-tiles .hw-body { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); }
}
/* P44-P55: boxes the same size as P18 and tidier (Mr M 2026-12-01): equal heights, one-line titles, P18's 245px desktop width. */
body .pv-top.x-tidy .pv-tiles { grid-auto-rows: 1fr; }
body .pv-top.x-tidy .pv-tiles .hw-body { align-items: center; }
body .pv-top.x-tidy .pv-tiles .hw-body b { white-space: nowrap; }
@media (min-width: 1024px) {
  body .pv-top.x-side.x-tidy .pv-tiles { grid-template-columns: repeat(2, 245px); gap: 12px; max-width: none; width: auto; justify-content: end; }
  body .pv-top.x-side.x-tidy .pv-tiles .hw-body { padding: 12px 14px; }
  body .pv-top.x-side.x-tidy .pv-tiles .hw-body b { font-size: 14px; }
  body .pv-top.x-side.x-tidy .pv-tiles .hw-body em { font-size: 12.5px; }
}
@media (max-width: 640px) {
  body .pv-top.x-tidy .pv-tiles .hw-body { gap: 10px; padding: 10px 12px; }
  body .pv-top.x-tidy .pv-tiles .hw-body-ic { width: 34px; height: 34px; }
  body .pv-top.x-tidy .pv-tiles .hw-body b { font-size: 13px; }
  body .pv-top.x-tidy .pv-tiles .hw-body em { font-size: 11.5px; line-height: 1.3; }
}
/* P44-P55: smaller boxes again (Mr M 2026-12-01 "still smaller"): desktop 210px x 56px, phones 54px high, one-line text. */
body .pv-top.x-tidy .pv-tiles .hw-body em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .pv-top.x-tidy .pv-tiles .hw-body-tx { min-width: 0; }
@media (min-width: 1024px) {
  body .pv-top.x-side.x-tidy .pv-tiles { grid-template-columns: repeat(2, 210px); grid-auto-rows: 56px; gap: 10px; }
  body .pv-top.x-side.x-tidy .pv-tiles .hw-body { gap: 10px; padding: 0 12px; }
  body .pv-top.x-side.x-tidy .pv-tiles .hw-body-ic { width: 32px; height: 32px; border-radius: 8px; }
  body .pv-top.x-side.x-tidy .pv-tiles .hw-body-ic svg { width: 17px; height: 17px; }
  body .pv-top.x-side.x-tidy .pv-tiles .hw-body b { font-size: 13px; }
  body .pv-top.x-side.x-tidy .pv-tiles .hw-body em { font-size: 11.5px; }
}
@media (max-width: 640px) {
  body .pv-top.x-tidy .pv-tiles { grid-auto-rows: 54px; gap: 6px; }
  body .pv-top.x-tidy .pv-tiles .hw-body { gap: 8px; padding: 0 10px; }
  body .pv-top.x-tidy .pv-tiles .hw-body-ic { width: 28px; height: 28px; border-radius: 7px; }
  body .pv-top.x-tidy .pv-tiles .hw-body-ic svg { width: 16px; height: 16px; }
  body .pv-top.x-tidy .pv-tiles .hw-body b { font-size: 12.5px; }
  body .pv-top.x-tidy .pv-tiles .hw-body em { font-size: 11px; }
}

/* Homepage, desktop (Mr M 2026-12-01: "Make the text box and the button wider on the desktop mode"): left column and search 620px instead of 480px, from 1280px wide so the boxes on the right keep their room. */
@media (min-width: 1280px) {
  body .pv-top.x-side .pv-in { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); }
  body .pv-top .pv-search { max-width: 620px; }
}

/* Homepage title softer (Mr M 2026-12-01: "Reduce the boldness of the header and weight, make it softer"): light 300, a little smaller, slightly see-through white. */
body .pv-top h1.pv-title, body .pv-top h1.pv-title em { font-weight: 300; letter-spacing: -.02em; }
body .pv-top h1.pv-title { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.18; }
body .pv-top.is-dark h1.pv-title { color: rgba(255, 255, 255, .92); }
@media (max-width: 640px) {
  body .pv-top h1.pv-title { font-size: 24px; }
}

/* Homepage desktop (Mr M 2026-12-01: "The top section got much longer. Fix that"): the six boxes on the right stay compact,
   two columns of 230px x 58px at every desktop width, so the blue top is no taller than the search side. */
@media (min-width: 1024px) {
  body .pv-top.x-side.x-mini .pv-tiles { grid-template-columns: repeat(2, 230px); grid-auto-rows: 58px; gap: 10px; max-width: none; width: auto; justify-content: end; }
  body .pv-top.x-side.x-mini .pv-tiles .hw-body { align-items: center; gap: 10px; min-height: 0; padding: 0 12px; }
  body .pv-top.x-side.x-mini .pv-tiles .hw-body-ic { width: 32px; height: 32px; border-radius: 8px; }
  body .pv-top.x-side.x-mini .pv-tiles .hw-body-ic svg { width: 17px; height: 17px; }
  body .pv-top.x-side.x-mini .pv-tiles .hw-body-tx { min-width: 0; }
  body .pv-top.x-side.x-mini .pv-tiles .hw-body b { font-size: 13.5px; white-space: nowrap; }
  body .pv-top.x-side.x-mini .pv-tiles .hw-body em { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
}

/* ===== Orange accent, one rule for the whole public area (Mr M 2026-12-01: "ensure it is consistent and adjust the orange
   accent to the right level and not to over do it"). Orange is kept ONLY for: the main action button on a page (search,
   Open WhatsApp, Become a dealer ...), the Featured tag and "Most popular" ribbons, the hand-drawn line under the homepage
   title, the short bar before section titles, and small count badges. Everything else that was orange (small uppercase
   labels, step numbers, tab underlines, icons, private seller marks, prices' small text) is now FindMotos blue or grey. ===== */
.fh-kicker i, .sr-head .fh-kicker i, .sl-n, .fb-kicker, .cd-kicker, .dv-label { color: var(--brand); }
.fm-head::after, .dv-b-line, body .mk-title::after, body .hw .hw-title::after { background: var(--brand); }
.cd-nav a.is-on::after { background: var(--brand); }
.asv-tab.is-active { border-left-color: var(--brand); }
@media (max-width: 1100px) {
  .asv-tab.is-active { border-bottom-color: var(--brand); }
}
.pg-toc a.is-on { border-left-color: var(--brand); }
.ap-catbar a.is-on { border-bottom-color: var(--brand); }
.pg-card li::marker { color: var(--brand); }
.dv-steps i { color: var(--brand); }
.cd-keys .icon { color: var(--brand); }
.cd-dots i.is-on { background: var(--brand); }
.cd-panel .cd-price small { color: var(--muted); }
@media (max-width: 760px) {
  .cd-mbar-txt b small { color: var(--muted); }
}
.sc-badges .is-private .icon, .sc-fresh .sc-seller.is-private .icon { color: var(--muted); }
.cd-avatar.is-private { background: var(--brand-50); color: var(--brand); }
.cd-verified.is-private { background: #f1f4f8; color: #475569; }
.cd-verified.is-private .icon { color: #475569 !important; }
.cd-pills .is-new { background: var(--brand-50); color: var(--brand); }
.sc-badges .is-triptik { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); }
.ft-kpi.is-b span { background: var(--brand-50); color: var(--brand); }
.ft-feature > span { box-shadow: none; }
.ft-free { color: var(--success); }
.ah-brand .ab-mark, .ac-pin { background: var(--brand-50); color: var(--brand); }
.ah-city:hover .ac-pin { background: var(--brand); color: #fff; }
@media (hover: hover) {
  .ah-city:hover .ac-go { border-color: var(--brand); background: var(--brand); }
}
.ms-stack-tag .icon { color: var(--brand); }
/* Homepage: no orange on the small icons (search box, chips, facts, "See all" arrows); the button, the hand-drawn line and the section bars keep it. */
body[data-page="home"] .mk-head a .icon, body[data-page="home"] .fh-link .icon { color: var(--brand); }
body .pv-top .pv-search .ms-box > .icon { color: #8a93a3 !important; }
body .pv-top.is-dark .pv-chips a .icon, body .pv-top.is-dark .pv-facts .icon { color: rgba(255, 255, 255, .7); }
body .pv-top.is-dark .pv-chips a:hover { border-color: rgba(255, 255, 255, .6); }

/* ===== Results page on phones (Mr M 2026-12-01: "Adjust the mobile navigation, especially from the Home page to the Results page.
   There should be a search box ... not sure we should keep the logo everywhere" and "The sorting ... takes too much space").
   The menu bar is replaced by one bar: back to the homepage, the same typed search box as the homepage, and the filters button.
   Under it one short line: the number of cars and a small "Sort" control. Filter chips scroll sideways on one line. Desktop unchanged. ===== */
.sr-top { display: none; }
.sr-sort .icon { display: none; }
@media (max-width: 760px) {
  body[data-page="results"] { --header-h: 0px; }
  body[data-page="results"] .site-header { display: none; }
  body[data-page="results"] .sr { padding-top: 0; }
  .sr-appbar { display: none !important; }
  .sr-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; margin: 0 -16px 12px; padding: 10px 12px 10px 4px; border-bottom: 1px solid var(--line); background: #fff; }
  .sr-top-back { flex-shrink: 0; width: 40px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); }
  .sr-top-back:active { background: var(--line-2); }
  .sr-top-search { position: relative; flex: 1; min-width: 0; margin: 0; }
  body .sr-top-search .ms-box { height: 44px; padding: 0 12px; gap: 8px; border: 1.5px solid #b9c7da; border-radius: 10px; box-shadow: none; }
  .sr-top-search .ms-box > .icon { color: #8a93a3; }
  .sr-top-search .ms-box input { font-size: 15px; }
  .sr-top-search .hx-type-list { left: -44px; right: -50px; }
  .sr-top-f { position: relative; flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--brand); color: #fff; cursor: pointer; }
  .sr-top-f span { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 10px; background: var(--accent); font-size: 11.5px; font-weight: 600; color: #fff; }
  .sr-bar { min-height: 32px; margin-bottom: 10px; }
  .sr-count { font-size: 14px; }
  .sr-count b { margin-right: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
  .sr-sort { position: relative; gap: 6px; color: var(--ink); }
  .sr-sort .icon { display: block; flex-shrink: 0; color: var(--muted); }
  .sr-sort select { height: 32px; max-width: 170px; padding: 0 20px 0 0; border: 0; background-color: transparent; background-position: right 0 center; font-size: 14px; font-weight: 500; color: var(--ink); }
  .sr-chips { flex-wrap: nowrap; gap: 6px; margin: 0 -16px 12px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .sr-chips::-webkit-scrollbar { display: none; }
  .sr-chips a { flex-shrink: 0; height: 30px; font-size: 13px; white-space: nowrap; }
}

/* Car page on phones (Mr M 2026-12-01, logo not needed everywhere): no menu bar; a round back button on the photo, top left, like the share button. */
.cd-g-back { display: none; }
@media (max-width: 760px) {
  body[data-page="car"] { --header-h: 0px; }
  body[data-page="car"] .site-header { display: none; }
  .cd-g-back { display: grid; top: 14px; left: 14px; }
  .gallery-main .cd-tags { top: 22px; left: 68px; }
}

/* Dealers list on phones (Mr M 2026-12-01): the filters button was hidden on phones; it now sits at the end of the count and sort line. */
.sr-bar-f { display: none; }
@media (max-width: 760px) {
  .sr-bar-f { position: relative; flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--brand); color: #fff; cursor: pointer; }
  .sr-bar-f span { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); border-radius: 10px; background: var(--accent); font-size: 11.5px; font-weight: 600; color: #fff; }
  .sr-bar:has(.sr-bar-f) .sr-sort { margin-left: auto; }
}

/* Phone menu: the dealer button at the top (Mr M 2026-12-01). */
.mn-dealer { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin: 4px 0 10px; border-radius: 8px; background: var(--brand); font-size: 15px; font-weight: 550; color: #fff; }
.mn-dealer:hover { background: var(--brand-600); color: #fff; }

/* Car page, bottom bar and tabs on smaller phones (Mr M 2026-12-01: "The bottom section on the listing details page needs fixing").
   On phones the price (already shown big at the top) leaves the bar and Call and WhatsApp share the width equally;
   the four tabs shrink so "Seller" is not cut off. */
@media (max-width: 760px) {
  .cd-mbar { gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .cd-mbar-txt { display: none; }
  .cd-mbar .cd-btn { flex: 1 1 0; min-width: 0; height: 48px; padding: 0 10px; }
  body:has(.cd-mbar) { padding-bottom: 76px; }
  .cd-nav a { padding: 14px 6px 12px; font-size: 14px; }
}
@media (max-width: 340px) {
  .cd-nav a { padding: 14px 4px 12px; font-size: 13px; }
}

/* Dealer page on phones (Mr M 2026-12-01): the key facts fit narrow screens ("Verified" no longer runs off the card). */
@media (max-width: 760px) {
  .dv-facts dt { letter-spacing: .08em; }
  .dv-facts dd { font-size: 22px; }
  .dv-facts dd .icon { width: 18px; height: 18px; }
}

/* Dealer page on phones (Mr M 2026-12-01): no menu bar; a slim bar with back, the dealer's name and share, the same way the car page works. */
.dv-appbar { display: none; }
@media (max-width: 760px) {
  body[data-page="dealer"] { --header-h: 0px; }
  body[data-page="dealer"] .site-header { display: none; }
  .dv-appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; margin: 0 -16px 12px; padding: 8px 8px 8px 4px; border-bottom: 1px solid var(--line); background: #fff; }
  .dv-appbar-back, .dv-appbar-share { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
  .dv-appbar-back:active, .dv-appbar-share:active { background: var(--line-2); }
  .dv-appbar b { flex: 1; min-width: 0; overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
  body[data-page="dealer"] .pg { padding-top: 0; }
  body[data-page="dealer"] .dv-actions [data-share] { display: none; }
}

/* ===== Phone menu, marketplace style (Mr M 2026-12-01). Header with logo and close stays put; the rest scrolls.
   Dealer button, "Browse all cars", six quick-search tiles, icon rows with chevrons, help, language and the app. ===== */
.mobile-nav .panel.mn { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mn-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 18px; border-bottom: 1px solid var(--line); }
.mn-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
.mn-close:active { background: var(--line-2); }
.mn-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.mn .mn-dealer { margin: 0 0 14px; }
.mn-all { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1.5px solid #b9c7da; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.mn-all .icon:first-child { color: #8a93a3; }
.mn-all span { flex: 1; }
.mn-all .icon:last-child { color: var(--subtle); }
.mn-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 18px; }
.mn-tiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 72px; padding: 0 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.mn-tiles a .icon { color: var(--brand); }
.mn-tiles a:active { background: var(--brand-50); border-color: var(--brand-100); }
.mn-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mn-list a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 2px; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink); }
.mn-list a > span:not(.mn-ic) { flex: 1; min-width: 0; }
.mn-list a > .icon { flex-shrink: 0; color: var(--subtle); }
.mn-list em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); }
.mn-ic { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-50); color: var(--brand); }
.mn-list.is-plain .mn-ic { background: var(--line-2); color: var(--ink-2); }
.mn-label { display: block; margin: 22px 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.mn .mn-lang { margin: 20px 0 0; padding-top: 0; border-top: 0; }
.mn .mn-lang span { display: inline-flex; align-items: center; gap: 8px; }
.mn-app { margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--bg); }
.mn-app > b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.mn-app .app-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-app > span { display: block; margin: 4px 0 12px; font-size: 13.5px; color: var(--muted); }

/* ============ Steady search on phones (Mr M 2026-12-02: tapping the search box made the page jump, slide left and right and zoom).
   iPhones zoom into any text field or list whose text is smaller than 16px, and the page then slides about while zoomed.
   So on phones every field is 16px. The page also can't be dragged sideways, double-tap zoom is off (pinch zoom still works),
   and the search fields lose the iPhone's own rounded "search" styling. Desktop is not touched. ============ */
@media (max-width: 760px) {
  html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html, body { overflow-x: clip; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  .ms-box input[type="search"] { -webkit-appearance: none; appearance: none; border-radius: 0; }
  .ms-box input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
  .hx-type-list { overscroll-behavior: contain; }
}

/* ===== Phone app banner (Mr M 2026-12-02: "when the website opens on phone, it should inform the user about the app").
   A white strip above the menu bar on iPhone and Android phones only (html.show-appbar is set in _Layout's <head>).
   X or Install hides it for 1 day. Desktop and tablets never see it. ===== */
.app-bar { display: none; }
@media (max-width: 760px) {
  html.show-appbar .app-bar { position: relative; z-index: 51; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 16px; background: #fff; border-bottom: 1px solid var(--hair); }
  .ab-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
  .ab-icon svg { width: 44px; height: 44px; display: block; }
  .ab-text { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
  .ab-text b { font-size: 15px; font-weight: 600; color: var(--ink); }
  .ab-line { display: none; font-size: 13px; color: #5b6472; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.is-ios .ab-ios, html.is-android .ab-android, html.is-other .ab-other { display: block; }
  .ab-btn { flex-shrink: 0; display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
  .ab-btn:active { background: var(--brand-600); }
  .ab-close { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: #5b6472; cursor: pointer; }
  .ab-close:active { background: var(--soft); }
}

/* ===== Phone menu, light and simple (Mr M 2026-12-02: no sections, "keep it light and simple"). Full-screen white sheet,
   one plain list with hairline separators, soft grey text, thin soft-blue icons, small chevrons, language at the bottom. ===== */
.mobile-nav .scrim { background: transparent; }
.mobile-nav .panel.mn { width: 100%; background: #fff; transition: transform .25s ease-out; }
.mobile-nav.open .panel.mn { box-shadow: none; }
.mn-head { height: 56px; padding: 0 6px 0 20px; border-bottom: 1px solid #eef0f3; background: #fff; }
.mn-head .logo { display: flex; align-items: center; }
.mn-head .fm-logo { height: 15px; width: auto; }
.mn-head .fm-logo path { stroke-width: 3.6; }
.mn-close .icon { width: 20px; height: 20px; }
.mn svg.icon { stroke-width: 1.5; }
.mn-body { padding: 4px 20px calc(28px + env(safe-area-inset-bottom)); }
.mn-list { display: flex; flex-direction: column; border: 0; }
.mn-list a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 26px 6px 0; border: 0; border-bottom: 1px solid #f0f2f5; border-radius: 0; font-size: 14.5px; font-weight: 400; color: #3a4352; }
.mn-list a.is-main { color: var(--brand); }
.mn-list a > span { flex: 1; min-width: 0; }
.mn-list a > .icon, .mn .mn-lang span .icon { width: 18px; height: 18px; flex-shrink: 0; color: #3f72b6; }
.mn-list a::after { content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid #c9ced6; border-bottom: 1.5px solid #c9ced6; transform: rotate(-45deg); }
.mn-list a:active { background: #f6f7f9; }
.mn-list em { display: block; margin-top: 0; font-style: normal; font-size: 12.5px; font-weight: 400; color: #8b93a1; }
.mn .mn-lang { display: flex; align-items: center; gap: 0; min-height: 52px; margin: 0; padding: 0; border: 0; }
.mn .mn-lang span { display: inline-flex; align-items: center; gap: 14px; margin-right: auto; font-size: 14.5px; font-weight: 400; color: #3a4352; }
.mn .mn-lang a { height: 28px; min-width: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #f0f2f5; border-radius: 0 7px 7px 0; background: #f0f2f5; font-size: 13px; font-weight: 400; color: #6b7380; }
.mn .mn-lang a:first-of-type { border-radius: 7px 0 0 7px; }
.mn .mn-lang a.is-on { background: #fff; color: #3a4352; }

/* Phone menu, minimum (Mr M 2026-12-02: "reduce to the absolute needed"; dealer link must look like a button).
   Four rows plus language; the dealer link is a light outlined button above the list. */
.mn-main { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 16px 0 8px; padding: 0 14px; border: 1px solid var(--brand); border-radius: 8px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--brand); }
.mn-main:hover, .mn-main:active { background: var(--brand-50); color: var(--brand); }
.mn-main .icon { width: 18px; height: 18px; }

/* ===== Sell your car: one short page (Mr M 2026-12-02: "simplify ... so much talk and writing ... one page").
   Heading, two cards (own car = app, dealership = partner form), then the partner form. Replaces /fortraders. ===== */
.sl2-head { max-width: 720px; margin: 22px 0 28px; }
.sl2-head h1 { margin: 0; font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; color: var(--ink); }
.sl2-head p { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.sl2-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sl2-card { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; scroll-margin-top: calc(var(--header-h) + 16px); }
.sl2-anchor { position: absolute; top: calc(-1 * var(--header-h) - 16px); }
.sl2-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.sl2-card h2 { margin: 18px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.sl2-lead { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); }
.sl2-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--hair); list-style: none; font-size: 15px; color: var(--ink-2); }
.sl2-list li { display: flex; align-items: center; gap: 10px; }
.sl2-list .icon { flex-shrink: 0; color: var(--brand); }
.sl2-list i { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 12.5px; font-style: normal; font-weight: 600; }
.sl2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 0; }
.sl2-card .sl2-actions { margin-top: auto; padding-top: 24px; }
.sl2-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.sl2-join-head { margin: 56px 0 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
.sl2-join-head h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.sl2-join-head p { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.ft-join-side a { color: inherit; }
@media (max-width: 760px) {
  .sl2-head { margin: 8px 0 20px; }
  .sl2-head p { font-size: 15.5px; }
  .sl2-cards { grid-template-columns: 1fr; gap: 14px; }
  .sl2-card { padding: 22px 20px; }
  .sl2-card h2 { font-size: 20px; }
  .sl2-actions .cd-btn { flex: 1; padding: 0 12px; white-space: nowrap; }
  .sl2-actions .app-btns { flex: 1 1 100%; gap: 8px; }
  .sl2-actions .app-btn { flex: 1 1 0; min-width: 0; justify-content: center; gap: 8px; padding: 0 10px; }
  .sl2-actions .app-btn b { font-size: 15px; white-space: nowrap; }
  .sl2-join-head { margin-top: 40px; }
}

/* ===== Endless results (Mr M 2026-12-02): no page numbers on /cars; the next cars load while scrolling.
   With JavaScript the link is hidden and a small spinner shows while loading; the link comes back if a load fails. ===== */
.sr-more { display: grid; place-items: center; min-height: 72px; margin-top: 28px; }
.sr-more-spin { display: none; width: 28px; height: 28px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: sr-spin .8s linear infinite; }
.sr-more.is-loading .sr-more-spin { display: block; }
html.js .sr-more-btn { display: none; }
html.js .sr-more.is-failed .sr-more-btn { display: inline-flex; }
.sr-end { margin: 36px 0 0; text-align: center; font-size: 14px; color: var(--subtle); }
@keyframes sr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sr-more-spin { animation-duration: 2.4s; } }

/* Sell page: dealer "Request a call back" form inside the dealer card (Mr M 2026-12-02). */
.sl2-form { display: grid; gap: 14px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--hair); }
.sl2-form .cd-btn { width: 100%; margin-top: 4px; }
.sl2-sent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; padding: 16px; border-radius: 8px; background: var(--brand-50); font-size: 15px; color: var(--ink-2); }
.sl2-sent .icon { flex-shrink: 0; color: var(--brand); }
.sl2-sent b { font-weight: 600; color: var(--ink); }
.sl2-note a { color: var(--brand); font-weight: 550; }

/* ===== Theme consistency pass (Mr M 2026-12-02: "go through the entire public UI and ensure the theme is consistent
   and orange accent is applied correctly everywhere"). One rule for orange, used the same way on every page:
   orange marks ONLY (1) the one main "find cars" button on a screen (homepage "Browse all cars", phone filter "Show N cars",
   404 "Browse cars"), (2) the Featured tag, (3) the homepage hand-drawn line and short section bars, (4) the small filter count badge.
   Everything else: ONE FindMotos blue (#074C9B) for main buttons (no second darker navy), WhatsApp is always the green
   outlined button, Triptik is the same light blue tag as on the cards, and all buttons share 8px corners and weight 500. ===== */
.cd-btn, .btn-pill, .sf-show, .ab-btn, .sp-btn { border-radius: 8px; font-weight: 500; }
.cd-btn.is-primary { border-color: var(--brand); background: var(--brand); }
.cd-btn.is-primary:hover { border-color: var(--brand-600); background: var(--brand-600); }
.cd-btn.is-outline { border-color: var(--brand); color: var(--brand); }
.cd-pills .is-triptik { background: var(--brand-50); color: var(--brand); }
.cd-tags .is-featured { background: var(--accent); color: #fff; }
.cd-wa .cd-btn.is-whatsapp .icon { color: #1f8a4c; }
.pg-oops-code { box-shadow: none; }

/* ===== Homepage "Browse by body type" and "Popular brands" as the same tiles as the top of the page (Mr M 2026-12-02:
   "enhance those two rows and make them align with the top tiles"). Same tile: thin border, 10px corners, soft shadow,
   icon above a plain label, 3 per row on phones. Body types keep their car outline; brands get a small round monogram
   (no brand logos), no arrows, no counts. ===== */
.mk-tiles a { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 16px 8px 14px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; color: #2a3d58; text-align: center; box-shadow: 0 4px 12px -10px rgba(4, 30, 66, .35); transition: border-color .2s, box-shadow .2s; }
.mk-tiles a:hover { border-color: rgba(7, 76, 155, .35); box-shadow: 0 10px 22px -18px rgba(4, 30, 66, .45); }
.mk-tiles b { font-size: 14px; font-weight: 500; line-height: 1.25; color: #2a3d58; }
.mk-tiles .body-ic { width: 52px; height: 30px; color: #2f5f9e; }
.mk-mono { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #c9d6e8; border-radius: 50%; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #2f5f9e; }
@media (max-width: 760px) {
  .mk-tiles a { gap: 6px; padding: 12px 6px 10px; }
  .mk-tiles b { font-size: 12.5px; }
  .mk-tiles .body-ic { width: 44px; height: 26px; }
  .mk-mono { width: 26px; height: 26px; font-size: 11px; }
}

/* ===== Softer results header (Mr M 2026-12-02: "soften the header of the listing results, especially the sorting";
   his reference is the FindMotos app: "28 cars across Egypt" and a light blue "Newest first" sort).
   Count = number in semibold, the word in normal grey, no big blue number. Sort = plain blue text with a small chevron,
   no box. Phones: lighter search box border and a white outlined filter button (orange number badge stays). Also /dealers. ===== */
.sr-count { font-size: 14.5px; color: var(--muted); }
.sr-count b { margin-right: 2px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.sr-sort { gap: 6px; font-size: 13.5px; color: var(--muted); }
.sr-sort .icon { display: block; flex-shrink: 0; color: var(--brand); }
.sr-sort select { height: 34px; padding: 0 20px 0 0; border: 0; border-radius: 0; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23074c9b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 15px; font-size: 14px; font-weight: 400; color: var(--brand); cursor: pointer; field-sizing: content; }
.sr-sort select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 760px) {
  .sr-count { font-size: 14px; }
  .sr-count b { font-size: 14.5px; }
  .sr-sort > span { display: none; }
  .sr-sort select { max-width: 190px; height: 32px; font-size: 14px; font-weight: 400; color: var(--brand); }
  body .sr-top-search .ms-box { border: 1px solid #d5dde8; }
  .sr-top-f, .sr-bar-f { border: 1px solid #d5dde8; background: #fff; color: var(--brand); }
}

/* ===== Homepage: small "Selling a car?" hint under Latest cars (Mr M 2026-12-02: "after few cars, put some hint on how
   to sell a car with a link"). One light strip, whole strip links to /sell. Not a banner: no photo, no big button, no orange. ===== */
.mk-sell { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 18px; border: 1px solid #e1e7ef; border-radius: 10px; background: #f6f9fd; color: var(--ink); transition: border-color .2s, background .2s; }
.mk-sell:hover { border-color: rgba(7, 76, 155, .35); background: #f0f5fb; }
.mk-sell-ic { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; color: #2f5f9e; }
.mk-sell-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mk-sell-tx b { font-size: 15px; font-weight: 500; color: var(--ink); }
.mk-sell-tx em { font-style: normal; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mk-sell-go { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand); white-space: nowrap; }
.mk-sell:hover .mk-sell-go .icon { transform: translateX(2px); }
.mk-sell-go .icon { transition: transform .2s; }
@media (max-width: 760px) {
  .mk-sell { align-items: flex-start; gap: 12px; margin-top: 20px; padding: 14px; }
  .mk-sell-ic { width: 36px; height: 36px; }
  .mk-sell-tx b { font-size: 14.5px; }
  .mk-sell-tx em { font-size: 13.5px; }
  .mk-sell-go { margin-top: 6px; font-size: 13.5px; }
  .mk-sell { flex-wrap: wrap; }
  .mk-sell-go { flex-basis: 100%; padding-left: 48px; margin-top: -4px; }
}

/* Sell page on phones (Mr M 2026-12-02: "I don't want the menu at all or the top section with the logo").
   No menu bar: a slim bar with back and the page title, pinned at the top, like the dealer page. Desktop unchanged. */
.sl2-appbar { display: none; }
@media (max-width: 760px) {
  body[data-page="sell"] { --header-h: 0px; }
  body[data-page="sell"] .site-header { display: none; }
  body[data-page="sell"] .pg { padding-top: 0; }
  body[data-page="sell"] .sr-crumbs { display: none; }
  .sl2-appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; margin: 0 -16px 12px; padding: 8px 8px 8px 4px; border-bottom: 1px solid var(--line); background: #fff; }
  .sl2-appbar-back { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); }
  .sl2-appbar-back:active { background: var(--line-2); }
  .sl2-appbar b { flex: 1; min-width: 0; overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
}

/* No menu button on phones and tablets (Mr M 2026-12-02: "I don't want the menu button at all").
   Navigation comes from the homepage, back arrows on inner pages and the footer. Desktop top links unchanged. No bottom tabs. */
@media (max-width: 1100px) {
  .site-header .menu-toggle, .mobile-nav { display: none !important; }
}

/* Homepage language switch on phones and tablets (Mr M 2026-12-02), since there is no menu. Desktop keeps its top-bar language menu. */
.hdr-lang { display: none; }
@media (max-width: 1100px) {
  body[data-page="home"] .hdr-lang { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 10px 6px; font-size: 12.5px; font-weight: 500; line-height: 1; color: #fff; }
  body[data-page="home"] .site-header .header-saved + .hdr-lang { margin-left: 2px; }
  body[data-page="home"] .hdr-lang:hover { color: rgba(255, 255, 255, .85); }
}

/* Find a dealer on phones (Mr M 2026-12-02: "I do not want the top header or the logo"): pinned back + city + filters bar like /cars. */
@media (max-width: 760px) {
  body[data-page="dealers"] { --header-h: 0px; }
  body[data-page="dealers"] .site-header { display: none; }
  body[data-page="dealers"] .sr { padding-top: 0; }
  body[data-page="dealers"] .sr-crumbs, body[data-page="dealers"] .sr-bar-f, body[data-page="dealers"] .sr-filter-bar { display: none !important; }
  .dl-top-r { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
  .dl-top-q { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid #b9c7da; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--subtle); text-align: left; cursor: pointer; }
  .dl-top-q .icon { flex-shrink: 0; color: #8a93a3; }
  .dl-top-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dl-top-q.is-set { color: var(--ink); font-weight: 500; }
}

/* "Selling a car?" hint, shorter and nicer (Mr M 2026-12-02: "little more less text and nicer looking"):
   one short line, soft blue fade, round blue icon, small outlined "How to sell" button; on phones one row with an arrow button. */
.mk-sell { align-items: center; flex-wrap: nowrap; gap: 14px; padding: 14px 16px 14px 14px; border-color: #dde6f2; background: linear-gradient(100deg, #eaf1fa 0%, #f7f9fc 55%, #fff 100%); }
.mk-sell:hover { border-color: rgba(7, 76, 155, .35); background: linear-gradient(100deg, #e3ecf8 0%, #f3f7fc 55%, #fff 100%); }
.mk-sell-ic { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; }
.mk-sell-tx { gap: 1px; }
.mk-sell-tx b { font-size: 15.5px; font-weight: 500; }
.mk-sell-tx em { font-size: 14px; }
.mk-sell-go { height: 36px; padding: 0 14px; border: 1px solid #c9d6e8; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; color: var(--brand); }
.mk-sell:hover .mk-sell-go { border-color: var(--brand); }
@media (max-width: 760px) {
  .mk-sell { align-items: center; flex-wrap: nowrap; gap: 12px; padding: 12px; }
  .mk-sell-ic { width: 38px; height: 38px; }
  .mk-sell-ic .icon { width: 18px; height: 18px; }
  .mk-sell-tx b { font-size: 15px; }
  .mk-sell-tx em { font-size: 13.5px; }
  .mk-sell-go { flex-basis: auto; width: 36px; margin: 0; padding: 0; justify-content: center; font-size: 0; gap: 0; }
}

/* Language switch hidden for now, everywhere (Mr M 2026-12-02). Delete this rule to bring it back. */
.hdr-lang, .hn-lang, .mn-lang, .footer-lang { display: none !important; }

/* Phones: the page must never slide sideways when pulling or scrolling (Mr M 2026-12-04, screenshots of every page moving).
   iPhone Safari lets you pan the page even with overflow clipped on html/body, as long as something inside is wider than the screen.
   So each top-level part of the page clips its own sideways overflow (clip, not hidden, so the pinned bars still stick). */
@media (max-width: 1100px) {
  html, body { overflow-x: clip; overscroll-behavior-x: none; }
  body > header, body > main, body > footer, body > .app-bar { max-width: 100%; overflow-x: clip; }
}
