#exterior-scene {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(235, 244, 238, 0.10) 62%,
            rgba(9, 18, 13, 0.08) 100%
        ),
        url('../assets/showroom-background-v3.png') center center / cover no-repeat,
        radial-gradient(
            circle at 50% 48%,
            #CECECE 0%,
            #CECECE 55%,
            #CECECE 100%
        );
}

.exterior-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.exterior-stage.is-dragging {
    cursor: grabbing;
}

.exterior-media {
    position: relative;
    z-index: 5;
    width: min(100%, calc((100dvh - 160px) * 16 / 9), 1400px);
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
}

.exterior-car {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.exterior-source {
    display: none;
}

.exterior-hotspots {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.exterior-hotspot {
    --hotspot-color: var(--brand-green);
    position: absolute;
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    background: var(--hotspot-color);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.42),
        0 0 0 3px color-mix(in srgb, var(--hotspot-color) 24%, transparent);
    cursor: pointer;
    pointer-events: auto;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.exterior-hotspot::before {
    content: none;
}

.exterior-hotspot::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    width: max-content;
    max-width: 210px;
    transform: translate(-50%, 5px);
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(4, 7, 8, 0.88);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 150ms ease,
        transform 150ms ease;
}

.exterior-hotspot:hover,
.exterior-hotspot:focus-visible {
    transform: translate(-50%, -50%) scale(1.28);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.48),
        0 0 0 4px color-mix(in srgb, var(--hotspot-color) 30%, transparent);
    outline: none;
}

.exterior-hotspot:hover::after,
.exterior-hotspot:focus-visible::after {
    transform: translate(-50%, 0);
    opacity: 1;
}

@keyframes exterior-hotspot-pulse {
    0% {
        transform: scale(0.82);
        opacity: 0.52;
    }

    72%,
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.spin-indicator {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #777777;
    pointer-events: none;
}

.spin-indicator-icon {
    font-size: 28px;
    letter-spacing: -2px;
}

.spin-indicator strong {
    font-size: 14px;
    font-weight: 700;
}

.spin-indicator span {
    font-size: 12px;
}

.exterior-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    color: #111111;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.exterior-arrow:hover {
    background: #ffffff;
}

.exterior-arrow.previous {
    left: 24px;
}

.exterior-arrow.next {
    right: 24px;
}

.loading-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 50;
    transform: translate(-50%, -50%);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: white;
    font-size: 13px;
    pointer-events: none;
}

.loading-indicator.is-hidden {
    display: none;
}

.exterior-error {
    position: absolute;
    left: 50%;
    bottom: 90px;
    z-index: 50;
    display: none;
    transform: translateX(-50%);
    max-width: calc(100vw - 40px);
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(130, 0, 0, 0.90);
    color: #ffffff;
    font-size: 13px;
    text-align: center;
}

.exterior-error.is-visible {
    display: block;
}
