/* ============================================
   VEHICLE DETAIL PAGE
   ============================================ */

.breadcrumb-bar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb-bar a       { color: var(--muted); transition: color .2s; }
.breadcrumb-bar a:hover { color: var(--blue); }

/* Gallery */
.vd-gallery { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.vd-main-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; display: block; border-radius: var(--radius-xl); }
.vd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.vd-thumb  { width: 80px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: border-color .2s; flex-shrink: 0; }
.vd-thumb.active,
.vd-thumb:hover { border-color: var(--blue); }

/* Title / Price */
.vd-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 4px;
}
.vd-price { font-size: 1.8rem; font-weight: 800; color: var(--blue); margin-bottom: 16px; }

/* Spec table */
.spec-table  { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec-table td { padding: 8px 12px; font-size: .84rem; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child  { color: #fff; font-weight: 500; }
.spec-table tr:last-child td { border-bottom: none; }

/* MPG strip */
.mpg-strip  { display: flex; gap: 12px; margin-top: 12px; }
.mpg-item   { flex: 1; background: var(--inset-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.mpg-num    { font-family: var(--font-display); font-size: 1.8rem; color: var(--blue); }
.mpg-lbl    { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Sidebar cards */
.sidebar-card  { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; }
.sidebar-title { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 2px; color: #fff; margin-bottom: 16px; }

/* Payment estimator */
.calc-output   { background: var(--dark); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; text-align: center; margin-top: 12px; }
.calc-monthly  { font-family: var(--font-display); font-size: 2rem; color: var(--blue); }
.calc-label    { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* VD badges */
.vd-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-sm); letter-spacing: 1px; margin-right: 6px; }

/* ── Vehicle Detail Gallery ── */
.vd-gallery    { margin-bottom: 20px; }

.vd-main-wrap  {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.vd-main-img   {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}

/* Prev / Next arrows */
.vd-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(10,12,16,.7);
  border: 1px solid var(--border);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: background .2s, border-color .2s;
  font-size: 1rem;
}
.vd-arrow:hover  { background: var(--blue); border-color: var(--blue); }
.vd-prev { left: 12px; }
.vd-next { right: 12px; }

/* Photo counter badge */
.vd-counter {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 3;
  letter-spacing: .5px;
}

/* Thumbnail strip */
.vd-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.vd-thumbs::-webkit-scrollbar { display: none; }

.vd-thumb {
  width: 80px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, opacity .2s;
  opacity: .65;
}
.vd-thumb:hover  { opacity: 1; border-color: var(--muted); }
.vd-thumb.active { border-color: var(--blue); opacity: 1; }

@media (max-width: 768px) {
  .vd-arrow { width: 32px; height: 32px; font-size: .85rem; }
  .vd-thumb { width: 64px; }
}