/* ============================================================
   EVM static inventory styles (SRP card grid + VDP layout)
   Injected pages link this file; generated by the inventory
   pipeline (scripts/build_inventory.py). Uses the site's own
   CSS vars (--primary-button-color, --border-radius, Poppins)
   with safe fallbacks.
   ============================================================ */

/* ---------- SRP: section wrapper ---------- */
.evm-srp {
	font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
	background: #f5f6f7;
	padding: 32px 16px 56px;
}
.evm-srp-inner {
	max-width: 1280px;
	margin: 0 auto;
}
.evm-srp-header {
	margin: 0 0 24px;
}
.evm-srp-header h1 {
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 4px;
	color: #272727;
}
.evm-srp-count {
	margin: 0;
	color: #5d666f;
	font-size: 14px;
}
.evm-srp-empty {
	background: #fff;
	border: 1px solid #e3e6e8;
	border-radius: var(--border-radius, 8px);
	padding: 48px 24px;
	text-align: center;
	color: #5d666f;
	font-size: 16px;
}

/* ---------- SRP: responsive card grid ---------- */
.evm-vehicle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 20px;
}
.evm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e3e6e8;
	border-radius: var(--border-radius, 8px);
	overflow: hidden;
	text-decoration: none !important;
	color: #272727;
	transition: box-shadow .2s ease-in-out, transform .2s ease-in-out;
}
.evm-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}
.evm-card-photo {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #e9ecef;
	overflow: hidden;
}
.evm-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.evm-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--primary-button-color, #c3002f);
	color: var(--primary-button-text-color, #fff);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 3px;
	z-index: 1;
}
.evm-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.evm-card-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	color: #272727;
}
.evm-card-trim {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: #5d666f;
}
.evm-card-price {
	font-size: 20px;
	font-weight: 700;
	color: #272727;
	margin-top: auto;
}
.evm-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 13px;
	color: #5d666f;
}
.evm-card-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* ---------- VDP: layout ---------- */
.evm-vdp {
	/* A leftover Space Auto script adds body.srp-v5 at runtime, which triggers
	   a mirrored rule (srp-v5.min.css) hiding static children of #fl-main-content.
	   Our VDP content is one of those, so force it visible. */
	display: block !important;
	font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 16px 64px;
	color: #272727;
}
.evm-breadcrumb {
	font-size: 13px;
	color: #5d666f;
	margin: 0 0 20px;
}
.evm-breadcrumb a {
	color: #5d666f;
	text-decoration: none;
}
.evm-breadcrumb a:hover {
	text-decoration: underline;
}
.evm-breadcrumb-current {
	color: #272727;
	font-weight: 500;
}
.evm-vdp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 32px;
	align-items: start;
}
@media (max-width: 900px) {
	/* Single column, reordered for mobile: photo first (shoppers want the car),
	   then the lead form, then the collapsible details + financing band.
	   display:contents promotes .evm-vdp-main's children into the flex flow so
	   the gallery (nested in main) can be ordered against the sidebar form. */
	.evm-vdp-layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}
	.evm-vdp-main { display: contents; }
	.evm-gallery { order: 1; }
	.evm-vdp-sidebar { order: 2; }
	.evm-vdp-description { order: 3; }
	.evm-vdp-specs { order: 4; }
	.evm-finance-band { order: 5; }
}

/* ---------- VDP: gallery ---------- */
.evm-gallery-main {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #e9ecef;
	border-radius: var(--border-radius, 8px);
	overflow: hidden;
}
.evm-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.evm-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
	margin-top: 8px;
}
.evm-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: #e9ecef;
	cursor: pointer;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.evm-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.evm-thumb.active {
	border-color: var(--primary-button-color, #c3002f);
}

/* ---------- VDP: content sections ---------- */
.evm-vdp-section {
	margin-top: 32px;
}
.evm-vdp-section h2 {
	font-size: 20px;
	margin: 0 0 14px;
}
/* ---------- VDP: collapsible accordions (Features, Vehicle Details) ---------- */
.evm-vdp-accordion {
	border: 1px solid #e3e6e8;
	border-radius: var(--border-radius, 8px);
	overflow: hidden;
	background: #fff;
}
.evm-vdp-accordion > summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 18px;
	font-size: 18px;
	font-weight: 600;
	color: #272727;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f7f8f9;
	-webkit-user-select: none;
	user-select: none;
}
.evm-vdp-accordion > summary::-webkit-details-marker { display: none; }
.evm-vdp-accordion > summary::after {
	content: "\002B";
	font-size: 22px;
	font-weight: 400;
	color: #c1121f;
	line-height: 1;
}
.evm-vdp-accordion[open] > summary::after { content: "\2212"; }
.evm-vdp-accordion[open] > summary { border-bottom: 1px solid #e3e6e8; }
.evm-vdp-accordion-body { padding: 18px; }
.evm-vdp-accordion-body .evm-specs-grid { border: 0; }
.evm-vdp-accordion-body .evm-features {
	columns: 2;
	column-gap: 28px;
	margin: 0;
	padding-left: 18px;
}
@media (max-width: 600px) {
	.evm-vdp-accordion-body .evm-features { columns: 1; }
}
.evm-vdp-description p {
	line-height: 1.65;
	color: #3c434a;
	margin: 0 0 12px;
}
.evm-specs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1px;
	background: #e3e6e8;
	border: 1px solid #e3e6e8;
	border-radius: var(--border-radius, 8px);
	overflow: hidden;
	margin: 0;
}
.evm-spec {
	background: #fff;
	padding: 12px 16px;
}
.evm-spec dt {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #5d666f;
	margin: 0 0 2px;
}
.evm-spec dd {
	font-size: 14px;
	font-weight: 500;
	margin: 0;
	overflow-wrap: anywhere;
}

/* ---------- VDP: sidebar ---------- */
.evm-vdp-card {
	position: sticky;
	top: 110px;
	background: #fff;
	border: 1px solid #e3e6e8;
	border-radius: var(--border-radius, 8px);
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.evm-vdp-title {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 10px;
}
.evm-vdp-price {
	font-size: 30px;
	font-weight: 700;
	margin: 0 0 14px;
}
.evm-vdp-quickfacts {
	list-style: none;
	margin: 0 0 18px;
	padding: 14px 0 0;
	border-top: 1px solid #e3e6e8;
	font-size: 14px;
	color: #3c434a;
}
.evm-vdp-quickfacts li {
	margin: 0 0 6px;
}
.evm-vdp-cta {
	display: block;
	text-align: center;
	padding: 14px 20px;
	margin-top: 10px;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: var(--border-radius, 4px);
}
a.btn-primary.evm-vdp-cta {
	background-color: var(--primary-button-color, #c3002f);
	color: var(--primary-button-text-color, #fff);
}
a.btn-secondary.evm-vdp-cta {
	background-color: #eaecee;
	color: #272727;
}

/* ---------- VDP: financing band (fills the left column, on-brand BHPH CTA) ---------- */
.evm-finance-band {
	background: linear-gradient(135deg, #c3002f, #8d0801);
	color: #fff;
	border-radius: var(--border-radius, 8px);
	padding: 30px 26px;
	text-align: center;
}
.evm-finance-eyebrow {
	font-style: italic;
	font-size: 14px;
	letter-spacing: .3px;
	opacity: .92;
	margin: 0 0 10px;
}
.evm-finance-band h2 {
	color: #fff;
	font-size: 24px;
	line-height: 1.25;
	margin: 0 0 8px;
}
.evm-finance-sub {
	margin: 0 0 20px;
	font-size: 15px;
	opacity: .95;
}
.evm-finance-cta {
	display: inline-block;
	background: #fff;
	color: #c3002f;
	font-weight: 700;
	padding: 13px 32px;
	border-radius: 999px;
	text-decoration: none;
}
.evm-finance-cta:hover { background: #f1f1f1; }

/* ---------- VDP: similar vehicles ---------- */
.evm-similar h2 { font-size: 22px; margin: 0 0 16px; }
