:root {
    font-family: Inter, system-ui, sans-serif;
    color-scheme: light;
    color: var(--text);
    background: var(--page);
    --text: #111c27;
    --page: #fff;
    --muted: #4b5c70;
    --border: #e0e6ee;
    --surface: #f4f6f9;
    --subtle: #f6f8fb;
    --avatar-bg: #e9edf2;
    --coverflow-bg: radial-gradient(ellipse at 50% 75%, #e4eaf2, #f7f9fc 72%);
    --coverflow-shadow: #0f172a26;
    --red: #bf0b1b;
    --accent: var(--red);
    --navy: #101e2b;
    --card-shadow: 0 4px 12px #1c345108;
    scroll-behavior: smooth;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --text: #eef2f8;
    --page: #111827;
    --muted: #bbc7d7;
    --border: #374458;
    --surface: #1d293b;
    --subtle: #172235;
    --avatar-bg: #34445b;
    --coverflow-bg: radial-gradient(ellipse at 50% 75%, #28374c, #172235 72%);
    --coverflow-shadow: #0008;
    --accent: #ff8591;
    --card-shadow: 0 4px 12px #0002;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #e32f41; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
svg { width: 1.25rem; height: 1.25rem; flex: none; }
.wrap { width: min(100% - 2rem, 73rem); margin-inline: auto; }
.sr-only:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--border); background: var(--page); }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5rem; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: .7rem; text-decoration: none; }
.brand-identity { display: grid; flex: 0 1 auto; justify-items: center; gap: .15rem; max-width: 8rem; text-align: center; overflow-wrap: anywhere; color: var(--accent); border-inline-end: 1px solid var(--border); padding-inline-end: .8rem; }
.brand-identity svg { width: 2.2rem; height: 2.2rem; }
.brand-identity img { display: block; width: 3rem; height: 2.2rem; object-fit: contain; }
.brand-identity .showroom-brand-icon { border-radius: .5rem; }
.agent-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: .65rem; background: var(--avatar-bg); color: var(--text); font-weight: 800; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand-identity strong { font-size: .74rem; }
.brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.brand > span:last-child strong { font-size: 1rem; font-weight: 750; line-height: 1.2; }
.brand small { color: var(--muted); margin-top: .2rem; font-size: .75rem; }
.header-content nav { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .15rem; }
.header-content nav a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .6rem; border-radius: .5rem; font-size: .82rem; font-weight: 650; text-decoration: none; }
.header-content nav a:hover, .header-content nav .home-link { color: var(--accent); background: var(--surface); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-inline-start: auto; }
.theme-toggle { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--page); color: var(--text); font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; }
.theme-toggle[hidden], .theme-toggle .theme-sun, .theme-toggle[aria-pressed="true"] .theme-moon { display: none; }
.theme-toggle[aria-pressed="true"] .theme-sun { display: block; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(25rem, 38vw, 34rem);
    display: grid;
    align-items: center;
    padding-block: clamp(3rem, 7vw, 5.5rem);
    color: #fff;
    background: linear-gradient(90deg, #081221f5, #081221b8 37%, #08122114 74%), var(--navy) url('hero.webp') 62% 68% / cover no-repeat;
}
.hero::after { content: ''; position: absolute; inset: auto auto 0 0; width: min(25rem, 60%); height: 4rem; background: linear-gradient(20deg, #c81024, #8a08181a); clip-path: polygon(0 18%, 100% 100%, 0 100%); z-index: -1; }
.hero-photo, .promo-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-slide { opacity: 0; object-position: 52% 67%; transition: opacity .45s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide-controls { position: absolute; display: flex; gap: .3rem; inset: auto 0 0; padding-inline: .5rem; }
.hero-slide-controls[hidden] { display: none; }
.hero-slide-controls button { display: grid; flex: 1; align-items: end; min-height: 2.75rem; padding: 0 0 .4rem; background: transparent; border: 0; cursor: pointer; }
.hero-slide-controls button::after { content: ''; height: .2rem; background: #ffffff85; }
.hero-slide-controls button[aria-current]::after { background: #fff; }
.hero-slide-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.hero-slide-controls [data-hero-slide-playback] { flex: 0 0 2.75rem; place-items: center; padding: 0; color: #fff; }
.hero-slide-controls [data-hero-slide-playback]::after,
.hero-slide-pause, [data-hero-slide-playback][data-playing] .hero-slide-play { display: none; }
[data-hero-slide-playback][data-playing] .hero-slide-pause { display: block; }
.hero-slide-controls svg { width: 1.15rem; height: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero:has(.hero-photo) { background: #101e2b; }
.hero:has(.hero-photo)::before, .promo-banner:has(.promo-photo)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #081221f5, #081221bf 36%, #08122130 78%); }
.hero-copy { max-width: 32rem; }
.hero h1 { font-size: clamp(2.35rem, 5.1vw, 4.35rem); font-weight: 820; font-style: italic; line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; text-wrap: balance; }
.hero h1 em { color: #ff6472; }
.hero p { margin-top: 1.1rem; max-width: 29rem; color: #edf1f6; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.actions { margin-top: 1.45rem; display: flex; gap: .65rem; flex-wrap: wrap; }
.button { display: inline-flex; gap: .5rem; min-height: 2.75rem; justify-content: center; align-items: center; padding: .65rem .95rem; border-radius: .55rem; border: 1px solid transparent; color: white; background: var(--red); text-align: center; text-decoration: none; font-size: .85rem; font-weight: 700; transition: background-color .16s, border-color .16s, color .16s; }
.button:hover { background: #9c0815; }
.button-outline { background: #0b142588; border-color: #ffffff92; }
.button-outline:hover { background: #17283a; }
.button-light { color: var(--accent); background: transparent; border-color: var(--accent); }
.button-light:hover { color: #fff; background: var(--red); }

.feature-strip { background: var(--subtle); }
.feature-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: .85rem; }
.highlight { display: flex; gap: .75rem; padding: .4rem .8rem; align-items: center; overflow-wrap: anywhere; }
.highlight + .highlight { border-inline-start: 1px solid var(--border); }
.feature-strip svg { color: var(--accent); width: 1.8rem; height: 1.8rem; }
.feature-strip strong, .feature-strip small { display: block; }
.feature-strip small { margin-top: .2rem; color: var(--muted); }

.listings, .contact { padding-block: clamp(2rem, 4.5vw, 3.2rem); }
.listings h2, .contact h2, .promo-banner h2, .showroom-gallery h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 750; letter-spacing: -.042em; line-height: 1.15; }
.listings h2::after { content: ''; display: block; width: 2.25rem; height: .18rem; background: var(--accent); margin-top: .55rem; border-radius: 1rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }
.section-heading a { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); text-decoration: none; font-size: .85rem; font-weight: 750; }
.vehicle-grid { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.vehicle-categories { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; }
.vehicle-categories a { display: inline-flex; align-items: center; min-height: 2.65rem; padding: .5rem .8rem; border: 1px solid var(--border); border-radius: 2rem; background: var(--page); color: var(--text); font-size: .82rem; font-weight: 650; text-decoration: none; }
.vehicle-categories a:hover { border-color: var(--accent); color: var(--accent); }
.vehicle-categories a[aria-current="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.vehicle-filters { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.2fr) auto; align-items: end; gap: .7rem; margin-top: .85rem; padding: .9rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--subtle); }
.vehicle-filters label { display: grid; gap: .35rem; min-width: 0; font-size: .85rem; font-weight: 650; }
.vehicle-filters :is(input, select) { width: 100%; min-height: 2.65rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: .45rem; background: var(--page); color: var(--text); font: inherit; }
.vehicle-filters :is(input, select, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vehicle-filter-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vehicle-filter-actions .button { min-height: 2.65rem; }
.vehicle-filter-actions button { cursor: pointer; }
.vehicle-results-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.vehicle-results-bar a { color: var(--accent); font-weight: 650; }
.vehicle-results { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: .7rem; }
.vehicle-no-results { margin-top: .75rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: .85rem; background: var(--subtle); color: var(--muted); text-align: center; }
.vehicle-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border-radius: .9rem; background: var(--page); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.vehicle-card:focus-within { border-color: var(--accent); }
.vehicle-card img, .vehicle-placeholder { width: 100%; aspect-ratio: 1.72; display: block; object-fit: contain; background: var(--surface); }
.vehicle-placeholder { display: grid; align-content: center; justify-items: center; gap: .5rem; color: var(--muted); font-size: .8rem; }
.vehicle-placeholder svg { width: 3rem; height: 3rem; }
.vehicle-info { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem; overflow-wrap: anywhere; }
.vehicle-info h3 { font-size: 1rem; line-height: 1.3; }
.vehicle-info p, .empty { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.vehicle-info strong { color: var(--accent); font-size: 1.15rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.vehicle-info strong span { font-size: .78rem; font-weight: 500; }
.vehicle-details-link { align-self: stretch; margin-top: auto; }
.vehicle-results .vehicle-card-image { padding: clamp(.35rem, 1vw, .75rem); background: var(--surface); }
.vehicle-results .vehicle-card-image img { aspect-ratio: 1.9; }
.vehicle-results .vehicle-info { gap: .5rem; padding: clamp(.8rem, 2vw, 1.25rem); }
.vehicle-results .vehicle-info h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -.025em; }
.vehicle-results .vehicle-details-link { justify-content: space-between; }
.vehicle-results .vehicle-info strong { margin-bottom: .3rem; }
.vehicle-reference-note { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.pagination { margin-top: 1rem; display: flex; justify-content: center; gap: 1rem; }

.promo-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 10rem; color: #fff; padding: 1.6rem 2rem; border-radius: .85rem; background: linear-gradient(109deg, #790917 0 33%, #b40b1c9c 33% 52%, #a60d20cf 68%, #8d0a19 82%), #a50a1c url('hero.webp') 95% 69% / 74% auto no-repeat; }
.promo-banner p { margin-top: .4rem; white-space: pre-line; overflow-wrap: anywhere; }
.promo-banner .button { margin-top: .75rem; border-color: #ff8190; }
.promo-banner:has(.promo-photo) { position: relative; isolation: isolate; overflow: hidden; background: #a50a1c; }
.promo-banner:has(.promo-photo)::before { background: linear-gradient(90deg, #650410f0, #65041080); }
.promo-feature { max-width: 44%; font-size: clamp(1.05rem, 3vw, 2.5rem); line-height: 1.05; font-weight: 850; text-transform: uppercase; font-style: italic; }
.promo-grid { list-style: none; margin-bottom: 0; padding: 0; }
.promo-grid p { white-space: pre-line; }
.contact-panel { display: grid; align-items: start; gap: 1.4rem; padding: clamp(.9rem, 2.5vw, 1.5rem) clamp(1rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: 1rem; background: var(--subtle); }
.contact-intro h2::after { content: ''; display: block; width: 2.5rem; height: .2rem; margin-top: .65rem; border-radius: 1rem; background: var(--accent); }
.contact-agent { display: flex; gap: .8rem; align-items: center; margin-top: 1.25rem; overflow-wrap: anywhere; }
.contact-agent .agent-avatar { width: 3.25rem; height: 3.25rem; border-radius: 50%; }
.contact-agent p { margin-top: .2rem; color: var(--muted); font-size: .875rem; }
.contact-links { display: grid; gap: .65rem; list-style: none; margin: 0; padding: 0; }
.contact-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--page); color: var(--text); text-decoration: none; }
.contact-links a:hover { border-color: var(--accent); }
.contact-links a:hover .contact-link-copy span { text-decoration: underline; }
.contact-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: var(--subtle); color: var(--accent); }
.contact-links li:first-child .contact-icon { background: color-mix(in srgb, var(--accent) 12%, var(--page)); }
.contact-link-copy { display: grid; gap: .2rem; overflow-wrap: anywhere; font-size: .875rem; }
.contact-link-copy span, .contact-empty { color: var(--muted); }
.contact-arrow { width: 1rem; height: 1rem; color: var(--accent); }
.contact .agent-about { margin-top: 1rem; max-width: 45ch; color: var(--muted); line-height: 1.55; text-align: justify; overflow-wrap: anywhere; }
@media (min-width: 48rem) {
    .contact-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.showroom-promos { margin-top: clamp(1.15rem, 3vw, 2rem); }
.showroom-gallery { padding-bottom: 2.35rem; }
.gallery-count { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1.7rem) / 3); gap: .85rem; margin-top: .9rem; padding-bottom: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery-track:has(> figure:first-child:nth-last-child(2)) { grid-auto-columns: 60%; }
@media (min-width: 52.01rem) {
    .gallery-track:has(> figure:first-child:nth-last-child(3)) { grid-auto-columns: 38%; }
}
.gallery-track figure { position: relative; isolation: isolate; min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: .8rem; overflow: hidden; scroll-snap-align: start; background: var(--surface); }
.gallery-photo-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.8); transform: scale(1.18); z-index: -1; }
.gallery-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.gallery-track.gallery-coverflow {
    position: relative;
    display: grid;
    place-items: center;
    grid-template: 1fr / 1fr;
    height: clamp(12rem, 43vw, 29rem);
    overflow: clip;
    perspective: 1000px;
    padding: 0;
    scroll-snap-type: none;
    background: var(--coverflow-bg);
    border-radius: 1rem;
}
.gallery-coverflow figure {
    position: absolute;
    width: min(64%, 43rem);
    height: 82%;
    border-color: var(--border);
    background: var(--surface);
    box-shadow: 0 12px 32px var(--coverflow-shadow);
    transform: translateX(var(--gallery-x, 0)) translateZ(var(--gallery-depth, 0)) rotateY(var(--gallery-tilt, 0deg));
    transition: transform .55s cubic-bezier(.22, .68, .22, 1), opacity .35s ease, visibility .35s;
    opacity: .72;
}
.gallery-coverflow .gallery-photo { height: 100%; }
.gallery-coverflow [data-position="0"] { z-index: 2; opacity: 1; }
.gallery-coverflow [data-position="-1"] { --gallery-x: -58%; --gallery-depth: -160px; --gallery-tilt: 37deg; z-index: 1; }
.gallery-coverflow [data-position="1"] { --gallery-x: 58%; --gallery-depth: -160px; --gallery-tilt: -37deg; z-index: 1; }
.gallery-coverflow [data-position="-1"] .gallery-photo { object-position: left center; }
.gallery-coverflow [data-position="1"] .gallery-photo { object-position: right center; }
.gallery-coverflow [data-position="-2"] { --gallery-x: -85%; --gallery-depth: -260px; opacity: 0; visibility: hidden; }
.gallery-coverflow [data-position="2"] { --gallery-x: 85%; --gallery-depth: -260px; opacity: 0; visibility: hidden; }
.agent-about { white-space: pre-line; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.5rem; color: var(--muted); padding-block: 1.2rem; border-top: 1px solid var(--border); font-size: .85rem; overflow-wrap: anywhere; }
.site-footer:has(+ .showroom-chat) { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
.showroom-chat {
    --chat-accent: #126c43;
    --chat-accent-hover: #0c5232;
    position: fixed;
    z-index: 5;
    inset-block-end: calc(.85rem + env(safe-area-inset-bottom));
    inset-inline-end: calc(.85rem + env(safe-area-inset-right));
}
.showroom-chat > summary {
    border-radius: 999px;
    background: var(--chat-accent);
    box-shadow: 0 3px 14px #08122150;
    cursor: pointer;
}
.showroom-chat > summary::-webkit-details-marker { display: none; }
.showroom-chat > summary:hover { background: var(--chat-accent-hover); }
.showroom-chat > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.showroom-chat svg { width: 1.2rem; height: 1.2rem; }
.showroom-chat-panel {
    position: absolute;
    inset: auto 0 calc(100% + .55rem) auto;
    display: flex;
    flex-direction: column;
    width: min(23rem, calc(100vw - 1.7rem - env(safe-area-inset-right) - env(safe-area-inset-left)));
    height: min(28rem, calc(100dvh - 5rem - env(safe-area-inset-bottom)));
    overflow: hidden;
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    box-shadow: 0 16px 40px #08122140, 0 3px 10px #0812211a;
    color: var(--text);
}
@supports (backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px)) {
    .showroom-chat-panel {
        background: color-mix(in srgb, var(--page) 89%, transparent);
        -webkit-backdrop-filter: blur(18px) saturate(135%);
        backdrop-filter: blur(18px) saturate(135%);
    }
}
@media (prefers-reduced-transparency: reduce) {
    .showroom-chat-panel { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.showroom-chat-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: .65rem;
    padding: .7rem .75rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(125deg, #26845320, transparent 78%);
}
.showroom-chat-header .agent-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.showroom-chat-panel h2 { min-width: 0; flex: 1; font-size: .94rem; line-height: 1.3; overflow-wrap: anywhere; }
.showroom-chat-header-actions { display: flex; flex: none; gap: .1rem; }
.showroom-chat-header-button {
    display: grid;
    flex: 0 0 2.75rem;
    place-items: center;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.showroom-chat-header-button:hover { background: var(--surface); color: var(--text); }
.showroom-chat-expand-icon,
[data-toggle-chat-size][aria-expanded="false"] .showroom-chat-minimize-icon { display: none; }
[data-toggle-chat-size][aria-expanded="false"] .showroom-chat-expand-icon { display: block; }
.showroom-chat-content { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.showroom-chat-content[hidden] { display: none; }
.showroom-chat-panel:has(.showroom-chat-content[hidden]) { height: auto; }
.showroom-chat-panel:has(.showroom-chat-content[hidden]) .showroom-chat-header { border-bottom: 0; }
.showroom-chat-transcript { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.showroom-chat-messages { flex: 1; min-height: 0; padding: .9rem .75rem; overflow-y: auto; overscroll-behavior: contain; }
.showroom-chat-message { width: fit-content; max-width: 88%; margin-bottom: .55rem; border-radius: .85rem .85rem .85rem .28rem; border: 1px solid var(--border); background: var(--surface); padding: .55rem .7rem; font-size: .86rem; line-height: 1.45; overflow-wrap: anywhere; }
.showroom-chat-message.is-visitor { margin-inline-start: auto; border-color: transparent; border-radius: .85rem .85rem .28rem .85rem; background: var(--chat-accent); color: #fff; }
.showroom-chat-message strong { display: block; font-size: .7rem; font-weight: 750; }
.showroom-chat-message p { margin-top: .15rem; white-space: pre-wrap; }
.showroom-chat-status { padding: 0 .8rem .55rem; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.showroom-chat-messages:empty + .showroom-chat-status:not(:empty) { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; pointer-events: none; }
.showroom-chat-status:empty { display: none; }
.showroom-chat-form { display: flex; flex: 0 0 auto; align-items: center; gap: .45rem; padding: .6rem .75rem .7rem; border-top: 1px solid var(--border); }
.showroom-chat-form textarea { min-width: 0; flex: 1; resize: none; border: 1px solid var(--border); border-radius: .7rem; padding: .55rem .65rem; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.3; }
.showroom-chat-panel :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.showroom-chat-form button { gap: .35rem; padding-inline: .65rem; border-radius: .7rem; background: var(--chat-accent); cursor: pointer; }
.showroom-chat-form button:hover { background: var(--chat-accent-hover); }
.showroom-chat-form button:disabled { cursor: default; opacity: .55; }
.showroom-chat-form[hidden], .showroom-chat-profile[hidden] { display: none; }
.showroom-chat-profile { display: grid; flex: 0 0 auto; gap: .45rem; padding: .6rem .75rem; border-top: 1px solid var(--border); }
.showroom-chat-profile label { display: grid; gap: .2rem; font-size: .8rem; }
.showroom-chat-profile input { width: 100%; min-height: 2.4rem; padding: .35rem .5rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.showroom-chat-profile p { color: var(--muted); font-size: .7rem; }

@media (max-width: 65rem) {
    .header-content { flex-wrap: wrap; padding-block: .75rem; }
    .header-content nav { order: 3; width: 100%; }
}

@media (max-width: 52rem) {
    .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vehicle-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vehicle-filters .vehicle-search { grid-column: 1 / -1; }
    .vehicle-filter-actions .button { width: 100%; }
    .gallery-track { grid-auto-columns: calc((100% - .85rem) / 2); }
    .feature-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .highlight:nth-child(odd) { border-inline-start: 0; }
}

@media (max-width: 36rem) {
    .wrap { width: calc(100% - 1.5rem); }
    .header-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; }
    .brand { gap: .55rem; }
    .brand-identity { padding-inline-end: .55rem; }
    .header-content nav { order: 0; padding-block: .2rem; border-block: 1px solid var(--border); }
    .header-content nav a { flex: 1 0 auto; justify-content: center; min-height: 2.75rem; padding-inline: .42rem; font-size: .8rem; }
    .header-content nav a:focus-visible { outline-offset: -2px; }
    .header-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; margin-inline-start: 0; }
    .header-button { min-width: 0; overflow-wrap: anywhere; }
    .hero { min-height: 22rem; background-position: 68% center; padding-block: 2.5rem; background-image: linear-gradient(90deg, #081221f2, #0812219c), url('hero.webp'); }
    .hero:has(.hero-photo)::before { background: linear-gradient(90deg, #081221f2, #0812219c); }
    .actions > .button { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
    .vehicle-filters :is(input, select) { min-height: 2.75rem; font-size: 1rem; }
    .vehicle-filter-actions > .button { flex: 1 1 7rem; min-height: 2.75rem; }
    .feature-strip .wrap { grid-template-columns: 1fr; gap: .65rem; }
    .highlight + .highlight { border-inline-start: 0; }
    .promo-banner { display: block; padding: 1.25rem; }
    .promo-feature { max-width: none; }
    .gallery-track { grid-auto-columns: 85%; }
    .gallery-track:has(> figure:first-child:nth-last-child(2)) { grid-auto-columns: 85%; }
    .gallery-coverflow figure { width: 78%; height: 79%; }
}

@media (max-width: 25rem) {
    .vehicle-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    .gallery-coverflow figure, .button { transition: none; }
}
