/* === Layout-Anpassung === */

.heatmap-wrapper {
  margin-bottom: 2rem;
}

.heatmap-wrapper .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
}

.heatmap-wrapper .col-lg-3,
.heatmap-wrapper .col-md-4 {
  flex: 1 1 280px;
  max-width: 320px;
}

.heatmap-wrapper .col-lg-9,
.heatmap-wrapper .col-md-8 {
  flex: 1 1 auto;
  min-width: 300px;
}

/* === Kartenkarten (Card) === */

.card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background-color: #fff;
  margin-bottom: 1rem;
}

.card-header {
  background-color: #f9f9f9;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.card-body label {
  font-weight: 500;
  font-size: 0.9rem;
}

/* === Select2 === */

.select2-container {
  width: 100% !important;
  margin-bottom: 0.5rem !important;
}

.select2-filter {
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
}

.select2-container--default .select2-selection--multiple {
  margin: 0 !important;
  padding: 0.375rem 0.75rem !important;
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-sizing: border-box;
}

.select2-selection__rendered,
.select2-search--inline .select2-search__field {
  margin: 0 !important;
  padding: 0 !important;
}

/* === Karte === */

#map {
  height: 65vh;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* === Responsive === */

@media (max-width: 768px) {
  .heatmap-wrapper .row {
    flex-direction: column !important;
    align-items: stretch;
    gap: 1rem !important;
  }

  .heatmap-wrapper .col-lg-3,
  .heatmap-wrapper .col-md-4,
  .heatmap-wrapper .col-lg-9,
  .heatmap-wrapper .col-md-8 {
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  #map {
    height: 60vh;
  }
}
