/* Ajustes del front sobre el CSS de los bocetos (no se edita styles.css). */

/* Íconos de templates/fragments/iconos.html: tamaño por defecto. :where() no suma especificidad,
   así que las reglas de cada sección del boceto (.icon-square svg, .marker__icon svg, ...) siguen
   mandando. */
:where(svg[viewBox="0 0 24 24"]) {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* Avisos con el resultado de la última acción */
.alert > svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}
.avisos {
  margin: 16px auto 0;
}
.avisos .alert + .alert {
  margin-top: 8px;
}

/* Campana y cerrar sesión del menú */
.icon-btn > svg {
  width: 20px;
  height: 20px;
}
.navbar__logout {
  margin: 0;
}
.navbar__logout button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.vacio {
  padding: 32px;
  text-align: center;
  color: var(--muted, #667);
}

/* Mapas reales (Leaflet + OpenStreetMap) dentro de los contenedores .map de los bocetos */
.map-real {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e8ecef;
}
.map-real__vacio {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  z-index: 1;
}
.map .map-legend,
.tracking__overlay {
  z-index: 2;
}
.marcador {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #fff;
  font: 700 13px/1 system-ui, sans-serif;
}
.marcador svg {
  width: 18px;
  height: 18px;
}
.marcador--entrega,
.marcador--hecha {
  background: #0a7a52;
}
.leaflet-marker-icon.marcador {
  display: grid;
}
/* En el mapa público los mosaicos van apagados para que resalten los marcadores */
.map--entregas .leaflet-tile-pane {
  filter: grayscale(0.9) brightness(1.06) contrast(0.92);
}
.marcador--entidad {
  background: #0a7a52;
  cursor: pointer;
  transition: transform 0.15s;
}
.marcador--entidad:hover {
  transform: scale(1.12);
}
.marcador--elegido {
  background: #003366;
  font-size: 15px;
  box-shadow: 0 0 0 6px rgba(0, 51, 102, 0.22), 0 4px 12px rgba(0, 0, 0, 0.35);
}
.leaflet-tooltip {
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.18);
  font: 13px/1.35 var(--font, system-ui, sans-serif);
  color: #1f2937;
}
.marcador--parada {
  background: #6b7a89;
}
.marcador--proxima {
  background: #003366;
}
.marcador--fallida {
  background: #c0392b;
}
.marcador--camion {
  background: #1f6feb;
}
