:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-bg-dark: #0b0d10;
  --color-bg-darker: #07080a;
  --color-surface: #ffffff;
  --color-text: #14171c;
  --color-muted: #6b7280;
  --color-light: #e5e7eb;
  --color-border: #ececec;
  --color-accent: #c9a96e;
  --color-accent-hover: #b8955b;
  --color-accent-soft: rgba(201, 169, 110, 0.12);
  --color-danger: #dc2626;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-info: #2563eb;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow: 0 6px 20px rgba(14, 17, 22, 0.06), 0 2px 6px rgba(14, 17, 22, .04);
  --shadow-lg: 0 20px 50px rgba(14, 17, 22, 0.10), 0 4px 12px rgba(14, 17, 22, .06);
  --shadow-hover: 0 28px 60px rgba(14, 17, 22, 0.15), 0 8px 24px rgba(14, 17, 22, .08);
  --transition: 0.28s cubic-bezier(.2,.7,.2,1);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5 { font-family: var(--font-display); letter-spacing: -0.01em; font-weight: 700; color: var(--color-bg-dark); }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.accent { color: var(--color-accent); }
.text-accent { color: var(--color-accent) !important; }

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--color-bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-alt { background: var(--color-bg-alt); }

.btn {
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.btn-primary {
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-color: #0b0d10;
  --bs-btn-hover-bg: var(--color-accent-hover);
  --bs-btn-hover-border-color: var(--color-accent-hover);
  --bs-btn-hover-color: #0b0d10;
  --bs-btn-active-bg: #a68847;
  --bs-btn-active-border-color: #a68847;
}
.btn-premium {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e4c98f 100%);
  color: #0b0d10;
  border: none;
  box-shadow: 0 10px 24px rgba(201, 169, 110, .35);
}
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 169, 110, .45); }
.btn-outline-dark {
  --bs-btn-color: #0b0d10;
  --bs-btn-border-color: #0b0d10;
  --bs-btn-hover-bg: #0b0d10;
  --bs-btn-hover-border-color: #0b0d10;
}
.btn-lg { --bs-btn-padding-x: 2rem; --bs-btn-padding-y: 1rem; font-size: 1rem; }
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #0b0d10; border: 1px solid var(--color-border);
}
.btn-phone { color: var(--color-accent); border-color: var(--color-accent-soft); }

.topbar {
  background: var(--color-bg-dark);
  color: #cbd3dc;
  padding: 8px 0;
  font-size: .85rem;
}
.topbar a { color: #cbd3dc; text-decoration: none; transition: color var(--transition); }
.topbar a:hover { color: var(--color-accent); }
.topbar-links i { font-size: .8rem; }

.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  z-index: 1030;
}
.site-header.scrolled {
  border-color: var(--color-border);
  box-shadow: 0 4px 22px rgba(0,0,0,.05);
}
#mainNav { padding: 14px 0; }
.navbar-brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.35rem; color: var(--color-bg-dark); text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #0b0d10 0%, #2a2f37 100%);
  color: var(--color-accent); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(11,13,16,.2);
}
.brand-text { font-family: var(--font-display); letter-spacing: -0.01em; }

.navbar-nav { gap: 6px; }
.nav-link {
  font-weight: 500; color: #2c323b !important; padding: 10px 16px !important;
  border-radius: 999px; position: relative; transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--color-accent) !important; background: var(--color-accent-soft); }
.nav-link.active { color: var(--color-bg-dark) !important; background: var(--color-bg-alt); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 18px; right: 18px; height: 2px;
  background: var(--color-accent); border-radius: 2px;
}
.nav-phone { font-weight: 600; color: #14171c; text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--color-accent); }

.navbar-toggler { border: none !important; box-shadow: none !important; padding: 0; width: 44px; height: 44px; border-radius: 10px; background: #fff; border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; }
.toggler-lines { display: inline-flex; flex-direction: column; gap: 5px; }
.toggler-lines span { width: 22px; height: 2px; background: #0b0d10; border-radius: 2px; transition: all var(--transition); }

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 180px;
  background: #0b0d10;
  overflow: hidden;
  color: #fff;
}

/* 👇 IMAGE LAYER (always renders first — visible by itself) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('../images/hero-werkstatt-walsrode.webp'),
    url('../images/hero-werkstatt-walsrode.jpg'),
    url('https://images.unsplash.com/photo-1555215695-3004980ad54e?auto=format&fit=crop&w=1920&q=70');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* 👇 OVERLAY LAYER (dark gradient + gold radial glow — keeps text readable) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(201,169,110,.24) 0%, transparent 48%),
    radial-gradient(circle at 85% 75%, rgba(201,169,110,.18) 0%, transparent 52%),
    linear-gradient(135deg, rgba(11,13,16,.20) 0%, rgba(11,13,16,.48) 50%, rgba(11,13,16,.88) 100%);
  z-index: 1;
}

/* ============== PAGE-THEMED HERO BACKGROUNDS ============== */
/* All page heroes follow: local file first, Unsplash fallback second */

/* Financing & Leasing — "dealership keys on contract" theme */
.hero-finanzierung::before {
  background-image:
    url('../images/hero-finanzierung.webp'),
    url('../images/hero-finanzierung.jpg'),
    url('../images/hero-finanzierung.jpeg'),
    url('https://images.unsplash.com/photo-1560958089-b8a1929cea89?auto=format&fit=crop&w=1920&q=70');
  opacity: .50;
  mix-blend-mode: overlay;
  filter: saturate(1.05) contrast(1.02) brightness(1.02);
}
.hero-finanzierung::after {
  background:
    radial-gradient(circle at 20% 25%, rgba(201,169,110,.22) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(201,169,110,.16) 0%, transparent 50%),
    linear-gradient(135deg, rgba(11,13,16,.20) 0%, rgba(11,13,16,.48) 50%, rgba(11,13,16,.90) 100%);
}

/* About Us — "mechanics team in modern workshop" theme */
.hero-ueber-uns::before {
  background-image:
    url('../images/hero-ueber-uns.webp'),
    url('../images/hero-ueber-uns.jpg'),
    url('../images/hero-ueber-uns.jpeg'),
    url('https://images.unsplash.com/photo-1625047509248-ec889cbff16f?auto=format&fit=crop&w=1920&q=70');
  opacity: .52;
  mix-blend-mode: overlay;
  filter: saturate(1.08) contrast(1.04);
}
.hero-ueber-uns::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(201,169,110,.24) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(201,169,110,.16) 0%, transparent 52%),
    linear-gradient(135deg, rgba(11,13,16,.22) 0%, rgba(11,13,16,.50) 50%, rgba(11,13,16,.90) 100%);
}

/* Service & Workshop — "tool wall / open engine bay" theme */
.hero-service::before {
  background-image:
    url('../images/hero-service-werkstatt.webp'),
    url('../images/hero-service-werkstatt.jpg'),
    url('../images/hero-service-werkstatt.jpeg'),
    url('https://images.unsplash.com/photo-1619767886558-efdc259cde1a?auto=format&fit=crop&w=1920&q=70');
  opacity: .46;
  mix-blend-mode: overlay;
  filter: saturate(1.1) contrast(1.08);
}
.hero-service::after {
  background:
    radial-gradient(circle at 15% 25%, rgba(201,169,110,.24) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(201,169,110,.14) 0%, transparent 52%),
    linear-gradient(135deg, rgba(11,13,16,.22) 0%, rgba(11,13,16,.50) 50%, rgba(11,13,16,.92) 100%);
}

/* ============== TEAM PROFILE PORTRAITS (Über Uns page) ============== */
.team-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#e5e7eb 0%,#cfd4db 100%);
  border: 3px solid transparent;
  box-shadow: 0 10px 24px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}
.usp-card:hover .team-avatar {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201,169,110,.20), 0 4px 10px rgba(16,24,40,.08);
}
.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-avatar-monogram {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: .02em;
}

/* Service "Why us?" dark banner backdrop */
.service-values { position: relative; overflow: hidden; }
.service-values::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('../images/section-service-values.webp'),
    url('../images/section-service-values.jpg'),
    url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1920&q=70');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: .18;
  mix-blend-mode: overlay;
  filter: saturate(1.1) contrast(1.1);
  pointer-events: none;
}
.service-values > .container { position: relative; z-index: 2; }

.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 900px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--color-accent); display: inline; }
.hero-subtitle { font-size: clamp(1rem, 1.4vw, 1.25rem); color: #c6cccf; max-width: 720px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-outline-light { --bs-btn-border-color: rgba(255,255,255,.35); --bs-btn-color: #fff; color: #fff !important; }
.hero-actions .btn-outline-light:hover { --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #0b0d10; }
.hero-stats { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; max-width: 720px; }
.hero-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 18px 22px; border-radius: var(--radius); backdrop-filter: blur(6px); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--color-accent); line-height: 1; margin-bottom: 4px; }
.hero-stat span { color: #bcc2c8; font-size: .88rem; }

.search-wrap {
  margin-top: -90px;
  position: relative;
  z-index: 5;
}
.search-box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  border: 1px solid var(--color-border);
}
.search-box h3 { margin-bottom: 6px; }
.search-box .sub { color: var(--color-muted); margin-bottom: 22px; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; }
.search-grid .col-span-2 { grid-column: span 2; }
.form-label { font-weight: 500; font-size: .85rem; color: #363b43; margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: var(--radius-sm); border-color: var(--color-border); padding: .7rem .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(201,169,110,.18);
}

/* Section Titles */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block; font-weight: 600; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-accent); background: var(--color-accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* Vehicle Card */
.vehicle-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.vehicle-card {
  grid-column: span 12;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
@media (min-width: 576px) { .vehicle-card { grid-column: span 6; } }
@media (min-width: 992px) { .vehicle-card.grid-3 { grid-column: span 4; } }
@media (min-width: 1200px) { .vehicle-card.grid-4 { grid-column: span 3; } }
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #ddd; }
.vehicle-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eaeaea 0%, #c6c9cd 100%);
  position: relative;
  overflow: hidden;
}
.vehicle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.vehicle-card:hover .vehicle-img img { transform: scale(1.06); }
.vehicle-badges {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
}
.vehicle-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: .75rem; letter-spacing: .02em;
}
.badge-featured { background: linear-gradient(135deg, var(--color-accent), #e6cd91); color: #0b0d10; }
.badge-sold { background: var(--color-danger); color: #fff; }
.badge-new { background: var(--color-info); color: #fff; }
.price-tag {
  background: rgba(11,13,16,.88); color: #fff; backdrop-filter: blur(6px);
  padding: 6px 14px; border-radius: 999px; font-weight: 700;
}
.vehicle-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.vehicle-title { font-size: 1.22rem; font-weight: 700; margin-bottom: 4px; font-family: var(--font-display); }
.vehicle-variant { color: var(--color-muted); font-size: .92rem; margin-bottom: 14px; }
.vehicle-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.vehicle-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--color-bg-dark); }
.vehicle-monthly { font-size: .88rem; color: var(--color-accent); font-weight: 600; background: var(--color-accent-soft); padding: 3px 10px; border-radius: 999px; }
.vehicle-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; padding: 18px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin-bottom: 20px; }
.vehicle-spec { font-size: .86rem; color: #3a3f47; display: flex; align-items: center; gap: 8px; }
.vehicle-spec i { color: var(--color-accent); width: 16px; text-align: center; font-size: .85rem; }
.vehicle-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vehicle-footer .power { font-weight: 600; font-size: .9rem; color: #3a3f47; }

/* USP */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.usp-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.usp-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
  font-size: 1.6rem; margin-bottom: 20px;
}
.usp-card h4 { margin-bottom: 10px; font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; }
.usp-card p { color: var(--color-muted); font-size: .94rem; margin: 0; }

/* Service page: fixed 2 rows × 3 cols = 6 cards, all equal height */
.service-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; align-items: stretch; }
.service-grid .usp-card { min-height: 290px; }
@media (max-width: 991.98px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
  .service-grid .usp-card { min-height: 310px; }
}
@media (max-width: 575.98px) {
  .service-grid { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
  .service-grid .usp-card { min-height: 240px; }
}

/* Teaser Cards */
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.teaser-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow);
  display: flex; align-items: flex-end;
  isolation: isolate;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.teaser-card::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -2;
}
.teaser-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0) 40%, rgba(11,13,16,.88) 100%);
  z-index: -1;
}
.teaser-card.t-service::before {
  background-image:
    url('../images/teaser-service-workshop.webp'),
    url('../images/teaser-service-workshop.jpg'),
    url('../images/teaser-service-workshop.jpeg'),
    linear-gradient(135deg, #1a365d 0%, #2c5282 60%, #3182ce 100%);
  opacity: .95;
  mix-blend-mode: normal;
  filter: saturate(1.08) contrast(1.02);
}
.teaser-card.t-finance::before {
  background-image:
    url('../images/teaser-finanzierung-leasing.webp'),
    url('../images/teaser-finanzierung-leasing.jpg'),
    url('../images/teaser-finanzierung-leasing.jpeg'),
    linear-gradient(135deg, #5a3310 0%, #8b5a2b 60%, #c9a96e 100%);
  opacity: .95;
  mix-blend-mode: normal;
  filter: saturate(1.08) contrast(1.02);
}
.teaser-body { padding: 32px; color: #fff; width: 100%; }
.teaser-body h3 { color: #fff; margin-bottom: 8px; }
.teaser-body p { color: rgba(255,255,255,.85); margin-bottom: 18px; }

/* Filters Bar */
.filters-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 18px; }
.filters-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; gap: 14px; }
.results-count { font-weight: 500; color: #373c44; }
.results-count strong { color: var(--color-accent); font-family: var(--font-display); font-size: 1.3rem; margin: 0 4px; }

.vehicle-detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ===== VDS = Vehicle Detail Slider ===== */
.vds-stage {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
}
.vds-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
  background: #0b0d10;
}
.vds-slide.active { opacity: 1; z-index: 2; }
.vds-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vds-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(11,13,16,.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
  opacity: .9;
  backdrop-filter: blur(4px);
  font-size: 1rem;
}
.vds-arrow:hover { background: var(--color-accent); color: #0b0d10; transform: translateY(-50%) scale(1.08); opacity: 1; }
.vds-arrow:active { transform: translateY(-50%) scale(.96); }
.vds-prev { left: 14px; }
.vds-next { right: 14px; }

.vds-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(11,13,16,.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
  font-size: .95rem;
}
.vds-zoom:hover { background: var(--color-accent); color: #0b0d10; transform: scale(1.06); }

.vds-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11,13,16,.72);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  z-index: 4;
  backdrop-filter: blur(4px);
  letter-spacing: .02em;
}
.vds-counter .cur { color: var(--color-accent); }

.vds-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.vds-thumbs::-webkit-scrollbar { height: 8px; }
.vds-thumbs::-webkit-scrollbar-track { background: transparent; }
.vds-thumbs::-webkit-scrollbar-thumb { background: rgba(201,169,110,.4); border-radius: 999px; }
.vds-thumb {
  flex: 0 0 auto;
  width: 110px;
  height: 80px;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #e5e7eb;
  padding: 0;
  scroll-snap-align: start;
  transition: border-color .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.vds-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vds-thumb:hover { transform: translateY(-2px); }
.vds-thumb.active { border-color: var(--color-accent); box-shadow: 0 6px 18px rgba(201,169,110,.28); }

/* Lightbox */
.vds-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,7,9,.96);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
}
.vds-lightbox.open { display: flex; }
.vds-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  user-select: none;
  -webkit-user-drag: none;
}
.vds-lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 22px;
}
.vds-lightbox .lb-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 22px;
}
.vds-lightbox .vds-arrow { width: 56px; height: 56px; font-size: 1.15rem; }
.vds-lightbox .vds-counter { bottom: 22px; transform: translateX(-50%); }

.vds-lightbox .lb-close {
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;           /* 👈 TOP-LEFT as user expects */
  right: auto !important;
  transform: none !important;
  width: 52px !important;
  height: 52px !important;
  background: #c9a96e !important; /* GOLD background — unmistakable */
  color: #0b0d10 !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  box-shadow: 0 10px 30px rgba(201,169,110,.35);
}
.vds-lightbox .lb-close:hover {
  transform: scale(1.08) !important;
  background: #e4c98f !important;
  color: #000 !important;
}

@media (max-width: 991.98px) {
  .vds-thumb { width: 92px; height: 68px; }
  .vds-arrow { width: 42px; height: 42px; }
  .vds-lightbox { padding: 24px 10px; }
}

.spec-box {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  padding: 32px;
}
.price-big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--color-bg-dark); line-height: 1; margin-bottom: 8px; }
.monthly-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent-soft); color: #7b6230; padding: 8px 18px; border-radius: 999px; font-weight: 600; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.spec-list > div { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; }
.spec-list > div:nth-child(odd) { background: var(--color-bg-alt); }
.spec-list .k { color: var(--color-muted); font-size: .88rem; }
.spec-list .v { font-weight: 600; font-size: .92rem; text-align: right; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.equipment-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.equipment-tag {
  padding: 7px 14px; background: #fff; border: 1px solid var(--color-border);
  border-radius: 999px; font-size: .84rem; color: #33373e; display: inline-flex; align-items: center; gap: 6px;
}
.equipment-tag i { color: var(--color-success); font-size: .75rem; }

.card { border-radius: var(--radius-lg) !important; border: 1px solid var(--color-border) !important; box-shadow: var(--shadow-sm); }
.card-header { background: transparent !important; border-bottom: 1px solid var(--color-border) !important; padding: 1.5rem; border-top-left-radius: var(--radius-lg) !important; border-top-right-radius: var(--radius-lg) !important; }
.card-body { padding: 1.8rem; }

/* Financing Calculator */
.finance-box {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border); padding: 36px 38px;
}
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--color-accent); height: 28px; }
.finance-result {
  background: linear-gradient(135deg, #0b0d10 0%, #1e2329 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 28px 30px; margin-top: 24px;
}
.finance-result .monthly {
  font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--color-accent); line-height: 1; margin-bottom: 6px;
}
.finance-result .total { color: #cbd3dc; margin-top: 8px; }
.disclaimer {
  background: #fff8e7; color: #7b6230; border-left: 4px solid var(--color-accent);
  padding: 14px 18px; border-radius: 10px; font-size: .88rem; margin-top: 18px;
}

/* Site Footer */
.site-footer { margin-top: 80px; background: var(--color-bg-dark); color: #c8ced6; }
.footer-top { padding: 80px 0 50px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-title { color: #fff; font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: 22px; letter-spacing: .02em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #9aa3ae; text-decoration: none; transition: color var(--transition), padding var(--transition); display: inline-block; font-size: .93rem; }
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list i {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  background: rgba(201,169,110,.12); color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; margin-top: 2px;
}
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--color-accent); }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
  color: #cbd3dc; display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition); text-decoration: none;
}
.social-btn:hover { background: var(--color-accent); color: #0b0d10; border-color: var(--color-accent); transform: translateY(-2px); }
.footer-bottom { padding: 20px 0; background: #07080a; color: #7e8690; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: #98a0ab; text-decoration: none; font-size: .88rem; }
.legal-links a:hover { color: var(--color-accent); }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 1028;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-accent); color: #0b0d10;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition); text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent-hover); transform: translateY(-3px); }

.alert { border-radius: var(--radius-sm) !important; }
.badge { border-radius: 999px !important; padding: 6px 12px; font-weight: 600; }
.badge.bg-success { background: var(--color-success) !important; }
.badge.bg-danger { background: var(--color-danger) !important; }
.badge.bg-warning { background: var(--color-warning) !important; }
.badge.bg-primary { background: var(--color-accent) !important; color: #0b0d10; }
.text-muted { color: var(--color-muted) !important; }

/* Admin */
.admin-wrap { min-height: 100vh; background: #f2f3f6; display: flex; }
.admin-sidebar {
  width: 250px; background: #0b0d10; color: #cbd3dc; padding: 24px 18px;
  position: sticky; top: 0; height: 100vh; flex-shrink: 0;
}
.admin-sidebar .brand { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 32px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a {
  color: #b0b8c2; text-decoration: none; padding: 11px 14px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.admin-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-nav a.active { background: var(--color-accent); color: #0b0d10; }
.admin-main { flex: 1; padding: 28px 36px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.admin-stat {
  background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border); display: flex; align-items: center; gap: 16px;
}
.admin-stat .ic { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.admin-stat.ic-1 .ic { background: rgba(22,163,74,.12); color: var(--color-success); }
.admin-stat.ic-2 .ic { background: var(--color-accent-soft); color: var(--color-accent); }
.admin-stat.ic-3 .ic { background: rgba(220,38,38,.1); color: var(--color-danger); }
.admin-stat.ic-4 .ic { background: rgba(37,99,235,.12); color: var(--color-info); }
.admin-stat .n { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.admin-stat .l { color: var(--color-muted); font-size: .85rem; }
.admin-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); padding: 28px; }
.admin-card h3 { margin-bottom: 18px; font-family: var(--font-sans); font-size: 1.25rem; }
.table thead th { background: var(--color-bg-alt); color: #454a53; font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; border: none; padding: 14px 16px; }
.table tbody td { vertical-align: middle; padding: 16px; }
.table tbody tr { border-bottom: 1px solid var(--color-border); transition: background var(--transition); }
.table tbody tr:hover { background: #fafbfc; }
.thumb-sm { width: 72px; height: 50px; border-radius: 8px; object-fit: cover; background: #eee; border: 1px solid var(--color-border); }
.form-section-title { font-weight: 700; font-size: 1.05rem; margin: 24px 0 12px; color: var(--color-bg-dark); }

@media (max-width: 991.98px) {
  .section { padding: 64px 0; }
  .hero { padding: 90px 0 130px; }
  .search-box { padding: 24px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .col-span-2 { grid-column: span 2; }
  .vehicle-detail-gallery { grid-template-columns: 1fr; }
  .admin-sidebar { width: 72px; }
  .admin-sidebar .brand span, .admin-nav a span.txt { display: none; }
  .admin-main { padding: 20px; }
}
@media (max-width: 575.98px) {
  .search-grid { grid-template-columns: 1fr; }
  .search-grid .col-span-2 { grid-column: span 1; }
  .vehicle-specs { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .price-big { font-size: 2rem; }
  .finance-result .monthly { font-size: 2.2rem; }
}
