.wotw-scan-map-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 1;
}

.wotw-scan-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 0.65rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid #d5ddd9;
  border-radius: 10px;
}

.wotw-scan-map-month-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #4a5854;
}

.wotw-scan-map-month {
  font: inherit;
  color: #1f2a28;
  border: 1px solid #c5d0cb;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  background: #fbfaf7;
  min-width: 11rem;
}

.wotw-scan-map-total {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1f2a28;
}

.wotw-scan-map {
  width: 100%;
  height: min(70vh, 640px);
  min-height: 420px;
  border: 1px solid #d5ddd9;
  border-radius: 10px;
  overflow: hidden;
  background: #eef3f1;
}

.wotw-scan-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
  background: #eef3f1;
}

.wotw-scan-map-legend {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d5ddd9;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.35;
  color: #1f2a28;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.wotw-scan-map-legend strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.wotw-scan-map-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.wotw-scan-map-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid #9aa7a3;
  display: inline-block;
  flex: 0 0 14px;
}

.wotw-scan-map-popup {
  font-size: 14px;
  line-height: 1.4;
}

.wotw-scan-map-district {
  color: #5b6b67;
  font-size: 12px;
  margin: 2px 0 4px;
}

.wotw-scan-map-note,
.wotw-scan-map-error {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  color: #4a5854;
}

.wotw-scan-map-error {
  padding: 1rem;
  color: #7a2e2e;
}

.wotw-scan-map .leaflet-control-layers {
  border: 1px solid #d5ddd9;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.wotw-scan-map .leaflet-control-layers-toggle {
  width: 36px;
  height: 36px;
}

@media (max-width: 640px) {
  .wotw-scan-map {
    height: min(65vh, 520px);
    min-height: 360px;
  }

  .wotw-scan-map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .wotw-scan-map-month {
    width: 100%;
  }
}
