/* Compact browse view, spacious vehicle detail view. */
html:root:root :is(#fahrzeuge,#baumaschinen,#anhaenger) .car-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
html:root:root :is(#fahrzeuge,#baumaschinen,#anhaenger) .car-body{padding:22px}
html:root:root :is(#fahrzeuge,#baumaschinen,#anhaenger) .car-body h3{font-size:30px}
html:root:root :is(#fahrzeuge,#baumaschinen,#anhaenger) .car-specs{padding:18px 0;gap:16px;margin-top:20px}
html:root:root #vehicle-dialog{width:min(1240px,calc(100vw - 64px));max-width:none;height:min(900px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);padding:0;margin:auto;border:1px solid var(--at-line);border-radius:12px;background:var(--at-bg);color:var(--at-ink);box-shadow:0 32px 120px #0006;overflow:hidden;font-family:Arial,"Segoe UI",sans-serif}
html:root:root #vehicle-dialog::backdrop{background:#080b10ae;backdrop-filter:blur(8px)}
html:root:root #vehicle-detail{height:100%;display:flex;flex-direction:column;min-height:0}
.detail-topbar{height:68px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 80px 0 32px;border-bottom:1px solid var(--at-line);background:var(--at-bg);gap:20px}
.detail-topbar>strong{font-size:13px;letter-spacing:.04em;font-weight:600}.detail-topbar>span{font-size:11px;color:var(--at-muted)}
html:root:root #vehicle-dialog .dialog-close{position:absolute;top:15px;right:20px;z-index:5;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--at-line);border-radius:50%;background:var(--at-surface);color:var(--at-ink);font-size:16px;cursor:pointer;transition:background .2s,color .2s,transform .2s}
html:root:root #vehicle-dialog .dialog-close:hover{background:var(--at-ink);color:var(--at-bg);transform:rotate(90deg)}
html:root:root #vehicle-dialog .detail-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:28px 32px 36px;background:var(--at-bg)}
html:root:root #vehicle-dialog .detail-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:34px;align-items:start;background:transparent}
html:root:root #vehicle-dialog .detail-media{min-width:0;background:transparent;position:sticky;top:0;border-radius:8px;overflow:hidden}
html:root:root #vehicle-dialog .gallery-stage{position:relative;width:100%;background:var(--at-surface);border:1px solid var(--at-line);border-radius:8px;overflow:hidden;min-height:220px}
html:root:root #vehicle-dialog .detail-image{width:100%;height:auto;max-height:480px;min-height:0;aspect-ratio:4/3;object-fit:contain;display:block;background:var(--at-surface);cursor:zoom-in}
html:root:root #vehicle-dialog .detail-badge{position:absolute;top:16px;left:16px;max-width:calc(100% - 80px);background:var(--at-bg);color:var(--at-ink);border:1px solid var(--at-line);padding:7px 10px;font-size:10px;border-radius:3px;letter-spacing:.03em}
html:root:root #vehicle-dialog :is(.gallery-prev,.gallery-next){position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:44px;border:1px solid #ddd;background:#fffffff0;color:#161616;border-radius:4px;font-size:28px;cursor:pointer}
html:root:root #vehicle-dialog .gallery-prev{left:12px}html:root:root #vehicle-dialog .gallery-next{right:12px}
html:root:root #vehicle-dialog .gallery-count{position:absolute;bottom:14px;right:14px;background:#111c;color:#fff;padding:6px 10px;border-radius:3px;font-size:11px}
html:root:root #vehicle-dialog .gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:12px 0 4px;background:transparent;scrollbar-width:thin}
html:root:root #vehicle-dialog .gallery-thumbs button{flex:0 0 76px;width:76px;height:58px;border:2px solid transparent;border-radius:4px;padding:0;background:var(--at-surface);overflow:hidden;opacity:.65;cursor:pointer}
html:root:root #vehicle-dialog .gallery-thumbs button[aria-pressed="true"]{border-color:var(--at-red);opacity:1}
html:root:root #vehicle-dialog .gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
html:root:root #vehicle-dialog .detail-body{padding:4px 0 0;background:transparent;min-width:0}
html:root:root #vehicle-dialog .car-brand{display:block;font-size:11px;letter-spacing:.16em;font-weight:600;color:var(--at-muted);margin-bottom:10px}
html:root:root #vehicle-dialog #detail-title{font-family:OKDisplay,Arial,sans-serif;font-size:clamp(36px,4vw,52px);font-weight:600;line-height:1.06;letter-spacing:0;margin:0 0 16px;color:var(--at-ink);overflow-wrap:anywhere}
html:root:root #vehicle-dialog .detail-description{font-size:14px;line-height:1.75;color:var(--at-muted);margin:0 0 24px;overflow-wrap:anywhere}
html:root:root #vehicle-dialog .detail-price{background:var(--at-surface);border-left:3px solid var(--at-red);padding:20px 24px;font-size:34px;font-weight:600;letter-spacing:-.035em;line-height:1.2;margin:0 0 28px;color:var(--at-ink)}
.detail-price-label{display:block;font-size:11px;letter-spacing:.04em;font-weight:400;color:var(--at-muted);margin-bottom:8px}
html:root:root #vehicle-dialog .detail-price small{display:block;font-size:11px;letter-spacing:0;font-weight:400;color:var(--at-muted);margin-top:8px}
.detail-facts-title{font-size:14px!important;font-family:Arial,sans-serif!important;font-weight:600;letter-spacing:0;margin:0 0 14px;color:var(--at-ink)}
html:root:root #vehicle-dialog .detail-facts{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;margin:0 0 22px;padding:0;background:transparent;border:0}
html:root:root #vehicle-dialog .detail-facts>div{padding:14px 0;border:0;border-top:1px solid var(--at-line);min-width:0}
html:root:root #vehicle-dialog .detail-facts dt{font-size:11px;color:var(--at-muted);margin:0 0 7px}
html:root:root #vehicle-dialog .detail-facts dd{font-size:16px;line-height:1.4;font-weight:500;margin:0;color:var(--at-ink);overflow-wrap:anywhere}
html:root:root #vehicle-dialog .vehicle-energy{font-size:12px;line-height:1.6;border-color:var(--at-line);color:var(--at-muted);margin:18px 0;padding-top:18px}
html:root:root #vehicle-dialog .vehicle-energy>strong{font-size:12px;color:var(--at-ink)}
html:root:root #vehicle-dialog .vehicle-energy p{font-size:12px;color:var(--at-muted)}
html:root:root #vehicle-dialog .vehicle-energy dd{white-space:normal;text-align:right}
html:root:root #vehicle-dialog .detail-source{font-size:11px;color:var(--at-muted);line-height:1.6;margin:16px 0 0}
html:root:root #vehicle-dialog .detail-information{display:grid;grid-template-columns:1.2fr 1fr;gap:36px;padding:32px 0 0;margin-top:32px;border-top:1px solid var(--at-line);background:transparent}
html:root:root #vehicle-dialog .detail-information section{min-width:0;padding:0;background:transparent;border:0}
html:root:root #vehicle-dialog .detail-information h3{font-family:Arial,sans-serif;font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--at-ink);margin:0 0 20px}
html:root:root #vehicle-dialog :is(.original-description,.detail-missing,.original-title,.detail-load-status){font-size:14px;line-height:1.85;color:var(--at-muted);overflow-wrap:anywhere}
html:root:root #vehicle-dialog .original-description{white-space:pre-line;margin:0}
html:root:root #vehicle-dialog .equipment-list{display:grid;grid-template-columns:1fr;gap:12px;padding:0;list-style:none;color:var(--at-ink);font-size:14px;line-height:1.6}
html:root:root #vehicle-dialog .equipment-list li:before{color:var(--at-red)}
html:root:root #vehicle-dialog .detail-actions{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 32px;background:var(--at-bg);color:var(--at-ink);border-top:1px solid var(--at-line);box-shadow:0 -8px 24px #00000004}
html:root:root #vehicle-dialog .detail-actions>div:first-child{color:var(--at-ink)}
html:root:root #vehicle-dialog .detail-actions strong{display:block;font-size:14px;font-weight:600;margin-bottom:5px}
html:root:root #vehicle-dialog .detail-actions>div>span{font-size:12px;color:var(--at-muted);line-height:1.5}
html:root:root #vehicle-dialog .detail-actions .actions{display:flex;gap:10px;flex-wrap:nowrap}
html:root:root #vehicle-dialog .detail-actions .btn{min-height:46px;padding:13px 18px;font-size:12px;font-weight:600;border-radius:4px;background:var(--at-red);color:#fff;border:1px solid var(--at-red);white-space:nowrap;gap:22px}
html:root:root #vehicle-dialog .detail-actions .btn.secondary{background:transparent;color:var(--at-ink);border-color:var(--at-line)}
html:root:root #vehicle-dialog :is(button,a,img[role="button"]):focus-visible{outline:3px solid var(--at-red);outline-offset:3px}
@media(max-width:1050px){html:root:root :is(#fahrzeuge,#baumaschinen,#anhaenger) .car-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){html:root:root #vehicle-dialog{width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);border-radius:10px}.detail-topbar{height:58px;padding:0 64px 0 20px}.detail-topbar>span{display:none}html:root:root #vehicle-dialog .dialog-close{top:10px;right:12px;width:36px;height:36px}html:root:root #vehicle-dialog .detail-scroll{padding:18px 18px 28px}html:root:root #vehicle-dialog .detail-layout{grid-template-columns:1fr;gap:24px}html:root:root #vehicle-dialog .detail-media{position:static}html:root:root #vehicle-dialog .detail-image{max-height:360px}html:root:root #vehicle-dialog #detail-title{font-size:38px}html:root:root #vehicle-dialog .detail-information{grid-template-columns:1fr;gap:32px;margin-top:26px;padding-top:26px}html:root:root #vehicle-dialog .detail-actions{padding:14px 18px}html:root:root #vehicle-dialog .detail-actions>div:first-child{display:none}html:root:root #vehicle-dialog .detail-actions .actions{width:100%;display:grid;grid-template-columns:auto 1fr}html:root:root #vehicle-dialog .detail-actions .btn{padding:12px;font-size:11px;justify-content:center;gap:12px}}
@media(max-width:700px){html:root:root :is(#fahrzeuge,#baumaschinen,#anhaenger) .car-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html:root:root #vehicle-dialog .dialog-close{transition:none}html:root:root #vehicle-dialog .dialog-close:hover{transform:none}}
html:root:root #vehicle-detail{max-height:none;box-sizing:border-box}
html:root:root #vehicle-dialog .detail-scroll{max-height:none;box-sizing:border-box}
html:root:root #vehicle-dialog .detail-badge{bottom:auto;right:auto;width:max-content;height:auto}
html:root:root #vehicle-dialog .detail-actions{position:static;bottom:auto}
