/* ═══════════════════════════════════════════════════════════════════
   NAV IN-APP — solo el mapa y marcadores. UI vive en topBar/actionBar.
═══════════════════════════════════════════════════════════════════ */

/* Mapa ocupa toda la zona content (fullbleed) */
.nav-map {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0e1a;
}

.leaflet-container { background: #0a0e1a !important; height: 100% !important; }
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom {
  margin: 12px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
.leaflet-control-zoom a {
  background: rgba(8, 12, 22, 0.96) !important;
  color: #00d4ff !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  font-size: 18px !important;
  backdrop-filter: blur(10px);
}
.leaflet-control-zoom a:first-child { border-radius: 10px 10px 0 0 !important; }
.leaflet-control-zoom a:last-child  { border-radius: 0 0 10px 10px !important; border-top: none !important; }

/* Origen — punto azul con pulso */
.nav-origin-mk { position: relative; width: 32px; height: 32px; }
.nav-origin-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.4);
  animation: nav-pulse 1.8s ease-out infinite;
}
.nav-origin-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #00d4ff;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.7);
}
@keyframes nav-pulse {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Destino simple (single stop) */
.nav-dest-pin {
  font-size: 32px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7));
  text-align: center;
  line-height: 36px;
}

/* Destinos numerados (multi-stop) */
.nav-dest-num {
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #ff3355, #c41e3a);
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(255, 51, 85, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 800;
  margin-left: 2px;
}
.nav-dest-num > * { display: inline-block; transform: rotate(45deg); }
.nav-dest-num { position: relative; }
.leaflet-marker-icon .nav-dest-num::before {
  content: attr(data-num);
  transform: rotate(45deg);
}

/* Visitado (verde) */
.nav-dest-visited .nav-dest-num {
  background: linear-gradient(135deg, #00ff88, #00cc6a) !important;
  box-shadow: 0 6px 16px rgba(0, 255, 136, 0.5) !important;
}

/* Loading / error */
.nav-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  padding: 60px 20px;
  height: 100%;
}
.nav-loading-spin {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 212, 255, 0.15);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: nav-spin 0.9s linear infinite;
}
@keyframes nav-spin { to { transform: rotate(360deg); } }
