/* Wheels On Demand — vehicle detail lightbox.
   Additive only: style-main.css stays untouched. Reuses the site's own
   design tokens (--navy-900, --red-600, --r-xl, fonts) and .btn classes
   so this matches the rest of the site exactly, not a bolted-on look. */

.vdetail-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 20, 40, .72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
}
.vdetail-overlay.open { opacity: 1; }

.vdetail-modal {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-xl, 22px);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transform: translateY(12px) scale(.98);
  transition: transform .18s ease;
}
.vdetail-overlay.open .vdetail-modal { transform: translateY(0) scale(1); }

@media (max-width: 820px) {
  .vdetail-modal { grid-template-columns: 1fr; max-height: 92vh; }
}

.vdetail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 20, 40, .55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vdetail-close:hover { background: var(--red-600); }

/* ---- gallery side ---- */
.vdetail-gallery { background: var(--navy-900); display: flex; flex-direction: column; }

.vdetail-main {
  position: relative;
  aspect-ratio: 4/3;
  background: #000;
}
.vdetail-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vdetail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.vdetail-nav:hover { background: rgba(255, 255, 255, .3); }
.vdetail-nav.prev { left: 12px; }
.vdetail-nav.next { right: 12px; }
.vdetail-nav[hidden] { display: none; }

.vdetail-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 99px;
}

.vdetail-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}
.vdetail-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: .6;
}
.vdetail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdetail-thumb.active { border-color: var(--red-500); opacity: 1; }

/* ---- info side ---- */
.vdetail-info { padding: 32px; display: flex; flex-direction: column; gap: 18px; }

.vdetail-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-400); letter-spacing: .03em; }
.vdetail-title { font-family: 'Bricolage Grotesque'; font-size: 26px; font-weight: 700; color: var(--navy-900); line-height: 1.1; margin-top: 4px; }

.vdetail-price-row { display: flex; align-items: baseline; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.vdetail-price { font-family: 'Bricolage Grotesque'; font-size: 28px; font-weight: 700; color: var(--navy-900); }
.vdetail-price .cur { font-size: 14px; font-weight: 600; color: var(--ink-500); margin-right: 4px; }
.vdetail-fin { font-size: 13px; color: var(--ink-500); }

.vdetail-description { font-size: 14.5px; line-height: 1.65; color: var(--ink-700); }
.vdetail-description p { margin: 0 0 12px; }
.vdetail-description p:last-child { margin-bottom: 0; }

.vdetail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.vdetail-spec { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.vdetail-spec .k { color: var(--ink-500); }
.vdetail-spec .v { font-weight: 600; color: var(--navy-900); }

.vdetail-features { display: flex; flex-wrap: wrap; gap: 8px; }
.vdetail-features .feature-pill { font-size: 12.5px; }

.vdetail-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.vdetail-cta .btn { flex: 1; justify-content: center; min-width: 180px; }

.vdetail-full-link { align-self: center; font-size: 13px; font-weight: 600; color: var(--ink-500); text-align: center; }
.vdetail-full-link:hover { color: var(--red-600); }

@media (max-width: 480px) {
  .vdetail-overlay { padding: 0; }
  .vdetail-modal { border-radius: 0; max-height: 100vh; height: 100vh; }
  .vdetail-info { padding: 22px; }
}
