/* Estilos do protótipo do Gemini (copiados) + o que o mapa de verdade precisa */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: radial-gradient(circle at top left, #111827, #05070a 70%); overflow: hidden; height: 100dvh; width: 100vw; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
@keyframes radarPing { 0% { transform: scale(0.8); opacity: 0.75; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes heatPulse { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.38); opacity: 0.2; } }
.animate-radar { animation: radarPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-heat { animation: heatPulse 2.2s ease-in-out infinite; }
.glass-dark { background: rgba(15, 20, 30, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); }
.glass-light { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(15, 23, 42, 0.08); }
.sheet-transition { transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease; }
.scale-115 { transform: translate(-50%, -50%) scale(1.15) !important; }

/* mapa de verdade com as cores do protótipo (noite: fundo #0b0f17; dia: #eef2f6) */
#map-viewport { z-index: 0; isolation: isolate; } /* o Leaflet usa z-index 400+: fica preso dentro do mapa */
#mapa { background: #0b0f17; }
#mapa .leaflet-tile-pane { filter: brightness(.82) contrast(1.05); }
.modo-dia #mapa .leaflet-tile-pane { filter: none; }
.modo-dia #mapa { background: #eef2f6; }
.leaflet-container { font-family: 'Inter', sans-serif; }
.leaflet-control-attribution { background: rgba(11,15,23,.6) !important; color: #64748b !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: #94a3b8 !important; }
.modo-dia .leaflet-control-attribution { background: rgba(255,255,255,.7) !important; }
.leaflet-bottom.leaflet-right { bottom: 68px; }
.pin-px { background: none !important; border: 0 !important; }
.pin-px > button { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.pin-px > button:hover { transform: translate(-50%, -50%) scale(1.05); }

/* tela de entrar */
.auth-fundo { background: radial-gradient(120% 70% at 20% 0%, rgba(34,211,238,.28), transparent 60%), radial-gradient(90% 60% at 100% 30%, rgba(244,63,94,.22), transparent 60%), linear-gradient(180deg, #0b0f17 20%, #05070a); }

/* celular com entalhe */
@media (max-width: 639px) {
  .topo-seguro { padding-top: max(env(safe-area-inset-top), 12px) !important; }
  #bottom-nav { height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .baixo-seguro { padding-bottom: max(env(safe-area-inset-bottom), 12px); }
}
