/* AutoDex — Main Frontend Stylesheet */

/* ── Micro-interactions & Transitions ───────────────────────── */

/* Page transition */
html { opacity: 0; transition: opacity .28s ease; }
html.page-ready { opacity: 1; }
html.page-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }

/* Top progress bar */
#page-progress-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0; pointer-events: none;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  transition: width .25s ease, opacity .3s ease;
}

/* Scroll reveal */
.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image lazy fade */
.img-fade { opacity: 0; transition: opacity .4s ease; }
.img-fade.img-loaded { opacity: 1; }

/* Button ripple */
.btn-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0);
  animation: ripple-anim .55s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(2.5); opacity: 0; }
}

/* Button press feel */
.btn:active { transform: scale(0.97); transition: transform .1s ease; }
button:active { transform: scale(0.97); transition: transform .1s ease; }

/* Heart pop */
@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(.88); }
  100% { transform: scale(1); }
}
.vc-wish-btn.heart-pop { animation: heart-pop .4s ease; }

/* Navbar shrink on scroll */
.site-navbar { transition: padding .3s ease, box-shadow .3s ease; }
.site-navbar.navbar-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.18); }

/* Input focus glow */
.form-control.input-focused,
.form-select.input-focused {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 224,123,34), .15) !important;
}

/* ─────────────────────────────────────────────────────────── */

/* ── Google Font ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Root Variables ─────────────────────────────────────── */
:root {
  --color-primary:    #d00000;
  --color-secondary:  #1a1e3a;
  --color-accent:     #F5A623;
  --color-bg:         #f5f6f8;
  --color-surface:    #ffffff;
  --color-border:     #e2e5ec;
  --color-text:       #1a1e3a;
  --color-text-muted: #6b7280;
  --color-success:    #16a34a;
  --color-sold:       #dc2626;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
  --shadow-md:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:        0 8px 32px rgba(0,0,0,.14);
  --radius:           10px;
  --radius-lg:        16px;
  --transition:       .18s ease;
  --navbar-h:         72px;
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary); text-decoration: underline; }

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

/* ── Navbar ─────────────────────────────────────────────── */
.site-navbar {
  background: var(--color-secondary);
  height: var(--navbar-h);
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.site-navbar .navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -.5px;
}

.site-navbar .navbar-brand span { color: var(--color-primary); }

.site-logo-img {
  max-height: 34px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.site-navbar .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .4rem .85rem !important;
  border-radius: 6px;
  transition: var(--transition);
  text-decoration: none !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
  text-decoration: none !important;
}

.site-navbar .nav-phone {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 500;
}

.site-navbar .nav-login-link {
  color: rgba(255,255,255,.82);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
}
.site-navbar .nav-login-link:hover { color: #fff; text-decoration: none; }

.site-navbar .btn-nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: .85rem;
  padding: .42rem 1.1rem;
  transition: var(--transition);
}

.site-navbar .btn-nav-cta:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.navbar-toggler {
  border-color: rgba(255,255,255,.3) !important;
  color: rgba(255,255,255,.8) !important;
}

/* ── Mobile nav ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .site-navbar {
    height: auto;
    min-height: var(--navbar-h);
    padding-top: 0;
    padding-bottom: 0;
  }
  .site-navbar .container {
    flex-wrap: wrap;
    align-items: center;
    min-height: var(--navbar-h);
  }
  /* Give the expanded menu a solid background so it never bleeds into the page */
  .site-navbar .navbar-collapse {
    background: var(--color-secondary);
    padding: .5rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5);
    padding-left:  calc(var(--bs-gutter-x, 1.5rem) * .5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
  }
  .site-navbar .navbar-nav {
    gap: 0 !important;
  }
  .site-navbar .nav-link {
    padding: .65rem .5rem !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  /* Action icons row on mobile */
  .site-navbar .navbar-collapse .d-flex {
    padding-top: .75rem;
    gap: .75rem !important;
  }
}

/* ── Hero ────────────────────────────────────────────────── */
.site-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-secondary);
}

.site-hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .22;
}

.site-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(26,30,58,.9) 60%, transparent 100%);
}

.site-hero-content {
  position: relative;
  z-index: 2;
}

.site-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.site-hero h1 span { color: var(--color-primary); }

.site-hero p.lead {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
}

/* Hero Search Box */
.hero-search-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.hero-search-box .form-select,
.hero-search-box .form-control {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  color: #fff;
  font-size: .9rem;
  padding: .65rem 1rem;
}

.hero-search-box .form-select option { background: var(--color-secondary); }
.hero-search-box .form-select::placeholder,
.hero-search-box .form-control::placeholder { color: rgba(255,255,255,.5); }

.hero-search-box .btn-search {
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: .65rem 2rem;
  border-radius: 8px;
  transition: var(--transition);
  width: 100%;
}

.hero-search-box .btn-search:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

/* ── Hero v2 (Boxcars-style) ─────────────────────────────── */
.site-hero-v2 {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-secondary);
}

.hero-bg-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero-bg-slide.active { opacity: 1; }

.hero-overlay-v2 {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,28,.62) 0%, rgba(10,12,28,.55) 60%, rgba(10,12,28,.72) 100%);
  z-index: 1;
}

.site-hero-content-v2 {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1rem 4rem;
  width: 100%;
}

.hero-tag-v2 {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.hero-title-v2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1.6rem;
}

/* Condition tabs */
.hero-condition-tabs {
  display: inline-flex;
  gap: 0;
  margin-bottom: 1.6rem;
}

.hero-ctab {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: .92rem;
  font-weight: 500;
  padding: .35rem 1.1rem .5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}

.hero-ctab.active,
.hero-ctab:hover {
  color: #fff;
  border-bottom-color: var(--color-primary);
}

/* Search bar */
.hero-search-v2 {
  max-width: 780px;
  margin: 0 auto 1.8rem;
}

.hero-search-fields {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}

.hero-field {
  flex: 1;
  min-width: 0;
}

.hero-select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: .88rem;
  color: var(--color-text);
  padding: 1.05rem 1rem 1.05rem 1.3rem;
  appearance: none;
  cursor: pointer;
}

.hero-field-divider {
  width: 1px;
  height: 28px;
  background: #e2e5ec;
  flex-shrink: 0;
}

.hero-search-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 700;
  padding: .95rem 1.8rem;
  margin: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s;
  flex-shrink: 0;
}

.hero-search-btn:hover { background: var(--color-accent); }

/* Body type pills */
.hero-body-types {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.hero-bt-label {
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  margin-right: .25rem;
}

.hero-bt-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 500;
  padding: .38rem .9rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background .18s, color .18s;
}

.hero-bt-pill:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Slideshow dots */
.hero-slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2rem;
}

.hero-sdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s, transform .2s, width .3s;
}

.hero-sdot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .hero-search-fields { flex-direction: column; border-radius: 16px; }
  .hero-field { width: 100%; }
  .hero-field-divider { width: 80%; height: 1px; }
  .hero-search-btn { margin: 5px; border-radius: 10px; width: calc(100% - 10px); }
  .hero-select { padding: .85rem 1rem; }
  .site-hero-v2 { min-height: 100svh; }
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
}

.stat-item {
  text-align: center;
  padding: .5rem 1rem;
}

.stat-item .stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: .78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: .2rem;
}

/* ── Section headers ─────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }

.section-tag {
  display: inline-block;
  background: rgba(224, 123, 34, .1);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .28rem .85rem;
  border-radius: 20px;
  margin-bottom: .65rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: .97rem;
  margin-top: .5rem;
}

/* ── Vehicle Card ────────────────────────────────────────── */
.vehicle-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vehicle-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #e8eaf0;
}

/* carousel wrap fills the whole image area */
.vc-carousel-wrap {
  display: block;
  position: absolute;
  inset: 0;
}

.vc-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}

.vc-slide.active { opacity: 1; }

/* dot indicators */
.vc-dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 4;
  pointer-events: none;
}

.vc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s, transform .2s;
  pointer-events: auto;
  cursor: pointer;
}

.vc-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.vc-brand-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .35rem;
}
.vc-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.vehicle-card-badges {
  position: absolute;
  top: .65rem;
  left: .65rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.vc-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.vc-badge-featured  { background: var(--color-primary); color: #fff; }
.vc-badge-hot       { background: #ef4444; color: #fff; }
.vc-badge-new       { background: #16a34a; color: #fff; }
.vc-badge-popular   { background: #7c3aed; color: #fff; }
.vc-badge-sold      { background: rgba(0,0,0,.6); color: #fff; }
.vc-badge-reserved  { background: #d97706; color: #fff; }

.vehicle-card-body {
  padding: 1.1rem 1.2rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vc-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 .2rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-meta {
  font-size: .78rem;
  color: var(--color-text-muted);
  margin-bottom: .75rem;
}

.vc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .9rem;
}

.vc-spec {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .74rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: .22rem .6rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

.vc-spec i { font-size: .8rem; color: var(--color-primary); }

.vc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--color-border);
}

.vc-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-primary);
  white-space: nowrap;
  letter-spacing: -.3px;
}

.vc-price-sub {
  font-size: .72rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.vc-price-ask {
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.btn-view {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-view:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ── Inventory Page ──────────────────────────────────────── */
.inventory-sidebar {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: sticky;
  top: calc(var(--navbar-h) + 1rem);
}

.filter-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--color-text-muted);
  margin-bottom: .75rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--color-border);
}

.filter-check .form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.filter-check .form-check-label { font-size: .88rem; cursor: pointer; }

.inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: .5rem;
}

.inv-count {
  font-size: .88rem;
  color: var(--color-text-muted);
}

.inv-count strong { color: var(--color-text); }

/* ── Vehicle Detail v2 ───────────────────────────────────── */

/* Gallery type tabs */
.vd-gallery-tabs { display: flex; gap: .4rem; }
.vd-gtab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem 1.1rem;
  border: none;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-secondary);
  color: rgba(255,255,255,.6);
}
.vd-gtab.active { background: var(--color-primary); color: #fff; }
.vd-gtab:hover:not(.active) { color: #fff; opacity: .85; }
.gtab-count {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  padding: .05rem .42rem;
  line-height: 1.4;
}
.vd-gtab.active .gtab-count { background: rgba(255,255,255,.28); }

.gallery-main {
  aspect-ratio: 16/10;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}

/* Overlaid prev/next arrows on main gallery image */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.88);
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  color: #1a1e3a;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  transition: background .15s, transform .15s;
}
.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }
.gallery-nav-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

/* Thumb strip layout */
.vd-thumb-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.vd-thumb-count {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.vd-thumb-nav {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .8rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}
.vd-thumb-nav:hover { border-color: var(--color-primary); color: var(--color-primary); }

.gallery-thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding-bottom: .2rem;
  scroll-snap-type: x mandatory;
}

.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.gallery-thumb {
  flex: 0 0 76px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  opacity: .7;
  scroll-snap-align: start;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--color-primary); opacity: 1; }

/* Sidebar card — sticky throughout entire page */
.vd-sidebar-card {
  position: sticky;
  top: calc(var(--navbar-h, 72px) + 1rem);
  max-height: calc(100vh - var(--navbar-h, 72px) - 2rem);
  overflow-y: auto;
  scrollbar-width: thin;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-md);
}

.vd-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--color-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .7rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.vd-sidebar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 .25rem;
}

.vd-sidebar-subtitle {
  font-size: .78rem;
  color: var(--color-primary);
  font-weight: 500;
  margin: 0 0 .9rem;
  line-height: 1.4;
}

.vd-quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .9rem;
}

.vd-qspec {
  display: flex;
  align-items: center;
  gap: .28rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: .28rem .6rem;
  font-size: .76rem;
  color: var(--color-text);
}

.vd-qspec i { color: var(--color-primary); font-size: .82rem; }

.vd-price-sidebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.vd-price-label-s {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-text-muted);
  margin-bottom: .15rem;
}

.vd-price-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.vd-price-ask {
  font-size: .9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.vd-price-actions { display: flex; gap: .35rem; }

.vd-icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}

.vd-icon-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.vd-inquire-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 .2rem;
}

.vd-inquire-sub {
  font-size: .75rem;
  color: var(--color-text-muted);
  margin: 0 0 .8rem;
  line-height: 1.4;
}

.vd-inquiry-form .form-label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .25rem;
}

.vd-inquiry-form .form-control,
.vd-inquiry-form .form-select {
  font-size: .84rem;
  border-radius: 7px;
  border-color: var(--color-border);
}

.vd-inquiry-form .btn-send {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  padding: .65rem;
  letter-spacing: .5px;
  transition: var(--transition);
  cursor: pointer;
}

.vd-inquiry-form .btn-send:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

/* Sections wrapper */
.vd-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.vd-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.vd-section-title span { color: var(--color-primary); }

/* Spec tabs */
.vd-spec-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.1rem;
  gap: 0;
}

.vd-stab {
  padding: .5rem 1rem;
  border: none;
  background: none;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.vd-stab.active { color: var(--color-text); border-bottom-color: var(--color-primary); }
.vd-stab:hover:not(.active) { color: var(--color-text); }

/* Spec grid */
.vd-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.vd-spec-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .75rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.vd-spec-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(224,123,34,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vd-spec-icon-wrap i { color: var(--color-primary); font-size: 1rem; }

.vd-spec-label {
  font-size: .68rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.2;
}

.vd-spec-val {
  font-size: .86rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.25;
}

/* Feature accordion */
.vd-accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: .45rem;
  overflow: hidden;
}

.vd-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  cursor: pointer;
  background: var(--color-surface);
  font-weight: 600;
  font-size: .88rem;
  user-select: none;
  transition: background var(--transition);
}

.vd-accordion-header:hover { background: var(--color-bg); }

.vd-accordion-chevron { transition: transform .2s; color: var(--color-text-muted); font-size: .75rem; }
.vd-accordion-item.open .vd-accordion-chevron { transform: rotate(180deg); }

.vd-accordion-body {
  display: none;
  padding: .65rem 1rem .9rem;
  background: rgba(224,123,34,.03);
  border-top: 1px solid var(--color-border);
}

.vd-accordion-item.open .vd-accordion-body { display: block; }

.vd-feature-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.vd-feature-chip {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: .3rem .75rem;
  font-size: .78rem;
  color: var(--color-text);
}

.vd-feature-chip i { color: var(--color-primary); font-size: .95rem; }

/* Updates section */
.vd-updates-content {
  max-height: 180px;
  overflow: hidden;
  position: relative;
  transition: max-height .3s ease;
}

.vd-updates-content.expanded { max-height: none; }

.vd-updates-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55px;
  background: linear-gradient(transparent, var(--color-surface));
  pointer-events: none;
}

.vd-updates-content.expanded .vd-updates-fade { display: none; }

.vd-read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: .82rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .45rem 0 0;
}

/* Related carousel */
.vd-carousel-wrap {
  position: relative;
  padding: 0 .5rem;
}

.vd-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: .25rem;
}

.vd-carousel-track::-webkit-scrollbar { display: none; }

.vd-carousel-slide {
  flex: 0 0 calc(25% - .75rem);
  min-width: 230px;
  scroll-snap-align: start;
}

.vd-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  color: var(--color-text);
  font-size: .9rem;
}

.vd-carousel-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.vd-carousel-btn.prev { left: -20px; }
.vd-carousel-btn.next { right: -20px; }

/* Similar vehicle card */
.vd-sim-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.vd-sim-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.vd-sim-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg);
}

.vd-sim-img img { width: 100%; height: 100%; object-fit: cover; }
.vd-sim-img a { display: block; height: 100%; }

.vd-sim-body { padding: .75rem; }
.vd-sim-title { font-size: .83rem; font-weight: 700; color: var(--color-text); margin: 0 0 .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vd-sim-specs { display: flex; flex-wrap: wrap; gap: .25rem .55rem; margin-bottom: .45rem; }

.vd-sim-spec {
  display: flex;
  align-items: center;
  gap: .22rem;
  font-size: .7rem;
  color: var(--color-text-muted);
}

.vd-sim-spec i { font-size: .72rem; color: var(--color-primary); }
.vd-sim-price { font-size: .88rem; font-weight: 700; color: var(--color-primary); margin-bottom: .5rem; }

.vd-sim-actions { display: flex; gap: .4rem; }

.vd-sim-btn-primary {
  flex: 1;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  padding: .4rem .3rem;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: var(--transition);
}

.vd-sim-btn-primary:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

.vd-sim-btn-outline {
  flex: 1;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  padding: .4rem .3rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  transition: var(--transition);
}

.vd-sim-btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }

.wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
  padding: .6rem;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}

.wa-link:hover { background: #1ebe5d; color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ── Blog ────────────────────────────────────────────────── */
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8eaf0;
}

.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-body {
  padding: 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-cat-tag {
  display: inline-block;
  background: rgba(224,123,34,.1);
  color: var(--color-primary);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: .22rem .65rem;
  border-radius: 20px;
  margin-bottom: .5rem;
}

.blog-title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .4rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title a { color: inherit; text-decoration: none; }
.blog-title a:hover { color: var(--color-primary); text-decoration: none; }

.blog-excerpt {
  font-size: .84rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  margin-top: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--color-text-muted);
}

/* Blog Post */
.blog-post-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2d3748;
}

.blog-post-content h2,
.blog-post-content h3 { font-weight: 700; margin-top: 2rem; color: var(--color-text); }

.blog-post-content img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-md); }
.blog-post-content blockquote { border-left: 4px solid var(--color-primary); padding-left: 1rem; margin: 1.5rem 0; color: var(--color-text-muted); font-style: italic; }

/* ── Why Choose Us ───────────────────────────────────────── */
.feature-icon-box {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-icon-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon-box .icon-wrap {
  width: 64px; height: 64px;
  background: rgba(224,123,34,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: var(--color-primary);
}

.feature-icon-box h5 { font-size: .98rem; font-weight: 700; margin-bottom: .4rem; }
.feature-icon-box p  { font-size: .84rem; color: var(--color-text-muted); margin: 0; }

/* ── Testimonial ─────────────────────────────────────────── */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: .75rem; }
.testimonial-text  { font-size: .92rem; color: var(--color-text-muted); line-height: 1.7; font-style: italic; margin-bottom: 1rem; }

.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg);
}
.testimonial-name  { font-weight: 700; font-size: .9rem; }
.testimonial-role  { font-size: .78rem; color: var(--color-text-muted); }

/* ── Brands Section ──────────────────────────────────────── */
.brand-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  aspect-ratio: 3/2;
  overflow: hidden;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.brand-card img { max-height: 52px; max-width: 100%; object-fit: contain; filter: grayscale(30%); transition: filter var(--transition); }
.brand-card:hover img { filter: grayscale(0); }
.brand-card span { font-size: .78rem; font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }
.brand-initial-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; text-transform: uppercase;
  flex-shrink: 0;
}

.brand-grid-9 {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 991px) { .brand-grid-9 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 575px) { .brand-grid-9 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #2d3366 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/cta-bg.jpg') center/cover no-repeat;
  opacity: .08;
}

.cta-section h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; color: #fff; }
.cta-section p  { color: rgba(255,255,255,.72); font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-brand span { color: var(--color-primary); }
.footer-tagline { font-size: .84rem; color: rgba(255,255,255,.5); }

.footer-heading {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  gap: .65rem;
  margin-bottom: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}

.footer-contact-item i { color: var(--color-primary); margin-top: .15rem; flex-shrink: 0; }

.footer-divider {
  border-color: rgba(255,255,255,.08);
  margin: 2rem 0 1.2rem;
}

.footer-bottom {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.social-links { display: flex; gap: .65rem; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

.footer-newsletter-input::placeholder { color: rgba(255,255,255,.55); }

/* ── WhatsApp Float ──────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1050;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
  color: #fff;
  text-decoration: none;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.page-breadcrumb {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: .75rem 0;
}

.page-breadcrumb .breadcrumb { margin: 0; }
.page-breadcrumb .breadcrumb-item a { color: var(--color-primary); text-decoration: none; font-size: .84rem; }
.page-breadcrumb .breadcrumb-item.active { font-size: .84rem; color: var(--color-text-muted); }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  background: var(--color-secondary);
  padding: 2.5rem 0;
  color: #fff;
}

.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0; }
.page-hero p { color: rgba(255,255,255,.65); margin: .35rem 0 0; font-size: .95rem; }

/* ── Inventory sticky filter bar ────────────────────────── */

.inv-sticky-bar {
  position: sticky;
  top: var(--navbar-h, 72px);
  z-index: 200;
  background: var(--color-secondary);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

.inv-search-row { border-bottom: 1px solid rgba(255,255,255,.08); }

.inv-search-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border-radius: 999px;
  padding: .48rem 1.1rem;
  flex: 1;
}
.inv-search-box i { color: #9ca3af; font-size: .9rem; flex-shrink: 0; }
.inv-search-box input {
  flex: 1; border: none; outline: none;
  font-size: .88rem; background: transparent; color: #111; min-width: 0;
}
.inv-search-box input::placeholder { color: #9ca3af; }
.inv-search-clear {
  background: none; border: none; color: #9ca3af; cursor: pointer;
  padding: 0; line-height: 1; flex-shrink: 0; font-size: .75rem;
}
.inv-search-clear:hover { color: #374151; }

.inv-mob-filter-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .42rem .9rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; color: #fff;
  font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.inv-mob-filter-btn:hover { background: rgba(255,255,255,.18); }
.inv-mob-badge {
  background: var(--color-primary); color: #fff; font-size: .6rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 3px;
}

.inv-fd-row { display: flex; align-items: stretch; }

.inv-fd {
  flex: 1; position: relative;
  border-right: 1px solid rgba(255,255,255,.1);
}
.inv-fd:last-of-type { border-right: none; }

.inv-fd-trigger {
  display: flex; flex-direction: column; justify-content: center; gap: .15rem;
  padding: .8rem 2rem .8rem 1.1rem;
  cursor: pointer; min-height: 68px;
  transition: background .15s; user-select: none; position: relative;
}
.inv-fd-trigger:hover,
.inv-fd.open .inv-fd-trigger { background: rgba(255,255,255,.06); }

.inv-fd-label {
  font-size: .66rem; font-weight: 700; color: rgba(255,255,255,.48);
  text-transform: uppercase; letter-spacing: .5px;
}
.inv-fd.has-value .inv-fd-label { color: var(--color-primary); }

.inv-fd-val {
  font-size: .83rem; color: #fff; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.inv-fd-chev {
  position: absolute; right: .8rem; top: 50%;
  transform: translateY(-50%);
  font-size: .62rem; color: rgba(255,255,255,.38);
  transition: transform .2s;
}
.inv-fd.open .inv-fd-chev { transform: translateY(-50%) rotate(180deg); }

.inv-fd-panel {
  display: none; position: absolute;
  top: calc(100% + 5px); left: 0; min-width: 220px;
  background: #fff; border-radius: 12px; padding: .7rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.16);
  z-index: 500; border: 1px solid rgba(0,0,0,.07);
  max-height: 310px; overflow-y: auto;
}
.inv-fd.open .inv-fd-panel { display: block; }

.inv-fd-opt {
  display: flex; align-items: center; gap: .45rem;
  padding: .3rem .35rem; font-size: .83rem;
  cursor: pointer; border-radius: 6px; transition: background .1s;
  color: var(--color-text); line-height: 1.3;
}
.inv-fd-opt:hover { background: #f3f4f6; }
.inv-fd-opt.checked { color: var(--color-primary); font-weight: 600; }
.inv-fd-opt input[type="radio"] { accent-color: var(--color-primary); margin: 0; flex-shrink: 0; }
a.inv-fd-opt { text-decoration: none; display: block; color: var(--color-text); }
a.inv-fd-opt.checked { color: var(--color-primary); font-weight: 600; }
a.inv-fd-opt.checked::before { content: '✓  '; font-size: .75rem; }

.inv-fd-sub-label {
  display: block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--color-text-muted); margin-bottom: .3rem;
}

.inv-fd-apply-btn {
  width: 100%; padding: .42rem; background: var(--color-primary);
  color: #fff; border: none; border-radius: 7px;
  font-size: .8rem; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.inv-fd-apply-btn:hover { opacity: .88; }

.inv-fd-clear {
  display: flex; align-items: center; justify-content: center;
  padding: 0 .9rem; color: rgba(255,255,255,.45);
  font-size: 1.05rem; text-decoration: none; flex-shrink: 0;
  transition: color .15s;
}
.inv-fd-clear:hover { color: var(--color-primary); }

.inv-mobile-filters { display: none; background: #fff; }
.inv-mobile-filters.open { display: block; }
.inv-mob-inner { padding: 1.1rem; max-height: 70vh; overflow-y: auto; }

.inv-page-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 .15rem; color: var(--color-text); }
.inv-result-count { font-size: .84rem; color: var(--color-text-muted); }

.inv-view-toggle {
  display: flex; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden;
}
.inv-view-btn {
  border: none; background: transparent; color: var(--color-text-muted);
  padding: .36rem .6rem; cursor: pointer; font-size: .88rem;
  transition: background .15s, color .15s; line-height: 1;
}
.inv-view-btn.active { background: var(--color-secondary); color: #fff; }
.inv-view-btn:hover:not(.active) { background: var(--color-bg); }

/* Inventory layout wrapper */
#invLayout { display: flex; gap: 1.25rem; align-items: flex-start; }
#invMain   { flex: 1; min-width: 0; }

/* Ad sidebar — hidden by default (grid view), shown in list view */
#invAdSidebar {
  display: none;
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: calc(100vh - 100px);
}
#invAdSidebar img { display: block; }
.inv-list-active #invAdSidebar { display: block; }

/* List view layout */
.inv-list-view.row { display: flex !important; flex-direction: column; gap: .75rem; }
.inv-list-view .col { width: 100% !important; max-width: 100% !important; flex: none !important; }
.inv-list-view .vehicle-card { display: flex; flex-direction: row; }
.inv-list-view .vehicle-card-img { width: 220px; flex-shrink: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.inv-list-view .vehicle-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }

/* Hide ad sidebar on mobile regardless of view */
@media (max-width: 991.98px) { #invAdSidebar { display: none !important; } }

@media (max-width: 991.98px) {
  .inv-filter-strip { display: none !important; }
}

/* ── Mobile card fixes ──────────────────────────────────── */

/* List view: tighten image on tablets */
@media (max-width: 767px) {
  .inv-list-view .vehicle-card-img { width: 160px; }
  .inv-list-view .vehicle-card-body { padding: .85rem .9rem; }
  .inv-list-view .vc-name { font-size: .92rem; }
  .inv-list-view .vc-price { font-size: 1.05rem; }
}

/* List view + grid view: small phones */
@media (max-width: 575px) {
  /* List view: narrow image, stacked price row */
  .inv-list-view .vehicle-card-img { width: 120px; }
  .inv-list-view .vehicle-card-body { padding: .7rem .8rem; }
  .inv-list-view .vc-brand-logo { width: 22px; height: 22px; }
  .inv-list-view .vc-name { font-size: .85rem; -webkit-line-clamp: 2; }
  .inv-list-view .vc-meta { font-size: .7rem; margin-bottom: .35rem; }
  .inv-list-view .vc-specs { display: none; }
  .inv-list-view .vc-price { font-size: .95rem; }
  .inv-list-view .vc-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
    padding-top: .5rem;
  }
  .inv-list-view .btn-view { width: 100%; text-align: center; font-size: .75rem; padding: .38rem .6rem; }

  /* Grid view: single column, tighter sizing */
  .vc-price { font-size: 1.05rem; }
  .vehicle-card-body { padding: .9rem 1rem; }
  .vc-brand-logo { width: 26px; height: 26px; }
  .vc-name { font-size: .92rem; }
  .vc-price-row { gap: .5rem; flex-wrap: wrap; }
  .btn-view { font-size: .78rem; padding: .4rem .8rem; white-space: nowrap; }
  /* Specs: show but smaller pills so they fit */
  .vc-specs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .7rem; }
  .vc-spec { font-size: .68rem; padding: .18rem .5rem; }
}

/* ── Contact Page ────────────────────────────────────────── */
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(224,123,34,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-label { font-size: .75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .5px; }
.contact-info-value { font-weight: 600; font-size: .95rem; margin-top: .1rem; }

.contact-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text); font-size: 1.5rem;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.contact-social-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── intl-tel-input overrides ────────────────────────────── */
.iti { width: 100%; }
.iti__selected-flag { border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--color-surface); border: 1px solid var(--color-border); border-right: none; padding: 0 10px; }
.iti__selected-flag:hover, .iti__selected-flag:focus { background: var(--color-border); }
.iti input.form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.iti__country-list { border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-size: .88rem; }
.iti__country.iti__highlight { background: var(--color-surface); }

/* ── Pagination override ─────────────────────────────────── */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 .15rem;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: .88rem;
}

.pagination .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination .page-link:hover { background: var(--color-bg); color: var(--color-primary); }

/* ── Form helpers ────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 .2rem rgba(224,123,34,.18);
}

.btn-primary-custom {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: .7rem 2rem;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Sold overlay ────────────────────────────────────────── */
.sold-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}

.sold-stamp {
  background: var(--color-sold);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  padding: .4rem 1.8rem;
  border-radius: 4px;
  transform: rotate(-15deg);
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 3px solid rgba(255,255,255,.4);
}

/* ── Utils ───────────────────────────────────────────────── */
.bg-surface { background: var(--color-surface) !important; }
.bg-dark-navy { background: var(--color-secondary) !important; }
.text-primary-custom { color: var(--color-primary) !important; }

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.section-alt { background: #f5f6f8; }

/* ── Vehicle Card — action buttons ────────────────────────── */
.vc-actions {
  position: absolute;
  top: .5rem;
  right: .5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 5;
}
.vehicle-card:hover .vc-actions { opacity: 1; }
.vc-action-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition);
}
.vc-action-btn:hover        { background: var(--color-primary); color: #fff; }
.vc-action-btn.active       { background: var(--color-primary); color: #fff; }
.vc-wish-btn.active i       { font-weight: 700; }

/* ── Navbar icon badge ────────────────────────────────────── */
.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.nav-icon-badge {
  position: absolute;
  top: -3px; right: -5px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--color-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
  border: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Compare bar ──────────────────────────────────────────── */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-secondary);
  color: #fff;
  z-index: 9998;
  padding: .75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  animation: slideUp .2s ease;
}
.compare-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.compare-bar-info { font-size: .9rem; font-weight: 500; }
.compare-bar-actions { display: flex; gap: .5rem; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .inventory-sidebar { position: static; }
  .inquiry-card { position: static; }
  .vehicle-gallery { position: static; }
  .vd-sidebar-card {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .gallery-nav-btn { width: 34px; height: 34px; font-size: .9rem; }
}

@media (max-width: 767px) {
  .site-hero { min-height: 480px; }
  .stats-bar .col { flex: 0 0 50%; }
  .hero-search-box { padding: 1rem; }
  .vd-spec-grid { grid-template-columns: 1fr; }
  .vd-carousel-slide { flex: 0 0 80%; }
  .vd-carousel-btn { display: none; }
  .vd-spec-tabs { overflow-x: auto; scrollbar-width: none; }
  .vd-spec-tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 575px) {
  .stats-bar .col { flex: 0 0 50%; }
  .vd-gallery-tabs .vd-gtab { font-size: .75rem; padding: .38rem .9rem; }
}

/* ── Login / Register Page ─────────────────────────────────── */
.login-tab-switcher {
  display: inline-flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 4px;
}
.login-tab {
  background: none;
  border: none;
  padding: .45rem 1.4rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.login-tab.active {
  background: var(--color-primary);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   Dark Mode
   ══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --color-bg:         #0e1118;
  --color-surface:    #181c2e;
  --color-border:     #252a42;
  --color-text:       #dde1f0;
  --color-text-muted: #8890aa;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.45);
  --shadow-md: 0 4px 16px rgba(0,0,0,.55);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.65);
}

/* Toggle button */
.theme-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}
.theme-toggle-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

/* Bootstrap form overrides */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #141828;
  border-color: var(--color-border);
  color: var(--color-text);
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #141828;
  color: var(--color-text);
  border-color: var(--color-primary);
}
[data-theme="dark"] .form-control::placeholder { color: var(--color-text-muted); }
[data-theme="dark"] .form-select option { background: #181c2e; color: var(--color-text); }
[data-theme="dark"] .form-text { color: var(--color-text-muted); }
[data-theme="dark"] .form-label { color: var(--color-text); }

/* Bootstrap cards */
[data-theme="dark"] .card {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
  background: #141828;
  border-color: var(--color-border);
}

/* Tables */
[data-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--color-text);
  --bs-table-border-color: var(--color-border);
  --bs-table-hover-bg: rgba(255,255,255,.04);
  --bs-table-striped-bg: rgba(255,255,255,.03);
}

/* Hero search bar */
[data-theme="dark"] .hero-search-fields { background: #1a1d30; }
[data-theme="dark"] .hero-select { color: var(--color-text); background: transparent; }
[data-theme="dark"] .hero-field-divider { background: var(--color-border); }

/* Dropdowns */
[data-theme="dark"] .dropdown-menu {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="dark"] .dropdown-item { color: var(--color-text); }
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus { background: rgba(255,255,255,.07); color: var(--color-text); }
[data-theme="dark"] .dropdown-divider { border-color: var(--color-border); }

/* Misc */
[data-theme="dark"] .vc-action-btn { background: rgba(20,24,40,.85); color: var(--color-text); }
[data-theme="dark"] .text-muted { color: var(--color-text-muted) !important; }
[data-theme="dark"] .bg-light { background-color: #141828 !important; }
[data-theme="dark"] .bg-white { background-color: var(--color-surface) !important; }
[data-theme="dark"] .border { border-color: var(--color-border) !important; }
[data-theme="dark"] .border-bottom { border-color: var(--color-border) !important; }
[data-theme="dark"] .border-top { border-color: var(--color-border) !important; }

/* Section alternating background */
[data-theme="dark"] .section-alt { background: #141828; }

/* Vehicle card image placeholder */
[data-theme="dark"] .vehicle-card-img { background: #252a42; }

/* Vehicle card body — keep white per design preference */
[data-theme="dark"] .vehicle-card-body {
  background: #ffffff;
  color: #1a1e3a;
}
[data-theme="dark"] .vehicle-card-body .vc-name,
[data-theme="dark"] .vehicle-card-body .vc-name a { color: #1a1e3a; }
[data-theme="dark"] .vehicle-card-body .vc-meta   { color: #6b7280; }
[data-theme="dark"] .vehicle-card-body .vc-spec   { background: #f5f6f8; border-color: #e2e5ec; color: #6b7280; }
[data-theme="dark"] .vehicle-card-body .vc-price-row { border-color: #e2e5ec; }
[data-theme="dark"] .vehicle-card-body .vc-price-ask { color: #6b7280; }
[data-theme="dark"] .vehicle-card-body .btn-view  { background: #1a1e3a; color: #fff; }
[data-theme="dark"] .vehicle-card-body .btn-view:hover { background: var(--color-primary); }

/* Brand cards — keep white background per design preference */
[data-theme="dark"] .brand-card { background: #ffffff; border-color: #e2e5ec; }
[data-theme="dark"] .brand-card span { color: #6b7280; }

/* Blog card image placeholder */
[data-theme="dark"] .blog-card-img { background: #252a42; }

/* Blog post body text */
[data-theme="dark"] .blog-post-content { color: var(--color-text); }

/* Outline button on dark section backgrounds */
[data-theme="dark"] .btn-outline-secondary {
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
[data-theme="dark"] .btn-outline-secondary:hover {
  background: var(--color-border);
  color: var(--color-text);
  border-color: var(--color-border);
}
