/* ============================================================ */
/* mapa-3d.css — Estilos exclusivos: Mapa 3D                    */
/* Depende de: variables.css, reset.css, components.css          */
/* ============================================================ */

/* Override: body escuro, overflow hidden */
body {
    background: #0a0a0a;
    color: white;
    overflow: hidden;
}

/* Override: header fixo transparente */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 61, 46, 0.95);
    backdrop-filter: blur(10px);
}

/* Container do Mapa 3D */
#mapa-3d-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #87CEEB 0%, #98D8C8 100%);
}

/* Painel de Informações */
.info-panel {
    position: fixed;
    top: 90px;
    left: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    color: #333;
    z-index: 100;
}

.info-panel h2 {
    color: var(--forest-deep);
    font-family: var(--font-display);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-panel p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Legenda */
.legenda {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.legenda-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.legenda-cor { width: 16px; height: 16px; border-radius: 50%; }

/* Controles */
.controles {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 100;
}

.controle-btn {
    background: var(--forest-deep);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.controle-btn:hover {
    background: var(--gold-polish);
    color: var(--forest-deep);
}

/* Instruções */
.instrucoes {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(10, 61, 46, 0.9);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    z-index: 100;
}

.instrucoes p { margin-bottom: 0.3rem; }

/* Loading */
.loading {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--forest-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading.hide { opacity: 0; pointer-events: none; }

.loading-spinner {
    width: 60px; height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--gold-polish);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading p { margin-top: 1rem; color: white; }

/* Responsivo */
@media (max-width: 768px) {
    .info-panel {
        top: auto; bottom: 80px;
        left: 10px; right: 10px;
        width: auto;
    }
    .instrucoes { display: none; }
}
