/* Ausblenden */
.marker-dimmed {
  opacity: 0.1 !important;
  transition: opacity 0.2s ease;
}

.marker-highlight {
  opacity: 1 !important;
  z-index: 9999 !important;
}

/* Bubble Formatieren */
.marker-cluster div {
  background: #145dc3;
}
.marker-cluster span {
  background: transparent !important;
  color: white;
}

/* Filter Buttons */
.map-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.map-buttons button {
  background: transparent;
  border: none;
  color: black;
  font-weight: bold;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.map-buttons button:hover {
  color: #145dc3;
  text-decoration: underline;
}

/* Pop Up */
.custom-popup .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.2) !important;
}

.custom-popup .leaflet-popup-content {
  background: rgba(255, 255, 255, 0.2);
  color: black;
}

/* Popup Links */
.leaflet-popup-content a {
  background: none;
  color: #145dc3;
  text-decoration: none !important;
}

/* Unterstrichen nur beim Hover */
.leaflet-popup-content a:hover {
  text-decoration: underline !important;
}

/* X selbst transparent/keine Box, nur Farbe ändern */
.leaflet-popup-close-button span {
    background: transparent;  /* wichtig: Span transparent */
    color: black;             /* X sichtbar */
    font-size: 16px;
    font-weight: bold;
}

.leaflet-popup-content a {
  background: none;
  color: #145dc3;
  text-decoration: underline;
}

.leaflet-popup-content strong {
  background: none;
}

.leaflet-popup-tip {
  display: none;
}

.leaflet-popup-tip-container {
  background: transparent;
}

/* X komplett anpassen */
.leaflet-popup-close-button {
  background: transparent !important;
  border: none;
  color: black;
  font-size: 16px;
  font-weight: bold;
}

/* Map */
#map {
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 250px);
  min-height: 450px;
  margin: 0 auto;
  z-index: 1000;
  background: transparent;
}

footer {
  text-align: center;
  font-size: 14px;
  color: #555;
  background: white;
  width: 100%;
  padding: 5px 0;
}

.leaflet-control-zoom {
  display: none !important;
}

@media (max-width: 768px) {
  #map {
    width: 95%;
    height: calc(100vh - 300px);
  }
  .map-buttons {
    flex-direction: column;
  }
}



/* Fix: Leaflet white background bug */
.leaflet,
.leaflet-container,
.leaflet-tile,
.leaflet-marker-shadow,
.leaflet-pane,
.leaflet-zoom-animated,
.leaflet-map-pane {
  background: none !important;
}

.leaflet-gpx-start, .leaflet-gpx-end {
  display: none !important;
}

