/* --- Pano Viewer Hybrid Kernel Styles --- */

/* --- Viewer Toggle & Controls --- */
.viewer-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 50;
    display: flex;
    gap: 8px;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 300ms ease;
}
#viewer-container:hover .viewer-controls {
    opacity: 1;
}
@media (max-width: 768px) {
    .viewer-controls { opacity: 1; }
}
.viewer-toggle {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    padding: 2px;
    display: flex;
    align-items: center;
    height: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.viewer-toggle-btn {
    height: 24px;
    padding: 0 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 200ms ease;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.viewer-toggle-btn.active {
    background: white;
    color: #0f172a;
}
.viewer-toggle-btn:not(.active):hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Error States --- */
.viewer-error-state {
    position: absolute;
    inset: 0;
    background: #f5f5f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    z-index: 40;
}
.viewer-error-icon {
    width: 64px;
    height: 64px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
