/* 360 Viewer Styles */
.viewer-360-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    /* Allow vertical scroll but capture horizontal */
}

.viewer-360-container:active {
    cursor: grabbing;
}

.viewer-360-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.viewer-360-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(4px);
    font-size: 14px;
    font-weight: 500;
}

.viewer-360-overlay.fade-out {
    opacity: 0;
}

.viewer-icon {
    animation: rotate-hint 2s infinite ease-in-out;
}

@keyframes rotate-hint {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.viewer-360-loader {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffb800);
    width: 0%;
    transition: width 0.2s ease, opacity 0.5s ease;
    z-index: 10;
}