/* Faiq Recond Cars V10.3.1 — Vehicle detail-only visual fixes.
   Must load AFTER style.css, vehicle-layout-v102.css and theme-v103.css.
   Does not alter scripts, SEO, galleries, Supabase or calculator maths. */

/* FIX 1: The old Toyota Noah detail CSS contains a more-specific white
   header rule. Re-apply Midnight Navy + Gold for all vehicle pages. */
body.vehicle-detail-v102 .public-header {
  background: #101C30;
  color: #fff;
  border-bottom: 2px solid #C8A45D;
  position: relative;
  z-index: 20;
}
body.vehicle-detail-v102 .public-header .brand,
body.vehicle-detail-v102 .public-header .brand b,
body.vehicle-detail-v102 .public-header .brand small,
body.vehicle-detail-v102 .public-header .public-links a {
  color: #fff;
}
body.vehicle-detail-v102 .public-header .brandmark {
  background: #203653;
  color: #fff;
  border: 1px solid #425978;
}
body.vehicle-detail-v102 .public-header .brandmark i { color: #E2C184; }
body.vehicle-detail-v102 .public-header .public-links a:hover { color: #E2C184; }
body.vehicle-detail-v102 .site-nav-menu { z-index: 25; }
body.vehicle-detail-v102 .site-nav-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #101C30;
  background: #E2C184;
  border: 1px solid #E2C184;
  border-radius: 10px;
  min-height: 44px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
body.vehicle-detail-v102 .site-nav-menu summary:hover,
body.vehicle-detail-v102 .site-nav-menu[open] summary { background: #F1D6A1; }
body.vehicle-detail-v102 .site-nav-menu summary:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px;
}
body.vehicle-detail-v102 .site-nav-drawer {
  z-index: 30;
  background: #101C30;
  border-color: #536985;
}
body.vehicle-detail-v102 .site-nav-drawer a { color: #fff; }

/* FIX 2: Give each field's label the full row height. The input/select is
   pushed to the bottom so adjacent inputs line up even when one label
   wraps to 2–3 lines (including on Safari/iPhone). */
body.vehicle-detail-v102 .vehicle-tools .tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
body.vehicle-detail-v102 .vehicle-tools .tool-grid > label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  gap: 8px;
  line-height: 1.4;
}
body.vehicle-detail-v102 .vehicle-tools .tool-grid > label > input,
body.vehicle-detail-v102 .vehicle-tools .tool-grid > label > select {
  margin-top: auto;
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  flex-shrink: 0;
}
@media (max-width: 380px) {
  body.vehicle-detail-v102 .vehicle-tools .tool-grid { column-gap: 9px; }
  body.vehicle-detail-v102 .vehicle-tools .tool-grid > label { font-size: 11.5px; }
}
