/* ==========================================================================
   Sardinia Rents - Material 3 Expressive: token e componenti comuni (fase 1, 29/11/2026)
   Fonte: consegna del designer (design-m3/consegna/tokens.css, componenti.md) e CSS dei mockup
   (design-m3/_tools/m3.css, neutral.css, rev*.css). Valori copiati dai mockup.
   Caricato DOPO style.css, front.css e i CSS di pagina (functions.php, camper_rental_m3_assets()).
   Decisioni del capo che prevalgono sui mockup:
   - pulsanti pieni e accento = --cr-primary delle opzioni del tema, cosi com'e; testo sopra = --cr-on-primary
     (calcolato in PHP con camper_rental_readable_text_color, >= 4,5:1);
   - testo, link, icone e anello di focus nel colore del tema su bianco = --cr-primary-ink (>= 4,5:1, calcolato in PHP);
   - sfondo pagine bianco; box bianchi con bordo #e2e8f0 e ombra leggera; grigio chiarissimo per barre;
   - chip delle specifiche neutri, solo l'icona colorata per tipo.
   I valori --cr-primary, --cr-primary-hover, --cr-primary-light, --cr-bg, --cr-footer-bg NON si definiscono qui:
   arrivano dalle opzioni del tema (inline, prima di questo file). I ruoli derivati sotto sono solo riserve:
   il PHP li stampa calcolati subito dopo questo file.
   Gli stili delle singole aree vanno nei file m3-pubblico.css, m3-prenotazione.css, m3-area-utente.css, m3-pagine.css.
   ========================================================================== */

:root {
	/* 1. Ruoli dal colore principale (riserve; valori veri dal PHP) */
	--cr-on-primary: #111827;
	--cr-primary-strong: var(--cr-primary);
	--cr-on-primary-strong: var(--cr-on-primary);
	--cr-primary-ink: color-mix(in srgb, var(--cr-primary) 62%, #000);
	--cr-primary-container: color-mix(in srgb, var(--cr-primary) 25%, #fff);
	--cr-on-primary-container: color-mix(in srgb, var(--cr-primary) 20%, #000);
	--cr-primary-edge: transparent;

	/* 2. Superfici e testi neutri (mockup, revisione R8) */
	--cr-text: #0f172a;
	--cr-text-muted: #475569;
	--cr-surface: #ffffff;
	--cr-surface-1: #f1f5f9;
	--cr-surface-2: #e2e8f0;
	--cr-bg-alt: #f8fafc;
	--cr-border: #e2e8f0;
	--cr-border-strong: #64748b;
	--cr-scrim: rgba(31, 26, 26, .52);
	--cr-inverse: #1e293b;
	--cr-on-inverse: #f1f5f9;

	/* 3. Stati (testo scuro su fondo chiaro) */
	--cr-success: #036029;   --cr-success-bg: #c9f2d3;  --cr-on-success-bg: #002111;
	--cr-warning: #744905;   --cr-warning-bg: #ffdea8;  --cr-on-warning-bg: #271900;
	--cr-error: #b91c1e;     --cr-error-bg: #ffdad5;    --cr-on-error-bg: #400103;
	--cr-info: #0b5aa6;      --cr-info-bg: #d7e8ff;     --cr-on-info-bg: #001d36;
	--cr-tertiary: #056971;  --cr-tertiary-bg: #94f1fc; --cr-on-tertiary-bg: #001f23;   /* sconti */
	--cr-tile-amber: #ffdea8;  --cr-on-tile-amber: #271900;
	--cr-tile-teal: #77d5df;   --cr-on-tile-teal: #001f23;
	--cr-tile-green: #c9f2d3;  --cr-on-tile-green: #002111;
	--cr-tile-blue: #d7e8ff;   --cr-on-tile-blue: #001d36;
	--cr-tile-red: #fedad8;    --cr-on-tile-red: #410007;

	/* Chip delle specifiche: fondo neutro, solo l'icona colorata */
	--cr-chip-bg: #ffffff;
	--cr-chip-bg-soft: #f8fafc;
	--cr-chip-border: #e2e8f0;
	--cr-chip-text: #0f172a;
	--cr-icon-seats: #b12a34;  --cr-icon-beds: #056971;  --cr-icon-dim: #744905;
	--cr-icon-year: #475569;   --cr-icon-gear: #0b5aa6;  --cr-icon-fuel: #036029;
	--cr-rule-ok: #036029;     --cr-rule-no: #b91c1e;

	/* 4. Forme */
	--cr-r-xs: 4px; --cr-r-sm: 8px; --cr-r-md: 12px; --cr-r-lg: 16px;
	--cr-r-xl: 28px; --cr-r-2xl: 48px; --cr-r-full: 999px;

	/* 5. Ombre */
	--cr-shadow-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
	--cr-shadow-2: 0 1px 2px rgba(31, 26, 26, .12), 0 2px 6px 2px rgba(31, 26, 26, .1);
	--cr-shadow-3: 0 4px 8px 3px rgba(31, 26, 26, .1), 0 1px 3px rgba(31, 26, 26, .14);
	--cr-shadow-hover: 0 4px 12px rgba(15, 23, 42, .10);

	/* 6. Spazi */
	--cr-space-1: 4px; --cr-space-2: 8px; --cr-space-3: 12px; --cr-space-4: 16px;
	--cr-space-5: 20px; --cr-space-6: 24px; --cr-space-8: 32px; --cr-space-10: 40px; --cr-space-14: 56px;
	--cr-gutter: 24px;
	--cr-maxw: 1280px;
	--cr-touch: 48px;

	/* 7. Tipografia */
	--cr-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--cr-fs-display-l: 56px;  --cr-lh-display-l: 64px;
	--cr-fs-display-m: 44px;  --cr-lh-display-m: 52px;
	--cr-fs-display-s: 36px;  --cr-lh-display-s: 44px;
	--cr-fs-headline-l: 32px; --cr-lh-headline-l: 40px;
	--cr-fs-headline-m: 26px; --cr-lh-headline-m: 34px;
	--cr-fs-title-l: 20px;    --cr-lh-title-l: 28px;
	--cr-fs-title-m: 16px;    --cr-lh-title-m: 24px;
	--cr-fs-body-l: 17px;     --cr-lh-body-l: 28px;
	--cr-fs-body-m: 15px;     --cr-lh-body-m: 24px;
	--cr-fs-label-l: 14px;    --cr-lh-label-l: 20px;
	--cr-fs-label-m: 12px;    --cr-lh-label-m: 16px;
	--cr-fs-field: 16px;

	/* 8. Movimento */
	--cr-ease-standard: cubic-bezier(.2, 0, 0, 1);
	--cr-ease-spring-fast: cubic-bezier(.34, 1.56, .64, 1);
	--cr-ease-spring-slow: cubic-bezier(.3, 1.35, .5, 1);

	/* 9. Stati di interazione */
	--cr-state-disabled-bg: rgba(31, 26, 26, .12);
	--cr-state-disabled-fg: rgba(31, 26, 26, .38);
	--cr-focus-ring: 3px solid var(--cr-primary-ink);
	--cr-focus-offset: 2px;

	/* 10. Livelli */
	--cr-z-rail: 25; --cr-z-header: 30; --cr-z-fixedbar: 44; --cr-z-scrim: 50; --cr-z-sheet: 55;
	--cr-z-drawer: 60; --cr-z-dialog: 95; --cr-z-lightbox: 120;
}
@media (max-width: 760px) {
	:root {
		--cr-gutter: 16px;
		--cr-fs-display-l: 40px; --cr-lh-display-l: 46px;
		--cr-fs-display-m: 34px; --cr-lh-display-m: 40px;
		--cr-fs-display-s: 30px; --cr-lh-display-s: 38px;
		--cr-fs-headline-l: 28px; --cr-lh-headline-l: 36px;
	}
}

/* ---------- Base ---------- */
body { font-family: var(--cr-font); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: var(--cr-focus-ring); outline-offset: var(--cr-focus-offset); }
.screen-reader-text, .cr-sr-only {
	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;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Icone (sprite lineare, tratto 1,75) ---------- */
.cr-ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cr-ico--sm { width: 18px; height: 18px; }
.cr-ico--xs { width: 16px; height: 16px; }
.cr-ico--lg { width: 28px; height: 28px; }

/* ---------- Pulsanti (cr-btn esistente + varianti M3) ---------- */
.cr-btn {
	position: relative; overflow: hidden; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--cr-r-full);
	font-family: var(--cr-font); font-weight: 700; font-size: 15px; line-height: 20px; letter-spacing: normal;
	text-align: center; text-decoration: none; cursor: pointer;
	transition: border-radius .35s var(--cr-ease-spring-fast), box-shadow .2s var(--cr-ease-standard), transform .35s var(--cr-ease-spring-fast), background-color .2s var(--cr-ease-standard);
}
.cr-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity .15s var(--cr-ease-standard); pointer-events: none; }
.cr-btn:hover { text-decoration: none; transform: none; }
.cr-btn:hover::before { opacity: .08; }
.cr-btn:active::before { opacity: .12; }
.cr-btn:active { border-radius: var(--cr-r-lg); transform: scale(.985); }
.cr-btn .cr-ico { margin: 0; }
.cr-btn-primary, .cr-btn--filled,
.cr-btn-primary:hover, .cr-btn--filled:hover,
.cr-btn-primary:focus, .cr-btn--filled:focus {
	background: var(--cr-primary-strong); color: var(--cr-on-primary-strong);
	box-shadow: inset 0 0 0 1px var(--cr-primary-edge);
}
.cr-btn--tonal, .cr-btn--tonal:hover, .cr-btn--tonal:focus { background: var(--cr-primary-container); color: var(--cr-on-primary-container); }
.cr-btn-outline, .cr-btn--outlined,
.cr-btn-outline:hover, .cr-btn--outlined:hover,
.cr-btn-outline:focus, .cr-btn--outlined:focus {
	background: transparent; color: var(--cr-primary-ink); border: 0;
	box-shadow: inset 0 0 0 1.5px var(--cr-border-strong);
}
.cr-btn--text, .cr-btn--text:hover { background: transparent; color: var(--cr-primary-ink); padding: 0 12px; min-height: 40px; }
.cr-btn--lg { min-height: 56px; font-size: 16px; padding: 0 32px; }
.cr-btn--block, .cr-btn-block, .cr-btn-full { width: 100%; }
.cr-btn-sm, .cr-btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.cr-btn[disabled], .cr-btn[aria-disabled="true"], .cr-btn.is-disabled,
.cr-btn[disabled]:hover, .cr-btn[aria-disabled="true"]:hover {
	background: var(--cr-state-disabled-bg); color: var(--cr-state-disabled-fg); box-shadow: none; cursor: not-allowed; transform: none;
}
.cr-btn[disabled]::before, .cr-btn[aria-disabled="true"]::before { display: none; }

.cr-icon-btn {
	position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
	border: 0; border-radius: var(--cr-r-full); background: transparent; color: var(--cr-text); cursor: pointer;
	transition: border-radius .35s var(--cr-ease-spring-fast);
}
.cr-icon-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity .15s; pointer-events: none; }
.cr-icon-btn:hover::before { opacity: .08; }
.cr-icon-btn:active::before { opacity: .12; }
.cr-icon-btn--outlined { box-shadow: inset 0 0 0 1.5px var(--cr-border-strong); }
.cr-icon-btn--surfaced { background: var(--cr-surface); box-shadow: var(--cr-shadow-2); }

/* Testo sopra il colore principale pieno nei componenti esistenti: colore leggibile calcolato (>= 4,5:1). */
.cr-owner-cta, .cr-pagination .page-numbers:hover, .cr-pagination .page-numbers.current,
.cr-view-btn.is-active, .cr-view-btn.is-active:hover, .cr-dashboard-nav a.active, .cr-step.active,
.cr-mobile-cta-book, .cr-mobile-cta-book:hover, .cr-reviews-rating-badge, .cr-btn-search, .cr-btn-search:hover,
.cr-style-subnav a.active, .cr-style-card .cr-btn-small, .cr-vehicle-picker-item-active, .cr-vehicle-picker-item-active:hover,
.cr-btn-owner-cta:hover, .cr-plan-badge-current, .cr-owner-cta-modern .cr-btn-primary, .cr-owner-cta-modern .cr-btn-primary:hover,
.cr-how-tab--active, .cr-how-tab--active:hover, .cr-how-step-num, .cr-notifications-badge,
.cr-blog-pagination .page-numbers:hover, .cr-blog-pagination .page-numbers.current,
.cr-blog-sidebar .search-submit, .cr-sidebar-widgets .search-submit, .cr-single-cat, .cr-single-cat:hover, .cr-single-tags a:hover,
.woocommerce #payment .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #payment .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
	color: var(--cr-on-primary);
}

/* Compatibilita: il pulsante Cerca della hero ha un fondo proprio (#e91e63, front.css), non il colore principale:
   resta il testo bianco di oggi finche la hero non viene rifatta (area pubblico). */
.cr-search-form--hero .cr-btn--search, .cr-search-form--hero .cr-btn--search:hover { color: #fff; box-shadow: none; }

/* Pulsante "Accedi / Registrati" della testata su telefono: resta compatto come oggi (front.css) finche la testata
   non viene rifatta nell'area pubblico (mockup: 40 px, padding 16, 14 px, con la testata nuova). */
@media (max-width: 760px) {
	.cr-header .cr-btn-auth { min-height: 36px; }
}

/* ---------- Campi (outlined, etichetta sempre visibile) ---------- */
.cr-field {
	position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
	min-height: 56px; padding: 8px 16px; border: 0; border-radius: var(--cr-r-lg);
	background: var(--cr-surface); box-shadow: inset 0 0 0 1px var(--cr-border-strong); text-align: left;
	transition: box-shadow .2s, border-radius .3s var(--cr-ease-spring-fast);
}
.cr-field:hover { box-shadow: inset 0 0 0 1.5px var(--cr-text); }
.cr-field:focus-within, .cr-field.is-focus { box-shadow: inset 0 0 0 2.5px var(--cr-primary-ink); }
.cr-field.is-error, .cr-field[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--cr-error); }
.cr-field > .cr-ico { color: var(--cr-text-muted); }
.cr-field__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cr-field__label { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--cr-text-muted); }
.cr-field__control, .cr-field__value {
	width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
	font-family: var(--cr-font); font-size: var(--cr-fs-field); line-height: 24px; font-weight: 600; color: var(--cr-text);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cr-field__control::placeholder, .cr-field__value.is-placeholder { color: var(--cr-text-muted); font-weight: 500; opacity: 1; }
select.cr-field__control { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 24px; }
.cr-field__help { margin: 4px 16px 0; font-size: 12px; line-height: 16px; color: var(--cr-text-muted); }
.cr-field__help.is-error { color: var(--cr-error); }
.cr-field.is-disabled, .cr-field:has(:disabled) { background: var(--cr-state-disabled-bg); box-shadow: none; color: var(--cr-state-disabled-fg); }

/* Opzione selezionabile (radio come card) e interruttore */
.cr-option {
	position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
	border-radius: var(--cr-r-lg); background: var(--cr-surface); box-shadow: inset 0 0 0 1px var(--cr-border); cursor: pointer;
}
.cr-option:has(input:checked), .cr-option.is-selected { background: var(--cr-primary-container); color: var(--cr-on-primary-container); box-shadow: inset 0 0 0 2px var(--cr-primary-strong); }
.cr-option:has(input:focus-visible) { outline: var(--cr-focus-ring); outline-offset: var(--cr-focus-offset); }
.cr-switch {
	position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 0; border-radius: var(--cr-r-full);
	background: var(--cr-surface-2); box-shadow: inset 0 0 0 2px var(--cr-border-strong); cursor: pointer;
	transition: background .2s var(--cr-ease-standard);
}
.cr-switch::after { content: ""; position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--cr-border-strong); transition: transform .35s var(--cr-ease-spring-fast), width .2s, height .2s, top .2s, left .2s; }
.cr-switch[aria-checked="true"] { background: var(--cr-primary-strong); box-shadow: none; }
.cr-switch[aria-checked="true"]::after { top: 4px; left: 4px; width: 24px; height: 24px; background: var(--cr-on-primary-strong); transform: translateX(20px); }

/* ---------- Chip ---------- */
.cr-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 0;
	border-radius: var(--cr-r-md); background: transparent; color: var(--cr-text-muted);
	box-shadow: inset 0 0 0 1px var(--cr-border); font-family: var(--cr-font); font-size: 14px; line-height: 20px; font-weight: 600;
}
/* Specifiche (posti, letti, misure, anno, cambio, carburante): fondo neutro, testo scuro, icona colorata per tipo. */
.cr-chip--seats, .cr-chip--beds, .cr-chip--dim, .cr-chip--year, .cr-chip--gear, .cr-chip--fuel, .cr-chip--km, .cr-chip--cond {
	background: var(--cr-chip-bg); color: var(--cr-chip-text); box-shadow: inset 0 0 0 1px var(--cr-chip-border); font-weight: 700;
}
.cr-chip--seats .cr-ico { color: var(--cr-icon-seats); }
.cr-chip--beds .cr-ico { color: var(--cr-icon-beds); }
.cr-chip--dim .cr-ico { color: var(--cr-icon-dim); }
.cr-chip--year .cr-ico { color: var(--cr-icon-year); }
.cr-chip--gear .cr-ico, .cr-chip--km .cr-ico { color: var(--cr-icon-gear); }
.cr-chip--fuel .cr-ico, .cr-chip--cond .cr-ico { color: var(--cr-icon-fuel); }
/* Chip di filtro (interattivi) */
button.cr-chip, .cr-chip--filter { cursor: pointer; min-height: 40px; padding: 0 16px; transition: border-radius .3s var(--cr-ease-spring-fast), background .2s; }
.cr-chip--filter[aria-pressed="true"], .cr-chip.is-selected { background: var(--cr-primary-container); color: var(--cr-on-primary-container); box-shadow: none; border-radius: var(--cr-r-full); }

/* ---------- Badge ---------- */
.cr-badge {
	display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: var(--cr-r-full);
	font-family: var(--cr-font); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.cr-badge--type, .cr-badge--sale { background: var(--cr-primary-container); color: var(--cr-on-primary-container); }
.cr-badge--discount { background: var(--cr-tertiary-bg); color: var(--cr-on-tertiary-bg); }
.cr-badge--soon { background: var(--cr-inverse); color: var(--cr-on-inverse); }
.cr-badge--extra { min-height: 28px; padding: 0 12px; font-size: 13px; background: var(--cr-surface-1); color: var(--cr-text); box-shadow: inset 0 0 0 1px var(--cr-border); }
.cr-badge--extra .cr-ico { color: var(--cr-primary-ink); }
/* Stati di prenotazione: punto pieno + testo */
.cr-status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: var(--cr-r-full); font-size: 12px; line-height: 16px; font-weight: 700; }
.cr-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cr-status--wait { background: var(--cr-warning-bg); color: var(--cr-on-warning-bg); }
.cr-status--ok { background: var(--cr-success-bg); color: var(--cr-on-success-bg); }
.cr-status--bad { background: var(--cr-error-bg); color: var(--cr-on-error-bg); }
.cr-status--info { background: var(--cr-info-bg); color: var(--cr-on-info-bg); }
.cr-status--idle { background: var(--cr-surface-2); color: var(--cr-text); }

/* ---------- Regole del veicolo (consentito: spunta; vietato: barra) ---------- */
.cr-rule { --cr-halo: #fff; display: inline-flex; align-items: center; gap: 8px; color: var(--cr-text); }
.cr-rule--ok .cr-ico--rule { color: var(--cr-rule-ok); }
.cr-rule--no .cr-ico--rule { color: var(--cr-rule-no); }
.cr-rule__mark { fill: currentColor; stroke: var(--cr-halo); stroke-width: 1.6; }
.cr-rule__tick { fill: none; stroke: #fff; stroke-width: 1.7; }
.cr-rule__halo { stroke: var(--cr-halo); stroke-width: 5; }
.cr-rule__bar { stroke: currentColor; stroke-width: 2; }
.cr-rules--card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.cr-rules--card .cr-rule {
	--cr-halo: var(--cr-surface-1);
	flex-direction: column; justify-content: flex-start; gap: 4px; padding: 8px 2px; border-radius: var(--cr-r-md); background: var(--cr-surface-1);
}
.cr-rules--card .cr-ico--rule { width: 26px; height: 26px; }
.cr-rules--card .cr-rule__text { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--cr-text); text-align: center; }
.cr-rules--detail { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-rules--detail .cr-rule { min-height: 36px; padding: 0 12px 0 8px; border-radius: var(--cr-r-md); background: var(--cr-chip-bg); box-shadow: inset 0 0 0 1px var(--cr-chip-border); font-size: 14px; line-height: 20px; font-weight: 700; }
.cr-rules--detail .cr-ico--rule { width: 24px; height: 24px; }

/* ---------- Box neutri ---------- */
.cr-box { background: var(--cr-surface); border: 1px solid var(--cr-border); border-radius: var(--cr-r-xl); box-shadow: var(--cr-shadow-1); }
.cr-box--tone { background: var(--cr-surface-1); }

/* ---------- Card veicolo (noleggio e vendita) ---------- */
.cr-vehicle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .cr-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cr-vehicle-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.cr-vehicle-grid > .cr-no-results { grid-column: 1 / -1; }

.cr-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	padding: 8px 8px 20px; border: 1px solid var(--cr-border); border-radius: var(--cr-r-xl);
	background: var(--cr-surface); color: var(--cr-text); box-shadow: var(--cr-shadow-1);
	font-family: var(--cr-font); font-size: 16px; line-height: 26px; text-align: left;
	transition: box-shadow .3s var(--cr-ease-standard), border-radius .45s var(--cr-ease-spring-fast), transform .45s var(--cr-ease-spring-fast);
}
.cr-card:hover { box-shadow: var(--cr-shadow-hover); border-radius: var(--cr-r-lg); transform: translateY(-3px); }
.cr-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--cr-surface-1); }
.cr-card__media img, .cr-card__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s var(--cr-ease-spring-slow); }
.cr-card:hover .cr-card__media img { transform: scale(1.04); }
.cr-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--cr-text-muted); }
.cr-card__placeholder .cr-ico { width: 56px; height: 56px; stroke-width: 1.25; }
.cr-card__lic {
	position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
	min-height: 32px; padding: 0 12px; border-radius: var(--cr-r-full); background: rgba(31, 26, 26, .8); color: #fff;
	font-size: 13px; line-height: 20px; font-weight: 700; white-space: nowrap;
}
.cr-card__price {
	position: absolute; left: 10px; bottom: 10px; display: inline-block; max-width: calc(100% - 20px);
	min-height: 36px; padding: 6px 14px; border-radius: var(--cr-r-lg); background: var(--cr-surface); color: var(--cr-text);
	font-size: 14px; line-height: 24px; font-weight: 600; white-space: nowrap;
}
.cr-card__favform { position: absolute; top: 10px; left: 10px; z-index: 2; margin: 0; }
.cr-card__fav { width: 40px; height: 40px; color: var(--cr-text); }
.cr-card__fav:hover { color: var(--cr-text); }
.cr-card__fav.is-active { color: var(--cr-primary-ink); }
.cr-card__fav.is-active .cr-ico { fill: currentColor; }
.cr-card__fav.is-loading { opacity: .6; }
.cr-card__fav:focus-visible { outline: var(--cr-focus-ring); outline-offset: var(--cr-focus-offset); }
.cr-card__price b { font-size: 20px; font-weight: 800; }
.cr-card__price small { margin-left: 2px; font-size: 14px; font-weight: 600; }
.cr-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px 12px 0; }
.cr-card__title { margin: 0; font-family: var(--cr-font); font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--cr-text); }
.cr-card__title a { color: inherit; text-decoration: none; }
.cr-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cr-card__title a:focus-visible { outline: none; }
.cr-card:has(.cr-card__title a:focus-visible) { outline: var(--cr-focus-ring); outline-offset: var(--cr-focus-offset); }
.cr-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 20px; color: var(--cr-text-muted); }
.cr-card__loc { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cr-card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 27px; }
/* Badge sconti (template parts/cr-vehicle-discount-badges.php, contesto card) nello stile M3 */
.cr-card .cr-vehicle-discount-badges { margin: 0; gap: 6px; min-height: 27px; }
.cr-card .cr-discount-badge {
	gap: 6px; min-height: 24px; padding: 0 10px; border: 0; border-radius: var(--cr-r-full);
	background: var(--cr-tertiary-bg); color: var(--cr-on-tertiary-bg);
	font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .01em;
}
.cr-card .cr-discount-badge-icon { width: 16px; height: 16px; color: currentColor; stroke-width: 1.75; }
.cr-card .cr-discount-badge-pct { font-weight: 700; }
.cr-card__specs {
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: auto; padding-top: 12px;
	border-top: 1px solid var(--cr-border); font-size: 14px; line-height: 20px; font-weight: 700;
}
.cr-card__specs .cr-chip { justify-self: start; min-height: 0; padding: 4px 12px 4px 8px; border-radius: var(--cr-r-full); background: var(--cr-chip-bg-soft); font-size: 14px; line-height: 20px; }
.cr-card__wide { grid-column: 1 / -1; }
.cr-card__extra { margin-top: 2px; }
.cr-card__action { position: relative; z-index: 2; margin-top: 12px; }
.cr-card a.cr-card__action:hover, .cr-card a.cr-card__action:focus { color: var(--cr-on-primary-container); }
