/* Service Area interactive map — local styles only */
#nyc-service-map {
  background: #0c1628;
  height: 20rem;
  min-height: 20rem;
}
#nyc-service-map .leaflet-container {
  font-family: Inter, system-ui, sans-serif;
  background: #0c1628;
  width: 100%;
  height: 100%;
}
#nyc-service-map .leaflet-control-zoom a {
  background: #10203a;
  color: #d4a62a;
  border-color: rgba(212, 166, 42, 0.4);
  width: 30px;
  height: 30px;
  line-height: 30px;
}
#nyc-service-map .leaflet-control-zoom a:hover,
#nyc-service-map .leaflet-control-zoom a:focus {
  background: #1a3358;
  color: #f0d078;
}
#nyc-service-map .leaflet-bar {
  border: 1px solid rgba(212, 166, 42, 0.35);
  box-shadow: none;
}
#nyc-service-map .leaflet-control-attribution {
  background: rgba(16, 32, 58, 0.88);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}
#nyc-service-map .leaflet-control-attribution a {
  color: #d4a62a;
}
.nyc-boro-btn {
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}
.nyc-boro-btn:hover,
.nyc-boro-btn:focus-visible {
  background: rgba(212, 166, 42, 0.28);
  outline: 2px solid #d4a62a;
  outline-offset: 2px;
}
.nyc-boro-btn.is-active {
  background: #d4a62a;
  color: #10203a;
  border-color: #d4a62a;
}
.leaflet-tooltip.nyc-boro-tooltip {
  background: #10203a;
  color: #d4a62a;
  border: 1px solid #d4a62a;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 13px;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: none;
}
.leaflet-tooltip.nyc-boro-tooltip::before {
  border-top-color: #d4a62a;
}

#nyc-service-map path.leaflet-interactive:focus,
#nyc-service-map path.leaflet-interactive:focus-visible {
  outline: none;
}

.leaflet-popup.nyc-building-popup-wrap .leaflet-popup-content-wrapper {
  background: #10203a;
  color: #f0d078;
  border: 1px solid #d4a62a;
  border-radius: 12px;
  box-shadow: none;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.leaflet-popup.nyc-building-popup-wrap .leaflet-popup-tip {
  background: #10203a;
}
.leaflet-popup.nyc-building-popup-wrap .leaflet-popup-content {
  margin: 8px 14px;
  color: #f0d078;
}
.nyc-building-popup { color: #f0d078; }

.nyc-basemap-toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(212, 166, 42, 0.45);
  border-radius: 8px;
  background: #10203a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-family: Inter, system-ui, sans-serif;
}
.nyc-basemap-toggle button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #d4a62a;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 11px;
  cursor: pointer;
  font-family: inherit;
}
.nyc-basemap-toggle button + button {
  border-left: 1px solid rgba(212, 166, 42, 0.35);
}
.nyc-basemap-toggle button:hover,
.nyc-basemap-toggle button:focus-visible {
  background: rgba(212, 166, 42, 0.22);
  outline: none;
}
.nyc-basemap-toggle button.is-active {
  background: #d4a62a;
  color: #10203a;
}
.nyc-building-popup-addr {
  color: #f0d078;
  font-weight: 600;
  margin-bottom: 6px;
}
.nyc-sat-popup-hint {
  color: rgba(240, 208, 120, 0.85);
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 8px;
}
.nyc-sat-popup-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: 100%;
  border: 1px solid #d4a62a;
  border-radius: 999px;
  background: #d4a62a;
  color: #10203a;
  font: 600 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 10px;
  cursor: pointer;
}
.nyc-sat-popup-btn:hover,
.nyc-sat-popup-btn:focus-visible {
  background: #f0d078;
  outline: none;
}

/* Mobile: keep the map compact and let one-finger vertical page scroll pass through */
@media (max-width: 768px) {
  #nyc-service-map {
    height: 360px;
    min-height: 360px;
  }
  #nyc-service-map,
  #nyc-service-map.leaflet-container,
  #nyc-service-map .leaflet-container {
    touch-action: pan-y;
    -ms-touch-action: pan-y;
  }
}
