:root {
  color-scheme: dark;
  --ink: #f2f4f1;
  --muted: #b6bdb7;
  --night: #0c100e;
  --leaf: #c6ee98;
  --leaf-hover: #ddf8bc;
  --on-leaf: #17251a;
  --paper: #0f100f;
  --surface: #191b19;
  --control: #212421;
  --surface-hover: #2b302c;
  --line: #363b36;
  --line-strong: #647068;
  --selected-fill: #253547;
  --selected-line: #8ca9d2;
  --selected-ink: #d5e5fa;
  --focus: #a6c4f2;
  --radius: 1rem;
  --header-height: 3.25rem;
  --main-menu-rail-width: 4.7rem;
  --main-menu-rail-inset: .36rem;
  --main-menu-tile-width: calc(var(--main-menu-rail-width) - 2 * var(--main-menu-rail-inset) - 1px);
  --main-menu-tile-height: 2.75rem;
  --drawer-logo-width: 2.9rem;
  --drawer-logo-height: 1.9rem;
  --drawer-type-scale: .76;
  --drawer-home-icon-size: 1.5rem;
  --main-menu-width: 12.25rem;
  --brand-red: #ff776c;
  --display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { --active-menu-width: var(--main-menu-rail-width); margin: 0; font: 1rem/1.55 var(--display); color: var(--ink); background: var(--paper); }
body.main-menu-open { --active-menu-width: var(--main-menu-width); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }
.layout-copy { display: inline-grid; max-width: 100%; vertical-align: top; }
.layout-copy > span, .layout-copy::after { grid-area: 1 / 1; min-width: 0; }
.layout-copy::after { content: attr(data-alternate-copy); visibility: hidden; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#language-indicator { width: 1.4rem; text-align: center; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
html:has(#header-search:focus) { scroll-padding-top: 0; }
.wrap { width: min(calc(100% - 4rem), 76rem); margin-inline: auto; }
.skip { position: fixed; top: .8rem; left: .8rem; z-index: 11; transform: translateY(-200%); padding: .7rem 1rem; background: var(--leaf); color: var(--on-leaf); }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); color: var(--ink); box-shadow: inset 0 -1px var(--line); }
.header-start { display: flex; align-items: center; gap: clamp(1.625rem, 3.6vw, 2.65rem); min-width: 0; }
.header-inner { min-height: var(--header-height); display: grid; grid-template-columns: minmax(0, 1fr) min(var(--header-search-share, 40vw), 32rem) minmax(max-content, 1fr); align-items: center; gap: .85rem; padding-inline: var(--main-menu-rail-inset) clamp(.75rem, 2.5vw, 2.25rem); }
.header-actions { --header-action-gap: clamp(.65rem, 1.6vw, 1.4rem); display: flex; align-items: center; justify-content: flex-end; gap: var(--header-action-gap); }
.brand { display: inline-flex; width: fit-content; flex-direction: column; align-items: center; gap: .08rem; padding-block: .28rem; font-weight: 780; font-size: 1.24rem; line-height: 1; letter-spacing: -.06em; white-space: nowrap; }
.brand-logo { width: 6.55rem; height: auto; }
.brand-accent { color: var(--brand-red); }
.site-header .brand { color: #fff; font-size: 1.075rem; }
.site-header .brand-logo { width: 4.7rem; }
.header-actions nav { display: flex; align-items: center; gap: clamp(.65rem, 1.4vw, 1.2rem); color: var(--muted); font-weight: 670; font-size: .875rem; white-space: nowrap; }
.header-actions nav a:hover { color: var(--ink); }
.main-menu-picker { position: relative; flex: none; }
.button.button-main-menu { width: var(--main-menu-tile-width); min-height: var(--main-menu-tile-height); height: var(--main-menu-tile-height); padding: 0; border-color: var(--line); border-radius: .55rem; color: var(--ink); background: var(--surface); }
.button-main-menu:hover, .button-main-menu[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-hover); }
.main-menu-icon {
  flex: 0 0 1rem;
  height: .72rem;
  background:
    linear-gradient(currentColor,currentColor) center top / 100% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center bottom / 100% 1.5px no-repeat;
}
.main-menu-options { position: fixed; z-index: 2; inset-block: var(--header-height) 0; inset-inline-start: 0; inline-size: var(--active-menu-width); padding: .55rem var(--main-menu-rail-inset); overflow: hidden auto; overscroll-behavior-y: contain; scrollbar-width: none; border-inline-end: 1px solid var(--line); background: var(--paper); container: drawer / inline-size; transition: inline-size .2s ease; }
.main-menu-open .main-menu-options { --drawer-entry-padding: .15rem; --drawer-label-padding: .65rem; --drawer-entry-gap: .52rem; display: grid; grid-template-columns: minmax(0, max-content); grid-template-rows: var(--main-menu-tile-height) auto; align-content: start; gap: .55rem; padding-inline: .65rem; }
.drawer-home { display: flex; align-items: center; justify-content: center; width: var(--main-menu-tile-width); height: var(--main-menu-tile-height); margin-block-end: .55rem; padding: .12rem .18rem; border: 1px solid var(--line-strong); border-radius: .55rem; color: var(--selected-ink); background: var(--selected-fill); font-weight: 760; line-height: 1.16; overflow-wrap: anywhere; }
.drawer-home:hover { background: var(--surface-hover); border-color: var(--selected-line); }
.drawer-home-icon { flex: none; display: block; width: var(--drawer-home-icon-size); height: var(--drawer-home-icon-size); background: currentColor; clip-path: polygon(50% 4%, 100% 47%, 85% 47%, 85% 95%, 61% 95%, 61% 66%, 39% 66%, 39% 95%, 15% 95%, 15% 47%, 0 47%); }
.drawer-home-label { display: none; }
.main-menu-open .drawer-home-label { display: grid; align-self: center; justify-self: start; min-width: 0; overflow: hidden; white-space: nowrap; }
.drawer-home-label .layout-copy { display: grid; align-items: center; }
.drawer-home-label .layout-copy > span { overflow: hidden; text-overflow: ellipsis; }
.main-menu-open .drawer-home { display: grid; grid-template-columns: var(--drawer-logo-width) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--drawer-entry-gap); width: auto; margin-block-end: 0; padding-inline: var(--drawer-entry-padding) .2rem; font-size: .875rem; }
.main-menu-open .main-menu-options:has(.drawer-brands .brand-filter + .brand-filter) :is(.drawer-home, .drawer-types, .drawer-reset) { contain: inline-size; }
.main-menu-open .drawer-home-icon { justify-self: center; }
.button-main-menu:focus-visible, .drawer-home:focus-visible, .main-menu-options button:focus-visible { outline-offset: -2px; }
.page-content { margin-inline-start: var(--active-menu-width); container: page-content / inline-size; transition: margin-inline-start .2s ease; }
.header-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-width: 0; padding-inline-start: .82rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.header-search:focus-within { border-color: var(--selected-line); box-shadow: 0 0 0 2px #a6c4f233; }
.header-search input { min-width: 0; width: 100%; padding: .26rem 0; border: 0; color: var(--ink); background: transparent; font-size: .9375rem; }
.header-search input::placeholder { color: var(--muted); opacity: 1; }
.header-search input::-webkit-search-cancel-button { appearance: none; display: none; }
.header-search-actions { display: flex; }
.header-search-clear { display: grid; place-items: center; width: 2.5rem; padding: 0; border: 0; border-radius: .45rem; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.header-search-clear:hover { background: var(--surface-hover); color: var(--ink); }
.header-search-clear:focus-visible { outline-offset: -4px; }
.header-search-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; min-width: 3.7rem; padding: 0 .78rem; border: 0; border-inline-start: 1px solid var(--line); border-radius: 0 .48rem .48rem 0; color: var(--ink); background: var(--control); font-size: .875rem; font-weight: 730; }
.header-search-submit:hover { background: var(--surface-hover); }
.header-search input:focus-visible { outline: none; }
.header-search-submit:focus-visible { outline-offset: -4px; }
.search-icon { position: relative; width: .78rem; height: .78rem; border: 1.5px solid currentColor; border-radius: 50%; margin: -.14rem .16rem 0 0; color: var(--muted); }
.search-icon::after { content: ''; position: absolute; width: .42rem; height: .11rem; right: -.3rem; bottom: -.14rem; border-radius: .08rem; transform: rotate(45deg); background: currentColor; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .6rem 1.1rem; border: 1px solid transparent; border-radius: .58rem; font-weight: 720; text-align: center; transition: background-color .15s ease, border-color .15s ease; }
.button-outline { background: transparent; color: var(--ink); border-color: #ffffff61; }
.button-outline:hover { border-color: var(--leaf); color: var(--leaf); }
.button-location, .button-language { min-height: 2.25rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); color: var(--ink); font-size: .875rem; white-space: nowrap; }
.button-location:hover, .button-language:hover, .button-language[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-hover); }
.button-location:focus-visible, .button-language:focus-visible { outline-offset: 2px; }
.button-location { flex: none; min-inline-size: max-content; gap: .42rem; margin-inline-start: calc(var(--location-button-gap, .45rem) - var(--header-action-gap)); padding: 0 .75rem; }
.button-location .layout-copy { grid-template-columns: max-content; max-width: none; }
.location-pin { position: relative; flex: none; width: .81rem; height: .81rem; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0; color: var(--muted); transform: translateY(-.08rem) rotate(-45deg); }
.location-pin::after { content: ''; position: absolute; inset: 29%; border: 1px solid currentColor; border-radius: 50%; }
.language-picker { position: relative; flex: none; }
.button-language { gap: .36rem; min-width: 2.75rem; padding: 0 .5rem; line-height: 1; }
.language-globe { position: relative; flex: none; width: 1rem; height: 1rem; border: 1.5px solid currentColor; border-radius: 50%; color: var(--muted); }
.language-globe::before { content: ''; position: absolute; inset: -1px .17rem; border-inline: 1px solid currentColor; border-radius: 50%; }
.language-globe::after { content: ''; position: absolute; inset-inline: 0; top: calc(50% - .5px); border-top: 1px solid currentColor; }
.language-options { position: absolute; z-index: 2; inset-block-start: calc(100% + .38rem); inset-inline-end: 0; min-width: 8.5rem; padding: .25rem; border: 1px solid var(--line-strong); border-radius: .55rem; background: var(--surface); box-shadow: 0 6px 18px #0008; }
.language-options button { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-height: 2.55rem; padding: .25rem .55rem; border: 0; border-radius: .35rem; color: var(--ink); background: transparent; font-size: .875rem; font-weight: 670; text-align: start; white-space: nowrap; }
.language-options button:hover { background: var(--surface-hover); }
.language-options button:focus-visible { outline-offset: -2px; }
.language-options button[aria-pressed="true"] { background: var(--selected-fill); color: var(--selected-ink); }
.language-options button[aria-pressed="true"]::after { content: ''; width: .36rem; height: .62rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.button-primary { padding-inline: 1.24rem; background: var(--leaf); color: var(--on-leaf); }
.button-primary:hover { background: var(--leaf-hover); }

.hero {
  --hero-surface: #0b1018;
  --hero-accent: #c3dbfb;
  --hero-image-width: 62%;
  --hero-image-height: 100%;
  --hero-metric-max-width: 12rem;
  --hero-metric-gap: .45rem;
  color: var(--ink);
  position: relative;
  isolation: isolate;
  background: var(--hero-surface);
}
.hero-photo { position: absolute; z-index: -2; inset: 0 0 auto auto; width: var(--hero-image-width); height: var(--hero-image-height); object-fit: cover; object-position: center; }
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, var(--hero-surface) 37%, #0b1018db 45%, #0b10183d 62%, transparent 80%),
    linear-gradient(0deg, #0b101880, transparent 35%);
}
.hero-inner { min-height: clamp(30rem, 43cqi, 37rem); display: flex; align-items: center; padding-block: clamp(2rem, 4.25cqi, 4.25rem); }
.hero-copy { width: min(35rem, 53%); min-width: 0; overflow-wrap: anywhere; }
.eyebrow { color: var(--hero-accent); text-transform: uppercase; font-weight: 740; letter-spacing: .12em; font-size: .78rem; margin-bottom: .75rem; }
.hero-display { font-size: clamp(1.95rem, 4.5cqi, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.06em; }
.hero-description { color: #e1e7ef; max-width: 42ch; margin-top: .9rem; font-size: clamp(.9rem, 1.26cqi, 1.06rem); line-height: 1.45; }
.hero-note { color: #c0c9d8; max-width: 48ch; margin-top: .4rem; font-size: .84rem; line-height: 1.4; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: var(--hero-metric-gap); margin-top: .85rem; }
.hero-metrics > div { flex: 1 0 min(100%, 8.25rem); max-width: var(--hero-metric-max-width); padding: .55rem .72rem; border: 1px solid #344960; border-radius: .63rem; background: #172435df; }
.hero-metrics dt { color: #c9d5e4; font-size: .77rem; line-height: 1.25; }
.hero-metrics dd { color: var(--hero-accent); margin-top: .22rem; font-size: clamp(.94rem, 1.5cqi, 1.3rem); font-weight: 790; line-height: 1.18; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; container: hero-actions / inline-size; }
.hero-actions .button { max-width: 100%; overflow-wrap: anywhere; }
.hero-actions .button-primary { width: min(100%, calc(2 * var(--hero-metric-max-width) + var(--hero-metric-gap))); color: #0e1e31; background: var(--hero-accent); }
.hero-actions .button-primary:hover { background: #dceaff; }
.hero-actions .button-outline:hover { border-color: var(--hero-accent); color: var(--hero-accent); }
.listing-entry { display: grid; justify-items: start; gap: .7rem; padding-block: 1.4rem; }
.listing-entry h1 { line-height: 1.2; overflow-wrap: anywhere; }
.listing-entry dl > div { display: flex; flex-wrap: wrap; gap: .2rem .85rem; }
.listing-entry dt { color: var(--muted); }
.listing-entry dd { font-weight: 700; }

/* Below the combined minimum widths and gap, the metric boxes stack. */
@container hero-actions (width < calc(2 * 8.25rem + .45rem)) {
  .hero-actions .button-primary { width: min(100%, var(--hero-metric-max-width)); }
}

.inventory { --filter-tile-size: 5.1rem; --filter-tile-gap: .36rem; --brand-edge-gap: .71rem; position: relative; padding-block: var(--brand-edge-gap) clamp(3.5rem, 8vw, 6rem); }
.filters { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .55rem; margin-top: .9rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); container: filter-controls / inline-size; }
.filter-types { display: flex; align-items: center; gap: var(--filter-tile-gap); min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.filter-choice { --choice-fill: var(--control); flex: 1 0 var(--filter-tile-size); min-width: var(--filter-tile-size); height: var(--filter-tile-size); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; padding: .27rem .2rem; border: 1px solid var(--line); border-radius: .68rem; color: var(--ink); background: var(--choice-fill); font-size: .875rem; font-weight: 670; line-height: 1.2; }
.filter-choice:hover { --choice-fill: var(--surface-hover); border-color: var(--line-strong); }
.filter-choice[aria-pressed="true"] { --choice-fill: var(--selected-fill); border-color: var(--selected-line); color: var(--selected-ink); }
.filter-choice:focus-visible { outline-offset: -3px; }
.filter-type-choice { gap: .36rem; text-align: center; white-space: nowrap; }
.filter-type-choice.type-pending-choice { white-space: normal; }
.type-silhouette {
  --body: path(evenodd, "M 2 25 L 3 21 Q 3.5 18.5 7 18 L 17 16 L 25 9 Q 27 7 31 7 H 39 Q 43 7 46 11 L 51 16 L 56 18 Q 59 19 59 22 V 26 Q 59 29 56 29 H 6 Q 2 29 2 25 Z M 3.6 25 L 4.5 21.5 Q 5 20 7.5 19.5 L 17.8 17.4 L 26 10 Q 28 8.6 31 8.6 H 39 Q 42.5 8.6 45 12 L 50 17.3 L 55.5 19.5 Q 57.4 20 57.4 22 V 26 Q 57.4 27.4 56 27.4 H 6 Q 3.6 27.4 3.6 25 Z");
  --details: path("M 21 16 L 27 10.8 Q 28 10 31 10 H 33 V 16 Z M 34.5 10 H 39 Q 41.5 10 44 13 L 47 16 H 34.5 Z M 53 21 H 57 V 22.5 H 54 Z M 5 21 L 9 20 L 8 22 H 4.8 Z");
  --art-glass: #728a79;
  --wheel-rear: 14px;
  --wheel-front: 47px;
  --wheel-height: 27px;
  position: relative;
  display: block;
  width: 60px;
  height: 34px;
  color: #bbccbf;
}
:is(.filter-type-choice, .drawer-type-choice)[aria-pressed="true"] .type-silhouette { --art-glass: #8ca4c4; color: var(--selected-ink); }
.type-silhouette::before, .type-silhouette::after { content: ''; position: absolute; inset: 0; }
.type-silhouette::before { background: currentColor; clip-path: var(--body); }
.type-silhouette-detail { position: absolute; inset: 0; background: var(--art-glass); clip-path: var(--details); }
.type-silhouette::after {
  --tire: currentColor 1px, var(--choice-fill) 1.2px 3.25px, currentColor 3.45px 4.8px, transparent 5px;
  background:
    radial-gradient(circle at var(--wheel-rear) var(--wheel-height), var(--tire)),
    radial-gradient(circle at var(--wheel-front) var(--wheel-height), var(--tire));
}
.type-silhouette[data-shape="coupe"] {
  --body: path(evenodd, "M 2 25 L 3 21 Q 3.5 19 7 18.5 L 15 17 Q 26 9.5 33 9.5 Q 42 8.7 47 15 L 51 17.5 L 56 18.5 Q 59 19.5 59 23 V 26 Q 59 29 55 29 H 6 Q 2 29 2 25 Z M 3.6 25 L 4.5 21.5 Q 5 20.5 7.5 20 L 15.6 18.6 Q 26.5 11 33 11.1 Q 41 10.6 46 16.3 L 50.4 19 L 55.5 20 Q 57.4 20.8 57.4 23 V 26 Q 57.4 27.4 55 27.4 H 6 Q 3.6 27.4 3.6 25 Z");
  --details: path("M 20 17.7 Q 27.3 12.5 32.5 12.4 L 32.5 17.7 Z M 34 12.3 Q 41 12 45 16.1 L 46.5 17.7 H 34 Z M 53 21 H 57 V 22.5 H 54 Z M 5 21 L 9 20.5 L 8 22 H 4.7 Z");
}
.type-silhouette[data-shape="hatchback"] {
  --body: path(evenodd, "M 6 25 L 7 15 Q 7.5 10 11 9 Q 15 7.5 21 7.5 H 33 Q 38 7.5 42 12 L 47.5 17.5 L 53 19 Q 57 20 57 24 V 26 Q 57 29 54 29 H 9 Q 5.5 29 6 25 Z M 7.6 25 L 8.5 15.3 Q 9 11.5 11.8 10.5 Q 15.3 9.1 21 9.1 H 33 Q 37.2 9.1 40.8 13 L 46.6 18.9 L 52.7 20.6 Q 55.4 21.3 55.4 24 V 26 Q 55.4 27.4 54 27.4 H 9 Q 7.3 27.4 7.6 25 Z");
  --details: path("M 11 13.5 Q 14 10.5 20 10.5 H 22 V 17 H 10.5 Z M 23.5 10.5 H 33 Q 36.5 10.5 39.6 14 L 42.5 17 H 23.5 Z M 51 22 H 55 V 23.5 H 52 Z M 8.8 18.5 H 11 V 22 H 8.4 Z");
  --wheel-front: 45px;
  --wheel-rear: 16px;
}
.type-silhouette[data-shape="liftback"] {
  --body: path(evenodd, "M 2 25 L 3 20.5 Q 3.5 18 7 16.5 L 17 12 Q 22 8.5 28 7.2 Q 34 6 39 8 Q 44 10 49 16.5 L 56 18.5 Q 59 19.5 59 23 V 26 Q 59 29 56 29 H 6 Q 2 29 2 25 Z M 3.6 25 L 4.5 21 Q 5 19.1 7.6 18 L 17.8 13.4 Q 23 10 28.2 8.7 Q 34 7.6 38.5 9.5 Q 43 11.2 48 18 L 55.5 20 Q 57.4 20.8 57.4 23 V 26 Q 57.4 27.4 56 27.4 H 6 Q 3.6 27.4 3.6 25 Z");
  --details: path("M 12 17 L 18.4 14.9 Q 24 11.2 28.5 10.3 L 29.5 17 Z M 30 10.1 Q 35 9.4 38 11 Q 42 12.3 45.3 17 H 31 Z M 53 21 H 57 V 22.5 H 54 Z M 5 20.5 L 9.5 19 L 9 20.8 L 4.7 22 Z");
}
.type-silhouette[data-shape="mpv"] {
  --body: path(evenodd, "M 3 25 L 4 12 Q 4.5 6 9 5 H 32 Q 38 5 42 9 L 51 17 L 56 19 Q 59 20 59 23 V 26 Q 59 29 56 29 H 6 Q 3 29 3 25 Z M 4.6 25 L 5.6 12 Q 6 7.5 9.3 6.6 H 32 Q 37.4 6.6 40.9 10.2 L 50 18.4 L 55.5 20.5 Q 57.4 21.3 57.4 23 V 26 Q 57.4 27.4 56 27.4 H 6 Q 4.6 27.4 4.6 25 Z");
  --details: path("M 8 10 Q 8.5 8.3 11 8.3 H 18 V 17 H 7.3 Z M 19.5 8.3 H 29 V 17 H 19.5 Z M 30.5 8.3 H 32 Q 36.3 8.3 39.5 11.7 L 45 17 H 30.5 Z M 53 22 H 57 V 23.5 H 54 Z M 5.2 18.5 H 7.4 V 22 H 5 Z");
}
.type-silhouette[data-shape="pickup"] {
  --body: path(evenodd, "M 2 25 V 16 H 25 L 27 8 Q 27.5 6 30 6 H 39 Q 43 6 46 10 L 50 15 L 56 16 Q 59 17 59 20 V 25 Q 59 28 56 28 H 5 Q 2 28 2 25 Z M 3.6 25 V 17.6 H 26.2 L 28.5 8.5 Q 28.8 7.6 30 7.6 H 39 Q 42.3 7.6 44.8 11 L 49.2 16.5 L 55.5 17.5 Q 57.4 18.2 57.4 20 V 25 Q 57.4 26.4 56 26.4 H 5 Q 3.6 26.4 3.6 25 Z");
  --details: path("M 29.5 9.7 Q 29.7 9 31 9 H 35 V 15.7 H 28 Z M 36.5 9 H 39 Q 41 9 43.6 12 L 46.5 15.7 H 36.5 Z M 5.5 19.5 H 24 V 21 H 6 Z M 53 19.5 H 57 V 21 H 54 Z");
  --wheel-rear: 13px;
}
.type-silhouette[data-shape="roadster"] {
  --body: path(evenodd, "M 2 25 L 3 22 Q 4 19 8 18 L 17 16.5 Q 20 16 22 17 L 32 18 L 35 12 Q 36 10 38 11.5 L 44 17 H 52 Q 59 18 59 23 V 26 Q 59 29 56 29 H 6 Q 2 29 2 25 Z M 3.6 25 L 4.6 22.5 Q 5.2 20.5 8.4 19.6 L 17.3 18 Q 19.6 17.6 21.6 18.5 L 33 19.7 L 36.5 12.8 Q 36.9 12.4 37.3 12.9 L 43.4 18.6 H 52 Q 57.4 19.3 57.4 23 V 26 Q 57.4 27.4 56 27.4 H 6 Q 3.6 27.4 3.6 25 Z");
  --details: path("M 35.5 17.8 L 37.2 14.2 L 41.5 18 H 35.5 Z M 54 21 H 57 V 22.5 H 55 Z M 5 22 L 9 21 L 8.5 22.5 L 4.8 23.4 Z");
}
.type-silhouette[data-shape="suv"] {
  --body: path(evenodd, "M 2 25 L 3 14 Q 3.5 10 7 8 L 12 6 H 35 Q 40 6 44 10 L 50 15 L 56 16 Q 59 16.8 59 20 V 25 Q 59 28 56 28 H 5 Q 2 28 2 25 Z M 3.6 25 L 4.6 14 Q 5 11.2 7.8 9.5 L 12.3 7.6 H 35 Q 39.3 7.6 42.9 11.2 L 49.2 16.5 L 55.5 17.6 Q 57.4 18.2 57.4 20 V 25 Q 57.4 26.4 56 26.4 H 5 Q 3.6 26.4 3.6 25 Z");
  --details: path("M 8 11 L 12.5 9.1 H 17 V 15.8 H 6.8 Z M 18.5 9.1 H 30 V 15.8 H 18.5 Z M 31.5 9.1 H 35 Q 38.6 9.1 42 12.5 L 45.5 15.8 H 31.5 Z M 52 19.1 H 57 V 20.8 H 53 Z M 4.7 17.5 H 7.8 V 20.4 H 4.5 Z");
}
.type-silhouette[data-shape="van"] {
  --body: path(evenodd, "M 2 26 V 7 Q 2 3 6 3 H 37 Q 42 3 45 7 L 50 16 L 56 18 Q 59 19 59 23 V 26 Q 59 29 56 29 H 5 Q 2 29 2 26 Z M 3.6 26 V 7 Q 3.6 4.6 6 4.6 H 37 Q 41.2 4.6 43.6 8 L 48.9 17.3 L 55.5 19.5 Q 57.4 20.2 57.4 23 V 26 Q 57.4 27.4 56 27.4 H 5 Q 3.6 27.4 3.6 26 Z");
  --details: path("M 6.5 7.1 H 29.5 V 16 H 6.5 Z M 31 7.1 H 37 Q 40 7.1 42.1 10 L 45.8 16 H 31 Z M 53 21 H 57 V 22.5 H 54 Z M 4 18 H 6.5 V 22 H 4 Z");
  --wheel-rear: 12px;
  --wheel-front: 48px;
}
.type-silhouette[data-shape="wagon"] {
  --body: path(evenodd, "M 2 25 L 3 15 Q 4 10 8 9 H 35 Q 40 9 43 12 L 49.5 17.5 L 56 19 Q 59 20 59 23 V 26 Q 59 29 56 29 H 6 Q 2 29 2 25 Z M 3.6 25 L 4.6 15 Q 5.3 11.5 8.3 10.6 H 35 Q 39 10.6 42 13.2 L 48.8 19 L 55.5 20.5 Q 57.4 21.3 57.4 23 V 26 Q 57.4 27.4 56 27.4 H 6 Q 3.6 27.4 3.6 25 Z");
  --details: path("M 7.4 13.8 Q 8 12 10.5 12 H 17 V 17.5 H 6.5 Z M 18.5 12 H 29 V 17.5 H 18.5 Z M 30.5 12 H 35 Q 38.5 12 40.7 14.5 L 44.5 17.5 H 30.5 Z M 53 22 H 57 V 23.5 H 54 Z M 4.8 18.8 H 7.3 V 21.5 H 4.5 Z");
}
.type-silhouette[data-shape="all"] {
  --body: path(evenodd, "M 9 26 V 19 Q 9 15.5 13 14 L 17 7 Q 18.5 4.5 21.5 4.5 H 38.5 Q 41.5 4.5 43 7 L 47 14 Q 51 15.5 51 19 V 26 Q 51 29 48 29 H 12 Q 9 29 9 26 Z M 10.7 26 V 19 Q 10.7 16.5 14.2 15.4 L 18.5 7.9 Q 19.4 6.2 21.5 6.2 H 38.5 Q 40.6 6.2 41.5 7.9 L 45.8 15.4 Q 49.3 16.5 49.3 19 V 26 Q 49.3 27.3 48 27.3 H 12 Q 10.7 27.3 10.7 26 Z M 13 28 V 30.5 Q 13 32 14.5 32 H 17.1 Q 18.6 32 18.6 30.5 V 28 Z M 41.4 28 V 30.5 Q 41.4 32 42.9 32 H 45.5 Q 47 32 47 30.5 V 28 Z");
  --details: path("M 16.1 14.7 L 19.8 8.6 Q 20.4 7.7 22 7.7 H 38 Q 39.6 7.7 40.2 8.6 L 43.9 14.7 Q 30 13.4 16.1 14.7 Z");
}
.type-silhouette[data-shape="all"] + span { font-size: .8125rem; }
.type-silhouette[data-shape="all"]::after {
  background:
    linear-gradient(currentColor, currentColor) 50% 74% / 12px 1px no-repeat,
    radial-gradient(ellipse 3.6px 1.7px at 16px 20px, currentColor 89%, transparent),
    radial-gradient(ellipse 3.6px 1.7px at 44px 20px, currentColor 89%, transparent);
}
.brand-picker { --brand-tile-inset: .26rem; }
.brand-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block-end: calc(var(--brand-edge-gap) - var(--brand-tile-inset)); }
.buying-path { --step-gap: .4em; display: flex; flex-wrap: wrap; align-items: center; gap: .28rem var(--step-gap); min-width: 0; font-size: clamp(.9rem, 1.55vw, 1.25rem); line-height: 1.3; letter-spacing: -.025em; }
.buying-path > span { display: inline-flex; align-items: center; gap: var(--step-gap); min-width: 0; }
.buying-path > .mobile-brands-title { display: none; }
.buying-path .layout-copy::after { display: none; }
.buying-path-arrow { flex: none; color: var(--muted); font-weight: 500; }
.brand-expand { flex: none; max-width: 100%; min-height: 2.75rem; padding: .42rem .7rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--ink); background: var(--surface); font-size: .875rem; font-weight: 700; overflow-wrap: anywhere; }
.brand-expand:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.brand-options { display: grid; grid-auto-flow: column; grid-auto-columns: 6.85rem; gap: .55rem; padding: var(--brand-tile-inset) .3rem .64rem; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.brand-options.is-expanded { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(6.85rem,1fr)); overflow: visible; }
:is(.brand-filter, .drawer-type-choice, .drawer-reset) { --choice-fill: var(--surface); min-width: 0; min-height: 5.25rem; display: grid; grid-template: 'logo' 2.5rem 'label' 2.06rem / minmax(0, 1fr); place-items: center; align-content: center; gap: .1rem; padding: .22rem .35rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--choice-fill); color: var(--ink); text-align: center; font-size: .875rem; font-weight: 720; line-height: 1.16; }
:is(.brand-filter, .drawer-type-choice, .drawer-reset) > :first-child { grid-area: logo; }
:is(.brand-label, .drawer-type-label, .drawer-reset-label) { grid-area: label; min-width: 0; }
:is(.brand-label, .drawer-type-label, .drawer-reset-label) .layout-copy > span { align-self: center; }
:is(.brand-filter, .drawer-type-choice, .drawer-reset):hover { --choice-fill: var(--surface-hover); border-color: var(--line-strong); }
:is(.brand-filter, .drawer-type-choice)[aria-pressed="true"] { --choice-fill: var(--selected-fill); border-color: var(--selected-line); color: var(--selected-ink); }
.filter-brand-logo { width: 3.45rem; height: 2.14rem; object-fit: contain; }
.brand-filter:is([data-brand="audi"], [data-brand="mazda"], [data-brand="nissan"], [data-brand="toyota"]) .filter-brand-logo { filter: brightness(0) invert(.84); }
.brand-filter[data-brand="volkswagen"] .filter-brand-logo { filter: brightness(3.8) saturate(.68); }
.brand-filter[data-brand=""] .filter-brand-logo { filter: brightness(1.3); }
.drawer-brands, .drawer-types { display: grid; grid-template-columns: minmax(0, 1fr); gap: .28rem; }
.drawer-types { border-block-start: 1px solid var(--line); padding-block-start: .55rem; }
:is(.drawer-types, .drawer-reset) { margin-block-start: .55rem; }
.main-menu-open :is(.drawer-types, .drawer-reset) { margin-block-start: 0; }
.drawer-reset::before { content: ''; position: absolute; inset-block-start: -.3rem; inset-inline: 0; border-block-start: 1px solid var(--line); pointer-events: none; }
.main-menu-options :is(.brand-filter, .drawer-type-choice, .drawer-reset) { position: relative; width: var(--main-menu-tile-width); min-height: var(--main-menu-tile-height); height: var(--main-menu-tile-height); grid-template: 'logo' 1fr / minmax(0, 1fr); padding: .26rem .18rem; border-radius: .55rem; }
.drawer-brands .filter-brand-logo { width: var(--drawer-logo-width); height: var(--drawer-logo-height); }
.drawer-type-icon { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: var(--drawer-logo-width); height: var(--drawer-logo-height); overflow: hidden; }
.drawer-type-icon .type-silhouette { transform: scale(var(--drawer-type-scale)); }
.main-menu-options :is(.brand-label, .drawer-type-label, .drawer-reset-label) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.main-menu-open .main-menu-options :is(.brand-filter, .drawer-type-choice, .drawer-reset) { width: auto; grid-template: 'logo label' 1fr / var(--drawer-logo-width) minmax(0, 1fr); gap: var(--drawer-entry-gap); padding-inline: var(--drawer-entry-padding) var(--drawer-label-padding); font-size: .85rem; }
.main-menu-open .main-menu-options :is(.brand-label, .drawer-type-label, .drawer-reset-label) { position: static; justify-self: stretch; width: auto; height: auto; margin: 0; clip-path: none; text-overflow: ellipsis; text-align: start; }
.section-title { padding-block: .55rem; }
h2 { font-size: clamp(2rem, 4.1vw, 3.35rem); line-height: 1; letter-spacing: -.065em; font-weight: 775; }
#count { color: var(--muted); }
.sort-picker, .sort-disclosure { display: grid; min-width: 0; }
.sort-picker { gap: .3rem; }
.sort-disclosure { position: relative; }
.sort-toggle, .sort-reset { position: relative; display: grid; place-items: center; min-height: 2.4rem; padding: .38rem 1.65rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); background: var(--control); font-size: .875rem; font-weight: 720; line-height: 1.2; text-align: center; }
.sort-toggle:hover, .sort-toggle[aria-expanded="true"], .sort-reset:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.sort-toggle.has-sort { border-color: var(--selected-line); color: var(--selected-ink); background: var(--selected-fill); }
.sort-toggle:focus-visible, .sort-reset:focus-visible { outline-offset: -3px; }
.sort-toggle[aria-expanded="true"] { border-end-start-radius: 0; border-end-end-radius: 0; }
.sort-reset { contain: inline-size; }
.sort-picker:has(.sort-toggle[aria-expanded="true"]) .sort-reset { visibility: hidden; }
.sort-reset-label { min-width: 0; }
.sort-toggle-copy { display: grid; place-items: center; }
.sort-toggle-copy > span { grid-area: 1 / 1; white-space: nowrap; }
.sort-toggle-measure { visibility: hidden; pointer-events: none; }
.sort-toggle:not(.has-sort) .sort-toggle-label { font-size: .8125rem; letter-spacing: .02em; white-space: nowrap; }
.sort-toggle-copy .layout-copy { align-items: center; }
.sort-icon, .sort-chevron, .reset-icon { position: absolute; inset-block-start: 50%; }
.sort-icon { inset-inline-start: .55rem; width: .95rem; height: .85rem; transform: translateY(-50%); background: linear-gradient(currentColor, currentColor) left .12rem / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) left center / 68% 1.5px no-repeat, linear-gradient(currentColor, currentColor) left .64rem / 38% 1.5px no-repeat; }
.sort-chevron { inset-inline-end: .65rem; width: .38rem; height: .38rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-65%) rotate(45deg); }
.sort-toggle[aria-expanded="true"] .sort-chevron { transform: translateY(-35%) rotate(225deg); }
:is(.reset-icon, .drawer-reset-icon) { width: var(--reset-icon-size, .78rem); height: var(--reset-icon-size, .78rem); border: 1.5px solid currentColor; border-inline-start-color: transparent; border-radius: 50%; }
.reset-icon { inset-inline-start: .6rem; transform: translateY(-50%); }
.drawer-reset-icon { --reset-icon-size: 1.2rem; position: relative; }
:is(.reset-icon, .drawer-reset-icon)::after { content: ''; position: absolute; inset: -.07rem auto auto -.06rem; width: calc(var(--reset-icon-size, .78rem) * .36); height: calc(var(--reset-icon-size, .78rem) * .36); border: solid currentColor; border-width: 0 0 1.5px 1.5px; }
.filter-sort { position: absolute; z-index: 3; inset-block-start: 100%; inset-inline: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; max-height: min(26rem, 62dvh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-block-start: 0; border-radius: 0 0 .6rem .6rem; background: var(--surface); box-shadow: 0 8px 24px #0008; }
.stock-filter-menu > [role="group"] { display: grid; }
.stock-filter-menu > [role="group"] + [role="group"] { border-block-start: 1px solid var(--line); }
.stock-filter-label { padding: .45rem .65rem .15rem; color: var(--muted); font-size: .75rem; font-weight: 650; }
.sort-option { display: flex; align-items: center; gap: .5rem; min-width: 0; min-height: 2.55rem; padding: .46rem .65rem; border: 0; color: var(--ink); background: transparent; font-size: .875rem; font-weight: 650; line-height: 1.25; text-align: start; }
.sort-option .layout-copy { min-width: 0; align-items: center; }
.sort-option:hover { background: var(--surface-hover); }
.sort-option:focus-visible { outline-offset: -2px; }
.sort-option[aria-pressed="true"] { color: var(--selected-ink); background: var(--selected-fill); }
.sort-option:is([data-sort], [data-stock-status], [data-years])::after { content: ''; visibility: hidden; flex: none; width: .35rem; height: .65rem; margin-inline-start: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sort-option[aria-pressed="true"]::after { visibility: visible; }
@container filter-controls (max-width: 17rem) {
  .sort-toggle, .sort-reset { width: 2.1rem; min-height: 2.1rem; padding: 0; }
  .sort-toggle-copy, .sort-chevron, .sort-reset-label { display: none; }
  .sort-icon, .reset-icon { inset-inline-start: 50%; transform: translate(-50%, -50%); }
  .filter-sort { inset-inline-start: auto; width: min(12rem, 100cqi); }
  .sort-option { padding-inline: .45rem; }
}
.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-media { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--control); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.card-media img, .vehicle-gallery img, .hero-photo { -webkit-touch-callout: none; }
.card-media:hover img { transform: scale(1.025); }
.vehicle-photo-pending {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1rem;
  background: radial-gradient(ellipse at top, var(--selected-fill), #141b24 74%);
  color: var(--selected-ink);
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-weight: 750;
  text-align: center;
}
.vehicle-photo-pending small { color: var(--muted); font-size: .8rem; font-weight: 550; }
.card-media:focus-visible { outline-offset: -4px; z-index: 1; }
.card-media[data-pointer-open]:focus-visible { outline: none; }
.card-media.is-booked img { filter: brightness(.47) saturate(.75); }
.vehicle-booked {
  position: absolute;
  inset-block-start: .65rem;
  inset-inline-end: .65rem;
  padding: .42rem .68rem;
  border-radius: .45rem;
  background: #161e19;
  color: #fff;
  font-size: .78rem;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: .05em;
  white-space: nowrap;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem; }
.vehicle-certified { display: inline-flex; align-items: center; gap: .42rem; align-self: flex-start; padding: .22rem .62rem; border-radius: .4rem; background: var(--selected-fill); color: var(--selected-ink); font-size: .875rem; font-weight: 780; }
.vehicle-certified::before { content: '✓'; display: grid; place-items: center; width: 1.08rem; height: 1.08rem; border-radius: 50%; color: var(--selected-fill); background: var(--selected-ink); font-size: .75rem; line-height: 1; }
.vehicle-pricing { margin-top: .85rem; }
.vehicle-payment { display: flex; align-items: center; gap: .4rem .65rem; }
.vehicle-payment-copy { min-width: 0; }
.vehicle-tags { flex-shrink: 0; max-width: 42%; margin-inline-start: auto; text-align: center; }
.vehicle-type { display: inline-block; line-height: 1.35; }
.vehicle-finance-label, .vehicle-term { color: var(--muted); font-size: .875rem; }
.vehicle-finance-label { font-weight: 650; }
.vehicle-monthly { display: flex; align-items: baseline; flex-wrap: wrap; gap: .24rem .42rem; color: var(--selected-ink); line-height: 1.18; margin-top: .1rem; }
.vehicle-monthly strong { font-size: clamp(1.35rem, 2.25vw, 1.85rem); font-weight: 790; letter-spacing: -.055em; white-space: nowrap; }
.vehicle-price-pending { color: var(--muted); font-size: .94rem; font-weight: 650; }
.vehicle-term { color: var(--muted); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.vehicle-term-divider { color: var(--muted); font-weight: 500; }
.vehicle-deposit { display: flex; align-items: baseline; flex-wrap: wrap; gap: .32rem; margin-top: .45rem; color: var(--muted); }
.vehicle-deposit strong { color: var(--ink); }
.vehicle-badges { display: flex; align-items: center; flex-wrap: wrap; gap: .33rem; margin-top: .72rem; }
.vehicle-tag { padding: .21rem .58rem; border-radius: .35rem; color: var(--ink); background: var(--surface-hover); font-size: .875rem; font-weight: 710; }
.vehicle-warranty { color: #d0e2fb; background: #243245; }
.vehicle-feature { padding: .18rem .52rem; border: 1px solid var(--line); border-radius: 999px; color: #cbd4df; background: var(--control); font-size: .8125rem; font-weight: 690; }
.vehicle-details { margin-top: .86rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.card-title { min-width: 0; font-size: 1.11rem; font-weight: 745; letter-spacing: -.025em; line-height: 1.33; }
.card-title-text, .dialog-vehicle-title > span { display: -webkit-box; max-block-size: 2lh; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-title-text:hover { color: var(--selected-ink); text-decoration: underline; text-underline-offset: .17em; }
.dialog-model.card-title-overflow > span { width: max-content; animation: scroll-specification var(--title-duration) linear infinite alternate; }
@keyframes scroll-specification {
  0%, 20% { transform: translateX(0); }
  80%, 100% { transform: translateX(var(--title-offset)); }
}
.vehicle-meta { min-block-size: 1.55em; margin-top: .27rem; color: var(--muted); font-size: .94rem; }
.vehicle-badges:empty { margin-top: 0; }
@supports (grid-template-rows: subgrid) {
  @container page-content (width > 34rem) {
    .stock-grid:has(.vehicle-photo-pending) {
      /* Keep matching information on the same row even when a card has missing data. */
      & :is(.card, .card-body, .vehicle-pricing) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: subgrid;
        row-gap: 0;
      }
      & .card { grid-row: span 6; }
      & .card-body { grid-row: span 5; }
      & .vehicle-pricing { grid-row: span 2; }
      & :is(.card-media, .vehicle-payment, .vehicle-deposit, .vehicle-badges, .vehicle-details) { align-self: start; }
      & .vehicle-certified { place-self: start; }
    }
  }
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-block: 1px solid var(--line); gap: .4rem; padding-block: .62rem; margin-block: .76rem; }
.facts dt { color: var(--muted); font-size: .875rem; }
.facts dd { font-size: .875rem; font-weight: 720; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 2rem; text-align: center; }
.empty .button {
  margin-top: 1rem;
  border-color: var(--selected-line);
  background: var(--selected-fill);
  color: var(--selected-ink);
}
.empty .button:hover {
  border-color: var(--focus);
  background: color-mix(in srgb, var(--selected-fill) 88%, var(--selected-ink));
}
.stock-pagination {
  display: grid;
  grid-template-areas: 'previous numbers next';
  grid-template-columns: 6.5rem auto 6.5rem;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.5rem;
}
#page-prev { grid-area: previous; }
#page-next { grid-area: next; }
.page-numbers { grid-area: numbers; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem; min-width: 0; }
.stock-pagination button {
  min-height: 2.65rem;
  padding: .3rem .55rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 720;
  white-space: nowrap;
}
.page-number { min-width: 2.65rem; font-variant-numeric: tabular-nums; }
.page-gap { display: inline-flex; justify-content: center; min-width: 1.2rem; color: var(--muted); }
.stock-pagination button:focus-visible { outline-offset: 2px; }
.stock-pagination button:enabled:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.stock-pagination button:disabled { color: #a0a8a1; background: var(--paper); cursor: default; }
.stock-pagination .page-number[aria-current='page'] { color: var(--selected-ink); background: var(--selected-fill); border-color: var(--selected-line); }

.buy { background: var(--surface); border-top: 1px solid var(--line); }
.buy-inner { --section-padding: clamp(1.6rem, 3.5vw, 2.75rem); --heading-gap: 1.2rem; padding-block-end: var(--section-padding); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .75rem; overflow-wrap: anywhere; }
.steps li + li { padding-inline-start: 1.05rem; border-inline-start: 1px solid var(--line); }
.steps strong { display: block; line-height: 1.35; }
.steps p { margin-top: .14rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.buy-step-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid #536c83; border-radius: .55rem; background: var(--selected-fill); color: var(--selected-ink); }
.buy-step-icon .search-icon { color: inherit; }
.buy-step-check, .buy-step-calendar { position: relative; width: 1.05rem; height: 1.05rem; border: 1.5px solid currentColor; }
.buy-step-check { border-radius: 50%; }
.buy-step-check::after { content: ''; position: absolute; inset: .15rem auto auto .29rem; width: .27rem; height: .43rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.buy-step-calendar { border-radius: .18rem; }
.buy-step-calendar::before { content: ''; position: absolute; inset: .24rem 0 auto; border-top: 1.5px solid currentColor; }
.buy-step-calendar::after { content: ''; position: absolute; inset: -.18rem .16rem auto; height: .35rem; border-inline: 1.5px solid currentColor; }
@container page-content (max-width: 42rem) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .steps li + li { padding-inline-start: 0; border-inline-start: 0; }
}
.buying-benefits { --section-padding: clamp(2.15rem, 4.6vw, 3.6rem); --heading-gap: 1.3rem; padding-block-end: var(--section-padding); border-top: 1px solid var(--line); background: var(--night); }
:is(.buy, .buying-benefits, .buying-finance, .faq-intro) h2 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
:is(#buy-title, #benefits-title) {
  display: grid;
  place-items: center;
  padding-block: calc((var(--section-padding) + var(--heading-gap)) / 2);
  text-align: center;
}
:is(#buy-title, #benefits-title) .layout-copy > span { align-self: center; }
.benefit-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.benefit-list li {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: linear-gradient(135deg, #202a34, var(--surface) 75%);
}
.benefit-list strong { min-width: 0; font-size: clamp(.87rem, 1.4vw, 1.03rem); line-height: 1.3; overflow-wrap: anywhere; }
.benefit-copy { display: grid; min-width: 0; gap: .2rem; }
.benefit-copy small { color: var(--muted); font-size: .8rem; line-height: 1.3; overflow-wrap: anywhere; }
.benefit-check { display: grid; flex: none; place-items: center; width: 2rem; height: 2rem; border: 1px solid #536c83; border-radius: .48rem; background: var(--selected-fill); color: var(--selected-ink); }
.benefit-check::before { content: ''; width: .42rem; height: .72rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.08rem) rotate(45deg); }
.buying-finance { padding-block: clamp(2rem, 4.6vw, 3.6rem); border-top: 1px solid var(--line); background: var(--surface); }
.financing-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: clamp(1.15rem, 3.5vw, 3.2rem); }
.financing-intro { max-width: 40ch; margin-top: .65rem; color: var(--muted); overflow-wrap: anywhere; }
.financing-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.financing-highlights > div { display: grid; align-content: start; gap: .4rem; min-width: 0; padding: .9rem 1rem; border: 1px solid #3c5068; border-radius: .75rem; background: #202c3a; overflow-wrap: anywhere; }
.financing-highlights dt { color: #c2cedc; font-size: .82rem; line-height: 1.3; }
.financing-highlights dd { color: var(--selected-ink); font-size: clamp(1rem, 2.2vw, 1.45rem); font-weight: 760; line-height: 1.22; letter-spacing: -.02em; }
.buying-faq { padding-block: clamp(2.4rem, 5.8vw, 4.5rem); border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.4rem, 4vw, 4.25rem); }
.faq-intro .button { max-width: 100%; margin-top: 1.15rem; text-align: center; overflow-wrap: anywhere; }
.faq-list { display: grid; gap: .5rem; min-width: 0; }
.faq-list details { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }
.faq-list details[open] { border-color: #536c83; }
.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.55rem;
  align-items: center;
  gap: .75rem;
  min-height: 3.45rem;
  padding: .8rem .95rem;
  border-radius: inherit;
  font-weight: 680;
  line-height: 1.35;
  list-style: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .faq-list summary:hover { background: var(--surface-hover); }
}
.faq-list summary:focus-visible { outline-offset: -3px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--control);
  color: var(--selected-ink);
  content: '+';
  font-size: 1.05rem;
  line-height: 1;
}
.faq-list details[open] summary::after { background: var(--selected-fill); content: '−'; }
.faq-list details :is(p, .faq-amounts) { margin: 0 .95rem; padding-block: .75rem .95rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.faq-amounts { display: grid; gap: .75rem; }
.faq-amounts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; }
.faq-amounts dd { color: var(--ink); font-weight: 730; font-variant-numeric: tabular-nums; }
.faq-amounts .faq-amount-note { flex-basis: 100%; color: var(--muted); font-weight: 400; font-variant-numeric: normal; }
@container page-content (max-width: 44rem) {
  .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financing-inner, .faq-inner { grid-template-columns: minmax(0, 1fr); }
  .faq-intro .button { margin-top: .8rem; }
}
@container page-content (max-width: 28rem) {
  .benefit-list, .financing-highlights { grid-template-columns: minmax(0, 1fr); }
}

.site-footer { background: var(--night); color: var(--ink); }
.footer-inner { min-height: 7rem; padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; font-size: .875rem; color: var(--muted); }
.footer-links a:hover { color: var(--leaf); }

dialog { width: min(calc(100% - 2rem), 34rem); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: 0 1.2rem 5rem #0009; max-height: calc(100dvh - 2rem); overflow: auto; }
dialog::backdrop { background: #000b; }
.close-dialog { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; background: var(--control); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 50%; }
.close-dialog::before, .close-dialog::after {
  content: '';
  grid-area: 1 / 1;
  width: .95rem;
  height: .125rem;
  border-radius: 1rem;
  background: currentColor;
}
.close-dialog::before { transform: rotate(45deg); }
.close-dialog::after { transform: rotate(-45deg); }
.dialog-content { padding: 1.3rem; }
.dialog-content h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.08; padding-right: 1.9rem; margin-bottom: .7rem; }
.dialog-content label { display: block; font-weight: 680; margin-bottom: .35rem; }
.dialog-content textarea { display: block; width: 100%; border-radius: .5rem; border: 1px solid var(--line-strong); padding: .6rem; margin-bottom: .7rem; resize: vertical; color: var(--ink); background: var(--paper); }
.copy-note:not(:empty) { color: var(--muted); margin-top: .5rem; }

#vehicle-dialog {
  --photo-surface: #0d1013;
  --panel-surface: #191d22;
  --panel-divider: #303944;
  --detail-padding: clamp(1rem, 2vw, 1.6rem);
  --dialog-height-limit: calc(100dvh - 2rem);
  width: min(calc(100% - 2rem), 30rem);
  max-width: none;
  max-height: var(--dialog-height-limit);
  border-color: var(--panel-divider);
  background: var(--panel-surface);
  overflow: hidden;
}
#vehicle-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
#vehicle-dialog.vehicle-dialog-with-gallery {
  --gallery-padding: .8rem;
  --gallery-photo-width: calc(min(67dvh, 38rem, var(--dialog-height-limit) - 7rem) * 4 / 3);
  --gallery-pane-width: calc(var(--gallery-photo-width) + 2 * var(--gallery-padding));
  width: min(calc(100% - 2.5rem), 74rem, calc(var(--gallery-pane-width) + 42rem + 2px));
}
#vehicle-dialog::backdrop { background: #07090bd9; backdrop-filter: blur(5px); }
.vehicle-dialog-layout { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.vehicle-dialog-dismiss { position: absolute; inset: .7rem .7rem auto auto; z-index: 2; }
.vehicle-dialog-dismiss .close-dialog, .gallery-step {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: #151b23e8;
  color: #fff;
  pointer-events: auto;
}
.vehicle-dialog-dismiss .close-dialog:hover, .gallery-step:hover { background: #354f6a; }
.vehicle-gallery { display: grid; min-width: 0; align-content: start; gap: .7rem; padding: var(--gallery-padding); background: var(--photo-surface); }
.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: .65rem;
  background: #090b0d;
}
.dialog-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-controls { position: absolute; inset: 0; pointer-events: none; }
.gallery-step { position: absolute; inset-block-start: 50%; transform: translateY(-50%); }
.gallery-previous { inset-inline-start: .65rem; }
.gallery-next { inset-inline-end: .65rem; }
.gallery-step::before { content: ''; width: .5rem; height: .5rem; border-top: 2px solid; border-right: 2px solid; transform: translateX(-.08rem) rotate(45deg); }
.gallery-previous::before { transform: translateX(.08rem) rotate(-135deg); }
.gallery-status {
  position: absolute;
  inset-inline-end: .65rem;
  inset-block-end: .65rem;
  display: grid;
  place-items: center;
  padding: .3rem .65rem;
  border-radius: 2rem;
  background: #11161ee8;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: center;
}
.gallery-options {
  --thumb-gap: .4rem;
  display: flex;
  gap: var(--thumb-gap);
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #596e84 transparent;
  padding-block: .15rem .4rem;
}
.gallery-options button {
  flex: 0 0 clamp(3.6rem, calc((100% - 8 * var(--thumb-gap)) / 9), 5.75rem);
  min-width: 0;
  padding: .14rem;
  border: 1px solid var(--panel-divider);
  border-radius: .45rem;
  background: var(--photo-surface);
  opacity: .8;
}
.gallery-options button:hover { opacity: 1; }
.gallery-options button[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected-fill); opacity: 1; }
.gallery-options button:focus-visible { outline-offset: -2px; }
.gallery-options img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .27rem; }
.vehicle-dialog-details { min-width: 0; min-height: 0; padding: 0; }
#dialog-title { margin: 0; padding: 1.175rem 3.75rem 1.175rem var(--detail-padding); font-size: clamp(1.25rem, 1.85vw, 1.75rem); line-height: 1.17; letter-spacing: -.025em; overflow-wrap: anywhere; }
#dialog-title:focus { outline: none; }
.dialog-title-viewport, .dialog-model > span { display: block; }
.dialog-model { overflow: hidden; white-space: nowrap; }
.dialog-model > span { overflow: hidden; text-overflow: ellipsis; }
.dialog-model:hover > span { animation-play-state: paused; }
.vehicle-dialog-scroll { padding: 0 var(--detail-padding) 1rem; }
.vehicle-dialog-scroll:focus-visible { outline-offset: -4px; }
.dialog-pricing { border: 1px solid #3c5068; border-radius: .7rem; background: #1c2530; }
.dialog-pricing > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .18rem .7rem; padding: .58rem .85rem; }
.dialog-pricing > div + div { border-top: 1px solid #3c5068; }
.dialog-pricing .dialog-otr { border-radius: .65rem .65rem 0 0; background: #243446; }
.dialog-pricing dt { color: #c2cedc; font-size: .83rem; font-weight: 650; }
.dialog-pricing dt .layout-copy::after { display: none; }
.dialog-pricing dd { color: #f1f6fe; font-size: clamp(.95rem, 1.2vw, 1.18rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dialog-pricing :is(.dialog-otr, .dialog-deposit, .dialog-total) dd { margin-inline-start: auto; }
.dialog-otr strong, .dialog-total strong { font-size: clamp(1.14rem, 1.55vw, 1.55rem); }
.dialog-monthly dd { display: grid; flex: 1 1 max-content; min-width: 0; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: .42rem; }
.dialog-monthly dd:has(.dialog-loan-term[hidden]) { display: flex; justify-content: flex-end; }
.dialog-term-divider { justify-self: center; color: #91a6bc; }
.dialog-loan-term .sort-toggle { anchor-name: --dialog-term-toggle; min-width: 6.25rem; min-height: 1.95rem; padding: .25rem 1.4rem .25rem .6rem; font-size: .79rem; }
#dialog-term-select { display: block; padding: .25rem .4rem; text-align: start; }
.dialog-loan-options:not(:popover-open) { display: none; }
.dialog-loan-options { position: fixed; position-anchor: --dialog-term-toggle; position-try-fallbacks: flip-block; inset: auto; top: anchor(bottom); left: anchor(left); width: anchor-size(width); max-height: min(15rem, (100dvh - 2.1rem) / 2); margin: 0; padding: 0; }
.dialog-loan-options .sort-option { min-height: 2.4rem; padding-inline: .6rem; font-size: .79rem; }
.dialog-pricing .dialog-total { border-radius: 0 0 .65rem .65rem; background: #243446; }
.dialog-price-note { margin: .5rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.dialog-specs { margin-block: 1rem 1.2rem; }
.dialog-specs h3 { font-size: 1rem; }
#dialog-facts { grid-template-columns: minmax(0, 1fr); gap: 0; margin: .25rem 0 0; padding: 0; border: 0; }
#dialog-facts > div { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .55rem 0; border-bottom: 1px solid var(--panel-divider); }
#dialog-facts dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
#dialog-facts .vehicle-specification { min-inline-size: 0; }
.dialog-booking-options, .dialog-test-drive { padding: .7rem .85rem; border: 1px solid var(--panel-divider); border-radius: .6rem; }
.dialog-booking-options dl > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem .6rem; padding-block: .65rem; font-size: .875rem; }
.dialog-booking-options dl > div + div { border-top: 1px solid var(--panel-divider); }
.dialog-booking-options dt, .dialog-booking-options dd { font-weight: 700; }
.dialog-booking-options .dialog-booking-note { grid-column: 1 / -1; color: var(--muted); font-weight: 400; }
.dialog-test-drive { container: test-drive-panel / inline-size; display: grid; gap: .65rem; }
.test-drive-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.test-drive-heading h3 { font-size: 1rem; }
.test-drive-heading .close-dialog { flex: none; width: 2.75rem; height: 2.75rem; background: var(--photo-surface); border-color: var(--panel-divider); }
.test-drive-heading .close-dialog:hover { background: var(--surface-hover); }
.test-drive-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.test-drive-fields label { display: grid; min-width: 0; gap: .3rem; margin: 0; color: var(--muted); font-size: .84rem; }
.test-drive-fields :is(input, select) { width: 100%; min-width: 0; min-height: 2.75rem; padding: .35rem .5rem; border: 1px solid #526071; border-radius: .55rem; color: var(--ink); background: #1c2530; font-size: 1rem; cursor: pointer; }
.test-drive-date-field { position: relative; display: grid; min-width: 0; }
.test-drive-date-field .buy-step-calendar { display: none; position: absolute; inset-block-start: 50%; inset-inline-end: .63rem; transform: translateY(-50%); pointer-events: none; }
@supports selector(input::-webkit-calendar-picker-indicator) {
  .test-drive-date-field input { position: relative; padding-inline-end: 1.85rem; }
  .test-drive-date-field input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
  .test-drive-date-field .buy-step-calendar { display: block; }
}
#test-drive-hours { color: var(--muted); font-size: .8rem; }
#test-drive-hours:empty { display: none; }
.test-drive-location { justify-self: start; padding-block: .25rem; color: var(--selected-ink); font-size: .875rem; text-decoration: underline; text-underline-offset: .17em; }
.test-drive-fields select:disabled { cursor: default; }
.test-drive-fields[data-pointer-picker] :is(input, select):focus-visible,
.test-drive-fields [data-picker-selected]:focus-visible { outline: none; }
.test-drive-fields :is([data-pointer-picker] input, input[data-picker-selected])::-webkit-datetime-edit-day-field:focus,
.test-drive-fields :is([data-pointer-picker] input, input[data-picker-selected])::-webkit-datetime-edit-month-field:focus,
.test-drive-fields :is([data-pointer-picker] input, input[data-picker-selected])::-webkit-datetime-edit-year-field:focus {
  background-color: transparent;
  color: inherit;
}
@media (width <= 50rem), (hover: none) and (pointer: coarse) {
  .test-drive-fields label { grid-template-rows: 1fr 3rem; -webkit-tap-highlight-color: transparent; }
  .test-drive-fields select, .test-drive-date-field { box-sizing: border-box; inline-size: 100%; block-size: 3rem; }
  .test-drive-date-field {
    display: block;
    overflow: hidden;
    border: 1px solid #526071;
    border-radius: .55rem;
    background: #1c2530;
  }
  /* iOS can add native date input padding beyond its declared width. */
  .test-drive-date-field input {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 100%;
    block-size: 100%;
    min-block-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
  }
  .test-drive-date-field input::-webkit-date-and-time-value { margin: 0; padding-inline: .5rem 1.85rem; text-align: start; }
  @supports not selector(input::-webkit-date-and-time-value) {
    .test-drive-date-field input::-webkit-datetime-edit { padding-inline: .5rem 1.85rem; }
  }
  .test-drive-date-field .buy-step-calendar { display: block; }
  .test-drive-date-field input:focus-visible { outline: none; }
  .test-drive-fields:not([data-pointer-picker]) .test-drive-date-field:has(input:focus-visible:not([data-picker-selected])) {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
  }
}
@container test-drive-panel (width < 16rem) {
  .test-drive-fields { grid-template-columns: minmax(0, 1fr); }
}
.dialog-inquiry label { font-size: .87rem; }
.dialog-inquiry textarea { min-height: 6.1rem; padding: .72rem; border-color: #526071; background: var(--photo-surface); font-size: .88rem; line-height: 1.45; }
.inquiry-copy, .booking-now { width: 100%; min-height: 2.65rem; border: 1px solid #abcbeb; border-radius: .55rem; background: #b5d1ed; color: #152337; }
.inquiry-copy:hover, .booking-now:enabled:hover { background: #d1e4f7; }
.vehicle-dialog-footer { container: vehicle-dialog-footer / inline-size; display: grid; grid-template-columns: max-content repeat(2, minmax(0, 1fr)); gap: .55rem; padding: .75rem var(--detail-padding); border-top: 1px solid var(--panel-divider); background: var(--panel-surface); }
.vehicle-share { display: grid; place-items: center; width: 2.75rem; min-height: 2.75rem; padding: 0; border: 1px solid var(--panel-divider); border-radius: .55rem; background: var(--photo-surface); color: var(--ink); }
.vehicle-share:hover { background: var(--surface-hover); }
.vehicle-share-icon { position: relative; width: 1rem; height: 1rem; transform: scale(1.18); }
.vehicle-share-icon::before, .vehicle-share-icon::after { content: ''; position: absolute; border: solid currentColor; }
.vehicle-share-icon::before { inset: .34rem .18rem .12rem .06rem; border-width: 1.6px 0 0 1.6px; border-start-start-radius: .6rem; }
.vehicle-share-icon::after { inset-block-start: .17rem; inset-inline-end: .1rem; width: .43rem; height: .43rem; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
:is(.booking-now, .test-drive-toggle) { min-width: 0; padding-inline: .5rem; font-size: .87rem; letter-spacing: .045em; white-space: nowrap; }
.test-drive-toggle { gap: .36rem; min-height: 2.65rem; border: 1px solid var(--selected-line); border-radius: .55rem; background: transparent; color: var(--selected-ink); }
.test-drive-toggle:is(:hover, [aria-expanded="true"]) { background: var(--selected-fill); }
.test-drive-toggle .buy-step-calendar { flex: none; width: .9rem; height: .9rem; }
:is(.booking-whatsapp, .test-drive-whatsapp)[href] { border-color: #8ee4be; background: #8ee4be; color: #102c20; }
:is(.booking-whatsapp, .test-drive-whatsapp)[href]:hover { background: #b1efd3; }
:is(.booking-now, .test-drive-toggle):is(:disabled, [aria-disabled="true"]) { border-color: var(--panel-divider); background: #252b31; color: var(--muted); cursor: default; }
.dialog-inquiry .copy-note { font-size: .84rem; }

@container vehicle-dialog-footer (width < 18.5rem) {
  .vehicle-dialog-footer :is(.booking-now, .test-drive-toggle) { padding-inline: .3rem; font-size: clamp(.68rem, 4cqi, .87rem); letter-spacing: .015em; }
  .test-drive-toggle { gap: .24rem; }
}

@media (width > 50rem) {
  #vehicle-dialog.vehicle-dialog-with-gallery {
    grid-template-columns: min(67%, calc(100% - 24rem), var(--gallery-pane-width)) minmax(0, 1fr);
  }
  .vehicle-dialog-with-gallery .vehicle-dialog-layout { display: contents; }
  .vehicle-dialog-with-gallery .vehicle-gallery { grid-area: 1 / 1 / span 2; }
  .vehicle-dialog-with-gallery .vehicle-dialog-details {
    grid-area: 1 / 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    contain: size;
    border-inline-start: 1px solid var(--panel-divider);
  }
  .vehicle-dialog-with-gallery .vehicle-dialog-scroll, .vehicle-dialog-with-gallery .vehicle-dialog-footer {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #62778b transparent;
  }
  .vehicle-dialog-with-gallery .vehicle-dialog-scroll { overflow-y: auto; overscroll-behavior-y: contain; }
  .vehicle-dialog-with-gallery .vehicle-dialog-footer { grid-area: 2 / 2; overflow-y: hidden; border-inline-start: 1px solid var(--panel-divider); }
  .vehicle-dialog-with-gallery:not(:has(.gallery-options:not([hidden]))) .vehicle-gallery { min-height: min(var(--dialog-height-limit), 25rem); }
}

@media (max-width: 50rem) {
  #vehicle-dialog.vehicle-dialog-with-gallery {
    --dialog-viewport: 100vh;
    --gallery-padding: 0rem;
    --gallery-photo-width: max(20rem, calc(var(--dialog-viewport) * .52 * 4 / 3));
    --dialog-height-limit: calc(var(--dialog-viewport) - .7rem);
    --detail-padding: 1rem;
    position: fixed;
    inset: auto 0 0;
    width: min(100%, 38rem, calc(var(--gallery-photo-width) + 2px));
    height: var(--dialog-height-limit);
    margin: 0 auto;
    border-radius: 1rem 1rem 0 0;
  }
  @supports (height: 100dvh) {
    #vehicle-dialog.vehicle-dialog-with-gallery { --dialog-viewport: 100dvh; }
  }
  .vehicle-dialog-with-gallery .vehicle-dialog-footer { padding-block-end: calc(.75rem + env(safe-area-inset-bottom, 0px)); }
  .vehicle-gallery { gap: .45rem; padding-block-end: .45rem; }
  .gallery-stage { border-radius: 0; }
  .gallery-options { padding-inline: .7rem; }
  .gallery-options button { flex-basis: 4.2rem; }
  .vehicle-dialog-with-gallery .vehicle-dialog-details { border-top: 1px solid var(--panel-divider); }
  .vehicle-dialog-with-gallery #dialog-title { padding-inline-end: var(--detail-padding); }
  .dialog-booking-options, .dialog-test-drive { scroll-margin-block-start: 3.75rem; }
  .dialog-inquiry textarea { min-height: 5rem; }
}

@media (max-width: 68rem) {
  .header-actions nav { display: none; }
}
@media (max-width: 58rem) {
  .wrap { width: calc(100% - 3rem); }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .header-inner { --header-search-share: clamp(11.5rem, calc(97.5vw - 26rem), 40vw); }
}
@media (max-width: 39rem), (hover: none) and (pointer: coarse) {
  .main-menu-options {
    --main-menu-viewport-height: 100vh;
    --main-menu-top: var(--main-menu-header-height, var(--header-height));
    z-index: 9;
    inset-block: var(--main-menu-top) auto;
    block-size: max(0px, calc(var(--main-menu-viewport-height) - var(--main-menu-top)));
    padding-block-end: max(.55rem, env(safe-area-inset-bottom, 0px));
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }
  @supports (height: 100dvh) {
    .main-menu-options { --main-menu-viewport-height: 100dvh; }
  }
}
@media (max-width: 39rem) {
  :root { --header-height: 5.6875rem; --main-menu-rail-width: 3.25rem; --main-menu-rail-inset: .25rem; --main-menu-tile-height: 2.625rem; --drawer-logo-width: 2.0625rem; --drawer-logo-height: 1.55rem; --drawer-type-scale: .54; --drawer-home-icon-size: 1.375rem; --main-menu-width: 9.75rem; }
  .wrap { width: calc(100% - 2rem); }
  .header-start { gap: clamp(1.5rem, 6vw, 1.625rem); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--main-menu-tile-height) auto; gap: .11rem .7rem; padding-block: .2rem .35rem; }
  .main-menu-open .main-menu-options { --drawer-entry-padding: .25rem; --drawer-label-padding: .3rem; --drawer-entry-gap: .26rem; grid-template-columns: minmax(0, 1fr); padding-inline: var(--main-menu-rail-inset); }
  .header-actions { --header-action-gap: .45rem; --location-button-gap: .32rem; grid-column: 2; grid-row: 1; }
  .button-location { padding-inline: .6rem; line-height: 1; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .header-search input { font-size: 1rem; }
  .brand-options { grid-auto-columns: 6.15rem; }
  .brand-options.is-expanded { grid-template-columns: repeat(auto-fill, minmax(6.15rem,1fr)); }
  .stock-pagination {
    grid-template-areas: 'numbers numbers' 'previous next';
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 26rem);
    margin-inline: auto;
  }
  .stock-pagination .page-step { width: 6.5rem; }
  #page-prev { justify-self: end; }
  #page-next { justify-self: start; }
  .page-number { min-width: 2.15rem; }
  .page-numbers { gap: .2rem; }
}
@media (max-width: 34rem) {
  .stock-grid { grid-template-columns: 1fr; gap: .85rem; }
}
@media (max-width: 27rem) {
  .filter-type-choice { font-size: .8125rem; }
}
@media (max-width: 25.5rem) {
  .header-start { gap: clamp(1.25rem, 5.8vw, 1.375rem); }
  .site-header .brand { font-size: .875rem; }
  .site-header .brand-logo { width: 4.1rem; }
  .button-language { gap: .25rem; padding-inline: .38rem; font-size: .75rem; }
  #language-indicator { width: 1.1rem; }
}
@media (max-width: 23rem) {
  .header-inner { padding-inline-end: .5rem; }
  .header-start { gap: .5rem; }
  .site-header .brand { font-size: .84rem; }
  .header-actions { --header-action-gap: .42rem; --location-button-gap: .28rem; }
  .button-location { gap: .28rem; padding-inline: .4rem; font-size: .75rem; }
}
@media (max-width: 22.5rem) {
  .inventory { --filter-tile-size: 4.8rem; }
}
@container drawer (max-width: 10rem) {
  .main-menu-open .drawer-home { font-size: .78rem; }
  .main-menu-open .main-menu-options :is(.brand-filter, .drawer-type-choice, .drawer-reset) { font-size: .77rem; }
}
@container page-content (max-width: 58rem) {
  .page-content .wrap { width: calc(100% - 2rem); }
  .page-content .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container page-content (max-width: 43rem) {
  .page-content .filters { padding: .65rem; }
}
@container page-content (max-width: 39rem) {
  .hero { --hero-image-width: 100%; --hero-image-height: clamp(7rem, 58cqi, 18rem); }
  .hero::after { inset: 0 0 auto; height: var(--hero-image-height); background: linear-gradient(0deg, var(--hero-surface), transparent 44%); }
  .hero-inner { min-height: auto; padding-block: calc(var(--hero-image-height) + .45rem) 1.5rem; }
  .hero-copy { width: 100%; }
  .hero-display { font-size: clamp(1.85rem, 7.8cqi, 3.5rem); }
  .hero-actions .button { padding-inline: .66rem; }
  .page-content .stock-pagination { grid-template-areas: 'numbers numbers' 'previous next'; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 26rem); margin-inline: auto; }
  .page-content .stock-pagination .page-step { width: min(100%, 6.5rem); padding-inline: .3rem; }
  .page-content #page-prev { justify-self: end; }
  .page-content #page-next { justify-self: start; }
}
@container page-content (max-width: 34rem) {
  .page-content .stock-grid { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .buying-path > span:not(.mobile-brands-title) { display: none; }
  .buying-path > .mobile-brands-title { display: inline-flex; }
  .page-content .inventory .brand-toolbar { margin-block-end: 0; }
  .page-content .inventory .filters { margin-block-start: .45rem; }
  .page-content .vehicle-details { order: -1; margin: 0 0 .65rem; padding: 0; border: 0; }
  .page-content .vehicle-certified { order: 1; margin-block-start: .65rem; }
  .page-content .vehicle-meta { margin-block-start: .15rem; }
}
@container page-content (max-width: 25rem) {
  .page-content .wrap { width: calc(100% - 1.25rem); }
  .page-content .brand-toolbar { flex-wrap: wrap; gap: var(--brand-edge-gap) .5rem; }
  .page-content .vehicle-payment { display: grid; justify-items: start; }
  .page-content .vehicle-tags { max-width: 100%; margin-inline-start: 0; }
  .page-content .card-body { padding: .78rem; }
  .page-content .empty { padding: 1rem .65rem; }
  .page-content #reset { max-width: 100%; padding-inline: .5rem; }
}
@container page-content (max-width: 13.25rem) {
  .page-content .vehicle-certified { max-width: 100%; gap: .3rem; padding-inline: .3rem; font-size: .75rem; overflow-wrap: anywhere; }
  .page-content .vehicle-certified::before { flex: none; }
  .page-content .stock-pagination { grid-template: 'numbers' auto 'previous' auto 'next' auto / minmax(0, 1fr); }
  .page-content #page-prev, .page-content #page-next { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .dialog-model.card-title-overflow > span { width: auto; animation: none; }
  #dialog-facts .vehicle-specification { white-space: normal; }
}
