/* AR Navigation Styles */
.ar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    display: none;
    /* Hidden by default */
    flex-direction: column;
}

.ar-overlay.active {
    display: flex;
}

.ar-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ar-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ar-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.ar-instruction-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    pointer-events: auto;
    text-align: center;
}

.ar-distance {
    font-size: 32px;
    font-weight: 800;
    color: #4285F4;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.ar-next-step {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
}

.ar-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
    transition: transform 0.2s;
}

.ar-close-btn:active {
    transform: scale(0.9);
}

/* 3D Arrow Container (Legacy CSS Fallback - Hidden for Three.js) */
.ar-arrow-container {
    display: none;
}

.ar-arrow {
    display: none;
}

.ar-calibration-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    z-index: 20;
    display: none;
}