/* Faiq Recond Cars V10.2 — Toyota Noah-inspired unified vehicle layout.
   Loaded AFTER the existing style.css and scoped to detail pages only.
   No admin, inventory, database or image compression behaviour is changed. */
body.vehicle-detail-v102 { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-size: 15px; }
body.vehicle-detail-v102 .public-header { background: #fff; }
body.vehicle-detail-v102 .header-inner { min-height: 86px; }
body.vehicle-detail-v102 .seo-crumb { margin: 0; padding: 22px 0; font-size: 14px; }
body.vehicle-detail-v102 .seo-detail-grid { align-items: start; gap: 25px; margin-bottom: 34px; }
body.vehicle-detail-v102 .seo-detail-grid > section, body.vehicle-detail-v102 .seo-detail-grid > aside { min-width: 0; }
body.vehicle-detail-v102 .seo-main-frame { border-radius: 18px; width: 100%; overflow: hidden; }
body.vehicle-detail-v102 .seo-gallery-thumbs { gap: 10px; padding: 13px 0; scrollbar-width: thin; max-width: 100%; overflow-x: auto; }
body.vehicle-detail-v102 .seo-gallery-thumbs button { flex: none; border-radius: 10px; }
body.vehicle-detail-v102 .seo-info-card { padding: 28px; border-radius: 18px; }
body.vehicle-detail-v102 .seo-info-card h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.16; letter-spacing: -.035em; margin: 16px 0 14px; overflow-wrap: break-word; }
body.vehicle-detail-v102 .seo-price { font-size: clamp(30px, 3vw, 40px); line-height: 1.18; letter-spacing: -.03em; margin: 18px 0 28px; overflow-wrap: anywhere; }
body.vehicle-detail-v102 .seo-spec-grid { gap: 12px; }
body.vehicle-detail-v102 .seo-spec-item { min-height: 78px; border-radius: 12px; padding: 15px 14px; }
body.vehicle-detail-v102 .seo-spec-item span { font-size: 12px; }
body.vehicle-detail-v102 .seo-spec-item strong { font-size: 16px; line-height: 1.3; }
body.vehicle-detail-v102 .seo-info-card .btn { min-height: 53px; font-size: 15px; border-radius: 10px; margin-top: 15px; }
body.vehicle-detail-v102 .seo-disclaimer { margin: 13px 0 0; line-height: 1.45; }
@media(max-width:760px) {
 body.vehicle-detail-v102 { font-size: 16px; }
 body.vehicle-detail-v102 .header-inner { padding: 17px 16px; min-height: 81px; gap: 10px; }
 body.vehicle-detail-v102 .brandmark { width: 46px; height: 46px; font-size: 29px; }
 body.vehicle-detail-v102 .brand b { font-size: 22px; letter-spacing: .10em; }
 body.vehicle-detail-v102 .brand small { font-size: 10px; }
 body.vehicle-detail-v102 .public-links { gap: 9px; font-size: 13px; white-space: nowrap; }
 body.vehicle-detail-v102 .showroom { padding: 0 16px 65px; }
 body.vehicle-detail-v102 .seo-crumb { padding: 19px 0 16px; gap: 10px; font-size: 14px; }
 body.vehicle-detail-v102 .seo-detail-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
 body.vehicle-detail-v102 .seo-main-frame { width: 100%; aspect-ratio: 16/10; border-radius: 16px; }
 body.vehicle-detail-v102 .seo-main-frame img { object-fit: contain; }
 body.vehicle-detail-v102 .seo-image-navigation { bottom: 11px; left: 11px; right: 11px; }
 body.vehicle-detail-v102 .seo-gallery-thumbs { gap: 8px; padding: 11px 0 0; }
 body.vehicle-detail-v102 .seo-gallery-thumbs button { width: 68px; height: 62px; border-radius: 10px; }
 body.vehicle-detail-v102 .seo-info-card { padding: 23px 19px 22px; border-radius: 17px; }
 body.vehicle-detail-v102 .seo-info-card h1 { font-size: clamp(29px, 7.2vw, 38px); line-height: 1.17; letter-spacing: -.035em; margin: 17px 0 16px; }
 body.vehicle-detail-v102 .seo-info-card .muted { font-size: 16px; }
 body.vehicle-detail-v102 .seo-price { font-size: clamp(32px, 8vw, 40px); margin: 20px 0 26px; line-height: 1.16; }
 body.vehicle-detail-v102 .seo-spec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 body.vehicle-detail-v102 .seo-spec-item { padding: 16px 13px; min-height: 78px; }
 body.vehicle-detail-v102 .seo-spec-item span { font-size: 12px; }
 body.vehicle-detail-v102 .seo-spec-item strong { font-size: 16px; margin-top: 5px; }
 body.vehicle-detail-v102 .seo-info-card .btn { min-height: 56px; margin-top: 15px; font-size: 15px; }
 body.vehicle-detail-v102 .seo-copy { padding: 23px 18px; }
}
@media(max-width:360px) {
 body.vehicle-detail-v102 .brandmark { width: 40px; height: 40px; font-size: 25px; }
 body.vehicle-detail-v102 .brand b { font-size: 18px; }
 body.vehicle-detail-v102 .brand small { font-size: 8px; }
 body.vehicle-detail-v102 .public-links { font-size: 12px; }
 body.vehicle-detail-v102 .seo-info-card { padding: 20px 15px; }
 body.vehicle-detail-v102 .seo-info-card h1 { font-size: 28px; }
 body.vehicle-detail-v102 .seo-price { font-size: 31px; }
}


/* V10.2.1 gallery overflow hotfix.
   The photo is positioned inside a fixed-ratio frame instead of participating
   in its flex/grid intrinsic size calculation. Source image dimensions have no
   influence on the width of the page. */
html:has(body.vehicle-detail-v102),
body.vehicle-detail-v102 { width:100%; max-width:100%; overflow-x:clip; }
body.vehicle-detail-v102 .public-header,
body.vehicle-detail-v102 .header-inner,
body.vehicle-detail-v102 .showroom,
body.vehicle-detail-v102 .seo-detail-grid,
body.vehicle-detail-v102 .seo-detail-grid > section,
body.vehicle-detail-v102 .seo-detail-grid > aside { min-width:0; max-width:100%; }
body.vehicle-detail-v102 .showroom { width:100%; }
body.vehicle-detail-v102 .seo-detail-grid { width:100%; }
body.vehicle-detail-v102 .seo-main-frame {
  box-sizing:border-box;
  display:block !important;
  position:relative;
  width:100%; max-width:100%; min-width:0;
  height:auto; aspect-ratio:16 / 10;
  overflow:hidden;
  isolation:isolate;
}
body.vehicle-detail-v102 .seo-main-frame > img#seoMainPhoto {
  position:absolute; inset:0;
  display:block;
  width:100% !important; height:100% !important;
  max-width:100% !important; max-height:100% !important;
  min-width:0; min-height:0;
  object-fit:contain;
  object-position:center;
}
body.vehicle-detail-v102 .seo-main-frame > .seo-image-navigation { z-index:2; }
body.vehicle-detail-v102 .seo-gallery-thumbs {
  width:100%; max-width:100%; min-width:0;
  overflow-x:auto; overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
body.vehicle-detail-v102 .seo-gallery-thumbs > button { min-width:0; flex-shrink:0; }
body.vehicle-detail-v102 .seo-gallery-thumbs img {
  width:100%; height:100%; max-width:100%;
  display:block; object-fit:cover;
}
body.vehicle-detail-v102 .seo-info-card,
body.vehicle-detail-v102 .seo-copy,
body.vehicle-detail-v102 .related-vehicles { min-width:0; max-width:100%; overflow-wrap:anywhere; }
@media (max-width:760px) {
  body.vehicle-detail-v102 .seo-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) !important; }
  body.vehicle-detail-v102 .seo-main-frame { aspect-ratio:16 / 10; }
}
