.car-videos__embed-modal{ position:relative; width:min(90vw, 1000px); max-width:100%; padding-bottom:56.25%; height:0; overflow:hidden; border-radius: 8px; }
.car-videos__embed-modal iframe{ position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
/* Car details template styles following Developer Mandate */

/* Overflow protection for layout stability */
html, body {
	overflow-x: hidden;
	max-width: 100vw;
	box-sizing: border-box;
}

*, *::before, *::after {
	box-sizing: border-box;
}

/* CSS Custom Properties for design consistency (Mandate 6.1) */
:root {
	--automotar-primary: #3b82f6;
	--automotar-primary-hover: #2563eb;
	--automotar-primary-strong: #1d4ed8;
	--automotar-accent: #3b82f6;
	--automotar-text-primary: #111827;
	--automotar-text-secondary: #4b5563;
	--automotar-text-muted: #6b7280;
	--automotar-border: #e5e7eb;
	--automotar-border-light: #f3f4f6;
	--automotar-bg-card: #ffffff;
	--automotar-bg-secondary: #f9fafb;
	--automotar-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--automotar-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--automotar-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--automotar-radius: 0.5rem;
	--automotar-radius-lg: 1rem;
	--automotar-spacing-xs: 0.25rem;
	--automotar-spacing-sm: 0.5rem;
	--automotar-spacing-md: 1rem;
	--automotar-spacing-lg: 1.5rem;
	--automotar-spacing-xl: 2rem;
	/* Aliases referenced later in the stylesheet */
	--automotar-color-primary: var(--automotar-accent);
	--automotar-color-background: var(--automotar-bg-secondary);
}

.car-details__title {
	font-weight: 700;
}

.car-details__meta {
	color: var(--automotar-text-secondary);
}

/* === Global Section Title (H2) — Single source of truth for all sections === */
.section-title {
	color: var(--automotar-text-primary);
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 var(--automotar-spacing-lg) 0;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.section-title {
		font-size: 2rem;
	}
}

/* === Global Table Header Styling — Consistent across all data tables === */
.car-safety__table thead th,
.car-mileage__table thead th,
.car-dimensions__th,
.car-pricing__th {
	background: var(--automotar-bg-secondary);
	color: var(--automotar-text-primary);
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: left;
	border-bottom: 1px solid var(--automotar-border);
}

/* === Global H3 Section Subheading Styling === */
.car-videos__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--automotar-text-primary);
	margin: 8px 0 4px 0;
	line-height: 1.3;
}

/* === Hero Section Styles (Mobile-First) === */

/* Base hero container */
.car-hero {
	background: var(--automotar-bg-card);
	padding: var(--automotar-spacing-md) var(--automotar-spacing-md) var(--automotar-spacing-lg);
	margin-top: 0;
	margin-bottom: var(--automotar-spacing-lg);
	max-width: 100vw;
	overflow-x: hidden;
	box-sizing: border-box;
}

/* Mobile Navigation - Always visible on mobile */
.car-sticky-nav--mobile {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--automotar-bg-card);
	border-bottom: 1px solid var(--automotar-border);
	margin: 0 0 var(--automotar-spacing-md) 0;
	padding: var(--automotar-spacing-sm) var(--automotar-spacing-md);
	width: 100%;
	max-width: 100vw;
	box-sizing: border-box;
	/* Prevent nav from causing body overflow */
	overflow-x: hidden;
}

.car-sticky-nav--mobile ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--automotar-spacing-sm);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	/* Prevent individual items from causing body overflow */
	contain: layout;
}

.car-sticky-nav--mobile ul::-webkit-scrollbar {
	display: none;
}

.car-sticky-nav--mobile a {
	color: var(--automotar-text-secondary);
	text-decoration: none;
	padding: var(--automotar-spacing-xs) var(--automotar-spacing-sm);
	border-radius: var(--automotar-radius);
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
}

.car-sticky-nav--mobile a:hover,
.car-sticky-nav--mobile a.is-active {
	color: var(--automotar-primary);
	background: var(--automotar-border-light);
}

/* Desktop Navigation - Hidden on mobile */
.car-sticky-nav--desktop {
	display: none;
	margin-top: 0;
}

/* Mobile Header - Visible on mobile */
.car-hero__header--mobile {
	margin-bottom: var(--automotar-spacing-md);
	margin-top: 0;
}

/* Desktop Header - Hidden on mobile */
.car-hero__header--desktop {
	display: none;
	margin-top: 0;
}

/* Hero Title */
.car-hero__title {
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--automotar-text-primary);
	margin: 0 0 var(--automotar-spacing-sm) 0;
}

/* Hero Meta Info */
.car-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--automotar-spacing-sm);
	align-items: center;
	color: var(--automotar-text-secondary);
	font-size: 0.875rem;
	margin-bottom: var(--automotar-spacing-sm);
}

.car-hero__meta .stars {
	color: #f59e0b;
	letter-spacing: 1px;
	margin-right: var(--automotar-spacing-xs);
}

.car-hero__meta .score {
	color: var(--automotar-text-primary);
	font-weight: 600;
}

.car-hero__sep {
	opacity: 0.6;
}

/* Hero Description */
.car-hero__desc {
	color: var(--automotar-text-primary);
	line-height: 1.6;
	margin-bottom: var(--automotar-spacing-sm);
	background: var(--automotar-bg-card);
	position: relative;
	z-index: 1;
}

.car-hero__desc.is-collapsed {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	background: var(--automotar-bg-card);
}

.car-hero__readmore {
    background: var(--automotar-bg-card);
    border: 0;
    color: var(--automotar-primary-strong);
	font-weight: 500;
	cursor: pointer;
	padding: 4px 0;
	text-decoration: none;
	font-size: 0.875rem;
	display: block;
	margin-top: 8px;
	line-height: 1.4;
    position: relative;
    z-index: 2;
}

.car-hero__readmore:hover {
	color: var(--automotar-primary-hover);
	text-decoration: underline;
	background: var(--automotar-bg-card);
}

.car-hero__readmore:focus {
	outline: 2px solid var(--automotar-primary);
	outline-offset: 2px;
	background: var(--automotar-bg-card);
}

/* Mobile Hero Image (Simplified) */
.car-hero__mobile-image {
	margin-bottom: var(--automotar-spacing-md);
}

.car-hero__image-frame--mobile {
	position: relative;
	border-radius: var(--automotar-radius-lg);
	overflow: hidden;
	background: linear-gradient(135deg, var(--automotar-border-light), var(--automotar-border));
	width: 100%;
	aspect-ratio: 600 / 338;
	height: auto;
	box-shadow: var(--automotar-shadow-lg);
	/* Enable touch gestures for swiping on mobile */
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.car-hero__image-frame--mobile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	touch-action: pan-y;
	pointer-events: auto;
}

/* Mobile Navigation Controls */
.car-hero__nav--mobile {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	transition: all 0.2s ease;
	z-index: 3;
	font-size: 1.2rem;
	font-weight: bold;
	pointer-events: auto;
}

.car-hero__nav--mobile:hover {
	background: rgba(0, 0, 0, 0.7);
	transform: translateY(-50%) scale(1.1);
}

.car-hero__prev--mobile {
	left: var(--automotar-spacing-sm);
}

.car-hero__next--mobile {
	right: var(--automotar-spacing-sm);
}

.car-hero__counter--mobile {
	position: absolute;
	bottom: var(--automotar-spacing-sm);
	right: var(--automotar-spacing-sm);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border-radius: 9999px;
	padding: var(--automotar-spacing-xs) var(--automotar-spacing-sm);
	font-size: 0.75rem;
	pointer-events: none;
	font-weight: 500;
	z-index: 3;
	backdrop-filter: blur(4px);
}

/* Hidden mobile thumbs data */
.car-hero__mobile-thumbs-data {
	display: none !important;
}

/* Mobile Cards Section */
.car-hero__mobile-cards {
	margin-bottom: var(--automotar-spacing-lg);
	max-width: 100%;
	box-sizing: border-box;
}

/* Mobile Icon Shortcuts */
.car-hero__shortcuts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--automotar-spacing-md);
	margin-bottom: var(--automotar-spacing-lg);
	background: var(--automotar-bg-secondary);
	border-radius: var(--automotar-radius-lg);
	padding: var(--automotar-spacing-lg);
	border: 1px solid var(--automotar-border);
}

.car-hero__shortcut {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	padding: var(--automotar-spacing-md);
	border-radius: var(--automotar-radius);
	transition: all 0.2s ease;
	background: var(--automotar-bg-card);
	border: 1px solid var(--automotar-border);
}

.car-hero__shortcut:hover {
	background: var(--automotar-border-light);
	transform: translateY(-2px);
	box-shadow: var(--automotar-shadow-md);
}

.car-hero__shortcut-icon {
	font-size: 1.5rem;
	margin-bottom: var(--automotar-spacing-xs);
}

.car-hero__shortcut-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--automotar-text-primary);
	text-align: center;
}

.car-hero__sidebar--mobile {
	display: grid;
	gap: var(--automotar-spacing-md);
    position: relative;
    z-index: 4;
}

/* Hide desktop sidebar on mobile */
.car-hero__sidebar--desktop {
	display: none;
}

/* Main Grid - Hidden on Mobile (Desktop Only) */
.car-hero__grid {
    display: none; /* hidden by default on mobile */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Image Frame */
.car-hero__image-frame {
	position: relative;
	border-radius: var(--automotar-radius-lg);
	overflow: hidden;
	background: linear-gradient(135deg, var(--automotar-border-light), var(--automotar-border));
	aspect-ratio: 800 / 450;
	min-height: 0;
	box-shadow: var(--automotar-shadow-lg);
	/* Enable touch gestures for swiping */
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.car-hero__image-frame picture {
	display: block;
	width: 100%;
	height: 100%;
}

.car-hero__image-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Navigation Controls */
.car-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: white;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	transition: all 0.2s ease;
	z-index: 3;
	font-size: 1.2rem;
}

.car-hero__nav:hover {
	background: rgba(0, 0, 0, 0.6);
	transform: translateY(-50%) scale(1.1);
}

.car-hero__prev {
	left: var(--automotar-spacing-sm);
}

.car-hero__next {
	right: var(--automotar-spacing-sm);
}

.car-hero__counter {
	position: absolute;
	bottom: var(--automotar-spacing-sm);
	right: var(--automotar-spacing-sm);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border-radius: 9999px;
	padding: var(--automotar-spacing-xs) var(--automotar-spacing-sm);
	font-size: 0.75rem;
	font-weight: 500;
	z-index: 3;
	backdrop-filter: blur(4px);
}

/* Thumbnails */
.car-hero__thumbs {
	display: flex;
	gap: var(--automotar-spacing-sm);
	margin-top: var(--automotar-spacing-sm);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.car-hero__thumbs::-webkit-scrollbar {
	display: none;
}

.car-hero__thumb {
	background: var(--automotar-bg-card);
	border: 2px solid var(--automotar-border);
	border-radius: var(--automotar-radius);
	padding: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.car-hero__thumb:hover {
	border-color: var(--automotar-primary);
	transform: translateY(-2px);
}

.car-hero__thumb.is-active {
	border-color: var(--automotar-primary);
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.car-hero__thumb img {
	display: block;
	width: 80px;
	height: 56px;
	object-fit: cover;
	border-radius: calc(var(--automotar-radius) - 2px);
}

/* Price Card */
.car-hero__price-card {
	background: var(--automotar-bg-secondary);
	border: 1px solid var(--automotar-border);
	border-radius: var(--automotar-radius-lg);
	padding: var(--automotar-spacing-lg);
	box-shadow: var(--automotar-shadow-md);
}

/* Presentational title in desktop price card (avoid duplicate heading level) */
.car-hero__price-title { font-weight: 700; margin: 0 0 var(--automotar-spacing-sm) 0; color: var(--automotar-text-primary); }

.car-hero__price-card h3 {
	margin: 0 0 var(--automotar-spacing-md) 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--automotar-text-primary);
}

.car-hero__selectors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--automotar-spacing-sm);
	margin-bottom: var(--automotar-spacing-md);
}

.car-hero__selectors select {
	width: 100%;
	padding: var(--automotar-spacing-sm);
	border: 1px solid var(--automotar-border);
	border-radius: var(--automotar-radius);
	background: var(--automotar-bg-card);
	font-size: 0.875rem;
	color: var(--automotar-text-primary);
}

.car-hero__selectors select:focus {
	outline: none;
	border-color: var(--automotar-primary);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.car-hero__price strong {
	display: inline-block;
	min-width: 10ch;
	min-height: 1.35em;
	line-height: 1.2;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--automotar-text-primary);
}

.car-hero__price-note {
	display: block;
	min-height: 2.8em;
	font-size: 0.75rem;
	color: var(--automotar-text-muted);
	margin-top: var(--automotar-spacing-xs);
	line-height: 1.4;
}

/* Selector Hint Message */
.car-hero__selector-hint {
	font-size: 0.75rem;
	color: var(--automotar-text-muted);
	margin: 0 0 var(--automotar-spacing-sm) 0;
	font-style: italic;
}

/* Price Link to On-Road Pricing Page */
.car-hero__price-link {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-top: var(--automotar-spacing-sm);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--automotar-primary-strong); /* Darker for WCAG AA contrast */
	text-decoration: none;
	transition: color 0.2s ease;
}

.car-hero__price-link:hover {
	color: var(--automotar-primary-hover);
	text-decoration: underline;
}

.car-hero__price-link-city {
	font-weight: 600;
	color: inherit; /* Ensure city name inherits the accessible color */
}

/* Specs Grid */
.car-hero__specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--automotar-spacing-sm);
	/* Reserve vertical space to prevent CLS (0.112 measured from layout shift) */
	min-height: 132px;
	contain: layout style;
}

.car-hero__specs .spec {
	background: var(--automotar-bg-card);
	border: 1px solid var(--automotar-border);
	border-radius: var(--automotar-radius-lg);
	padding: var(--automotar-spacing-md);
	box-shadow: var(--automotar-shadow-sm);
	transition: all 0.2s ease;
}

.car-hero__specs .spec:hover {
	box-shadow: var(--automotar-shadow-md);
	transform: translateY(-1px);
}

.car-hero__specs .spec span {
	color: var(--automotar-text-muted);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: block;
	margin-bottom: var(--automotar-spacing-xs);
}

.car-hero__specs .spec strong {
	color: var(--automotar-text-primary);
	font-size: 1rem;
	font-weight: 700;
	display: block;
	line-height: 1.2;
}

.car-hero__specs .spec--engine strong {
	font-size: 0.9rem;
	line-height: 1.3;
}

.car-hero__specs .spec__subtitle {
	color: var(--automotar-text-muted);
	font-size: 0.7rem;
	font-weight: 500;
	display: block;
	margin-top: var(--automotar-spacing-xs);
	opacity: 0.85;
}

/* Desktop Styles */
@media (min-width: 1024px) {
	.car-hero {
		padding: var(--automotar-spacing-lg);
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow-x: hidden;
	}
	
	/* Hide mobile elements */
	.car-sticky-nav--mobile,
	.car-hero__header--mobile,
	.car-hero__mobile-cards,
	.car-hero__mobile-image,
	.car-hero__shortcuts {
		display: none;
	}
	
	/* Show desktop elements */
	.car-hero__header--desktop,
	.car-sticky-nav--desktop,
	.car-hero__sidebar--desktop {
		display: block;
	}
	
	/* Show desktop grid */
	.car-hero__grid {
		display: grid;
		grid-template-columns: 7fr 5fr;
		gap: var(--automotar-spacing-lg);
		align-items: start;
	}
	
	/* Desktop header styling */
	.car-hero__header--desktop {
		margin-bottom: var(--automotar-spacing-lg);
	}
	
	.car-hero__title {
		font-size: 3rem;
	}
	
	/* Desktop sticky nav */
	.car-sticky-nav--desktop {
		position: sticky;
		top: 0;
		z-index: 6;
		background: var(--automotar-bg-card);
		border: 1px solid var(--automotar-border);
		border-radius: var(--automotar-radius-lg);
		margin-bottom: var(--automotar-spacing-lg);
		box-shadow: var(--automotar-shadow-sm);
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
	}
	
	.car-sticky-nav--desktop::after {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		width: 24px;
		height: 100%;
		background: linear-gradient(to left, var(--automotar-bg-card), transparent);
		pointer-events: none;
		z-index: 1;
	}
	
	.car-sticky-nav--desktop ul {
		list-style: none;
		margin: 0;
		padding: var(--automotar-spacing-md) var(--automotar-spacing-lg);
		display: flex;
		gap: var(--automotar-spacing-md);
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		scrollbar-width: thin;
		scrollbar-color: var(--automotar-border) transparent;
		-webkit-overflow-scrolling: touch;
	}
	
	.car-sticky-nav--desktop ul::-webkit-scrollbar {
		height: 4px;
	}
	
	.car-sticky-nav--desktop ul::-webkit-scrollbar-track {
		background: transparent;
	}
	
	.car-sticky-nav--desktop ul::-webkit-scrollbar-thumb {
		background: var(--automotar-border);
		border-radius: 2px;
	}
	
	.car-sticky-nav--desktop ul::-webkit-scrollbar-thumb:hover {
		background: var(--automotar-text-secondary);
	}
	
	.car-sticky-nav--desktop a {
		color: var(--automotar-text-secondary);
		text-decoration: none;
		padding: var(--automotar-spacing-sm) var(--automotar-spacing-sm);
		border-radius: var(--automotar-radius);
		white-space: nowrap;
		font-weight: 500;
		font-size: 0.9rem;
		transition: all 0.2s ease;
		min-width: max-content;
	}
	
	.car-sticky-nav--desktop a:hover,
	.car-sticky-nav--desktop a.is-active {
		color: var(--automotar-primary);
		background: var(--automotar-border-light);
	}
	
	
	/* Desktop image frame */
	.car-hero__image-frame {
		min-height: 0;
	}
	
	/* Desktop nav controls */
	.car-hero__nav {
		width: 44px;
		height: 44px;
		font-size: 1.5rem;
	}
	
	.car-hero__prev {
		left: var(--automotar-spacing-md);
	}
	
	.car-hero__next {
		right: var(--automotar-spacing-md);
	}
	
	.car-hero__counter {
		bottom: var(--automotar-spacing-md);
		right: var(--automotar-spacing-md);
		padding: var(--automotar-spacing-sm) var(--automotar-spacing-md);
		font-size: 0.875rem;
	}
	
	/* Desktop thumbnails */
	.car-hero__thumb img {
		width: 96px;
		height: 64px;
	}
	
	/* Desktop specs */
	.car-hero__specs .spec strong {
		font-size: 1.25rem;
	}
	
	/* Engine label can be long; keep it slightly smaller without changing grid */
	.car-hero__specs .spec--engine strong {
		font-size: 1rem;
		line-height: 1.3;
	}
}

/* === Overview Section === */
.car-overview {
	background: var(--automotar-bg-card);
	padding: var(--automotar-spacing-lg);
	margin-bottom: var(--automotar-spacing-lg);
	border-radius: var(--automotar-radius-lg);
}

/* .car-overview .section-title — now handled by global .section-title rule */

.car-overview__intro {
	color: var(--automotar-text-secondary);
	line-height: 1.6;
	margin-bottom: var(--automotar-spacing-lg);
}

.car-overview__columns {
	display: grid;
	gap: var(--automotar-spacing-lg);
	grid-template-columns: 1fr;
}

.car-overview__list h3 {
	color: var(--automotar-text-primary);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 var(--automotar-spacing-sm) 0;
	line-height: 1.3;
}

.car-overview__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.car-overview__list li {
	color: var(--automotar-text-secondary);
	line-height: 1.5;
	margin-bottom: var(--automotar-spacing-xs);
	padding-left: var(--automotar-spacing-md);
	position: relative;
}

.car-overview__list--pros li::before {
	content: '✓';
	color: #10b981;
	font-weight: 600;
	position: absolute;
	left: 0;
	top: 0;
}

.car-overview__list--cons li::before {
	content: '⚠';
	color: #f59e0b;
	font-weight: 600;
	position: absolute;
	left: 0;
	top: 0;
}

/* Desktop Overview */
@media (min-width: 768px) {
	.car-overview__columns {
		grid-template-columns: 1fr 1fr;
		gap: var(--automotar-spacing-xl);
	}
}

/* === Pricing Section - Table-based Design === */
.car-pricing {
	background: var(--automotar-bg-card);
	padding: var(--automotar-spacing-lg);
	margin-bottom: var(--automotar-spacing-lg);
	border-radius: var(--automotar-radius-lg);
}

.car-pricing__container {
	max-width: 100%;
	/* Optimized for future RHS integration */
}

/* Header Section */
.car-pricing__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: var(--automotar-spacing-lg);
	gap: var(--automotar-spacing-lg);
}

.car-pricing__title-section {
	flex: 1;
}

/* Pricing section-title keeps smaller bottom margin for the intro text below */
.car-pricing .section-title {
	margin-bottom: var(--automotar-spacing-sm);
}

.car-pricing__intro {
	color: var(--automotar-text-secondary);
	line-height: 1.6;
	margin: 0;
	font-size: 0.875rem;
}

/* Controls Section */
.car-pricing__controls {
	display: flex;
	gap: var(--automotar-spacing-lg);
	align-items: flex-end;
}

.car-pricing__control-group {
	display: flex;
	flex-direction: column;
	gap: var(--automotar-spacing-xs);
	min-width: 160px;
}

.car-pricing__control-label {
	color: var(--automotar-text-secondary);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.car-pricing__select {
	padding: 8px 12px;
	border: 1px solid var(--automotar-border);
	border-radius: var(--automotar-radius);
	background: var(--automotar-bg-card);
	color: var(--automotar-text-primary);
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 8px center;
	background-repeat: no-repeat;
	background-size: 16px;
	padding-right: 32px;
}

.car-pricing__select:focus {
	outline: none;
	border-color: var(--automotar-primary);
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.car-pricing__select:hover {
	border-color: var(--automotar-primary);
}

/* Pricing City Link */
.car-pricing__city-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--automotar-primary-strong); /* Darker for WCAG AA contrast */
	text-decoration: none;
	padding: 8px 0;
	transition: color 0.2s ease;
}

.car-pricing__city-link:hover {
	color: var(--automotar-primary-hover);
	text-decoration: underline;
}

/* City Link Row - Below Table */
.car-pricing__city-link-row {
	display: flex;
	justify-content: flex-start;
	padding: 16px 0;
	margin-top: 8px;
}

.car-pricing__city-link-row .car-pricing__city-link {
	padding: 12px 20px;
	background: rgba(59, 130, 246, 0.05);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: var(--automotar-radius);
	font-size: 0.9375rem;
}

.car-pricing__city-link-row .car-pricing__city-link:hover {
	background: rgba(59, 130, 246, 0.1);
	border-color: rgba(59, 130, 246, 0.3);
}

.car-pricing__city-link-name {
	font-weight: 600;
}

/* =====================================================
   City Selector with Search
   ===================================================== */
.city-select-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	min-width: 140px;
}

.city-select-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--automotar-border);
	border-radius: var(--automotar-radius);
	background: var(--automotar-bg-card);
	color: var(--automotar-text-primary);
	font-size: 0.875rem;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s;
}

.city-select-trigger:hover,
.city-select-trigger:focus {
	border-color: var(--automotar-primary);
	outline: none;
}

.city-select-trigger[aria-expanded="true"] {
	border-color: var(--automotar-primary);
}

.city-select-value {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.city-select-arrow {
	flex-shrink: 0;
	font-size: 0.65rem;
	color: var(--automotar-text-muted);
	transition: transform 0.15s;
}

.city-select-trigger[aria-expanded="true"] .city-select-arrow {
	transform: rotate(180deg);
}

.city-select-panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	min-width: 180px;
	background: var(--automotar-bg-card);
	border: 1px solid var(--automotar-border);
	border-radius: var(--automotar-radius);
	box-shadow: var(--automotar-shadow-lg);
	z-index: 1000;
	display: none;
}

.city-select-panel.is-open {
	display: block;
}

.city-select-search {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: none;
	border-bottom: 1px solid var(--automotar-border);
	border-radius: var(--automotar-radius) var(--automotar-radius) 0 0;
	font-size: 0.875rem;
	font-family: inherit;
	background: var(--automotar-bg-secondary);
}

.city-select-search:focus {
	outline: none;
	background: var(--automotar-bg-card);
}

.city-select-search::placeholder {
	color: var(--automotar-text-muted);
}

.city-select-list {
	max-height: 220px;
	overflow-y: auto;
}

.city-select-option {
	padding: 10px 12px;
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--automotar-text-primary);
	transition: background 0.1s;
}

.city-select-option:hover,
.city-select-option:focus {
	background: var(--automotar-bg-secondary);
	outline: none;
}

.city-select-option.is-selected {
	background: rgba(59, 130, 246, 0.1);
	color: var(--automotar-primary);
	font-weight: 500;
}

.city-select-empty {
	padding: 16px 12px;
	text-align: center;
	color: var(--automotar-text-muted);
	font-size: 0.875rem;
}

/* Table Styling */
.car-pricing__table-container {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--automotar-radius);
	border: 1px solid var(--automotar-border);
}

.car-pricing__table {
	width: 100%;
	border-collapse: collapse;
	background: var(--automotar-bg-card);
	font-size: 0.875rem;
}

/* Table Headers */
.car-pricing__th {
	background: var(--automotar-bg-secondary);
	color: var(--automotar-text-primary);
	font-weight: 600;
	padding: 16px 12px;
	text-align: left;
	border-bottom: 1px solid var(--automotar-border);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.car-pricing__th--variant {
	width: 30%;
	min-width: 200px;
}

.car-pricing__th--fuel {
	width: 12%;
	min-width: 90px;
}

.car-pricing__th--features {
	width: 35%;
	min-width: 220px;
}

.car-pricing__th--ex-showroom {
	width: 12%;
	min-width: 110px;
	text-align: right;
}

.car-pricing__th--onroad {
	width: 11%;
	min-width: 120px;
	text-align: right;
}

.car-pricing__city-indicator {
	display: block;
	color: var(--automotar-text-muted);
	font-weight: 400;
	font-size: 0.6rem;
	text-transform: none;
	margin-top: 2px;
}

/* Table Rows */
.car-pricing__row {
	border-bottom: 1px solid var(--automotar-border);
	transition: background-color 0.2s ease;
}

.car-pricing__row:hover {
	background: var(--automotar-bg-secondary);
}

.car-pricing__row:last-child {
	border-bottom: none;
}

.car-pricing__td {
	padding: 16px 12px;
	vertical-align: top;
	line-height: 1.4;
}

/* Variant Column */
.car-pricing__td--variant {
	font-weight: 500;
}

.car-pricing__variant-name {
	color: var(--automotar-text-primary);
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.875rem;
}

.car-pricing__variant-subtitle {
	color: var(--automotar-text-muted);
	font-size: 0.75rem;
}

/* Fuel Type Column */
.car-pricing__fuel-type {
	display: inline-block;
	padding: 4px 8px;
	background: var(--automotar-bg-secondary);
	border-radius: var(--automotar-radius);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--automotar-text-secondary);
}

/* Features Column */
.car-pricing__features-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.car-pricing__features-list li {
	color: var(--automotar-text-secondary);
	font-size: 0.75rem;
	line-height: 1.6;
	position: relative;
	padding-left: 10px;
	margin-bottom: 2px;
}

.car-pricing__features-list li:before {
	content: "•";
	color: var(--automotar-text-muted);
	font-weight: normal;
	position: absolute;
	left: 0;
	top: 0;
}

.car-pricing__features-list li:last-child {
	margin-bottom: 0;
}

/* Price Columns */
.car-pricing__td--ex-showroom,
.car-pricing__td--onroad {
	text-align: right;
}

.car-pricing__price {
	color: var(--automotar-text-primary);
	font-weight: 600;
	font-size: 0.875rem;
}

.car-pricing__na {
	color: var(--automotar-text-muted);
	font-style: italic;
	font-weight: 400;
	font-size: 0.75rem;
}

/* Mobile Cards Layout */
.car-pricing__cards-container {
	display: none; /* Hidden by default, shown on mobile */
}

/* Individual Card Styling */
.car-pricing__card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	transition: box-shadow 0.2s ease;
}

.car-pricing__card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.car-pricing__card:last-child {
	margin-bottom: 0;
}

/* Card Header */
.car-pricing__card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.car-pricing__card-title {
	flex: 1;
	margin-right: 12px;
}

.car-pricing__card-variant-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--automotar-text-primary);
	margin-bottom: 4px;
	line-height: 1.3;
}

.car-pricing__card-variant-subtitle {
	font-size: 0.75rem;
	color: var(--automotar-text-muted);
	line-height: 1.4;
}

/* Fuel Type Badge */
.car-pricing__card-fuel-badge {
	background: var(--automotar-primary-strong); /* Darker blue for better contrast */
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600; /* Slightly bolder for readability */
	text-transform: capitalize;
	white-space: nowrap;
}

/* Card Pricing Section */
.car-pricing__card-pricing {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.car-pricing__card-price-column {
	text-align: left;
}

.car-pricing__card-price-label {
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--automotar-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}

.car-pricing__card-city-indicator {
	display: block;
	font-size: 0.65rem;
	font-weight: 400;
	text-transform: none;
	margin-top: 2px;
}

.car-pricing__card-price-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--automotar-text-primary);
}

.car-pricing__card-price-value.car-pricing__card-onroad-price {
	color: var(--automotar-primary-strong); /* Darker for WCAG AA contrast */
}

/* Card Features (Collapsible) */
.car-pricing__card-features {
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
}

.car-pricing__card-features-toggle {
	background: none;
	border: none;
	padding: 8px 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--automotar-primary-strong); /* Darker for WCAG AA contrast */
	font-weight: 500;
	transition: all 0.2s ease;
	border-radius: 4px;
}

.car-pricing__card-features-toggle:hover {
	color: var(--automotar-primary-hover);
	background: rgba(29, 78, 216, 0.05);
}

.car-pricing__card-features-toggle:focus {
	outline: none;
	background: rgba(29, 78, 216, 0.1);
	color: var(--automotar-primary-hover);
}

.car-pricing__card-features-toggle[aria-expanded="true"] {
	color: var(--automotar-primary-hover);
	background: rgba(29, 78, 216, 0.05);
}

.car-pricing__card-features-icon {
	font-size: 0.75rem;
	transition: transform 0.2s ease;
}

.car-pricing__card-features-toggle[aria-expanded="true"] .car-pricing__card-features-icon {
	transform: rotate(180deg);
}

.car-pricing__card-features-content {
	margin-top: 12px;
	padding-top: 8px;
}

.car-pricing__card-features-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.car-pricing__card-features-list li {
	color: var(--automotar-text-secondary);
	font-size: 0.8rem;
	line-height: 1.5;
	position: relative;
	padding-left: 12px;
	margin-bottom: 6px;
}

.car-pricing__card-features-list li:before {
	content: "•";
	color: var(--automotar-text-muted);
	position: absolute;
	left: 0;
	top: 0;
}

.car-pricing__card-features-list li:last-child {
	margin-bottom: 0;
}

/* Variant Expansion Functionality */
/* Hide additional variants by default - using !important to ensure specificity */
.car-pricing__row--additional,
.car-pricing__card--additional {
	display: none !important;
}

/* Show additional variants when expanded - higher specificity */
.car-pricing__row--additional.show-variant {
	display: table-row !important;
}

.car-pricing__card--additional.show-variant {
	display: block !important;
}

/* Fuel filtering - separate from expansion logic */
.car-pricing__row.fuel-filtered-hidden,
.car-pricing__card.fuel-filtered-hidden {
	display: none !important;
}

/* Dynamic initial display - overrides additional hiding when promoted */
.car-pricing__row.initially-visible {
	display: table-row !important;
}

.car-pricing__card.initially-visible {
	display: block !important;
}

/* Ensure initially-visible works even on additional variants */
.car-pricing__row--additional.initially-visible {
	display: table-row !important;
}

.car-pricing__card--additional.initially-visible {
	display: block !important;
}

/* Table "See all variants" button */
.car-pricing__show-more-row {
	background: transparent;
}

.car-pricing__show-more-cell {
	padding: 16px 12px;
	text-align: center;
	border-bottom: 1px solid var(--automotar-border);
}

.car-pricing__show-more-btn {
	background: none;
	border: 1px solid #3b82f6;
	border-radius: 6px;
	padding: 10px 16px;
	color: #3b82f6;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	width: auto;
}

.car-pricing__show-more-btn:hover {
	background: #3b82f6;
	color: white;
}

.car-pricing__show-more-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.car-pricing__remaining-count {
	color: inherit;
	font-weight: 400;
}

.car-pricing__show-more-icon {
	font-size: 0.75rem;
	transition: transform 0.2s ease;
}

.car-pricing__show-more-btn[aria-expanded="true"] .car-pricing__show-more-icon {
	transform: rotate(180deg);
}

.car-pricing__show-more-btn[aria-expanded="true"] .car-pricing__show-more-text {
	/* Change text when expanded via JavaScript */
}

/* Mobile Cards "See all variants" button */
.car-pricing__cards-show-more {
	margin: 16px 0;
	text-align: center;
}

.car-pricing__cards-show-more-btn {
	background: none;
	border: 1px solid var(--automotar-primary-strong);
	border-radius: 8px;
	padding: 12px 20px;
	color: var(--automotar-primary-strong); /* Darker for WCAG AA contrast */
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 0.2s ease;
	width: auto;
}

.car-pricing__cards-show-more-btn:hover {
	background: var(--automotar-primary-strong);
	color: white;
}

.car-pricing__cards-show-more-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.car-pricing__cards-remaining-count {
	color: inherit;
	font-weight: 400;
}

.car-pricing__cards-show-more-icon {
	font-size: 0.75rem;
	transition: transform 0.2s ease;
}

.car-pricing__cards-show-more-btn[aria-expanded="true"] .car-pricing__cards-show-more-icon {
	transform: rotate(180deg);
}

/* Mobile Responsive */
@media (max-width: 767px) {
	.car-pricing__header {
		flex-direction: column;
		align-items: stretch;
	}
	
	.car-pricing__controls {
		justify-content: stretch;
		flex-direction: column;
		gap: var(--automotar-spacing-sm);
	}
	
	.car-pricing__control-group {
		min-width: auto;
	}
	
	/* Hide table layout on mobile */
	.car-pricing__table-container {
		display: none;
	}
	
	/* Show cards layout on mobile */
	.car-pricing__cards-container {
		display: block;
	}
	
	/* Hide table show more button on mobile */
	.car-pricing__show-more-row {
		display: none;
	}
}

/* Desktop Enhancements */
@media (min-width: 768px) {
	.car-pricing {
		padding: var(--automotar-spacing-xl);
	}
	
	/* .car-pricing .section-title font-size now handled by global .section-title media query */
	
	.car-pricing__intro {
		font-size: 1rem;
	}
	
	/* Hide cards show more button on desktop */
	.car-pricing__cards-show-more {
		display: none;
	}
}

/* === Specifications Section === */
.car-specifications {
	background: var(--automotar-bg-card);
	padding: var(--automotar-spacing-lg);
	margin-bottom: var(--automotar-spacing-lg);
	border-radius: var(--automotar-radius-lg);
}

/* .car-specifications .section-title — now handled by global .section-title rule */

.car-specifications__container {
	/* Container styling to match other sections */
}

.car-specifications__intro {
	color: var(--automotar-text-secondary);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-bottom: var(--automotar-spacing-lg);
	padding-bottom: var(--automotar-spacing-sm);
}

/* Tab Navigation */
.car-specifications__tabs {
	display: flex;
	gap: 0;
	margin-bottom: var(--automotar-spacing-lg);
	border-bottom: 1px solid var(--automotar-border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.car-specifications__tabs::-webkit-scrollbar {
	display: none;
}

.car-specifications__tab {
	background: transparent;
	border: none;
	padding: var(--automotar-spacing-sm) var(--automotar-spacing-md);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--automotar-text-secondary);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.2s ease;
	border-radius: var(--automotar-radius) var(--automotar-radius) 0 0;
}

.car-specifications__tab:hover {
	color: var(--automotar-color-primary);
	background: var(--automotar-color-background);
}

.car-specifications__tab[aria-selected="true"] {
	color: var(--automotar-color-primary);
	border-bottom-color: var(--automotar-color-primary);
	font-weight: 600;
	background: var(--automotar-bg-card);
}

/* Tab Panels */
.car-specifications__panel {
	display: none;
}

.car-specifications__panel--active {
	display: block;
}

/* Panel Content Layout */
.car-specifications__content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--automotar-spacing-xl);
	margin-top: var(--automotar-spacing-lg);
}

.car-specifications__content--single {
	grid-template-columns: 1fr;
}

/* Column Titles */
.car-specifications__column-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--automotar-text-primary);
	margin: 0 0 var(--automotar-spacing-md) 0;
	padding: 0 0 var(--automotar-spacing-sm) 0;
	border-bottom: 1px solid var(--automotar-border);
	line-height: 1.35;
	text-transform: none;
}

/* Bulleted lists used for features */
.car-specifications__bullets {
    margin: 0;
    padding: 0 0 0 1.2rem;
    list-style: none;
}

.car-specifications__bullets li {
    position: relative;
    margin: 0 0 8px 0;
    color: var(--automotar-text-primary);
}

.car-specifications__bullets li::before {
    content: '✓';
    color: #10b981;
    position: absolute;
    left: -1.2rem;
    top: 0;
}

/* Specification Lists */
.car-specifications__list {
	margin: 0;
	padding: 0;
}

.car-specifications__item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: var(--automotar-spacing-sm) 0;
	border-bottom: 1px solid var(--automotar-border-light);
	min-height: 2.5rem;
}

.car-specifications__item:last-child {
	border-bottom: none;
}

.car-specifications__label {
	font-weight: 500;
	color: var(--automotar-text-secondary);
	margin: 0;
	flex: 1;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.car-specifications__value {
	font-weight: 600;
	color: var(--automotar-text-primary);
	margin: 0;
	text-align: right;
	flex: 0 0 auto;
	font-size: 0.9375rem;
	line-height: 1.4;
	min-width: 140px;
}

/* Enhanced feature list styling for comma-separated values */
.car-specifications__value {
	word-break: break-word;
	hyphens: auto;
}

/* Special styling for feature-heavy panels */
.car-specifications__panel[data-panel="features_technology"] .car-specifications__value,
.car-specifications__panel[data-panel="comfort_convenience"] .car-specifications__value {
	font-weight: 500;
	line-height: 1.6;
	text-align: left;
	min-width: auto;
	flex: 1;
}

/* Mobile Styles for Specifications */
@media (max-width: 768px) {
	.car-specifications__tabs {
		gap: var(--automotar-spacing-xs);
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	
	.car-specifications__tabs::-webkit-scrollbar {
		display: none;
	}
	
	.car-specifications__tab {
		font-size: 0.75rem;
		padding: var(--automotar-spacing-xs) var(--automotar-spacing-sm);
		white-space: nowrap;
		flex-shrink: 0;
	}
	
	.car-specifications__content {
		grid-template-columns: 1fr;
		gap: var(--automotar-spacing-md);
		margin-top: var(--automotar-spacing-md);
	}

	/* Mobile rows: label left, value right */
	.car-specifications__item {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: var(--automotar-spacing-sm);
	}

	.car-specifications__label {
		flex: 1 1 auto;
	}

	.car-specifications__value {
		flex: 0 0 auto;
		text-align: right;
		min-width: auto;
	}
	
	.car-specifications__column-title {
		font-size: 1rem;
		margin-bottom: var(--automotar-spacing-md);
		padding-bottom: var(--automotar-spacing-xs);
	}
	
	/* Enhanced mobile feature styling */
	.car-specifications__panel[data-panel="features_technology"] .car-specifications__value,
	.car-specifications__panel[data-panel="comfort_convenience"] .car-specifications__value {
		text-align: left;
		min-width: auto;
	}
}

/* === Multi-Engine Options Display === */
.car-specifications__engine-options {
	padding: var(--automotar-spacing-md) 0;
}

.car-specifications__engine-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--automotar-spacing-md);
	margin-top: var(--automotar-spacing-md);
}

.car-specifications__engine-card {
	background: var(--automotar-color-background);
	border: 1px solid var(--automotar-border-light);
	border-radius: var(--automotar-radius);
	padding: var(--automotar-spacing-md);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.car-specifications__engine-card:hover {
	border-color: var(--automotar-color-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.car-specifications__engine-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--automotar-color-primary);
	margin: 0 0 var(--automotar-spacing-xs) 0;
	padding-bottom: var(--automotar-spacing-xs);
	border-bottom: 2px solid var(--automotar-color-primary);
}

.car-specifications__engine-type {
	font-size: 0.8125rem;
	color: var(--automotar-text-secondary);
	margin: 0 0 var(--automotar-spacing-sm) 0;
	font-weight: 500;
}

.car-specifications__engine-card .car-specifications__list {
	margin: 0;
}

.car-specifications__engine-card .car-specifications__item {
	padding: var(--automotar-spacing-xs) 0;
	min-height: auto;
}

.car-specifications__engine-card .car-specifications__label {
	font-size: 0.875rem;
}

.car-specifications__engine-card .car-specifications__value {
	font-size: 0.875rem;
	min-width: 100px;
}

/* Transmission section when showing multiple engines */
.car-specifications__content--transmission {
	margin-top: var(--automotar-spacing-lg);
	padding-top: var(--automotar-spacing-md);
	border-top: 1px solid var(--automotar-border-light);
}

/* Mobile adjustments for engine cards */
@media (max-width: 768px) {
	.car-specifications__engine-grid {
		grid-template-columns: 1fr;
		gap: var(--automotar-spacing-sm);
	}

	.car-specifications__engine-card {
		padding: var(--automotar-spacing-sm);
	}

	.car-specifications__engine-name {
		font-size: 0.9375rem;
	}
}

/* === Dimensions Section === */
.car-dimensions {
	background: var(--automotar-bg-card);
	padding: var(--automotar-spacing-lg);
	margin-bottom: var(--automotar-spacing-lg);
	border-radius: var(--automotar-radius-lg);
}

/* === Safety Section === */
.car-safety {
    background: var(--automotar-bg-card);
    padding: var(--automotar-spacing-lg);
    margin-bottom: var(--automotar-spacing-lg);
    border-radius: var(--automotar-radius-lg);
}

/* === Gallery Section === */
.car-gallery {
    background: var(--automotar-bg-card);
    padding: var(--automotar-spacing-lg);
    margin-bottom: var(--automotar-spacing-lg);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    border-radius: var(--automotar-radius-lg);
}

.car-gallery__intro {
    color: var(--automotar-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--automotar-spacing-lg);
}

.car-gallery__tabs { display:flex; gap: var(--automotar-spacing-sm); border-bottom: 1px solid var(--automotar-border); margin-bottom: var(--automotar-spacing-lg); overflow-x:auto; }
.car-gallery__tab { background:transparent; border:0; padding:8px 12px; cursor:pointer; color: var(--automotar-text-secondary); border-bottom:2px solid transparent; white-space:nowrap; border-radius: var(--automotar-radius) var(--automotar-radius) 0 0; }
.car-gallery__tab:hover { color: var(--automotar-color-primary); background: var(--automotar-color-background); }
.car-gallery__tab[aria-selected="true"] { color: var(--automotar-color-primary); border-bottom-color: var(--automotar-color-primary); font-weight:600; background: transparent; }

.car-gallery__panel { display:none; }
.car-gallery__panel--active { display:block; }
.car-gallery__grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--automotar-spacing-sm); }
.car-gallery__item { display:block; }
.car-gallery__item--additional { display:none; }
.car-gallery__grid.is-expanded .car-gallery__item--additional { display:block; }
.car-gallery__img { width:100%; height: 180px; object-fit: cover; display:block; border-radius: var(--automotar-radius); cursor: zoom-in; }

.car-gallery__show-more { text-align:center; margin-top: var(--automotar-spacing-md); }
.car-gallery__show-more button { background:none; border:1px solid var(--automotar-color-primary); color: var(--automotar-color-primary); padding:8px 14px; border-radius: 8px; cursor:pointer; }
.car-gallery__show-more button:hover { background: var(--automotar-color-primary); color:#fff; }

@media (max-width: 768px) {
    .car-gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .car-gallery__img { height: 140px; }
}

/* Gallery/Video lightbox (dialog) */
.car-gallery__lightbox::backdrop { background: rgba(0,0,0,0.7); }
.car-gallery__lightbox {
	border: 0;
	padding: 0;
	border-radius: 8px;
	width: min(90vw, 1000px);
	max-width: 100%;
	/* Ensure the dialog element itself covers the full viewport so clicks
	   outside the content area (on the backdrop) register as clicks on the
	   dialog element, enabling click-outside-to-close */
	position: fixed;
	inset: 0;
	margin: auto;
	height: fit-content;
	max-height: 90vh;
	overflow: visible;
	background: transparent;
}
.car-gallery__lightbox img { width: 100%; height: auto; display:block; border-radius: 8px; }
.car-gallery__lightbox .car-videos__modal,
.car-gallery__lightbox > img {
	background: var(--automotar-bg-card);
	border-radius: 8px;
}
.car-gallery__lightbox-close {
	position: absolute;
	top: -12px;
	right: -12px;
	background: rgba(0,0,0,0.8);
	color: #fff;
	border: 0;
	border-radius: 9999px;
	width: 36px;
	height: 36px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	z-index: 10;
	transition: background 0.2s ease;
}
.car-gallery__lightbox-close:hover {
	background: rgba(0,0,0,1);
}

/* === Colors Section === */
.car-colors {
    background: var(--automotar-bg-card);
    padding: var(--automotar-spacing-lg);
    margin-bottom: var(--automotar-spacing-lg);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    border-radius: var(--automotar-radius-lg);
}

/* === Latest Updates === */
.car-updates { background: var(--automotar-bg-card); padding: var(--automotar-spacing-lg); margin-bottom: var(--automotar-spacing-lg); border-radius: var(--automotar-radius-lg); }
.car-updates__grid { display:grid; grid-template-columns: 1fr 1fr; gap: var(--automotar-spacing-lg); }
.car-updates__card { display:block; }
.car-updates__thumb img { width:100%; height:auto; border-radius: var(--automotar-radius); display:block; }
.car-updates__title { font-size:1rem; margin: 8px 0 4px 0; font-weight:600; }
.car-updates__meta { color: var(--automotar-text-muted); font-size:0.85rem; margin-bottom: 4px; }
.car-updates__excerpt { color: var(--automotar-text-secondary); font-size:0.95rem; }
/* collapsible: show 4 initially */
.car-updates__card--additional { display:none; }
.car-updates__grid.is-expanded .car-updates__card--additional { display:block; }
.car-updates__more { display:flex; justify-content:center; margin-top: var(--automotar-spacing-md); }
.car-updates__more-btn { background: none; border: 1px solid var(--automotar-color-primary); color: var(--automotar-color-primary); border-radius: var(--automotar-radius); padding: 8px 12px; cursor: pointer; }
.car-updates__more-btn:hover { background: var(--automotar-color-primary); color:#fff; }
.car-updates__more-btn:focus { outline:2px solid var(--automotar-color-primary); outline-offset:2px; }
@media (max-width: 768px){ .car-updates__grid { grid-template-columns: 1fr; } }
@media (max-width: 768px){ .car-updates__grid { grid-template-columns: 1fr; } }

/* === FAQs === */
.car-faqs { background: var(--automotar-bg-card); padding: var(--automotar-spacing-lg); margin-bottom: var(--automotar-spacing-lg); border-radius: var(--automotar-radius-lg); }
.car-faqs__item { border-bottom: 1px solid var(--automotar-border); background: var(--automotar-bg-card); }
.car-faqs__question { display: flex; align-items: center; justify-content: space-between; width:100%; text-align:left; background: transparent; background-color: transparent !important; border:0; padding: var(--automotar-spacing-md) 0; font-size:1rem; font-weight:600; cursor:pointer; color: var(--automotar-text-primary); appearance: none; box-shadow: none !important; border-radius:0; }
.car-faqs__question:hover { color: var(--automotar-primary); }
.car-faqs__question[aria-expanded="true"] { color: var(--automotar-primary); }
.car-faqs__question:focus { outline: 2px solid var(--automotar-color-primary); outline-offset: 2px; }
.car-faqs__question-text { flex: 1; }
.car-faqs__indicator { 
	width: 20px; 
	height: 20px; 
	margin-left: 12px; 
	transition: transform 0.2s ease; 
	flex: 0 0 20px; 
	display: inline-flex !important; 
	align-items: center; 
	justify-content: center; 
	font-size: 1.5rem; 
	line-height: 1; 
	color: var(--automotar-text-primary);
	opacity: 0.7;
}
.car-faqs__indicator svg { width: 100%; height: 100%; }
.car-faqs__question[aria-expanded="true"] .car-faqs__indicator { transform: rotate(180deg); }
.car-faqs__answer { padding: 0 0 var(--automotar-spacing-md) 0; color: var(--automotar-text-secondary); }

/* === Videos Section === */
.car-videos { background: var(--automotar-bg-card); padding: var(--automotar-spacing-lg); margin-bottom: var(--automotar-spacing-lg); border-radius: var(--automotar-radius-lg); max-width: 100%; overflow-x: hidden; box-sizing: border-box; }
.car-videos__intro { color: var(--automotar-text-secondary); line-height:1.6; margin-bottom: var(--automotar-spacing-lg); }
.car-videos__carousel { position: relative; max-width: 100%; overflow-x: hidden; }
.car-videos__track { display:flex; gap: var(--automotar-spacing-lg); overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 4px; max-width: 100%; }
.car-videos__card { min-width: 320px; max-width: 360px; flex: 0 0 auto; }
.car-videos__thumb { display:block; border:0; background:#f3f4f6; padding:0; cursor:pointer; border-radius: var(--automotar-radius-lg); overflow:hidden; box-shadow: var(--automotar-shadow-md); position: relative; width:100%; padding-bottom:56.25%; }
.car-videos__thumb img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; display:block; }
.car-videos__thumb::after { content:'▶'; position:absolute; left:50%; top:50%; transform: translate(-50%, -50%); width:48px; height:48px; border-radius:9999px; background: rgba(0,0,0,0.6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; }
.car-videos__thumb:hover::after { background: rgba(0,0,0,0.75); }
.car-videos__nav { position:absolute; top:50%; transform: translateY(-50%); border:0; background: rgba(0,0,0,0.5); color:#fff; width:48px; height:48px; line-height:48px; text-align:center; font-size:24px; font-weight:600; border-radius:9999px; display:flex; align-items:center; justify-content:center; cursor:pointer; /* 48x48 for WCAG tap target compliance */ }
.car-videos__nav--prev { left: -12px; }
.car-videos__nav--next { right: -12px; }

/* Ensure nav arrows appear above thumbnails */
.car-videos__carousel { position: relative; z-index: 1; }
.car-videos__track { z-index: 1; }
.car-videos__nav { z-index: 2; }
.car-videos__embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--automotar-radius-lg); box-shadow: var(--automotar-shadow-md); }
.car-videos__embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }
/* .car-videos__title — now handled by global rule above */
.car-videos__desc { color: var(--automotar-text-secondary); font-size: 0.9rem; margin:0; }

/* Contain overall article layout at desktop widths to prevent horizontal overflow
   from theme containers when combined with wide sections */
@media (min-width: 1024px) {
	main#main-content,
	article.car-details {
		width: 100%;
		max-width: 1200px; /* matches intended desktop container */
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
		overflow-x: hidden;
	}
}
.car-videos__show-more { text-align:center; margin-top: var(--automotar-spacing-md); }
.car-videos__more-btn { background:none; border:1px solid var(--automotar-color-primary); color: var(--automotar-color-primary); padding:8px 14px; border-radius: 8px; cursor:pointer; }
.car-videos__more-btn:hover { background: var(--automotar-color-primary); color:#fff; }

@media (max-width: 768px) {
  .car-videos__grid { grid-template-columns: 1fr; }
}

/* Expert Review */
.car-expert-review { background: var(--automotar-bg-card); padding: var(--automotar-spacing-lg); margin-bottom: var(--automotar-spacing-lg); border-radius: var(--automotar-radius-lg); }
.car-expert-review__byline { color: var(--automotar-text-secondary); margin: 0 0 var(--automotar-spacing-md) 0; }
.car-expert-review__author { display:flex; align-items:center; gap: var(--automotar-spacing-md); margin-bottom: var(--automotar-spacing-md); }
.car-expert-review__avatar { width:48px; height:48px; border-radius:9999px; }
.car-expert-review__author-name { font-weight: 600; }
.car-expert-review__content { line-height: 1.7; color: var(--automotar-text-primary); }
.car-expert-review__verdict { margin: var(--automotar-spacing-lg) 0; background: #eef2ff; border: 1px solid var(--automotar-color-primary); border-radius: 12px; padding: var(--automotar-spacing-md); }
.car-expert-review__verdict-title { color: var(--automotar-color-primary); font-weight: 700; margin-bottom: var(--automotar-spacing-sm); }
.car-expert-review__verdict-text { color: #1f2937; font-style: italic; font-size: 1rem; margin:0; }
.car-expert-review__ratings { display: grid; gap: var(--automotar-spacing-md); margin-top: var(--automotar-spacing-lg); }
.car-expert-review__rating { display:grid; grid-template-columns: 140px auto 60px; align-items:center; gap: var(--automotar-spacing-sm); }
.car-expert-review__rating-label { color: var(--automotar-text-secondary); font-weight: 500; }
.car-expert-review__stars { color: #f59e0b; letter-spacing: 2px; font-size: 1.1rem; }
.car-expert-review__stars .star--half { position: relative; }
.car-expert-review__stars .star--half::after { content: '☆'; position:absolute; left:0; width:50%; overflow:hidden; color:#f59e0b; }
.car-expert-review__rating-value { text-align: right; font-weight: 600; }

.car-colors__intro { color: var(--automotar-text-secondary); line-height:1.6; margin-bottom: var(--automotar-spacing-lg); }
.car-colors__grid { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: var(--automotar-spacing-lg); }
.car-colors__item { text-align:center; padding: var(--automotar-spacing-sm); border: 1px solid var(--automotar-border); border-radius: var(--automotar-radius); transition: box-shadow .2s ease, transform .2s ease; }
.car-colors__item:hover { box-shadow: var(--automotar-shadow-md); transform: translateY(-1px); }
.car-colors__swatch { width: 40px; height: 40px; border-radius: 9999px; margin: 0 auto var(--automotar-spacing-sm); border: 1px solid var(--automotar-border); background: #e5e7eb; }
.car-colors__name { font-size: 0.9rem; color: var(--automotar-text-primary); margin-bottom: var(--automotar-spacing-sm); font-weight: 600; }
.car-colors__image img { width: 100%; height: auto; border-radius: var(--automotar-radius); }
.car-colors__item.is-selected { outline: 2px solid var(--automotar-color-primary); outline-offset: 2px; }

@media (max-width: 768px) {
    .car-colors__grid { grid-template-columns: repeat(2, 1fr); }
}

.car-safety__intro {
    color: var(--automotar-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--automotar-spacing-lg);
}

.car-safety__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--automotar-bg-card);
    border: 1px solid var(--automotar-border);
}

.car-safety__table th,
.car-safety__table td {
    padding: 12px;
    border-bottom: 1px solid var(--automotar-border-light);
}

.car-safety__table thead th {
    background: var(--automotar-bg-secondary);
    text-align: left;
    font-weight: 600;
}

.car-safety__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--automotar-spacing-xl);
    margin-top: var(--automotar-spacing-lg);
}

@media (max-width: 768px) {
    .car-safety__features { grid-template-columns: 1fr; }
}

/* === Mileage Section === */
.car-mileage {
    background: var(--automotar-bg-card);
    padding: var(--automotar-spacing-lg);
    margin-bottom: var(--automotar-spacing-lg);
    border-radius: var(--automotar-radius-lg);
}

.car-mileage__intro {
    color: var(--automotar-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--automotar-spacing-lg);
}

.car-mileage__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--automotar-bg-card);
    border: 1px solid var(--automotar-border);
    font-size: 0.9rem;
}

.car-mileage__table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Ensure container doesn't cause body overflow */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.car-mileage__table th,
.car-mileage__table td {
    padding: 12px;
    border-bottom: 1px solid var(--automotar-border-light);
}

.car-mileage__table thead th {
    background: var(--automotar-bg-secondary);
    text-align: left;
    font-weight: 600;
}

.car-mileage__note {
    margin-top: var(--automotar-spacing-sm);
    color: var(--automotar-text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* .car-dimensions .section-title — now handled by global .section-title rule */

.car-dimensions__intro {
	color: var(--automotar-text-secondary);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-bottom: var(--automotar-spacing-lg);
}

/* Dimensions Table */
.car-dimensions__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.car-dimensions__th {
	background: var(--automotar-color-background);
	padding: var(--automotar-spacing-sm);
	text-align: left;
	font-weight: 600;
	color: var(--automotar-text-primary);
	border-bottom: 1px solid var(--automotar-border);
	white-space: nowrap;
}

.car-dimensions__th--mm,
.car-dimensions__th--cm,
.car-dimensions__th--inches,
.car-dimensions__th--feet {
	text-align: center;
}

.car-dimensions__td {
	padding: var(--automotar-spacing-sm);
	border-bottom: 1px solid var(--automotar-border-light);
	vertical-align: middle;
}

.car-dimensions__td--dimension {
	font-weight: 500;
	color: var(--automotar-text-primary);
}

.car-dimensions__td--mm,
.car-dimensions__td--cm,
.car-dimensions__td--inches,
.car-dimensions__td--feet {
	text-align: center;
	font-weight: 400;
	color: var(--automotar-text-secondary);
}

.car-dimensions__note {
	margin-top: var(--automotar-spacing-md);
	padding: var(--automotar-spacing-sm);
	background: var(--automotar-color-background);
	border-radius: var(--automotar-radius);
	border-left: 3px solid var(--automotar-color-primary);
}

.car-dimensions__note p {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--automotar-text-secondary);
	font-style: italic;
}

/* Mobile Styles for Dimensions */
@media (max-width: 768px) {
	.car-dimensions__table-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.car-dimensions__table {
		font-size: 0.75rem;
		min-width: 500px;
	}
	
	.car-dimensions__th,
	.car-dimensions__td {
		padding: var(--automotar-spacing-xs);
	}
}

/* === Accessibility: Screen Reader Only === */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* === Pricing Section Transitions === */
.car-pricing__onroad-price,
.car-pricing__card-onroad-price {
	transition: all 0.3s ease;
}

.car-pricing__onroad-price.updating,
.car-pricing__card-onroad-price.updating {
	opacity: 0.6;
	transform: scale(0.98);
}

.car-pricing__row,
.car-pricing__card {
	transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.3s ease;
}

.car-pricing__table {
	position: relative;
}

.car-pricing__card-features-content {
	transition: all 0.3s ease;
}

.car-pricing__show-more-row,
.car-pricing__cards-show-more {
	transition: opacity 0.2s ease;
}

.car-pricing__row--additional,
.car-pricing__card--additional {
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =====================================================================
   SIMILAR CARS SECTION
   ===================================================================== */
.similar-cars {
	padding: 32px 0;
}
.similar-cars__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}
.similar-cars__group {
	margin-bottom: 24px;
}
.similar-cars__heading {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--contrast, #1a1a1a);
}
.similar-cars__scroll {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
}
.similar-cars__scroll::-webkit-scrollbar {
	height: 4px;
}
.similar-cars__scroll::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 2px;
}
.similar-cars__card {
	flex: 0 0 170px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: box-shadow 0.15s ease;
}
.similar-cars__card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.similar-cars__card-img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
.similar-cars__card-name {
	display: block;
	padding: 8px 10px 2px;
	font-size: 0.813rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.similar-cars__card-price {
	display: block;
	padding: 0 10px 8px;
	font-size: 0.75rem;
	color: #6b7280;
}
.similar-cars__cta {
	text-align: center;
	padding: 8px 0 0;
}
.similar-cars__view-all {
	display: inline-block;
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #2563eb;
	border: 1px solid #2563eb;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.similar-cars__view-all:hover {
	background-color: #2563eb;
	color: #fff;
}
@media (min-width: 768px) {
	.similar-cars__card {
		flex: 0 0 185px;
	}
}
