.vehicle-dialog {
  width: min(1180px, calc(100% - 64px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink, #04355A);
  background: #fff;
  box-shadow: 0 32px 110px #001b3599;
}
.vehicle-dialog::backdrop { background: #001b35b8; backdrop-filter: blur(5px); }
.vehicle-page { padding-block: 28px 64px; }
.vd-detail { --vd-line: #dfe8ee; --vd-muted: #5c7283; color: #04355A; padding: 24px 30px 34px; }
.vd-detail-standalone { padding: 0; }
.vd-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; margin-bottom: 22px; }
.vd-topbar-label, .vd-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .13em; }
.vd-topbar-label { color: var(--vd-muted); }
.vd-back-link { font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.vd-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--vd-line); border-radius: 50%; color: #04355A; background: #f5f8fa; transition: background 150ms ease; }
.vd-close:hover { background: #eaf1f5; }
.vd-close svg { width: 20px; height: 20px; }
.vd-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3.2vw, 44px); align-items: start; }
.vd-gallery, .vd-summary { min-width: 0; }
.vd-main-frame { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: #edf2f5; isolation: isolate; touch-action: pan-y pinch-zoom; }
.vd-main-image { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.vd-photo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px; color: #597486; text-align: center; }
.vd-photo-placeholder > span:first-child { font-size: clamp(1.1rem, 2.4vw, 1.65rem); font-weight: 800; letter-spacing: .12em; }
.vd-photo-placeholder > span:last-child { font-size: .875rem; }
.vd-gallery-nav { position: absolute; z-index: 1; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #fff8; border-radius: 50%; background: #fffefc; color: #04355A; box-shadow: 0 3px 14px #04355a20; transform: translateY(-50%); transition: background 150ms ease; }
.vd-gallery-prev { left: 12px; }
.vd-gallery-next { right: 12px; }
.vd-gallery-nav:hover { background: #9FFF26; }
.vd-gallery-nav svg { width: 21px; height: 21px; }
.vd-photo-count { position: absolute; z-index: 1; bottom: 14px; right: 14px; min-width: 54px; padding: 5px 10px; border: 1px solid #ffffff29; border-radius: 100px; color: #fff; background: #04355ad9; font-size: .75rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.vd-thumbnails { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 12px 3px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b4c7d4 transparent; }
.vd-thumbnail { position: relative; display: grid; place-items: center; flex: 0 0 88px; width: 88px; height: 68px; overflow: hidden; padding: 0; border: 3px solid transparent; border-radius: 12px; background: #edf2f5; scroll-snap-align: center; opacity: .7; transition: opacity 150ms ease, border-color 150ms ease; }
.vd-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.vd-thumbnail:hover { opacity: 1; }
.vd-thumbnail.is-selected { opacity: 1; border-color: #04355A; box-shadow: 0 0 0 1px #9FFF26; }
.vd-thumb-number { display: none; font-weight: 800; font-size: .875rem; }
.vd-thumbnail-missing .vd-thumb-number { display: block; }
.vd-eyebrow { margin: 0 0 9px; color: var(--vd-muted); }
.vd-title { margin: 0; color: #04355A; font-size: clamp(1.75rem, 2.7vw, 2.5rem); font-weight: 800; line-height: 1.13; letter-spacing: -.045em; overflow-wrap: anywhere; }
.vd-version { margin: 12px 0 0; color: var(--vd-muted); font-size: .9375rem; line-height: 1.6; }
.vd-price { margin: 22px 0 24px; color: #04355A; font-size: clamp(1.7rem, 2.7vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.vd-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.vd-whatsapp, .vd-share { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; border-radius: 100px; font-size: .875rem; font-weight: 800; text-align: center; line-height: 1.35; transition: background 150ms ease; }
.vd-whatsapp { padding: 12px 18px; color: #04355A; background: #9FFF26; }
.vd-whatsapp:hover { background: #8cf017; }
.vd-whatsapp img { flex: 0 0 22px; width: 22px; height: 22px; }
.vd-share { width: 50px; padding: 12px; border: 1px solid #cfdde6; background: #fff; color: #04355A; }
.vd-share:hover { background: #eff5f8; }
.vd-share svg { width: 22px; height: 22px; }
.vd-share > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.vd-share-feedback { min-height: 20px; margin: 9px 0 0; color: #426477; font-size: .8125rem; line-height: 1.5; }
.vd-copy-link { margin-top: 8px; }
.vd-copy-link label { display: grid; gap: 5px; color: var(--vd-muted); font-size: .8125rem; font-weight: 600; }
.vd-copy-link input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--vd-line); border-radius: 10px; color: #04355A; background: #f5f8fa; font-size: .875rem; }
.vd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 17px 0 0; border-top: 1px solid var(--vd-line); }
.vd-facts > div { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--vd-line); }
.vd-facts dt { margin: 0 0 3px; color: var(--vd-muted); font-size: .8125rem; line-height: 1.5; }
.vd-facts dd { margin: 0; color: #04355A; font-size: .9375rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.vd-reference { margin-top: 16px; color: var(--vd-muted); font-size: .75rem; }
.vd-extra { display: grid; gap: 28px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--vd-line); }
.vd-extra :is(h2, h3, h4, h5, h6) { margin: 0 0 14px; color: #04355A; font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; }
.vd-description p { max-width: 80ch; margin: 0; color: #466376; font-size: .9375rem; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.vd-equipment ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.vd-equipment li { position: relative; min-width: 0; padding-left: 19px; color: #466376; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.vd-equipment li::before { content: ''; position: absolute; top: .6em; left: 1px; width: 7px; height: 7px; border: 2px solid #04355A; border-radius: 50%; background: #9FFF26; }
.vd-detail :is(button, a, input, [tabindex]):focus-visible { outline: 3px solid #04355A; outline-offset: 3px; }
.vd-detail .vd-gallery-nav:focus-visible { outline-color: #9FFF26; }

@media (min-width: 1250px) {
  .vehicle-page .vd-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 50px; }
  .vehicle-page .vd-summary { padding-top: 8px; }
}
@media (max-width: 760px) {
  .vehicle-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; }
  .vehicle-page { padding-block: 18px 40px; }
  .vd-detail { padding: 16px 18px 26px; }
  .vd-detail-standalone { padding: 0; }
  .vd-topbar { gap: 12px; min-height: 36px; margin-bottom: 15px; }
  .vd-topbar-label { font-size: .6875rem; letter-spacing: .11em; }
  .vd-close { flex-basis: 36px; width: 36px; height: 36px; }
  .vd-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .vd-main-frame { border-radius: 15px; }
  .vd-gallery-nav { width: 36px; height: 36px; }
  .vd-gallery-prev { left: 10px; }
  .vd-gallery-next { right: 10px; }
  .vd-photo-count { bottom: 11px; right: 11px; padding: 4px 9px; }
  .vd-thumbnails { gap: 8px; padding-top: 10px; padding-bottom: 5px; }
  .vd-thumbnail { flex-basis: 70px; width: 70px; height: 55px; border-radius: 10px; }
  .vd-eyebrow { margin-bottom: 7px; font-size: .6875rem; }
  .vd-title { font-size: clamp(1.65rem, 6.5vw, 2rem); }
  .vd-version { margin-top: 9px; font-size: .875rem; }
  .vd-price { margin-block: 18px; font-size: 1.9rem; }
  .vd-whatsapp { padding-inline: 15px; font-size: .8125rem; }
  .vd-facts { gap: 0 18px; margin-top: 12px; }
  .vd-facts > div { padding-block: 12px; }
  .vd-extra { gap: 24px; margin-top: 24px; padding-top: 24px; }
  .vd-equipment ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
  .vd-description p { font-size: .875rem; }
}
@media (max-width: 360px) {
  .vehicle-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .vd-detail:not(.vd-detail-standalone) { padding-inline: 14px; }
  .vd-whatsapp { gap: 7px; padding-inline: 11px; }
  .vd-whatsapp img { width: 20px; height: 20px; flex-basis: 20px; }
  .vd-equipment ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .vd-detail *, .vehicle-dialog { scroll-behavior: auto; transition: none; }
}
