.scope-map.leaflet-container {
  isolation: isolate;
  background: var(--scene);
  font-family: Helvetica, sans-serif;
  background-image:
    linear-gradient(#3f54591f 1px, transparent 1px),
    linear-gradient(90deg, #3f54591f 1px, transparent 1px);
  background-size: 52px 52px;
  color: var(--ink);
}
.scope-map .leaflet-tile {
  /* Overlap resampled tile edges at fractional zooms to avoid hairline seams. */
  width: 256.5px !important;
  height: 256.5px !important;
}
.scope-map .leaflet-tile-pane {
  transition: filter 0.35s ease;
}
.scope-map[data-base='night'] .leaflet-tile-pane {
  filter: saturate(0.2) brightness(1.03) contrast(1.06);
}
.scope-map[data-base='satellite'] .leaflet-tile-pane {
  filter: none;
}
.scope-map[data-mode='place'],
.scope-map[data-mode='note'] {
  cursor: crosshair;
}
.scope-map .scope-map-label,
.scope-map .scope-place-marker,
.scope-map .scope-handle,
.scope-map .scope-note-marker {
  background: transparent;
  border: 0;
}
.scope-map .scope-place-marker,
.scope-map .scope-note-marker,
.scope-map .scope-handle {
  pointer-events: auto;
}
.scope-map .scope-place-content {
  --place: #3d6d89;
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 2px 5px 2px 3px;
  background: #f8fbf7eb;
  border: 1px solid #b9cec466;
  border-radius: 5px;
}
.scope-map .scope-place-marker.label-left .scope-place-content {
  flex-direction: row-reverse;
  transform: translateX(calc(-100% + 21px));
  text-align: right;
}
.scope-map .scope-place-content.park {
  --place: #3d7e67;
}
.scope-map .scope-place-content.school {
  --place: #3d6d89;
}
.scope-map .scope-place-content.housing {
  --place: #986829;
}
.scope-map .scope-place-content.senior {
  --place: #8c5c43;
}
.scope-map .scope-place-content.medical {
  --place: #9d4545;
}
.scope-map .scope-place-badge,
.scope-map .scope-note-badge {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  color: var(--place);
  background: var(--panel);
  border-radius: 6px;
  box-shadow: 0 1px 3px #26413922;
}
.scope-map .scope-place-badge svg,
.scope-map .scope-note-badge svg,
.scope-map .scope-drag-handle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scope-map .scope-place-title,
.scope-map .scope-text-label {
  display: inline-block;
  width: max-content;
  line-height: 1.15;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-shadow: none;
}
.scope-map .scope-place-badge {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.scope-map .scope-place-badge svg { width: 12px; height: 12px; }
.scope-map .scope-place-title {
  padding: 0;
  max-width: none;
  white-space: nowrap;
  background: transparent;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}
.scope-map .scope-place-content.park .scope-place-title {
  color: var(--ink);
}
.scope-map .scope-text-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}
.scope-map .road-label {
  opacity: 0.89;
}
.scope-map .enterprise-label .scope-text-label {
  transform: rotate(-60deg);
  transform-origin: left;
}
.scope-map .neighborhood-label .scope-text-label {
  transform: rotate(32deg);
  transform-origin: left;
}
.scope-map .interstate-label .scope-text-label {
  font-size: 10px;
  padding: 2px 5px;
  border-top: 2px solid #bd8b77;
  background: var(--panel);
  border-radius: 2px 2px 5px 5px;
}
.scope-map .water-label .scope-text-label {
  color: #1c4c59;
  font-style: italic;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(248, 252, 250, 0.82);
  border: 1px solid rgba(114, 158, 168, 0.35);
  box-shadow: 0 1px 4px rgba(18, 43, 37, 0.14);
  transform: translateY(-16px);
}
.scope-map .scope-note-badge {
  width: 27px;
  height: 27px;
  color: var(--ink);
  border-radius: 9px 9px 9px 1px;
  background: var(--panel);
}
.scope-map .scope-note-marker.selected .scope-note-badge {
  outline: 3px solid #ffc47566;
  background: var(--panel);
}
.scope-map .scope-drag-handle {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  cursor: grab;
}
.scope-map .scope-drag-handle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--roof-width, 40px);
  height: var(--roof-length, 40px);
  transform: translate(-50%, -50%) rotate(var(--roof-angle, 0deg));
  cursor: inherit;
}
.scope-map[data-mode='note'] .scope-drag-handle {
  cursor: crosshair;
}
.scope-map .scope-drag-handle svg {
  display: block;
  position: absolute;
  left: 9px;
  top: 9px;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 1px solid #bbf9e9;
  padding: 3px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 2px 6px #26413922;
}
.scope-map .scope-footprint-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + var(--label-gap, 10px));
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--ink);
  border: 1px solid #6bc6b5;
  border-radius: 4px;
  padding: 4px 8px;
  line-height: 1.1;
  font-size: 12px;
  font-weight: 700;
  background: var(--panel);
  box-shadow: 0 2px 7px #26413922;
}
.scope-map .scope-footprint-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  height: 13px;
  border-left: 1px solid #95e1cf;
}
.scope-map .moving-footprint,
.scope-map.moving-footprint,
.scope-map.moving-footprint .scope-drag-handle {
  cursor: grabbing !important;
}
.scope-map .wide-area .scope-text-label,
.scope-map.wide-area .road-label,
.scope-map.wide-area .scope-place-title {
  display: none;
}
.scope-map .leaflet-control-attribution {
  margin: 0;
  padding: 2px 5px;
  line-height: 1.2;
  font-size: 10px;
  background: var(--panel);
  color: var(--ink);
}
.scope-map .leaflet-control-attribution a {
  color: var(--ink);
  text-decoration: underline;
}
.scope-map .leaflet-control-scale {
  margin: 0 0 7px 10px;
}
.scope-map .leaflet-control-scale-line {
  border-color: #d0dbd8;
  border-width: 0 1px 2px;
  color: var(--ink);
  background: var(--panel);
  font-size: 10px;
  line-height: 1.1;
  text-shadow: none;
}
.scope-map .scope-leaflet-popup .leaflet-popup-content-wrapper,
.scope-map .scope-leaflet-popup .leaflet-popup-tip {
  background: var(--panel);
  color: var(--ink);
}
.scope-map .scope-popup {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
.scope-map .scope-popup p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}
.scope-map .scope-popup a {
  color: var(--ink);
}
.scope-map .leaflet-popup-close-button {
  color: var(--ink) !important;
}
.scope-map :focus-visible {
  outline: 2px solid #c3eee4;
  outline-offset: 3px;
}
/* Suppress Chrome's rectangular SVG bounding-box focus ring on Leaflet vector layers */
.leaflet-container .leaflet-interactive:focus,
.leaflet-container .leaflet-interactive:focus-visible,
.leaflet-container path.leaflet-interactive:focus,
.leaflet-container path.leaflet-interactive:focus-visible,
.leaflet-container svg:focus,
.leaflet-container:focus:not(:focus-visible),
.leaflet-marker-icon:focus:not(:focus-visible) {
  outline: none !important;
}
@media (max-width: 640px) {
  .scope-map .leaflet-control-attribution {
    max-width: calc(100vw - 8px);
    text-align: right;
    white-space: normal;
  }
  .scope-map .leaflet-control-scale {
    margin-bottom: 24px;
  }
  .scope-map .scope-place-title {
    max-width: none;
    font-size: 10px;
  }
  .scope-map .scope-footprint-label {
    font-size: 11px;
  }
  .scope-map .neighborhood-label {
    display: none;
  }
}
/* Slow, diffused acoustic emission halos on Map overview */
@keyframes scopeSoundWave {
  0% {
    transform: scale(0.14);
    opacity: 0;
  }
  24% {
    opacity: 0.72;
  }
  65% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.scope-map path.sound-wave-pulse {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  filter: blur(7px);
  animation: scopeSoundWave 8.6s cubic-bezier(0.22, 0.55, 0.32, 1) infinite;
}
.scope-map path.sound-wave-pulse.pulse-b {
  animation-delay: -4.3s;
}
@media (prefers-reduced-motion: reduce) {
  .scope-map .leaflet-tile-pane {
    transition: none;
  }
  .scope-map path.sound-wave-pulse {
    animation: none;
    opacity: 0;
  }
}
