/**
 * Stepfox Car Dealer — inventory / home components
 * (handle `stepfox-cd-components`, dep `stepfox-cd`).
 *
 * Blocks: search-form, search-filters, vehicle-grid, vehicle-carousel,
 * make-grid, inventory-stats, stats-counter. (Vehicle cards live in cards.css;
 * dealer cards in dealers.css / engage.css.)
 *
 * RULES
 * 1. Every colour is a palette preset `var(--wp--preset--color--<slug>, <light>)`
 *    read ONCE into the local `--sfc-*` aliases declared on the component
 *    roots (not :root), so the theme's dark re-map flips everything.
 *    White (#fff) is used only for text over photography.
 *    Text on ember / cobalt fills uses the `base` preset.
 * 2. Mobile first. Layout widens at 600 / 769 / 1025px (Stepfox Looks devices:
 *    mobile <=768, tablet <=1024). The page never scrolls sideways.
 * 3. Motion is decorative only and is switched off under
 *    prefers-reduced-motion; hover lifts are gated on (hover:hover).
 * 4. JS-only states hang off classes the scripts add (`is-enhanced`,
 *    `is-sheet-open` …) — without JS every form is complete.
 *    Layouts that would otherwise jump when the script boots (filters bar)
 *    also key on the pre-paint `html.sfcd-js` class.
 * 5. Swatch / monogram colours are DATA (`--sfcd-swatch`, `--sfcd-mono-bg`),
 *    never theme colours: a "blue" car is blue in dark mode too.
 */

/* ======================================================================
   0. LOCAL TOKENS
   ====================================================================== */

.sfcd-search-form,
.sfcd-search-filters,
.sfcd-vehicle-grid,
.sfcd-vehicle-carousel,
.sfcd-make-grid,
.sfcd-inventory-stats,
.sfcd-stats-counter {
	--sfc-base: var(--wp--preset--color--base, #f2f3f5);
	--sfc-panel: var(--wp--preset--color--panel, #ffffff);
	--sfc-panel-2: var(--wp--preset--color--panel-2, #e6e8ec);
	--sfc-line: var(--wp--preset--color--line, rgba(14, 17, 22, 0.10));
	--sfc-edge: var(--wp--preset--color--edge, rgba(14, 17, 22, 0.08));
	--sfc-ink: var(--wp--preset--color--ink, #0e1116);
	--sfc-muted: var(--wp--preset--color--muted, #596372);
	--sfc-accent: var(--wp--preset--color--accent, #c2410c);
	--sfc-accent-2: var(--wp--preset--color--accent-2, #1d4ed8);
	--sfc-neon: var(--wp--preset--color--neon, #0b8a5f);
	--sfc-navy: var(--wp--preset--color--violet, #1b2a4a);
	--sfc-turf: var(--wp--preset--color--turf, #dfe8f7);
	--sfc-gold: var(--wp--preset--color--gold, #8a6400);
	--sfc-glass: var(--wp--preset--color--glass, rgba(255, 255, 255, 0.86));
	--sfc-glass-2: var(--wp--preset--color--glass-2, rgba(242, 243, 245, 0.80));
	--sfc-on-fill: var(--wp--preset--color--base, #f2f3f5);
	--sfc-f-display: var(--wp--preset--font-family--display, "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif);
	--sfc-f-ui: var(--wp--preset--font-family--ui, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
	--sfc-f-body: var(--wp--preset--font-family--body, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
	--sfc-f-num: var(--wp--preset--font-family--num, "Space Grotesk", var(--wp--preset--font-family--ui, "Inter"), system-ui, sans-serif);
	--sfc-shadow-1: var(--wp--preset--shadow--depth-1, 0 1px 2px rgba(14, 17, 22, 0.06), 0 2px 6px rgba(14, 17, 22, 0.04));
	--sfc-shadow-2: var(--wp--preset--shadow--depth-2, 0 2px 4px rgba(14, 17, 22, 0.05), 0 10px 28px rgba(14, 17, 22, 0.08));
	--sfc-shadow-3: var(--wp--preset--shadow--depth-3, 0 6px 14px rgba(14, 17, 22, 0.08), 0 22px 48px rgba(14, 17, 22, 0.12));
	--sfc-shadow-4: var(--wp--preset--shadow--depth-4, 0 12px 28px rgba(14, 17, 22, 0.12), 0 40px 80px rgba(14, 17, 22, 0.18));
	--sfc-ring: 0 0 0 3px color-mix(in srgb, var(--sfc-accent-2) 32%, transparent);
	--sfc-r-card: var(--sfcd-radius-card, 16px);
	--sfc-r-btn: var(--sfcd-radius-btn, 12px);
	--sfc-r-input: var(--sfcd-radius-input, 12px);
	--sfc-gap: clamp(16px, 2vw, 28px);
	--sfc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	box-sizing: border-box;
	color: var(--sfc-ink);
	font-family: var(--sfc-f-body);
}

:where(.sfcd-search-form, .sfcd-search-filters, .sfcd-vehicle-grid, .sfcd-vehicle-carousel, .sfcd-make-grid, .sfcd-inventory-stats, .sfcd-stats-counter) *,
:where(.sfcd-search-form, .sfcd-search-filters, .sfcd-vehicle-grid, .sfcd-vehicle-carousel, .sfcd-make-grid, .sfcd-inventory-stats, .sfcd-stats-counter) *::before,
:where(.sfcd-search-form, .sfcd-search-filters, .sfcd-vehicle-grid, .sfcd-vehicle-carousel, .sfcd-make-grid, .sfcd-inventory-stats, .sfcd-stats-counter) *::after {
	box-sizing: border-box;
}

/* ======================================================================
   1. SHARED ATOMS
   ====================================================================== */

:where(.sfcd-search-form, .sfcd-search-filters, .sfcd-vehicle-grid, .sfcd-make-grid, .sfcd-inventory-stats) .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

:where(.sfcd-search-form, .sfcd-search-filters, .sfcd-vehicle-carousel, .sfcd-make-grid, .sfcd-inventory-stats, .sfcd-stats-counter, .sfcd-gempty) .sfcd-i {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/* Select with chevron. */
.sfcd-sel {
	position: relative;
	display: block;
	min-width: 0;
}

.sfcd-sel > select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	padding-right: 26px;
	cursor: pointer;
	text-overflow: ellipsis;
}

.sfcd-sel > .sfcd-i {
	position: absolute;
	top: 50%;
	right: 2px;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--sfc-muted);
}

.sfcd-sel > select:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

/* Framed variant: a bordered control (forms, popovers, sheets). */
.sfcd-sel.is-framed > select {
	min-height: 48px;
	padding: 0 40px 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-input);
	background-color: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 600 15px/1.3 var(--sfc-f-ui);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sfcd-sel.is-framed > .sfcd-i {
	right: 14px;
}

.sfcd-sel.is-framed > select:focus-visible {
	outline: none;
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

@media (hover: hover) {
	.sfcd-sel.is-framed > select:hover:not(:disabled) {
		border-color: color-mix(in srgb, var(--sfc-ink) 35%, transparent);
	}
}

:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-sel > select:focus-visible {
	outline: none;
}

:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-field {
	position: relative;
	min-width: 0;
}

:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-field__label {
	display: block;
	margin: 0;
	color: var(--sfc-muted);
	font: 700 11px/1.2 var(--sfc-f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:where(.sfcd-search-filters) .sfcd-input {
	font-family: var(--sfc-f-ui);
}

/* Facet counts: small, tabular, muted; empty badges take no space. */
.sfcd-fcount {
	color: var(--sfc-muted);
	font: 700 11px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.sfcd-fcount:empty {
	display: none;
}

/* Zero-count options stay in place but step back (SPEC: muted, never removed). */
:where(.sfcd-search-form, .sfcd-search-filters) [data-empty] {
	/* Colour, not opacity: a half-transparent label drops below 3:1. */
	color: var(--sfc-muted);
}

:where(.sfcd-search-form, .sfcd-search-filters) option[data-empty] {
	opacity: 1;
	color: var(--sfc-muted);
}

/* Quick chips (links). */
:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-qchip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--sfc-edge);
	border-radius: 999px;
	background: var(--sfc-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--sfc-ink);
	font: 600 13px/1 var(--sfc-f-ui);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-qchip .sfcd-i {
	color: var(--sfc-accent);
}

:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-qchip:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-qchip:hover {
		background: var(--sfc-panel);
		border-color: var(--sfc-line);
		transform: translateY(-1px);
	}
}

/* Scroll container for wide tables. */
.sfcd-inventory-stats .sfcd-scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

/* Empty state shared by the blocks. */
:where(.sfcd-vehicle-grid, .sfcd-vehicle-carousel, .sfcd-make-grid, .sfcd-inventory-stats) .sfcd-empty {
	margin: 0;
	padding: 28px 20px;
	border: 1px dashed var(--sfc-line);
	border-radius: var(--sfc-r-card);
	background: color-mix(in srgb, var(--sfc-panel) 70%, transparent);
	color: var(--sfc-muted);
	font: 500 15px/1.5 var(--sfc-f-ui);
	text-align: center;
}

/* Generic grid used by vehicle-grid. */
.sfcd-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sfc-gap);
	align-items: stretch;
}

.sfcd-grid > * {
	min-width: 0;
}

@media (min-width: 600px) {
	.sfcd-grid:not([style*="--sfcd-cols:1"]) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.sfcd-grid:not([style*="--sfcd-cols:1"]) {
		grid-template-columns: repeat(var(--sfcd-cols, 3), minmax(0, 1fr));
	}
}

/* Local fallback for a card when card.php is not loaded. */
.sfcd-card--fallback {
	overflow: hidden;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-card);
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-card--fallback .sfcd-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--sfc-panel-2);
}

.sfcd-card--fallback .sfcd-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sfcd-card--fallback .sfcd-card__body {
	padding: 14px 16px 16px;
}

.sfcd-card--fallback .sfcd-card__title {
	margin: 0 0 4px;
	font: 700 17px/1.25 var(--sfc-f-display);
}

.sfcd-card--fallback .sfcd-card__title a {
	color: inherit;
	text-decoration: none;
}

.sfcd-card--fallback .sfcd-card__price {
	margin: 0;
	font: 700 18px/1.3 var(--sfc-f-num);
}

.sfcd-card--fallback .sfcd-card__facts {
	margin: 4px 0 0;
	color: var(--sfc-muted);
	font: 500 13px/1.4 var(--sfc-f-ui);
}

/* ======================================================================
   2. SEARCH FORM  (hero | bar | stacked)
   ====================================================================== */

/* The form lays itself out by ITS OWN width (container queries), not the
 * viewport, so it works in a hero, a content column, a sidebar, an Elementor
 * inner container or the editor canvas alike. The intrinsic inline size keeps
 * it from collapsing inside shrink-to-fit parents (size containment). */
.sfcd-search-form {
	position: relative;
	z-index: 5;
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	container: sfcd-sf / inline-size;
	contain-intrinsic-inline-size: 300px;
}

.sfcd-sf {
	position: relative;
	z-index: 2;
	margin: 0;
}

.sfcd-sf .sfcd-field__label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Condition tabs (radio group styled as a segmented control). */
.sfcd-sf__tabs {
	display: inline-flex;
	max-width: 100%;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--sfc-panel-2);
	overflow-x: auto;
	scrollbar-width: none;
}

.sfcd-sf__tabs::-webkit-scrollbar {
	display: none;
}

.sfcd-sf__tab {
	position: relative;
	display: inline-flex;
	flex: none;
	cursor: pointer;
}

:is(.sfcd-sf__tab, .sfcd-fseg__opt, .sfcd-fpill, .sfcd-fbody, .sfcd-swatch, .sfcd-bchip, .sfcd-fcheck) > input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.sfcd-sf__tab > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 18px;
	border-radius: 999px;
	color: var(--sfc-muted);
	font: 700 14px/1 var(--sfc-f-ui);
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sfcd-sf__tab input:checked + span {
	background: var(--sfc-ink);
	color: var(--sfc-base);
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-sf__tab input:checked + span .sfcd-fcount {
	color: color-mix(in srgb, var(--sfc-base) 72%, transparent);
}

.sfcd-sf__tab input:focus-visible + span {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfcd-sf__tab:hover input:not(:checked) + span {
		color: var(--sfc-ink);
	}
}

/* The fields row: cells divided by a 1px gap over the line colour, so every
 * wrapping (phone, tablet, desktop) keeps clean dividers. */
.sfcd-sf__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--sfc-line);
}

.sfcd-sf__fields > .sfcd-field {
	flex: 1 1 100%;
	padding: 12px 16px;
	background: var(--sfc-panel);
}

.sfcd-sf__fields > .sfcd-field--make,
.sfcd-sf__fields > .sfcd-field--model {
	flex: 1 1 calc(50% - 1px);
}

.sfcd-sf .sfcd-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sfcd-sf .sfcd-field__control {
	width: 100%;
	min-height: 28px;
	padding: 0 24px 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--sfc-ink);
	font: 600 15px/1.3 var(--sfc-f-ui);
	box-shadow: none;
}

.sfcd-sf .sfcd-field__control:focus-visible {
	outline: none;
	box-shadow: none;
}

.sfcd-sf .sfcd-field:focus-within {
	background: color-mix(in srgb, var(--sfc-panel-2) 55%, var(--sfc-panel));
}

/* Keyboard focus needs more than a faint tint: inset ring on the cell (the selects draw no outline of their own). */
.sfcd-sf__fields > .sfcd-field:has(.sfcd-field__control:focus-visible) {
	box-shadow: inset 0 0 0 2px var(--sfc-accent-2);
}

.sfcd-field__wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.sfcd-field__wrap > .sfcd-i {
	color: var(--sfc-accent);
}

.sfcd-field__wrap > .sfcd-sel {
	flex: 1 1 auto;
	min-width: 0;
}

.sfcd-field__range {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sfcd-field__range > .sfcd-sel {
	flex: 1 1 0;
}

.sfcd-field__dash {
	color: var(--sfc-muted);
	font: 600 14px/1 var(--sfc-f-ui);
}

.sfcd-sf__go {
	display: flex;
	flex: 1 1 100%;
	padding: 8px;
	background: var(--sfc-panel);
}

.sfcd-sf__submit {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: 14px;
	background: var(--sfc-accent);
	color: var(--sfc-on-fill);
	font: 800 16px/1 var(--sfc-f-ui);
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--sfc-accent) 80%, transparent);
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sfcd-sf__submit:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--sfc-accent-2) 45%, transparent);
	outline-offset: 2px;
}

.sfcd-sf__submit [data-sfcd-count-text] {
	font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
	.sfcd-sf__submit:hover {
		background: color-mix(in srgb, var(--sfc-accent) 88%, var(--sfc-ink));
		transform: translateY(-1px);
		box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--sfc-accent) 85%, transparent);
	}
}

/* Narrow forms (phones, sidebars): the tabs share the width, counts step aside. */
@container sfcd-sf (max-width: 520px) {
	.sfcd-sf__tabs {
		display: flex;
		width: 100%;
	}

	.sfcd-sf__tab {
		flex: 1 1 0;
	}

	.sfcd-sf__tab > span {
		justify-content: center;
		width: 100%;
		padding: 0 8px;
	}

	.sfcd-sf__tab .sfcd-fcount {
		display: none;
	}
}

/* Body-type chips: a horizontal row that scrolls on phones. */
.sfcd-sf__bodies {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sfcd-sf__bodies-row {
	display: flex;
	gap: 8px;
	margin: 0 -2px;
	padding: 12px 2px 2px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sfcd-sf__bodies-row::-webkit-scrollbar {
	display: none;
}

.sfcd-bchip {
	position: relative;
	display: inline-flex;
	flex: none;
	cursor: pointer;
}

.sfcd-bchip > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px 0 10px;
	border: 1px solid var(--sfc-edge);
	border-radius: 999px;
	background: var(--sfc-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--sfc-ink);
	font: 700 13px/1 var(--sfc-f-ui);
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sfcd-bchip > span .sfcd-i {
	color: var(--sfc-accent);
	transition: color 0.15s ease;
}

.sfcd-bchip input:checked + span {
	border-color: var(--sfc-ink);
	background: var(--sfc-ink);
	color: var(--sfc-base);
}

.sfcd-bchip input:checked + span .sfcd-i {
	color: var(--sfc-base);
}

.sfcd-bchip input:focus-visible + span {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfcd-bchip:hover input:not(:checked) + span {
		border-color: var(--sfc-ink);
		transform: translateY(-1px);
	}
}

.sfcd-bchip[data-empty] {
	opacity: 0.55;
}

/* Hero: glass panel. */
.sfcd-search-form--hero .sfcd-sf {
	padding: 10px;
	border: 1px solid var(--sfc-edge);
	border-radius: 24px;
	background: var(--sfc-glass);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: var(--sfc-shadow-3), inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent);
	text-align: left;
}

.sfcd-search-form--hero .sfcd-sf__tabs {
	margin: 2px 2px 10px;
}

.sfcd-search-form--hero .sfcd-sf__fields {
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-search-form--hero .sfcd-sf__bodies-row {
	padding: 12px 6px 4px;
}

/* Bar: one compact row on a solid panel. */
.sfcd-search-form--bar .sfcd-sf {
	padding: 6px;
	border: 1px solid var(--sfc-line);
	border-radius: 18px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-search-form--bar .sfcd-sf__tabs {
	margin: 4px 4px 8px;
}

.sfcd-search-form--bar .sfcd-sf__submit {
	min-height: 48px;
}

.sfcd-search-form--bar .sfcd-sf__bodies-row {
	padding: 10px 4px 4px;
}

.sfcd-search-form--bar .sfcd-bchip > span {
	background: var(--sfc-panel-2);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Stacked: sidebar card with framed controls. */
.sfcd-search-form--stacked .sfcd-sf {
	padding: 18px;
	border: 1px solid var(--sfc-line);
	border-radius: 20px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-search-form--stacked .sfcd-sf__tabs {
	display: flex;
	margin-bottom: 14px;
}

.sfcd-search-form--stacked .sfcd-sf__tab {
	flex: 1 1 0;
}

.sfcd-search-form--stacked .sfcd-sf__tab > span {
	justify-content: center;
	width: 100%;
	padding: 0 8px;
}

.sfcd-search-form--stacked .sfcd-sf__fields {
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 14px;
	overflow: visible;
	border-radius: 0;
	background: transparent;
}

.sfcd-search-form--stacked .sfcd-sf__fields > .sfcd-field,
.sfcd-search-form--stacked .sfcd-sf__fields > .sfcd-field--make,
.sfcd-search-form--stacked .sfcd-sf__fields > .sfcd-field--model {
	flex: none;
	padding: 0;
	background: transparent;
}

.sfcd-search-form--stacked .sfcd-sf .sfcd-field:focus-within {
	background: transparent;
}

.sfcd-search-form--stacked .sfcd-sf .sfcd-field {
	gap: 6px;
}

.sfcd-search-form--stacked .sfcd-sf .sfcd-field__control {
	min-height: 48px;
	padding: 0 38px 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-input);
	background: var(--sfc-panel-2);
}

.sfcd-search-form--stacked .sfcd-sf .sfcd-field__control:focus-visible {
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

.sfcd-search-form--stacked .sfcd-sel > .sfcd-i {
	right: 14px;
}

.sfcd-search-form--stacked .sfcd-field__wrap {
	position: relative;
}

.sfcd-search-form--stacked .sfcd-field__wrap > .sfcd-i {
	position: absolute;
	left: 14px;
	z-index: 1;
	pointer-events: none;
}

.sfcd-search-form--stacked .sfcd-field__wrap .sfcd-field__control {
	padding-left: 40px;
}

.sfcd-search-form--stacked .sfcd-sf__go {
	padding: 6px 0 0;
	background: transparent;
}

.sfcd-search-form--stacked .sfcd-sf__bodies-row {
	flex-wrap: wrap;
	overflow: visible;
	padding-top: 16px;
}

.sfcd-search-form--stacked .sfcd-bchip > span {
	min-height: 40px;
	background: var(--sfc-panel-2);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Quick chips. */
.sfcd-sf__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px 10px;
	margin-top: 16px;
}

/* Centred heroes: core's text-align class (or `is-chips-center`) centres the row. */
.sfcd-search-form.has-text-align-center .sfcd-sf__chips,
.sfcd-search-form.is-chips-center .sfcd-sf__chips {
	justify-content: center;
}

.sfcd-sf__chips ul {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfcd-sf__chips li {
	display: inline-flex;
}

.sfcd-sf__chips-label {
	color: inherit;
	opacity: 0.85;
	font: 700 13px/1 var(--sfc-f-ui);
	letter-spacing: 0.02em;
}

.sfcd-search-form--stacked .sfcd-sf__chips {
	justify-content: flex-start;
}

/* Hero sits on photography: the label is on-photo white. */
.sfcd-search-form--hero .sfcd-sf__chips-label {
	color: #fff;
	opacity: 1;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Wider layouts — by the form's own width.
 *  <600px  : phones / narrow columns — make | model, price, [year], button.
 *  600px+  : tablet — make | model | price (+ year) then the button row.
 *  960px+  : one row, button at the end.
 *  1140px+ : the bar layout also pulls its tabs into the row. */
@container sfcd-sf (min-width: 600px) {
	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field--make,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field--make,
	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field--model,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field--model {
		flex: 1 1 calc(33.333% - 1px);
	}

	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field--price,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field--price {
		flex: 1.4 1 calc(33.333% - 1px);
	}

	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field--year,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field--year {
		flex: 1 1 220px;
	}

	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field {
		padding: 12px 18px;
	}

	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field {
		padding: 10px 16px;
	}
}

@container sfcd-sf (min-width: 960px) {
	.sfcd-search-form--hero .sfcd-sf__fields,
	.sfcd-search-form--bar .sfcd-sf__fields {
		flex-wrap: nowrap;
	}

	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field {
		flex: 1 1 0;
		padding: 14px 18px;
	}

	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field--make,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field--make,
	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field--model,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field--model {
		flex-grow: 1.15;
	}

	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-field--price,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field--price {
		flex-grow: 1.55;
	}

	.sfcd-search-form--hero .sfcd-sf__fields > .sfcd-sf__go,
	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-sf__go {
		flex: none;
	}

	.sfcd-search-form--bar .sfcd-sf__fields > .sfcd-field {
		padding: 10px 16px;
	}
}

@container sfcd-sf (min-width: 700px) {
	/* Wide forms keep every body type on screen: wrap instead of scrolling. */
	.sfcd-sf__bodies-row {
		flex-wrap: wrap;
		overflow: visible;
	}
}

@container sfcd-sf (min-width: 1000px) {
	.sfcd-search-form--hero .sfcd-sf {
		padding: 12px;
	}

	.sfcd-search-form--hero .sfcd-sf__submit {
		min-height: 60px;
		padding: 0 34px;
	}
}

@container sfcd-sf (min-width: 1140px) {
	.sfcd-search-form--bar.has-tabs .sfcd-sf {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	.sfcd-search-form--bar.has-tabs .sfcd-sf__tabs {
		flex: none;
		margin: 0 4px;
	}

	.sfcd-search-form--bar.has-tabs .sfcd-sf__fields {
		flex: 1 1 0;
		min-width: 0;
	}

	.sfcd-search-form--bar.has-tabs .sfcd-sf__bodies {
		flex: 1 1 100%;
	}
}

/* ======================================================================
   3. SEARCH FILTERS  (bar | sidebar ; sheet on phones)
   ====================================================================== */

.sfcd-search-filters {
	position: relative;
	z-index: 20;
	width: 100%;
}

/* An open popover paints above whatever follows (a second bar, sticky headers). */
.sfcd-search-filters:has(.sfcd-fpop[open]) {
	z-index: 50;
}

.sfcd-filters__form {
	margin: 0;
}

.sfcd-filters__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 10px;
}

.sfcd-filters__panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.sfcd-filters__sheet-head {
	display: none;
}

.sfcd-filters__fields {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sfcd-filters__item {
	min-width: 0;
}

/* Pill-shaped buttons: popover summaries, the phone Filters button, sort. */
.sfcd-fpop__btn,
.sfcd-filters__open,
.sfcd-filters__sort .sfcd-sel,
.sfcd-filters__save {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 600 14px/1 var(--sfc-f-ui);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.sfcd-filters__sort .sfcd-sel:focus-within {
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

.sfcd-filters__sort .sfcd-field__control {
	min-height: 42px;
	padding: 0 22px 0 0;
	border: 0;
	background: transparent;
	color: var(--sfc-ink);
	font: 600 14px/1 var(--sfc-f-ui);
	box-shadow: none;
}

.sfcd-filters__sort .sfcd-field__control:focus {
	outline: none;
	box-shadow: none;
}

/* Condition: a segmented, multi-select control. */
.sfcd-fseg {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
}

.sfcd-fseg__opt {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.sfcd-fseg__opt > span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--sfc-muted);
	font: 700 13px/1 var(--sfc-f-ui);
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sfcd-fseg__opt input:checked + span {
	background: var(--sfc-ink);
	color: var(--sfc-base);
}

.sfcd-fseg__opt input:checked + span .sfcd-fcount {
	color: color-mix(in srgb, var(--sfc-base) 70%, transparent);
}

.sfcd-fseg__opt input:focus-visible + span {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 1px;
}

@media (hover: hover) {
	.sfcd-fseg__opt:hover input:not(:checked) + span {
		color: var(--sfc-ink);
	}
}

/* Popovers (<details>). */
.sfcd-fpop {
	position: relative;
}

.sfcd-fpop > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.sfcd-fpop > summary::-webkit-details-marker {
	display: none;
}

.sfcd-fpop__btn:focus-visible {
	outline: none;
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

.sfcd-fpop__value:empty,
.sfcd-fpop__n[hidden] {
	display: none;
}

.sfcd-fpop__value {
	max-width: 22ch;
	overflow: hidden;
	color: var(--sfc-accent-2);
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfcd-fpop__title + .sfcd-fpop__value:not(:empty)::before {
	content: "·";
	margin-right: 6px;
	color: var(--sfc-muted);
}

.sfcd-fpop__n,
.sfcd-fgroup__n {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--sfc-accent-2);
	color: var(--sfc-on-fill);
	font: 800 11px/1 var(--sfc-f-num);
	font-style: normal;
}

.sfcd-fpop__btn > .sfcd-i {
	color: var(--sfc-muted);
	transition: transform 0.2s ease;
}

.sfcd-fpop[open] > .sfcd-fpop__btn {
	border-color: var(--sfc-ink);
}

.sfcd-fpop[open] > .sfcd-fpop__btn > .sfcd-i {
	transform: rotate(180deg);
}

.sfcd-fpop.is-active > .sfcd-fpop__btn {
	border-color: color-mix(in srgb, var(--sfc-accent-2) 55%, transparent);
	background: color-mix(in srgb, var(--sfc-turf) 70%, var(--sfc-panel));
}

.sfcd-fpop__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: max-content;
	min-width: 300px;
	max-width: min(560px, calc(100vw - 32px));
	max-height: min(76vh, 640px);
	padding: 18px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--sfc-line);
	border-radius: 18px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-4);
	animation: sfcd-pop-in 0.18s var(--sfc-ease);
}

.sfcd-fpop.is-right > .sfcd-fpop__panel {
	right: 0;
	left: auto;
}

.sfcd-fpop--wide > .sfcd-fpop__panel {
	width: min(520px, calc(100vw - 32px));
}

.sfcd-fpop--xwide > .sfcd-fpop__panel {
	width: min(680px, calc(100vw - 32px));
	max-width: min(680px, calc(100vw - 32px));
}

@keyframes sfcd-pop-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

.sfcd-fpop__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.sfcd-fpop__grid .sfcd-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sfcd-fpop__foot {
	position: sticky;
	bottom: -18px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px -18px -18px;
	padding: 14px 18px 18px;
	border-top: 1px solid var(--sfc-line);
	background: var(--sfc-panel);
}

.sfcd-fpop__clear {
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--sfc-muted);
	font: 700 14px/1 var(--sfc-f-ui);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.sfcd-fpop__clear:hover {
	color: var(--sfc-ink);
}

.sfcd-fpop__apply {
	min-height: 42px;
	border-radius: 999px;
}

.sfcd-fpop__apply.is-loading,
.sfcd-filters__apply.is-loading {
	opacity: 0.75;
}

/* Sections inside a panel ("More filters"). */
.sfcd-fsec {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sfcd-fsec > legend {
	padding: 0;
	margin-bottom: 10px;
}

.sfcd-fmore {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px 28px;
}

@media (min-width: 640px) {
	.sfcd-fmore {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sfcd-fmore > .sfcd-fsec:has(.sfcd-fgroups, .sfcd-fswatches, .sfcd-radius, .sfcd-fkw) {
		grid-column: 1 / -1;
	}
}

/* Pills (fuel, transmission, drivetrain, seats, MPG). */
.sfcd-fpills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sfcd-fpill {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.sfcd-fpill > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 52px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 700 13px/1 var(--sfc-f-ui);
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sfcd-fpill > span b {
	font-weight: 700;
}

.sfcd-fpill input:checked + span {
	border-color: var(--sfc-ink);
	background: var(--sfc-ink);
	color: var(--sfc-base);
}

.sfcd-fpill input:checked + span .sfcd-fcount {
	color: color-mix(in srgb, var(--sfc-base) 70%, transparent);
}

.sfcd-fpill input:focus-visible + span {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfcd-fpill:hover input:not(:checked) + span {
		border-color: var(--sfc-ink);
	}
}

/* Body types: silhouette tiles. */
.sfcd-fbodies {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

@media (min-width: 480px) {
	.sfcd-fbodies {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.sfcd-fbody {
	position: relative;
	display: flex;
	cursor: pointer;
}

.sfcd-fbody > span {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 84px;
	padding: 10px 6px;
	border: 1px solid var(--sfc-line);
	border-radius: 14px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 700 12px/1.1 var(--sfc-f-ui);
	text-align: center;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sfcd-fbody > span .sfcd-bodyicon {
	width: 52px;
	height: 26px;
	color: var(--sfc-muted);
	transition: color 0.15s ease;
}

.sfcd-fbody > span b {
	font-weight: 700;
}

.sfcd-fbody input:checked + span {
	border-color: var(--sfc-ink);
	background: var(--sfc-ink);
	color: var(--sfc-base);
}

.sfcd-fbody input:checked + span .sfcd-bodyicon {
	color: var(--sfc-base);
}

.sfcd-fbody input:checked + span .sfcd-fcount {
	color: color-mix(in srgb, var(--sfc-base) 70%, transparent);
}

.sfcd-fbody input:focus-visible + span {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfcd-fbody:hover input:not(:checked) + span {
		border-color: var(--sfc-ink);
		transform: translateY(-1px);
	}
}

/* Colour swatches: a data-coloured dot + the colour's name (never colour alone). */
.sfcd-fswatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sfcd-swatch {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.sfcd-swatch > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 12px 0 8px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	font: 600 13px/1 var(--sfc-f-ui);
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.sfcd-swatch__dot {
	display: block;
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sfcd-swatch, #9aa3b2);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--sfc-ink) 24%, transparent), inset 0 -4px 6px rgba(14, 17, 22, 0.14);
}

.sfcd-swatch input:checked + span {
	border-color: var(--sfc-ink);
	box-shadow: inset 0 0 0 1px var(--sfc-ink);
}

.sfcd-swatch input:checked + span .sfcd-swatch__dot {
	box-shadow: 0 0 0 2px var(--sfc-panel), 0 0 0 3.5px var(--sfc-ink);
}

.sfcd-swatch input:focus-visible + span {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfcd-swatch:hover input:not(:checked) + span {
		border-color: var(--sfc-ink);
	}
}

/* Feature checkboxes, grouped. */
.sfcd-fgroups {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--sfc-line);
}

.sfcd-fgroup {
	border-bottom: 1px solid var(--sfc-line);
}

.sfcd-fgroup > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--sfc-ink);
	font: 700 14px/1.2 var(--sfc-f-ui);
	list-style: none;
	cursor: pointer;
}

.sfcd-fgroup > summary::-webkit-details-marker {
	display: none;
}

.sfcd-fgroup > summary > span {
	flex: 1 1 auto;
}

.sfcd-fgroup > summary > .sfcd-i {
	color: var(--sfc-muted);
	transition: transform 0.2s ease;
}

.sfcd-fgroup[open] > summary > .sfcd-i {
	transform: rotate(180deg);
}

.sfcd-fgroup__n[hidden] {
	display: none;
}

.sfcd-fchecks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 14px;
	padding: 2px 0 14px;
}

.sfcd-fcheck {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	color: var(--sfc-ink);
	font: 500 14px/1.25 var(--sfc-f-ui);
	cursor: pointer;
}

.sfcd-fcheck .sfcd-fcount {
	margin-left: auto;
}

.sfcd-fcheck__box {
	display: grid;
	flex: none;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1.5px solid color-mix(in srgb, var(--sfc-ink) 35%, transparent);
	border-radius: 6px;
	background: var(--sfc-panel);
	color: transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sfcd-fcheck input:checked + .sfcd-fcheck__box {
	border-color: var(--sfc-accent-2);
	background: var(--sfc-accent-2);
	color: var(--sfc-on-fill);
}

.sfcd-fcheck input:focus-visible + .sfcd-fcheck__box {
	box-shadow: var(--sfc-ring);
}

/* Helper line under a control. */
.sfcd-fnote {
	margin: 8px 0 0;
	color: var(--sfc-muted);
	font: 500 12.5px/1.45 var(--sfc-f-ui);
}

.sfcd-fnote:empty {
	display: none;
}

.sfcd-fkw {
	width: 100%;
	min-height: 48px;
}

/* Radius: place box + locate button + range. */
.sfcd-radius {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
}

.sfcd-radius__label {
	margin-top: 4px;
}

.sfcd-radius__label:first-child {
	margin-top: 0;
}

.sfcd-radius__place {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 6px 0 14px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-input);
	background: var(--sfc-panel);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sfcd-radius__place:focus-within {
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

.sfcd-radius__place > .sfcd-i {
	color: var(--sfc-accent);
}

.sfcd-radius__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sfc-ink);
	font: 600 15px/1.3 var(--sfc-f-ui);
	-webkit-appearance: none;
	appearance: none;
}

.sfcd-radius__input:focus {
	outline: none;
}

.sfcd-radius__input::placeholder {
	color: var(--sfc-muted);
	font-weight: 500;
	opacity: 1;
}

.sfcd-radius__locate {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--sfc-panel-2);
	color: var(--sfc-ink);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sfcd-radius__locate:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 1px;
}

/* search.js wraps the place input in a type-ahead (.sfcd-combo--place). */
.sfcd-radius .sfcd-combo {
	position: static;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
}

.sfcd-radius .sfcd-combo__clear {
	display: none;
	flex: none;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sfc-panel-2);
	color: var(--sfc-muted);
	cursor: pointer;
}

.sfcd-radius .sfcd-combo.has-value .sfcd-combo__clear {
	display: grid;
}

.sfcd-radius .sfcd-combo__clear:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 1px;
}

.sfcd-radius .sfcd-combo__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 70;
	max-height: 240px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	border: 1px solid var(--sfc-line);
	border-radius: 14px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-3);
}

.sfcd-radius .sfcd-combo__list[hidden] {
	display: none;
}

.sfcd-radius .sfcd-combo__opt {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--sfc-ink);
	font: 600 14px/1.3 var(--sfc-f-ui);
	cursor: pointer;
}

.sfcd-radius .sfcd-combo__opt.is-active,
.sfcd-radius .sfcd-combo__opt[aria-selected="true"] {
	background: var(--sfc-panel-2);
}

.sfcd-radius .sfcd-combo__opt.is-remote {
	color: var(--sfc-accent-2);
}

.sfcd-radius .sfcd-combo__none {
	padding: 10px 12px;
	color: var(--sfc-muted);
	font: 500 14px/1.3 var(--sfc-f-ui);
}

.sfcd-radius__locate[aria-pressed="true"] {
	background: var(--sfc-ink);
	color: var(--sfc-base);
}

.sfcd-place__status {
	margin: 2px 0 0;
	color: var(--sfc-muted);
	font: 500 12.5px/1.45 var(--sfc-f-ui);
}

.sfcd-place__status[hidden] {
	display: none;
}

.sfcd-place__status[data-state="error"] {
	color: var(--sfc-accent);
}

.sfcd-place__attrib {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
}

.sfcd-place__attrib a {
	color: inherit;
	text-decoration: underline;
}

.sfcd-radius__locate.is-busy {
	color: var(--sfc-accent-2);
	animation: sfcd-pulse 1s ease-in-out infinite;
}

@media (hover: hover) {
	.sfcd-radius__locate:hover {
		background: var(--sfc-ink);
		color: var(--sfc-base);
	}
}

@keyframes sfcd-pulse {
	50% {
		opacity: 0.45;
	}
}

.sfcd-radius__range {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sfcd-radius__range input[type="range"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 28px;
	margin: 0;
	background: transparent;
	accent-color: var(--sfc-accent-2);
	cursor: pointer;
}

.sfcd-radius__range input[type="range"]:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.sfcd-radius__out {
	flex: none;
	min-width: 56px;
	color: var(--sfc-ink);
	font: 800 14px/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

/* Actions + meta. */
.sfcd-filters__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.sfcd-filters__reset {
	color: var(--sfc-muted);
	font: 700 14px/1 var(--sfc-f-ui);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfcd-filters__reset:hover {
	color: var(--sfc-ink);
}

.sfcd-filters__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--sfc-accent);
	color: var(--sfc-on-fill);
	font: 800 14px/1 var(--sfc-f-ui);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.sfcd-filters__apply:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--sfc-accent-2) 45%, transparent);
	outline-offset: 2px;
}

@media (hover: hover) {
	.sfcd-filters__apply:hover {
		background: color-mix(in srgb, var(--sfc-accent) 88%, var(--sfc-ink));
	}
}

.sfcd-filters__meta {
	display: flex;
	flex: 1 0 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.sfcd-filters__heading {
	margin: 0;
	color: var(--sfc-muted);
	font: 600 15px/1.25 var(--sfc-f-ui);
}

.sfcd-filters__heading strong {
	color: var(--sfc-ink);
	font-family: var(--sfc-f-num);
	font-size: 22px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.sfcd-filters__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.sfcd-filters__sort .sfcd-field__label {
	margin: 0;
}

.sfcd-filters__sort .sfcd-sel {
	padding: 0 14px;
}

.sfcd-filters__sort .sfcd-sel > .sfcd-i {
	right: 12px;
}

.sfcd-filters__save {
	cursor: pointer;
	color: var(--sfc-ink);
}

.sfcd-filters__save .sfcd-i {
	color: var(--sfc-accent);
}

.sfcd-filters__save[aria-pressed="true"] {
	border-color: var(--sfc-ink);
	background: var(--sfc-ink);
	color: var(--sfc-base);
}

.sfcd-filters__save[aria-pressed="true"] .sfcd-i {
	color: var(--sfc-base);
	fill: currentColor;
}

.sfcd-filters__save:focus-visible {
	outline: none;
	border-color: var(--sfc-accent-2);
	box-shadow: var(--sfc-ring);
}

@media (hover: hover) {
	.sfcd-filters__save:hover:not([aria-pressed="true"]) {
		border-color: var(--sfc-ink);
	}
}

.sfcd-filters__open {
	display: none;
	cursor: pointer;
}

.sfcd-filters__badge {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--sfc-accent);
	color: var(--sfc-on-fill);
	font: 800 11px/1 var(--sfc-f-num);
}

/* Active chips. */
.sfcd-filters__chips {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfcd-filters__chips li {
	display: inline-flex;
}

.sfcd-search-filters .sfcd-achip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 10px 0 12px;
	border: 1px solid color-mix(in srgb, var(--sfc-accent-2) 30%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--sfc-turf) 75%, var(--sfc-panel));
	color: var(--sfc-ink);
	font: 700 13px/1 var(--sfc-f-ui);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sfcd-search-filters .sfcd-achip:hover {
	border-color: var(--sfc-accent-2);
}

.sfcd-search-filters .sfcd-achip:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

.sfcd-search-filters .sfcd-achip .sfcd-i {
	color: var(--sfc-muted);
}

.sfcd-filters__clear {
	color: var(--sfc-accent-2);
	font: 700 13px/1 var(--sfc-f-ui);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfcd-filters__scrim {
	display: none;
}

/* Desktop bar: one line of pills, a meta row under it. */
@media (min-width: 769px) {
	.sfcd-search-filters--bar .sfcd-filters__panel {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	/* The meta row joins the bar: sort + save sit at the end of the pill row
	 * when there is room, heading + chips take their own row below. */
	.sfcd-search-filters--bar .sfcd-filters__meta {
		display: contents;
	}

	.sfcd-search-filters--bar .sfcd-filters__sort {
		order: 2;
	}

	.sfcd-search-filters--bar .sfcd-filters__save {
		order: 3;
	}

	.sfcd-search-filters--bar .sfcd-filters__heading,
	.sfcd-search-filters--bar .sfcd-filters__chips {
		order: 5;
		flex: 1 0 100%;
	}

	.sfcd-search-filters--bar .sfcd-filters__heading {
		order: 4;
	}

	/* Pre-paint: `html.sfcd-js` (CORE scheme script in <head>) already lays the
	 * bar out as carousel.js will (per-popover Apply, no Reset/Apply row), so
	 * nothing moves when it boots (CLS). `.is-fallback` (inline guard printed
	 * before carousel.js) restores the no-JS form if the script never ran. */
	:is(.sfcd-js .sfcd-search-filters--bar:where(:not(.is-fallback)), .sfcd-search-filters--bar.is-enhanced) .sfcd-filters__actions {
		display: none;
	}

	/* Without JS the popovers are all open stacked panels: show the form. */
	.sfcd-search-filters--bar.is-fallback .sfcd-fpop__panel,
	.sfcd-search-filters--bar:not(.is-enhanced):not(.sfcd-js *) .sfcd-fpop__panel {
		position: static;
		width: auto;
		min-width: 0;
		max-width: none;
		max-height: none;
		margin-top: 10px;
		box-shadow: none;
		animation: none;
	}
}

/* Sidebar layout. */
.sfcd-search-filters--sidebar .sfcd-filters__bar {
	flex-direction: column;
	align-items: stretch;
}

.sfcd-search-filters--sidebar .sfcd-filters__meta {
	order: -1;
	justify-content: space-between;
}

.sfcd-search-filters--sidebar .sfcd-filters__sort {
	margin-left: 0;
}

.sfcd-search-filters--sidebar .sfcd-filters__panel {
	padding: 18px;
	border: 1px solid var(--sfc-line);
	border-radius: 20px;
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-search-filters--sidebar .sfcd-filters__fields {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.sfcd-search-filters--sidebar .sfcd-filters__item {
	padding: 0 0 16px;
	border-bottom: 1px solid var(--sfc-line);
}

.sfcd-search-filters--sidebar .sfcd-fseg {
	display: flex;
	width: 100%;
}

.sfcd-search-filters--sidebar .sfcd-fseg__opt {
	flex: 1 1 0;
}

.sfcd-search-filters--sidebar .sfcd-fseg__opt > span {
	justify-content: center;
	width: 100%;
	padding: 0 6px;
}

.sfcd-search-filters--sidebar .sfcd-filters__item .sfcd-field__label {
	margin-bottom: 8px;
}

.sfcd-search-filters--sidebar .sfcd-filters__actions {
	justify-content: space-between;
}

.sfcd-search-filters--sidebar .sfcd-filters__apply {
	flex: 1 1 auto;
	max-width: 220px;
}

/* Accordion sections (sidebar and the phone sheet). */
.sfcd-fpop--section {
	padding: 0;
	border-bottom: 1px solid var(--sfc-line);
}

.sfcd-fpop--section > .sfcd-fpop__btn {
	display: flex;
	width: 100%;
	min-height: 54px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--sfc-ink);
	font-size: 15px;
	font-weight: 800;
	box-shadow: none;
}

.sfcd-fpop--section > .sfcd-fpop__btn .sfcd-fpop__title {
	flex: 1 1 auto;
}

.sfcd-fpop--section > .sfcd-fpop__btn > .sfcd-i {
	margin-left: auto;
}

.sfcd-fpop--section.is-active > .sfcd-fpop__btn,
.sfcd-fpop--section[open] > .sfcd-fpop__btn {
	background: transparent;
}

.sfcd-fpop--section .sfcd-fpop__title + .sfcd-fpop__value:not(:empty)::before {
	content: none;
}

.sfcd-fpop--section .sfcd-fpop__value {
	max-width: 16ch;
	font-size: 13px;
}

.sfcd-fpop--section > .sfcd-fpop__panel {
	position: static;
	width: auto;
	min-width: 0;
	max-width: none;
	max-height: none;
	padding: 0 0 18px;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	animation: none;
}

.sfcd-fpop--section .sfcd-fpop__foot {
	display: none;
}

.sfcd-search-filters--sidebar .sfcd-fbodies {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sfcd-search-filters--sidebar .sfcd-fchecks {
	grid-template-columns: minmax(0, 1fr);
}

/* Phones: Filters button + bottom sheet. Keyed on the pre-paint `html.sfcd-js`
 * (not only on `.is-enhanced`, which carousel.js adds after load) so the bar
 * paints collapsed and the grid below never jumps up (CLS). No JS, or the
 * `.is-fallback` guard: the full stacked form stays inline. */
@media (max-width: 768px) {
	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__open {
		display: inline-flex;
		flex: none;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__bar {
		flex-wrap: wrap;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__meta {
		display: contents;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__open {
		order: 1;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__sort {
		order: 2;
		flex: 1 1 0;
		min-width: 0;
		margin-left: auto;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__sort .sfcd-sel {
		width: 100%;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__save {
		order: 2;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__meta .sfcd-filters__heading {
		order: 4;
		flex: 1 0 100%;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__meta .sfcd-filters__chips {
		order: 5;
		flex: 1 0 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__meta .sfcd-filters__chips::-webkit-scrollbar {
		display: none;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__sort .sfcd-field__label,
	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__save span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__save {
		width: 44px;
		justify-content: center;
		padding: 0;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__panel {
		position: fixed;
		inset: auto 0 0;
		z-index: 100001;
		display: flex;
		flex-direction: column;
		gap: 0;
		width: 100%;
		max-height: 88vh;
		max-height: 88dvh;
		padding: 0;
		border: 0;
		border-radius: 22px 22px 0 0;
		background: var(--sfc-panel);
		box-shadow: var(--sfc-shadow-4);
		transform: translateY(105%);
		visibility: hidden;
		transition: transform 0.3s var(--sfc-ease), visibility 0s linear 0.3s;
	}

	.sfcd-search-filters.is-sheet-open .sfcd-filters__panel {
		transform: none;
		visibility: visible;
		transition: transform 0.3s var(--sfc-ease);
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__sheet-head {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 18px 12px;
		border-bottom: 1px solid var(--sfc-line);
		font: 800 18px/1 var(--sfc-f-ui);
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__sheet-head::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		width: 40px;
		height: 4px;
		border-radius: 4px;
		background: var(--sfc-line);
		transform: translateX(-50%);
	}

	.sfcd-filters__close {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 1px solid var(--sfc-line);
		border-radius: 50%;
		background: var(--sfc-panel);
		color: var(--sfc-ink);
		cursor: pointer;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__fields {
		flex: 1 1 auto;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
		padding: 4px 18px 12px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.sfcd-search-filters.is-sheet-open {
		z-index: 100000;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__item {
		padding: 16px 0;
		border-bottom: 1px solid var(--sfc-line);
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fseg {
		display: flex;
		width: 100%;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fseg__opt {
		flex: 1 1 0;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fseg__opt > span {
		justify-content: center;
		width: 100%;
		padding: 0 6px;
	}

	/* Every popover becomes an accordion row in the sheet. */
	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop {
		border-bottom: 1px solid var(--sfc-line);
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop > .sfcd-fpop__btn {
		display: flex;
		width: 100%;
		min-height: 56px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--sfc-ink);
		font-size: 15px;
		font-weight: 800;
		box-shadow: none;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop > .sfcd-fpop__btn .sfcd-fpop__title {
		flex: 1 1 auto;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop > .sfcd-fpop__btn .sfcd-fpop__title + .sfcd-fpop__value:not(:empty)::before {
		content: none;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop > .sfcd-fpop__btn > .sfcd-i {
		margin-left: 0;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop.is-active > .sfcd-fpop__btn,
	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop[open] > .sfcd-fpop__btn {
		background: transparent;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop > .sfcd-fpop__panel {
		position: static;
		width: auto;
		min-width: 0;
		max-width: none;
		max-height: none;
		padding: 0 0 18px;
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		animation: none;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop__foot {
		display: none;
	}

	/* "More filters" is not an accordion row: its sections are rows themselves. */
	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop--more {
		border-bottom: 0;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop--more > .sfcd-fpop__btn {
		display: none;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop--more:not([open]) > .sfcd-fpop__panel {
		display: block;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fpop--more > .sfcd-fpop__panel {
		padding-bottom: 0;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fmore {
		display: block;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fmore > .sfcd-fsec {
		padding: 16px 0;
		border-bottom: 1px solid var(--sfc-line);
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fmore > .sfcd-fsec > legend {
		float: left;
		width: 100%;
		margin-bottom: 12px;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fmore > .sfcd-fsec > legend + * {
		clear: both;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fbodies {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__actions {
		justify-content: space-between;
		padding: 12px 18px max(12px, env(safe-area-inset-bottom));
		border-top: 1px solid var(--sfc-line);
		background: var(--sfc-panel);
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__apply {
		flex: 1 1 auto;
		max-width: 260px;
		min-height: 50px;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__scrim {
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: block;
		background: rgba(8, 10, 14, 0.5);
		opacity: 0;
		transition: opacity 0.25s ease;
	}

	.sfcd-search-filters.is-sheet-open .sfcd-filters__scrim {
		opacity: 1;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-filters__scrim[hidden] {
		display: none;
	}

	:is(.sfcd-js .sfcd-search-filters:where(:not(.is-fallback)), .sfcd-search-filters.is-enhanced) .sfcd-fchecks {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ======================================================================
   4. VEHICLE GRID + PAGINATION
   ====================================================================== */

.sfcd-vehicle-grid--row .sfcd-vehicle-grid__list {
	grid-template-columns: minmax(0, 1fr);
}

/* Phone layout "Swipe rail": one row of cards that scrolls sideways with
 * snap. Opt-in per block (mobileLayout=rail). */
@media (max-width: 599px) {
	.sfcd-vehicle-grid.is-mobile-rail .sfcd-vehicle-grid__list {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 82%;
		grid-template-columns: none;
		gap: 14px;
		margin-inline: calc(var(--sfcd-gutter, 16px) * -1);
		padding: 4px var(--sfcd-gutter, 16px) 16px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--sfcd-gutter, 16px);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.sfcd-vehicle-grid.is-mobile-rail .sfcd-vehicle-grid__list::-webkit-scrollbar {
		display: none;
	}

	.sfcd-vehicle-grid.is-mobile-rail .sfcd-vehicle-grid__list > * {
		scroll-snap-align: start;
	}
}

/* Archive grid with no results — same anatomy as the map-search empty state. */
.sfcd-gempty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: clamp(32px, 6vw, 64px) 24px;
	border: 1px dashed var(--sfc-line, rgba(14, 17, 22, 0.1));
	border-radius: var(--sfc-r-card, 16px);
	background: color-mix(in srgb, var(--sfc-panel, #fff) 70%, transparent);
	text-align: center;
}

.sfcd-gempty__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--sfc-accent, #c2410c) 12%, var(--sfc-panel, #fff));
	color: var(--sfc-accent, #c2410c);
}

.sfcd-gempty__title {
	margin: 8px 0 0;
	color: var(--sfc-ink, #0e1116);
	font: 800 clamp(22px, 2.6vw, 28px)/1.15 var(--sfc-f-display, system-ui);
	letter-spacing: -0.01em;
}

.sfcd-gempty__text {
	margin: 0;
	max-width: 48ch;
	color: var(--sfc-muted, #596372);
	font: 400 16px/1.6 var(--sfc-f-body, system-ui);
}

.sfcd-gempty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 8px 0 0;
}

.sfcd-gempty__actions .sfcd-btn {
	gap: 8px;
}

/* Pagination — paginate_links( type=list ). */
.sfcd-pagination {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: clamp(24px, 4vw, 40px);
}

.sfcd-pagination ul,
.sfcd-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfcd-pagination li {
	margin: 0;
	padding: 0;
}

.sfcd-pagination li::before {
	content: none;
}

.sfcd-pagination a.page-numbers,
.sfcd-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--sfc-line, rgba(14, 17, 22, 0.1));
	border-radius: 999px;
	background: var(--sfc-panel, #fff);
	color: var(--sfc-ink, #0e1116);
	font: 700 14px/1 var(--sfc-f-ui, system-ui);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sfcd-pagination .page-numbers.current {
	border-color: var(--sfc-ink, #0e1116);
	background: var(--sfc-ink, #0e1116);
	color: var(--sfc-base, #f2f3f5);
}

.sfcd-pagination .page-numbers.dots {
	min-width: 0;
	padding: 0 4px;
	border-color: transparent;
	background: transparent;
	color: var(--sfc-muted, #596372);
}

@media (hover: hover) {
	.sfcd-pagination a.page-numbers:hover {
		border-color: var(--sfc-ink, #0e1116);
	}
}

.sfcd-pagination a.page-numbers:focus-visible {
	outline: 2px solid var(--sfc-accent-2, #1d4ed8);
	outline-offset: 2px;
}

.sfcd-pagination .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}

.sfcd-pagination .prev.page-numbers,
.sfcd-pagination .next.page-numbers {
	padding: 0 16px;
}

.sfcd-pagination__count {
	margin: 0;
	color: var(--sfc-muted, #596372);
	font: 600 13px/1.3 var(--sfc-f-ui, system-ui);
	font-variant-numeric: tabular-nums;
}

/* Phones: icon-only Previous / Next (the label stays for screen readers). */
@media (max-width: 599px) {
	.sfcd-pagination .sfcd-pagination__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.sfcd-pagination .prev.page-numbers,
	.sfcd-pagination .next.page-numbers {
		padding: 0 12px;
	}
}

/* ======================================================================
   5. VEHICLE CAROUSEL
   ====================================================================== */

.sfcd-carousel {
	--sfcd-cgap: clamp(14px, 1.6vw, 24px);
	position: relative;
}

.sfcd-carousel__viewport {
	position: relative;
}

.sfcd-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 86%;
	gap: var(--sfcd-cgap);
	margin: -8px -4px;
	padding: 8px 4px 22px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 4px;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sfcd-carousel__track::-webkit-scrollbar {
	display: none;
}

.sfcd-carousel__track:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 4px;
	border-radius: var(--sfc-r-card);
}

.sfcd-carousel__slide {
	display: flex;
	min-width: 0;
	scroll-snap-align: start;
}

.sfcd-carousel__slide > * {
	width: 100%;
}

@media (min-width: 600px) {
	.sfcd-carousel__track {
		grid-auto-columns: calc((100% - var(--sfcd-cgap)) / 2);
	}

	.sfcd-carousel[style*="--sfcd-per-view:1"] .sfcd-carousel__track {
		grid-auto-columns: 100%;
	}
}

@media (min-width: 1025px) {
	.sfcd-carousel__track {
		grid-auto-columns: calc((100% - (var(--sfcd-per-view, 3) - 1) * var(--sfcd-cgap)) / var(--sfcd-per-view, 3));
	}
}

@media (prefers-reduced-motion: no-preference) {
	.sfcd-carousel__track {
		scroll-behavior: smooth;
	}
}

.sfcd-carousel__arrow {
	position: absolute;
	top: calc(50% - 40px);
	z-index: 5;
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--sfc-line);
	border-radius: 50%;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	box-shadow: var(--sfc-shadow-2);
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}

.sfcd-carousel__arrow--prev {
	left: -22px;
}

.sfcd-carousel__arrow--next {
	right: -22px;
}

.sfcd-carousel__arrow:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
}

.sfcd-carousel__arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

.sfcd-carousel.is-static .sfcd-carousel__arrow,
.sfcd-carousel.is-static .sfcd-carousel__dots {
	display: none;
}

@media (min-width: 769px) and (hover: hover) {
	.sfcd-carousel.is-ready .sfcd-carousel__arrow {
		display: grid;
	}

	.sfcd-carousel__arrow:hover {
		background: var(--sfc-ink);
		color: var(--sfc-base);
		transform: scale(1.05);
	}
}

@media (max-width: 1280px) {
	.sfcd-carousel__arrow--prev {
		left: 8px;
	}

	.sfcd-carousel__arrow--next {
		right: 8px;
	}
}

.sfcd-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 24px;
	margin-top: 4px;
}

.sfcd-carousel__dot {
	position: relative;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sfcd-carousel__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--sfc-ink) 22%, transparent);
	transition: width 0.25s var(--sfc-ease), background-color 0.2s ease;
}

.sfcd-carousel__dot[aria-current="true"] {
	width: 36px;
}

.sfcd-carousel__dot[aria-current="true"]::before {
	width: 24px;
	background: var(--sfc-accent);
}

.sfcd-carousel__dot:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 0;
	border-radius: 8px;
}

.sfcd-carousel__play {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: 8px;
	padding: 0;
	border: 1px solid var(--sfc-line);
	border-radius: 50%;
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	cursor: pointer;
}

.sfcd-carousel__play svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

/* ======================================================================
   6. MAKE GRID  (tiles | grid | chips)
   ====================================================================== */

/* Tiles: monogram cards. The monogram disc colour is DATA (--sfcd-mono-bg). */
.sfcd-make-grid__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 1.4vw, 16px);
}

@media (min-width: 600px) {
	.sfcd-make-grid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.sfcd-make-grid__list {
		grid-template-columns: repeat(min(var(--sfcd-cols, 6), 4), minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.sfcd-make-grid__list {
		grid-template-columns: repeat(var(--sfcd-cols, 6), minmax(0, 1fr));
	}
}

.sfcd-mk {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 16px 16px 14px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-card);
	background: var(--sfc-panel);
	color: var(--sfc-ink);
	text-decoration: none;
	box-shadow: var(--sfc-shadow-1);
	transition: transform 0.2s var(--sfc-ease), border-color 0.2s ease, box-shadow 0.2s ease;
}

.sfcd-mk:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 3px;
}

.sfcd-mk__mono {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--sfcd-mono-bg, var(--sfc-navy));
	color: var(--sfcd-mono-fg, #fff);
	font: 800 17px/1 var(--sfc-f-display);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transition: transform 0.25s var(--sfc-ease);
}

.sfcd-mk__mono[data-len="3"] {
	font-size: 13px;
	letter-spacing: 0;
}

.sfcd-mk--chip .sfcd-mk__mono[data-len="3"] {
	font-size: 9.5px;
}

.sfcd-mk--photo .sfcd-mk__mono[data-len="3"] {
	font-size: 12px;
}

.sfcd-mk__mono--body {
	align-self: flex-start;
	width: auto;
	min-width: 68px;
	padding: 0 12px;
	background: color-mix(in srgb, var(--sfcd-mono-bg, var(--sfc-navy)) 14%, var(--sfc-panel));
	color: var(--sfcd-mono-bg, var(--sfc-ink));
	box-shadow: none;
}

.sfcd-mk__mono--body .sfcd-bodyicon {
	width: 46px;
	height: 23px;
}

.sfcd-mk__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.sfcd-mk__parent {
	color: var(--sfc-muted);
	font: 700 10.5px/1.2 var(--sfc-f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sfcd-mk__name {
	min-width: 0;
	overflow: hidden;
	color: var(--sfc-ink);
	font: 800 18px/1.2 var(--sfc-f-display);
	letter-spacing: -0.01em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfcd-mk__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	color: var(--sfc-muted);
	font: 600 13px/1.35 var(--sfc-f-ui);
}

.sfcd-mk__count {
	font-variant-numeric: tabular-nums;
}

.sfcd-mk__from {
	color: var(--sfc-accent);
	font-family: var(--sfc-f-num);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sfcd-mk__go {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sfc-panel-2);
	color: var(--sfc-muted);
	opacity: 0;
	transform: translate(-4px, 4px);
	transition: opacity 0.2s ease, transform 0.25s var(--sfc-ease), background-color 0.15s ease, color 0.15s ease;
}

.sfcd-mk:focus-visible .sfcd-mk__go {
	opacity: 1;
	transform: none;
}

@media (hover: hover) {
	.sfcd-mk:hover {
		transform: translateY(-3px);
		border-color: color-mix(in srgb, var(--sfcd-mono-bg, var(--sfc-ink)) 45%, var(--sfc-line));
		box-shadow: var(--sfc-shadow-3);
	}

	.sfcd-mk:hover .sfcd-mk__mono {
		transform: scale(1.06) rotate(-3deg);
	}

	.sfcd-mk:hover .sfcd-mk__go {
		opacity: 1;
		transform: none;
		background: var(--sfc-ink);
		color: var(--sfc-base);
	}
}

@media (hover: none) {
	.sfcd-mk__go {
		opacity: 1;
		transform: none;
	}
}

.sfcd-make-grid.is-no-count .sfcd-mk__count,
.sfcd-make-grid.is-no-from .sfcd-mk__from {
	display: none;
}

/* Photo tiles: image (or a brand-coloured gradient), scrim, white text. */
.sfcd-mk--photo {
	justify-content: flex-end;
	min-height: 190px;
	padding: 16px;
	overflow: hidden;
	border-color: transparent;
	background: linear-gradient(135deg, var(--sfcd-mono-bg, var(--sfc-navy)), color-mix(in srgb, var(--sfcd-mono-bg, var(--sfc-navy)) 45%, #05070a));
	color: #fff;
	isolation: isolate;
}

.sfcd-mk--photo .sfcd-mk__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.sfcd-mk--photo .sfcd-mk__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--sfc-ease);
}

.sfcd-mk--photo .sfcd-mk__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 7, 10, 0.1) 25%, rgba(5, 7, 10, 0.78) 100%);
}

.sfcd-mk--photo .sfcd-mk__mono {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	font-size: 15px;
}

.sfcd-mk--photo.is-plain .sfcd-mk__mono {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.sfcd-mk--photo .sfcd-mk__mono--body {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.sfcd-mk--photo .sfcd-mk__name,
.sfcd-mk--photo .sfcd-mk__meta,
.sfcd-mk--photo .sfcd-mk__parent {
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.sfcd-mk--photo .sfcd-mk__parent,
.sfcd-mk--photo .sfcd-mk__count {
	opacity: 0.88;
}

.sfcd-mk--photo .sfcd-mk__from {
	color: #fff;
}

.sfcd-mk--photo .sfcd-mk__go {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

@media (hover: hover) {
	.sfcd-mk--photo:hover {
		border-color: transparent;
	}

	.sfcd-mk--photo:hover .sfcd-mk__img {
		transform: scale(1.05);
	}

	.sfcd-mk--photo:hover .sfcd-mk__mono {
		transform: none;
	}

	.sfcd-mk--photo:hover .sfcd-mk__go {
		background: #fff;
		color: #0e1116;
	}
}

/* Chips. */
.sfcd-make-grid__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfcd-make-grid__chips > li {
	margin: 0;
}

.sfcd-mk--chip {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 6px 16px 6px 7px;
	border-radius: 999px;
	box-shadow: none;
}

.sfcd-mk--chip .sfcd-mk__mono {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 12px;
}

.sfcd-mk--chip .sfcd-mk__mono--body {
	width: auto;
	min-width: 52px;
	height: 34px;
	padding: 0 8px;
	border-radius: 999px;
}

.sfcd-mk--chip .sfcd-mk__mono--body .sfcd-bodyicon {
	width: 34px;
	height: 17px;
}

.sfcd-mk--chip .sfcd-mk__name {
	font: 700 15px/1.2 var(--sfc-f-ui);
	letter-spacing: 0;
}

.sfcd-mk--chip .sfcd-mk__count {
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--sfc-panel-2);
	color: var(--sfc-muted);
	font: 700 12px/1 var(--sfc-f-num);
}

@media (hover: hover) {
	.sfcd-mk--chip:hover {
		transform: translateY(-1px);
		box-shadow: var(--sfc-shadow-1);
	}
}

/* ======================================================================
   7. INVENTORY STATS  (band | cards | chart)
   ====================================================================== */

.sfcd-is__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px 24px;
	margin-bottom: clamp(16px, 2vw, 24px);
}

.sfcd-is__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--sfc-accent-2); /* cobalt: the ember accent is 4.2:1 on the Sky wash band (AA small text needs 4.5). */
	font: 800 12px/1 var(--sfc-f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sfcd-is__title {
	margin: 0;
	color: var(--sfc-ink);
	font: 800 clamp(24px, 3vw, 34px)/1.1 var(--sfc-f-display);
	letter-spacing: -0.02em;
}

.sfcd-is__updated {
	margin: 0;
	color: var(--sfc-muted);
	font: 600 13px/1.4 var(--sfc-f-ui);
}

.sfcd-is__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
}

.sfcd-is__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

.sfcd-is__item > dt,
.sfcd-is__item > dd {
	margin: 0;
}

.sfcd-is__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 4px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--sfc-accent) 12%, var(--sfc-panel));
	color: var(--sfc-accent);
}

.sfcd-is__label {
	color: var(--sfc-muted);
	font: 700 12px/1.3 var(--sfc-f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	order: -1;
}

.sfcd-is__value {
	color: var(--sfc-ink);
	font: 700 clamp(28px, 3.4vw, 42px)/1.05 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.sfcd-is__note {
	color: var(--sfc-muted);
	font: 500 13.5px/1.4 var(--sfc-f-ui);
}

.sfcd-is__note.is-up {
	color: var(--sfcd-neon-strong, var(--sfc-neon));
	font-weight: 600;
}

.sfcd-is__note.is-down {
	color: var(--sfcd-accent-strong, var(--sfc-accent));
	font-weight: 600;
}

.sfcd-is__meter {
	display: block;
	height: 6px;
	margin-top: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--sfc-panel-2);
}

.sfcd-is__meter > span {
	display: block;
	width: var(--sfcd-pct, 0%);
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--sfc-accent), color-mix(in srgb, var(--sfc-accent) 55%, #f59e0b));
}

.sfcd-is__foot {
	margin: clamp(14px, 2vw, 20px) 0 0;
	color: var(--sfc-muted);
	font: 500 13px/1.4 var(--sfc-f-ui);
}

/* Band: four big numbers divided by hairlines. */
.sfcd-inventory-stats--band .sfcd-is__list {
	border-top: 1px solid var(--sfc-line);
	border-bottom: 1px solid var(--sfc-line);
}

.sfcd-inventory-stats--band .sfcd-is__item {
	padding: clamp(16px, 2.4vw, 28px) clamp(12px, 2vw, 24px);
}

.sfcd-inventory-stats--band .sfcd-is__item:nth-child(-n+2) {
	border-bottom: 1px solid var(--sfc-line);
}

.sfcd-inventory-stats--band .sfcd-is__item:nth-child(even) {
	border-left: 1px solid var(--sfc-line);
}

@media (min-width: 900px) {
	.sfcd-inventory-stats--band .sfcd-is__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.sfcd-inventory-stats--band .sfcd-is__item:nth-child(-n+2) {
		border-bottom: 0;
	}

	.sfcd-inventory-stats--band .sfcd-is__item + .sfcd-is__item {
		border-left: 1px solid var(--sfc-line);
	}
}

/* Cards. */
.sfcd-inventory-stats--cards .sfcd-is__list {
	gap: clamp(10px, 1.4vw, 16px);
}

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

.sfcd-inventory-stats--cards .sfcd-is__item {
	padding: clamp(16px, 2vw, 22px);
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-card);
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-inventory-stats--cards .sfcd-is__value {
	font-size: clamp(26px, 2.8vw, 34px);
}

@media (hover: hover) {
	.sfcd-inventory-stats--cards .sfcd-is__item {
		transition: transform 0.2s var(--sfc-ease), box-shadow 0.2s ease;
	}

	.sfcd-inventory-stats--cards .sfcd-is__item:hover {
		transform: translateY(-2px);
		box-shadow: var(--sfc-shadow-2);
	}
}

/* Chart: inline-SVG bars, no library. */
.sfcd-is__chart {
	margin: 0;
	padding: clamp(16px, 2vw, 24px);
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-card);
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-is__chart-cap {
	margin-bottom: 14px;
	color: var(--sfc-muted);
	font: 700 12px/1.3 var(--sfc-f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sfcd-is__rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfcd-is__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "name value" "bar bar";
	align-items: center;
	gap: 6px 12px;
	margin: 0;
}

.sfcd-is__row-name {
	grid-area: name;
	min-width: 0;
	overflow: hidden;
	color: var(--sfc-ink);
	font: 700 15px/1.25 var(--sfc-f-ui);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfcd-is__row-name a {
	color: inherit;
	text-decoration: none;
}

.sfcd-is__row-name a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sfcd-is__row-name a:focus-visible {
	outline: 2px solid var(--sfc-accent-2);
	outline-offset: 2px;
	border-radius: 4px;
}

.sfcd-is__bar {
	grid-area: bar;
	display: block;
	width: 100%;
	height: 12px;
	overflow: hidden;
	border-radius: 999px;
}

.sfcd-is__bar-track {
	fill: var(--sfc-panel-2);
}

.sfcd-is__bar-fill {
	fill: color-mix(in srgb, var(--sfc-accent-2) 70%, var(--sfc-navy));
}

.sfcd-is__bar-fill.is-top {
	fill: var(--sfc-accent);
}

.sfcd-is__bar-range {
	fill: color-mix(in srgb, var(--sfc-accent-2) 55%, var(--sfc-panel-2));
}

.sfcd-is__bar-range.is-top {
	fill: color-mix(in srgb, var(--sfc-accent) 60%, var(--sfc-panel-2));
}

.sfcd-is__bar-median {
	fill: var(--sfc-ink);
}

.sfcd-is__row-value {
	grid-area: value;
	display: flex;
	align-items: baseline;
	gap: 8px;
	color: var(--sfc-ink);
	font: 700 15px/1.2 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sfcd-is__row-n {
	color: var(--sfc-muted);
	font: 500 12px/1 var(--sfc-f-ui);
}

.sfcd-is__chart {
	--sfcd-vcol: 130px;
}

.sfcd-is__chart--range {
	--sfcd-vcol: 190px;
}

.sfcd-is__chart--miles {
	--sfcd-vcol: 150px;
}

.sfcd-is__chart--count {
	--sfcd-vcol: 90px;
}

@media (min-width: 700px) {
	.sfcd-is__row {
		grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) var(--sfcd-vcol);
		grid-template-areas: "name bar value";
		gap: 14px;
	}

	.sfcd-is__row-value {
		justify-content: flex-end;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.sfcd-is__bar rect:not(.sfcd-is__bar-track) {
		transform-box: fill-box;
		transform-origin: left center;
		animation: sfcd-bar-in 0.7s var(--sfc-ease) both;
		animation-delay: calc(var(--i, 0) * 50ms);
	}

	.sfcd-is__row {
		animation: sfcd-fade-up 0.5s var(--sfc-ease) both;
		animation-delay: calc(var(--i, 0) * 50ms);
	}
}

@keyframes sfcd-bar-in {
	from {
		transform: scaleX(0);
	}
}

@keyframes sfcd-fade-up {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

.sfcd-is__table {
	margin-top: 14px;
}

.sfcd-is__table > summary {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: var(--sfc-accent-2);
	font: 700 13px/1 var(--sfc-f-ui);
	cursor: pointer;
}

.sfcd-is__table table {
	width: 100%;
	margin-top: 8px;
	border-collapse: collapse;
	font: 500 14px/1.4 var(--sfc-f-ui);
	font-variant-numeric: tabular-nums;
}

.sfcd-is__table th,
.sfcd-is__table td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--sfc-line);
	text-align: right;
	white-space: nowrap;
}

.sfcd-is__table th:first-child,
.sfcd-is__table td:first-child {
	text-align: left;
}

.sfcd-is__table thead th {
	color: var(--sfc-muted);
	font: 700 11px/1.2 var(--sfc-f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ======================================================================
   8. STATS COUNTER
   ====================================================================== */

.sfcd-counter__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 3vw, 36px) clamp(12px, 2vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 800px) {
	.sfcd-counter__list {
		grid-template-columns: repeat(var(--sfcd-cols, 4), minmax(0, 1fr));
	}
}

.sfcd-counter__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
	text-align: left;
}

.sfcd-counter__num {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	color: var(--sfc-ink);
	font: 700 clamp(34px, 5vw, 60px)/1 var(--sfc-f-num);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
}

.sfcd-counter__affix {
	color: var(--sfc-accent);
	font-size: 0.62em;
}

.sfcd-counter__label {
	color: var(--sfc-muted);
	font: 700 12px/1.3 var(--sfc-f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sfcd-stats-counter--plain .sfcd-counter__item {
	padding-left: 16px;
	border-left: 3px solid var(--sfc-accent);
}

.sfcd-stats-counter--cards .sfcd-counter__item {
	padding: clamp(18px, 2.4vw, 28px);
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-r-card);
	background: var(--sfc-panel);
	box-shadow: var(--sfc-shadow-1);
}

.sfcd-counter__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 6px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--sfc-accent) 12%, var(--sfc-panel));
	color: var(--sfc-accent);
}

@media (prefers-reduced-motion: no-preference) {
	.sfcd-stats-counter .sfcd-counter__item {
		animation: sfcd-fade-up 0.5s var(--sfc-ease) both;
		animation-delay: calc(var(--i, 0) * 70ms);
	}
}

/* ======================================================================
   9. REDUCED MOTION
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
	.sfcd-search-form *,
	.sfcd-search-filters *,
	.sfcd-make-grid *,
	.sfcd-inventory-stats *,
	.sfcd-stats-counter *,
	.sfcd-carousel * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---- Touch: primary controls reach a 44 x 44 px target ------------------ */
@media (pointer: coarse), (max-width: 767.98px) {
	:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-qchip,
	.sfcd-sf__tab > span,
	.sfcd-is__table > summary {
		min-height: 44px;
	}

	:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-field {
		padding-top: 8px;
		padding-bottom: 8px;
	}

	:where(.sfcd-search-form, .sfcd-search-filters) .sfcd-field__control:not([type="range"]) {
		min-height: 44px;
	}
}
