/* =========================================================
   EOSZ – Ebrendészetek térkép
   Scoped patch: csak az ebrendészetek oldal térképét érinti.
   ========================================================= */

.ebr-map-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 26px;
  background:
    radial-gradient(740px 320px at 10% 0%, rgba(34,197,94,.12), transparent 62%),
    radial-gradient(740px 340px at 92% 14%, rgba(20,184,166,.10), transparent 62%),
    rgba(255,255,255,.62);
  box-shadow: 0 22px 68px rgba(0,0,0,.12);
}

.ebr-map-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 6px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #0f766e, #22c55e, #14b8a6, #22c55e);
  opacity: .90;
}

.ebr-map-card > * {
  position: relative;
}

.ebr-map-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ebr-map-head h2 {
  margin: 0 0 6px;
  color: #0b1c1f;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
}

.ebr-map-head p {
  margin: 0;
  max-width: 78ch;
  color: rgba(11,28,31,.68);
}

.ebr-map-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15,118,110,.16);
  background: rgba(255,255,255,.62);
  color: #0f3f3a;
  font-size: 13px;
  font-weight: 850;
}

.ebr-map-status.is-error {
  border-color: rgba(185,28,28,.20);
  background: rgba(254,226,226,.72);
  color: #7f1d1d;
}

#ebrendeszetMap {
  height: 470px;
  min-height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.50),
    0 16px 42px rgba(0,0,0,.11);
  background: #e8efe9;
}

.ebr-map-card .leaflet-container {
  font-family: Arial, Helvetica, sans-serif;
}

.ebr-map-card .leaflet-control-zoom {
  border: 0;
  box-shadow: none;
}

.ebr-map-card .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 34px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px !important;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #062f2b;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.ebr-map-card .leaflet-control-zoom a + a {
  margin-top: 6px;
}

.ebr-map-card .marker-cluster-small,
.ebr-map-card .marker-cluster-medium,
.ebr-map-card .marker-cluster-large {
  background-color: rgba(20,184,166,.22);
}

.ebr-map-card .marker-cluster-small div,
.ebr-map-card .marker-cluster-medium div,
.ebr-map-card .marker-cluster-large div {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #052e2b;
  font-weight: 950;
}

.ebr-popup {
  min-width: 245px;
  color: #0b1c1f;
}

.ebr-popup strong {
  display: block;
  margin-bottom: 7px;
  color: #071f1d;
  font-size: 15px;
  line-height: 1.28;
}

.ebr-popup p {
  margin: 8px 0;
  color: rgba(11,28,31,.76);
  line-height: 1.42;
}

.ebr-popup a {
  color: #0f766e;
  font-weight: 800;
}

.ebr-popup__county {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20,184,166,.11);
  color: #0f3f3a;
  font-size: 12px;
  font-weight: 900;
}

.ebr-popup__meta {
  display: grid;
  gap: 4px;
  margin: 8px 0 10px;
  color: rgba(11,28,31,.80);
}

.ebr-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(15,118,110,.20);
  background: rgba(20,184,166,.10);
  text-decoration: none;
}

.ebr-popup__btn:hover {
  text-decoration: none;
  background: rgba(20,184,166,.16);
}

@media (max-width: 760px) {
  .ebr-map-card {
    padding: 14px;
    border-radius: 22px;
  }

  #ebrendeszetMap {
    height: 390px;
    border-radius: 16px;
  }

  .ebr-map-status {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
