.phase40-map-section {
  position: relative;
}

.phase40-map-shell {
  background: #fff;
  border: 1px solid var(--line, #d8e0ea);
  border-radius: 8px;
  box-shadow: var(--shadow, 0 12px 32px rgba(20, 32, 51, .08));
  overflow: hidden;
}

.phase40-map-copy {
  padding: 22px 24px 0;
}

.phase40-map-copy h2 {
  margin-top: 0;
}

.phase40-map-copy p {
  color: var(--muted, #5d6677);
}

.phase40-map {
  min-height: 520px;
  height: min(64vh, 620px);
  width: 100%;
  background: #eef4f0;
  border-top: 1px solid var(--line, #d8e0ea);
}

.phase40-map.compact {
  min-height: 480px;
  height: min(58vh, 560px);
}

.phase40-map-fallback {
  margin: 0;
  padding: 22px;
  color: var(--muted, #5d6677);
}

.phase40-map-note {
  margin: 0;
  padding: 14px 24px 18px;
  color: var(--muted, #5d6677);
  font-size: .94rem;
  background: #f8fbf9;
  border-top: 1px solid var(--line, #d8e0ea);
}

.phase40-map-warning {
  position: absolute;
  z-index: 600;
  left: 14px;
  right: 14px;
  bottom: 34px;
  padding: 10px 12px;
  border: 1px solid #e0c26f;
  border-radius: 8px;
  background: #fff8e6;
  color: #574115;
  font-size: .9rem;
  box-shadow: 0 10px 24px rgba(20, 32, 51, .12);
}

.phase40-place-marker {
  border: 0;
  background: transparent;
}

.phase40-place-marker span {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #245c9c;
  box-shadow: 0 2px 8px rgba(20, 32, 51, .3);
}

.phase40-place-marker.has-guide span {
  background: var(--green, #1f6f4a);
}

.phase40-popup h3 {
  margin: 0 0 7px;
  color: var(--ink, #142033);
  font-size: 1rem;
}

.phase40-popup p {
  margin: 0 0 12px;
  color: #4d5868;
  line-height: 1.45;
}

.phase40-popup-link,
.phase40-popup-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
}

.phase40-popup-link {
  background: var(--green, #1f6f4a);
  color: #fff !important;
}

.phase40-popup-link:hover {
  background: var(--green2, var(--green-dark, #174f37));
  color: #fff !important;
  text-decoration: none;
}

.phase40-popup-status {
  background: #eef4fb;
  border: 1px solid var(--line, #d8e0ea);
  color: #4d5868;
}

.phase40-map .leaflet-control-attribution {
  font-size: 11px;
}

.phase40-map .leaflet-interactive {
  outline: none;
}

.phase40-map .leaflet-interactive:focus {
  filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
}

@media (max-width: 700px) {
  .phase40-map-copy {
    padding: 18px 18px 0;
  }

  .phase40-map,
  .phase40-map.compact {
    min-height: 380px;
    height: 430px;
  }

  .phase40-map-note {
    padding: 13px 18px 16px;
  }
}

.county-map-label{font-size:11px;background:#fffef7e8;border:0;box-shadow:none;color:#182c3d}.map-county-picker{width:100%;min-height:44px;margin:12px 0}.phase40-popup-link{min-height:44px}.phase40-map .leaflet-interactive:focus-visible{outline:3px solid #182c3d;outline-offset:3px}

/* Opaque attribution surface keeps link contrast independent of map tiles. */
.phase40-map .leaflet-control-attribution{background:#fff;color:#182c3d;font-size:12px}
.phase40-map .leaflet-control-attribution a{color:#164568;text-decoration:underline}
.phase40-map .leaflet-control-attribution a:focus-visible{outline:3px solid #182c3d;outline-offset:2px}

/* R2: touch/keyboard hit area without enlarging or moving the mapped point. */
.phase40-place-marker{display:flex;align-items:center;justify-content:center}
.phase40-place-marker span{flex:none;pointer-events:none}
