.centers-map-frame {
  position: relative;
  height: 500px;
  width: 100%;
  background: #eef2f4;
}

.centers-map {
  width: 100%;
  height: 100%;
  font-family: inherit;
  z-index: 0;
}

.centers-map-frame--detail {
  height: 305px;
}

.centers-map-fallback {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 420px);
  padding: 16px;
  background: white;
  border-radius: 8px;
  text-align: center;
}

.centers-map-status {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 24px;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  margin: 0;
  background: white;
  border-radius: 4px;
  font-size: 13px;
}

.centers-map-pin {
  background: transparent;
  border: none;
  filter: drop-shadow(0 2px 2px #0005);
}

.centers-map-pin:focus-visible {
  outline: 3px solid #0099d6;
  outline-offset: 4px;
  border-radius: 6px;
}

.centers-map .leaflet-popup-content {
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 20px;
}

.centers-map .leaflet-popup-content p {
  margin: 8px 0;
}

.centers-map .centers-map-title {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.centers-map .centers-map-note {
  color: #666;
  font-size: 13px;
}

.centers-map a.centers-map-detail {
  display: inline-block;
  padding: 8px 12px;
  margin: 8px 0;
  color: white;
  background: #f50882;
  border-radius: 20px;
  text-decoration: none;
}

.centers-map a.centers-map-detail:hover,
.centers-map a.centers-map-detail:focus-visible {
  background: #c9066a;
}

.centers-map-reset {
  padding: 8px 12px;
  background: white;
  border: 0;
  border-radius: 4px;
  color: #333;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.centers-map-reset:focus-visible {
  outline: 3px solid #f50882;
}

@media (max-width: 575px) {
  .centers-map .leaflet-popup-content {
    max-width: 220px;
    margin: 12px 16px;
  }
}
