/* RD Lendava – Zemljevid voda v0.3.1 */

.map-page .page-intro {
  margin-bottom: 16px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.map-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 !important;
}

.map-filter button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dce5e1;
  border-radius: 999px;
  background: #fff;
  color: #24463e;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .16s ease;
}

.map-filter button:hover {
  border-color: #9ebcb3;
  background: #f4f8f6;
}

.map-filter button.active {
  border-color: #07584b;
  background: #07584b;
  color: #fff;
}

.map-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #66746f;
  font-size: 12px;
  font-weight: 700;
}

.map-summary strong {
  color: #07584b;
  font-size: 14px;
}

.waters-map {
  position: relative;
  width: 100%;
  height: clamp(430px, 62vh, 680px) !important;
  min-height: 430px;
  margin: 0;
  border: 1px solid #dce5e1;
  border-radius: 18px;
  overflow: hidden;
  background: #e9efec;
  box-shadow: 0 10px 28px rgba(4,44,38,.055);
}

.waters-map .leaflet-tile {
  display: block !important;
}

.rd-map-marker {
  display: block;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0b7462;
  box-shadow:
    0 3px 10px rgba(0,0,0,.28),
    0 0 0 2px rgba(11,116,98,.28);
}

.rd-map-marker--closed {
  background: #b5352f;
  box-shadow:
    0 3px 10px rgba(0,0,0,.28),
    0 0 0 2px rgba(181,53,47,.25);
}

.rd-map-marker--restricted {
  background: #c48213;
  box-shadow:
    0 3px 10px rgba(0,0,0,.28),
    0 0 0 2px rgba(196,130,19,.25);
}

.rd-map-marker.is-special::after,
.rd-map-marker.is-commercial::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid #a9ef31;
  border-radius: 50%;
}

.map-popup {
  display: grid;
  gap: 4px;
  padding-right: 10px;
}

.map-popup small {
  color: #0b7462;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .10em;
}

.map-popup strong {
  color: #17342d;
  font-size: 16px;
  line-height: 1.2;
}

.map-popup span {
  color: #68756f;
  font-size: 12px;
}

.map-popup a {
  margin-top: 5px;
  color: #07584b;
  font-size: 12px;
  font-weight: 850;
}

.map-water-list {
  display: grid;
  margin-top: 18px;
  border: 1px solid #e0e7e4;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.map-water-list > a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 180px 24px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1ef;
  transition: background-color .16s ease;
}

.map-water-list > a:last-child {
  border-bottom: 0;
}

.map-water-list > a:hover {
  background: #f6f9f7;
}

.map-water-list > a.is-hidden {
  display: none;
}

.map-water-list span {
  color: #0b7462;
  font-size: 11px;
  font-weight: 900;
}

.map-water-list strong {
  color: #17342d;
  font-size: 15px;
}

.map-water-list small {
  color: #6b7873;
  font-size: 11px;
}

.map-water-list b {
  color: #07584b;
  text-align: right;
}

.map-fallback {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff3d8;
  color: #7a5811;
  font-weight: 700;
}

.map-runtime-error {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 30px;
  text-align: center;
  color: #5c6a65;
}

@media (max-width: 760px) {
  .waters-map {
    height: 68vh !important;
    min-height: 390px;
    border-radius: 13px;
  }

  .map-toolbar {
    align-items: flex-start;
  }

  .map-summary {
    width: 100%;
  }

  .map-water-list > a {
    grid-template-columns: 48px minmax(0,1fr) 20px;
    gap: 10px;
  }

  .map-water-list > a small {
    grid-column: 2 / 3;
  }

  .map-water-list > a b {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}
