/**
 * Partnion360 Virtual Tour Styles
 */

/* =============================================================================
   Base Styles
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #1a1a1a;
}

/* =============================================================================
   Viewer Container
   ============================================================================= */

#viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #4a4a4a 0%, #2a2a2a 100%);
}

/* =============================================================================
   Photo Sphere Viewer Customization
   ============================================================================= */

.psv-canvas-container {
    background: #3a3a3a !important;
}

.psv-notification-content {
    font-size: 14px;
}

/* Virtual Tour Links */
.psv-virtual-tour-link {
    width: 60px !important;
    height: 60px !important;
    background: rgba(0, 123, 255, 0) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
    transform-origin: center center !important;
}

.psv-virtual-tour-link:hover {
    background: rgba(110, 110, 130, 0.9) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.psv-virtual-tour-link-arrow {
    border-color: white !important;
    border-width: 3px !important;
}

/* =============================================================================
   Error Display
   ============================================================================= */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.error-container h2 {
    color: #dc3545;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.error-container p {
    margin: 10px 0;
    color: #888;
    font-size: 14px;
    max-width: 400px;
}

/* =============================================================================
   Dev Tools - Coordinate Display
   ============================================================================= */

#coordinate-display {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    pointer-events: none;
    z-index: 10000;
    display: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#coordinate-display.active {
    display: block;
}

#coordinate-display .label {
    color: #888;
    margin-right: 4px;
}

#coordinate-display .value {
    color: #4ade80;
    font-weight: 600;
}

/* Crosshair cursor when coordinates are active */
#viewer.coordinates-active,
#viewer.coordinates-active .psv-container,
#viewer.coordinates-active .psv-canvas-container,
#viewer.coordinates-active canvas,
#viewer.coordinates-active * {
    cursor: crosshair !important;
}

/* Override PSV move cursor specifically */
#viewer.coordinates-active .psv-canvas-container[style*="cursor"] {
    cursor: crosshair !important;
}

/* =============================================================================
   Loading State
   ============================================================================= */

.loading-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
}
