.projects-map-panel {
  min-width: 0;
  overflow: hidden;
}

.projects-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.projects-map-heading > div {
  min-width: 0;
}

.projects-map-heading h2 {
  margin: .25rem 0 .35rem;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  line-height: 1.25;
}

.projects-map-heading p {
  margin: 0;
  max-width: 60rem;
}

.projects-map-count {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 .55rem;
  border-radius: 999px;
  background: color-mix(in srgb, #217A8D 12%, transparent);
  color: #155F70;
  font-weight: 700;
  flex: 0 0 auto;
}

.projects-map-shell {
  position: relative;
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, #217A8D 15%, transparent);
}

.projects-map-canvas {
  width: 100%;
  min-width: 0;
  height: 320px;
  background: color-mix(in srgb, #217A8D 5%, transparent);
}

.projects-map-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  pointer-events: none;
  background: color-mix(in srgb, var(--surface, #fff) 88%, transparent);
  z-index: 3;
}

.projects-map-state[hidden] {
  display: none;
}

.projects-map-panel .leaflet-container {
  font-family: inherit;
}

.projects-map-panel .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  line-height: 38px;
}

.projects-map-panel .leaflet-popup-content-wrapper,
.projects-map-panel .leaflet-popup-tip {
  background: var(--surface, #fff);
  color: var(--text, #232B2B);
}

.projects-map-panel .leaflet-popup-content {
  margin: .85rem 1rem;
  min-width: 190px;
}

.sr-map-popup {
  display: grid;
  gap: .5rem;
}

.sr-map-popup strong {
  line-height: 1.35;
}

.sr-map-popup-meta {
  display: grid;
  gap: .2rem;
  font-size: .86rem;
  opacity: .78;
}

.sr-map-popup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .45rem .7rem;
  border-radius: .65rem;
  background: #217A8D;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

@media (min-width: 700px) {
  .projects-map-heading {
    padding: 1.2rem 1.35rem;
  }

  .projects-map-canvas {
    height: 420px;
  }
}

@media (max-width: 520px) {
  .projects-map-heading {
    gap: .65rem;
  }

  .projects-map-canvas {
    height: min(64vh, 360px);
  }

  .projects-map-panel .leaflet-control-attribution {
    max-width: calc(100vw - 3.5rem);
    white-space: normal;
    font-size: 9px;
  }
}
