/* ============================
   VEHIZO COMPLETE DESIGN SYSTEM
   ============================
   Modern, clean, professional automotive design
   Inspired by Tannenkamp - Mobile-first approach */

/* CSS Custom Properties for Backend Integration */
:root {
	/* Primary Color Palette - Automotive Professional */
	--vehizo-primary: #1e40af;         /* Deep blue - trust & professionalism */
	--vehizo-primary-light: #3b82f6;   /* Lighter blue for accents */
	--vehizo-primary-dark: #1e3a8a;    /* Darker blue for headers */
	--vehizo-accent: #dc2626;          /* Red accent for CTAs */
	--vehizo-accent-light: #ef4444;    /* Light red for hover */
	
	/* Secondary Colors */
	--vehizo-secondary: #64748b;       /* Professional gray */
	--vehizo-secondary-light: #94a3b8; /* Light gray for subtle text */
	--vehizo-secondary-dark: #475569;  /* Dark gray for important text */
	
	/* Neutral Palette */
	--vehizo-white: #ffffff;
	--vehizo-gray-50: #f8fafc;         /* Very light background */
	--vehizo-gray-100: #f1f5f9;        /* Card backgrounds */
	--vehizo-gray-200: #e2e8f0;        /* Borders */
	--vehizo-gray-300: #cbd5e1;        /* Subtle borders */
	--vehizo-gray-800: #1e293b;        /* Dark text */
	--vehizo-gray-900: #0f172a;        /* Headers */
	
	/* Status Colors */
	--vehizo-success: #059669;
	--vehizo-warning: #d97706;
	--vehizo-error: #dc2626;
	--vehizo-info: #0284c7;
	
	/* Typography */
	--vehizo-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--vehizo-font-size-xs: 0.75rem;    /* 12px */
	--vehizo-font-size-sm: 0.875rem;   /* 14px */
	--vehizo-font-size-base: 1rem;     /* 16px */
	--vehizo-font-size-lg: 1.125rem;   /* 18px */
	--vehizo-font-size-xl: 1.25rem;    /* 20px */
	--vehizo-font-size-2xl: 1.5rem;    /* 24px */
	--vehizo-font-size-3xl: 1.875rem;  /* 30px */
	--vehizo-font-size-4xl: 2.25rem;   /* 36px */
	
	/* Spacing System */
	--vehizo-space-1: 0.25rem;   /* 4px */
	--vehizo-space-2: 0.5rem;    /* 8px */
	--vehizo-space-3: 0.75rem;   /* 12px */
	--vehizo-space-4: 1rem;      /* 16px */
	--vehizo-space-5: 1.25rem;   /* 20px */
	--vehizo-space-6: 1.5rem;    /* 24px */
	--vehizo-space-8: 2rem;      /* 32px */
	
	/* Border Radius */
	--vehizo-radius: 0.5rem;       /* 8px */
	--vehizo-radius-lg: 0.75rem;   /* 12px */
	--vehizo-radius-xl: 1rem;      /* 16px */
	
	/* Shadows */
	--vehizo-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--vehizo-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	
	/* Transitions */
	--vehizo-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   VERTICAL THUMBNAIL GALLERY LAYOUT
   Professional gallery like automotive websites
   ============================ */

.vehizo-gallery-container {
	display: flex;
	gap: var(--vehizo-space-3);
	height: 350px;
	margin-bottom: var(--vehizo-space-4);
}

/* New: Gallery Column Layout */
.vehizo-gallery-column {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.vehizo-gallery-content {
	flex: 1;
}

/* Visual separator between gallery and content */
.vehizo-gallery-separator {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 16px 0;
	height: 1px;
	background: transparent;
}

/* Content directly below gallery */
.vehizo-gallery-below-content {
	margin-top: 0;
	background: white;
	border-radius: var(--vehizo-radius);
	border: 1px solid var(--vehizo-gray-200);
	overflow: hidden;
}

/* Vertical Thumbnail Strip */
.vehizo-thumbnail-strip {
	display: flex;
	flex-direction: column;
	gap: var(--vehizo-space-2);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--vehizo-gray-300) transparent;
	padding-right: var(--vehizo-space-1);
}

.vehizo-thumbnail-strip::-webkit-scrollbar {
	width: 4px;
}

.vehizo-thumbnail-strip::-webkit-scrollbar-track {
	background: transparent;
}

.vehizo-thumbnail-strip::-webkit-scrollbar-thumb {
	background: var(--vehizo-gray-300);
	border-radius: 2px;
}

.vehizo-thumbnail-strip::-webkit-scrollbar-thumb:hover {
	background: var(--vehizo-secondary);
}

.vehizo-thumbnail {
	width: 80px;
	height: 60px;
	border-radius: var(--vehizo-radius);
	overflow: hidden;
	cursor: pointer;
	transition: var(--vehizo-transition);
	border: 2px solid transparent;
	background: var(--vehizo-gray-100);
	flex-shrink: 0;
}

.vehizo-thumbnail:hover {
	transform: scale(1.05);
	border-color: var(--vehizo-primary-light);
}

.vehizo-thumbnail.active {
	border-color: var(--vehizo-primary);
	box-shadow: 0 0 0 1px var(--vehizo-primary);
}

.vehizo-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--vehizo-transition);
}

/* Main Image Container */
.vehizo-main-image-container {
	position: relative;
	flex: 1;
	border-radius: var(--vehizo-radius);
	overflow: hidden;
	background: var(--vehizo-gray-100);
	cursor: pointer;
}

.vehizo-main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--vehizo-transition);
}

.vehizo-main-image-container:hover .vehizo-main-image {
	transform: scale(1.02);
}

/* Gallery Navigation */
.vehizo-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px;
	color: var(--vehizo-gray-800);
	transition: var(--vehizo-transition);
	opacity: 0;
	visibility: hidden;
}

.vehizo-main-image-container:hover .vehizo-gallery-nav {
	opacity: 1;
	visibility: visible;
}

.vehizo-gallery-prev {
	left: var(--vehizo-space-3);
}

.vehizo-gallery-next {
	right: var(--vehizo-space-3);
}

.vehizo-gallery-nav:hover {
	background: white;
	transform: translateY(-50%) scale(1.1);
}

/* Image Counter */
.vehizo-image-counter {
	position: absolute;
	bottom: var(--vehizo-space-3);
	left: var(--vehizo-space-3);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: var(--vehizo-space-1) var(--vehizo-space-3);
	border-radius: var(--vehizo-radius);
	font-size: var(--vehizo-font-size-sm);
	font-weight: 500;
}

/* Fullscreen Button */
.vehizo-fullscreen-btn {
	position: absolute;
	top: var(--vehizo-space-3);
	right: var(--vehizo-space-3);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: var(--vehizo-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	color: var(--vehizo-gray-800);
	transition: var(--vehizo-transition);
	opacity: 0;
	visibility: hidden;
}

.vehizo-main-image-container:hover .vehizo-fullscreen-btn {
	opacity: 1;
	visibility: visible;
}

.vehizo-fullscreen-btn:hover {
	background: white;
	transform: scale(1.1);
}

/* Lightbox Styles */
.vehizo-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
}

.vehizo-lightbox.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.vehizo-lightbox__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

.vehizo-lightbox__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vehizo-lightbox__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--vehizo-radius);
}

.vehizo-lightbox__close,
.vehizo-lightbox__prev,
.vehizo-lightbox__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 24px;
	color: var(--vehizo-gray-800);
	transition: var(--vehizo-transition);
}

.vehizo-lightbox__close {
	top: -60px;
	right: 0;
}

.vehizo-lightbox__prev {
	left: -60px;
	top: 50%;
	transform: translateY(-50%);
}

.vehizo-lightbox__next {
	right: -60px;
	top: 50%;
	transform: translateY(-50%);
}

.vehizo-lightbox__close:hover,
.vehizo-lightbox__prev:hover,
.vehizo-lightbox__next:hover {
	background: white;
	transform: translateY(-50%) scale(1.1);
}

.vehizo-lightbox__counter {
	position: absolute;
	bottom: -50px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.9);
	padding: var(--vehizo-space-2) var(--vehizo-space-4);
	border-radius: var(--vehizo-radius);
	font-size: var(--vehizo-font-size-sm);
	color: var(--vehizo-gray-800);
}

/* Responsive Design */
@media (max-width: 768px) {
	.vehizo-gallery-container {
		flex-direction: column;
		height: auto;
		gap: var(--vehizo-space-3);
	}

	.vehizo-thumbnail-strip {
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: var(--vehizo-space-1);
		padding-right: 0;
		gap: var(--vehizo-space-2);
	}

	.vehizo-thumbnail {
		width: 60px;
		height: 45px;
	}

	.vehizo-main-image-container {
		height: 250px;
	}

	.vehizo-gallery-nav {
		width: 35px;
		height: 35px;
		font-size: 18px;
	}

	.vehizo-fullscreen-btn {
		width: 35px;
		height: 35px;
		font-size: 14px;
	}

	.vehizo-lightbox__prev,
	.vehizo-lightbox__next {
		display: none;
	}

	.vehizo-lightbox__close {
		top: 20px;
		right: 20px;
	}

	.vehizo-lightbox__counter {
		bottom: 20px;
	}
}

@media (max-width: 480px) {
	.vehizo-gallery-container {
		gap: var(--vehizo-space-2);
	}

	.vehizo-thumbnail {
		width: 50px;
		height: 38px;
	}

	.vehizo-main-image-container {
		height: 200px;
	}

	.vehizo-gallery-nav {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}

	.vehizo-fullscreen-btn {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}
}

/* Placeholder Styles */
.vehizo-single__main-image-placeholder {
	height: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--vehizo-gray-100);
	border-radius: var(--vehizo-radius);
	color: var(--vehizo-secondary);
	text-align: center;
}

.vehizo-single__main-image-placeholder svg {
	margin-bottom: var(--vehizo-space-4);
	opacity: 0.5;
}

.vehizo-single__main-image-placeholder p {
	margin: 0;
	font-size: var(--vehizo-font-size-lg);
	color: var(--vehizo-secondary);
}

/* ============================
   ÜBERARBEITETE BUTTON STYLES
   Dezent, professionell, hierarchisch
   WICHTIG: Überschreibt die bestehenden Klassen!
   ============================ */

/* Base Button Styling - überschreibt alle bestehenden Button-Styles */
.vehizo-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--vehizo-space-2) !important;
    padding: var(--vehizo-space-3) var(--vehizo-space-5) !important;
    font-size: var(--vehizo-font-size-sm) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: var(--vehizo-radius) !important;
    cursor: pointer !important;
    transition: var(--vehizo-transition) !important;
    border: 1px solid var(--vehizo-gray-300) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: var(--vehizo-white) !important;
    color: var(--vehizo-secondary-dark) !important;
}

.vehizo-button:hover {
    background-color: var(--vehizo-gray-50) !important;
    border-color: var(--vehizo-secondary) !important;
    color: var(--vehizo-gray-900) !important;
    text-decoration: none !important;
}

/* Komplett neue dezente Styles für bestehende Klassen */
.vehizo-button--accent {
    background-color: var(--vehizo-white) !important;
    color: var(--vehizo-primary) !important;
    border: 1px solid var(--vehizo-gray-300) !important;
    font-weight: 500 !important;
}

.vehizo-button--accent:hover {
    background-color: var(--vehizo-gray-50) !important;
    border-color: var(--vehizo-primary) !important;
    color: var(--vehizo-primary-dark) !important;
}

.vehizo-button--secondary {
    background-color: var(--vehizo-white) !important;
    color: var(--vehizo-secondary-dark) !important;
    border: 1px solid var(--vehizo-gray-200) !important;
    font-weight: 500 !important;
}

.vehizo-button--secondary:hover {
    background-color: var(--vehizo-gray-50) !important;
    border-color: var(--vehizo-gray-300) !important;
    color: var(--vehizo-gray-900) !important;
}

.vehizo-button--large {
    padding: var(--vehizo-space-4) var(--vehizo-space-6) !important;
    font-size: var(--vehizo-font-size-base) !important;
}

/* Icon Buttons */
.vehizo-button__icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ============================
   TYPOGRAPHY
   ============================ */

.vehizo-heading-3 {
	font-size: var(--vehizo-font-size-2xl);
	font-weight: 600;
	line-height: 1.4;
	color: var(--vehizo-gray-900);
	margin-bottom: var(--vehizo-space-4);
}

.vehizo-text-body {
	font-size: var(--vehizo-font-size-base);
	color: var(--vehizo-gray-800);
	margin-bottom: var(--vehizo-space-4);
	line-height: 1.6;
}

/* ============================
   LAYOUT & SINGLE VEHICLE PAGE
   ============================ */
.vehizo-container {
	width: 100%;
	max-width: 1200px;
	margin: var(--vehizo-space-8) auto;
	padding: 0 var(--vehizo-space-4);
	box-sizing: border-box;
}

.vehizo-single {
	background-color: var(--vehizo-white);
	border-radius: var(--vehizo-radius-xl);
	overflow: hidden;
	box-shadow: var(--vehizo-shadow);
	border: 1px solid var(--vehizo-gray-200);
}

.vehizo-single__header {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: var(--vehizo-space-6);
	align-items: start;
}

.vehizo-single__gallery {
	position: relative;
	background-color: var(--vehizo-gray-100);
}

.vehizo-single__main-image {
	aspect-ratio: 16/10;
	width: 100%;
	object-fit: cover;
}

.vehizo-single__main-image-placeholder {
	aspect-ratio: 16/10;
	width: 100%;
	background-color: var(--vehizo-gray-200);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vehizo-secondary);
	font-size: var(--vehizo-font-size-sm);
}

.vehizo-single__thumbnails {
	display: flex;
	gap: var(--vehizo-space-2);
	padding: var(--vehizo-space-4);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.vehizo-single__thumbnails::-webkit-scrollbar {
	display: none;
}

.vehizo-single__thumbnail {
	flex-shrink: 0;
	width: 120px;
	height: 90px;
	border-radius: var(--vehizo-radius);
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: var(--vehizo-transition);
}

.vehizo-single__thumbnail.active {
	border-color: var(--vehizo-primary);
}

.vehizo-single__thumbnail:hover:not(.active) {
	border-color: var(--vehizo-gray-300);
}

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

/* Vehicle Info Sidebar - back to original */
.vehizo-single__info {
	padding: var(--vehizo-space-6);
	background-color: var(--vehizo-gray-50);
	display: flex;
	flex-direction: column;
}

.vehizo-single__title {
	font-size: var(--vehizo-font-size-3xl);
	font-weight: 700;
	color: var(--vehizo-gray-900);
	margin: 0 0 var(--vehizo-space-2) 0;
	line-height: 1.2;
}

.vehizo-single__subtitle {
	font-size: var(--vehizo-font-size-lg);
	color: var(--vehizo-secondary);
	margin: 0 0 var(--vehizo-space-6) 0;
	font-weight: 500;
}

.vehizo-single__price {
	font-size: var(--vehizo-font-size-4xl);
	font-weight: 700;
	color: var(--vehizo-primary);
	margin-bottom: var(--vehizo-space-8);
}

.vehizo-single__quick-specs {
	display: grid;
	gap: var(--vehizo-space-2);
	margin-bottom: var(--vehizo-space-4);
	flex: 1;
}

.vehizo-single__spec-item {
	display: flex;
	align-items: center;
	gap: var(--vehizo-space-3);
	padding: var(--vehizo-space-3);
	background-color: var(--vehizo-white);
	border-radius: var(--vehizo-radius);
	border: 1px solid var(--vehizo-gray-200);
	transition: var(--vehizo-transition);
}

.vehizo-single__spec-item:hover {
	border-color: var(--vehizo-gray-300);
}

.vehizo-single__spec-icon {
	width: 20px;
	height: 20px;
	color: var(--vehizo-primary);
	flex-shrink: 0;
}

.vehizo-single__spec-content {
	flex: 1;
}

.vehizo-single__spec-label {
	font-size: var(--vehizo-font-size-xs);
	color: var(--vehizo-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
	display: block;
	font-weight: 500;
}

.vehizo-single__spec-value {
	font-size: var(--vehizo-font-size-sm);
	font-weight: 600;
	color: var(--vehizo-gray-800);
}

.vehizo-single__actions {
	display: grid;
	gap: var(--vehizo-space-3);
}

.vehizo-single__content {
	padding: var(--vehizo-space-8);
}

/* ============================
   ÜBERARBEITETE TAB NAVIGATION
   Dezent, modern, subtil
   ============================ */

.vehizo-single__tabs {
	display: flex !important;
	gap: var(--vehizo-space-2) !important;
	margin-bottom: var(--vehizo-space-6) !important;
	padding: 0 !important;
	background-color: transparent !important;
	border-radius: 0 !important;
	border: none !important;
	border-bottom: 1px solid var(--vehizo-gray-200) !important;
}

.vehizo-single__tab {
	padding: var(--vehizo-space-3) var(--vehizo-space-4) !important;
	font-size: var(--vehizo-font-size-sm) !important;
	font-weight: 500 !important;
	color: var(--vehizo-secondary) !important;
	background: transparent !important;
	border: none !important;
	cursor: pointer !important;
	border-radius: 0 !important;
	transition: var(--vehizo-transition) !important;
	border-bottom: 2px solid transparent !important;
	margin-right: var(--vehizo-space-4) !important;
}

.vehizo-single__tab.active {
	background-color: transparent !important;
	color: var(--vehizo-primary) !important;
	box-shadow: none !important;
	font-weight: 600 !important;
	border-bottom-color: var(--vehizo-primary) !important;
}

.vehizo-single__tab:hover:not(.active) {
	color: var(--vehizo-gray-800) !important;
	background-color: transparent !important;
	border-bottom-color: var(--vehizo-gray-300) !important;
}

.vehizo-single__tab-content {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.vehizo-single__tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ============================
   TECHNICAL SPECS TABLE
   ============================ */

.vehizo-specs-table {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--vehizo-space-6);
}

.vehizo-specs-group {
	background-color: var(--vehizo-gray-50);
	border-radius: var(--vehizo-radius-lg);
	padding: var(--vehizo-space-6);
	border: 1px solid var(--vehizo-gray-200);
}

.vehizo-specs-group__title {
	font-size: var(--vehizo-font-size-lg);
	font-weight: 600;
	color: var(--vehizo-gray-900);
	margin: 0 0 var(--vehizo-space-4) 0;
	padding-bottom: var(--vehizo-space-3);
	border-bottom: 2px solid var(--vehizo-primary);
}

.vehizo-specs-group__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--vehizo-space-3) 0;
	border-bottom: 1px solid var(--vehizo-gray-200);
}

.vehizo-specs-group__item:last-child {
	border-bottom: none;
}

.vehizo-specs-group__label {
	font-size: var(--vehizo-font-size-sm);
	color: var(--vehizo-secondary);
	font-weight: 500;
}

.vehizo-specs-group__value {
	font-size: var(--vehizo-font-size-sm);
	font-weight: 600;
	color: var(--vehizo-gray-800);
	text-align: right;
}

/* ============================
   CONTACT POPUP STYLES
   ============================ */

.vehizo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vehizo-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.vehizo-popup-content {
    background: var(--vehizo-white);
    border-radius: var(--vehizo-radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--vehizo-shadow-xl);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.vehizo-popup-overlay.show .vehizo-popup-content {
    transform: scale(1) translateY(0);
}

.vehizo-popup-header {
    padding: var(--vehizo-space-5) var(--vehizo-space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--vehizo-gray-200);
    background-color: var(--vehizo-gray-50);
}

.vehizo-popup-header h3 {
    margin: 0;
    font-size: var(--vehizo-font-size-xl);
    color: var(--vehizo-gray-900);
    font-weight: 600;
}

.vehizo-popup-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--vehizo-secondary);
    padding: 0;
    margin: 0;
    line-height: 1;
    border-radius: 50%;
    transition: var(--vehizo-transition);
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
    text-align: center;
    box-sizing: border-box;
    position: relative;
}

/* Use CSS content for perfect centering */
.vehizo-popup-close::before {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.vehizo-popup-close:hover {
    background-color: var(--vehizo-gray-200);
    color: var(--vehizo-gray-800);
}

.vehizo-popup-body {
    padding: var(--vehizo-space-6);
}

.vehizo-popup-body .form-row {
    margin-bottom: var(--vehizo-space-4);
}

.vehizo-popup-body .form-row:last-child {
    margin-bottom: 0;
}

.vehizo-popup-body .form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--vehizo-space-2);
    font-size: var(--vehizo-font-size-sm);
    color: var(--vehizo-gray-800);
}

.vehizo-popup-body .form-row input[type="text"],
.vehizo-popup-body .form-row input[type="email"],
.vehizo-popup-body .form-row textarea {
    width: 100%;
    padding: var(--vehizo-space-3);
    border: 1px solid var(--vehizo-gray-300);
    border-radius: var(--vehizo-radius);
    font-size: var(--vehizo-font-size-base);
    font-family: var(--vehizo-font-family);
    transition: var(--vehizo-transition);
    box-sizing: border-box;
}

.vehizo-popup-body .form-row input:focus,
.vehizo-popup-body .form-row textarea:focus {
    outline: none;
    border-color: var(--vehizo-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.vehizo-popup-body .form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Spacing within Popup */
.vehizo-popup-body .vehizo-button {
    margin-top: var(--vehizo-space-4);
}

/* Success Modal Styling */
.vehizo-success-modal .vehizo-popup-header {
    background-color: #dcfce7;
    border-bottom: 1px solid #bbf7d0;
}

.vehizo-success-modal .vehizo-popup-header h3 {
    color: #166534;
}

.vehizo-success-content {
    text-align: center;
    padding: var(--vehizo-space-4) 0;
}

.vehizo-success-icon {
    font-size: 3rem;
    margin-bottom: var(--vehizo-space-4);
    display: block;
}

.vehizo-success-content p {
    font-size: var(--vehizo-font-size-base);
    color: var(--vehizo-gray-800);
    line-height: 1.6;
    margin-bottom: var(--vehizo-space-6);
}

.vehizo-success-content .vehizo-button {
    margin: 0 auto;
    min-width: 120px;
}

/* Primary Button Styling für Contact Button */
.vehizo-button--primary {
    background-color: var(--vehizo-primary) !important;
    color: var(--vehizo-white) !important;
    border: 1px solid var(--vehizo-primary) !important;
    font-weight: 600 !important;
}

.vehizo-button--primary:hover {
    background-color: var(--vehizo-primary-dark) !important;
    border-color: var(--vehizo-primary-dark) !important;
    color: var(--vehizo-white) !important;
}

/* ============================
   LEGACY MODAL STYLES (für andere Modals)
   ============================ */

#vehizo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#vehizo-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.vehizo-modal {
    background: var(--vehizo-white);
    border-radius: var(--vehizo-radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--vehizo-shadow-xl);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#vehizo-modal-overlay.active .vehizo-modal {
    transform: scale(1);
}

.vehizo-modal-header {
    padding: var(--vehizo-space-5) var(--vehizo-space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--vehizo-gray-200);
}

.vehizo-modal-header h3 {
    margin: 0;
    font-size: var(--vehizo-font-size-xl);
    color: var(--vehizo-gray-900);
    font-weight: 600;
}

.vehizo-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--vehizo-secondary);
    padding: var(--vehizo-space-1);
    line-height: 1;
    border-radius: var(--vehizo-radius);
    transition: var(--vehizo-transition);
}

.vehizo-modal-close:hover {
    background-color: var(--vehizo-gray-100);
    color: var(--vehizo-gray-800);
}

.vehizo-modal-body {
    padding: var(--vehizo-space-6);
}

.vehizo-modal .form-row {
    margin-bottom: var(--vehizo-space-4);
}

.vehizo-modal .form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--vehizo-space-2);
    font-size: var(--vehizo-font-size-sm);
    color: var(--vehizo-gray-800);
}

.vehizo-modal .form-row input[type="text"],
.vehizo-modal .form-row input[type="email"],
.vehizo-modal .form-row textarea {
    width: 100%;
    padding: var(--vehizo-space-3);
    border: 1px solid var(--vehizo-gray-300);
    border-radius: var(--vehizo-radius);
    font-size: var(--vehizo-font-size-base);
    font-family: var(--vehizo-font-family);
    transition: var(--vehizo-transition);
    box-sizing: border-box;
}

.vehizo-modal .form-row input:focus,
.vehizo-modal .form-row textarea:focus {
    outline: none;
    border-color: var(--vehizo-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.vehizo-alert {
    padding: var(--vehizo-space-4);
    border-radius: var(--vehizo-radius);
    margin-bottom: var(--vehizo-space-4);
    border: 1px solid transparent;
}

.vehizo-alert-success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.vehizo-alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

@media (max-width: 960px) {
	.vehizo-vehicle-info-grid {
		grid-template-columns: 1fr;
		gap: var(--vehizo-space-4);
	}

	.vehizo-vehicle-info-sidebar {
		border-left: none;
		border-top: 1px solid var(--vehizo-gray-200);
	}
	
	.vehizo-specs-table {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.vehizo-container {
		padding: 0 var(--vehizo-space-3);
		margin: var(--vehizo-space-6) auto;
	}

	.vehizo-single__header {
		grid-template-columns: 1fr;
		gap: var(--vehizo-space-4);
	}

	.vehizo-single__info {
		padding: var(--vehizo-space-6);
	}

	.vehizo-single__content {
		padding: var(--vehizo-space-6);
	}
	
	.vehizo-single__title {
		font-size: var(--vehizo-font-size-2xl);
	}
	
	.vehizo-single__price {
		font-size: var(--vehizo-font-size-3xl);
	}
	
	.vehizo-single__tabs {
		flex-direction: column;
		gap: var(--vehizo-space-1);
	}
	
	.vehizo-single__tab {
		text-align: center;
	}
	
	.vehizo-specs-table {
		grid-template-columns: 1fr;
	}
	
	.vehizo-modal {
		width: 95%;
		margin: var(--vehizo-space-4);
	}
}

@media (max-width: 480px) {
	.vehizo-single__info {
		padding: var(--vehizo-space-4);
	}
	
	.vehizo-single__content {
		padding: var(--vehizo-space-4);
	}
	
	.vehizo-single__quick-specs {
		gap: var(--vehizo-space-2);
	}
	
	.vehizo-single__spec-item {
		padding: var(--vehizo-space-2);
	}
}

/* ============================
   WISHLIST MODAL STYLES
   ============================ */

.vehizo-wishlist-modal {
	max-width: 800px;
	max-height: 90vh;
	overflow: hidden;
}

.vehizo-wishlist-modal .vehizo-popup-body {
	max-height: calc(90vh - 80px);
	overflow-y: auto;
	padding: 0;
}

.vehizo-wishlist-content {
	padding: var(--vehizo-space-6);
}

.vehizo-wishlist-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--vehizo-space-12);
	gap: var(--vehizo-space-4);
}

.vehizo-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--vehizo-gray-200);
	border-top: 3px solid var(--vehizo-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.vehizo-wishlist-empty {
	text-align: center;
	padding: var(--vehizo-space-12);
}

.vehizo-wishlist-empty-icon {
	font-size: 4rem;
	margin-bottom: var(--vehizo-space-4);
	opacity: 0.5;
}

.vehizo-wishlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--vehizo-space-6);
	padding: var(--vehizo-space-6);
}

.vehizo-wishlist-item {
	background: var(--vehizo-white);
	border: 1px solid var(--vehizo-gray-200);
	border-radius: var(--vehizo-border-radius-lg);
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vehizo-wishlist-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vehizo-wishlist-item-image {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.vehizo-wishlist-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.vehizo-wishlist-item:hover .vehizo-wishlist-item-image img {
	transform: scale(1.05);
}

.vehizo-wishlist-item-content {
	padding: var(--vehizo-space-4);
}

.vehizo-wishlist-item-title {
	font-size: var(--vehizo-font-size-lg);
	font-weight: 600;
	margin: 0 0 var(--vehizo-space-2) 0;
	color: var(--vehizo-gray-900);
}

.vehizo-wishlist-item-subtitle {
	font-size: var(--vehizo-font-size-sm);
	color: var(--vehizo-secondary);
	margin: 0 0 var(--vehizo-space-3) 0;
}

.vehizo-wishlist-item-price {
	font-size: var(--vehizo-font-size-xl);
	font-weight: 700;
	color: var(--vehizo-primary);
	margin: 0 0 var(--vehizo-space-4) 0;
}

.vehizo-wishlist-item-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--vehizo-space-2);
	margin-bottom: var(--vehizo-space-4);
	font-size: var(--vehizo-font-size-sm);
	color: var(--vehizo-secondary);
}

.vehizo-wishlist-item-actions {
	display: flex;
	gap: var(--vehizo-space-2);
}

.vehizo-wishlist-item-actions .vehizo-button {
	flex: 1;
	font-size: var(--vehizo-font-size-sm);
	padding: var(--vehizo-space-2) var(--vehizo-space-3);
}

.btn-remove-from-wishlist {
	background: var(--vehizo-error);
	border-color: var(--vehizo-error);
	color: white;
}

.btn-remove-from-wishlist:hover {
	background: #b91c1c;
	border-color: #b91c1c;
}

.btn-view-details {
	background: var(--vehizo-primary);
	border-color: var(--vehizo-primary);
	color: white;
}

.btn-view-details:hover {
	background: var(--vehizo-primary-dark);
	border-color: var(--vehizo-primary-dark);
}

/* Responsive adjustments for wishlist modal */
@media (max-width: 768px) {
	.vehizo-wishlist-modal {
		max-width: 95vw;
		margin: var(--vehizo-space-2);
	}

	.vehizo-wishlist-grid {
		grid-template-columns: 1fr;
		gap: var(--vehizo-space-4);
		padding: var(--vehizo-space-4);
	}

	.vehizo-wishlist-item-specs {
		grid-template-columns: 1fr;
	}

	.vehizo-wishlist-item-actions {
		flex-direction: column;
	}
}

.vehizo-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.vehizo-status-reserved {
    background-color: #fef3c7;
    color: #92400e;
}

.vehizo-status-sold {
    background-color: #fee2e2;
    color: #991b1b;
}
