:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-dark: #020617;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: rgba(245, 158, 11, 0.12);
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-hover: #f1f5f9;
  --bg-feature: #f0f9ff;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: 60px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-alt { background: var(--bg-alt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-gold { color: var(--accent); }
.section-label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.section-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}
.section-head {
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .section-head { display: flex; align-items: flex-end; justify-content: space-between; }
}

.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  flex-shrink: 0;
  vertical-align: -0.16em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  text-decoration: none;
  transition: all var(--transition);
  justify-content: center;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(31, 41, 55, 0.12); }
.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
}
.btn-primary:hover { background: var(--primary-light); color: #ffffff !important; box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24); }
.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-hover); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary) !important; background: rgba(15, 23, 42, 0.04); }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; min-height: 54px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; color: var(--text-secondary); }
.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
  min-height: 44px;
  transition: border-color var(--transition);
  font-family: var(--font);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-select { appearance: auto; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 540px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-bar span, .top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-bar a { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.top-bar a:hover { color: #ffffff; }
.top-bar i, .top-bar .lucide { font-size: 0.65rem; opacity: 0.6; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  min-height: 64px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 30px rgba(31, 41, 55, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.logo-text small { display: block; font-size: 0.62rem; color: var(--text-muted); }
.logo img { max-height: 40px; border-radius: 0; }

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}
.nav a:hover, .nav a.active {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--primary-dark);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--bg-hover); }
@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #ffffff; border-bottom: 1px solid var(--border); padding: 8px; gap: 2px; box-shadow: 0 20px 30px rgba(31, 41, 55, 0.12); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #161b24 !important;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 36px;
  transition: opacity var(--transition);
}
.header-cta:hover { opacity: 0.9; color: #161b24 !important; }
@media (max-width: 640px) { .header-cta span { display: none; } }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: var(--primary-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; position: relative; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 14, 27, 0.9) 0%, rgba(8, 14, 27, 0.68) 46%, rgba(8, 14, 27, 0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 104px 0 126px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  max-width: 580px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent);
}
.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 16px;
}
.hero-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  color: #0d1526;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
}
.hero-arrow:hover { background: var(--accent); color: #161b24; }

.search-bar {
  margin-top: -2px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px 0;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
}
.search-bar .filter-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  align-items: end;
}
.search-bar .form-group { margin-bottom: 0; }
.search-bar .form-control, .search-bar .form-select { min-height: 40px; font-size: 0.82rem; padding: 6px 12px; }
.search-bar .btn { min-height: 40px; padding: 6px 20px; }
.filter-panel {
  margin-top: 0;
  border-top: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  padding: 16px;
}
.filter-panel .filter-grid {
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(120px, 1fr)) auto auto;
}
.result-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
@media (max-width: 980px) {
  .search-bar form,
  .search-bar .filter-grid,
  .filter-panel .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .search-bar form,
  .search-bar .filter-grid,
  .filter-panel .filter-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
}
.card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e2e8f0;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-image img { transform: scale(1.08); }
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.94);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-badge.available, .card-badge.featured { background: rgba(16, 185, 129, 0.12); color: #059669; }
.card-badge.sold { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.card-badge.pending { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.card-badge.coming-soon { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.card-featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--accent);
  color: #161b24;
  display: flex;
  align-items: center;
  gap: 3px;
}
.card-image-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(0,0,0,0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 0.92rem; font-weight: 700; line-height: 1.25; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-subtitle { color: var(--text-muted); font-size: 0.7rem; }
.card-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.card-price s { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; margin-left: 6px; }
.card-payment {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}
.card-payment small { display: block; font-weight: 400; font-size: 0.65rem; opacity: 0.7; margin-top: 2px; }
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-hover);
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.card-specs span .lucide { color: var(--primary); }
.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.card-features span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  color: var(--text-secondary);
}
.card-features span .lucide { color: #059669; }
.card-actions {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.card-actions .btn { flex: 1; min-height: 34px; padding: 6px 10px; font-size: 0.78rem; }

.vehicle-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .vehicle-grid { grid-template-columns: repeat(3, 1fr); } }

.icon-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
}
.icon-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.icon-card .lucide {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.08);
  color: var(--primary);
  border-radius: 12px;
  margin: 0 auto 12px;
}
.icon-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.icon-card p { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; }

.cta-section {
  text-align: center;
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 8px; color: #ffffff; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 0.9rem; max-width: 500px; margin: 0 auto 24px; }

.page-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  line-height: 1.8;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
}
.page-content h2 { font-size: 1.3rem; font-weight: 700; margin: 24px 0 12px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 10px; }
.page-content p { color: var(--text-secondary); margin-bottom: 12px; }
.page-content ul, .page-content ol { padding-left: 20px; margin-bottom: 12px; }
.page-content li { color: var(--text-secondary); margin-bottom: 4px; }

.contact-columns { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-columns { grid-template-columns: 1fr 1fr; } }
.contact-info {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-info-item .lucide {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.08);
  color: var(--primary);
  border-radius: 8px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.contact-info-item strong { display: block; font-size: 0.85rem; font-weight: 700; }
.contact-info-item span, .contact-info-item a { color: var(--text-secondary); font-size: 0.82rem; }
.map-container {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
}
.map-container iframe { width: 100%; height: 250px; border: none; }

.footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  color: rgba(255,255,255,0.75);
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
}
.footer-col p, .footer-col li { color: rgba(255,255,255,0.65); font-size: 0.8rem; margin-bottom: 6px; line-height: 1.6; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.footer-col a:hover { color: #ffffff; }
.footer-col ul li { margin-bottom: 6px; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #161b24; border-color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.alert-success { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-error { background: rgba(239, 68, 68, 0.12); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-info { background: rgba(245, 158, 11, 0.12); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .lucide {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.4;
  margin: 0 auto 12px;
  display: block;
}
.empty-state h3 { color: var(--text-secondary); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; }

.page-content ul, .page-content ol { list-style: revert; padding-left: 1.5em; margin-bottom: 1em; }
.page-content li { margin-bottom: 0.25em; }
.footer-col ul { list-style: none; padding-left: 0; }

@media (max-width: 400px) {
  .card-actions { flex-direction: column; }
  .card-actions .btn { width: 100%; }
  .vehicle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-content { padding: 78px 0 104px; }
  .hero-arrows { display: none; }
  .top-bar .container { justify-content: flex-start; gap: 10px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.5s ease forwards; }

/* ============================================
   VEHICLE DETAIL — COMPLETE REDESIGN
   ============================================ */

.vd-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.vd-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.vd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,27,0.15) 0%, rgba(8,14,27,0.82) 100%);
}
.vd-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 40px;
}
.vd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.vd-breadcrumb a { color: rgba(255,255,255,0.75); }
.vd-breadcrumb a:hover { color: #ffffff; }
.vd-breadcrumb .lucide { width: 0.7rem; height: 0.7rem; opacity: 0.5; }
.vd-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.vd-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.vd-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vd-badge-available, .vd-badge-featured { background: rgba(16,185,129,0.85); color: #ffffff; }
.vd-badge-sold { background: rgba(239,68,68,0.85); color: #ffffff; }
.vd-badge-pending { background: rgba(245,158,11,0.85); color: #ffffff; }
.vd-badge-hidden { background: rgba(100,116,139,0.85); color: #ffffff; }
.vd-hero-stock, .vd-hero-vin {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 500;
}
.vd-hero-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.vd-hero-price {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.vd-hero-msrp {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}
.vd-hero-save {
  font-size: 0.85rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16,185,129,0.15);
  padding: 4px 12px;
  border-radius: 999px;
}

/* Gallery thumbs bar */
.vd-gallery-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.vd-gallery-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vd-gallery-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.vd-gallery-thumbs::-webkit-scrollbar { display: none; }
.vd-gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  background: #e2e8f0;
}
.vd-gallery-thumb:hover { border-color: var(--border-hover); }
.vd-gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,23,42,0.1); }
.vd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-gallery-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.vd-gallery-expand:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15,23,42,0.04);
}

/* Main layout */
.vd-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding: 28px 0 60px;
}
@media (min-width: 1024px) {
  .vd-layout { grid-template-columns: 1fr 360px; }
}
.vd-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Cards within vehicle detail */
.vd-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
  transition: box-shadow var(--transition);
}
.vd-card:hover { box-shadow: var(--shadow); }
.vd-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
}
.vd-card-title .lucide { color: var(--primary); }

/* Spec grid */
.vd-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .vd-spec-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.vd-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.vd-spec-item:nth-last-child(-n+2) { border-bottom: none; }
@media (min-width: 640px) {
  .vd-spec-item:nth-last-child(-n+3) { border-bottom: none; }
}
.vd-spec-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.06);
  border-radius: 6px;
  flex-shrink: 0;
}
.vd-spec-icon .lucide {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--primary);
}
.vd-spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 50px;
}
.vd-spec-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-left: auto;
  text-align: right;
}

/* Feature chips */
.vd-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.vd-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(15,23,42,0.04); }
.vd-chip .lucide {
  width: 0.8rem;
  height: 0.8rem;
  color: #059669;
}
.vd-chip-safety .lucide { color: var(--primary); }
.vd-chip-safety:hover { border-color: var(--primary); }

/* Description */
.vd-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9rem;
}

/* History actions */
.vd-history-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Inquire form */
.vd-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .vd-form-row { grid-template-columns: 1fr; }
}
.vd-form-group { margin: 0; }
.vd-form-control {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
  min-height: 44px;
  transition: border-color var(--transition);
  font-family: var(--font);
}
.vd-form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,23,42,0.08);
}
.vd-form-control::placeholder { color: var(--text-muted); }
textarea.vd-form-control { min-height: 80px; resize: vertical; }

.vd-alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}
.vd-alert-success {
  background: rgba(16,185,129,0.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
}

.vd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  text-decoration: none;
  transition: all var(--transition);
  justify-content: center;
  line-height: 1;
  font-family: var(--font);
}
.vd-btn:hover { transform: translateY(-1px); }
.vd-btn-primary {
  background: var(--primary);
  color: #ffffff !important;
}
.vd-btn-primary:hover { background: var(--primary-light); box-shadow: 0 12px 26px rgba(15,23,42,0.24); color: #ffffff !important; }
.vd-btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.vd-btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-hover); }
.vd-btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.vd-btn-outline:hover { border-color: var(--primary); color: var(--primary) !important; background: rgba(15,23,42,0.04); }
.vd-btn-block { width: 100%; justify-content: center; }

.vd-btn-carfax {
  background: linear-gradient(135deg, #1a365d, #2563eb);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: var(--font);
}
.vd-btn-carfax:hover { box-shadow: 0 8px 24px rgba(37,99,235,0.3); transform: translateY(-1px); color: #ffffff !important; }
.vd-btn-carfax .vd-btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  flex-shrink: 0;
}
.vd-btn-carfax .vd-btn-text { flex: 1; }
.vd-btn-carfax .vd-btn-text strong { display: block; font-size: 0.9rem; }
.vd-btn-carfax .vd-btn-text small { display: block; font-size: 0.72rem; opacity: 0.75; font-weight: 400; }
.vd-btn-carfax .vd-btn-arrow { opacity: 0.6; margin-left: auto; }

.vd-btn-history {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  text-decoration: none;
}
.vd-btn-history:hover { border-color: var(--primary); transform: translateY(-1px); color: var(--text) !important; }
.vd-btn-history .vd-btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.06);
  border-radius: 8px;
  flex-shrink: 0;
}
.vd-btn-history .vd-btn-text { flex: 1; }
.vd-btn-history .vd-btn-text strong { display: block; font-size: 0.9rem; }
.vd-btn-history .vd-btn-text small { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.vd-btn-history .vd-btn-arrow { opacity: 0.4; margin-left: auto; }

/* Sidebar */
.vd-sidebar { position: relative; }
.vd-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) {
  .vd-sidebar-inner { position: sticky; top: 92px; }
}
.vd-sidebar-price {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
}
.vd-sidebar-current {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.vd-sidebar-msrp {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.vd-sidebar-msrp s { margin-right: 4px; }
.vd-sidebar-save {
  display: inline-block;
  font-weight: 700;
  color: #059669;
  background: rgba(16,185,129,0.1);
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 6px;
}
.vd-sidebar-payment {
  background: rgba(15,23,42,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vd-sidebar-payment .lucide {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--primary);
}
.vd-sidebar-payment strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
}
.vd-sidebar-payment small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.vd-sidebar-meta {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
}
.vd-sidebar-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.vd-sidebar-meta-label { color: var(--text-muted); }
.vd-sidebar-meta-value { font-weight: 600; color: var(--text); }
.vd-sidebar-meta-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* Similar section */
.vd-similar {
  padding: 0 0 48px;
}
.vd-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
}
.vd-section-title .lucide { color: var(--primary); }

/* Carfax Modal */
.vd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.vd-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.vd-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.vd-modal-overlay.active .vd-modal {
  transform: scale(1) translateY(0);
}
.vd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.vd-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vd-modal-header h3 .lucide { color: var(--primary); }
.vd-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-hover);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 1.1rem;
}
.vd-modal-close:hover { background: rgba(239,68,68,0.1); color: #dc2626; }
.vd-modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vd-modal-iframe {
  width: 100%;
  height: 70vh;
  border: none;
  flex: 1;
}
.vd-modal-gallery {
  max-width: 1000px;
}
.vd-gallery-slides {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  min-height: 400px;
}
.vd-gallery-slides img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}
.vd-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.vd-gallery-nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.vd-gallery-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.vd-gallery-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: center;
}

@media (max-width: 768px) {
  .vd-hero { min-height: 360px; }
  .vd-hero-content { padding: 80px 0 28px; }
  .vd-card { padding: 16px; }
  .vd-spec-grid { grid-template-columns: 1fr 1fr; }
  .vd-spec-item:nth-last-child(-n+2) { border-bottom: none; }
  .vd-modal { max-height: 85vh; border-radius: 12px; margin: 10px; }
  .vd-modal-iframe { height: 55vh; }
  .vd-spec-item { padding: 8px 6px; }
  .vd-spec-icon { width: 28px; height: 28px; }
  .vd-spec-label { min-width: 40px; font-size: 0.65rem; }
  .vd-spec-value { font-size: 0.78rem; }
}
