/* VR Tour Popup Styles */

/* Popup Overlay */
.vr-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.vr-tour-overlay.active {
    display: flex;
    opacity: 1;
}

/* Popup Container */
.vr-tour-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    max-width: 1400px;
    max-height: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Top Bar for Close Button */
.vr-tour-topbar {
    position: relative;
    width: 100%;
    height: 50px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    z-index: 1000001;
    flex-shrink: 0;
}

/* Close Button - Inside Top Bar */
.vr-tour-close {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vr-tour-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Fullscreen Button - Remove completely */
.vr-tour-fullscreen {
    display: none !important;
}

/* Tour Container - Adjusted for top bar */
.vr-tour-pane {
    width: 100%;
    height: calc(100% - 50px);
    position: relative;
    background: #000;
    flex: 1;
}

.vr-tour-overlay.active .vr-tour-container {
    transform: scale(1);
}

/* Loading Screen - Adjusted for top bar */
.vr-tour-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    z-index: 100;
}

.vr-tour-loading.hidden {
    display: none;
}

.vr-tour-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: vr-tour-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes vr-tour-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vr-tour-loading p {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vr-tour-container {
        width: 98vw;
        height: 98vh;
        border-radius: 0;
    }
    
    .vr-tour-topbar {
        height: 45px;
        padding: 0px;
    }
    
    .vr-tour-close {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .vr-tour-pane {
        height: calc(100% - 45px);
    }
}

/* Fullscreen mode */
.vr-tour-overlay.fullscreen {
    background: #000;
}

.vr-tour-overlay.fullscreen .vr-tour-container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
}

/* Error state */
.vr-tour-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
    max-width: 400px;
}

.vr-tour-error h3 {
    margin: 0 0 15px 0;
    color: #e74c3c;
}

.vr-tour-error p {
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.vr-tour-error button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.vr-tour-error button:hover {
    background: #c0392b;
}

/* Prevent body scroll when popup is open */
body.vr-tour-open {
    overflow: hidden;
}