/* Ajustes de compatibilidad para los controles PHP y Leaflet. */
.filters,
.filters .row,
.filters .row > * {
  min-width: 0;
}

.filters .row input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 7px;
}

.filters > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 15px;
}

.filters > button span {
  display: inline-block;
  flex: 0 0 auto;
  float: none;
  font-size: 16px;
  line-height: 1;
}

/* Evita que los estilos generales de input y label agranden el selector de capas. */
.leaflet-control-layers {
  font: 12px/1.45 "Segoe UI", Arial, sans-serif;
}

.leaflet-control-layers label {
  display: block;
  margin: 0;
  color: #173e4c;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

.leaflet-control-layers-selector,
.leaflet-control-layers input[type="radio"],
.leaflet-control-layers input[type="checkbox"] {
  display: inline-block;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 3px 5px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  vertical-align: top;
}

.leaflet-control-layers-base span,
.leaflet-control-layers-overlays span {
  display: inline;
  white-space: nowrap;
}

.events article {
  grid-template-columns: 66px minmax(0, 1fr) 20px;
  column-gap: 10px;
}

.events article > strong {
  min-width: 0;
  font-size: 22px;
  line-height: 1.1;
  white-space: nowrap;
}

.events article > div {
  min-width: 0;
}

.events article b,
.events article small {
  overflow-wrap: anywhere;
}

@media (max-width: 1150px) and (min-width: 741px) {
  .events article {
    grid-template-columns: 72px minmax(0, 1fr) 24px;
  }
}

@media (max-width: 420px) {
  .filters .row {
    grid-template-columns: 1fr;
  }
}
