/* Premium-Design für die Leaflet Reisekarte */

.travel-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fdfdfd;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#reise-map {
  height: 600px;
  width: 100%;
  z-index: 1;
}

/* --- Popups Premium-Styling --- */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  padding: 8px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
  border: 1px solid rgba(0,0,0,0.04) !important;
}

.leaflet-popup-tip {
  box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

.map-popup-container {
  min-width: 180px;
  max-width: 260px;
  padding: 4px;
}

.map-popup-container h3 {
  margin: 0 0 6px 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.3 !important;
  font-family: inherit;
}

.map-popup-container p {
  margin: 0 0 10px 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  font-family: inherit;
}

.map-popup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  background-color: #0b66ff;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 4px 12px rgba(11, 102, 255, 0.2);
}

.map-popup-link:hover {
  background-color: #0052d6;
  transform: translateY(-1px);
}

.map-popup-link:active {
  transform: translateY(0);
}

/* --- Filter Dropdown (oben rechts) --- */
.leaflet-filter-control {
  background: white;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  border: 1px solid rgba(0,0,0,0.08);
}

.leaflet-filter-control select {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  cursor: pointer !important;
  outline: none !important;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.leaflet-filter-control select:focus {
  border-color: #0b66ff !important;
}

/* --- Legende in der Karte (unten rechts) --- */
.leaflet-legend {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.leaflet-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leaflet-legend-icon {
  width: 12px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

/* --- Zoom Button in Popup --- */
.map-popup-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 12px;
  margin-top: 6px;
  background-color: #f1f5f9;
  color: #475569 !important;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.map-popup-zoom-btn:hover {
  background-color: #e2e8f0;
  color: #1e293b !important;
}

/* --- Cluster Styling Anpassungen (Optional für Premium Look) --- */
.marker-cluster-small {
  background-color: rgba(181, 226, 191, 0.6) !important;
}
.marker-cluster-small div {
  background-color: rgba(110, 204, 131, 0.8) !important;
  color: white !important;
  font-weight: 700;
}

.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.6) !important;
}
.marker-cluster-medium div {
  background-color: rgba(240, 194, 12, 0.8) !important;
  color: white !important;
  font-weight: 700;
}

.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.6) !important;
}
.marker-cluster-large div {
  background-color: rgba(241, 128, 23, 0.8) !important;
  color: white !important;
  font-weight: 700;
}

/* --- Bilder im Popup --- */
.map-popup-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin: 4px 0 8px 0;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
  cursor: zoom-in;
}

.map-popup-image:hover {
  transform: scale(1.02);
}

/* --- Back Control Button in Leaflet --- */
.leaflet-back-control {
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-left: 10px;
  margin-top: 10px;
}

.leaflet-back-control:hover {
  background-color: #f8fafc;
  color: #0b66ff;
  border-color: #0b66ff;
  transform: translateY(-1px);
}

.leaflet-back-control svg {
  width: 16px;
  height: 16px;
}

/* --- Child Marker Animations --- */
.map-child-marker-icon {
  transition: transform 0.2s ease;
}
.map-child-marker-icon:hover {
  transform: scale(1.15);
}
