* { box-sizing: border-box; } [hidden] { display: none !important; }
body { margin: 0; font: 16px/1.6 Arial,sans-serif; color: #eaf2f9; background: #0b1118; }
a { color: #8ed8ff; } button,a { touch-action: manipulation; }
.site-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 24px max(24px,calc((100vw - 1200px)/2)); background: #101923; border-bottom: 1px solid #20384a; }
.brand { font-size: 26px; font-weight: bold; text-decoration: none; color: white; }.brand span { display: block; font-size: 11px; letter-spacing: 4px; color: #8ed8ff; }
nav { display:flex; gap:24px; } nav a { text-decoration:none; }
main { max-width: 1200px; margin: 48px auto; padding: 0 24px; min-height: 65vh; }
h1 { font-size: clamp(30px,5vw,48px); line-height:1.15; } h2 { font-size:22px; }.eyebrow { color:#8ed8ff; letter-spacing:3px; font-size:12px; }
.vehicle-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:24px; margin:32px 0; }
.vehicle-card { background:#111c27; border:1px solid #20384a; border-radius:12px; overflow:hidden; }.vehicle-card h2,.vehicle-card p { margin:16px 20px; }.vehicle-card a { text-decoration:none; }
.vehicle-card img,.no-photo { width:100%; height:220px; object-fit:cover; }.no-photo { display:grid; place-items:center; color:#8fa8bd; background:#162737; }
button { padding:14px 24px; border:1px solid #355e7a; border-radius:8px; background:#162737; color:#8ed8ff; font:inherit; cursor:pointer; }
a:focus-visible,button:focus-visible { outline:2px solid #8ed8ff; outline-offset:4px; }
.gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:16px; }.gallery img { width:100%; max-height:440px; object-fit:contain; background:#111c27; border-radius:10px; }
.price { font-size:24px; }.detail-grid { display:flex; flex-wrap:wrap; gap:36px; margin:32px 0; } dt { color:#8fa8bd; } dd { margin:4px 0; }.description { white-space:pre-wrap; overflow-wrap:anywhere; }
footer { padding:24px; text-align:center; background:#101923; color:#8fa8bd; }
.no-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: #101b26;
  overflow: hidden;
}

.no-photo img.placeholder-logo {
  display: block;
  width: 90%;
  max-width: 380px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.no-photo p {
  margin: 0;
  color: #e7edf3;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.06em;
}

/* Reserve / ask buttons on the car page */
.vehicle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 8px; }
.vehicle-button { display: inline-block; padding: 13px 22px; border-radius: 8px; background: #1f9fd6; color: #fff; font-weight: bold; text-decoration: none; }
.vehicle-button:hover { background: #39b8ed; }
.vehicle-button:focus-visible { outline: 2px solid #8ed8ff; outline-offset: 3px; }
.vehicle-button-secondary { background: transparent; border: 1px solid #3a5a72; color: #e6eef5; }
.vehicle-button-secondary:hover { background: #162737; border-color: #8ed8ff; }
.vehicle-note { flex-basis: 100%; margin: 0; color: #8fa8bd; font-size: 15px; }
.vehicle-actions .vehicle-note:first-child { color: #e6eef5; font-weight: bold; }

/* ========================================
   CAR PAGE LAYOUT
   ======================================== */
.back-link { display: inline-block; margin-bottom: 8px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
#publicVehicle h1 { margin: 12px 0 24px; }

.vehicle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.vehicle-panel { position: sticky; top: 24px; padding: 24px; background: #111c27; border: 1px solid #20384a; border-radius: 14px; }
.vehicle-panel .price { margin: 0; font-size: 30px; font-weight: bold; color: #fff; }
.vehicle-panel .vehicle-actions { flex-direction: column; align-items: stretch; margin: 20px 0 0; }
.vehicle-panel .vehicle-button { text-align: center; }
.vehicle-panel .vehicle-note { text-align: center; }

.vehicle-specs { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #20384a; }
.vehicle-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #1a2c3b; }
.vehicle-specs > div:last-child { border-bottom: 0; }
.vehicle-specs dt { color: #8fa8bd; }
.vehicle-specs dd { margin: 0; color: #eaf2f9; text-align: right; }

.vehicle-about { max-width: 780px; margin-top: 48px; }
.vehicle-disclaimer { color: #8fa8bd; font-size: 14px; }

/* ========================================
   PHOTO VIEWER
   ======================================== */
.gallery-tour { min-width: 0; }
.gallery-tour > .no-photo { border-radius: 14px; }
.tour { display: grid; gap: 12px; min-width: 0; }
.tour-stage { position: relative; aspect-ratio: 4 / 3; width: 100%; background: #070c12; border: 1px solid #20384a; border-radius: 14px; overflow: hidden; touch-action: pan-y; user-select: none; }
.tour-stage:fullscreen { aspect-ratio: auto; border: 0; border-radius: 0; }
.tour-stage:focus-visible { outline: 2px solid #8ed8ff; outline-offset: 3px; }
.tour-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.tour-missing { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #8fa8bd; }
.tour-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid rgba(142,216,255,.35); background: rgba(11,17,24,.72); color: #fff; font-size: 34px; line-height: 1; display: grid; place-items: center; }
.tour-arrow:hover { background: rgba(22,39,55,.92); }
.tour-prev { left: 12px; } .tour-next { right: 12px; }
.tour-caption { position: absolute; left: 12px; bottom: 12px; margin: 0; display: flex; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(11,17,24,.78); font-size: 14px; }
.tour-section { color: #fff; font-weight: bold; } .tour-section:empty { display: none; }
.tour-counter { color: #cfe3f2; font-variant-numeric: tabular-nums; }
.tour-full { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; font-size: 13px; border-radius: 999px; background: rgba(11,17,24,.78); }
.tour-stops { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tour-stop { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: #cfe3f2; }
.tour-stop[aria-pressed="true"] { background: #8ed8ff; border-color: #8ed8ff; color: #0b1118; font-weight: bold; }
.tour-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tour-thumb { flex: none; width: 104px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #111c27; opacity: .6; }
.tour-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-thumb.is-active, .tour-thumb:hover { opacity: 1; border-color: #8ed8ff; }

/* Tablets and phones: stack photo above the panel */
@media (max-width: 900px) {
  .vehicle-layout { grid-template-columns: 1fr; gap: 20px; }
  .vehicle-panel { position: static; }
}
@media (max-width: 600px) {
  main { margin-top: 24px; padding: 0 16px; }
  .tour-arrow { width: 42px; height: 42px; font-size: 28px; }
  .tour-prev { left: 6px; } .tour-next { right: 6px; }
  .tour-full { display: none; }
  .tour-thumb { width: 80px; height: 58px; }
  .vehicle-panel { padding: 18px; }
}

/* ========================================
   ABOUT THIS VEHICLE (formatted description)
   ======================================== */
.description-formatted { white-space: normal; }
.desc-block { margin: 0 0 26px; }
.desc-block p { margin: 0 0 8px; color: #d6e2ec; line-height: 1.7; }
.desc-block h3 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #20384a; color: #8ed8ff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.desc-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.desc-list li { position: relative; break-inside: avoid; margin: 0 0 8px; padding-left: 22px; color: #e6eef5; line-height: 1.5; }
.desc-list li::before { content: "✓"; position: absolute; left: 0; color: #39b8ed; font-weight: bold; }
.desc-list strong { color: #8fa8bd; font-weight: normal; }
@media (max-width: 600px) { .desc-list { columns: 1; } }