/*!
 * Driveway — cards.css (handle `stepfox-cd-cards`, dep `stepfox-cd`)
 *
 * The canonical vehicle card (.sfcd-card + variants), skeletons, dealer cards,
 * make tiles, the deal-rating pill + meter, every FIELD block (.sfcd-f-*),
 * loops, loop pagination, context wrappers, hearts / compare toggles, the
 * header Saved link, saved searches, the compare tray and the fallback toast.
 *
 * Rules: every colour is a palette preset var with a fallback (dark mode flips
 * by re-mapping the presets on :root); white is used only for text over
 * photos, and paint swatches / make colours are data, not theme colours.
 * Hover effects are gated by (hover:hover); motion is off under reduced
 * motion. Class selectors only — Stepfox Looks `#block_x` /
 * `:is(#block_x,.block_x)` rules always win over these defaults.
 *
 * Cards are container-aware (`container: sfcd-card / inline-size`): the same
 * markup sits in 1–4 column grids, the 440px map results list and carousels.
 */

/* ======================================================================
 * 0. Tokens (scoped, derived from the 16-slug palette)
 * ==================================================================== */
:root {
	--sfcd-card-bg: var(--wp--preset--color--panel, #fff);
	--sfcd-card-bg-2: var(--wp--preset--color--panel-2, #e6e8ec);
	--sfcd-card-page: var(--wp--preset--color--base, #f2f3f5);
	--sfcd-card-ink: var(--wp--preset--color--ink, #0e1116);
	--sfcd-card-muted: var(--wp--preset--color--muted, #596372);
	--sfcd-card-line: var(--wp--preset--color--line, rgba(14, 17, 22, 0.1));
	--sfcd-card-edge: var(--wp--preset--color--edge, rgba(14, 17, 22, 0.08));
	--sfcd-card-accent: var(--wp--preset--color--accent, #c2410c);
	/* Ember already carries text on both schemes (5.2:1 on white, 6.9:1 on the dark panel). */
	--sfcd-card-accent-strong: var(--wp--preset--color--accent, #c2410c);
	--sfcd-card-accent-2: var(--wp--preset--color--accent-2, #1d4ed8);
	--sfcd-card-neon: var(--wp--preset--color--neon, #0b8a5f);
	--sfcd-card-navy: var(--wp--preset--color--violet, #1b2a4a);
	--sfcd-card-gold: var(--wp--preset--color--gold, #8a6400);
	--sfcd-card-wash: var(--wp--preset--color--turf, #dfe8f7);
	--sfcd-card-glass: var(--wp--preset--color--glass, rgba(255, 255, 255, 0.86));
	--sfcd-card-on: var(--wp--preset--color--base, #f2f3f5);
	--sfcd-card-radius: 16px;
	--sfcd-card-shadow: var(--wp--preset--shadow--depth-1, 0 1px 2px rgba(14, 17, 22, 0.05), 0 4px 14px rgba(14, 17, 22, 0.05));
	--sfcd-card-shadow-hover: var(--wp--preset--shadow--depth-3, 0 6px 16px rgba(14, 17, 22, 0.08), 0 18px 40px rgba(14, 17, 22, 0.12));
	--sfcd-card-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--sfcd-font-ui: var(--wp--preset--font-family--ui, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--sfcd-font-display: var(--wp--preset--font-family--display, "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
	--sfcd-font-body: var(--wp--preset--font-family--body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--sfcd-font-num: var(--wp--preset--font-family--num, "Space Grotesk", "Inter", system-ui, sans-serif);
	/* Photo surfaces never flip with the scheme. */
	--sfcd-photo-ink: #fff;
	--sfcd-photo-bg: #0b0e13;
	--sfcd-photo-scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0.76) 100%);
	/* Filled brand colours that carry small bold text: the shared deep fills
	   from car-dealer.css (the `base` label keeps ≥4.5:1 in light and dark). */
	--sfcd-fill-neon: var(--sfcd-neon-strong, var(--sfcd-card-neon));
	--sfcd-fill-accent: var(--sfcd-accent-strong, var(--sfcd-card-accent));
	--sfcd-fill-cobalt: var(--sfcd-card-accent-2);
	--sfcd-fill-gold: var(--sfcd-card-gold);
}

/* Paint swatches (data colours — they never flip). Used by .sfcd-swatch. */
.sfcd-swatch {
	--sfcd-swatch: #8b93a1;
	display: inline-block;
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--sfcd-swatch);
	box-shadow: inset 0 0 0 1px rgba(14, 17, 22, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.sfcd-swatch--white { --sfcd-swatch: #f5f6f7; }
.sfcd-swatch--black { --sfcd-swatch: #15181d; }
.sfcd-swatch--gray { --sfcd-swatch: #7b8390; }
.sfcd-swatch--silver { --sfcd-swatch: #c4c9d1; }
.sfcd-swatch--blue { --sfcd-swatch: #2457c9; }
.sfcd-swatch--red { --sfcd-swatch: #c4262e; }
.sfcd-swatch--green { --sfcd-swatch: #2f7a4d; }
.sfcd-swatch--brown { --sfcd-swatch: #6b4a33; }
.sfcd-swatch--beige { --sfcd-swatch: #d9c7a3; }
.sfcd-swatch--orange { --sfcd-swatch: #e1721b; }
.sfcd-swatch--yellow { --sfcd-swatch: #f0c419; }
.sfcd-swatch--gold { --sfcd-swatch: #b8943f; }
.sfcd-swatch--purple { --sfcd-swatch: #6b3fa0; }

/* ======================================================================
 * 1. Atoms
 * ==================================================================== */
.sfcd-ico {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.sfcd-ico svg {
	display: block;
}

.sfcd-sr,
.sfcd-card .screen-reader-text,
.sfcd-f .screen-reader-text,
.sfcd-deal .screen-reader-text,
.sfcd-lp .screen-reader-text,
.sfcd-loc-tile .screen-reader-text,
.sfcd-saved-link .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Chips — over photos (.sfcd-card__chips) and as standalone badge fields
 * (.sfcd-f.sfcd-chip). The colour vocabulary (condition dot, label fills,
 * price drop, status) is the shared .sfcd-chip set in car-dealer.css; here
 * only the geometry over a photo, the glass condition chip and the little
 * parts of the price-drop chip. */
:is(.sfcd-card__chips > .sfcd-chip, .sfcd-chip.sfcd-f) {
	gap: 5px;
	min-height: 0;
	height: 26px;
	padding: 0 10px;
	line-height: 1;
}
.sfcd-card__chips > .sfcd-chip {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}
.sfcd-card__chips > .sfcd-chip--cond {
	background: var(--sfcd-card-glass);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	backdrop-filter: blur(10px) saturate(1.4);
}
.sfcd-chip.sfcd-f.sfcd-chip--cond {
	box-shadow: inset 0 0 0 1px var(--sfcd-card-line);
}
:is(.sfcd-card__chips, .sfcd-f) .sfcd-chip__ico {
	margin-left: -2px;
}
.sfcd-chip__n {
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-weight: 800;
}

/* Pills on photos (count / video / tour) — scoped: bare .sfcd-pill is a
 * search-form atom in CORE. */
.sfcd-card__pills .sfcd-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 9px;
	border: 0;
	border-radius: 999px;
	font-family: var(--sfcd-font-num);
	font-size: 12px;
	font-weight: 700;
	font-feature-settings: "tnum" 1, "lnum" 1;
	color: var(--sfcd-photo-ink);
	background: rgba(11, 14, 19, 0.6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.sfcd-card__pills .sfcd-pill--icon {
	width: 26px;
	padding: 0;
	justify-content: center;
}

/* ---- Deal rating: pill ----
 * The base pill (dot, wash, label) is the shared .sfcd-deal atom in
 * car-dealer.css; the card adds the % delta rule and the solid variant that
 * sits on a photo. */
.sfcd-deal {
	flex: none;
}
.sfcd-deal__pct {
	padding-left: 6px;
	margin-left: 1px;
	border-left: 1px solid color-mix(in srgb, currentColor 32%, transparent);
}
.sfcd-deal--solid {
	color: var(--sfcd-card-on);
	background: var(--_t, var(--sfcd-card-ink));
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.sfcd-deal--solid::before,
.sfcd-deal--solid .sfcd-deal__dot {
	background: var(--sfcd-card-on);
}
.sfcd-deal--solid .sfcd-deal__pct {
	border-left-color: color-mix(in srgb, var(--sfcd-card-on) 45%, transparent);
}
.sfcd-f-vehicle-deal-rating.is-pill {
	display: inline-flex;
	max-width: 100%;
	min-width: 0;
}
.sfcd-f-vehicle-deal-rating .sfcd-deal {
	max-width: 100%;
	overflow: hidden;
}
.sfcd-f-vehicle-deal-rating .sfcd-deal__t {
	overflow: hidden;
	text-overflow: ellipsis;
}
@container sfcd-card (max-width: 330px) {
	.sfcd-card--composed .sfcd-deal__pct {
		display: none;
	}
}

/* ---- Deal rating: meter ---- */
.sfcd-dealmeter {
	--sfcd-deal-c: var(--sfcd-deal-fair, var(--sfcd-card-gold));
	--sfcd-deal-t: var(--sfcd-deal-fair-text, var(--sfcd-card-gold));
	display: grid;
	gap: 8px;
	min-width: 0;
	font-family: var(--sfcd-font-ui);
	color: var(--sfcd-card-ink);
}
.sfcd-dealmeter--great { --sfcd-deal-c: var(--sfcd-deal-great, var(--sfcd-card-neon)); --sfcd-deal-t: var(--sfcd-deal-great-text, var(--sfcd-card-neon)); }
.sfcd-dealmeter--good { --sfcd-deal-c: var(--sfcd-deal-good, var(--sfcd-card-accent-2)); --sfcd-deal-t: var(--sfcd-deal-good-text, var(--sfcd-card-accent-2)); }
.sfcd-dealmeter--fair { --sfcd-deal-c: var(--sfcd-deal-fair, var(--sfcd-card-gold)); --sfcd-deal-t: var(--sfcd-deal-fair-text, var(--sfcd-card-gold)); }
.sfcd-dealmeter--high { --sfcd-deal-c: var(--sfcd-deal-high, var(--sfcd-card-accent)); --sfcd-deal-t: var(--sfcd-deal-high-text, var(--sfcd-card-accent)); }
.sfcd-dealmeter__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
}
.sfcd-dealmeter__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.005em;
	color: var(--sfcd-deal-t);
}
.sfcd-dealmeter__delta {
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 13px;
	font-weight: 600;
	color: var(--sfcd-card-muted);
}
.sfcd-dealmeter__track {
	position: relative;
	display: flex;
	gap: 3px;
	height: 10px;
	margin: 4px 0 2px;
}
.sfcd-dealmeter__zone {
	display: block;
	height: 100%;
	opacity: 0.32;
	transition: opacity 0.3s ease;
}
.sfcd-dealmeter__zone--great { flex: 7 1 0; border-radius: 999px 3px 3px 999px; background: var(--sfcd-deal-great, var(--sfcd-card-neon)); }
.sfcd-dealmeter__zone--good { flex: 5 1 0; border-radius: 3px; background: var(--sfcd-deal-good, var(--sfcd-card-accent-2)); }
.sfcd-dealmeter__zone--fair { flex: 6 1 0; border-radius: 3px; background: var(--sfcd-deal-fair, var(--sfcd-card-gold)); }
.sfcd-dealmeter__zone--high { flex: 12 1 0; border-radius: 3px 999px 999px 3px; background: var(--sfcd-deal-high, var(--sfcd-card-accent)); }
.sfcd-dealmeter--great .sfcd-dealmeter__zone--great,
.sfcd-dealmeter--good .sfcd-dealmeter__zone--good,
.sfcd-dealmeter--fair .sfcd-dealmeter__zone--fair,
.sfcd-dealmeter--high .sfcd-dealmeter__zone--high {
	opacity: 1;
}
.sfcd-dealmeter__marker {
	position: absolute;
	left: var(--sfcd-pos, 50%);
	top: 50%;
	width: 18px;
	height: 18px;
	border: 3px solid var(--sfcd-card-ink);
	border-radius: 50%;
	background: var(--sfcd-card-bg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
}
.sfcd-dealmeter__scale {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--sfcd-card-muted);
}

/* ---- Monogram disc + dealer logo (no real brand logos, ever) ---- */
.sfcd-card-mono {
	--sfcd-card-mono-size: 28px;
	--sfcd-card-mono-bg: var(--sfcd-card-navy);
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--sfcd-card-mono-size);
	height: var(--sfcd-card-mono-size);
	border-radius: 50%;
	font-family: var(--sfcd-font-display);
	font-size: calc(var(--sfcd-card-mono-size) * 0.38);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--sfcd-card-on);
	background: var(--sfcd-card-mono-bg);
}
.sfcd-card-mono.is-len-2 { font-size: calc(var(--sfcd-card-mono-size) * 0.34); }
.sfcd-card-mono.is-len-3 { font-size: calc(var(--sfcd-card-mono-size) * 0.27); letter-spacing: 0; }
.sfcd-card-mono.is-len-4 { font-size: calc(var(--sfcd-card-mono-size) * 0.21); letter-spacing: 0; }
.sfcd-card-mono--1 { --sfcd-card-mono-bg: var(--sfcd-card-navy); }
.sfcd-card-mono--2 { --sfcd-card-mono-bg: var(--sfcd-fill-cobalt); }
.sfcd-card-mono--3 { --sfcd-card-mono-bg: var(--sfcd-fill-neon); }
.sfcd-card-mono--4 { --sfcd-card-mono-bg: var(--sfcd-fill-accent); }
.sfcd-card-mono--data {
	background: var(--sfcd-card-mono, var(--sfcd-card-navy));
}
.sfcd-card-mono--data.is-light { color: #fff; }
.sfcd-card-mono--data.is-dark { color: #0e1116; }

.sfcd-card-logo {
	--sfcd-card-logo-size: 30px;
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--sfcd-card-logo-size);
	height: var(--sfcd-card-logo-size);
	overflow: hidden;
	border-radius: 50%;
	background: var(--sfcd-card-bg-2);
	box-shadow: 0 0 0 1px var(--sfcd-card-line);
}
.sfcd-card-logo__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sfcd-card-logo .sfcd-card-mono {
	width: 100%;
	height: 100%;
}

/* Copy button (VIN) */
.sfcd-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	margin: 0;
	padding: 0 10px 0 8px;
	border: 1px solid var(--sfcd-card-line);
	border-radius: 999px;
	cursor: pointer;
	font: 700 12px/1 var(--sfcd-font-ui);
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.sfcd-copy:hover {
	border-color: var(--sfcd-card-ink);
}
.sfcd-copy:focus-visible {
	outline: 2px solid var(--sfcd-card-accent);
	outline-offset: 2px;
}
.sfcd-copy.is-copied {
	border-color: var(--sfcd-card-neon);
	color: color-mix(in srgb, var(--sfcd-card-neon) 82%, var(--sfcd-card-ink));
	background: color-mix(in srgb, var(--sfcd-card-neon) 10%, var(--sfcd-card-bg));
}

/* Heart toggle */
.sfcd-fav {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: var(--sfcd-card-ink);
	background: none;
	-webkit-tap-highlight-color: transparent;
}
/* 44px touch target around the 36px disc. */
.sfcd-fav--icon::before,
.sfcd-fav--icon-sm::before,
.sfcd-cmp--icon::before {
	content: "";
	position: absolute;
	inset: -4px;
}
.sfcd-fav--icon-sm {
	width: 30px;
	height: 30px;
}
.sfcd-fav--icon-sm .sfcd-fav__heart {
	width: 16px;
	height: 16px;
}
.sfcd-fav--icon .sfcd-fav__heart {
	width: 19px;
	height: 19px;
}
.sfcd-fav--button {
	height: 40px;
	padding: 0 16px 0 12px;
	border: 1px solid var(--sfcd-card-line);
	border-radius: 12px;
	font-family: var(--sfcd-font-ui);
	font-size: 14px;
	font-weight: 700;
	background: var(--sfcd-card-bg);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.sfcd-fav__icon {
	position: relative;
	display: inline-flex;
	line-height: 0;
}
.sfcd-fav__heart {
	fill: transparent;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linejoin: round;
	transition: fill 0.2s ease, stroke 0.2s ease, transform 0.25s var(--sfcd-card-ease);
}
.sfcd-fav__burst {
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid var(--sfcd-card-accent);
	opacity: 0;
	transform: scale(0.4);
	pointer-events: none;
}
.sfcd-fav.is-active .sfcd-fav__heart,
.sfcd-fav[aria-pressed="true"] .sfcd-fav__heart {
	fill: var(--sfcd-card-accent);
	stroke: var(--sfcd-card-accent);
}
.sfcd-fav--button.is-active,
.sfcd-fav--button[aria-pressed="true"] {
	border-color: color-mix(in srgb, var(--sfcd-card-accent) 45%, transparent);
	background: color-mix(in srgb, var(--sfcd-card-accent) 8%, var(--sfcd-card-bg));
}
.sfcd-fav.is-popping .sfcd-fav__heart {
	animation: sfcd-heart-pop 0.55s var(--sfcd-card-ease);
}
.sfcd-fav.is-popping .sfcd-fav__burst {
	animation: sfcd-heart-burst 0.6s ease-out;
}
.sfcd-fav:focus-visible,
.sfcd-cmp:focus-visible {
	outline: 2px solid var(--sfcd-card-accent);
	outline-offset: 2px;
}
@keyframes sfcd-heart-pop {
	0% { transform: scale(1); }
	30% { transform: scale(0.78); }
	60% { transform: scale(1.28); }
	100% { transform: scale(1); }
}
@keyframes sfcd-heart-burst {
	0% { opacity: 0.9; transform: scale(0.4); }
	100% { opacity: 0; transform: scale(1.3); }
}

/* Compare toggle */
.sfcd-cmp {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: var(--sfcd-card-ink);
	background: none;
	-webkit-tap-highlight-color: transparent;
}
.sfcd-fav--icon,
.sfcd-fav--icon-sm,
.sfcd-cmp--icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--sfcd-card-glass);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	backdrop-filter: blur(10px) saturate(1.4);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
	transition: transform 0.2s var(--sfcd-card-ease), background-color 0.2s ease, color 0.2s ease;
}
.sfcd-fav--icon-sm {
	width: 30px;
	height: 30px;
}
.sfcd-cmp--button {
	height: 40px;
	padding: 0 16px 0 12px;
	border: 1px solid var(--sfcd-card-line);
	border-radius: 12px;
	font-family: var(--sfcd-font-ui);
	font-size: 14px;
	font-weight: 700;
	background: var(--sfcd-card-bg);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.sfcd-cmp__icon {
	display: inline-flex;
	line-height: 0;
}
.sfcd-cmp__tick {
	opacity: 0;
	transition: opacity 0.2s ease;
}
.sfcd-cmp.is-active,
.sfcd-cmp[aria-pressed="true"] {
	color: var(--sfcd-card-on);
	background: var(--sfcd-fill-cobalt);
	border-color: var(--sfcd-fill-cobalt);
}
.sfcd-cmp.is-active .sfcd-cmp__tick,
.sfcd-cmp[aria-pressed="true"] .sfcd-cmp__tick {
	opacity: 1;
}

/* Small icon buttons (dealer contact / socials) */
.sfcd-icon-btn {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--sfcd-card-line);
	border-radius: 999px;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg);
	text-decoration: none;
	font-family: var(--sfcd-font-ui);
	font-size: 13.5px;
	font-weight: 700;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sfcd-icon-btn:hover {
	color: var(--sfcd-card-on);
	border-color: var(--sfcd-card-ink);
	background: var(--sfcd-card-ink);
}
.sfcd-icon-btn:focus-visible {
	outline: 2px solid var(--sfcd-card-accent);
	outline-offset: 2px;
}

/* ======================================================================
 * 2. The vehicle card
 * ==================================================================== */
.sfcd-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--sfcd-card-edge);
	border-radius: var(--sfcd-card-radius);
	background: var(--sfcd-card-bg);
	box-shadow: var(--sfcd-card-shadow);
	color: var(--sfcd-card-ink);
	font-family: var(--sfcd-font-ui);
	text-align: start;
	transition: transform 0.35s var(--sfcd-card-ease), box-shadow 0.35s var(--sfcd-card-ease), border-color 0.35s ease;
}
.sfcd-card__media {
	position: relative;
	flex: none;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sfcd-card-bg-2);
}
.sfcd-card__img,
.sfcd-card__media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: 50% 60%;
	transition: transform 0.7s var(--sfcd-card-ease), filter 0.4s ease;
}
.sfcd-card__ph,
.sfcd-loc-tile__ph,
.sfcd-dealer-card__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: color-mix(in srgb, var(--sfcd-card-muted) 55%, transparent);
	background:
		radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--sfcd-card-accent-2) 10%, transparent), transparent 60%),
		var(--sfcd-card-bg-2);
}
.sfcd-card__chips {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 96px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}
.sfcd-card__actions {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	gap: 8px;
}
.sfcd-card__pills {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	gap: 6px;
	pointer-events: none;
}

/* Status ribbon — a stamp across a pending / sold photo. */
.sfcd-card__ribbon {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.sfcd-card__ribbon-t {
	padding: 8px 20px 7px;
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 6px;
	font-family: var(--sfcd-font-display);
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sfcd-photo-ink);
	background: rgba(11, 14, 19, 0.62);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transform: rotate(-7deg);
}
.sfcd-card__ribbon--pending .sfcd-card__ribbon-t {
	border-color: transparent;
	background: var(--sfcd-fill-gold);
	color: var(--sfcd-card-on);
	letter-spacing: 0.14em;
}

.sfcd-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 16px 18px 18px;
}
/* Head: display-font title (two lines max) over the muted trim. The block is
   a fixed height so prices line up across a row; short titles leave the gap
   below the trim, never between title and trim. */
.sfcd-card__head {
	min-width: 0;
	min-height: 3.7em;
	font-size: 17px;
	line-height: 1.25;
}
.sfcd-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--sfcd-font-display);
	font-size: 1em;
	font-weight: 700;
	font-stretch: 104%;
	line-height: 1.25;
	letter-spacing: -0.015em;
	white-space: normal;
	overflow-wrap: anywhere;
	color: var(--sfcd-card-ink);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color 0.2s ease;
}
.sfcd-card__trim {
	margin: 3px 0 0;
	overflow: hidden;
	font-size: 0.8em;
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sfcd-card-muted);
}
/* (0,1,1)+ so a theme's post-content link colour/underline
 * (:root :where(.wp-block-post-content a) = 0,1,0, printed later) never wins. */
a.sfcd-card__link,
a.sfcd-card__link:hover,
a.sfcd-card__link:focus,
a.sfcd-card__link:visited {
	color: inherit;
	text-decoration: none;
	outline: none;
}
.sfcd-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.sfcd-card__link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--sfcd-card-accent);
	border-radius: var(--sfcd-card-radius);
}

/* Pricing: price (num font) + struck previous price, deal pill on the right. */
.sfcd-card__pricing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 12px;
}
.sfcd-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin: 0;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	line-height: 1.05;
}
.sfcd-card__pricing .sfcd-deal {
	margin-inline-start: auto;
}
.sfcd-card__amount,
.sfcd-price__amount {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--sfcd-card-ink);
}
.sfcd-card__amount--request,
.sfcd-price__amount--request {
	font-size: 18px;
	letter-spacing: -0.01em;
}
.sfcd-card__prev,
.sfcd-price__prev {
	font-size: 14px;
	font-weight: 500;
	color: var(--sfcd-card-muted);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	text-decoration-color: color-mix(in srgb, var(--sfcd-card-accent) 70%, transparent);
}
.sfcd-card__payment {
	margin: 5px 0 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--sfcd-card-muted);
}
.sfcd-card__payment.is-empty {
	min-height: 1.3em;
}
.sfcd-card__payment-v {
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-weight: 700;
	color: var(--sfcd-card-ink);
}
.sfcd-card__payment-u {
	color: var(--sfcd-card-muted);
}
.sfcd-card__offer {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--sfcd-card-accent-strong);
}
.sfcd-card__loc {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--sfcd-card-muted);
}
.sfcd-card__loc span:last-child {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.sfcd-card__loc .sfcd-ico {
	color: var(--sfcd-card-accent);
}

/* Spec row (card + .sfcd-facts field): icons + values, hairline separators. */
.sfcd-card__facts,
.sfcd-facts {
	/* Separators live in the column gap (::before at -gap/2) and the list
	   clips its left edge, so when a fact wraps to a second line its
	   separator is cut away instead of starting the line as an orphan. */
	--sfcd-fact-gap: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px var(--sfcd-fact-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 13.5px;
	-webkit-clip-path: inset(-8px -8px -8px 0);
	clip-path: inset(-8px -8px -8px 0);
}
.sfcd-card__body > .sfcd-card__facts {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--sfcd-card-line);
}
.sfcd-fact {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	color: var(--sfcd-card-ink);
}
.sfcd-card__facts .sfcd-fact + .sfcd-fact::before,
.sfcd-facts--line .sfcd-fact + .sfcd-fact::before {
	content: "";
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: calc(var(--sfcd-fact-gap) / -2);
	width: 1px;
	background: var(--sfcd-card-line);
}
.sfcd-facts--dot {
	--sfcd-fact-gap: 17px;
}
.sfcd-facts--dot .sfcd-fact + .sfcd-fact::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(var(--sfcd-fact-gap) / -2 - 1.5px);
	width: 3px;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 50%;
	background: var(--sfcd-card-muted);
	opacity: 0.6;
}
.sfcd-fact .sfcd-ico {
	color: var(--sfcd-card-muted);
}
.sfcd-fact__v {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sfcd-fact__l {
	margin-left: -2px;
	font-weight: 500;
	color: var(--sfcd-card-muted);
}

.sfcd-card__excerpt {
	display: -webkit-box;
	margin: 12px 0 0;
	overflow: hidden;
	font-family: var(--sfcd-font-body);
	font-size: 14px;
	line-height: 1.55;
	color: var(--sfcd-card-muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.sfcd-card__feats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.sfcd-card__feats li {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg-2);
}

/* Footer: dealer logo + name + city · distance (or days listed). */
.sfcd-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--sfcd-card-line);
}
.sfcd-card__body > :has(+ .sfcd-card__foot) {
	margin-bottom: 12px;
}
.sfcd-card__dealer {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 9px;
	min-width: min(8.5em, 55%);
}
.sfcd-card__dealer-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	line-height: 1.25;
}
.sfcd-card__dealer-name,
.sfcd-card__dealer-city {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.sfcd-card__dealer-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--sfcd-card-ink);
}
.sfcd-card__dealer-city {
	font-size: 12px;
	font-weight: 500;
	color: var(--sfcd-card-muted);
}
/* The meta (days listed / distance) is a short, fixed-width tail; the dealer
 * name gives way first (ellipsis). */
.sfcd-card__meta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 5px;
	min-width: 0;
	margin-inline-start: auto;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--sfcd-card-muted);
	white-space: nowrap;
}
.sfcd-card__meta .sfcd-ico {
	color: var(--sfcd-card-muted);
}
.sfcd-card__meta-t {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sfcd-card__meta--dist {
	padding: 4px 9px 4px 7px;
	border-radius: 999px;
	font-weight: 700;
	color: var(--sfcd-card-accent-2);
	background: var(--sfcd-card-wash);
}
.sfcd-card__meta--dist .sfcd-ico {
	color: inherit;
}

/* States — a sold car is muted, a pending one slightly desaturated. */
.sfcd-card.is-sold .sfcd-card__img,
.sfcd-f-vehicle-image.is-sold img {
	filter: grayscale(0.9) contrast(0.95) brightness(0.86);
}
.sfcd-card.is-sold .sfcd-card__body {
	opacity: 0.62;
}
.sfcd-card.is-pending .sfcd-card__img,
.sfcd-f-vehicle-image.is-pending img {
	filter: saturate(0.65) brightness(0.94);
}

/* Hover (pointer devices only — no sticky hover after a tap) */
@media (hover: hover) {
	.sfcd-card:hover {
		transform: translateY(-4px);
		box-shadow: var(--sfcd-card-shadow-hover);
		border-color: var(--sfcd-card-line);
	}
	.sfcd-card:hover .sfcd-card__img,
	.sfcd-card:hover .sfcd-card__media > img,
	.sfcd-f-vehicle-image:hover img {
		transform: scale(1.04);
	}
	.sfcd-card:hover .sfcd-card__title {
		color: var(--sfcd-card-accent-strong);
	}
	.sfcd-card--composed:hover {
		transform: translateY(-4px);
		box-shadow: var(--sfcd-card-shadow-hover);
	}
	.sfcd-fav--icon:hover,
	.sfcd-fav--icon-sm:hover,
	.sfcd-cmp--icon:hover {
		transform: scale(1.08);
	}
	.sfcd-fav--button:hover,
	.sfcd-cmp--button:hover {
		border-color: var(--sfcd-card-ink);
	}
}
/* is-highlighted = list↔pin sync from the map; is-active / is-hovered legacy hooks. */
.sfcd-card.is-active,
.sfcd-card.is-hovered,
.sfcd-card.is-highlighted {
	border-color: var(--sfcd-card-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--sfcd-card-accent) 28%, transparent), var(--sfcd-card-shadow-hover);
}

/* Cards are containers: the same markup adapts to 1–4 column grids, the
 * map list and carousels. Composed (field-block) cards join them. */
.sfcd-card--card,
.sfcd-card--row,
.sfcd-card--overlay,
.sfcd-card--composed {
	container: sfcd-card / inline-size;
}
@container sfcd-card (max-width: 300px) {
	.sfcd-card__body {
		padding: 14px 14px 16px;
	}
	.sfcd-card__head {
		font-size: 16px;
	}
	.sfcd-card__amount {
		font-size: 23px;
	}
	.sfcd-card__facts,
	.sfcd-card--composed .sfcd-facts {
		--sfcd-fact-gap: 12px;
		gap: 6px var(--sfcd-fact-gap);
		font-size: 13px;
	}
	.sfcd-card__facts .sfcd-fact {
		gap: 4px;
	}
	.sfcd-card__facts .sfcd-ico svg {
		width: 14px;
		height: 14px;
	}
	.sfcd-card__chips {
		right: 88px;
	}
	.sfcd-card__chips > :nth-child(n + 3),
	.sfcd-card__chips .sfcd-chip__t {
		display: none;
	}
}
@container sfcd-card (max-width: 230px) {
	.sfcd-card__foot {
		flex-wrap: wrap;
		gap: 6px;
	}
	.sfcd-card__chips > :nth-child(n + 2) {
		display: none;
	}
	.sfcd-card__pricing .sfcd-deal {
		margin-inline-start: 0;
	}
	.sfcd-card__facts .sfcd-fact__l {
		display: none;
	}
}

/* ---- Row variant (list views, map results) ----
 * Wraps to a stacked card by itself when the CARD (not the viewport) is
 * narrower than 560px — e.g. inside the 440px map results panel. */
.sfcd-card--row {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
}
.sfcd-card--row > .sfcd-card__media {
	flex-grow: 2;
	flex-shrink: 1;
	min-width: 0;
	flex-basis: calc((560px - 100%) * 999);
	aspect-ratio: auto;
	min-height: 220px;
}
.sfcd-card--row > .sfcd-card__body {
	flex-grow: 3;
	flex-shrink: 1;
	min-width: 0;
	flex-basis: calc((560px - 100%) * 999);
	padding: 18px 22px 20px;
}
.sfcd-card--row .sfcd-card__head {
	min-height: 0;
	font-size: 18px;
}
/* Stacked / single column: the two halves dissolve and the pieces take the
   card order (title, price, payment, offer, specs, text, dealer). */
.sfcd-card--row .sfcd-card__main,
.sfcd-card--row .sfcd-card__side {
	display: contents;
}
.sfcd-card--row .sfcd-card__head { order: 1; }
.sfcd-card--row .sfcd-card__pricing { order: 2; }
.sfcd-card--row .sfcd-card__payment { order: 3; }
.sfcd-card--row .sfcd-card__offer { order: 4; }
.sfcd-card--row .sfcd-card__body > .sfcd-card__facts,
.sfcd-card--row .sfcd-card__main > .sfcd-card__facts { order: 5; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sfcd-card-line); }
.sfcd-card--row .sfcd-card__excerpt { order: 6; }
.sfcd-card--row .sfcd-card__feats { order: 7; }
.sfcd-card--row .sfcd-card__foot { order: 8; margin-top: auto; }
.sfcd-card--row .sfcd-card__main > :last-child { margin-bottom: 12px; }
@container sfcd-card (max-width: 559px) {
	.sfcd-card--row > .sfcd-card__media {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}
}
.sfcd-card--row .sfcd-card__facts {
	--sfcd-fact-gap: 16px;
}
@container sfcd-card (min-width: 880px) {
	.sfcd-card--row > .sfcd-card__body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
		column-gap: 28px;
		align-items: stretch;
	}
	.sfcd-card--row .sfcd-card__main,
	.sfcd-card--row .sfcd-card__side {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}
	.sfcd-card--row .sfcd-card__side {
		padding-inline-start: 26px;
		border-inline-start: 1px solid var(--sfcd-card-line);
	}
	.sfcd-card--row .sfcd-card__main > .sfcd-card__facts { margin-top: 14px; }
	.sfcd-card--row .sfcd-card__side .sfcd-card__pricing { margin-top: 0; }
	.sfcd-card--row .sfcd-card__side .sfcd-deal { margin-inline-start: 0; }
	.sfcd-card--row .sfcd-card__side .sfcd-card__foot { margin-top: auto; }
	.sfcd-card--row .sfcd-card__side > :has(+ .sfcd-card__foot) { margin-bottom: 12px; }
	.sfcd-card--row .sfcd-card__main > :last-child { margin-bottom: 0; }
}

/* ---- Overlay variant (photo-led showcase) ---- */
.sfcd-card--overlay {
	height: auto;
	min-height: 400px;
	border: 0;
	color: var(--sfcd-photo-ink);
	background: var(--sfcd-photo-bg);
}
.sfcd-card--overlay .sfcd-card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}
.sfcd-card__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.88) 100%);
	pointer-events: none;
}
.sfcd-card--overlay .sfcd-card__body {
	position: relative;
	z-index: 2;
	justify-content: flex-end;
	padding: 22px;
	pointer-events: none;
}
.sfcd-card--overlay .sfcd-card__body a {
	pointer-events: auto;
}
.sfcd-card--overlay .sfcd-card__head {
	min-height: 0;
	font-size: 21px;
}
.sfcd-card--overlay .sfcd-card__amount,
.sfcd-card--overlay .sfcd-card__title,
.sfcd-card--overlay .sfcd-card__payment-v,
.sfcd-card--overlay .sfcd-fact,
.sfcd-card--overlay .sfcd-fact__v {
	color: var(--sfcd-photo-ink);
}
.sfcd-card--overlay .sfcd-card__amount {
	font-size: 30px;
}
.sfcd-card--overlay :is(.sfcd-card__title, .sfcd-card__trim, .sfcd-card__price, .sfcd-card__payment) {
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.sfcd-card--overlay .sfcd-card__trim,
.sfcd-card--overlay .sfcd-card__prev,
.sfcd-card--overlay .sfcd-card__payment,
.sfcd-card--overlay .sfcd-card__payment-u,
.sfcd-card--overlay .sfcd-fact__l,
.sfcd-card--overlay .sfcd-fact .sfcd-ico {
	color: rgba(255, 255, 255, 0.82);
}
.sfcd-card--overlay .sfcd-card__body > .sfcd-card__facts {
	border-top-color: rgba(255, 255, 255, 0.24);
}
.sfcd-card--overlay .sfcd-card__facts .sfcd-fact + .sfcd-fact::before {
	background: rgba(255, 255, 255, 0.28);
}
.sfcd-card--overlay .sfcd-card__pills {
	display: none;
}
@media (hover: hover) {
	.sfcd-card--overlay:hover .sfcd-card__title {
		color: var(--sfcd-photo-ink);
	}
}

/* ---- Mini variant (map popup, recently viewed, compact lists) ---- */
.sfcd-card--mini {
	flex-direction: row;
	align-items: stretch;
	height: auto;
	border-radius: 14px;
}
.sfcd-card--mini .sfcd-card__media {
	flex: 0 0 112px;
	aspect-ratio: auto;
	min-height: 96px;
}
.sfcd-card--mini .sfcd-card__actions {
	top: 6px;
	right: 6px;
}
.sfcd-card--mini .sfcd-card__body {
	gap: 3px;
	padding: 10px 12px;
	justify-content: center;
}
.sfcd-card--mini .sfcd-card__head {
	min-height: 0;
	font-size: 14px;
}
.sfcd-card--mini .sfcd-card__title {
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.sfcd-card--mini .sfcd-card__amount {
	font-size: 17px;
}
.sfcd-card--mini .sfcd-card__loc {
	font-size: 12px;
}
.sfcd-card--mini .sfcd-card__body > .sfcd-card__facts {
	--sfcd-fact-gap: 16px;
	margin: 3px 0 0;
	padding: 0;
	border: 0;
	font-size: 12.5px;
}
@media (hover: hover) {
	.sfcd-card--mini:hover {
		transform: none;
	}
}

/* ---- Skeleton ---- */
.sfcd-card.is-skeleton {
	pointer-events: none;
	box-shadow: none;
}
.sfcd-card.is-skeleton .sfcd-skel {
	display: block;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--sfcd-card-bg-2) 25%, color-mix(in srgb, var(--sfcd-card-bg-2) 40%, var(--sfcd-card-bg)) 37%, var(--sfcd-card-bg-2) 63%);
	background-size: 400% 100%;
	animation: sfcd-card-shimmer 1.4s ease-in-out infinite;
}
.sfcd-card.is-skeleton .sfcd-skel--media {
	width: 100%;
	height: 100%;
	border-radius: 0;
}
.sfcd-card.is-skeleton .sfcd-skel--title { width: 78%; height: 18px; }
.sfcd-card.is-skeleton .sfcd-skel--line { width: 46%; height: 12px; margin-top: 8px; }
.sfcd-card.is-skeleton .sfcd-skel--price { width: 40%; height: 26px; margin-top: 18px; }
.sfcd-card.is-skeleton .sfcd-skel--facts { width: 72%; height: 14px; margin-top: 22px; }
@keyframes sfcd-card-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* ======================================================================
 * 3. Dealer cards
 * ==================================================================== */
.sfcd-dealer-card[data-sfcd-dealer] {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--sfcd-card-edge);
	border-radius: var(--sfcd-card-radius);
	background: var(--sfcd-card-bg);
	box-shadow: var(--sfcd-card-shadow);
	color: var(--sfcd-card-ink);
	font-family: var(--sfcd-font-ui);
	transition: transform 0.35s var(--sfcd-card-ease), box-shadow 0.35s var(--sfcd-card-ease);
}
.sfcd-dealer-card__media {
	position: relative;
	flex: none;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--sfcd-card-bg-2);
}
.sfcd-dealer-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--sfcd-card-ease);
}
.sfcd-dealer-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.5) 100%);
	pointer-events: none;
}
.sfcd-card-open {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: calc(100% - 24px);
	height: 26px;
	padding: 0 11px 0 9px;
	overflow: hidden;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-glass);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	backdrop-filter: blur(10px) saturate(1.4);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.sfcd-card-open__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sfcd-card-muted);
}
.sfcd-card-open.is-open .sfcd-card-open__dot {
	background: var(--sfcd-card-neon);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--sfcd-card-neon) 26%, transparent);
}
.sfcd-card-open.is-closed .sfcd-card-open__dot {
	background: var(--sfcd-card-accent);
}
.sfcd-dealer-card__badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	font-family: var(--sfcd-font-num);
	font-size: 13px;
	font-weight: 800;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.sfcd-dealer-card__badge .sfcd-ico,
.sfcd-stat--rating .sfcd-ico {
	color: var(--sfcd-card-gold);
}
.sfcd-dealer-card__badge .sfcd-ico svg,
.sfcd-stat--rating .sfcd-ico svg {
	fill: currentColor;
}
.sfcd-dealer-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 0 20px 20px;
}
/* The logo disc overlaps the storefront photo. */
.sfcd-dealer-card__body > .sfcd-dealer-card__logo {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	margin-top: -26px;
	margin-bottom: 8px;
	box-shadow: 0 0 0 4px var(--sfcd-card-bg), 0 0 0 5px var(--sfcd-card-line);
}
.sfcd-dealer-card__name {
	margin: 0;
	font-family: var(--sfcd-font-display);
	font-size: 21px;
	font-weight: 700;
	font-stretch: 104%;
	line-height: 1.2;
	letter-spacing: -0.015em;
}
a.sfcd-dealer-card__link,
a.sfcd-dealer-card__link:hover,
a.sfcd-dealer-card__link:visited {
	color: inherit;
	text-decoration: none;
	outline: none;
}
.sfcd-dealer-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.sfcd-dealer-card__link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--sfcd-card-accent);
	border-radius: var(--sfcd-card-radius);
}
.sfcd-dealer-card__role {
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--sfcd-card-muted);
}
.sfcd-dealer-card__brands,
.sfcd-dealer-card__langs {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--sfcd-card-muted);
}
.sfcd-dealer-card__brands .sfcd-ico,
.sfcd-dealer-card__langs .sfcd-ico {
	color: var(--sfcd-card-accent);
}
.sfcd-dealer-card__amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.sfcd-dealer-card__amenities li {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg-2);
}
.sfcd-dealer-card__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 14px 0 0;
	padding: 14px 0 0;
	list-style: none;
	border-top: 1px solid var(--sfcd-card-line);
}
.sfcd-dealer-card__stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sfcd-dealer-card__stats strong {
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
}
.sfcd-dealer-card__stats span {
	overflow: hidden;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sfcd-card-muted);
}
.sfcd-dealer-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
}
a.sfcd-dealer-card__cta,
a.sfcd-dealer-card__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--sfcd-card-accent-2);
	text-decoration: none;
}
@media (hover: hover) {
	.sfcd-dealer-card[data-sfcd-dealer]:hover {
		transform: translateY(-4px);
		box-shadow: var(--sfcd-card-shadow-hover);
	}
	.sfcd-dealer-card[data-sfcd-dealer]:hover .sfcd-dealer-card__img {
		transform: scale(1.04);
	}
	.sfcd-dealer-card[data-sfcd-dealer]:hover .sfcd-dealer-card__cta .sfcd-ico {
		transform: translate(2px, -2px);
	}
}
.sfcd-dealer-card__cta .sfcd-ico {
	transition: transform 0.25s var(--sfcd-card-ease);
}

.sfcd-dealer-card--horizontal[data-sfcd-dealer] {
	flex-direction: row;
}
.sfcd-dealer-card--horizontal[data-sfcd-dealer] .sfcd-dealer-card__media {
	flex: 0 0 clamp(170px, 38%, 260px);
	aspect-ratio: auto;
	min-height: 220px;
}
.sfcd-dealer-card--horizontal[data-sfcd-dealer] .sfcd-dealer-card__body {
	padding: 20px;
}
.sfcd-dealer-card--horizontal[data-sfcd-dealer] .sfcd-dealer-card__body > .sfcd-dealer-card__logo {
	margin-top: 0;
}
@media (max-width: 600px) {
	.sfcd-dealer-card--horizontal[data-sfcd-dealer] {
		flex-direction: column;
	}
	.sfcd-dealer-card--horizontal[data-sfcd-dealer] .sfcd-dealer-card__media {
		flex-basis: auto;
		aspect-ratio: 16 / 10;
		min-height: 0;
	}
	.sfcd-dealer-card--horizontal[data-sfcd-dealer] .sfcd-dealer-card__body {
		padding: 0 20px 20px;
	}
	.sfcd-dealer-card--horizontal[data-sfcd-dealer] .sfcd-dealer-card__body > .sfcd-dealer-card__logo {
		margin-top: -26px;
	}
}
.sfcd-dealer-card--compact[data-sfcd-dealer],
.sfcd-dealer-card--mini[data-sfcd-dealer] {
	flex-direction: row;
	align-items: center;
	align-self: start;
	gap: 14px;
	height: auto;
	padding: 14px;
}
.sfcd-dealer-card--compact[data-sfcd-dealer] .sfcd-dealer-card__media,
.sfcd-dealer-card--mini[data-sfcd-dealer] .sfcd-dealer-card__media {
	flex: none;
	width: auto;
	height: auto;
	aspect-ratio: auto;
	overflow: visible;
	background: none;
}
.sfcd-dealer-card--compact[data-sfcd-dealer] .sfcd-dealer-card__body,
.sfcd-dealer-card--mini[data-sfcd-dealer] .sfcd-dealer-card__body {
	padding: 0;
	gap: 2px;
}
.sfcd-dealer-card--compact[data-sfcd-dealer] .sfcd-dealer-card__name {
	font-size: 18px;
}
.sfcd-dealer-card--compact[data-sfcd-dealer] .sfcd-dealer-card__actions {
	padding-top: 8px;
}
.sfcd-dealer-card--mini[data-sfcd-dealer] {
	padding: 10px 12px;
	border-radius: 14px;
	box-shadow: none;
}
.sfcd-dealer-card--mini[data-sfcd-dealer] .sfcd-dealer-card__name {
	font-family: var(--sfcd-font-ui);
	font-size: 15px;
	font-weight: 700;
}
.sfcd-dealer-card--mini[data-sfcd-dealer] .sfcd-dealer-card__role {
	font-size: 12.5px;
}
@media (hover: hover) {
	.sfcd-dealer-card--compact[data-sfcd-dealer]:hover,
	.sfcd-dealer-card--mini[data-sfcd-dealer]:hover {
		transform: none;
	}
}

/* ======================================================================
 * 4. Make tiles (brand / model tiles, monogram when there is no photo)
 * ==================================================================== */
.sfcd-loc-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-width: 0;
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	border-radius: var(--sfcd-card-radius);
	color: var(--sfcd-photo-ink);
	background: var(--sfcd-photo-bg);
	font-family: var(--sfcd-font-ui);
	box-shadow: var(--sfcd-card-shadow);
}
.sfcd-loc-tile__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.sfcd-loc-tile__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--sfcd-card-ease);
}
/* No photo: the make colour with a big monogram (never a real logo). */
.sfcd-loc-tile__ph {
	box-sizing: border-box;
	flex-direction: column;
	padding-bottom: 36%;
	color: var(--sfcd-photo-ink);
	background:
		radial-gradient(90% 70% at 22% 8%, rgba(255, 255, 255, 0.16), transparent 62%),
		var(--sfcd-card-mono, var(--sfcd-card-navy));
}
.sfcd-loc-tile__ph.is-dark {
	color: #0e1116;
}
.sfcd-loc-tile__ph .sfcd-card-mono,
.sfcd-loc-tile__ph .sfcd-loc-tile__mono {
	background: rgba(255, 255, 255, 0.14);
	color: inherit;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.sfcd-loc-tile__ph.is-dark .sfcd-card-mono,
.sfcd-loc-tile__ph.is-dark .sfcd-loc-tile__mono {
	background: rgba(14, 17, 22, 0.1);
	box-shadow: inset 0 0 0 2px rgba(14, 17, 22, 0.28);
}
.sfcd-loc-tile__scrim {
	position: absolute;
	inset: 0;
	/* Darker from the middle down than the generic photo scrim: the eyebrow
	   sits at ~60% of the tile height, on bright paint and sky. */
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.5) 62%, rgba(0, 0, 0, 0.8) 100%);
}
.sfcd-loc-tile__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 22px 22px;
}
.sfcd-loc-tile__parent {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sfcd-photo-ink);
}
.sfcd-loc-tile:not(.sfcd-loc-tile--card):not(.sfcd-loc-tile--chip) :is(.sfcd-loc-tile__parent, .sfcd-loc-tile__name, .sfcd-loc-tile__tagline, .sfcd-loc-tile__meta) {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.3);
}
.sfcd-loc-tile__name {
	margin: 0;
	font-family: var(--sfcd-font-display);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	font-stretch: 104%;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--sfcd-photo-ink);
}
a.sfcd-loc-tile__link,
a.sfcd-loc-tile__link:hover,
a.sfcd-loc-tile__link:visited {
	color: inherit;
	text-decoration: none;
	outline: none;
}
.sfcd-loc-tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}
.sfcd-loc-tile__link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--sfcd-card-accent);
	border-radius: var(--sfcd-card-radius);
}
.sfcd-loc-tile__tagline {
	max-width: 46ch;
	margin: 2px 0 0;
	font-family: var(--sfcd-font-body);
	font-size: 14.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.86);
}
.sfcd-loc-tile__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 6px 0 0;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sfcd-photo-ink);
}
.sfcd-loc-tile__meta span + span::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin: 0 9px 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}
.sfcd-loc-tile__go {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-glass);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	transform: translate(-6px, 6px) scale(0.9);
	transition: opacity 0.3s ease, transform 0.35s var(--sfcd-card-ease);
}
@media (hover: hover) {
	.sfcd-loc-tile:hover .sfcd-loc-tile__img {
		transform: scale(1.06);
	}
	.sfcd-loc-tile:hover .sfcd-loc-tile__go {
		opacity: 1;
		transform: none;
	}
}
.sfcd-loc-tile:focus-within .sfcd-loc-tile__go {
	opacity: 1;
	transform: none;
}
@media (hover: none) {
	.sfcd-loc-tile__go {
		opacity: 1;
		transform: none;
	}
}

.sfcd-loc-tile--wide {
	aspect-ratio: 16 / 9;
}
.sfcd-loc-tile--wide .sfcd-loc-tile__name {
	font-size: clamp(26px, 3vw, 38px);
}
@media (max-width: 600px) {
	.sfcd-loc-tile--wide {
		aspect-ratio: 4 / 5;
	}
}

.sfcd-loc-tile--card {
	aspect-ratio: auto;
	justify-content: flex-start;
	overflow: visible;
	color: var(--sfcd-card-ink);
	background: transparent;
	box-shadow: none;
}
.sfcd-loc-tile--card .sfcd-loc-tile__media {
	position: relative;
	inset: auto;
	aspect-ratio: 3 / 2;
	border-radius: var(--sfcd-card-radius);
	background: var(--sfcd-card-bg-2);
}
.sfcd-loc-tile--card .sfcd-loc-tile__ph {
	padding-bottom: 0;
}
.sfcd-loc-tile--card .sfcd-loc-tile__body {
	padding: 14px 2px 0;
}
.sfcd-loc-tile--card .sfcd-loc-tile__parent {
	color: var(--sfcd-card-muted);
	text-shadow: none;
}
.sfcd-loc-tile--card .sfcd-loc-tile__name {
	font-size: 22px;
	color: var(--sfcd-card-ink);
}
.sfcd-loc-tile--card .sfcd-loc-tile__tagline,
.sfcd-loc-tile--card .sfcd-loc-tile__meta {
	color: var(--sfcd-card-muted);
}
.sfcd-loc-tile--card .sfcd-loc-tile__go {
	display: none;
}

a.sfcd-loc-tile--chip,
a.sfcd-loc-tile--chip:hover,
a.sfcd-loc-tile--chip:visited {
	color: var(--sfcd-card-ink);
	text-decoration: none;
}
.sfcd-loc-tile--chip {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	height: auto;
	aspect-ratio: auto;
	padding: 5px 8px 5px 5px;
	overflow: visible;
	border: 1px solid var(--sfcd-card-line);
	border-radius: 999px;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg);
	box-shadow: none;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.sfcd-loc-tile--chip .sfcd-loc-tile__media {
	position: relative;
	inset: auto;
	display: inline-flex;
	flex: none;
	overflow: visible;
}
.sfcd-loc-tile--chip .sfcd-loc-tile__name {
	font-family: var(--sfcd-font-ui);
	font-size: 14px;
	font-weight: 700;
	font-stretch: 100%;
	letter-spacing: 0;
	color: var(--sfcd-card-ink);
	white-space: nowrap;
}
.sfcd-loc-tile__count {
	padding: 3px 8px;
	border-radius: 999px;
	font-family: var(--sfcd-font-num);
	font-size: 12px;
	font-weight: 700;
	color: var(--sfcd-card-muted);
	background: var(--sfcd-card-bg-2);
}
@media (hover: hover) {
	.sfcd-loc-tile--chip:hover {
		border-color: var(--sfcd-card-accent-2);
		transform: translateY(-1px);
	}
}
.sfcd-loc-tile--chip:focus-visible {
	outline: 2px solid var(--sfcd-card-accent);
	outline-offset: 2px;
}

/* ======================================================================
 * 5. Field blocks (.sfcd-f-*) — defaults the block theme refines via Looks
 * ==================================================================== */
.sfcd-f {
	box-sizing: border-box;
	min-width: 0;
	font-family: var(--sfcd-font-ui);
}
.sfcd-f.is-empty {
	display: none !important;
}

/* Cards built from fields: the card is the positioning box of the stretched link */
:where(.sfcd-loop) > *,
:where(.wp-block-post-template) > li,
:where(.wp-block-group):has(> .sfcd-f-vehicle-link, > .sfcd-f-make-link) {
	position: relative;
}
:where(.sfcd-loop) > :where(.wp-block-group) {
	transition: transform 0.35s var(--sfcd-card-ease), box-shadow 0.35s var(--sfcd-card-ease);
}
.sfcd-f-vehicle-favorite,
.sfcd-f-vehicle-compare,
.sfcd-f-vehicle-dealer,
.sfcd-f-vehicle-vin .sfcd-copy,
.sfcd-f-dealer-phone,
.sfcd-f-dealer-email,
.sfcd-f-dealer-socials,
.sfcd-f-dealer-contact-buttons {
	position: relative;
	z-index: 2;
}
/* The heart over a field-composed photo keeps the canonical top-right
 * placement (absolute, from .sfcd-card__actions) and sits above the
 * stretched .sfcd-f-vehicle-link (z-index 1). Never `position: relative`
 * here: the figure clips with overflow:hidden, so an in-flow actions bar
 * drops under the photo and disappears. */
.sfcd-f-vehicle-image > .sfcd-card__actions {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	bottom: auto;
	z-index: 3;
}

.sfcd-f-vehicle-title,
.sfcd-f-dealer-name,
.sfcd-f-make-name {
	margin: 0;
	font-family: var(--sfcd-font-display);
	font-size: 17px;
	font-weight: 700;
	font-stretch: 104%;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--sfcd-card-ink);
}
.sfcd-f-vehicle-title a,
.sfcd-f-dealer-name a,
.sfcd-f-make-name a,
.sfcd-f-vehicle-image a.sfcd-f-vehicle-image__link,
.sfcd-f-dealer-photo a {
	color: inherit;
	text-decoration: none;
}
.sfcd-f-vehicle-title a:hover,
.sfcd-f-dealer-name a:hover {
	color: var(--sfcd-card-accent-strong);
}
.sfcd-f-dealer-name,
.sfcd-f-make-name {
	font-size: 22px;
	line-height: 1.2;
}

.sfcd-f-vehicle-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	line-height: 1.05;
	color: var(--sfcd-card-ink);
}
.sfcd-f-vehicle-payment,
.sfcd-f-vehicle-stock,
.sfcd-f-vehicle-date {
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 13px;
	font-weight: 500;
	color: var(--sfcd-card-muted);
}
.sfcd-f-vehicle-payment .sfcd-card__payment-v {
	font-size: 14px;
}
.sfcd-f-vehicle-stock .sfcd-f__l {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 11px;
}
.sfcd-f-vehicle-stock .sfcd-f__v {
	color: var(--sfcd-card-ink);
	font-weight: 600;
}

/* vehicle-image */
.sfcd-f-vehicle-image {
	position: relative;
	display: block;
	margin: 0;
	aspect-ratio: var(--sfcd-aspect, 4 / 3);
	overflow: hidden;
	border-radius: var(--sfcd-card-radius);
	background: var(--sfcd-card-bg-2);
}
.sfcd-f-vehicle-image.is-natural {
	aspect-ratio: auto;
}
.sfcd-f-vehicle-image__link {
	display: block;
	width: 100%;
	height: 100%;
}
.sfcd-f-vehicle-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--sfcd-card-ease), filter 0.4s ease;
}

/* stretched links */
.sfcd-f-vehicle-link,
.sfcd-f-make-link {
	position: static;
	display: block;
	width: 0;
	height: 0;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible;
	outline: none;
}
.sfcd-f-vehicle-link::after,
.sfcd-f-make-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.sfcd-f-vehicle-link:focus-visible::after,
.sfcd-f-make-link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--sfcd-card-accent);
	border-radius: var(--sfcd-card-radius);
}
.sfcd-f-make-link::after {
	z-index: 3;
}

.sfcd-f-vehicle-body,
.sfcd-f-vehicle-make {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sfcd-card-accent-2);
}
.sfcd-f-vehicle-make {
	color: var(--sfcd-card-muted);
}
.sfcd-f-vehicle-location {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--sfcd-card-muted);
}
.sfcd-f-vehicle-location .sfcd-ico {
	color: var(--sfcd-card-accent);
}
.sfcd-f-vehicle-vin {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0;
	font-size: 13px;
	color: var(--sfcd-card-muted);
}
.sfcd-f-vehicle-vin .sfcd-f__l {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.sfcd-f-vehicle-vin__code {
	padding: 0;
	background: none;
	font-family: var(--sfcd-font-num);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--sfcd-card-ink);
	word-break: break-all;
}
.sfcd-f-vehicle-mileage,
.sfcd-f-vehicle-fuel,
.sfcd-f-vehicle-transmission,
.sfcd-f-vehicle-drivetrain,
.sfcd-f-vehicle-engine,
.sfcd-f-vehicle-mpg,
.sfcd-f-vehicle-year {
	padding: 0;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 14px;
}
.sfcd-f-vehicle-facts {
	margin: 0;
}
.sfcd-f-vehicle-trim {
	/* Same muted trim line as the canonical card (.sfcd-card__trim); N-line clamp via --sfcd-trim-lines. */
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--sfcd-font-body);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	overflow-wrap: anywhere;
	color: var(--sfcd-card-muted);
	-webkit-line-clamp: var(--sfcd-trim-lines, 1);
	-webkit-box-orient: vertical;
}
.sfcd-f-vehicle-excerpt {
	margin: 0;
	font-family: var(--sfcd-font-body);
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--sfcd-card-muted);
}
.sfcd-f-vehicle-dealer,
a.sfcd-f-vehicle-dealer,
a.sfcd-f-vehicle-dealer:visited {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--sfcd-card-ink);
	text-decoration: none;
}
.sfcd-f-vehicle-dealer.is-logo .sfcd-card-logo {
	--sfcd-card-logo-size: 44px;
}
.sfcd-f-vehicle-dealer:hover .sfcd-f-vehicle-dealer__name {
	color: var(--sfcd-card-accent-strong);
}
.sfcd-f-vehicle-dealer__name {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.sfcd-f-vehicle-offer {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: color-mix(in srgb, var(--sfcd-card-accent-2) 84%, var(--sfcd-card-ink));
	background: var(--sfcd-card-wash);
}
.sfcd-f-vehicle-offer__end {
	padding-left: 8px;
	border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	font-family: var(--sfcd-font-num);
	font-weight: 600;
	opacity: 0.85;
	white-space: nowrap;
}
.sfcd-f-vehicle-favorite,
.sfcd-f-vehicle-compare {
	display: inline-flex;
}
.sfcd-f-vehicle-condition-badge,
.sfcd-f-vehicle-status-badge,
.sfcd-f-vehicle-label-badge {
	width: max-content;
}

/* dealer fields */
.sfcd-f-dealer-photo {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--sfcd-card-radius);
	background: var(--sfcd-card-bg-2);
}
.sfcd-f-dealer-photo.is-circle {
	aspect-ratio: 1 / 1;
	max-width: 240px;
	border-radius: 50%;
}
.sfcd-f-dealer-photo.is-square {
	aspect-ratio: 1 / 1;
}
.sfcd-f-dealer-photo a {
	display: block;
	width: 100%;
	height: 100%;
}
.sfcd-f-dealer-photo__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sfcd-f-dealer-photo__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: color-mix(in srgb, var(--sfcd-card-muted) 55%, transparent);
}
.sfcd-f-dealer-photo .sfcd-avatar--initials {
	border-radius: 0;
	font-size: 32px;
}
.sfcd-f-dealer-tagline {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--sfcd-card-muted);
}
.sfcd-f-dealer-phone,
.sfcd-f-dealer-email {
	margin: 0;
	font-family: var(--sfcd-font-num);
	font-size: 15px;
	font-weight: 600;
}
.sfcd-f-dealer-phone a,
.sfcd-f-dealer-email a,
.sfcd-f-dealer-phone > span,
.sfcd-f-dealer-email > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sfcd-card-ink);
	text-decoration: none;
}
.sfcd-f-dealer-phone .sfcd-ico,
.sfcd-f-dealer-email .sfcd-ico {
	color: var(--sfcd-card-accent-2);
}
.sfcd-f-dealer-phone a:hover,
.sfcd-f-dealer-email a:hover {
	color: var(--sfcd-card-accent-strong);
}
.sfcd-f-dealer-bio {
	font-family: var(--sfcd-font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--sfcd-card-muted);
}
.sfcd-f-dealer-bio p {
	margin: 0 0 0.8em;
}
.sfcd-f-dealer-bio p:last-child {
	margin-bottom: 0;
}
.sfcd-f-dealer-stats {
	/* Four stats lay out as one row of 4 or an even 2×2 — never 3+1 with
	   the last one orphaned: below --sfcd-stats-4up the min track jumps to
	   half the width (clamp() is 0 above it, so a quarter wins). */
	--sfcd-stats-gap: 14px;
	--sfcd-stats-4up: 400px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(max(calc((100% - 3 * var(--sfcd-stats-gap)) / 4), clamp(0px, (var(--sfcd-stats-4up) - 100%) * 999, calc((100% - var(--sfcd-stats-gap)) / 2))), 1fr));
	gap: var(--sfcd-stats-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.sfcd-stat {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.sfcd-stat__v {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--sfcd-card-ink);
}
.sfcd-stat__l {
	overflow: hidden;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sfcd-card-muted);
}
.sfcd-f-dealer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sfcd-f-dealer-socials .sfcd-icon-btn {
	padding: 0;
}
.sfcd-f-dealer-contact-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.sfcd-f-dealer-contact-buttons .sfcd-btn {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid var(--sfcd-card-line);
	border-radius: 12px;
	font-family: var(--sfcd-font-ui);
	font-size: 14.5px;
	font-weight: 700;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sfcd-f-dealer-contact-buttons .sfcd-btn--primary {
	border-color: var(--sfcd-fill-accent);
	color: var(--sfcd-card-on);
	background: var(--sfcd-fill-accent);
}
@media (hover: hover) {
	.sfcd-f-dealer-contact-buttons .sfcd-btn:hover {
		border-color: var(--sfcd-card-ink);
		transform: translateY(-1px);
	}
	.sfcd-f-dealer-contact-buttons .sfcd-btn--primary:hover {
		/* Darker on hover (light) / lighter (dark): the label keeps its contrast. */
		border-color: color-mix(in srgb, var(--sfcd-fill-accent) 88%, var(--sfcd-card-ink));
		background: color-mix(in srgb, var(--sfcd-fill-accent) 88%, var(--sfcd-card-ink));
	}
}

/* make fields */
.sfcd-f-make-image {
	position: relative;
	margin: 0;
	aspect-ratio: var(--sfcd-aspect, 4 / 5);
	overflow: hidden;
	border-radius: var(--sfcd-card-radius);
	background: var(--sfcd-photo-bg);
}
.sfcd-f-make-image.is-fill {
	position: absolute;
	inset: 0;
	z-index: 0;
	aspect-ratio: auto;
	border-radius: inherit;
}
/* The hero <picture> (phone / desktop sources) must not become a box of its own. */
.sfcd-f-make-image__pic {
	display: contents;
}
.sfcd-f-make-image img,
.sfcd-f-make-image__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--sfcd-card-ease);
}
.sfcd-f-make-image__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--sfcd-photo-ink);
	background:
		radial-gradient(90% 70% at 22% 8%, rgba(255, 255, 255, 0.16), transparent 62%),
		var(--sfcd-card-mono, var(--sfcd-card-navy));
}
.sfcd-f-make-image__scrim {
	position: absolute;
	inset: 0;
	background: var(--sfcd-photo-scrim);
	pointer-events: none;
}
@media (hover: hover) {
	:where(.sfcd-loop) > *:hover .sfcd-f-make-image img {
		transform: scale(1.06);
	}
}
.sfcd-f-make-count,
.sfcd-f-make-median {
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 13.5px;
	font-weight: 600;
}
.sfcd-f-make-median .sfcd-f__l {
	font-weight: 500;
	opacity: 0.8;
}
.sfcd-f-make-tagline {
	margin: 0;
	font-family: var(--sfcd-font-body);
	font-size: 15px;
	line-height: 1.55;
	color: var(--sfcd-card-muted);
}

/* Field-composed cards — the editor's default loop templates use these
 * classes (core/group .sfcd-card.sfcd-card--composed > vehicle-image +
 * group.sfcd-card__body; group.sfcd-dealer-tile; group.sfcd-make-tile),
 * so a freshly inserted loop already matches the canonical card. */
.sfcd-card > .sfcd-f-vehicle-image,
.sfcd-card > .wp-block-car-dealer-vehicle-image {
	flex: none;
	border-radius: 0;
}
.sfcd-card--composed {
	transition: transform 0.35s var(--sfcd-card-ease), box-shadow 0.35s var(--sfcd-card-ease);
}
.sfcd-card--composed > .sfcd-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sfcd-card--composed .sfcd-f-vehicle-title {
	/* Same 2-line clamp as the canonical .sfcd-card__title. */
	display: -webkit-box;
	min-height: 2.5em;
	min-height: 2lh;
	overflow: hidden;
	white-space: normal;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.sfcd-card--composed .sfcd-f-vehicle-facts {
	margin-top: 6px;
}
/* Footer: the dealer name never wraps (it broke footer alignment in 4-up rows). */
.sfcd-card--composed .sfcd-f-vehicle-date,
.sfcd-card--composed .sfcd-f-vehicle-offer {
	/* !important: themes pin this meta with flex-shrink:0 (by #id); with
	   nowrap + ellipsis here it can give way, so the dealer name never cuts. */
	flex-shrink: 1000 !important;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
/* vehicle-date mode "short": "[clock] 12 days", the canonical card's footer meta. */
.sfcd-f-vehicle-date svg {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
}
@media (hover: hover) {
	.sfcd-card:hover .sfcd-f-vehicle-image img,
	.sfcd-card--composed:hover .sfcd-f-vehicle-image img {
		transform: scale(1.04);
	}
	/* On the link itself: Looks colours the h3 by #id, which an inherited
	   colour can't beat — the <a> rule applies directly. */
	.sfcd-card--composed:hover .sfcd-f-vehicle-title,
	.sfcd-card--composed:hover .sfcd-f-vehicle-title a {
		color: var(--sfcd-card-accent-strong);
	}
}

.sfcd-dealer-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 28px 22px 24px;
	border: 1px solid var(--sfcd-card-edge);
	border-radius: var(--sfcd-card-radius);
	background: var(--sfcd-card-bg);
	box-shadow: var(--sfcd-card-shadow);
	text-align: center;
	transition: transform 0.35s var(--sfcd-card-ease), box-shadow 0.35s var(--sfcd-card-ease);
}
.sfcd-dealer-tile .sfcd-f-dealer-photo {
	width: 112px;
	margin-bottom: 8px;
	box-shadow: 0 0 0 4px var(--sfcd-card-bg), 0 0 0 5px var(--sfcd-card-line);
}
.sfcd-dealer-tile .sfcd-f-dealer-name {
	font-size: 20px;
}
.sfcd-dealer-tile .sfcd-f-dealer-stats {
	width: 100%;
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--sfcd-card-line);
}
/* Centred card heads (dealer tiles) get centred stats. */
.sfcd-dealer-tile .sfcd-stat,
.sfcd-card--dealer .sfcd-stat,
.sfcd-f-dealer-stats.has-text-align-center .sfcd-stat {
	align-items: center;
	text-align: center;
}
/* Narrow dealer tiles: Call keeps its label, Email / Directions become icon
 * buttons on the same row (the label stays for screen readers). */
.sfcd-dealer-tile,
.sfcd-card--dealer {
	container: sfcd-dealer / inline-size;
}
@container sfcd-dealer (max-width: 360px) {
	.sfcd-f-dealer-contact-buttons {
		flex-wrap: nowrap;
	}
	.sfcd-f-dealer-contact-buttons .sfcd-btn--ghost {
		flex: 0 0 46px;
		padding: 0;
	}
	.sfcd-f-dealer-contact-buttons .sfcd-btn--ghost > span:not(.sfcd-ico) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}
@media (hover: hover) {
	.sfcd-dealer-tile:hover {
		transform: translateY(-4px);
		box-shadow: var(--sfcd-card-shadow-hover);
	}
}

.sfcd-make-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4px;
	min-width: 0;
	min-height: 320px;
	aspect-ratio: 4 / 5;
	padding: 20px 22px 22px;
	overflow: hidden;
	border-radius: var(--sfcd-card-radius);
	color: var(--sfcd-photo-ink);
	background: var(--sfcd-photo-bg);
	box-shadow: var(--sfcd-card-shadow);
}
.sfcd-make-tile > .sfcd-f-make-image {
	position: absolute;
	inset: 0;
	z-index: -1;
	aspect-ratio: auto;
	border-radius: 0;
}
.sfcd-make-tile .sfcd-f-make-name {
	font-size: clamp(22px, 2.2vw, 28px);
	color: var(--sfcd-photo-ink);
}
.sfcd-make-tile .sfcd-f-make-count,
.sfcd-make-tile .sfcd-f-make-median,
.sfcd-make-tile .sfcd-f-make-tagline {
	color: var(--sfcd-photo-ink);
}
.sfcd-make-tile :is(.sfcd-f-make-name, .sfcd-f-make-count, .sfcd-f-make-median, .sfcd-f-make-tagline) {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.3);
}
.sfcd-make-tile .sfcd-f-make-image__scrim {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.5) 62%, rgba(0, 0, 0, 0.8) 100%);
}
.sfcd-make-tile .sfcd-f-make-link::after {
	z-index: 3;
}
@media (hover: hover) {
	.sfcd-make-tile:hover .sfcd-f-make-image img {
		transform: scale(1.06);
	}
}

/* ======================================================================
 * 6. Loops, empty state, pagination, context wrappers
 * ==================================================================== */
.sfcd-loop {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--sfcd-loop-min, 300px)), 1fr));
	gap: var(--sfcd-loop-gap, 24px);
	min-width: 0;
}
.sfcd-loop--dealers {
	--sfcd-loop-min: 280px;
}
.sfcd-loop--makes {
	--sfcd-loop-min: 220px;
}
.sfcd-loop > style {
	display: none;
}
/* Phone layout "Swipe rail" (mobileLayout=rail on vehicle / dealer /
 * make loops): one row that scrolls sideways with snap points, the next
 * item peeking in, instead of a 6-card stack. !important beats the Looks
 * #block_x grid columns of the loop root. */
@media (max-width: 599px) {
	.sfcd-loop.is-mobile-rail {
		grid-template-columns: none !important;
		grid-auto-flow: column !important;
		grid-auto-columns: min(82%, 320px);
		gap: 14px !important;
		margin-top: -6px;
		padding: 6px 0 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.sfcd-loop.is-mobile-rail::-webkit-scrollbar {
		display: none;
	}
	.sfcd-loop.is-mobile-rail > * {
		scroll-snap-align: start;
	}
	.sfcd-loop--dealers.is-mobile-rail,
	.sfcd-loop--makes.is-mobile-rail {
		grid-auto-columns: min(72%, 280px);
	}
}
.sfcd-loop__empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 24px;
	border: 1px dashed var(--sfcd-card-line);
	border-radius: var(--sfcd-card-radius);
	text-align: center;
	font-family: var(--sfcd-font-ui);
	color: var(--sfcd-card-muted);
	background: color-mix(in srgb, var(--sfcd-card-bg) 60%, transparent);
}
.sfcd-loop__empty .sfcd-ico {
	display: inline-flex;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: var(--sfcd-card-accent-2);
	background: var(--sfcd-card-wash);
}
.sfcd-loop__empty p {
	max-width: 48ch;
	margin: 0;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--sfcd-card-ink);
}
a.sfcd-loop__reset {
	display: inline-block;
	margin-left: 6px;
	color: var(--sfcd-card-accent-strong);
	font-weight: 700;
}

.sfcd-lp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	font-family: var(--sfcd-font-ui);
}
.sfcd-lp.is-empty {
	display: none;
}
.sfcd-lp__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sfcd-lp .sfcd-lp__num,
.sfcd-lp .sfcd-lp__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--sfcd-card-line);
	border-radius: 12px;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.sfcd-lp .sfcd-lp__link {
	padding: 0 16px;
	font-family: var(--sfcd-font-ui);
}
.sfcd-lp a.sfcd-lp__num:hover,
.sfcd-lp a.sfcd-lp__link:hover {
	border-color: var(--sfcd-card-ink);
	color: var(--sfcd-card-ink);
	text-decoration: none;
}
a.sfcd-lp__num:focus-visible,
a.sfcd-lp__link:focus-visible {
	outline: 2px solid var(--sfcd-card-accent);
	outline-offset: 2px;
}
.sfcd-lp .sfcd-lp__num.is-current {
	border-color: var(--sfcd-card-ink);
	color: var(--sfcd-card-on);
	background: var(--sfcd-card-ink);
}
.sfcd-lp__link.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}
.sfcd-lp__gap {
	min-width: 20px;
	text-align: center;
	color: var(--sfcd-card-muted);
}
.sfcd-lp__status {
	flex-basis: 100%;
	margin: 4px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--sfcd-card-muted);
}
@media (max-width: 600px) {
	.sfcd-lp__link span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
	.sfcd-lp .sfcd-lp__link {
		padding: 0;
		min-width: 44px;
	}
	.sfcd-lp .sfcd-lp__num {
		min-width: 40px;
		height: 40px;
	}
}

.sfcd-ctx {
	min-width: 0;
}
.sfcd-ctx.is-empty {
	display: none;
}
.sfcd-ctx__hint {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--sfcd-card-line);
	border-radius: 12px;
	font-family: var(--sfcd-font-ui);
	font-size: 13.5px;
	color: var(--sfcd-card-muted);
}

/* ======================================================================
 * 7. Header "Saved" link + count badge
 * ==================================================================== */
.sfcd-saved-link {
	display: inline-flex;
}
.sfcd-saved-link .sfcd-saved-link__a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px 0 10px;
	border-radius: 999px;
	font-family: var(--sfcd-font-ui);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--sfcd-card-ink);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.sfcd-saved-link.is-icon .sfcd-saved-link__a {
	width: 40px;
	padding: 0;
	justify-content: center;
}
.sfcd-saved-link .sfcd-saved-link__a:hover {
	color: var(--sfcd-card-ink);
	text-decoration: none;
	background: color-mix(in srgb, var(--sfcd-card-ink) 6%, transparent);
}
.sfcd-saved-link__a:focus-visible {
	outline: 2px solid var(--sfcd-card-accent);
	outline-offset: 2px;
}
.sfcd-saved-link__icon {
	position: relative;
	display: inline-flex;
	line-height: 0;
}
.sfcd-saved-link .sfcd-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: -2px;
	padding: 0 5px;
	border-radius: 999px;
	font-family: var(--sfcd-font-num);
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	color: var(--sfcd-card-on);
	background: var(--sfcd-card-ink);
}
.sfcd-saved-link .sfcd-badge[hidden] {
	display: none;
}
/* Icon-only: a 16px badge pinned to the button corner, ringed in the
 * header colour, clear of the heart. */
.sfcd-saved-link.is-icon .sfcd-saved-link__count {
	position: absolute;
	top: -2px;
	right: -4px;
	min-width: 16px;
	height: 16px;
	margin: 0;
	padding: 0 4px;
	font-size: 10px;
	color: var(--sfcd-card-on);
	background: var(--sfcd-fill-accent);
	box-shadow: 0 0 0 2px var(--wp--preset--color--glass, var(--sfcd-card-bg));
}
/* Saved state: the heart stays an outline with a light ember wash. */
.sfcd-saved-link:has(.sfcd-badge:not([hidden])) .sfcd-saved-link__icon svg {
	fill: color-mix(in srgb, var(--sfcd-card-accent) 15%, transparent);
	stroke: var(--sfcd-card-accent);
}
.sfcd-saved-link .sfcd-badge.is-bump {
	animation: sfcd-badge-bump 0.45s var(--sfcd-card-ease);
}
@keyframes sfcd-badge-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.45); }
	100% { transform: scale(1); }
}

/* ======================================================================
 * 7b. Saved searches (built by favorites.js inside the Saved page list)
 * ==================================================================== */
.sfcd-ss {
	margin: 0 0 32px;
	padding: 20px 22px;
	border: 1px solid var(--sfcd-card-edge);
	border-radius: var(--sfcd-card-radius);
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg);
	box-shadow: var(--sfcd-card-shadow);
	font-family: var(--sfcd-font-ui);
	text-align: start;
}
.sfcd-ss:focus {
	outline: none;
}
.sfcd-ss.is-empty {
	margin: 40px 0 0;
	padding: 16px 20px;
	border-style: dashed;
	border-color: var(--sfcd-card-line);
	background: transparent;
	box-shadow: none;
}
.sfcd-ss__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}
.sfcd-ss.is-empty .sfcd-ss__head {
	margin-bottom: 4px;
}
.sfcd-ss__title {
	margin: 0;
	font-family: var(--sfcd-font-ui);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--sfcd-card-ink);
}
.sfcd-ss__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	font-family: var(--sfcd-font-num);
	font-size: 12px;
	font-weight: 800;
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg-2);
}
.sfcd-ss__empty {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--sfcd-card-muted);
}
.sfcd-ss a.sfcd-ss__cta {
	font-weight: 700;
	color: var(--sfcd-card-accent-2);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sfcd-ss__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sfcd-ss__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 10px 8px 10px 12px;
	border: 1px solid var(--sfcd-card-line);
	border-radius: 12px;
	background: var(--sfcd-card-bg);
	transition: border-color 0.2s ease;
}
.sfcd-ss__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--sfcd-card-accent-2);
	background: var(--sfcd-card-wash);
}
.sfcd-ss__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sfcd-ss a.sfcd-ss__link {
	overflow: hidden;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sfcd-card-ink);
	text-decoration: none;
	outline: none;
}
.sfcd-ss a.sfcd-ss__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.sfcd-ss a.sfcd-ss__link:focus-visible::after {
	box-shadow: inset 0 0 0 2px var(--sfcd-card-accent);
}
.sfcd-ss__meta {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--sfcd-card-muted);
}
.sfcd-ss a.sfcd-ss__open {
	flex: none;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--sfcd-card-accent-2);
	text-decoration: none;
}
.sfcd-ss__remove {
	position: relative;
	z-index: 1;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: var(--sfcd-card-muted);
	background: transparent;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.sfcd-ss__remove:hover {
	color: var(--sfcd-card-ink);
	background: var(--sfcd-card-bg-2);
}
.sfcd-ss__remove:focus-visible {
	outline: 2px solid var(--sfcd-card-accent);
	outline-offset: 1px;
}
@media (hover: hover) {
	.sfcd-ss__item:hover {
		border-color: var(--sfcd-card-ink);
	}
}
@media (max-width: 600px) {
	.sfcd-ss {
		padding: 16px;
	}
	.sfcd-ss a.sfcd-ss__open {
		display: none;
	}
}

/* ======================================================================
 * 8. Compare tray + fallback toast (built by favorites.js / compare.js)
 * ==================================================================== */
.sfcd-cmp-tray {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100vw - 24px);
	padding: 10px 10px 10px 12px;
	border: 1px solid var(--sfcd-card-edge);
	border-radius: 18px;
	color: var(--sfcd-card-ink);
	background: var(--wp--preset--color--glass-2, var(--sfcd-card-glass));
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	box-shadow: var(--wp--preset--shadow--depth-4, 0 20px 50px rgba(14, 17, 22, 0.22));
	font-family: var(--sfcd-font-ui);
	transform: translate(-50%, 140%);
	transition: transform 0.4s var(--sfcd-card-ease);
}
.sfcd-cmp-tray.is-visible {
	transform: translate(-50%, 0);
}
.sfcd-cmp-tray[hidden] {
	display: none;
}
.sfcd-cmp-tray__thumbs {
	display: flex;
}
.sfcd-cmp-tray__thumb {
	width: 46px;
	height: 34px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--sfcd-card-bg-2);
	box-shadow: 0 0 0 2px var(--sfcd-card-bg);
}
.sfcd-cmp-tray__thumb + .sfcd-cmp-tray__thumb {
	margin-left: -8px;
}
.sfcd-cmp-tray__thumb.is-empty {
	border: 1px dashed var(--sfcd-card-line);
	background: transparent;
	box-shadow: none;
}
.sfcd-cmp-tray__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sfcd-cmp-tray__text {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}
.sfcd-cmp-tray__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}
.sfcd-cmp-tray__clear,
.sfcd-cmp-tray__go {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}
.sfcd-cmp-tray__clear {
	color: var(--sfcd-card-muted);
	background: transparent;
}
.sfcd-cmp-tray__clear:hover {
	color: var(--sfcd-card-ink);
}
.sfcd-cmp-tray__go {
	color: var(--sfcd-card-on);
	background: var(--sfcd-fill-accent);
}
.sfcd-cmp-tray__go.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}
.sfcd-cmp-tray__clear:focus-visible,
.sfcd-cmp-tray__go:focus-visible {
	outline: 2px solid var(--sfcd-card-accent);
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.sfcd-cmp-tray {
		left: 12px;
		right: 12px;
		bottom: 12px;
		transform: translateY(140%);
	}
	.sfcd-cmp-tray.is-visible {
		transform: none;
	}
	.sfcd-cmp-tray__text {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 13px;
	}
	.sfcd-cmp-tray__clear {
		display: none;
	}
}

.sfcd-fav-toast {
	position: fixed;
	left: 50%;
	bottom: 88px;
	z-index: 9995;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100vw - 32px);
	padding: 12px 14px 12px 16px;
	border-radius: 14px;
	font-family: var(--sfcd-font-ui);
	font-size: 14px;
	font-weight: 600;
	color: var(--sfcd-card-on);
	background: var(--sfcd-card-ink);
	box-shadow: var(--wp--preset--shadow--depth-4, 0 20px 50px rgba(14, 17, 22, 0.25));
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity 0.25s ease, transform 0.3s var(--sfcd-card-ease), visibility 0s linear 0.3s;
	pointer-events: none;
}
.sfcd-fav-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity 0.25s ease, transform 0.3s var(--sfcd-card-ease), visibility 0s;
	pointer-events: auto;
}
.sfcd-fav-toast__action {
	flex: none;
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ======================================================================
 * 9. Motion safety
 * ==================================================================== */
@media (prefers-reduced-motion: reduce) {
	.sfcd-card,
	.sfcd-card__img,
	.sfcd-card__media > img,
	.sfcd-dealer-card[data-sfcd-dealer],
	.sfcd-dealer-card__img,
	.sfcd-loc-tile__img,
	.sfcd-loc-tile__go,
	.sfcd-f-vehicle-image img,
	.sfcd-f-make-image img,
	.sfcd-fav,
	.sfcd-cmp,
	.sfcd-fav__heart,
	.sfcd-dealmeter__zone,
	.sfcd-cmp-tray,
	.sfcd-fav-toast {
		transition: none !important;
	}
	.sfcd-card:hover,
	.sfcd-card--composed:hover,
	.sfcd-dealer-card[data-sfcd-dealer]:hover,
	.sfcd-dealer-tile:hover {
		transform: none !important;
	}
	.sfcd-card--composed:hover .sfcd-f-vehicle-image img,
	.sfcd-card:hover .sfcd-card__img,
	.sfcd-dealer-card[data-sfcd-dealer]:hover .sfcd-dealer-card__img,
	.sfcd-loc-tile:hover .sfcd-loc-tile__img,
	.sfcd-make-tile:hover .sfcd-f-make-image img,
	.sfcd-f-vehicle-image:hover img {
		transform: none !important;
	}
	.sfcd-fav.is-popping .sfcd-fav__heart,
	.sfcd-fav.is-popping .sfcd-fav__burst,
	.sfcd-badge.is-bump,
	.sfcd-card.is-skeleton .sfcd-skel {
		animation: none !important;
	}
}

/* Print: cards as plain blocks */
@media print {
	.sfcd-card,
	.sfcd-dealer-card[data-sfcd-dealer] {
		box-shadow: none;
		break-inside: avoid;
	}
	.sfcd-card__actions,
	.sfcd-cmp-tray,
	.sfcd-fav-toast,
	.sfcd-copy {
		display: none !important;
	}
}
