@layer base {
  html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #FFFFFF;
    color-scheme: only dark;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
  }
  body { overscroll-behavior-y: none; }
  .pb-safe { padding-bottom: env(safe-area-inset-bottom, 16px); }
  .pt-safe { padding-top: env(safe-area-inset-top, 16px); }
}

::-webkit-scrollbar { display: none; }

#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #e5e3df;
  z-index: 1;
}

/* Tarjetas de Selección de Rol */
.selection-card {
  background-color: #161616;
  border: 2px solid #FFFFFF;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}
.selection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px 0 rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}
.selection-card:active {
  transform: scale(0.985);
}

/* Marcador Animado de Autobús en Leaflet */
.bus-pulse-ring {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.95; }
  50% { transform: scale(1.4); opacity: 0.15; }
  100% { transform: scale(0.7); opacity: 0.95; }
}
.bus-pin-core {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

/* Punto Blanco de Ubicación del Usuario */
.user-pulse-halo {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.user-white-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3.5px solid #000000;
  box-shadow: 0 0 0 2px #FFFFFF, 0 4px 12px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

.leaflet-popup-content-wrapper {
  background: #141416 !important;
  color: #FFFFFF !important;
  border: 1px solid #333333 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8) !important;
  font-family: 'Inter', sans-serif !important;
}
.leaflet-popup-tip {
  background: #141416 !important;
}
