/* Dealer website base styles — shared by all themes. Themes override via CSS variables
   (set per tenant in <style>:root{...}</style>) and their own theme.css. Mobile-first. */
:root {
  --c-link: #1f6f5c; --c-accent-link: #9a4f17;
  --c-primary: #1f6f5c; --c-primary-text: #fff; --c-accent: #e07a2e; --c-accent-text: #111;
  --c-bg: #fff; --c-surface: #f6f6f4; --c-text: #1d1d1f; --c-muted: #5f6368;
  --c-header-bg: #fff; --c-header-text: #1d1d1f; --c-footer-bg: #1d1d1f; --c-footer-text: #e5e5e5;
  --c-border: color-mix(in srgb, var(--c-text) 14%, transparent);
  --f-heading: system-ui, sans-serif; --f-body: system-ui, sans-serif;
  --radius: 10px; --radius-sm: 6px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.07);
  --container: 1240px; --gap: clamp(16px, 3vw, 28px); --section: clamp(40px, 7vw, 88px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.site { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 1rem/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.sr-only { 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: -60px; z-index: 1000; background: var(--c-primary); color: var(--c-primary-text); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
.container.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.block + .block.section { padding-top: 0; }
.block.hero + .block.section, .block.hero-slider + .block.section, .block.cta-band + .block.section { padding-top: var(--section); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
.section-sub { color: var(--c-muted); margin-top: -.25em; }
.section-link { font-weight: 600; text-decoration: none; }
.page-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.lead { font-size: 1.2rem; color: var(--c-muted); }
.muted { color: var(--c-muted); }
.prose { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .65em 1.3em; border-radius: var(--radius-sm); border: 2px solid transparent; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; background: var(--c-surface); color: var(--c-text); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-primary); color: var(--c-primary-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--c-primary) 85%, #000); }
.btn-accent { background: var(--c-accent); color: var(--c-accent-text); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--c-link); }
.btn-ghost { background: rgba(255,255,255,.12); color: inherit; border-color: rgba(255,255,255,.55); }
.btn-light { background: #fff; color: #111; }
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .92rem; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; color: var(--c-link); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* Announcement / preview */
.announcement { background: var(--c-accent); color: var(--c-accent-text); text-align: center; font-size: .92rem; font-weight: 600; padding: 8px 0; }
.announcement a { color: inherit; }
.preview-bar { background: #fde68a; color: #422006; text-align: center; padding: 8px; font-weight: 600; }

/* Header */
.site-header { background: var(--c-header-bg); color: var(--c-header-text); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--c-border); }
.site-header a:not(.btn) { color: inherit; }
.utility-bar { font-size: .85rem; border-bottom: 1px solid color-mix(in srgb, var(--c-header-text) 15%, transparent); display: none; }
.utility-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.utility-links { display: flex; gap: 18px; flex-wrap: wrap; }
.utility-links a { text-decoration: none; font-weight: 600; }
.utility-label { opacity: .9; font-weight: 400; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-logo { display: flex; align-items: center; text-decoration: none; max-width: 60%; }
.site-logo img { max-height: 52px; width: auto; }
.wordmark { font: 700 clamp(1.1rem, .9rem + 1vw, 1.5rem)/1.1 var(--f-heading); letter-spacing: .01em; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid currentColor; color: inherit; border-radius: var(--radius-sm); padding: 8px 12px; font: 600 .95rem var(--f-body); cursor: pointer; min-height: 44px; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-header-bg); padding: 8px var(--gap) 20px; box-shadow: 0 12px 24px rgba(0,0,0,.15); max-height: calc(100vh - 70px); overflow: auto; }
.site-nav.open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--c-header-text) 12%, transparent); }
.nav-item > a { flex: 1; display: block; padding: 12px 0; text-decoration: none; font-weight: 600; }
.nav-item > a[aria-current="page"] { color: var(--c-accent-header, var(--c-accent)); }
.submenu-toggle { background: none; border: 0; color: inherit; font-size: 1.1rem; min-width: 44px; min-height: 44px; cursor: pointer; }
.submenu { list-style: none; margin: 0; padding: 0 0 8px 12px; width: 100%; display: none; }
.nav-item.open .submenu { display: block; }
.submenu a { display: block; padding: 8px 0; text-decoration: none; opacity: .9; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 14px; }
.header-phone { font-weight: 700; text-decoration: none; }
.nav-item > a, .header-phone, .nav-actions .btn { white-space: nowrap; }

@media (min-width: 1200px) {
  .utility-bar { display: block; }
  .menu-toggle { display: none; }
  .site-nav { display: flex !important; position: static; background: none; box-shadow: none; padding: 0; align-items: center; gap: 20px; overflow: visible; max-height: none; }
  .nav-list { display: flex; gap: 2px; }
  .nav-item { border: 0; }
  .nav-item > a { padding: 22px 12px; }
  .submenu-toggle { display: none; }
  .submenu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--c-header-bg); padding: 8px 0; box-shadow: var(--shadow); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .submenu a { padding: 9px 18px; }
  .nav-item:hover .submenu, .nav-item:focus-within .submenu { display: block; }
  .nav-actions { padding: 0; flex-wrap: nowrap; }
  /* The utility bar already shows phone numbers on desktop; drop the duplicate until there is room. */
  .site-header:has(.utility-bar) .nav-actions .header-phone { display: none; }
  .header-centered .header-inner { flex-direction: column; gap: 4px; padding-top: 12px; }
  .header-centered .site-logo { max-width: none; }
  .header-centered .site-nav { width: 100%; justify-content: center; border-top: 1px solid var(--c-border); }
}

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding: 0; font-size: .88rem; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: inherit; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--c-header-bg) 92%, var(--c-primary)), color-mix(in srgb, var(--c-primary) 70%, #000)); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.25)); }
.hero:not(.has-image) .hero-overlay { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--c-accent) 35%, transparent), transparent 55%); }
.hero-inner { display: grid; gap: 28px; align-items: center; padding-block: clamp(48px, 9vw, 120px); }
.hero-tall .hero-inner { min-height: min(78vh, 680px); }
.hero-short .hero-inner { padding-block: 40px; }
.hero-title { font-size: clamp(2rem, 1.2rem + 4vw, 3.75rem); max-width: 18ch; text-wrap: balance; }
.hero-sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 52ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.quick-search, .search-panel { display: grid; gap: 12px; background: var(--c-surface); color: var(--c-text); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.qs-field label { display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; color: var(--c-muted); }
input, select, textarea { font: inherit; color: var(--c-text); background: #fff; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--c-text) 25%, transparent); border-radius: var(--radius-sm); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); outline: 2px solid color-mix(in srgb, var(--c-primary) 35%, transparent); outline-offset: 0; }
@media (min-width: 760px) {
  .search-panel { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; }
  .search-panel.compact { grid-template-columns: 1fr auto; }
}
@media (min-width: 1000px) { .hero-inner:has(.quick-search) { grid-template-columns: 1.3fr .9fr; } }

/* Vehicle cards & grids */
.vehicle-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.vehicle-card { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.vehicle-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.vehicle-card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: color-mix(in srgb, var(--c-text) 6%, var(--c-surface)); }
.vehicle-card-media img { width: 100%; height: 100%; object-fit: cover; }
.photo-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: .78rem; padding: 2px 8px; border-radius: 99px; }
.photo-placeholder { width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: color-mix(in srgb, var(--c-text) 40%, transparent); font-size: .85rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--c-text) 4%, transparent) 14px 28px); }
.photo-placeholder svg { width: 72px; height: auto; }
.photo-expired span { text-transform: none; letter-spacing: 0; text-align: center; max-width: 34ch; padding: 0 12px; font-weight: 500; }
.vehicle-card-media picture, .gallery-main picture, .split-media picture { display: contents; }
.vehicle-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.vehicle-card-title { font-size: 1.08rem; margin: 0; }
.vehicle-card-title a { color: var(--c-text); text-decoration: none; }
.vehicle-card-title a:hover { color: var(--c-link); }
.vehicle-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--c-muted); font-size: .86rem; margin: 0; }
.vehicle-card-price { margin-top: auto; padding: 6px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.price { font: 700 1.35rem/1.1 var(--f-heading); color: var(--c-text); }
.price-call { font-size: 1.1rem; }
.was { color: var(--c-muted); font-size: .9rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; background: color-mix(in srgb, var(--c-text) 8%, transparent); }
.badge-new { background: var(--c-primary); color: var(--c-primary-text); }
.badge-sale { background: var(--c-accent); color: var(--c-accent-text); }
.badge-pending { background: #fde68a; color: #422006; }
.badge-sold { background: #b91c1c; color: #fff; }

/* Tiles */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tile a { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 150px; padding: 18px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--c-primary) 85%, #000), color-mix(in srgb, var(--c-header-bg) 90%, #000)); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .3s; }
.tile.has-image a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75)); }
.tile a:hover img { transform: scale(1.05); }
.tile-label { font: 700 1.2rem/1.2 var(--f-heading); }
.tile-count { font-size: .85rem; opacity: .85; }

/* Split layouts */
.split { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) {
  .split:not(.no-media) { grid-template-columns: 1fr 1fr; }
  .split.media-left .split-media { order: -1; }
  .form-split { grid-template-columns: 1.4fr 1fr !important; align-items: start; }
}
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin: 24px 0 0; }
.stats div { border-left: 3px solid var(--c-accent); padding-left: 12px; }
.stats dt { color: var(--c-muted); font-size: .88rem; }
.stats dd { margin: 0; font: 700 1.6rem var(--f-heading); }

/* CTA panels */
.cta-panel-inner { display: grid; gap: 24px; align-items: center; background: var(--c-surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 900px) { .cta-panel-inner.has-image { grid-template-columns: 1.2fr 1fr; } }
.cta-panel-media { border-radius: var(--radius-sm); width: 100%; height: 100%; object-fit: cover; max-height: 320px; }
.cta-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-link); margin-bottom: 8px; }
.cta-band { padding: clamp(36px, 6vw, 64px) 0; background: var(--c-primary); color: var(--c-primary-text); }
.cta-band-accent { background: var(--c-accent); color: var(--c-accent-text); }
.cta-band-dark { background: var(--c-footer-bg); color: var(--c-footer-text); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; opacity: .92; }

/* Promotions */
.promo-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.promo-card { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 4px solid var(--c-accent); }
.promo-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.promo-body { padding: 18px; }
.promo-body h2, .promo-body h3 { font-size: 1.2rem; }
.promo-body a { color: var(--c-text); text-decoration: none; }
.promo-ends { color: var(--c-muted); font-size: .88rem; margin: 0; }
.promo-hero { border-radius: var(--radius); margin: 16px 0 24px; }
.disclaimer { font-size: .82rem; color: var(--c-muted); }

/* Testimonials, FAQ, gallery */
.testimonial-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.testimonial { margin: 0; background: var(--c-surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 12px; font-size: 1.05rem; }
.stars { color: var(--c-accent); letter-spacing: 2px; margin: 0 0 8px; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--c-link); }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding-bottom: 12px; color: var(--c-muted); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-grid figcaption { font-size: .88rem; color: var(--c-muted); padding-top: 6px; }

/* Locations */
.location-grid { display: grid; gap: var(--gap); }
@media (min-width: 800px) { .location-grid.count-2, .location-grid.count-3, .location-grid.count-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .location-grid.count-3 { grid-template-columns: repeat(3, 1fr); } }
.location-panel { background: var(--c-surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; }
.location-card h3, .location-card .location-name { font-size: 1.2rem; text-transform: none; letter-spacing: normal; }
.location-card h3 a, .location-card .location-name a { color: var(--c-text); text-decoration: none; }
.location-card address { font-style: normal; margin-bottom: 10px; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.contact-lines span { display: inline-block; min-width: 64px; color: var(--c-muted); font-size: .88rem; }
.hours { border-collapse: collapse; margin: 0 0 14px; font-size: .92rem; }
.hours th { text-align: left; font-weight: 600; padding: 2px 16px 2px 0; }
.hours td { color: var(--c-muted); }
.map-embed { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; background: color-mix(in srgb, var(--c-text) 6%, var(--c-surface)); display: flex; align-items: center; justify-content: center; }
.map-embed.tall { aspect-ratio: 4/3; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.form-aside { display: grid; gap: 16px; }

/* Forms */
.site-form-wrap { scroll-margin-top: 100px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full, .field-textarea, .field-checkbox { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; flex: none; }
.field-help { font-size: .82rem; color: var(--c-muted); margin: 4px 0 0; }
.field-error { color: #b91c1c; font-size: .86rem; font-weight: 600; margin: 4px 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: #b91c1c; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: .82rem; color: var(--c-muted); margin: 14px 0; }
.form-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 16px 18px; border-radius: var(--radius-sm); }
.form-errors { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-unavailable { color: var(--c-muted); }

/* Inventory listing */
.inventory-page { padding-bottom: var(--section); }
.inventory-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 14px; }
.result-count { color: var(--c-muted); margin: 0; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-weight: 600; white-space: nowrap; }
.sort-form select { width: auto; }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.active-filters a { display: inline-block; padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-text); text-decoration: none; font-size: .88rem; font-weight: 600; }
.active-filters .clear-all { background: none; text-decoration: underline; }
.inventory-layout { display: grid; gap: var(--gap); }
.filter-toggle { width: 100%; }
.filters { display: none; background: var(--c-surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-self: start; }
.filters.open { display: block; }
.filter-group { border: 0; padding: 0; margin: 0 0 16px; }
.filter-group > label, .filter-group legend { display: block; font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; color: var(--c-muted); }
.filter-group .radio { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.filter-group .radio input { width: 18px; min-height: 18px; height: 18px; }
.count { color: var(--c-muted); font-size: .86rem; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.range legend { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .inventory-layout { grid-template-columns: 280px 1fr; }
  .filter-toggle { display: none; }
  .filters { display: block; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; }
}
.empty-state { text-align: center; padding: 48px 16px; background: var(--c-surface); border-radius: var(--radius); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--radius-sm); text-decoration: none; background: var(--c-surface); color: var(--c-text); font-weight: 600; }
.pagination span[aria-current] { background: var(--c-primary); color: var(--c-primary-text); }

/* Vehicle detail */
.vdp { padding-bottom: var(--section); }
.vdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (min-width: 1000px) { .vdp-grid { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); } .vdp-summary { position: sticky; top: 90px; } }
.gallery-main { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; background: color-mix(in srgb, var(--c-text) 6%, var(--c-surface)); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-counter { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,.65); color: #fff; padding: 2px 10px; border-radius: 99px; font-size: .85rem; }
.gallery-thumbs { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; margin: 0; scroll-snap-type: x mandatory; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; scroll-snap-align: start; flex: none; width: 104px; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--c-primary); }
.gallery-thumbs img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.video-embed { position: relative; aspect-ratio: 16/9; margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* External videos: click-to-load facade (no third-party request until play), 16:9, 9:16 (Shorts/Reels), 4:5 */
.video-list { display: grid; gap: 16px; margin: 16px 0; }
.video-facade { margin: 0; }
.video-facade-play, .video-facade .video-frame { position: relative; display: block; width: 100%; aspect-ratio: var(--video-aspect, 16 / 9); border: 0; border-radius: var(--radius); overflow: hidden; background: #111; padding: 0; color: #fff; cursor: pointer; }
.video-vertical .video-facade-play, .video-vertical .video-frame { max-width: 340px; margin-inline: auto; }
.video-portrait .video-facade-play, .video-portrait .video-frame { max-width: 460px; margin-inline: auto; }
.video-facade-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade-poster { position: absolute; inset: 0; background: linear-gradient(135deg, #2b3440, #0f141a); }
.video-facade-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .72); border-radius: 12px; transition: background .15s; }
.video-facade-icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-facade-play:hover .video-facade-icon, .video-facade-play:focus-visible .video-facade-icon { background: var(--c-primary, #c00); }
.video-facade-label { position: absolute; left: 10px; bottom: 10px; font-size: .78rem; font-weight: 600; background: rgba(0, 0, 0, .65); padding: 2px 10px; border-radius: 999px; }
.video-facade figcaption { margin-top: 6px; font-size: .92rem; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }
.testimonial .video-facade { margin-bottom: 12px; }
.vdp-summary { background: var(--c-surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.vdp-title { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); margin-top: 10px; }
.vdp-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--c-muted); font-size: .92rem; }
.vdp-price { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-block: 1px solid var(--c-border); margin: 10px 0 14px; }
.vdp-price .price { font-size: 2.2rem; color: var(--c-link); }
.price-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }
.finance-calc { background: color-mix(in srgb, var(--c-primary) 7%, transparent); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.finance-estimate { margin: 0 0 4px; font-size: 1.1rem; }
.finance-calc summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--c-link); }
.calc-fields { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.calc-fields label { font-size: .8rem; font-weight: 600; }
.finance-calc .disclaimer { margin: 8px 0 0; }
.vdp-actions { display: grid; gap: 10px; }
.vdp-call { text-align: center; font-weight: 700; padding: 6px; text-decoration: none; }
.share-link { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--c-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.vdp-details { display: grid; gap: 8px; margin-top: 32px; }
.vdp-section { padding: 24px 0; border-top: 1px solid var(--c-border); }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 24px; margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.spec-list dt { color: var(--c-muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.feature-list { columns: 2 220px; padding-left: 1.1em; }
.tab-list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--c-border); margin-bottom: 18px; }
.tab-list [role="tab"] { background: none; border: 0; padding: 12px 16px; font: 600 1rem var(--f-body); color: var(--c-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; min-height: 44px; }
.tab-list [role="tab"][aria-selected="true"] { color: var(--c-text); border-color: var(--c-primary); }
[role="tabpanel"] { max-width: 760px; }

/* Footer */
.site-footer { background: var(--c-footer-bg); color: var(--c-footer-text); padding-top: clamp(40px, 6vw, 64px); font-size: .94rem; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); padding-bottom: 32px; }
@media (min-width: 1100px) { .footer-grid.footer-cols-3 { grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr)); } .footer-grid.footer-cols-4 { grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); } .footer-grid.footer-cols-5 { grid-template-columns: 1fr repeat(5, minmax(0, 1fr)); } }
.footer-name { font: 700 1.3rem var(--f-heading); margin-bottom: 4px; }
.footer-tagline { opacity: .75; }
.footer-heading { font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.footer-heading a { text-decoration: none; }
.site-footer address { font-style: normal; opacity: .85; margin-bottom: 6px; }
.footer-hours { display: flex; flex-direction: column; font-size: .85rem; opacity: .75; }
.footer-nav ul, .social { list-style: none; padding: 0; margin: 0; }
.footer-nav li { padding: 3px 0; }
.social { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.footer-bottom-wrap { border-top: 1px solid color-mix(in srgb, var(--c-footer-text) 18%, transparent); }
.footer-bottom { padding-block: 18px 28px; font-size: .82rem; opacity: .8; }
.footer-bottom p { margin: 0 0 6px; }
.credit { margin-left: 8px; opacity: .7; }

/* Errors */
.error-code { font: 800 4rem/1 var(--f-heading); color: var(--c-primary); margin: 0 0 8px; }
.error-links { margin-top: 16px; }
.error-simple { text-align: center; }

@media (min-width: 1200px) and (max-width: 1365px) {
  .nav-item > a { padding: 22px 8px; font-size: .92rem; }
  .site-nav { gap: 12px; }
}

.section-tight { padding-top: 8px; padding-bottom: 0; }
.page-heading h1 { margin: 0; }

/* Sample-inventory disclosure (always shown while synthetic listings are public) */
.sample-bar { background: #fff3cd; color: #3d2e00; border-bottom: 1px solid #e6d28a; padding: 8px var(--gap); text-align: center; font-size: .9rem; }

/* Header inventory search with type-ahead */
.header-search { position: relative; display: flex; margin-top: 12px; }
.header-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--c-header-text) 30%, transparent); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: color-mix(in srgb, var(--c-header-bg) 85%, #fff); color: var(--c-header-text); font: inherit; }
.header-search input::placeholder { color: color-mix(in srgb, var(--c-header-text) 65%, transparent); }
.header-search-btn { border: 0; padding: 0 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--c-accent); color: var(--c-accent-text); font-size: 1.15rem; cursor: pointer; }
.suggest-list { position: absolute; z-index: 60; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; color: #1d1d1f; border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgba(0,0,0,.22); max-height: 70vh; overflow: auto; min-width: 300px; }
.suggest-list li a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 6px 12px; color: inherit; text-decoration: none; }
.suggest-list li a:hover, .suggest-list li[aria-selected="true"] a { background: #f1f1ef; }
.suggest-list img, .suggest-list .suggest-noimg { width: 64px; height: 43px; object-fit: cover; border-radius: 4px; background: #ddd; }
.suggest-list .suggest-title { font-weight: 600; line-height: 1.25; }
.suggest-list .suggest-price { display: block; font-size: .85rem; color: #555; }
.suggest-list .suggest-all a { display: block; font-weight: 600; padding: 8px 12px; border-top: 1px solid #eee; }
.utility-bar .header-search { display: none; }
@media (min-width: 1200px) {
  .site-nav .header-search { margin: 0; width: 180px; }
  .site-header:has(.utility-bar) .site-nav .header-search { display: none; }
  .utility-bar .header-search { display: flex; margin: 0; width: 260px; }
  .utility-bar .header-search input { padding: 4px 10px; font-size: .9rem; }
  .utility-inner { gap: 20px; align-items: center; }
  .utility-tagline { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .suggest-list { left: auto; right: 0; width: 380px; }
}
@media (min-width: 1200px) and (max-width: 1439px) { .utility-bar .header-search { width: 210px; } }

/* Rotating banner */
.hero-slider { position: relative; color: #fff; background: var(--c-header-bg); }
.hero-slider .slides { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hero-slider .slides::-webkit-scrollbar { display: none; }
.hero-slider .slide { position: relative; isolation: isolate; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; display: flex; align-items: center; }
.hero-slider .slide-tone-0 { background: linear-gradient(120deg, color-mix(in srgb, var(--c-header-bg) 94%, var(--c-accent)), color-mix(in srgb, var(--c-primary) 55%, #000)); }
.hero-slider .slide-tone-1 { background: linear-gradient(120deg, color-mix(in srgb, var(--c-accent) 55%, #000), color-mix(in srgb, var(--c-header-bg) 90%, #000)); }
.hero-slider .slide-tone-2 { background: linear-gradient(120deg, color-mix(in srgb, var(--c-primary) 60%, #000), color-mix(in srgb, var(--c-accent) 35%, #111)); }
.hero-slider .slide:not(.has-image) .hero-overlay { background: radial-gradient(circle at 85% 25%, color-mix(in srgb, var(--c-accent) 35%, transparent), transparent 55%); }
.hero-slider .hero-inner { padding-block: clamp(48px, 8vw, 104px); }
.hero-slider.hero-tall .hero-inner { min-height: min(72vh, 620px); }
.hero-slider.hero-medium .hero-inner { min-height: min(56vh, 460px); }
.hero-slider .hero-inner { display: flex; align-items: center; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.slider-arrow:hover { background: rgba(0,0,0,.7); }
.slider-prev { left: 12px; } .slider-next { right: 12px; }
.slider-controls { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 10px; z-index: 3; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider-dot[aria-current="true"] { background: #fff; }
.slider-pause { border: 0; background: rgba(0,0,0,.45); color: #fff; border-radius: 4px; font-size: .7rem; padding: 4px 7px; cursor: pointer; }
@media (max-width: 699px) { .slider-arrow { display: none; } }

/* Featured inventory carousel */
.section-head-actions { display: flex; align-items: center; gap: 10px; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.vehicle-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3 * var(--gap)) / 4)); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scroll-behavior: smooth; }
.vehicle-track > * { scroll-snap-align: start; }
@media (max-width: 1099px) { .vehicle-track { grid-auto-columns: minmax(250px, calc((100% - var(--gap)) / 2)); } }
@media (max-width: 599px) { .vehicle-track { grid-auto-columns: 82%; } }
.vehicle-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Inquiry dialog */
.inquiry-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); color: var(--c-text); background: var(--c-bg); }
.inquiry-dialog::backdrop { background: rgba(0,0,0,.55); }
.inquiry-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.inquiry-dialog-head h2 { font-size: 1.35rem; margin: 0; }
.dialog-close { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.inquiry-vehicle { font-weight: 600; color: var(--c-muted); margin: 4px 0 12px; }

/* Footer hours, reviews, back to top */
.footer-label { opacity: .75; font-size: .9em; }
.hours-summary { margin: 0 0 14px; display: grid; gap: 2px; font-size: .92rem; }
.hours-summary div { display: flex; justify-content: space-between; gap: 12px; }
.hours-summary dt { font-weight: 600; } .hours-summary dd { margin: 0; text-align: right; }
.footer-reviews { border-top: 1px solid color-mix(in srgb, var(--c-footer-text) 15%, transparent); }
.footer-reviews-panel summary { cursor: pointer; font: 700 1.05rem var(--f-heading); padding: 14px 0; list-style-position: inside; }
.footer-reviews-panel .testimonial { color: var(--c-text); }
.back-to-top[hidden], .slider-controls[hidden], .header-search-m[hidden] { display: none; }
.back-to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: var(--c-primary-text); text-decoration: none; font-size: 1.3rem; box-shadow: var(--shadow); }
/* Long menus: hide the header CTA (it is repeated in the hero and footer); the content width is capped, so this holds at every desktop size. */
@media (min-width: 1200px) {
  .site-header:has(.nav-list > li:nth-child(8)) .nav-actions .btn { display: none; }
  .site-header:has(.nav-list > li:nth-child(8)) .nav-item > a { padding-inline: 8px; letter-spacing: .02em; }
}
/* Links inside dark/colored panels follow the panel's text color (brand red on charcoal is unreadable). */
.cta-panel-inner a:not(.btn), .hero a:not(.btn), .hero-slider a:not(.btn) { color: inherit; text-decoration: underline; }
/* Text over photos: a stronger scrim plus a shadow keeps labels readable on any image. */
.tile.has-image a::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.88) 100%); }
.tile.has-image .tile-label, .tile.has-image .tile-count, .hero-slider .slide.has-image .hero-copy { text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.tile-count { opacity: 1; }
@media (min-width: 1200px) { .site-logo img { max-height: 68px; } }
.footer-logo { max-height: 80px; width: auto; margin-bottom: 12px; }

/* Location panels: keep "Get directions" and the map aligned across cards of unequal content. */
.location-panel { display: flex; flex-direction: column; gap: 16px; }
.location-panel .location-card { flex: 1; display: flex; flex-direction: column; }
.location-panel .location-card > .btn { margin-top: auto; align-self: flex-start; }
.location-panel .location-card > .hours { margin-bottom: 14px; }
.hours-summary dd { text-align: right; text-wrap: balance; }

/* Desktop header: keep a text wordmark on one line and make room for it on mid-size screens. */
@media (min-width: 1200px) {
  .site-logo { flex-shrink: 0; min-width: 0; max-width: 32%; }
  .wordmark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Headers without a utility bar carry search + phone + CTA in one row: tighten it at every desktop width. */
@media (min-width: 1200px) {
  .site-header:not(:has(.utility-bar)) .site-logo { max-width: 26%; }
  .site-header:not(:has(.utility-bar)) .site-nav { gap: 12px; }
  .site-header:not(:has(.utility-bar)) .nav-list { gap: 0; }
  .site-header:not(:has(.utility-bar)) .nav-item > a { padding-inline: 8px; font-size: .95rem; }
  /* Search lives in the hero search panel and on the inventory page; the phone number is worth more here. */
  .site-header:not(:has(.utility-bar)) .site-nav .header-search { display: none; }
  .site-header:not(:has(.utility-bar)) .nav-actions { gap: 10px; }
}
/* Narrow desktops: the header CTA is repeated in the hero and footer, so drop it before anything overflows. */
@media (min-width: 1200px) and (max-width: 1299px) {
  .site-header:has(.utility-bar) .nav-actions .btn { display: none; }
}
/* With a utility bar the main row holds logo + menu + CTA; tighten spacing so the CTA stays inside the content edge. */
@media (min-width: 1200px) {
  .site-header:has(.utility-bar) .nav-item > a { padding-inline: 9px; }
  .site-header:has(.utility-bar) .site-nav { gap: 12px; }
}

/* Saved vehicles + compare */
.save-icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.4C1.6 7.6 3.8 4 7.3 4c2 0 3.6 1.1 4.7 2.7C13.1 5.1 14.7 4 16.7 4c3.5 0 5.7 3.6 4.5 7.1-1.7 4.8-9.2 9.4-9.2 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.4C1.6 7.6 3.8 4 7.3 4c2 0 3.6 1.1 4.7 2.7C13.1 5.1 14.7 4 16.7 4c3.5 0 5.7 3.6 4.5 7.1-1.7 4.8-9.2 9.4-9.2 9.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
[aria-pressed="true"] > .save-icon, .saved-link .save-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.4C1.6 7.6 3.8 4 7.3 4c2 0 3.6 1.1 4.7 2.7C13.1 5.1 14.7 4 16.7 4c3.5 0 5.7 3.6 4.5 7.1-1.7 4.8-9.2 9.4-9.2 9.4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.4C1.6 7.6 3.8 4 7.3 4c2 0 3.6 1.1 4.7 2.7C13.1 5.1 14.7 4 16.7 4c3.5 0 5.7 3.6 4.5 7.1-1.7 4.8-9.2 9.4-9.2 9.4z'/%3E%3C/svg%3E"); }
.vehicle-card { position: relative; }
.save-toggle[hidden], .save-toggle-text[hidden], .saved-link[hidden] { display: none; } /* shown by site.js once storage works */
.save-toggle { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 1.15rem; background: rgba(255,255,255,.94); color: #1d1d1f; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.save-toggle[aria-pressed="true"] { color: #d0021b; }
.save-toggle, .save-toggle-text { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .save-toggle:hover { transform: scale(1.06); } }
.save-toggle:focus-visible, .save-toggle-text:focus-visible, .saved-link:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.vdp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; }
.vdp-tools .share-link { margin-top: 0; }
.save-toggle-text { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: none; border: 2px solid var(--c-border); border-radius: 99px;
  padding: 6px 16px; font: 600 .95rem var(--f-body); color: var(--c-text); cursor: pointer; }
.save-toggle-text[aria-pressed="true"] { border-color: #d0021b; color: #b00018; }
.saved-link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 44px; padding: 6px 12px; border-radius: 99px;
  color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; }
.saved-link .save-icon { color: #d0021b; }
.saved-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 99px; font-size: .8rem;
  background: var(--c-primary); color: var(--c-primary-text); }
/* Visually hide the word "Saved" (keeps the accessible name) on phones and on crowded desktop headers. */
@media (max-width: 520px) { .saved-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.saved-link-utility { margin-left: 0; min-height: 36px; padding: 4px 10px; color: inherit; flex: none; }
.saved-link-utility .saved-count { background: var(--c-accent); color: var(--c-accent-text); }
@media (max-width: 1199px) { .saved-link-utility { display: none !important; } }
@media (min-width: 1200px) {
  .has-utility .saved-link-main { display: none !important; }
  .saved-link-main { margin-left: 0; padding: 6px 8px; }
}
@media (min-width: 1200px) {
  .saved-link-main .saved-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.saved-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.saved-head .page-title { margin-bottom: 0; }
.saved-note { margin: 8px 0 20px; }
.saved-gone { padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c-accent) 14%, var(--c-bg)); }
.compare-picker { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.compare-picker legend { font-weight: 700; padding: 0 6px; }
.compare-picker label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.recent[hidden] { display: none; }
/* Pages that open with breadcrumbs inside a padded section sit as close to the header as the rest. */
.section:has(> .container > .breadcrumbs:first-child) { padding-top: 0; }
.saved-inquiry { margin-top: 40px; padding: clamp(16px, 3vw, 32px); background: var(--c-surface); border-radius: var(--radius); max-width: 860px; }
.saved-inquiry h2 { margin-top: 0; }
.share-url { margin-top: 8px; max-width: 100%; font-size: .9rem; }
.saved-note .share-link { margin: 0 0 0 8px; }
.filter-note { margin: 6px 0 0; font-size: .82rem; color: var(--c-muted); line-height: 1.4; }
.card-payment { display: block; font-size: .9rem; color: var(--c-muted); font-weight: 600; }
.recent-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.recent-head .link-button { min-height: 44px; color: var(--c-muted); }
.compare-diff input, .compare-picker input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--c-primary); }
.compare-diff { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0; font-weight: 600; min-height: 44px; }
.compare-scroll { position: relative; overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.compare-table thead th { vertical-align: bottom; min-width: 180px; }
.compare-table tbody th { position: sticky; left: 0; background: var(--c-bg); color: var(--c-muted); font-weight: 600; white-space: nowrap; width: 1%; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--c-surface); }
.compare-photo img { width: 100%; height: 100%; object-fit: cover; }
.compare-title { display: block; font: 700 1rem/1.3 var(--f-heading); color: var(--c-text); }
.compare-remove { display: inline-block; margin-top: 6px; font-size: .88rem; font-weight: 400; color: var(--c-muted); }
.compare-table.show-diff tr.differs > td, .compare-table.show-diff tr.differs > th { background: color-mix(in srgb, var(--c-accent) 16%, var(--c-bg)); }
.compare-table.show-diff tr.differs > th { color: var(--c-text); }

/* Print: a clean spec sheet (vehicle pages especially). Interactive chrome, forms and upsells are dropped. */
@media print {
  @page { margin: 0.5in; }
  html, body { background: #fff !important; color: #000 !important; }
  .utility-bar, .announcement, .preview-bar, .sample-bar, .skip-link, .site-nav, .nav-actions, .menu-toggle,
  .header-search, .suggest-list, .breadcrumbs, .gallery-nav, .gallery-thumbs, .gallery-counter, .vdp-actions,
  .finance-calc, .finance-estimate, .share-link, .vdp-forms, .related, .video-embed, .video-list, .site-form, .back-to-top,
  .footer-nav, .footer-reviews, .footer-hours-wrap, .social, .credit, dialog, [data-inquiry-dialog],
  .recent, .save-toggle, .save-toggle-text, .saved-link, .compare-picker, .compare-diff, .compare-remove, .compare-actions { display: none !important; }
  .site-header { position: static !important; background: #fff !important; box-shadow: none !important; border-bottom: 2px solid #000; }
  .site-footer { background: #fff !important; color: #000 !important; border-top: 2px solid #000; }
  .site-footer * { color: #000 !important; }
  .vdp-grid { display: grid !important; grid-template-columns: 1.3fr 1fr !important; gap: 0.25in !important; }
  .vdp-summary { box-shadow: none !important; border: 1px solid #999 !important; }
  .vdp-gallery img { max-height: 3.5in; object-fit: contain; }
  .vdp-section, .spec-list, .feature-list li { break-inside: avoid; }
  a { color: #000 !important; text-decoration: none !important; }
  .btn { display: none !important; }
  .vdp-call { display: block !important; border: 0 !important; padding: 0 !important; font-weight: 700; }
  a[href^="https://www.google.com/maps"] { display: none !important; }
  /* Logos are often drawn light-on-dark; keep a dark backing so they survive white paper. */
  .site-logo:has(img), .footer-logo:has(img), img.footer-logo { display: inline-block; background: #111 !important; padding: 6px 10px; border-radius: 4px;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Invoice pay page */
.pay-page { max-width: 720px; }
.pay-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.pay-table th, .pay-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-border); text-align: left; }
.pay-table td:last-child, .pay-table tfoot td { text-align: right; white-space: nowrap; }

/* Reserve with a deposit / buy online */
.deal-page h2 { margin-top: 1.6rem; scroll-margin-top: 100px; }
.deal-vehicle { color: var(--c-muted); }
.deal-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 1rem 0; list-style: none; counter-reset: dstep; font-size: .92rem; }
.deal-steps li { counter-increment: dstep; color: var(--c-muted); }
.deal-steps li::before { content: counter(dstep) ". "; font-weight: 700; }
.deal-steps li[aria-current="step"], .deal-steps li.done { color: inherit; font-weight: 600; }
.deal-steps li.done::after { content: " ✓"; }
.legal-text { max-height: 420px; overflow: auto; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-bg); font-size: .9rem; line-height: 1.5; margin: 12px 0; }
.legal-record { margin-top: 1.5rem; }
.vdp-reserve { margin: 12px 0 0; display: grid; gap: 8px; }
.vdp-reserve .note { font-size: .85rem; color: var(--c-muted); margin: 0; }
@media print { .legal-text { max-height: none; overflow: visible; border: 0; } }

/* Cookie consent (only when a dealer enables Google Analytics) */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; color: #1d2433; border-top: 1px solid rgba(0,0,0,.15); box-shadow: 0 -4px 18px rgba(0,0,0,.12); padding: 14px 0; }
.consent-inner { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.consent-inner p { margin: 0; flex: 1 1 320px; }
.consent-inner a { color: inherit; text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-consent { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
@media print { .consent-banner { display: none !important; } }

/* Blog, team, events, careers, reviews and guided-search blocks (0069 site content) */
.post-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card-media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-body .section-link { margin-top: auto; }
.post-card-title { font-size: 1.25rem; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; }
.post-meta { color: var(--c-muted); font-size: .9rem; margin-bottom: .5em; }
.post-header { margin-bottom: 16px; }
.post-cover { border-radius: var(--radius); margin: 8px 0 24px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-post .prose { font-size: 1.06rem; }
.blog-post .prose img { border-radius: var(--radius-sm); }
.tag-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--c-surface); color: var(--c-text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.filter-note, .notice { background: var(--c-surface); border-left: 4px solid var(--c-accent); padding: 12px 16px; border-radius: var(--radius-sm); }

.team-group + .team-group { margin-top: var(--section); }
.team-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.team-card { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-initials { display: flex; align-items: center; justify-content: center; background: var(--c-primary); color: var(--c-primary-text); font: 700 3rem var(--f-heading); }
.team-body { padding: 16px 18px 18px; }
.team-name { font-size: 1.15rem; margin-bottom: .2em; }
.team-title { color: var(--c-muted); font-weight: 600; margin-bottom: .6em; }
.team-bio { font-size: .95rem; }

.event-list { display: grid; gap: 16px; }
.event-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--c-surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.event-card.is-past { opacity: .85; }
.event-date { margin: 0; min-width: 64px; text-align: center; border-radius: var(--radius-sm); background: var(--c-primary); color: var(--c-primary-text); padding: 8px 6px; line-height: 1.1; }
.event-month { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-day { display: block; font: 700 1.6rem var(--f-heading); }
.event-title { font-size: 1.2rem; margin-bottom: .25em; }
.event-when, .event-where { color: var(--c-muted); margin-bottom: .35em; }
.past-events { margin-top: 32px; }
.past-events summary { cursor: pointer; font: 700 1.05rem var(--f-heading); padding: 12px 0; min-height: 44px; }
.event-facts { display: grid; gap: 8px; margin: 0 0 20px; }
.event-facts div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.event-facts dt { font-weight: 700; color: var(--c-muted); }
.event-facts dd { margin: 0; }
.event-rsvp { margin: 32px 0; }

.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.job-card { background: var(--c-surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.job-title { font-size: 1.2rem; margin-bottom: .2em; }
.job-meta { color: var(--c-muted); font-weight: 600; }

.review-actions { margin-top: 28px; }
.review-actions-label { font-weight: 700; margin-bottom: 8px; }
.review-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.review-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.price-buttons { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.price-button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; padding: 14px; border-radius: var(--radius); background: var(--c-primary); color: var(--c-primary-text); text-decoration: none; font: 700 1.15rem var(--f-heading); text-align: center; box-shadow: var(--shadow); transition: transform .15s, background .15s; }
.price-button:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c-primary) 85%, #000); }
.price-count { font: 400 .85rem var(--f-body); opacity: .9; }

.finder { background: var(--c-surface); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); }
.finder-step { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.finder-step legend { font: 700 1.2rem var(--f-heading); margin-bottom: 12px; padding: 0; }
.finder-progress { color: var(--c-muted); font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px; border: 2px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-bg); cursor: pointer; font-weight: 600; }
.choice:has(input:checked) { border-color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-primary); }
.choice input { accent-color: var(--c-primary); width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; }
.finder-budget { display: grid; gap: 12px; }
@media (min-width: 640px) { .finder-budget { grid-template-columns: 1fr 1fr; } }
.finder-budget select { width: 100%; min-height: 44px; }
.finder-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.department-phones { margin-top: -4px; }

/* Credit application (/credit-application) */
.credit-app .credit-demo { padding: 12px 16px; margin: 0 0 1rem; border: 2px solid #b45309; border-radius: var(--radius-sm); background: #fffbeb; color: #78350f; }
.credit-app .credit-secure { font-size: .92rem; }
.credit-step { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.credit-step legend { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; padding: 0; }
.credit-step legend:focus { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.credit-sub { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.credit-nav { display: flex; justify-content: space-between; gap: 12px; margin: 1rem 0 2rem; }
.credit-nav [hidden] { display: none; }
.credit-form .form-errors a { color: inherit; }

/* Showcase (demo) dealership banner and result page */
.showcase-bar { background: #e8f1ff; color: #10264a; border-bottom-color: #b9cff5; }
.showcase-bar a { color: inherit; text-decoration: underline; }
.showcase-bar code { background: rgba(16, 38, 74, .08); padding: 0 4px; border-radius: 3px; font-size: .85em; overflow-wrap: anywhere; }
.showcase-console { display: inline-block; }
.showcase-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--c-accent, #1d4ed8); margin: 0 0 4px; }

/* EX: warranty badges and the aftermarket list on vehicle pages */
.badge-warranty { background: #d1fae5; color: #064e3b; }
.badge-asis { background: #e5e7eb; color: #111827; }
.badges .badge a { color: inherit; text-decoration: none; }
.vdp-warranty > .badge { display: inline-block; font-size: 1rem; padding: .35rem .7rem; margin: 0 0 .75rem; }
.warranty-offers, .aftermarket-list { padding-left: 1.1rem; }
.warranty-offers li, .aftermarket-list li { margin-bottom: .5rem; }
.am-total { font-weight: 600; }
