#vehicle-detail{padding-top:24px;padding-bottom:32px}.detail-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:20px;align-items:start}.detail-layout>section,.detail-layout>aside{display:contents}.detail-layout>div{margin:0!important;border-radius:16px;box-shadow:none;padding:24px;min-width:0}#detail-gallery{grid-column:1;grid-row:1 / span 2;padding:0}#detail-summary{grid-column:2;grid-row:1}#detail-seller{grid-column:2;grid-row:2}#detail-description{grid-column:1;grid-row:3}#detail-specs{grid-column:1;grid-row:4}#detail-meta{grid-column:2;grid-row:3}#detail-stats{grid-column:2;grid-row:4}#detail-summary h1{font-size:26px;line-height:1.25}#detail-summary>p:first-child{font-size:12px}#detail-gallery img{object-fit:contain}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #e5e7eb;font-size:14px;color:#4b5563}.gallery-toolbar button,#description-toggle{font-weight:600;color:#4338ca;min-height:44px}.detail-highlights{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px;font-size:14px}.detail-highlights dt{color:#6b7280;font-size:12px}.detail-highlights dd{font-weight:600;margin-top:3px}#detail-specs summary{font-size:18px;font-weight:600;cursor:pointer;min-height:44px;align-content:center}#detail-specs dl>div{background:none;padding:8px 0;border-bottom:1px solid #f3f4f6;border-radius:0}#detail-stats>div{display:flex;gap:28px;margin-top:12px}#detail-stats>div>div{background:none;padding:0}#detail-stats p:last-child{font-size:18px;margin-top:4px}#detail-meta dl{margin-top:12px}#detail-meta dl>div{background:none;padding:8px 0}#detail-seller a,#detail-seller button{border-radius:10px}#detail-seller .reveal-contact{padding:12px;border-width:1px}#detail-seller [data-contact-status]:empty{display:none}.description-collapsed{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}#description-toggle[hidden]{display:none}#gallery-lightbox{z-index:100;background:#111827;overflow-y:auto;color:white}#gallery-lightbox-shell{min-height:100dvh;padding:16px;align-items:flex-start}#gallery-lightbox-content{margin:auto}#lightbox-image{height:70dvh;max-height:70dvh;border-radius:8px;object-fit:contain}.viewer-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:12px}.viewer-toolbar>button:last-child{margin-left:auto}.viewer-toolbar button{min-height:44px;padding:8px}#photo-overview:not([hidden]){display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin-top:16px}#photo-overview button{border:2px solid transparent;border-radius:8px;overflow:hidden}#photo-overview button[aria-current=true]{border-color:#a5b4fc}#photo-overview img{width:100%;height:80px;object-fit:cover}#photo-error{padding:16px;color:#fecaca}#mobile-contact-bar{display:none}#vehicle-detail button:focus-visible,#gallery-lightbox button:focus-visible{outline:3px solid #818cf8;outline-offset:3px}
@media(max-width:1023px){#vehicle-detail{padding:12px 12px calc(90px + env(safe-area-inset-bottom))}.detail-layout{display:flex;flex-direction:column;gap:12px}.detail-layout>div{width:100%;padding:16px;border-radius:12px}#detail-gallery{order:0;padding:0}#detail-summary{order:1}#detail-seller{order:2}#detail-description{order:3}#detail-specs{order:4}#detail-meta{order:5}#detail-stats{order:6}#detail-summary h1{font-size:23px}#detail-summary>p:first-child{display:none}#detail-summary>p{margin-top:12px;font-size:26px}#detail-seller>div{margin-top:12px}#detail-seller>a{padding:10px;margin-bottom:8px}#detail-seller .space-y-4>*+*{margin-top:10px}.detail-highlights{gap:12px;margin-top:16px}#mobile-contact-bar:not([hidden]){position:fixed;bottom:0;left:0;right:0;z-index:40;background:white;border-top:1px solid #e5e7eb;display:flex;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #11182708}#mobile-contact-bar>*{flex:1;min-width:0;min-height:44px;border-radius:10px;background:#4338ca;color:white;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center}#mobile-contact-bar>*+*{background:#eef2ff;color:#3730a3}#lightbox-image{height:60dvh;max-height:60dvh}#gallery-lightbox-shell{padding:12px}.gallery-toolbar{padding:6px 12px}}
html:has(#vehicle-detail){scroll-padding-bottom:100px}#vehicle-detail button,#vehicle-detail a{scroll-margin-block:100px}

.gallery-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 12px}.gallery-previews button{overflow:hidden;border-radius:8px;border:2px solid transparent;background:#f9fafb;min-width:0}.gallery-previews button[aria-current=true]{border-color:#4f46e5}#detail-gallery .gallery-previews img{display:block;width:100%;height:64px;object-fit:cover}
@media(min-width:1024px){#vehicle-detail{max-width:1440px;padding:36px 40px 56px}.detail-layout{grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);gap:28px 32px}.detail-layout>div{padding:30px;border-radius:20px}#detail-gallery{padding:0}#detail-summary h1{font-size:30px;line-height:1.3}.detail-highlights{gap:22px;margin-top:24px}.gallery-previews{gap:12px;padding:16px 20px}#detail-gallery .gallery-previews img{height:100px}.gallery-toolbar{padding:12px 20px}#detail-description{font-size:16px}}

.gallery-carousel{display:flex;align-items:center;gap:6px;padding:10px 8px}.gallery-previews{position:relative;display:flex;flex:1;min-width:0;gap:8px;padding:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}.gallery-previews::-webkit-scrollbar{display:none}.gallery-previews button{flex:0 0 calc((100% - 16px)/3);scroll-snap-align:start;min-height:64px}@media(min-width:1024px){.gallery-carousel{padding:16px;gap:10px}.gallery-previews{gap:12px;padding:0}.gallery-previews button{flex-basis:calc((100% - 36px)/4)}}

.gallery-navigation{display:flex;align-items:center;gap:8px}.gallery-navigation button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #e5e7eb;border-radius:50%;background:white;color:#374151;transition:background .15s}.gallery-navigation button:hover{background:#f3f4f6}.gallery-navigation svg{width:20px;height:20px}.gallery-expand{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;background:#ffffffdf;color:#374151;border-radius:8px}.gallery-expand svg{width:19px;height:19px}.gallery-toolbar{padding-top:6px;padding-bottom:6px}
