* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#viewer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    direction: ltr !important;
}

#panorama {
    width: 100%;
    height: 100vh;
    direction: ltr !important;
}

.viewer-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 2rem 2rem 4rem 2rem;
    pointer-events: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.viewer-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.walkthrough-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.scene-info {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 350px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.scene-info h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.scene-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-overlay p {
    color: white;
    font-size: 1rem;
}

.pnlm-hotspot-base {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

.pnlm-hotspot-base.visible {
    opacity: 1;
    transform: scale(1);
}

.pnlm-hotspot-base:hover {
    transform: scale(1.2);
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.pnlm-hotspot-base::before {
    content: '→';
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.hotspot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.875rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pnlm-hotspot-base:hover .hotspot-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .viewer-header {
        padding: 1.5rem 1.5rem 3rem 1.5rem;
    }

    .viewer-header h1 {
        font-size: 1.5rem;
    }

    .walkthrough-description {
        font-size: 0.9rem;
    }

    .scene-info {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        padding: 1rem;
    }

    .scene-info h2 {
        font-size: 1.1rem;
    }

    .scene-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .viewer-header {
        padding: 1rem 1rem 2.5rem 1rem;
    }

    .viewer-header h1 {
        font-size: 1.25rem;
    }

    .scene-info {
        padding: 0.875rem;
    }

    .pnlm-hotspot-base {
        width: 50px;
        height: 50px;
    }
}

.pnlm-hotspot {
    transition: none !important;
    will-change: auto !important;
    direction: ltr !important;
}

.pnlm-sprite {
    transition: none !important;
    direction: ltr !important;
}

.pnlm-about-msg {
    display: none !important;
}

.pnlm-about-msg a {
    display: none !important;
}
