/*
 * BMC-21: Vehicle Detail Page Styles
 *
 * Dark theme: bg #111, text #fff, accent red #c8102e
 * Consistent with Bespoke2026 / inventory-v2.css
 *
 * Deploy to:
 *   \\10.100.1.91\f$\websites\AS12_Production_Bespoke\CMS\App_Themes\Bespoke2026\assets\css\vehicle-detail.css
 *
 * Load via BespokeMaster layout or Kentico Admin > Sites > CSS Stylesheets.
 */

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.vehicle-detail-page {
  background: #111;
  color: #fff;
  min-height: 60vh;
  padding: 2rem 0 4rem;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.vd-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vd-back {
  display: inline-block;
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.vd-back:hover {
  color: #ccc;
}

/* ============================================================
   HERO SECTION — 2-col grid on desktop, stacked on mobile
   ============================================================ */
.vd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .vd-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Hero image column */
.vd-hero__img {
  position: relative;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
}

.vd-hero__main-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .vd-hero__main-img {
    height: 240px;
  }
}

/* ============================================================
   STATUS BADGE
   ============================================================ */
.vd-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-block;
  padding: 0.3em 0.85em;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.vd-status-sold {
  background: #c8102e;
}

.vd-status-pending {
  background: #c87d10;
}

.vd-status-coming-soon {
  background: #1a7ac8;
}

/* ============================================================
   HERO INFO COLUMN
   ============================================================ */
.vd-hero__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vd-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .vd-title {
    font-size: 1.5rem;
  }
}

.vd-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #c8102e;
  letter-spacing: -0.01em;
}

/* ============================================================
   QUICK SPECS — definition list, 2-col grid
   ============================================================ */
.vd-quick-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
}

.vd-quick-specs dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  align-self: center;
}

.vd-quick-specs dd {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin: 0;
  align-self: center;
}

.vd-vin {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #aaa;
  word-break: break-all;
}

/* ============================================================
   CTA BUTTONS ROW
   ============================================================ */
.vd-cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.vd-cta-btn {
  display: inline-block;
  padding: 0.65em 1.4em;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}

.vd-cta-btn.btn-brand-1 {
  background: #c8102e;
  color: #fff;
  border: 2px solid #c8102e;
}

.vd-cta-btn.btn-brand-1:hover {
  background: #a00d24;
  border-color: #a00d24;
}

.vd-cta-btn.btn-muted {
  background: transparent;
  color: #ccc;
  border: 2px solid #555;
}

.vd-cta-btn.btn-muted:hover {
  border-color: #c8102e;
  color: #fff;
}

/* ============================================================
   PHOTO GALLERY — tabs + thumbnail grid
   ============================================================ */
.vehicle-detail-gallery {
  margin-bottom: 2.5rem;
}

.vd-gallery-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.vd-gallery-tab {
  padding: 0.3rem 1rem;
  border: 1px solid #444;
  border-radius: 3px;
  background: transparent;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.vd-gallery-tab:hover {
  background: #2a2a2a;
  color: #fff;
  border-color: #666;
}

.vd-gallery-tab.active {
  background: #c8102e;
  color: #fff;
  border-color: #c8102e;
}

.vd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.4rem;
}

.vd-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s;
}

.vd-thumb:hover {
  border-color: #c8102e;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .vd-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* ============================================================
   CARFAX LOGO LINK
   ============================================================ */
.vd-carfax-link {
  display: inline-block;
  margin-top: 0.25rem;
}

.vd-carfax-logo {
  height: 36px;
  width: auto;
}

/* ============================================================
   KEY FEATURES
   ============================================================ */
.vd-features {
  margin-bottom: 2rem;
}

.vd-features h2,
.vd-features h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  border-bottom: 2px solid #c8102e;
  padding-bottom: 0.4rem;
  display: inline-block;
}

.vd-features__list {
  margin: 0;
  padding-left: 1.25rem;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================================
   HERITAGE / DESCRIPTION
   ============================================================ */
.vd-heritage {
  margin-bottom: 2.5rem;
  max-width: 820px;
  line-height: 1.75;
}

.vd-heritage h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #c8102e;
  padding-bottom: 0.4rem;
  display: inline-block;
}

.vd-heritage p,
.vd-heritage li {
  color: #ccc;
  font-size: 0.97rem;
}

.vd-heritage a {
  color: #c8102e;
}

/* ============================================================
   RESPONSIVE UTILITY
   ============================================================ */
@media (max-width: 600px) {
  .vd-cta-inline {
    flex-direction: column;
  }

  .vd-cta-btn {
    text-align: center;
  }

  .vd-price {
    font-size: 1.4rem;
  }
}
