/* Vehicle Detail Page - Modern Design */

.vehicle-hero {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
	padding: 140px 2rem 3rem;
	max-width: 1600px;
	margin: 0 auto;
	background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.vehicle-gallery {
	position: sticky;
	top: 120px;
	align-self: start;
}

.main-image {
	width: 100%;
	height: 600px;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	margin-bottom: 1.5rem;
	box-shadow: 
		0 0 0 1px rgba(139, 92, 246, 0.08),
		0 20px 60px rgba(0, 0, 0, 0.12);
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	cursor: pointer;
}

.main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image:hover img {
	transform: scale(1.05);
}

.main-image.has-placeholder {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.vehicle-badge {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	padding: 0.625rem 1.25rem;
	backdrop-filter: blur(12px);
	border-radius: 24px;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	z-index: 10;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
	font-family: var(--font-sans);
}

.vehicle-badge.new {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.vehicle-badge.reserved {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.vehicle-badge:not(.new):not(.reserved) {
	background: rgba(0, 0, 0, 0.6);
}

.thumbnail-gallery {
	display: none;
}

.thumbnail {
	height: 130px;
	border-radius: 12px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0.6;
	overflow: hidden;
	background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
	position: relative;
}

.thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumbnail:hover {
	opacity: 1;
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
	border-color: #8b5cf6;
	opacity: 1;
	box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.thumbnail.has-placeholder {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.vehicle-summary {
	background: #ffffff;
	padding: 2.5rem;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.vehicle-meta {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.vehicle-meta .year {
	padding: 0.5rem 1.25rem;
	background: rgba(139, 92, 246, 0.1);
	border-radius: 20px;
	color: #8b5cf6;
	font-weight: 700;
	font-size: 0.9375rem;
	font-family: var(--font-sans);
}

.vehicle-meta .location {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--gray-500);
	font-size: 0.9375rem;
	font-weight: 500;
}

.vehicle-meta .location svg {
	width: 18px;
	height: 18px;
}

.vehicle-summary h1 {
	font-size: clamp(2rem, 3vw, 2.75rem);
	color: var(--gray-900);
	margin-bottom: 2rem;
	font-family: var(--font-serif);
	line-height: 1.2;
	font-weight: 700;
}

.price-section {
	padding: 2rem;
	background: #fafafa;
	border-radius: 16px;
	border: 1px solid #f0f0f0;
	margin-bottom: 2rem;
}

.price-label {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gray-500);
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.price-value {
	font-size: 2.75rem;
	font-weight: 700;
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-family: var(--font-sans);
	line-height: 1;
}

.quick-specs {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid #f0f0f0;
}

.quick-spec {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: #fafafa;
	border-radius: 12px;
	transition: all 0.2s ease;
}

.quick-spec:hover {
	background: rgba(139, 92, 246, 0.04);
}

.quick-spec svg {
	color: #8b5cf6;
	flex-shrink: 0;
}

.quick-spec div {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.quick-spec .label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gray-500);
	font-weight: 600;
}

.quick-spec .value {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--gray-900);
	font-family: var(--font-sans);
}

.action-buttons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.btn-primary.full-width,
.btn-secondary.full-width {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.125rem 2rem;
	font-size: 1rem;
	border-radius: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: var(--font-sans);
	border: none;
	cursor: pointer;
}

.btn-primary.full-width {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	color: #ffffff;
	box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary.full-width:hover {
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
	box-shadow: 0 6px 28px rgba(139, 92, 246, 0.45);
	transform: translateY(-2px);
}

.btn-secondary.full-width {
	background: #ffffff;
	color: var(--gray-700);
	border: 2px solid #e5e5e5;
}

.btn-secondary.full-width:hover {
	background: #fafafa;
	border-color: #d0d0d0;
	color: var(--gray-900);
	transform: translateY(-2px);
}

.action-buttons svg {
	width: 20px;
	height: 20px;
	stroke-width: 2.5;
}

.vehicle-details {
	padding: 4rem 0;
	background: #ffffff;
}

.vehicle-details .container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 2rem;
}

.details-layout {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 3rem;
}

.details-main {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.detail-section {
	background: #ffffff;
	padding: 2.5rem;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.detail-section h2 {
	font-size: 1.5rem;
	color: var(--gray-900);
	margin-bottom: 1.5rem;
	font-family: var(--font-serif);
	font-weight: 700;
}

.detail-section p {
	color: var(--gray-600);
	line-height: 1.75;
	font-size: 1.0625rem;
}

.features-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.875rem;
}

.features-list li {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	color: var(--gray-700);
	font-size: 0.9375rem;
	padding: 0.75rem 1rem;
	background: #fafafa;
	border: 1px solid #f0f0f0;
	border-radius: 10px;
	transition: all 0.2s ease;
}

.features-list li:hover {
	background: rgba(139, 92, 246, 0.04);
	border-color: rgba(139, 92, 246, 0.15);
	transform: translateX(4px);
}

.features-list li::before {
	content: '✓';
	color: #ffffff;
	font-weight: 700;
	width: 24px;
	height: 24px;
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	flex-shrink: 0;
}

.specs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}

.spec-item {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 1.25rem;
	background: #fafafa;
	border-radius: 12px;
	border: 1px solid #f0f0f0;
	text-align: center;
}

.spec-label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gray-500);
	font-weight: 600;
}

.spec-value {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--gray-900);
	font-family: var(--font-sans);
}

.details-sidebar {
	position: sticky;
	top: 120px;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.sidebar-card {
	background: #ffffff;
	padding: 2rem;
	border-radius: 16px;
	border: 1px solid rgba(139, 92, 246, 0.08);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sidebar-card h3 {
	font-size: 1.25rem;
	color: var(--gray-900);
	margin-bottom: 1.25rem;
	font-family: var(--font-serif);
	font-weight: 700;
}

.sidebar-card p {
	color: var(--gray-600);
	line-height: 1.7;
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 800px;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-group label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-700);
}

.form-group .required {
	color: #ef4444;
	margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
	padding: 0.875rem 1rem;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	font-size: 0.9375rem;
	color: var(--gray-900);
	background: #fafafa;
	transition: all 0.2s ease;
	font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #8b5cf6;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.contact-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: rgba(139, 92, 246, 0.06);
	border-radius: 12px;
	color: #8b5cf6;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.contact-link:hover {
	background: rgba(139, 92, 246, 0.1);
	transform: translateX(4px);
}

.related-vehicles {
	padding: 5rem 0;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
	position: relative;
}

.related-vehicles::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.2) 50%, transparent 100%);
}

.related-vehicles .container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 2rem;
}

.related-vehicles-header {
	text-align: center;
	margin-bottom: 3.5rem;
	position: relative;
}

.related-vehicles-header::after {
	content: '';
	position: absolute;
	bottom: -1.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
	border-radius: 2px;
}

.related-vehicles-header .eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #8b5cf6;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.related-vehicles-header .eyebrow::before,
.related-vehicles-header .eyebrow::after {
	content: '';
	width: 24px;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, #8b5cf6 100%);
}

.related-vehicles-header .eyebrow::after {
	background: linear-gradient(90deg, #8b5cf6 0%, transparent 100%);
}

.related-vehicles h2 {
	font-size: 2.75rem;
	color: var(--gray-900);
	margin: 0;
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.2;
}

.related-vehicles-subtitle {
	font-size: 1.125rem;
	color: var(--gray-600);
	margin-top: 1rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* Centered Grid Layout for Similar Vehicles */
.related-vehicles .inventory-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}

.related-vehicles .inventory-card {
	width: 100%;
	max-width: 380px;
	flex: 0 0 auto;
}

.related-vehicles .inventory-image {
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

.related-vehicles .inventory-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-vehicles .inventory-card:hover .inventory-image img {
	transform: scale(1.05);
}

/* Image Navigation */
.image-navigation {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 1rem;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	padding: 0.75rem 1.25rem;
	border-radius: 24px;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.main-image:hover .image-navigation {
	opacity: 1;
}

.nav-btn {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.nav-btn:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.1);
}

.nav-btn svg {
	width: 20px;
	height: 20px;
}

.image-counter {
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	min-width: 60px;
	text-align: center;
}

.expand-btn {
	width: 36px;
	height: 36px;
	background: rgba(139, 92, 246, 0.9);
	border: none;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.expand-btn:hover {
	background: #8b5cf6;
	transform: scale(1.1);
}

.expand-btn svg {
	width: 18px;
	height: 18px;
}

/* Fullscreen Gallery Modal */
.fullscreen-gallery-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.98);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.fullscreen-gallery-modal.active {
	opacity: 1;
	visibility: visible;
}

.fullscreen-gallery {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.gallery-close {
	position: absolute;
	top: 2rem;
	right: 2rem;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: none;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.gallery-close:hover {
	background: #8b5cf6;
	transform: rotate(90deg) scale(1.1);
}

.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: none;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.gallery-nav:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
	left: 2rem;
}

.gallery-next {
	right: 2rem;
}

.gallery-image-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5rem 8rem 2rem;
}

.gallery-image-container img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transition: opacity 0.3s ease;
}

.gallery-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
}

.gallery-counter {
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
}

.gallery-title {
	color: #ffffff;
	font-size: 1.125rem;
	font-weight: 600;
	font-family: var(--font-serif);
}

.gallery-thumbnails {
	display: flex;
	gap: 0.75rem;
	padding: 1.5rem 2rem;
	overflow-x: auto;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
}

.gallery-thumbnails::-webkit-scrollbar {
	height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
	background: rgba(139, 92, 246, 0.5);
	border-radius: 2px;
}

.gallery-thumb {
	flex-shrink: 0;
	width: 100px;
	height: 75px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	opacity: 0.5;
}

.gallery-thumb:hover {
	opacity: 0.8;
	transform: scale(1.05);
}

.gallery-thumb.active {
	opacity: 1;
	border-color: #8b5cf6;
	box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Responsive */
@media (max-width: 1400px) {
	.vehicle-hero,
	.vehicle-details .container,
	.related-vehicles .container {
		max-width: 1200px;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (max-width: 1200px) {
	.vehicle-hero {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		padding: 120px 1.5rem 2.5rem;
	}
	
	.vehicle-gallery {
		position: relative;
		top: 0;
	}
	
	.details-layout {
		grid-template-columns: 1fr;
	}
	
	.details-sidebar {
		position: relative;
		top: 0;
	}
}

@media (max-width: 968px) {
	.vehicle-hero {
		padding: 100px 1.25rem 2rem;
	}
	
	.main-image {
		height: 450px;
	}
	
	.thumbnail-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.vehicle-summary {
		padding: 2rem;
	}
	
	.price-value {
		font-size: 2.25rem;
	}
	
	.specs-grid {
		grid-template-columns: 1fr;
	}
	
	.detail-section {
		padding: 2rem;
	}
	
	.gallery-image-container {
		padding: 4rem 2rem 2rem;
	}
	
	.gallery-nav {
		width: 48px;
		height: 48px;
	}
	
	.gallery-prev {
		left: 1rem;
	}
	
	.gallery-next {
		right: 1rem;
	}
	
	.related-vehicles {
		padding: 4rem 0;
	}
	
	.related-vehicles-header {
		margin-bottom: 2.5rem;
	}
	
	.related-vehicles h2 {
		font-size: 2.25rem;
	}
	
	.related-vehicles-subtitle {
		font-size: 1rem;
	}
}

@media (max-width: 640px) {
	.vehicle-hero {
		padding: 90px 1rem 1.5rem;
	}
	
	.main-image {
		height: 350px;
		border-radius: 16px;
	}
	
	.thumbnail-gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
	
	.thumbnail {
		height: 100px;
		border-radius: 10px;
	}
	
	.vehicle-summary {
		padding: 1.75rem;
		border-radius: 16px;
	}
	
	.vehicle-summary h1 {
		font-size: 1.75rem;
	}
	
	.price-section {
		padding: 1.5rem;
	}
	
	.price-value {
		font-size: 2rem;
	}
	
	.detail-section {
		padding: 1.75rem;
		border-radius: 12px;
	}
	
	.sidebar-card {
		padding: 1.75rem;
		border-radius: 12px;
	}
	
	.image-navigation {
		bottom: 1rem;
		padding: 0.625rem 1rem;
		gap: 0.75rem;
	}
	
	.nav-btn,
	.expand-btn {
		width: 32px;
		height: 32px;
	}
	
	.nav-btn svg {
		width: 18px;
		height: 18px;
	}
	
	.gallery-close {
		top: 1rem;
		right: 1rem;
		width: 42px;
		height: 42px;
	}
	
	.gallery-nav {
		width: 42px;
		height: 42px;
	}
	
	.gallery-prev {
		left: 0.5rem;
	}
	
	.gallery-next {
		right: 0.5rem;
	}
	
	.gallery-image-container {
		padding: 3.5rem 1rem 1.5rem;
	}
	
	.gallery-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		padding: 1rem 1.5rem;
	}
	
	.gallery-title {
		font-size: 1rem;
	}
	
	.gallery-thumbnails {
		padding: 1rem 1.5rem;
	}
	
	.gallery-thumb {
		width: 80px;
		height: 60px;
	}
}

@media (max-width: 768px) {
	.form-row {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}
