/* ==========================================================================
   MMD BILER - Modern Automotive Dealership Stylesheet
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-primary: #0a0d14;
  --bg-secondary: #101622;
  --bg-card: #151d2c;
  --bg-card-hover: #1c2638;
  --bg-elevated: #1f2a3f;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(229, 46, 46, 0.4);
  
  --primary: #e52e2e;
  --primary-hover: #c91b1b;
  --primary-light: rgba(229, 46, 46, 0.12);
  --primary-glow: rgba(229, 46, 46, 0.25);
  
  --accent: #2563eb;
  --accent-light: rgba(37, 99, 235, 0.12);
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 30px rgba(229, 46, 46, 0.3);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-elevated: #ffffff;
  
  --border-color: #e2e8f0;
  --border-hover: rgba(229, 46, 46, 0.45);
  
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: rgba(220, 38, 38, 0.08);
  --primary-glow: rgba(220, 38, 38, 0.2);
  
  --accent: #2563eb;
  --accent-light: rgba(37, 99, 235, 0.08);
  --success: #059669;
  --success-light: rgba(5, 150, 105, 0.1);
  --warning: #d97706;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.1);
  --shadow-primary: 0 8px 25px rgba(220, 38, 38, 0.2);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.title-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.title-lg {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.title-md {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.title-sm {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #e52e2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(229, 46, 46, 0.15);
  border: 1px solid rgba(229, 46, 46, 0.3);
  border-radius: var(--radius-full);
  color: #ff6b6b;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 13, 20, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 8px;
}

.nav-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-brand-badge {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  display: inline-block;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-phone svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

.nav-phone:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.mobile-toggle:hover {
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 46, 46, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-bank {
  background: #1e3a8a;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-bank:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) translateZ(0);
  object-fit: cover;
  opacity: 0.65;
  filter: saturate(1.15) contrast(1.08);
  will-change: transform;
  backface-visibility: hidden;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(10, 13, 20, 0.25) 0%, rgba(10, 13, 20, 0.8) 80%),
              linear-gradient(180deg, rgba(10, 13, 20, 0.15) 0%, rgba(16, 22, 34, 0.95) 100%);
  pointer-events: none;
}

.hero-video-toggle {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 13, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-video-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/dealership-side.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

/* Danish Number Plate Official Badge */
.plate-dk-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e52e2e;
  border-radius: 6px;
  padding: 3px 10px 3px 6px;
  color: #111;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  gap: 8px;
}

.plate-dk-eu {
  background: #003399;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 4px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.plate-dk-eu span {
  color: #facc15;
  font-size: 0.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Quick Search Card in Hero */
.hero-search-card {
  background: rgba(21, 29, 44, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 1040px;
  margin: 0 auto;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.search-field label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.search-field select,
.search-field input {
  height: 48px;
  padding: 0 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Trust Bar */
.trust-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(229, 46, 46, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section Common */
.section {
  padding: 90px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-header-center .section-subtitle {
  margin-top: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Car Filters Bar */
.car-filters-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.filter-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
}

.filter-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.filter-select {
  height: 46px;
  padding: 0 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  min-width: 140px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.chip-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover,
.chip-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Car Cards Grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.car-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.car-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: var(--bg-secondary);
  overflow: hidden;
  cursor: pointer;
}

.car-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.car-card:hover .car-thumb {
  transform: scale(1.05);
}

.car-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-flag {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.badge-nysynet {
  background: #10b981;
  color: #fff;
}

.badge-hot {
  background: var(--primary);
  color: #fff;
}

.badge-sold {
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.car-card.is-sold {
  border-color: rgba(220, 38, 38, 0.25);
}

.car-card.is-sold .car-thumb {
  filter: grayscale(20%) contrast(95%);
}

.sold-tag-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  border: 1px solid rgba(220, 38, 38, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="light"] .sold-tag-label {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.sold-modal-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 70px 16px 20px;
  margin: 16px 16px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

[data-theme="light"] .sold-modal-banner {
  background: #fef2f2;
  border-color: #fecaca;
}

.car-photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  z-index: 2;
}

.car-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-title-row {
  margin-bottom: 10px;
}

.car-make {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}

.car-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.car-variant {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Specs pills */
.car-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  margin: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Pricing in card */
.car-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.car-price {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
}

.car-monthly {
  font-size: 0.82rem;
  color: #60a5fa;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.12);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.car-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

/* Modal Car Detail */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.modal-gallery {
  position: relative;
  background: #000;
}

.modal-main-image-wrap {
  width: 100%;
  height: 440px;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}

.gallery-arrow:hover {
  background: var(--primary);
}

.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

.modal-thumbs-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--bg-secondary);
}

.thumb-mini {
  width: 80px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.thumb-mini.active,
.thumb-mini:hover {
  border-color: var(--primary);
  opacity: 1;
}

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

.modal-details-grid {
  padding: 32px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.modal-price-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 24px;
}

/* Financing Box & Calculator */
.finance-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(16, 22, 34, 0.95) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
}

.calc-value-display {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #60a5fa;
  font-size: 1.15rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-primary);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.calc-result-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.calc-result-monthly {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin: 12px 0 6px;
}

.calc-result-monthly span {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Number Plate Service Banner */
.plate-banner {
  background: linear-gradient(135deg, rgba(229, 46, 46, 0.15) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(229, 46, 46, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.plate-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

/* Reviews Carousel / Cards */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  display: flex;
  gap: 4px;
  color: #10b981;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Forms */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: #06090e;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Toast notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .plate-banner {
    grid-template-columns: 1fr;
  }
  .modal-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1240px) {
  .nav-wrap {
    gap: 14px;
  }
  .nav-menu {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.86rem;
  }
  .nav-phone {
    padding: 8px 12px;
    font-size: 0.82rem;
    gap: 6px;
  }
}

@media (max-width: 1080px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-phone {
    display: none;
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Mobile drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 2500;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-nav-links a.active,
.mobile-nav-links a:hover {
  color: #fff;
}

/* ==========================================================================
   Theme Switcher & Light Mode Styles
   ========================================================================== */

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.theme-toggle-btn .theme-label {
  display: none;
}

.mobile-nav-drawer .theme-toggle-btn {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-md);
  padding: 0 16px;
  gap: 10px;
}

.mobile-nav-drawer .theme-toggle-btn .theme-label {
  display: inline;
  font-size: 0.95rem;
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

/* Icons visibility by theme */
.icon-theme-sun {
  color: #f59e0b;
  display: inline-flex;
}

.icon-theme-moon {
  color: #60a5fa;
  display: none;
}

[data-theme="light"] .icon-theme-sun {
  display: none;
}

[data-theme="light"] .icon-theme-moon {
  display: inline-flex;
}

/* Light Theme Adaptations */
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0f172a;
}

[data-theme="light"] .nav-phone {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .nav-phone:hover {
  background: #e2e8f0;
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="light"] .mobile-toggle {
  color: #0f172a;
}

[data-theme="light"] .hero-video-overlay {
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.72) 80%),
              linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(248, 250, 252, 0.98) 100%);
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

[data-theme="light"] .hero-subtitle {
  color: #334155;
}

[data-theme="light"] .hero-search-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .search-field select,
[data-theme="light"] .search-field input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .trust-bar {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .trust-title {
  color: #0f172a;
}

[data-theme="light"] .trust-desc {
  color: #64748b;
}

[data-theme="light"] .car-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .car-card:hover {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .car-price {
  color: #0f172a;
}

[data-theme="light"] .car-monthly {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

[data-theme="light"] .btn-outline {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-outline:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

[data-theme="light"] .car-filters-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .filter-input-wrap input,
[data-theme="light"] .filter-select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .chip-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .chip-btn:hover,
[data-theme="light"] .chip-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

[data-theme="light"] .finance-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .finance-card h2,
[data-theme="light"] .finance-card h3,
[data-theme="light"] .finance-card strong {
  color: #1e3a8a;
}

[data-theme="light"] .calc-result-box {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .calc-result-monthly {
  color: #1e3a8a;
}

[data-theme="light"] .plate-banner {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid #fecaca;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.06);
}

[data-theme="light"] .review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .review-text {
  color: #334155;
}

[data-theme="light"] .modal-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .modal-price-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .form-control {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--primary);
}

[data-theme="light"] .mobile-nav-drawer {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .mobile-drawer-close {
  color: #0f172a !important;
}

[data-theme="light"] .mobile-nav-links a {
  color: #475569;
}

[data-theme="light"] .mobile-nav-links a.active,
[data-theme="light"] .mobile-nav-links a:hover {
  color: #0f172a;
}

[data-theme="light"] .title-xl,
[data-theme="light"] .title-lg,
[data-theme="light"] .title-md,
[data-theme="light"] .title-sm,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5 {
  color: #0f172a !important;
}

[data-theme="light"] strong:not(.btn *):not(.badge-tag *):not(.plate-dk-eu *) {
  color: #0f172a !important;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-title * {
  color: #0f172a !important;
}

[data-theme="light"] .hero-title .text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, #dc2626 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .hero-subtitle {
  color: #334155 !important;
}

[data-theme="light"] .calc-label-row span,
[data-theme="light"] .calc-label-row strong {
  color: #0f172a !important;
}

[data-theme="light"] .calc-value-display {
  color: #1d4ed8 !important;
}

[data-theme="light"] .finance-card [style*="background: var(--bg-primary)"] {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .section-header-center .title-lg {
  color: #0f172a !important;
}

[data-theme="light"] p {
  color: #334155;
}

[data-theme="light"] p[style*="color: #cbd5e1"],
[data-theme="light"] div[style*="color: #cbd5e1"],
[data-theme="light"] span[style*="color: #cbd5e1"] {
  color: #334155 !important;
}

[data-theme="light"] .text-muted,
[data-theme="light"] [style*="color: var(--text-muted)"] {
  color: #475569 !important;
}

[data-theme="light"] .text-dim,
[data-theme="light"] [style*="color: var(--text-dim)"] {
  color: #64748b !important;
}

[data-theme="light"] .site-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
}

[data-theme="light"] .site-footer .footer-col-title {
  color: #ffffff !important;
}

[data-theme="light"] .site-footer .footer-links a {
  color: #94a3b8;
}

[data-theme="light"] .site-footer .footer-links a:hover {
  color: #ef4444;
}

[data-theme="light"] .site-footer .footer-contact-item {
  color: #94a3b8;
}

[data-theme="light"] .site-footer .footer-bottom {
  color: #64748b;
  border-top-color: #1e293b;
}

