.mikeleafletmap {
  width: 100%;
  min-height: 400px;
  height: 100%;
  touch-action: pan-x pan-y;
  position: relative;
}

.legend-panel {
  position: relative;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;

  font-size: clamp(12px, 1.2vh, 16px);

  display: flex;
  flex-direction: column;
  
  margin-right: 5vh !important;
}

.legend-panel.hidden {
  display: none !important;
}

.legend-wrapper {
  max-height: 70vh;
  overflow-y: auto;

  padding: 6px;
  box-sizing: border-box;
}

.legend-panel h2 {
  font-size: clamp(16px, 2vh, 22px);
  margin: 0 0 8px 0;
}

.legend-panel h3 {
  font-size: clamp(13px, 1.6vh, 18px);
  margin: 0 0 6px 0;
}

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vh, 24px);
}

.legend-section {
  min-width: clamp(140px, 18vh, 200px);
}

.legend-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legend-panel li {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vh, 10px);
  margin: clamp(3px, 0.6vh, 6px) 0;
}

.legend-panel img {
  width: clamp(12px, 1.6vh, 18px);
  height: clamp(12px, 1.6vh, 18px);
  object-fit: contain;
  flex-shrink: 0;
}

.legend-panel span {
  line-height: 1.2;
}

.map-text-label {
  background: transparent;
  border: none;
  box-shadow: none;

  color: #000;
  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;
}

.leaflet-tile-pane {
  filter: grayscale(50%);
}

.map-text-label {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    white-space: nowrap;
    display: inline-block;
    box-shadow: none;
}