.vehicle-gallery{background:#11151c;color:#edf0f4}
.gallery-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 58px 14px 14px;min-height:64px}
.vehicle-gallery button{min-height:42px;padding:9px 12px;border:1px solid #4a5362;border-radius:6px;background:#252d39;color:#edf0f4;font-size:12px;font-weight:650}
.vehicle-gallery button:hover{background:#384354}
.vehicle-gallery button:disabled{opacity:.4;cursor:default}
.gallery-zoom{min-width:42px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.gallery-stage{position:relative;height:clamp(250px,52vh,520px);overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;cursor:zoom-in}
.gallery-stage.is-zoomed{cursor:grab}
.gallery-stage.is-zoomed:active{cursor:grabbing}
.gallery-stage #gallery-main{width:100%;height:100%;max-width:none;object-fit:contain;transform-origin:center;pointer-events:none;user-select:none;-webkit-user-drag:none;will-change:transform}
.gallery-navigation{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px 4px}
.gallery-counter{font-size:13px;font-variant-numeric:tabular-nums}
.vehicle-gallery .gallery-help{font-size:11px;text-align:center;padding:8px 14px 0;color:#afb7c4}
.vehicle-gallery .gallery-thumbs{padding:12px 14px;overscroll-behavior-x:contain}
.vehicle-gallery .gallery-thumbs button{padding:0;min-width:72px}
.vehicle-gallery .gallery-thumbs button[aria-pressed=true]{border:2px solid #ed1634}
@media(max-width:600px){.gallery-toolbar{gap:6px;padding-left:10px}.gallery-toolbar button{padding:8px;font-size:11px}.gallery-stage{height:clamp(240px,44vh,400px)}.gallery-toolbar [data-gallery=reset]{font-size:10px}}
.vehicle-sharing{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}.vehicle-sharing p{width:100%;font-size:12px;margin:0}.vehicle-sharing input{display:block;width:100%;padding:10px;background:#171c24;color:#edf0f4;border:1px solid #697a92;border-radius:6px}.shared-vehicle-notice{padding:16px;margin-bottom:24px;background:#33212a;border:1px solid #61404a;border-radius:8px;color:#ffbbc5}
.vehicle-photo-button{display:block;width:100%;padding:0;border:0;text-align:left;cursor:pointer}.vehicle-photo-button:focus-visible{outline:3px solid #ff8192;outline-offset:-4px}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.vehicle-card .card-bottom{flex-wrap:wrap}.card-share{background:#c81836;color:white;border-color:#c81836}.card-share-status{font-size:11px;margin-top:12px;overflow-wrap:anywhere}.card-share-status:empty{display:none}.card-share-status input{width:100%;padding:8px;background:#171c24;color:#edf0f4;border:1px solid #697a92;border-radius:5px}.sold-section{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#171c24}.badge-vendido{background:#343b46!important;border-color:#697a92!important}.sold-caption{font-weight:750;color:#c8d2df}

.card-whatsapp{display:flex;justify-content:center;width:100%;margin-top:18px;font-size:14px;min-height:44px}

/* Give vehicle photographs the full detail width, with a dedicated large view. */
#detail-dialog{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:94vh;max-height:94dvh}
#detail-dialog .gallery-stage{height:auto;aspect-ratio:3/2;max-height:70vh;max-height:70dvh;min-height:240px}
#detail-dialog .dialog-body{max-width:900px;margin:auto}
#detail-dialog .gallery-thumbs{display:flex;gap:8px;overflow-x:auto}
#detail-dialog .gallery-thumbs button{flex:0 0 84px}
#detail-dialog .gallery-thumbs img{width:80px;height:56px;object-fit:cover}
#detail-dialog.gallery-only{width:100vw;height:100vh;height:100dvh;max-height:none;max-width:none;margin:0;border-radius:0}
#detail-dialog.gallery-only .vehicle-gallery{height:100vh;height:100dvh;display:flex;flex-direction:column}
#detail-dialog.gallery-only .gallery-stage{flex:1;aspect-ratio:auto;min-height:0;max-height:none;height:auto}
#detail-dialog.gallery-only .gallery-toolbar,#detail-dialog.gallery-only .gallery-navigation{flex-shrink:0}
#detail-dialog.gallery-only .gallery-navigation{padding-bottom:max(12px,env(safe-area-inset-bottom))}
#detail-dialog.gallery-only .dialog-body,#detail-dialog.gallery-only .gallery-help,#detail-dialog.gallery-only .gallery-thumbs{display:none}
@media(max-width:600px){#detail-dialog{width:100vw;max-height:100vh;max-height:100dvh;margin:0;min-height:100dvh;border-radius:0}#detail-dialog .gallery-stage{min-height:0;max-height:72dvh;aspect-ratio:3/2}#detail-dialog .gallery-toolbar{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:10px}#detail-dialog .dialog-close{top:max(12px,env(safe-area-inset-top))}#detail-dialog .dialog-body{padding:22px 18px}#detail-dialog .gallery-thumbs{padding:10px}#detail-dialog .gallery-help{margin:4px 0;padding-top:4px}}
