/* Explain: Styles for the interactive 3D car viewer, including door controls. */
.viewer-section { background: var(--garage-background); color: var(--garage-text); padding-block: 64px; overflow: hidden; }
.viewer-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--viewer-muted); }
.viewer-subtitle { color: var(--viewer-muted); }
.viewer-section .car-stage { cursor: grab; }
.viewer-section .car-stage:focus-visible { outline: 2px solid var(--garage-accent); outline-offset: -4px; }
.viewer-tools { position: absolute; top: 16px; right: 16px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.viewer-section .viewer-control { min-height: 44px; padding: 10px 14px; background: var(--viewer-control); border: 1px solid var(--viewer-border); color: var(--garage-text); border-radius: 7px; font-size: 11px; gap: 8px; }
.viewer-section .viewer-control.btn-square { width: 44px; padding: 10px; }
.viewer-section .viewer-control:hover, .viewer-section .viewer-control[aria-pressed="true"] { background: var(--garage-raised); border-color: var(--garage-accent); transform: none; }
.viewer-mode { position: absolute; bottom: 16px; left: 24px; z-index: 5; }
.viewer-instructions { position: absolute; bottom: 16px; right: 24px; z-index: 3; max-width: calc(100% - 245px); padding: 10px; border-radius: 7px; background: var(--garage-overlay); color: var(--viewer-muted); font-size: 10px; line-height: 1.6; pointer-events: none; }
.viewer-status { position: absolute; top: 24px; left: 24px; z-index: 4; max-width: min(440px, calc(100% - 48px)); padding: 16px; border: 1px solid var(--garage-border); border-radius: 10px; background: var(--garage-overlay); color: var(--garage-text); font-size: 12px; line-height: 1.7; text-align: left; }
.viewer-section .part-label { position: absolute; z-index: 4; display: inline-flex; align-items: center; justify-content: center; width: max-content; min-height: 36px; padding: 8px 14px; background: var(--viewer-hotspot); border: 1px solid var(--viewer-hotspot-border); border-radius: 8px; color: var(--garage-text); font-size: 11px; font-weight: 500; line-height: 1.35; white-space: nowrap; box-shadow: none; backdrop-filter: blur(8px); transform: translate(17px, -50%); transition: background .2s, border-color .2s; }
.viewer-section .part-label::before { content: ''; position: absolute; left: -24px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--white-color); transform: translateY(-50%); box-shadow: 0 0 0 3px var(--primary-color), 0 0 0 7px var(--viewer-hotspot-glow), 0 0 19px var(--garage-led-halo); }
.viewer-section .part-label::after { content: ''; position: absolute; left: -14px; top: 50%; width: 14px; height: 1px; background: var(--garage-accent); transform: translateY(-50%); opacity: .8; }
.viewer-section .part-label[data-align="left"] { transform: translate(calc(-100% - 17px), -50%); }
.viewer-section .part-label[data-align="left"]::before { left: auto; right: -24px; }
.viewer-section .part-label[data-align="left"]::after { left: auto; right: -14px; }
.viewer-section .part-label:hover, .viewer-section .part-label:focus-visible { background: var(--garage-raised); border-color: var(--garage-accent); }
.viewer-section .car-tooltip { background: var(--viewer-hotspot); color: var(--garage-text); border: 1px solid var(--garage-border); }
.viewer-search-area { max-width: 768px; }
.viewer-divider { display: flex; align-items: center; justify-content: center; gap: 16px; }
.viewer-divider > span { flex: 1; max-width: 120px; height: 1px; background: var(--garage-grid); }
.viewer-divider p { color: var(--viewer-subtle); text-transform: uppercase; letter-spacing: .2em; font-size: 9px; font-weight: 700; text-align: center; }
.viewer-search { display: flex; align-items: center; gap: 14px; padding: 7px 7px 7px 23px; border: 1px solid var(--viewer-border); border-radius: 40px; background: var(--viewer-control); box-shadow: var(--shadow-panel); }
.viewer-search:focus-within { border-color: var(--accent-color); }
.viewer-search > i { color: var(--viewer-muted); font-size: 18px; }
.viewer-search .input { width: auto; min-height: 48px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: var(--garage-text); font-size: 14px; outline: none; box-shadow: none; }
.viewer-search .input::placeholder { color: var(--viewer-subtle); opacity: 1; }
.viewer-search .viewer-search-submit { width: 48px; min-width: 48px; min-height: 48px; padding: 12px; border: 0; border-radius: 50%; background: var(--accent-color); color: var(--white-color); font-size: 16px; }
.viewer-search .viewer-search-submit:hover { background: var(--primary-hover); }
.viewer-components { background: transparent; border-color: var(--garage-border); color: var(--viewer-muted); border-radius: 12px; }
.viewer-components .collapse-title { min-height: 44px; padding-block: 13px; font-size: 11px; font-weight: 500; }
.viewer-components .collapse-content { color: var(--garage-text); }
.viewer-components .viewer-part { min-height: 44px; padding: 10px; background: var(--viewer-control); color: var(--garage-text); border-color: var(--garage-border); font-size: 11px; }
.viewer-components .viewer-part:hover { background: var(--garage-raised); border-color: var(--garage-accent); }
.viewer-disclaimer { color: var(--viewer-subtle); font-size: 10px; line-height: 1.6; text-align: center; }
@media (max-width: 640px) {
    .viewer-section { padding-block: 42px 32px; }
    .viewer-section .part-label { min-height: 44px; padding: 10px; font-size: 10px; }
    .viewer-mode { bottom: 55px; left: 16px; }
    .viewer-instructions { right: 16px; left: 16px; bottom: 10px; max-width: none; text-align: center; }
    .viewer-search { gap: 10px; padding-left: 16px; }
    .viewer-search .input { font-size: 12px; }
}
.search-mode-switch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.search-mode-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--viewer-border); border-radius: 40px; background: transparent; color: var(--viewer-muted); font-size: 12px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.search-mode-btn:hover { background: var(--garage-raised); color: var(--garage-text); }
.search-mode-btn.is-active { background: var(--garage-raised); border-color: var(--garage-accent); color: var(--garage-text); }
.search-mode-btn i { color: var(--garage-accent); }
.vin-hint { margin-top: 12px; text-align: center; font-size: 11px; line-height: 1.7; color: var(--viewer-subtle); }
.vin-status { margin-top: 12px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--garage-muted); }
.vin-status:empty { display: none; }
.vin-status[data-tone="error"] { color: #ffb3b3; }
.vin-status[data-tone="success"] { color: var(--garage-accent); }
@media (max-width: 640px) {
    .search-mode-btn { width: 100%; justify-content: center; }
}
.viewer-door-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding-block: 14px 8px; }
.viewer-door-status { flex-basis: 100%; color: var(--garage-muted); font-size: 11px; line-height: 1.8; text-align: center; margin-top: 2px; }
.viewer-door-tools .viewer-control:focus-visible { outline-color: var(--garage-accent); }
@media (max-width: 640px) {
    .viewer-door-tools { gap: 8px; }
    .viewer-door-tools .viewer-control { flex: 1 1 130px; }
}