/* Alap reset */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Térkép teljes képernyőn */
#map {
  width: 100%;
  height: 100vh;
}

/* Felső fejléc – PMR-stílus */
.header {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 1000;
  backdrop-filter: blur(4px);
  display: block;
  text-align: center;
}

/* Fejléc tipográfia */
.header .title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.header .subtitle,
.header .source,
.header .updated,
.header .support {
  font-size: 12px;
  margin-bottom: 4px;
  line-height: 1.3;
}

/* Fejléc linkek */
.header a {
  color: #aee2ff;
  text-decoration: none;
}

.header a:hover {
  text-decoration: underline;
}

/* PayPal gomb */
.header .support img {
  height: 14px;
  vertical-align: middle;
  margin-left: 6px;
}

/* Alsó panel – PMR-stílusú overlay */
#bottomPanel {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  z-index: 1000;
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Jelmagyarázat + szűrők – egységes tipográfia */
.legend,
.filters {
  font-size: 12px;
  line-height: 1.3;
}

/* Jelmagyarázat pontok */
.legend .dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.legend .active { background: #4caf50; }
.legend .inactive { background: #f44336; }

/* Szűrők */
.filters label {
  cursor: pointer;
}

/* Popup – PMR-rel egységesítve */
.leaflet-popup-content {
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.leaflet-popup-content .title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 3px;
}

.leaflet-popup-content table {
  margin-top: 1em;
}

.leaflet-popup-content-wrapper {
  max-width: 300px !important;
}

.leaflet-popup-content table th {
  white-space: nowrap;
}

.leaflet-popup-content table th,
.leaflet-popup-content table td {
  vertical-align: top;
}

/* PMR-stílusú elválasztó vonal */
.leaflet-popup-content hr {
  border: none;
  height: 2px;
  background: #2A81CB;
  margin: 6px 0;
  border-radius: 2px;
}

/* Mobilnézet */
@media (max-width: 600px) {
  #bottomPanel {
    width: 80%;
    padding: 10px 14px;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
  }

  .legend,
  .filters {
    width: auto;
    display: inline-block;
    text-align: left;
  }
}

.filter-row {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}

.filter-block {
  display: flex;
  flex-direction: column;
}

.filter-title {
  font-weight: bold;
  margin-bottom: 4px;
}

