/**
 * ZoomShop Inventory — frontend styles.
 * Clean, trust-building automotive-retail aesthetic.
 */

.zs-search,
.zs-detail,
.zs-saved,
.zs-compare,
.zs-reviews,
.zs-strip,
.zs-seo-links {
	--zs-bg:        #ffffff;
	--zs-surface:   #ffffff;
	--zs-muted:     #f4f6f9;
	--zs-line:      #e3e8ef;
	--zs-ink:       #16202c;
	--zs-ink-soft:  #5a6b7b;
	--zs-brand:       #000000;   /* Default brand — primary actions & headings. Themes override via --zs-brand. */
	--zs-brand-hover: #1c1c1c;
	--zs-brand-ink:   #ffffff;
	--zs-accent:      #52c8e5;   /* Default accent — highlights & brand pop. Themes override via --zs-accent. */
	--zs-accent-deep: #0c7a99;   /* legible cyan for text/links on white */
	--zs-good:        #1a7f4b;
	--zs-danger:      #d11e2a;   /* errors only */
	--zs-heart:       #e4002b;   /* saved/favorite heart */
	--zs-gold:        #c9a227;   /* new-listing badge / accents */
	/* Sale Pending stamp. Themes restyle it through these, never by editing
	   .zs-pending itself. --zs-pending-tilt is the whole "rubber stamp" idea,
	   so a theme that wants a flat ribbon sets it to 0deg. */
	--zs-pending-bg:    rgba(184, 22, 30, .93);
	--zs-pending-ink:   #ffffff;
	--zs-pending-ring:  rgba(255, 255, 255, .85);
	--zs-pending-tilt:  -9deg;
	--zs-pending-font:  var(--zs-font);
	--zs-radius:    14px;
	--zs-radius-sm: 9px;
	--zs-shadow:    0 1px 2px rgba(16,32,44,.06), 0 6px 18px rgba(16,32,44,.06);
	--zs-shadow-lg: 0 10px 40px rgba(16,32,44,.14);
	--zs-font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	font-family: var(--zs-font);
	color: var(--zs-ink);
	box-sizing: border-box;
}
.zs-search *,
.zs-detail *,
.zs-saved *,
.zs-compare *,
.zs-reviews *,
.zs-strip * { box-sizing: border-box; }

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
.zs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	padding: .8em 1.25em;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform .08s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
	white-space: nowrap;
}
.zs-btn:active { transform: translateY(1px); }
.zs-btn--primary { background: var(--zs-brand); color: var(--zs-brand-ink); }
.zs-btn--primary:hover { background: var(--zs-brand-hover); box-shadow: var(--zs-shadow); color:#fff; }
.zs-btn--ghost { background: #fff; color: var(--zs-brand); border-color: var(--zs-line); }
.zs-btn--ghost:hover { border-color: var(--zs-brand); }
.zs-btn--block { width: 100%; }

.zs-muted { color: var(--zs-ink-soft); font-size: .9rem; }

/* ------------------------------------------------------------------ */
/* Grid + cards                                                       */
/* ------------------------------------------------------------------ */
.zs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	gap: 14px;
}
.zs-grid--scroll {
	display: grid;
	grid-template-columns: none; /* override .zs-grid's explicit 232px columns so the auto-columns below actually apply */
	grid-auto-flow: column;
	grid-auto-columns: minmax(290px, 300px); /* match the search-page card width */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
}
.zs-grid--scroll .zs-card { scroll-snap-align: start; }

.zs-card {
	background: var(--zs-surface);
	border: 1px solid var(--zs-line);
	border-radius: var(--zs-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--zs-shadow);
	transition: transform .12s ease, box-shadow .15s ease;
	position: relative; /* so the raised z-index on tooltip hover applies */
}
.zs-card:hover { transform: translateY(-3px); box-shadow: var(--zs-shadow-lg); }
.zs-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--zs-muted); }
.zs-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-card__imglink { display: block; height: 100%; }

.zs-card__badges {
	position: absolute; top: 10px; left: 10px;
	display: flex; flex-wrap: wrap; gap: 6px; max-width: 80%;
}
.zs-badge {
	font-size: .7rem; font-weight: 700; letter-spacing: .04em;
	padding: .32em .6em; border-radius: 6px; color: #fff; background: var(--zs-brand);
	text-transform: uppercase;
}
.zs-badge--new { background: var(--zs-gold); color: #fff; }
.zs-badge--cpo { background: var(--zs-brand); }
.zs-badge--ev  { background: #0a8f5b; }
.zs-badge--4x4,
.zs-badge--awd { background: #34465a; }

/* Badges relocated under the price: in normal flow, not over the image. */
.zs-card__badges--under {
	position: static; max-width: none; margin-top: 2px;
	display: flex; flex-wrap: wrap; gap: 6px;
}

.zs-fav {
	position: absolute; top: 10px; right: 10px;
	width: 38px; height: 38px; border-radius: 50%;
	border: none; background: rgba(255,255,255,.92);
	display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	transition: transform .1s ease, background .15s ease;
}
.zs-fav:hover { transform: scale(1.08); }
.zs-fav svg { fill: none; stroke: #44525f; stroke-width: 1.7; }
.zs-fav.is-active svg { fill: var(--zs-heart); stroke: var(--zs-heart); }
.zs-fav--lg { width: 46px; height: 46px; }

.zs-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.zs-card__dealerbar {
	margin: 12px -16px -16px; /* span to the card edges, sit flush at the bottom */
	padding: 8px 16px;
	background: var(--zs-muted, #f6f7f9);
	border-top: 1px solid var(--zs-line);
	color: var(--zs-ink-soft);
	font-size: .74rem; line-height: 1.3;
	display: flex; align-items: center; gap: 5px;
}
.zs-card__dealerbar svg { flex: none; opacity: .7; }
.zs-card__dealerbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-card__title { font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.25; }
.zs-card__title a { color: var(--zs-ink); text-decoration: none; }
.zs-card__title a:hover { color: var(--zs-brand); }
.zs-card__meta { font-size: .85rem; color: var(--zs-ink-soft); display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.zs-card__meta > span:not(:last-child)::after { content: "\00b7"; margin-left: 6px; color: var(--zs-line); font-weight: 700; }
.zs-card__stock { font-variant-numeric: tabular-nums; }
.zs-card__price { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.zs-card__price strong { font-size: 1.3rem; }
.zs-card__est { font-size: .8rem; color: var(--zs-ink-soft); }

.zs-prequal {
	background: var(--zs-muted);
	border: 1px dashed var(--zs-line);
	border-radius: var(--zs-radius-sm);
	padding: 10px 12px;
	display: flex; flex-direction: column; gap: 8px;
	font-size: .82rem; color: var(--zs-ink-soft);
}
.zs-prequal__btn {
	align-self: flex-start;
	font-weight: 700; font-size: .82rem;
	color: #001318; text-decoration: none; font-weight: 700;
	background: var(--zs-accent);
	border: 1.5px solid var(--zs-accent); border-radius: 999px;
	padding: .5em 1em;
}
.zs-prequal__btn:hover { background: #3bb6d6; border-color: #3bb6d6; color: #001318; }

.zs-card__actions {
	margin-top: auto; padding-top: 6px;
	display: flex; align-items: center; justify-content: space-between;
	border-top: 1px solid var(--zs-line);
}
.zs-compare-toggle { font-size: .82rem; color: var(--zs-ink-soft); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.zs-share { background: none; border: none; cursor: pointer; color: var(--zs-ink-soft); padding: 6px; border-radius: 8px; }
.zs-share:hover { background: var(--zs-muted); color: var(--zs-brand); }
.zs-share svg { fill: currentColor; }

/* ------------------------------------------------------------------ */
/* Search layout                                                      */
/* ------------------------------------------------------------------ */
.zs-search { margin: 0 auto; padding: 20px 26px 60px; }
.zs-search__bar { display: flex; gap: 10px; margin-bottom: 14px; max-width: 620px; }
.zs-search__bar input[type="search"] {
	flex: 1; font: inherit; padding: .85em 1em;
	border: 1.5px solid var(--zs-line); border-radius: 999px; background: #fff;
}
.zs-search__bar input[type="search"]:focus { outline: none; border-color: var(--zs-accent); box-shadow: 0 0 0 3px rgba(82,200,229,.25); }

/* Sticky toolbar -- owns the Filters button, count, active chips and sort. */
.zs-toolbar {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 11px 0; margin-bottom: 16px;
	background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--zs-line);
}
.zs-toolbar__filters {
	display: inline-flex; align-items: center; gap: 8px; order: 1;
	background: var(--zs-brand); color: #fff; border: none; border-radius: 999px;
	padding: .62em 1.15em; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.zs-toolbar__filters:hover { opacity: .9; }
.zs-toolbar__n { background: var(--zs-accent); color: #00191f; border-radius: 999px; font-size: .7rem; padding: .05em .5em; font-weight: 800; }
.zs-toolbar__active { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; order: 2; }
.zs-chip {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .75rem; font-weight: 600; text-decoration: none;
	background: #f3fcfe; border: 1.5px solid #9fe6f4; color: #0a5e75;
	border-radius: 999px; padding: .28em .6em;
}
.zs-chip:hover { background: #e3f7fd; border-color: var(--zs-accent); }
.zs-toolbar__clear { font-size: .78rem; color: var(--zs-accent-deep); font-weight: 600; }
.zs-sort { margin-left: auto; order: 3; }

/* Filters drawer. Always in the DOM; hidden with a transform, never injected. */
.zs-drawer__ovl {
	position: fixed; inset: 0; z-index: 55;
	background: rgba(13,15,18,.45);
	opacity: 0; pointer-events: none; transition: opacity .22s;
}
.zs-search.is-drawer-open .zs-drawer__ovl { opacity: 1; pointer-events: auto; }
.zs-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--zs-line); }
.zs-filters__x { margin-left: auto; border: none; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--zs-ink-soft); }
.zs-filters__form { display: flex; flex-direction: column; height: 100%; }
.zs-filters__body { flex: 1; overflow-y: auto; padding: 0 16px; }
.zs-filters__foot { display: flex; gap: 9px; padding: 13px 16px; border-top: 1px solid var(--zs-line); }
.zs-filters__clear { flex: 1; }
.zs-filters__apply { flex: 2; }

.zs-filters {
	position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
	width: 352px; max-width: 88vw;
	background: #fff; border: 0; border-radius: 0; padding: 0;
	transform: translateX(-100%);
	/*
	 * visibility, not just transform. A transform moves a panel off-screen but
	 * leaves every control inside it focusable and in the accessibility tree:
	 * a keyboard user tabbing through the results lands in an invisible drawer
	 * and types into fields they cannot see. Worse here than usual, because
	 * this panel is role="dialog" aria-modal="true" -- present and exposed
	 * while closed, it tells a screen reader the rest of the page is inert.
	 *
	 * visibility:hidden removes it from both. The 0s delay equal to the slide
	 * duration is what keeps the closing animation visible: the panel stays
	 * rendered for the 260ms it takes to leave, then disappears.
	 */
	visibility: hidden;
	transition: transform .26s cubic-bezier(.4,0,.2,1), visibility 0s linear .26s;
	box-shadow: 0 0 50px rgba(0,0,0,.28);
}
.zs-search.is-drawer-open .zs-filters {
	transform: none;
	visibility: visible;
	/* Opening is immediate -- no delay, or the panel slides in unfocusable. */
	transition: transform .26s cubic-bezier(.4,0,.2,1), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
	.zs-filters { transition: none; }
	.zs-search.is-drawer-open .zs-filters { transition: none; }
}
.zs-filters__head h2 { font-size: 1.1rem; margin: 0; }
.zs-facet { border-top: 1px solid var(--zs-line); padding: 12px 0; }
.zs-facet summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.zs-facet summary::-webkit-details-marker { display: none; }
.zs-facet summary::after { content: "▾"; color: var(--zs-ink-soft); font-size: .8rem; }
.zs-facet[open] summary::after { content: "▴"; }
.zs-facet__opts { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.zs-facet__opt { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.zs-facet__opt span { flex: 1; }
.zs-facet__opt em { color: var(--zs-ink-soft); font-style: normal; font-size: .78rem; }
.zs-facet__range { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.zs-facet__range input { width: 100%; font: inherit; padding: .55em .6em; border: 1.5px solid var(--zs-line); border-radius: 8px; }
.zs-facet__range span { color: var(--zs-ink-soft); }

.zs-results__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.zs-results__count { margin: 0 0 12px; font-size: .95rem; color: var(--zs-ink-soft); order: -1; flex-basis: 100%; width: 100%; text-align: left; }
.zs-results__count strong { color: var(--zs-ink); font-size: 1.05rem; }
.zs-sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--zs-ink-soft); }
.zs-sort select { font: inherit; padding: .5em 2em .5em .7em; border: 1.5px solid var(--zs-line); border-radius: 8px; background: #fff; }

.zs-results__empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--zs-ink-soft); }
.zs-showmore { text-align: center; margin: 30px 0; }
.zs-showmore .zs-btn { min-width: 220px; }
.zs-showmore .page-numbers { display: inline-block; padding: .4em .8em; margin: 0 3px; border: 1px solid var(--zs-line); border-radius: 8px; text-decoration: none; color: var(--zs-brand); }

/* ------------------------------------------------------------------ */
/* Subscribe boxes                                                    */
/* ------------------------------------------------------------------ */
.zs-subscribe {
	background: var(--zs-muted);
	border: 1px solid var(--zs-line);
	border-radius: var(--zs-radius);
	padding: 18px;
	margin-top: 26px;
}
.zs-subscribe h3 { margin: 8px 0 8px; font-size: 1.05rem; }
.zs-subscribe p { margin: 0 0 12px; font-size: .88rem; color: var(--zs-ink-soft); }
.zs-subscribe__channels { display: flex; gap: 16px; margin-bottom: 10px; font-size: .85rem; }
.zs-subscribe__channels label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.zs-subscribe__fields { display: flex; gap: 8px; flex-wrap: wrap; }
.zs-subscribe__fields input { flex: 1; min-width: 140px; font: inherit; padding: .7em .9em; border: 1.5px solid var(--zs-line); border-radius: 999px; }
.zs-subscribe__msg { margin: 10px 0 0; font-size: .85rem; min-height: 1em; }
.zs-subscribe__msg.is-ok { color: var(--zs-good); }
.zs-subscribe__msg.is-err { color: var(--zs-danger); }

/* ------------------------------------------------------------------ */
/* SEO link block                                                     */
/* ------------------------------------------------------------------ */
.zs-seo-links {
	margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--zs-line);
}
.zs-seo-col { margin-bottom: 28px; }
.zs-seo-col:last-child { margin-bottom: 0; }
.zs-seo-col h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--zs-ink); font-weight: 700; margin: 0 0 12px; }
/* Clean, aligned columns of links instead of a dot-separated run. */
.zs-seo-col__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px 22px;
}
.zs-seo-col__list li { margin: 0; min-width: 0; }
.zs-seo-col a { display: block; font-size: .85rem; line-height: 2; color: var(--zs-ink-soft); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-seo-col a:hover { color: var(--zs-brand); text-decoration: underline; }
.zs-seo-toggle {
	margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer;
	font-size: .82rem; font-weight: 600; color: var(--zs-brand);
}
.zs-seo-toggle:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Strips (homepage latest/popular)                                   */
/* ------------------------------------------------------------------ */
.zs-strip { max-width: 1240px; margin: 40px auto; padding: 0 18px; }
.zs-strip-title { font-size: 1.5rem; margin: 0 0 18px; }

/* ------------------------------------------------------------------ */
/* Detail page                                                        */
/* ------------------------------------------------------------------ */
.zs-detail { max-width: 1240px; margin: 0 auto; padding: 20px 18px 60px; }
.zs-detail__crumbs { margin-bottom: 14px; font-size: .88rem; }
.zs-detail__crumbs a { color: var(--zs-accent-deep); text-decoration: none; }
.zs-detail__layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.zs-detail__main { min-width: 0; }

.zs-gallery__stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--zs-radius); overflow: hidden; background: var(--zs-muted); }
.zs-gallery__stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-gallery__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.zs-gallery__stage .zs-fav { top: 12px; right: 12px; }
.zs-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.zs-gallery__thumb { flex: 0 0 90px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--zs-muted); }
.zs-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.zs-gallery__thumb.is-active { border-color: var(--zs-accent); }

.zs-detail__title { margin: 22px 0 0; }
.zs-detail__title h1 { font-size: 1.7rem; margin: 0 0 14px; line-height: 1.2; }
.zs-detail__sub { color: var(--zs-ink-soft); font-size: .95rem; display: flex; gap: 8px; flex-wrap: wrap; }

.zs-detail__section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--zs-line); scroll-margin-top: calc(var(--zs-header-offset) + 16px); }
.zs-detail__section h2 { font-size: 1.25rem; margin: 6px 0 26px; padding-bottom: 10px; }
.zs-detail__desc { line-height: 1.6; color: var(--zs-ink); }

.zs-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; margin: 0; }
.zs-specs__row { display: flex; justify-content: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--zs-line); }
.zs-specs__row dt { color: var(--zs-ink-soft); font-size: .9rem; flex: 0 0 120px; }
.zs-specs__row dd { margin: 0; font-weight: 600; font-size: .92rem; text-align: left; flex: 1 1 auto; min-width: 0; }

/* Vehicle Details as a soft info box */
.zs-specs--boxed { background: var(--zs-muted, #f6f7f9); border: 1px solid var(--zs-line); border-radius: 14px; padding: 6px 22px; gap: 0 40px; }
.zs-specs--boxed .zs-specs__row { border-bottom: 1px solid var(--zs-line); }
/* Drop the divider on the last row of each column for a clean edge */
.zs-specs--boxed .zs-specs__row:last-child { border-bottom: 0; }
.zs-swatch { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.28); margin-right: 7px; vertical-align: -2px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.zs-fuel-ev { color: var(--zs-accent-deep); vertical-align: -3px; margin-right: 4px; }
.zs-eco-leaf { color: #2f9e44; vertical-align: -2px; margin-left: 3px; }
.zs-rail__sms { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.zs-rail__sms svg { vertical-align: middle; }
@media (max-width: 520px) { .zs-specs--boxed { padding: 6px 16px; } }

/* Description bullet list (converted from feed <br>- runs) */
.zs-desc-list { margin: 12px 0 0; padding-left: 1.15em; }
.zs-desc-list li { margin: 4px 0; line-height: 1.55; }


.zs-features { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
@media (max-width: 560px) { .zs-features { columns: 1; } }
.zs-features li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: .9rem; line-height: 1.4;
	/* keep an item whole -- never split its lines across two columns */
	break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.zs-features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--zs-good); font-weight: 700; }

.zs-prequal-block p { color: var(--zs-ink-soft); line-height: 1.55; }

/* Lead form */
.zs-lead__form { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.zs-lead__row { display: flex; gap: 12px; }
.zs-lead__form input,
.zs-lead__form textarea { font: inherit; width: 100%; padding: .8em .95em; border: 1.5px solid var(--zs-line); border-radius: var(--zs-radius-sm); background: #fff; }
.zs-lead__form input:focus,
.zs-lead__form textarea:focus { outline: none; border-color: var(--zs-brand); }
.zs-lead__msg { margin: 0; font-size: .88rem; min-height: 1em; }
.zs-lead__msg.is-ok { color: var(--zs-good); }
.zs-lead__msg.is-err { color: var(--zs-danger); }

/* Sticky rail */
:root { --zs-header-offset: 90px; }
.zs-rail { position: sticky; top: calc(var(--zs-header-offset) + 16px); }
.zs-rail__inner { background: #fff; border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 20px; box-shadow: var(--zs-shadow); display: flex; flex-direction: column; gap: 14px; }
.zs-rail__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zs-rail__price strong { font-size: 1.9rem; }
.zs-price-note { margin: -6px 0 0; font-size: .72rem; line-height: 1.3; color: var(--zs-ink-soft); }
.zs-rail__was { color: var(--zs-ink-soft); text-decoration: line-through; font-size: .9rem; }
.zs-rail__drop { align-self: flex-start; margin-top: -6px; display: inline-block; background: var(--zs-accent); color: #001318; font-size: .72rem; font-weight: 600; padding: .34em .75em; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; white-space: nowrap; }
.zs-rail__est { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--zs-ink-soft); }
.zs-rail__est a { color: var(--zs-accent-deep); text-decoration: none; font-weight: 600; }
.zs-click2call { font-size: 1.05rem; }
.zs-rail__actions { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--zs-line); padding-top: 14px; }
.zs-rail__action { background: none; border: none; font: inherit; font-size: .85rem; color: var(--zs-ink-soft); cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 4px; }
.zs-rail__action:hover { color: var(--zs-brand); }
.zs-rail__dealer { font-size: .85rem; color: var(--zs-ink-soft); display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--zs-line); padding-top: 14px; }
.zs-rail__dealer strong { color: var(--zs-ink); }

/* Connect-with-dealer social block */
.zs-social { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--zs-line); }
.zs-social__label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--zs-ink-soft); margin-bottom: 10px; }
.zs-social__icons { display: flex; flex-wrap: wrap; gap: 10px; }
.zs-social__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--zs-brand); color: #fff; text-decoration: none; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.zs-social__icon:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.zs-social__icon svg { display: block; }
.zs-social__icon--facebook:hover  { background: #1877f2; }
.zs-social__icon--instagram:hover { background: #e4405f; }
.zs-social__icon--youtube:hover   { background: #ff0000; }
.zs-social__icon--x:hover         { background: #000000; }
.zs-social__icon--tiktok:hover    { background: #010101; }
.zs-rail .zs-subscribe { margin-top: 4px; }

/* ------------------------------------------------------------------ */
/* Reviews carousel                                                   */
/* ------------------------------------------------------------------ */
.zs-reviews { max-width: 1240px; margin: 50px auto; padding: 0 18px; }
.zs-reviews__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.zs-reviews__title { font-size: 1.6rem; margin: 0 0 6px; }
.zs-reviews__avg { margin: 0; font-size: .92rem; color: var(--zs-ink-soft); }
.zs-stars { color: #f5a623; letter-spacing: 2px; }
.zs-reviews__nav { display: flex; gap: 8px; }
.zs-rev-prev, .zs-rev-next { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--zs-line); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--zs-brand); }
.zs-rev-prev:hover, .zs-rev-next:hover { border-color: var(--zs-accent); color: var(--zs-accent-deep); }
.zs-reviews__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; }
.zs-review { flex: 0 0 340px; max-width: 340px; scroll-snap-align: start; background: #fff; border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 22px; margin: 0; box-shadow: var(--zs-shadow); display: flex; flex-direction: column; gap: 12px; }
.zs-review__stars { color: #f5a623; letter-spacing: 2px; font-size: 1rem; }
.zs-review__body { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--zs-ink); }
.zs-review__by { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.zs-review__author { font-weight: 700; }
.zs-review__meta { font-size: .82rem; color: var(--zs-ink-soft); }

/* ------------------------------------------------------------------ */
/* Saved / compare                                                    */
/* ------------------------------------------------------------------ */
.zs-saved, .zs-compare { max-width: 1240px; margin: 0 auto; padding: 30px 18px 60px; }
.zs-saved__head h1, .zs-compare__head h1 { font-size: 1.7rem; margin: 0 0 6px; }
.zs-saved__sub, .zs-compare__sub { color: var(--zs-ink-soft); margin: 0 0 24px; }
.zs-compare__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 26px; }
.zs-compare__headings { min-width: 0; }
.zs-compare__keep { flex: 0 0 auto; align-self: center; }
.zs-saved__empty, .zs-compare__empty { text-align: center; padding: 60px 20px; color: var(--zs-ink-soft); }
.zs-saved__empty .zs-btn, .zs-compare__empty .zs-btn { margin-top: 14px; }

.zs-compare__wrap { overflow-x: auto; }
.zs-compare-table { border-collapse: collapse; width: 100%; min-width: 600px; }
.zs-compare-table th, .zs-compare-table td { border: 1px solid var(--zs-line); padding: 12px 14px; text-align: left; vertical-align: top; font-size: .9rem; }
.zs-compare-table thead th { background: var(--zs-muted); }
.zs-compare-table tbody th { background: var(--zs-muted); color: var(--zs-ink-soft); font-weight: 600; white-space: nowrap; }
.zs-compare-card img { width: 200px; height: 150px; object-fit: cover; background: var(--zs-muted); border-radius: 8px; display: block; margin-bottom: 8px; }
.zs-compare-card a { display: block; font-weight: 700; color: var(--zs-brand); text-decoration: none; margin-top: 8px; line-height: 1.3; }
.zs-compare-card a:hover { text-decoration: underline; }
.zs-compare-card__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.zs-compare-save, .zs-compare-remove { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; font-size: .8rem; font-weight: 600; line-height: 1; border: 1px solid var(--zs-line); border-radius: 999px; background: #fff; color: var(--zs-ink-soft); cursor: pointer; }
.zs-compare-save svg { fill: none; stroke: currentColor; stroke-width: 2; }
.zs-compare-save:hover { border-color: var(--zs-ink-soft); color: var(--zs-ink); }
.zs-compare-save.is-active { color: #e0245e; border-color: #e0245e; }
.zs-compare-save.is-active svg { fill: #e0245e; stroke: #e0245e; }
.zs-compare-remove:hover { border-color: var(--zs-danger, #c0202a); color: var(--zs-danger, #c0202a); }

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 980px) {
	.zs-detail__layout { grid-template-columns: 1fr; }
	.zs-rail { display: none; }  /* hidden on mobile; see .zs-mobile-extra below */
}
@media (max-width: 560px) {
	.zs-specs { grid-template-columns: 1fr; }
	.zs-lead__row { flex-direction: column; }
	.zs-grid { grid-template-columns: 1fr; }
	.zs-search__bar { flex-direction: column; }
	.zs-search__bar .zs-btn { width: 100%; }
}


/* Taxonomy archive header (/inventory/make/lexus/ etc.) ------------------ */
.zs-archive__head { margin: 0 auto; padding: 34px 26px 4px; }
.zs-archive__head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; line-height: 1.15; }
.zs-archive__intro { margin: 0; color: var(--zs-ink-soft, #5a6b7b); max-width: 68ch; font-size: .95rem; }

/* Watcher count + consent ------------------------------------------------ */
[hidden] { display: none !important; }
.zs-watchers {
	display: flex; align-items: baseline; gap: 6px;
	margin: 0 0 12px; padding: 8px 12px;
	background: var(--zs-muted); border-radius: var(--zs-radius-sm);
	font-size: .86rem; color: var(--zs-ink-soft);
}
.zs-watchers strong { font-size: 1.05rem; color: var(--zs-ink); }
.zs-subscribe__consent {
	margin: 14px 0 0;
	font-size: .72rem; line-height: 1.55; color: var(--zs-ink-soft);
}

/* Video walkaround ------------------------------------------------------- */
.zs-detail__video .zs-video{margin-top:4px}
.zs-video__facade{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;cursor:pointer;
	border-radius:var(--zs-radius);overflow:hidden;background:#0b0b0d center/cover no-repeat;color:#fff}
.zs-video__facade::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.35))}
.zs-video__play{position:absolute;inset:0;margin:auto;width:68px;height:48px;z-index:2;display:grid;place-items:center;
	filter:drop-shadow(0 2px 6px rgba(0,0,0,.4));transition:transform .18s ease}
.zs-video__facade:hover .zs-video__play{transform:scale(1.08)}
.zs-video__label{position:absolute;left:14px;bottom:12px;z-index:2;font-weight:700;font-size:.9rem;letter-spacing:.01em;
	text-shadow:0 1px 3px rgba(0,0,0,.6)}
.zs-video__frame{width:100%;aspect-ratio:16/9;border:0;border-radius:var(--zs-radius);display:block}
.zs-video__chapters{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.zs-video__chapters li{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;color:var(--zs-ink-soft);
	background:var(--zs-muted);border:1px solid var(--zs-line);border-radius:999px;padding:5px 11px}
.zs-video__ts{font-family:var(--zs-mono,monospace);font-weight:700;color:var(--zs-ink)}

/* Card "Video" flag ------------------------------------------------------ */
.zs-card__video{position:absolute;left:10px;bottom:10px;z-index:3;display:inline-flex;align-items:center;gap:5px;
	padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.02em;
	background:rgba(11,11,13,.82);color:#fff}
.zs-card__video svg{display:block}

/* Has-video toggle in the filter drawer */
.zs-facet--toggle{margin-top:6px;padding-top:12px;border-top:1px solid var(--zs-line)}

/* Days on lot ------------------------------------------------------------ */
.zs-card__dol{display:inline-flex;align-items:center;gap:5px;margin-top:8px;
	font-family:var(--zs-mono,monospace);font-size:.72rem;font-weight:700;letter-spacing:.03em;
	text-transform:uppercase;color:var(--zs-ink-soft)}
.zs-card__dol::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--zs-accent,#52c8e5)}
.zs-detail__dol{color:var(--zs-ink-soft)}

/* Payment calculator trigger + modal ------------------------------------- */
.zs-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--zs-accent-deep); font-weight: 600; font-size: inherit; }
.zs-linkbtn:hover { text-decoration: underline; }
.zs-calc { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.zs-calc[hidden] { display: none; }
.zs-calc__backdrop { position: absolute; inset: 0; background: rgba(6,10,14,.55); }
.zs-calc__dialog { position: relative; background: #fff; border-radius: var(--zs-radius); box-shadow: 0 20px 60px rgba(0,0,0,.3); width: 100%; max-width: 380px; padding: 24px; }
.zs-calc__x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--zs-ink-soft); }
.zs-calc__dialog h3 { margin: 0 26px 14px 0; font-size: 1.15rem; }
.zs-calc__result { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.zs-calc__amt { font-size: 2.2rem; font-weight: 800; color: var(--zs-ink); }
.zs-calc__per { color: var(--zs-ink-soft); font-size: .9rem; }
.zs-calc__field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .9rem; }
.zs-calc__field input { width: 130px; padding: 8px 10px; border: 1px solid var(--zs-line); border-radius: 8px; text-align: right; }
.zs-calc__disclaimer { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--zs-line); font-size: .7rem; line-height: 1.5; color: var(--zs-ink-soft); }

/* Standout-feature pills (above Overview) -------------------------------- */
.zs-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.zs-pill {
	display: inline-flex; align-items: center;
	background: var(--zs-ink, #0b0b0d); color: #fff;
	font-size: .76rem; font-weight: 700; letter-spacing: .02em;
	padding: 6px 13px; border-radius: 999px; white-space: nowrap;
}
/* Coloured variants where a colour genuinely signals meaning. */
.zs-pill--ev     { background: #0c7a99; color: #fff; }               /* electric  */
.zs-pill--hybrid { background: #1a7f4b; color: #fff; }               /* hybrid    */
.zs-pill--eco    { background: #e8f5ee; color: #12633a; }            /* efficient */
.zs-pill--cpo    { background: #fff; color: #0b0b0d; border: 1.5px solid #0b0b0d; } /* certified */

/* Mobile-only price block above the pills. Desktop uses the sticky right rail,
   so this is hidden there and only appears when the layout goes single-column. */
.zs-mprice { display: none; }
.zs-mobile-extra { display: none; }
#zs-price-alerts { scroll-margin-top: calc(var(--zs-header-offset) + 16px); }
@media (max-width: 980px) {
	.zs-mprice {
		display: flex; flex-direction: column; gap: 12px;
		margin: 2px 0 2px; padding: 16px;
		background: #fff; border: 1px solid var(--zs-line);
		border-radius: var(--zs-radius); box-shadow: var(--zs-shadow);
	}
	.zs-mprice__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
	.zs-mprice__price { font-size: 1.9rem; }
	.zs-mprice__was { color: var(--zs-ink-soft); text-decoration: line-through; font-size: .9rem; }
	.zs-mprice__drop { align-self: center; margin-top: 0; }
	.zs-mprice__est { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--zs-ink-soft); }
	.zs-mprice__actions { display: flex; flex-wrap: wrap; gap: 8px; }
	/* Two buttons per row; a lone button on a row grows to full width. */
	.zs-mprice__half,
	.zs-mprice__cta { flex: 1 1 calc(50% - 4px); box-sizing: border-box; min-width: 0; }
	.zs-mobile-extra { display: block; margin-top: 30px; }
	.zs-mobile-extra .zs-subscribe { margin-top: 20px; }
}

/* Dealer location map (below Check Availability) -------------------------- */
.zs-dealer-map { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--zs-line); }
.zs-dealer-map__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.zs-dealer-map__addr { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--zs-ink-soft); line-height: 1.45; }
.zs-dealer-map__addr strong { color: var(--zs-ink); font-size: .95rem; }
.zs-dealer-map__dir { flex: none; white-space: nowrap; font-weight: 700; font-size: .88rem; color: var(--zs-accent-deep); text-decoration: none; }
.zs-dealer-map__dir:hover { text-decoration: underline; }
.zs-dealer-map__frame { border-radius: var(--zs-radius); overflow: hidden; border: 1px solid var(--zs-line); line-height: 0; }
.zs-dealer-map__frame iframe { display: block; width: 100%; }
@media (max-width: 480px) { .zs-dealer-map__head { flex-direction: column; gap: 6px; } }

/* Subtle after-save alert prompt ----------------------------------------- */
.zs-savenote {
	position: relative; margin-top: 4px; padding: 12px 14px;
	background: var(--zs-muted, #f6f7f9); border: 1px solid var(--zs-line);
	border-radius: var(--zs-radius-sm, 10px);
}
.zs-savenote__x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.15rem; line-height: 1; color: var(--zs-ink-soft); cursor: pointer; }
.zs-savenote__lead { margin: 0 18px 8px 0; font-size: .82rem; color: var(--zs-ink); font-weight: 600; }
.zs-savenote__row { display: flex; gap: 6px; }
.zs-savenote__row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--zs-line); border-radius: 8px; font-size: .85rem; }
.zs-btn--sm { padding: 8px 12px; font-size: .82rem; }
.zs-savenote__msg { margin: 8px 0 0; font-size: .76rem; min-height: 1em; }
.zs-savenote__msg.is-ok  { color: var(--zs-good, #1a7f4b); }
.zs-savenote__msg.is-err { color: #b3261e; }

/* Trust badges ----------------------------------------------------------- */
.zs-trust { display: flex; gap: 8px; }
.zs-trust--row { flex-wrap: wrap; align-items: center; }
.zs-trust--stack { flex-direction: column; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--zs-line); }
.zs-trust__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--zs-ink); }
.zs-trust--row .zs-trust__badge { background: var(--zs-muted, #f6f7f9); border: 1px solid var(--zs-line); border-radius: 999px; padding: 6px 12px; }
.zs-trust__ic { display: inline-flex; color: var(--zs-accent-deep, #0c7a99); flex: none; }
.zs-trust__txt { line-height: 1.3; }

/* Rotating review spotlight ---------------------------------------------- */
.zs-spotlight { margin-top: 18px; padding: 16px 18px; background: var(--zs-muted, #f6f7f9); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); }
.zs-spotlight__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--zs-ink-soft); margin-bottom: 8px; }
.zs-spotlight__viewport { position: relative; }
.zs-spotlight__item[hidden] { display: none; }
.zs-spotlight__stars { color: #f5a623; letter-spacing: 2px; font-size: .95rem; margin-bottom: 6px; }
.zs-spotlight__quote { margin: 0 0 8px; font-size: .92rem; line-height: 1.5; color: var(--zs-ink); font-style: italic; }
.zs-spotlight__by { font-size: .82rem; color: var(--zs-ink-soft); }
.zs-spotlight__by strong { color: var(--zs-ink); }
/* Review card interspersed in the search grid (every 7th vehicle). */
.zs-review-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; background: var(--zs-muted, #f4f6f9); border: 1px solid var(--zs-line); border-radius: var(--zs-radius, 14px); padding: 22px 20px; }
.zs-review-card .zs-spotlight__quote { font-size: .95rem; }

/* Sticky compare tray */
.zs-compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--zs-surface, #fff); border-top: 1px solid var(--zs-line); box-shadow: 0 -3px 14px rgba(0,0,0,.1); padding: 10px 16px; }
.zs-compare-tray__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.zs-compare-tray__label { font-weight: 700; white-space: nowrap; font-size: .92rem; }
.zs-compare-tray__label span { color: var(--zs-ink-soft); font-weight: 600; }
.zs-compare-tray__items { display: flex; gap: 8px; flex: 1 1 200px; min-width: 0; overflow-x: auto; padding-bottom: 2px; }
.zs-compare-tray__chip { background: var(--zs-muted, #f4f6f9); border: 1px solid var(--zs-line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.zs-compare-tray__chip button { border: 0; background: none; cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--zs-ink-soft); padding: 0 2px; }
.zs-compare-tray__chip button:hover { color: var(--zs-ink); }
.zs-compare-tray__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.zs-compare-tray__clear { border: 0; background: none; cursor: pointer; color: var(--zs-ink-soft); text-decoration: underline; font-size: .85rem; }
.zs-compare-tray__hint { color: var(--zs-ink-soft); font-size: .85rem; white-space: nowrap; }
.zs-compare-tray__go { white-space: nowrap; }
/* Reserve room for the fixed compare tray so it never sits on top of whatever
   is at the bottom of the page. Done on <body> so it works in any theme; the
   older `.zs-footer` rule is kept so themes that style their footer edge for
   it keep behaving exactly as before. */
body.zs-has-cmp-tray { padding-bottom: 84px; }
body.zs-has-cmp-tray .zs-footer { padding-bottom: 84px; }
.zs-spotlight__dots { display: flex; gap: 6px; margin-top: 12px; }
.zs-spotlight__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--zs-line); cursor: pointer; }
.zs-spotlight__dot.is-active { background: var(--zs-accent-deep, #0c7a99); }

/* Spotlight: centered + white-card variants (e.g. inventory page) */
.zs-spotlight--center { text-align: center; }
.zs-spotlight--center .zs-spotlight__stars { display: block; }
.zs-spotlight--center .zs-spotlight__quote { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }
.zs-spotlight--card { background: #fff; border: 1px solid var(--zs-line); border-radius: var(--zs-radius); box-shadow: 0 1px 3px rgba(0,0,0,.04); padding: 22px 24px; }
.zs-spotlight--center.zs-spotlight--card .zs-spotlight__quote { font-size: 1.1rem; line-height: 1.55; }

/* Spotlight dismiss button */
.zs-spotlight--dismissible { position: relative; }
.zs-spotlight__x {
	position: absolute; top: 8px; right: 10px;
	width: 26px; height: 26px; padding: 0; line-height: 1;
	border: none; background: transparent; cursor: pointer;
	font-size: 20px; color: var(--zs-ink-soft); border-radius: 50%;
	display: grid; place-items: center;
}
.zs-spotlight__x:hover { background: rgba(0,0,0,.06); color: var(--zs-ink); }
.zs-spotlight--center .zs-spotlight__quote { padding: 0 26px; } /* clear the x */


/* Card meta: exterior color + stock number */
.zs-card__color { text-transform: capitalize; }

/* Est-payment info icon + hover/focus tooltip (payment disclaimer) */
.zs-card__info {
	display: inline-flex; vertical-align: middle; margin-left: 4px;
	color: var(--zs-ink-soft); cursor: help; position: relative;
}
.zs-card__info:hover, .zs-card__info:focus { color: var(--zs-accent-deep); outline: none; }
.zs-card__info::after {
	content: attr(data-zs-tip);
	position: absolute; bottom: calc(100% + 8px);
	/* Anchor to the icon's RIGHT edge so the bubble opens leftward, into the
	   card, instead of overflowing the right side where the next card covers it. */
	right: -4px; left: auto; transform: none;
	width: max-content; max-width: 230px;
	background: var(--zs-ink, #0b0b0d); color: #fff;
	font-size: .72rem; font-weight: 400; line-height: 1.35; text-transform: none;
	padding: 7px 9px; border-radius: 7px;
	opacity: 0; visibility: hidden; transition: opacity .12s ease; z-index: 30;
	box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none;
	white-space: normal;
}
.zs-card__info::before {
	content: ""; position: absolute; bottom: calc(100% + 2px); right: 3px; left: auto;
	border: 6px solid transparent; border-top-color: var(--zs-ink, #0b0b0d);
	opacity: 0; visibility: hidden; transition: opacity .12s ease; z-index: 31;
}
.zs-card__info:hover::after, .zs-card__info:focus::after,
.zs-card__info:hover::before, .zs-card__info:focus::before { opacity: 1; visibility: visible; }

/* The card clips its contents (overflow:hidden) for rounded image corners, which
   would also clip the tooltip. While the info icon is hovered/focused, let the
   card overflow and lift it above its neighbours so the tooltip shows in full. */
.zs-card:has(.zs-card__info:hover),
.zs-card:has(.zs-card__info:focus) { overflow: visible; z-index: 5; }

/* Recommender: "Sorted for you" banner */
.zs-reco-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: linear-gradient(90deg, rgba(82,200,229,.14), rgba(82,200,229,.04));
	border: 1px solid var(--zs-accent); border-radius: var(--zs-radius);
	padding: 10px 14px; margin-bottom: 16px; font-size: .9rem;
}
.zs-reco-banner__txt strong { color: var(--zs-accent-deep); }
.zs-reco-banner__off {
	flex: none; background: transparent; border: 1px solid var(--zs-line);
	border-radius: 999px; padding: 4px 12px; font-size: .78rem; cursor: pointer;
	color: var(--zs-ink-soft);
}
.zs-reco-banner__off:hover { border-color: var(--zs-accent); color: var(--zs-accent-deep); }

/* Recommender: save-search prompt */
.zs-savesearch-prompt {
	position: relative;
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	background: var(--zs-muted, #f6f7f9); border: 1px dashed var(--zs-accent);
	border-radius: var(--zs-radius); padding: 14px 16px; margin: 18px 0;
	font-size: .92rem;
}
.zs-savesearch-prompt > span { flex: 1 1 240px; }
.zs-savesearch-prompt__no {
	position: absolute; top: 6px; right: 8px;
	background: transparent; border: none; font-size: 18px; line-height: 1;
	color: var(--zs-ink-soft); cursor: pointer; padding: 4px;
}
.zs-savesearch-prompt__no:hover { color: var(--zs-ink); }

/* Visually-hidden helper (keeps labels for screen readers) */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* Mobile results toolbar: count on top (left), then filter pill + sort on one row */
@media (max-width: 600px) {
	/* Count already sits on its own line above the pill (base styles). On phones,
	   sort moves up beside the pill and the active chips drop to their own row. */
	.zs-sort { order: 2; }
	.zs-sort select { padding-top: .62em; padding-bottom: .62em; }
	.zs-toolbar__active {
		order: 3; flex-basis: 100%; width: 100%; margin-top: 12px;
	}
}

/* Per-vehicle FAQ accordion (VDP) */
.zs-faq__list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--zs-line); }
.zs-faq__item { border-bottom: 1px solid var(--zs-line); }
.zs-faq__q { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; font-weight: 600; color: var(--zs-ink); position: relative; }
.zs-faq__q::-webkit-details-marker { display: none; }
.zs-faq__q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; font-weight: 400; color: var(--zs-ink-soft); line-height: 1; }
.zs-faq__item[open] .zs-faq__q::after { content: "\2013"; }
.zs-faq__q:hover { color: var(--zs-brand); }
.zs-faq__a { padding: 0 0 18px; color: var(--zs-ink-soft); line-height: 1.6; max-width: 68ch; }

/* Recently viewed: horizontal swipe carousel in a set-apart gray panel. */
.zs-viewed { background: var(--zs-muted, #f4f6f9); border-radius: 16px; padding: 22px 20px; margin: 32px 0; }
.zs-viewed__head h2 { font-size: 1.15rem; margin: 0 0 16px; }
.zs-viewed__track {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: minmax(290px, 300px); /* same card width as the regular search grid */
	gap: 14px; overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
	padding-bottom: 10px; scrollbar-width: thin;
}
.zs-viewed__track > * { scroll-snap-align: start; min-width: 0; }
.zs-viewed__track .zs-card { width: 100%; min-width: 0; }
.zs-viewed__track::-webkit-scrollbar { height: 8px; }
.zs-viewed__track::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 8px; }
@media (max-width: 360px) { .zs-viewed__track { grid-auto-columns: minmax(84%, 1fr); } } /* 1 + peek on very small phones */

/* Sold-vehicle soft landing + free store-transfer note (VDP) */
.zs-sold-banner { background: #fff4f4; border: 1px solid #f0c8c8; color: #7a2020; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; }
.zs-sold-banner a { color: inherit; font-weight: 700; }
.zs-transfer-note { display: flex; align-items: flex-start; gap: 10px; background: var(--zs-muted, #f4f6f9); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: .92rem; color: var(--zs-ink, #0b0b0d); line-height: 1.45; }
.zs-transfer-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--zs-brand, #0b0b0d); }

/* Search-results page H1 + intro (base and ?city=) */
.zs-srp-head { margin: 4px 0 18px; }
.zs-srp-head h1 { font-size: 1.5rem; margin: 0 0 6px; }
.zs-srp-head .zs-archive__intro { color: var(--zs-ink-soft, #5a6b7b); margin: 0; max-width: 70ch; line-height: 1.5; }

/* Search by Payment: toolbar entry + terms inside the filter drawer */
.zs-toolbar__pay { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--zs-line); border-radius: 999px; background: #fff; color: var(--zs-ink, #0b0b0d); font-weight: 600; font-size: .88rem; cursor: pointer; }
.zs-toolbar__pay:hover { border-color: var(--zs-ink-soft, #5a6b7b); }
.zs-toolbar__pay svg { flex: 0 0 auto; }
.zs-facet__intro { margin: 0 0 10px; font-size: .84rem; color: var(--zs-ink-soft, #5a6b7b); line-height: 1.45; }
.zs-payterms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.zs-payterms label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--zs-ink-soft, #5a6b7b); }
.zs-payterms input { width: 100%; min-width: 0; box-sizing: border-box; padding: 8px; border: 1px solid var(--zs-line); border-radius: 8px; font-size: .95rem; }
.zs-payterms__disc { margin: 10px 0 0; font-size: .74rem; line-height: 1.45; color: var(--zs-ink-soft, #5a6b7b); }

/* ------------------------------------------------------------------ */
/* City landing pages (/used-cars-{city}-{state}/)                    */
/* ------------------------------------------------------------------ */
.zs-location .zs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.zs-breadcrumb { font-size: .85rem; color: var(--zs-ink-soft); margin: 22px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zs-breadcrumb a { color: var(--zs-accent-deep); text-decoration: none; }
.zs-breadcrumb a:hover { text-decoration: underline; }
.zs-location__head { margin: 6px 0 20px; }
.zs-location__head h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; margin: 0 0 12px; }
.zs-location__intro { font-size: 1.05rem; line-height: 1.6; color: var(--zs-ink-soft); max-width: 820px; margin: 0; }
.zs-location__makes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 26px; }
.zs-location__makes-label { font-weight: 700; font-size: .9rem; margin-right: 4px; }
.zs-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--zs-line); background: #fff; color: var(--zs-ink); font-size: .88rem; text-decoration: none; transition: .15s; }
.zs-chip:hover { border-color: var(--zs-accent); color: var(--zs-accent-deep); }
.zs-location__inv-head h2 { font-size: 1.35rem; margin: 0 0 16px; }
.zs-location .zs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.zs-location__viewall { text-align: center; margin: 26px 0 0; }
.zs-location__callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.zs-callout { background: var(--zs-surface-2, #f6f7f9); border: 1px solid var(--zs-line); border-radius: var(--zs-radius, 14px); padding: 22px; }
.zs-callout h3 { margin: 0 0 8px; font-size: 1.1rem; }
.zs-callout p { margin: 0; color: var(--zs-ink-soft); line-height: 1.55; }
.zs-location__stores { margin: 40px 0; }
.zs-location__stores h2 { font-size: 1.5rem; margin: 0 0 18px; }
.zs-storegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.zs-store { border: 1px solid var(--zs-line); border-radius: var(--zs-radius, 14px); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.zs-store__name { font-size: 1.05rem; }
.zs-store__addr { color: var(--zs-ink-soft); font-size: .92rem; }
.zs-store__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.zs-location__faq { margin: 40px 0; }
.zs-location__faq h2 { font-size: 1.5rem; margin: 0 0 18px; }
.zs-location__cta { text-align: center; margin: 40px 0 60px; }
@media (max-width: 640px) {
	.zs-location__callouts { grid-template-columns: 1fr; }
}

/* Car-buying answer pages */
.zs-answer__lead { font-size: 1.2rem; line-height: 1.55; font-weight: 500; color: var(--zs-ink); background: var(--zs-surface-2, #f6f7f9); border-left: 4px solid var(--zs-accent); border-radius: 8px; padding: 16px 20px; max-width: 820px; margin: 0; }
.zs-answer__body { max-width: 820px; margin: 34px 0; line-height: 1.7; color: var(--zs-ink); }
.zs-answer__body h2, .zs-answer__body h3 { margin: 1.4em 0 .5em; }
.zs-answer__related { margin: 34px 0; }
.zs-answer__related h2 { font-size: 1.35rem; margin: 0 0 14px; }
.zs-answer__updated { color: var(--zs-ink-soft); font-size: .85rem; margin: 30px 0 60px; }
.zs-answer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 8px 0 30px; }
.zs-answer-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--zs-line); border-radius: 14px; background: #fff; padding: 22px; text-decoration: none; color: var(--zs-ink); transition: .15s; }
.zs-answer-card:hover { border-color: var(--zs-accent); box-shadow: 0 6px 20px rgba(0,0,0,.06); transform: translateY(-2px); }
.zs-answer-card__title { font-size: 1.15rem; margin: 0; line-height: 1.25; }
.zs-answer-card__lead { color: var(--zs-ink-soft); font-size: .95rem; line-height: 1.5; margin: 0; }
.zs-answer-card__cta { color: var(--zs-accent-deep); font-weight: 600; font-size: .9rem; margin-top: auto; }

/* ---------------------------------------------------------------- */
/* Accessibility (WCAG 2.1 AA)                                      */
/* ---------------------------------------------------------------- */
.zs-inventory :focus-visible,
a.zs-btn:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
.zs-chip:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--zs-accent-deep, #0c7a99);
	outline-offset: 2px;
	border-radius: 3px;
}
/* Form controls: perceivable (>=3:1) border. */
.zs-lead__form input, .zs-lead__form textarea,
.zs-subscribe input, .zs-search__bar input[type="search"] {
	border-color: #767e8b;
}
@media (prefers-reduced-motion: reduce) {
	.zs-card, .zs-answer-card, .zs-chip, .zs-btn { transition: none !important; }
	.zs-card:hover, .zs-answer-card:hover { transform: none !important; }
}
/* Visually-hidden helper for screen-reader live announcements/labels. */
.zs-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Doc fee disclosure — small print under the price */
.zs-docfee { font-size: .72rem; color: var(--zs-ink-soft, #5f6570); line-height: 1.3; margin-top: 2px; }
.zs-docfee--vdp { font-size: .78rem; margin: 4px 0 0; }


/* ---------------------------------------------------------------------------
   Sale Pending stamp
   ---------------------------------------------------------------------------
   Sits over the photo on a card and on the vehicle gallery. The vehicle is
   still for sale -- this is a "someone is working a deal" notice, not a sold
   banner -- so it never covers the whole image and never blocks a click on it.
   --------------------------------------------------------------------------- */
.zs-pending {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	/* The photo is a link. A stamp that ate the click would make a pending
	   vehicle the one card on the page you cannot open. */
	pointer-events: none;
	z-index: 4;
}
.zs-pending__stamp {
	display: inline-block;
	transform: rotate(var(--zs-pending-tilt));
	background: var(--zs-pending-bg);
	color: var(--zs-pending-ink);
	font-family: var(--zs-pending-font);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	line-height: 1;
	white-space: nowrap;
	border: 2px solid var(--zs-pending-ring);
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
	/* Long custom labels ("Deposit Taken — Pending") must not run off a narrow
	   card, so the box is allowed to shrink with the container. */
	max-width: 88%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.zs-pending--sm .zs-pending__stamp { font-size: clamp(11px, 3.4cqw, 15px); padding: 7px 13px; }
.zs-pending--lg .zs-pending__stamp { font-size: clamp(15px, 3.1cqw, 26px); padding: 11px 22px; letter-spacing: .12em; }
.zs-card__media { container-type: inline-size; }
.zs-gallery__stage { container-type: inline-size; }
.zs-pending__sr {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
@media (prefers-reduced-motion: reduce) {
	.zs-pending__stamp { transition: none; }
}
