/* ============================================================
   PRENIUM — vehicle.css
   Individual vehicle page: hero · specs · calculator · gallery
   ============================================================ */

/* ── Vehicle Hero ────────────────────────────────────────── */
.vh-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  margin-top: var(--nav-h);
  overflow: hidden;
  background: #0d0d0d;
}

.vh-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  transition: opacity 0.6s ease;
}

.vh-hero--gradient {
  background: linear-gradient(135deg, #1c1c1e 0%, #2a2a2e 50%, #111114 100%);
}

.vh-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.08) 100%
  );
  pointer-events: none;
}

.vh-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
  width: 100%;
}

.vh-hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.vh-hero__brand {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.vh-hero__name {
  font-family: var(--font-title);
  font-weight: 200;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.vh-hero__tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.vh-hero__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Quick Specs Strip ───────────────────────────────────── */
.vh-quickspecs {
  background: var(--surface);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1.5rem 0;
}

.vh-quickspecs__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.vh-qs-item {
  text-align: center;
}

.vh-qs-item__value {
  font-family: var(--font-title);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-size: 1.8rem;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.vh-qs-item__label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lighter);
}

/* ── Specs + Calculator ──────────────────────────────────── */
.vh-specs-section {
  padding: 5rem 0;
  background: var(--white);
}

.vh-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Specs table */
.vh-specs__heading {
  font-family: var(--font-title);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.vh-specs__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  gap: 1rem;
}

.spec-item__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.spec-item__value {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: right;
}

/* ── Leasing Calculator ──────────────────────────────────── */
.leasing-calc {
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.leasing-calc__title {
  font-family: var(--font-title);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.leasing-calc__sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 1.8rem;
}

.calc-group {
  margin-bottom: 1.4rem;
}

.calc-group__label {
  font-family: var(--font-body);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 0.7rem;
  display: block;
}

/* Toggle pill groups */
.toggle-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.toggle-btn {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  border: 1px solid rgba(0,0,0,0.12);
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.toggle-btn.active {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-subtle);
  box-shadow: 0 0 0 1px var(--gold);
}

/* Apport slider */
.apport-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apport-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.apport-val {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}

.apport-hint {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-lighter);
  font-weight: 300;
}

input[type="range"].apport-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.10);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"].apport-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  cursor: pointer;
  transition: transform 0.2s ease;
}

input[type="range"].apport-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"].apport-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  cursor: pointer;
}

/* Monthly price result */
.calc-result {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

.calc-result__label {
  font-family: var(--font-body);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 0.4rem;
}

.monthly-price {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.monthly-price sup {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 400;
  color: var(--gold);
}

.calc-result__sub {
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 300;
  color: var(--text-lighter);
  margin-bottom: 1.5rem;
}

.calc-result .btn {
  width: 100%;
  justify-content: center;
}

/* ── Gallery ─────────────────────────────────────────────── */
.vh-gallery-section {
  padding: 4rem 0;
  background: var(--off-white);
}

.vh-section-title {
  font-family: var(--font-title);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.vh-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.vh-gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.vh-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.vh-gallery__item:hover img {
  transform: scale(1.04);
}

.vh-gallery__item--main {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ── Similar Vehicles ────────────────────────────────────── */
.vh-similar-section {
  padding: 4rem 0 6rem;
  background: var(--white);
}

.vh-similar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .vh-specs-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .leasing-calc {
    position: static;
  }
  .vh-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .vh-gallery__item--main {
    grid-column: span 2;
  }
  .vh-similar {
    grid-template-columns: repeat(2, 1fr);
  }
  .vh-quickspecs__inner {
    justify-content: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .vh-hero {
    height: 55vh;
  }

  /* Hero text — full white on mobile for readability */
  .vh-hero__badge {
    color: rgba(255,255,255,0.90);
    border-color: rgba(255,255,255,0.40);
  }
  .vh-hero__brand {
    color: rgba(255,255,255,0.75);
  }
  .vh-hero__tagline {
    color: rgba(255,255,255,0.75);
  }

  /* Quick specs — 2×2 grid */
  .vh-quickspecs__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 0;
    justify-items: center;
  }
  .vh-qs-item {
    width: 100%;
    text-align: center;
    padding: 0.6rem 0;
  }
  .vh-qs-item:nth-child(1),
  .vh-qs-item:nth-child(2) {
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding-bottom: 1.2rem;
  }
  .vh-qs-item:nth-child(3),
  .vh-qs-item:nth-child(4) {
    padding-top: 0.6rem;
  }

  .vh-gallery {
    grid-template-columns: 1fr;
  }
  .vh-gallery__item--main {
    grid-column: span 1;
  }
  .vh-similar {
    grid-template-columns: 1fr;
  }
  .vh-hero__actions {
    flex-direction: column;
  }
  .vh-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
