/* Jitcar VDP — customer-first gallery, vehicle record, and action layout. */

.vdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
  padding: 20px 0 0;
  color: var(--steel);
  font-size: var(--fs-xs);
}
.vdp-breadcrumb a {
  color: var(--asphalt);
  font-weight: var(--w-bold);
  text-decoration: none;
}
.vdp-breadcrumb a:hover { text-decoration: underline; text-decoration-color: var(--lane); text-underline-offset: 3px; }
.vdp-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vdp-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: start;
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
  padding: 18px 0 52px;
}
.vdp-left { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.vdp-right { position: sticky; top: 88px; }

.soldbar {
  padding: 13px 16px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-field);
  background: var(--fill-quiet);
  font-weight: var(--w-bold);
}
.sold-similar { padding: 22px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: #fff; }
.sold-similar .srp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }

/* Gallery */
.gallery-card {
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(35, 38, 43, .035);
}
.gstage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(390px, 39vw, 520px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--stage);
}
.gstage picture { position: absolute; inset: 0; display: block; }
.gstage picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(20, 22, 27, .55);
  color: #fff;
  backdrop-filter: blur(7px);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.gallery-arrow { top: 50%; transform: translateY(-50%); }
.gallery-arrow:hover { background: rgba(20, 22, 27, .82); transform: translateY(-50%) scale(1.04); }
.gallery-arrow.l { left: 16px; }
.gallery-arrow.r { right: 16px; }
.gallery-arrow .ico { width: 19px; height: 19px; }
.gallery-count {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 22, 27, .68);
  color: #fff;
  backdrop-filter: blur(7px);
  font-size: var(--fs-xs);
  font-weight: var(--w-bold);
}
.gallery-count .ico { width: 15px; height: 15px; }
.gallery-image-error {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
  font-family: var(--mono);
  font-size: var(--fs-sm);
}
.gallery-image-error[hidden] { display: none; }
.gallery-image-error .ico,
.photo-empty-vdp .ico { width: 42px; height: 42px; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.thumb {
  position: relative;
  height: 74px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--stage);
  opacity: .72;
  cursor: pointer;
  transition: border-color .18s ease, opacity .18s ease;
}
.thumb:hover,
.thumb.on { border-color: var(--lane); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(35, 38, 43, .6);
  color: #fff;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: var(--w-bold);
}

/* Vehicle identity and truthful price movement */
.vehicle-title-card,
.features-card,
.vehicle-record {
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--paper);
}
.vehicle-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.vehicle-title-row h1 {
  margin: 0;
  color: var(--asphalt);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: var(--w-black);
  letter-spacing: -.04em;
  line-height: 1.14;
}
.title-favorite {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
  color: var(--asphalt);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.title-favorite:hover { border-color: var(--hairline-2); background: var(--fill-quiet); transform: scale(1.04); }
.title-favorite .ico { width: 20px; height: 20px; }
.title-favorite.saved .ico { fill: var(--lane); stroke: var(--asphalt); }
.certified-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--asphalt);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: var(--w-bold);
}
.vehicle-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 12px;
  color: var(--steel);
  font-size: var(--fs-xs);
}
.vehicle-identifiers b { color: var(--asphalt); font-family: var(--mono); font-weight: var(--w-bold); }
.vehicle-identifiers strong { color: var(--asphalt); }
.price-drop-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--guide-border);
  border-radius: 10px;
  background: var(--guide-bg);
}
.price-drop-copy { display: flex; align-items: center; gap: 12px; }
.price-drop-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--guide);
  color: #fff;
  font-family: var(--mono);
  font-weight: var(--w-bold);
}
.price-drop-copy strong { color: var(--guide); font-size: var(--fs-sm); font-weight: var(--w-extrabold); }
.price-drop-copy p { margin: 2px 0 0; color: var(--steel); font-size: var(--fs-xs); }
.price-drop-total { flex: none; color: var(--guide); font-family: var(--mono); font-size: var(--fs-md); }

/* Sections and specification cards */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-heading.split { align-items: flex-start; }
.section-heading h2 { margin: 3px 0 0; font-size: var(--fs-xl); letter-spacing: -.025em; }
.section-heading > a { color: var(--asphalt); font-size: var(--fs-sm); font-weight: var(--w-bold); text-decoration-color: var(--lane); text-underline-offset: 5px; }
.vehicle-highlights .section-heading { margin-bottom: 16px; }
.vehicle-highlights .section-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.eyebrow { color: var(--lane-ink); font-family: var(--mono); font-size: var(--fs-2xs); font-weight: var(--w-bold); letter-spacing: .12em; text-transform: uppercase; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.spec-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 90px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #fff;
}
.spec-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 9px;
  background: var(--fill-quiet);
  color: var(--steel);
  font-size: 1.15rem;
}
.spec-icon .ico { width: 20px; height: 20px; }
.spec-card > div { min-width: 0; }
.spec-card span:not(.spec-icon) { display: block; margin-bottom: 5px; color: var(--steel); font-size: var(--fs-xs); font-weight: var(--w-bold); letter-spacing: .04em; text-transform: uppercase; }
.spec-card b { display: block; overflow-wrap: anywhere; color: var(--asphalt); font-size: 1rem; font-weight: var(--w-extrabold); }
.spec-card .data-value { font-family: var(--mono); }

.vehicle-record { padding-bottom: 20px; }
.mrows { margin-top: 15px; overflow: hidden; border: 1px solid var(--hairline); border-radius: 10px; }
.mrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--steel);
  font-size: var(--fs-xs);
}
.mrow:last-child { border-bottom: 0; }
.mrow b { color: var(--asphalt); text-align: right; }
.mrow b.good { color: var(--guide); }
.market-method-link { margin-left: 4px; color: var(--asphalt); text-decoration-color: var(--lane); text-underline-offset: 3px; }

.source-label {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--fill-quiet);
  color: var(--steel);
  font-size: var(--fs-2xs);
  font-weight: var(--w-bold);
}
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-list span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--paper); font-size: var(--fs-xs); font-weight: var(--w-bold); }
.feature-list span b { color: var(--asphalt); }
.features-card > p { margin: 13px 0 0; color: var(--steel); font-size: var(--fs-2xs); }

/* Sticky payment and dealer action card */
.payment-action-card {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(35, 38, 43, .08);
}
.payment-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-card-header > span { color: var(--steel); font-size: var(--fs-2xs); font-weight: var(--w-extrabold); letter-spacing: .08em; text-transform: uppercase; }
.payment-card-header > b { padding: 5px 9px; border-radius: 6px; background: var(--asphalt); color: var(--lane); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.payment-hero { margin-top: 18px; }
.payment-hero strong { display: block; color: var(--asphalt); font-family: var(--mono); font-size: clamp(2.15rem, 4vw, 2.85rem); line-height: 1; letter-spacing: -.045em; }
.payment-hero strong small { margin-left: 2px; color: var(--steel); font-family: var(--sans); font-size: 1rem; letter-spacing: 0; }
.payment-hero > span { display: block; margin-top: 7px; color: var(--steel); font-size: var(--fs-xs); }
.payment-subtext { margin: 12px 0 0; color: var(--steel); font-size: var(--fs-xs); }
.calculator-box { margin-top: 22px; padding: 17px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--fill-quiet); }
.calculator-box > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: var(--fs-xs); }
.calculator-box > div:last-child { border-bottom: 0; }
.calculator-box span { color: var(--steel); }
.calculator-box b { flex: none; color: var(--asphalt); font-family: var(--mono); text-align: right; }
.vdp-primary-action,
.vdp-ai-action { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 9px; font-weight: var(--w-extrabold); text-align: center; text-decoration: none; transition: transform .18s ease, filter .18s ease; }
.vdp-primary-action { margin-top: 20px; padding: 16px 14px; background: var(--lane); color: var(--asphalt); box-shadow: 0 5px 16px rgba(245, 197, 24, .24); }
.vdp-ai-action { margin-top: 10px; padding: 13px 14px; background: var(--asphalt); color: #fff; font-size: var(--fs-sm); }
.vdp-primary-action:hover,
.vdp-ai-action:hover { transform: translateY(-1px); filter: brightness(.97); }
.dealer-summary { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--hairline); }
.dealer-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 50%; background: var(--fill-quiet); color: var(--steel); }
.dealer-icon .ico { width: 20px; height: 20px; }
.dealer-summary h3 { margin: 0; font-size: var(--fs-sm); }
.dealer-summary p { margin: 2px 0 0; color: var(--steel); font-size: var(--fs-2xs); }
.dealer-truth { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; padding: 10px; border: 1px solid var(--guide-border); border-radius: 9px; background: var(--guide-bg); color: var(--guide); font-size: var(--fs-xs); }
.dealer-truth .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.sold-action-card .action-kicker { color: var(--steel); font-family: var(--mono); font-size: var(--fs-2xs); font-weight: var(--w-bold); letter-spacing: .1em; text-transform: uppercase; }
.sold-action-card h2 { margin: 8px 0 0; }
.sold-action-card p { margin: 8px 0 20px; color: var(--steel); }

/* Similar vehicles */
.vdp-similar { width: min(1360px, calc(100% - 56px)); margin: 0 auto; padding: 0 0 64px; }
.vdp-similar .srp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }

/* Mobile action bar */
.paybar {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--asphalt);
  color: #fff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .14);
}
.paybar b { display: block; color: var(--lane); font-family: var(--mono); font-size: var(--fs-lg); line-height: 1.05; }
.paybar span { color: var(--steel-2); font-size: var(--fs-2xs); }
.paybar .grow { flex: 1; }

@media (max-width: 1100px) {
  .vdp-shell { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
  .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .vdp-breadcrumb,
  .vdp-shell,
  .vdp-similar { width: min(100% - 28px, 760px); }
  .vdp-shell { grid-template-columns: 1fr; padding-bottom: 96px; }
  .vdp-right { position: static; }
  .gstage { height: clamp(270px, 65vw, 500px); }
  .vdp-similar .srp-grid,
  .sold-similar .srp-grid { grid-template-columns: 1fr; }
  .paybar { display: flex; }
}

@media (max-width: 620px) {
  .vdp-breadcrumb { padding-top: 14px; }
  .vdp-shell { padding-top: 12px; gap: 18px; }
  .vdp-left { gap: 18px; }
  .gallery-card { padding: 7px; border-radius: 14px; }
  .gstage { height: 260px; border-radius: 10px; }
  .gallery-arrow { width: 38px; height: 38px; }
  .gallery-arrow.l { left: 9px; }
  .gallery-arrow.r { right: 9px; }
  .gallery-count { left: 10px; bottom: 10px; }
  .thumbs { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 2px; }
  .thumb { width: 88px; min-width: 88px; height: 58px; }
  .vehicle-title-card,
  .features-card,
  .vehicle-record,
  .payment-action-card { padding: 20px; border-radius: 13px; }
  .title-favorite { width: 40px; height: 40px; }
  .vehicle-identifiers { flex-direction: column; gap: 6px; }
  .price-drop-alert { align-items: flex-start; padding: 13px; }
  .price-drop-total { display: none; }
  .specs-grid { gap: 9px; }
  .spec-card { align-items: flex-start; gap: 9px; padding: 12px; }
  .spec-icon { width: 34px; height: 34px; }
  .spec-icon .ico { width: 17px; height: 17px; }
  .spec-card b { font-size: var(--fs-xs); }
  .section-heading.split { flex-direction: column; }
  .source-label { align-self: flex-start; }
  .mrow { flex-direction: column; gap: 4px; }
  .mrow b { text-align: left; }
  .payment-card-header { align-items: flex-start; }
  .payment-card-header > b { text-align: right; }
  .calculator-box > div { align-items: flex-start; }
  .paybar .btn { padding-inline: 12px; }
}