/*
Theme Name: Sky Motors
Theme URI: https://skymotors.ca/
Author: Al Jobair
Description: Lightweight, mobile-first theme for a used car dealership. Inventory with filters, vehicle pages with photos and documents (Carfax, inspection, repairs), one-click Mark sold, financing, sell or trade, compare, chat assistant and local SEO. No page builder or plugins required.
Version: 2.1.2
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skymotors
*/

/* Self-hosted fonts (variable, OFL licensed). latin-ext only downloads when such characters appear. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(assets/fonts/jakarta-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(assets/fonts/jakarta-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   Colour system
   Navy = trust and calm, used for frames (header strip, footer, calculator).
   Sky blue = the brand, used for links and finance.
   Amber = the single call to action on each screen (blue's complement, so it
   is the first thing the eye lands on). Green only means "available" or
   "document ready"; grey only means "sold".
   ========================================================================== */
:root {
	--navy: #0A1730;
	--navy-2: #12254A;
	--navy-line: #5B7BB5;
	--on-navy: #C9D6EE;
	--blue: #1B63D6;
	--blue-ink: #124AA6;
	--blue-soft: #EAF2FF;
	--blue-soft-2: #D9E7FF;
	--on-blue: #E4EEFF;
	--amber: #FFB020;
	--amber-hover: #F29D00;
	--bg: #F5F7FB;
	--card: #FFFFFF;
	--line: #E2E8F2;
	--line-2: #C9D3E3;
	--ink: #0A1730;
	--muted: #55627A;
	--grey: #3C475C;
	--grey-soft: #EEF1F6;
	--green: #0B6647;
	--green-soft: #E3F5EE;
	--red: #B42318;
	--red-soft: #FEECEB;
	--r: 14px;
	--r-lg: 20px;
	--shadow: 0 1px 2px rgba(10, 23, 48, .06), 0 6px 20px rgba(10, 23, 48, .06);
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
	--bar-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); padding-bottom: var(--bar-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.section { padding-top: 40px; }
.section-last { padding-bottom: 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.pre { white-space: pre-line; }
.icon { flex-shrink: 0; }
.fineprint { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.fineprint-dark { color: var(--on-navy); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }
.empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 20px; text-align: center; }
.empty .btn { margin: 6px; }
.prose { max-width: 760px; }
.prose > *:last-child { margin-bottom: 0; }

/* ---------- Buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-hover); color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-ink); color: #fff; }
.btn-outline { background: #fff; border-color: var(--blue); color: var(--blue-ink); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-ink); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-on-dark { background: transparent; border-color: var(--navy-line); color: #fff; }
.btn-on-dark:hover { background: var(--navy-2); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: .92rem; }
.btn[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--blue-soft-2); color: var(--blue-ink); }
.chip small { color: var(--muted); font-weight: 500; }
.chip-dark { background: var(--navy-2); color: #fff; border: 1px solid var(--navy-line); }
.chip-dark:hover { background: var(--navy); color: #fff; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1.3; padding: 4px 10px; border-radius: 999px; }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-blue { background: var(--blue-soft); color: var(--blue-ink); }
.tag-dark { background: var(--grey); color: #fff; }
.tag-amber { background: var(--amber); color: var(--navy); }
.req { font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: var(--on-navy); font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--on-navy); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 559px) { .topbar span { display: none; } .topbar .wrap { justify-content: center; } }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; min-height: 44px; }
.brand svg { width: 150px; height: auto; }
.custom-logo { max-height: 48px; width: auto; }
.brand-name { font: 800 1.2rem/1 var(--display); letter-spacing: .02em; }
.nav-main { display: none; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-main a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-main a:hover, .nav-main .current-menu-item > a, .nav-main .current_page_item > a { background: var(--blue-soft); color: var(--blue-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 0 8px; min-height: 44px; }
.header-cta { display: none; }
.icon-btn { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.header-call { color: var(--blue); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle span { display: inline-flex; }
.drawer { border-top: 1px solid var(--line); background: #fff; padding: 4px 16px 16px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a:not(.btn) { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.drawer .btn { margin-top: 14px; }

/* ---------- Hero and search ---------- */
.hero { background: var(--navy); color: #fff; padding: 28px 0 32px; }
.hero-blue { background: var(--blue); }
.hero-grid { display: grid; gap: 22px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.eyebrow-light { color: #FFE1A3; }
.hero-lead { color: var(--on-navy); font-size: 1.08rem; max-width: 560px; }
.hero-blue .hero-lead { color: var(--on-blue); }
.hero-chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--navy-2); color: var(--on-navy); }
.hero-blue .hero-chips li { background: var(--blue-ink); color: #fff; }
.search-card, .card { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.search-card { display: grid; gap: 12px; }
.search-title { font-size: 1.15rem; margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .seg legend { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], input[type="date"], input[type="number"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 16px; }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2355627A' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(27, 99, 214, .2); outline-offset: 0; }
.file { padding: 8px; min-height: 48px; border: 1px dashed var(--line-2); border-radius: 10px; width: 100%; background: var(--bg); }
.hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--blue); flex-shrink: 0; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.seg legend { padding: 0; margin-bottom: 6px; }
.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 4px 6px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.seg input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.form-card h2 { font-size: 1.3rem; }
.form-vehicle { background: var(--blue-soft); border-radius: 10px; padding: 10px 12px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.notice-ok { background: var(--green-soft); color: var(--green); }
.notice-err { background: var(--red-soft); color: var(--red); }

/* ---------- Home sections ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.qa, .contact-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-height: 76px; color: var(--ink); text-decoration: none; }
.qa:hover, a.contact-card:hover { border-color: var(--blue); color: var(--ink); }
.qa strong, .contact-card strong { display: block; font-family: var(--display); font-size: .98rem; line-height: 1.2; }
.qa small, .contact-card small { display: block; color: var(--muted); font-size: .82rem; }
.qa-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.band { border-radius: var(--r-lg); padding: 24px 20px; display: grid; gap: 20px; }
.band h2 { margin-bottom: .3em; }
.band-blue { background: var(--blue); color: #fff; }
.band-blue h2 { color: #fff; }
.band-blue p { color: var(--on-blue); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2 { color: #fff; }
.band-navy p { color: var(--on-navy); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; }
.steps li > span { width: 34px; height: 34px; border-radius: 999px; background: #fff; color: var(--blue-ink); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps-cards li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.steps-cards li > span { background: var(--blue-soft); grid-row: span 2; }
.steps-cards small { color: var(--muted); }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.why h3 { margin-bottom: .3em; }
.why p { color: var(--muted); font-size: .9rem; margin: 0; }
.why-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; }
.review-score { font-weight: 700; color: var(--muted); font-size: .9rem; }
.review blockquote { margin: 0 0 8px; }
.review blockquote p { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.3; margin: 0; }
.review figcaption { color: var(--muted); font-size: .9rem; }
.visit { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 24px 20px; display: grid; gap: 16px; }
.visit h2 { color: #fff; }
.visit-actions { display: grid; gap: 10px; align-content: start; }

/* ---------- Vehicle cards ---------- */
.grid-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.vcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.vcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #DCE7F7; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #7F95B8; font-size: .82rem; }
.vcard-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; pointer-events: none; }
.vcard-count { position: absolute; right: 10px; bottom: 10px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(10, 23, 48, .82); color: #fff; }
.vcard-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.vcard-title { font-size: 1.08rem; margin: 0; }
.vcard-title a { color: var(--ink); text-decoration: none; }
.vcard-title a:hover { color: var(--blue-ink); }
.vcard-meta { font-size: .86rem; color: var(--muted); margin: 0; }
.vcard-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.price-lg { font-size: 2rem; }
.price-sold { color: var(--grey); }
.pay { font-size: .85rem; color: var(--blue-ink); text-align: right; }
.vcard-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.vcard-sold { background: var(--grey-soft); }
.vcard-sold .vcard-media img { filter: grayscale(.6); opacity: .8; }
.grid-cards-sm .vcard-actions { display: none; }

/* ---------- Inventory ---------- */
.page-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 16px 0 18px; }
.page-head h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); margin: 0 0 .25em; }
.term-intro { color: var(--muted); max-width: 760px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.inventory { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 48px; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.filters summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: 700; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "Show"; margin-left: auto; font-size: .85rem; color: var(--blue-ink); }
.filters[open] summary::after { content: "Hide"; }
.filters-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; }
.field-wide, .filters-actions { grid-column: 1 / -1; }
.filters-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.filters-actions .btn { flex: 1 1 140px; }
.results-count { margin: 0 0 12px; color: var(--muted); }
.results-count strong { color: var(--ink); }
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; font-weight: 600; color: var(--ink); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Vehicle page ---------- */
.vdp { padding-top: 12px; padding-bottom: 48px; }
.vdp-grid { display: grid; gap: 18px; }
/* Grid children may shrink below their content (lets the thumbnail strip scroll instead of widening the page). */
.vdp-grid > *, .vdp-body > *, .hero-grid > *, .inventory > *, .contact-grid > * { min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #DCE7F7; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #7F95B8; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(10, 23, 48, .82); color: #fff; }
.gallery-sold { position: absolute; left: 10px; top: 10px; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--grey); color: #fff; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #DCE7F7; cursor: pointer; scroll-snap-align: start; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb[aria-current="true"] { border-color: var(--blue); }
.vdp-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; align-self: start; }
.vdp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.vdp-title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: .2em; }
.vdp-meta { color: var(--muted); }
.vdp-price { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.vdp-price small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.pay-box { display: block; text-align: right; background: var(--blue-soft); border-radius: 12px; padding: 8px 12px; text-decoration: none; color: var(--blue-ink); }
.pay-box strong { display: block; font-size: 1.1rem; }
.pay-box small { color: var(--grey); margin: 0; }
.vdp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vdp-actions .btn-block { grid-column: 1 / -1; }
.vdp-sold { background: var(--grey-soft); border-radius: 12px; padding: 14px; }
.vdp-body { display: grid; gap: 18px; margin-top: 18px; }
.vdp-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 18px; }
.vdp-section h2 { font-size: 1.3rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.spec { background: var(--bg); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.spec dt { font-size: .78rem; color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.docs a:hover { border-color: var(--green); color: var(--ink); }
.doc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-text { flex-grow: 1; }
.doc-text strong, .doc-text small { display: block; }
.doc-text small { color: var(--muted); font-size: .8rem; }
.doc-open { font-weight: 700; color: var(--blue-ink); }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.features li { display: flex; gap: 8px; align-items: center; }
.features .icon { color: var(--green); }
.calc { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 20px 18px; display: grid; gap: 14px; margin-bottom: 18px; }
.calc h2 { color: #fff; font-size: 1.3rem; margin: 0; }
.calc .field label, .calc .seg legend { color: var(--on-navy); }
.calc input[type="text"] { background: var(--navy-2); border-color: var(--navy-line); color: #fff; }
.calc .seg span { background: var(--navy-2); border-color: var(--navy-line); color: #fff; }
.calc .seg input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.calc-out { background: var(--navy-2); border-radius: 14px; padding: 14px; display: grid; }
.calc-out span, .calc-out small { color: var(--on-navy); font-size: .82rem; }
.calc-out strong { font-family: var(--display); font-size: 2rem; color: var(--amber); line-height: 1.1; }
.calc .fineprint { margin: 0; }

/* ---------- Compare ---------- */
.compare-tray { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bar-h) + 10px); z-index: 44; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(10, 23, 48, .3); }
.compare-tray[hidden], .drawer[hidden] { display: none; }
.compare-tray > span { flex: 1 1 140px; font-size: .9rem; }
.compare-tray .btn-ghost { background: transparent; color: #fff; border-color: var(--navy-line); }
.compare { overflow-x: auto; }
.compare-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.compare-table th, .compare-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { vertical-align: bottom; }
.compare-table tbody th { font-size: .82rem; color: var(--muted); font-weight: 600; width: 130px; background: var(--bg); }
.compare-table img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 8px; }
.compare-table .c-title { font-family: var(--display); font-weight: 700; display: block; margin-bottom: 4px; }
.compare-table .c-price { font-family: var(--display); font-size: 1.3rem; font-weight: 800; }
.compare-table .c-best { background: var(--green-soft); }
.compare-remove { background: none; border: 0; color: var(--blue-ink); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 18px; padding-top: 18px; padding-bottom: 48px; }
.contact-cards { display: grid; gap: 10px; align-content: start; }
.contact-hours small + small { margin-top: 2px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.faq summary { min-height: 56px; display: flex; align-items: center; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.faq p { padding: 0 16px 16px; margin: 0; color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); margin-top: 48px; padding: 36px 0 20px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 26px; }
.footer-brand .brand { color: #fff; }
.footer-h { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; color: #fff; }
.site-footer address { font-style: normal; margin-bottom: 12px; }
.footer-social { display: flex; gap: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--navy-2); margin-top: 28px; padding-top: 16px; font-size: .82rem; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.footer-credit { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }

/* ---------- Phone action bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.mobile-bar .btn { min-height: 48px; padding: 0 8px; font-size: .95rem; }

/* ---------- Chat ---------- */
.chat-fab { display: none; }
.chat { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 12px 10px 16px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-title { flex-grow: 1; }
.chat-title strong, .chat-title small { display: block; }
.chat-title small { color: var(--on-navy); font-size: .78rem; }
.chat-contact-actions { display: flex; gap: 6px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chat-contact-actions a, .chat-contact-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.chat-contact-actions button { flex-grow: 1; }
.chat-send:disabled { opacity: .55; cursor: wait; }
.msg-lead textarea { min-height: 84px; resize: vertical; }
.msg-lead-note { margin: 0; font-size: .78rem; color: var(--muted); }
.icon-btn-dark { background: transparent; border-color: var(--navy-line); color: #fff; }
.icon-btn-dark:hover { color: #fff; }
.chat-log { flex-grow: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-cars { display: grid; gap: 8px; margin-top: 8px; }
.msg-car { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; }
.msg-car img, .msg-car .ph { width: 76px; height: 58px; object-fit: cover; background: #DCE7F7; flex-shrink: 0; }
.msg-car strong, .msg-car small { display: block; }
.msg-car small { color: var(--muted); font-size: .78rem; }
.msg-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-links a { font-weight: 700; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--blue); background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; font-size: .9rem; cursor: pointer; }
.msg-lead { display: grid; gap: 8px; margin-top: 8px; }
.msg-lead .btn { min-height: 44px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.chat-form input { border-radius: 999px; padding: 0 16px; }
.chat-send { width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px; border: 0; background: var(--amber); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-note { margin: 0; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; font-size: .8rem; color: var(--muted); text-align: center; }
.typing { color: var(--muted); font-size: .9rem; }

/* ---------- Generic pages ---------- */
.page-body { padding-top: 24px; padding-bottom: 48px; }
.page-body .prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }

/* ==========================================================================
   Larger screens (mobile first: everything above is the phone layout)
   ========================================================================== */
@media (min-width: 600px) {
	.grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.filters-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.band, .visit { padding: 32px; }
}

@media (min-width: 720px) {
	.wrap { padding-inline: 24px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.visit { grid-template-columns: 1fr auto; align-items: center; }
	.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
	.steps-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.hero { padding: 56px 0; }
	.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; }
	.grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.band { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding: 40px; }
	.vdp-grid { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; }
	.vdp-summary { position: sticky; top: 88px; }
	.vdp-body { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; }
	.vdp-side { position: sticky; top: 88px; }
}

@media (min-width: 1024px) {
	body { padding-bottom: 0; }
	.mobile-bar { display: none; }
	.compare-tray { left: auto; right: 24px; bottom: 24px; max-width: 460px; }
	.header-cta { display: inline-flex; }
	.inventory { grid-template-columns: 280px minmax(0, 1fr); align-items: start; padding-top: 24px; }
	.filters { position: sticky; top: 88px; }
	.filters summary { pointer-events: none; }
	.filters summary::after { content: none; }
	.filters-form { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
	.chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 44; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(27, 99, 214, .35); cursor: pointer; }
	.chat-fab:hover { background: var(--blue-ink); }
	.compare-tray:not([hidden]) ~ .chat-fab { bottom: 96px; }
	.chat { inset: auto 24px 24px auto; width: 400px; height: min(640px, calc(100vh - 48px)); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(10, 23, 48, .3); border: 1px solid var(--line); }
}

/* Full menu only when there is room for it on one line; below that the menu button is used. */
@media (min-width: 1180px) {
	.nav-main { display: block; }
	.nav-main a { white-space: nowrap; }
	.menu-toggle, .header-call, .drawer { display: none !important; }
}
@media (min-width: 1320px) {
	.header-phone { display: inline-flex; white-space: nowrap; }
}

@media (min-width: 1200px) {
	.inventory .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .mobile-bar, .chat, .chat-fab, .compare-tray, .site-footer, .vdp-actions, #test-drive { display: none !important; }
	body { background: #fff; padding: 0; }
}

/* ---------- Hero photo, VIN, detail icons, photo zoom ---------- */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 44px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 23, 48, .80) 0%, rgba(10, 23, 48, .88) 100%); }
.hero-photo .hero-chips li { background: rgba(10, 23, 48, .72); border: 1px solid rgba(255, 255, 255, .18); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-photo .hero-chips .icon { color: var(--amber, #FFB020); }
.hero-photo .hero-lead { color: #E6EDF8; }
@media (min-width: 1024px) {
	.hero-photo { padding: 72px 0 80px; }
	.hero-photo::before { background: linear-gradient(90deg, rgba(10, 23, 48, .94) 0%, rgba(10, 23, 48, .78) 50%, rgba(10, 23, 48, .45) 100%); }
}

.vcard-vin { margin: 6px 0 0; font-size: .78rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
.vcard-vin span { font-family: inherit; font-weight: 700; color: var(--blue-ink); margin-right: 2px; }
.vin-box strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; letter-spacing: .02em; overflow-wrap: anywhere; }
.vdp-warranty { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; font-size: .92rem; }

.spec { position: relative; padding-left: 52px; }
.spec-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }

.vcard-media { overflow: hidden; }
.vcard-media img { transition: transform .35s ease; }
@media (hover: hover) { .vcard:hover .vcard-media img { transform: scale(1.06); } }
.gallery-main img[data-gallery-main] { cursor: zoom-in; }
.gallery-zoom { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(10, 23, 48, .82); color: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 12, 26, .96); display: none; }
.lightbox.is-open { display: block; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
.lb-stage { position: absolute; inset: 56px 0 48px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; }
.lightbox.is-zoomed .lb-stage { overflow: auto; display: block; -webkit-overflow-scrolling: touch; }
.lightbox.is-zoomed .lb-stage img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
@media (min-width: 1024px) { .lightbox.is-zoomed .lb-stage img { width: 180%; } }
.lb-btn { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); width: 48px; height: 48px; border-radius: 999px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .28); }
.lb-close { top: 4px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
.lightbox.is-zoomed .lb-prev, .lightbox.is-zoomed .lb-next { display: none; }
.lb-count { position: absolute; top: 16px; left: 16px; margin: 0; color: #fff; font-weight: 700; font-size: .9rem; }
.lb-hint { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; color: #B9C6DC; font-size: .85rem; }
.lightbox.is-zoomed .lb-hint { visibility: hidden; }
.spec-wide { grid-column: 1 / -1; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.doc-tags .tag, .vdp-tags a.tag { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.hero-photo .hero-bg { object-position: 72% 40%; }
@media (min-width: 1024px) { .hero-photo .hero-bg { object-position: center 35%; } }

/* ---------- Moved page (old links) ---------- */
.moved-grid { display: grid; gap: 22px; align-items: center; }
.moved-copy { display: grid; gap: 12px; min-width: 0; }
.moved h1 { color: #fff; margin: 0; }
.moved-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.moved-search .field input { width: 100%; }
.moved-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.moved-quick a { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); text-decoration: none; }
.moved-quick a:hover { background: var(--blue-soft-2); }
.moved-help { display: grid; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--blue-soft); }
.moved-help h2 { margin: 0 0 .3em; }
.moved-help p { margin: 0; color: var(--muted); max-width: 56ch; }
.moved-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) {
	.moved-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
	.moved-help { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 28px 32px; }
}


/* ---------- Form checks, photo previews, chat placement (1.3.0) ---------- */
.field-err { color: var(--red); font-size: .82rem; font-weight: 600; }
.form [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.photo-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-previews:empty { display: none; }
.photo-prev { margin: 0; display: grid; gap: 4px; min-width: 0; }
.photo-prev img, .photo-prev-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.photo-prev-ph { display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.photo-prev figcaption { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-count, .photo-previews .field-err { grid-column: 1 / -1; margin: 0; font-size: .82rem; }
.photo-count { color: var(--green); font-weight: 600; }
.form-chat { margin: 14px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--blue-ink); text-decoration: underline; cursor: pointer; }
.chat-fab { transition: opacity .2s, transform .2s; }
.chat-fab.chat-fab-away { opacity: 0; transform: translateY(20px); pointer-events: none; }
.filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .78rem; }
a.hero-review { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: inherit; }
a.hero-review:hover { text-decoration: underline; }

/* Full financing questionnaire. */
.finance-hero { background: var(--card); color: var(--ink); padding: 24px 0; border-bottom: 1px solid var(--line); }
.finance-hero h1 { max-width: 780px; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.finance-hero .hero-lead { max-width: 780px; color: var(--muted); font-size: 1rem; }
.finance-hero a { color: inherit; text-decoration: underline; }
.finance-content { max-width: 1000px; padding-top: 24px; }
.finance-intro { margin-bottom: 20px; }
.finance-intro p { color: var(--muted); margin-top: 8px; }
.finance-application { display: grid; gap: 24px; background: var(--card); padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 12px; }
.finance-step { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.finance-step + .finance-step { border-top: 1px solid var(--line); padding-top: 24px; }
.finance-step[hidden], .finance-co[hidden], .finance-application [hidden] { display: none; }
.finance-step h2 { margin: 0 0 16px; font-size: 1.2rem; }
.finance-step h2:focus { outline-offset: 5px; }
.finance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 16px; align-items: start; }
.finance-wide { grid-column: 1 / -1; }
.finance-optional { font-weight: 400; }
.finance-co { min-width: 0; margin: 28px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.finance-co legend { font-weight: 700; padding: 0 10px 0 0; }
.finance-actions { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.finance-actions .btn { flex: 1 1 180px; }
.finance-privacy { margin-top: 24px; }
.finance-privacy { background: var(--blue-soft); padding: 18px; border-radius: 8px; font-size: .9rem; }
.finance-privacy p { margin: 12px 0 0; }
.finance-privacy > .field { margin-top: 20px; }
.finance-duration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finance-duration label { display: grid; gap: 5px; }
.finance-application [aria-invalid="true"] { border-color: var(--red); }
.finance-application input:not([type="checkbox"]), .finance-application select, .finance-application textarea { width: 100%; min-width: 0; }
.finance-application input[type="password"] { min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 16px; }
.finance-application input[type="password"]:disabled { background: var(--bg); }
.finance-application .check input { flex: 0 0 auto; }
.finance-success { padding: 28px; }
.finance-success p { margin: 18px 0; }
.tag-custom { background: var(--blue-soft); color: var(--blue-ink); max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
 .finance-grid { grid-template-columns: minmax(0, 1fr); }
}
