/* Vehicle detail page — aligned with site header (--max: 1240px) */
.vdp {
  padding: 88px 0 50px;
  background: #f3f4f6;
  min-height: 100vh;
  color: #111827;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.vdp-wrap {
  /* Same shell as .header-inner so content is NOT wider than header */
  max-width: var(--max, 1240px);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}
.vdp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 14px;
  font-size: 14px;
}
.vdp-back:hover { color: #2563eb; }

.vdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 400px);
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.vdp-gallery {
  min-width: 0;
  width: 100%;
}
.vdp-main {
  position: relative;
  width: 100%;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  height: auto;
  min-height: 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.vdp-main-btn {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: #0f172a;
  cursor: zoom-in;
  position: relative;
}
/* Beat global img { height:auto } so photo fills the frame */
.vdp-main-btn img,
.vdp-main img#cdpMainImg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}
.vdp-main-empty {
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #9ca3af;
  background: #1f2937;
}
.vdp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #111;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.vdp-arrow.prev { left: 12px; }
.vdp-arrow.next { right: 12px; }
.vdp-arrow:hover { background: #2563eb; color: #fff; }
.vdp-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.65);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.vdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.vdp-thumb {
  flex: 0 0 auto;
  width: 108px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #e5e7eb;
  cursor: pointer;
  opacity: .85;
}
.vdp-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
}
.vdp-thumb.is-active,
.vdp-thumb:hover {
  opacity: 1;
  border-color: #2563eb;
}
/* Single photo: hide lonely thumb strip */
.vdp-thumbs:has(.vdp-thumb:only-child) {
  display: none;
}

.vdp-side {
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
  position: sticky;
  top: 88px;
  max-height: none;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}
.vdp-side h1 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  font-family: "Figtree", sans-serif;
  word-break: break-word;
}
.vdp-sub {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.vdp-price-card {
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.vdp-price-label {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vdp-price-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.vdp-price-value small {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 4px;
}

.vdp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.vdp-spec {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 11px;
}
.vdp-spec span {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}
.vdp-spec strong {
  font-size: 13px;
  color: #111827;
  font-weight: 700;
}

.vdp-actions { display: grid; gap: 8px; }
.vdp-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vdp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0 12px;
  box-sizing: border-box;
}
.vdp-btn-wa {
  background: #25d366;
  color: #fff !important;
}
.vdp-btn-wa:hover { background: #1ebe57; color: #fff !important; }
.vdp-btn-dark {
  background: #111827;
  color: #fff !important;
}
.vdp-btn-dark:hover { background: #000; color: #fff !important; }
.vdp-btn-light {
  background: #fff;
  color: #111827 !important;
  border-color: #d1d5db;
}
.vdp-btn-light:hover { border-color: #2563eb; color: #2563eb !important; }
.vdp-btn-primary {
  background: #2563eb;
  color: #fff !important;
  border: 0;
  width: 100%;
  margin-top: 8px;
}
.vdp-btn-primary:hover { background: #1d4ed8; }

.vdp-lower {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  margin-bottom: 28px;
}
.vdp-overview,
.vdp-highlights {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}
.vdp-overview h2,
.vdp-highlights h2,
.vdp-similar h2,
.vdp-enquire-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.vdp-overview p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.7;
}
.vdp-dealer-note {
  color: #6b7280 !important;
  font-size: 14px;
}
.vdp-highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vdp-highlights li {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

.vdp-enquire { margin-bottom: 36px; }
.vdp-enquire-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}
.vdp-enquire-card > p {
  margin: -4px 0 16px;
  color: #6b7280;
}
.vdp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.vdp-form-grid .full { grid-column: 1 / -1; }
.vdp-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vdp-form input,
.vdp-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  min-height: 46px;
  padding: 10px 12px;
  background: #fff;
  color: #111827;
}
.vdp-form textarea { min-height: 96px; }
.vdp-form input:focus,
.vdp-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.vdp-similar h2 { margin-bottom: 16px; }
.vdp-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.vdp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.vdp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.1);
  color: inherit;
}
.vdp-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
}
.vdp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.vdp-card-img .listing-badge {
  top: 10px;
  right: 10px;
}
.vdp-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.vdp-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vdp-card-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.vdp-card-body p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}
.vdp-card-price {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}
.vdp-card-price small {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.vdp-card-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .vdp-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 360px);
  }
  .vdp-similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .vdp { padding: 80px 0 110px; }
  .vdp-hero,
  .vdp-lower { grid-template-columns: 1fr; }
  .vdp-form-grid { grid-template-columns: 1fr; }
  .vdp-main {
    aspect-ratio: 16 / 11;
    max-height: 420px;
    height: auto;
    min-height: 0;
  }
  .vdp-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .vdp, .vdp-wrap, .vdp-hero, .vdp-gallery, .vdp-main, .vdp-side {
    max-width: 100%;
    box-sizing: border-box;
  }
  .vdp-thumbs { max-width: 100%; }
}
@media (max-width: 575px) {
  .vdp-wrap { padding: 0 14px; }
  .vdp-side { padding: 14px; }
  .vdp-price-value { font-size: 24px; }
  .vdp-similar-grid { grid-template-columns: 1fr; }
  .vdp-thumb { width: 88px; height: 64px; }
  .vdp-main {
    aspect-ratio: 4 / 3;
    max-height: 360px;
    border-radius: 12px;
  }
}

/* ===== Car detail quick search bubble ===== */
@keyframes filterBubbleIn {
  from { opacity: 0; transform: translateX(24px) scale(.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes filterBubblePulse {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.04); }
}
.search-bubble.filter-bubble {
  display: inline-flex !important;
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 12100;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 12px 16px 12px 14px;
  border-radius: 999px;
  color: #fff;
  font-family: "Figtree", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow:
    0 10px 28px rgba(37, 99, 235, .38),
    0 2px 0 rgba(255,255,255,.18) inset;
  animation: filterBubbleIn .45s cubic-bezier(.2,.8,.2,1) both;
}
.search-bubble .filter-bubble-glow {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(147,197,253,.55), transparent 60%);
  opacity: .7;
  pointer-events: none;
  animation: filterBubblePulse 2.4s ease-in-out infinite;
}
.search-bubble .filter-bubble-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  font-size: 13px;
}
.search-bubble .filter-bubble-label { position: relative; }
.search-bubble:active { transform: scale(.96); }

.car-search-backdrop.filter-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12110;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.car-search-backdrop.filter-sheet-backdrop:not([hidden]) {
  display: block;
}
.car-search-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.car-search-sheet.search-filters {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 12120;
  width: min(420px, 92vw);
  max-width: 100%;
  max-height: none !important;
  margin: 0;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 0 0 22px !important;
  border: 0 !important;
  box-shadow: -18px 0 50px rgba(15, 23, 42, .18);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(104%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  background: #fff !important;
  pointer-events: none;
}
.car-search-sheet.search-filters.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.car-search-sheet .filter-sheet-close {
  display: grid !important;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 15px;
  flex-shrink: 0;
}
.car-search-sheet .filter-sheet-sub { color: #64748b !important; margin: 2px 0 0; font-size: 12px; }
.car-search-sheet h3 { margin: 0; color: var(--ink, #0f172a) !important; }
.car-search-sheet label { color: #64748b !important; }

.car-search-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin: 8px 0 14px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 100%;
}
.car-search-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}
.car-search-tab.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}

body.car-search-open .search-bubble {
  opacity: 0;
  pointer-events: none;
  transform: scale(.9);
}

@media (max-width: 991.98px) {
  .search-bubble.filter-bubble {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    padding: 11px 14px 11px 12px;
  }
  .car-search-sheet.search-filters {
    width: min(86vw, 360px);
  }
}

/* ===== On-page SEO blocks (readable, not huge) ===== */
.vdp-breadcrumb.seo-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 12px;
  font-size: 12px;
  color: #94a3b8;
}
.vdp-breadcrumb.seo-crumb a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.vdp-breadcrumb.seo-crumb a:hover { text-decoration: underline; }

.vdp-seo-intro {
  margin: 8px 0 28px;
  padding: 18px 18px 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.seo-h2 {
  font-family: "Figtree", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: .01em;
  color: #0f172a !important;
  margin: 0 0 8px !important;
}
.seo-h2-section {
  font-family: "Figtree", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #0f172a !important;
  margin: 0 0 12px !important;
}
.seo-p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  margin: 0 0 14px !important;
}
.seo-p a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.seo-p a:hover { text-decoration: underline; }
.seo-p strong { color: #0f172a; font-weight: 700; }
