/* SysAgu@ — mejoras Leaflet (pantalla completa + capas) */

.sysagua-leaflet-map.leaflet-container {
  z-index: 1;
  background: #dce6f0;
}

/* Pantalla completa nativa */
.sysagua-leaflet-map:fullscreen,
.sysagua-leaflet-map:-webkit-full-screen,
.sysagua-leaflet-map:-ms-fullscreen {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: 0 !important;
  z-index: 10000;
}

/* Fallback sin Fullscreen API */
.sysagua-leaflet-map.sysagua-leaflet-pseudo-fs {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  border-radius: 0 !important;
  border: 0 !important;
  margin: 0 !important;
}

.leaflet-control.sysagua-leaflet-fullscreen a.sysagua-leaflet-fs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  line-height: 1;
  text-decoration: none;
  color: #333;
  background: #fff;
}

.leaflet-control.sysagua-leaflet-fullscreen a.sysagua-leaflet-fs-btn:hover {
  background: #f4f4f4;
}

.leaflet-control.sysagua-leaflet-fullscreen a.sysagua-leaflet-fs-btn i {
  font-size: 13px;
  line-height: 1;
}

.leaflet-control-layers {
  border-radius: 4px;
  font-size: 0.85rem;
}

.leaflet-control-layers label {
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Contenedores habituales del proyecto */
#mapaMatriculas,
#mapaPredio,
#mapaRecorrido,
#map.sysagua-leaflet-map,
.sysagua-leaflet-host {
  position: relative;
}
