.ava-siting-map {
  background: var(--field);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ava-siting-map.ava-pick-active,
.ava-siting-map.ava-pick-active .leaflet-interactive { cursor: crosshair; }
.ava-siting-map.ava-pick-active .leaflet-interactive { pointer-events: none; }

.pb-draw-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(280px, 86%);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-overlay);
  color: var(--muted);
  font-size: 11px;
  box-shadow: 0 8px 24px #0003;
  backdrop-filter: blur(8px);
}
.pb-draw-panel[hidden], .pb-draw-edit-actions[hidden] { display: none; }
.pb-draw-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pb-draw-title { color: var(--text); font-size: 12px; font-weight: 600; }
.pb-draw-status { color: var(--muted); font-size: 10px; }
.pb-draw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pb-draw-grid-secondary, .pb-draw-edit-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pb-draw-btn {
  min-width: 0;
  min-height: 33px;
  height: auto;
  margin: 0;
  padding: 7px 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  font: 550 11px/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.pb-draw-btn:hover { background: var(--surface-hover); border-color: var(--border); }
.pb-draw-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pb-draw-btn-ghost { background: transparent; }
.pb-draw-btn-primary { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.pb-draw-btn:disabled { opacity: .45; cursor: default; }
.pb-draw-help { color: var(--muted); font-size: 10px; line-height: 1.5; }
.ava-siting-map .leaflet-draw-toolbar { display: none !important; }
.pb-map-popup { min-width: 160px; font-size: 12px; }

.leaflet-tooltip.pb-map-tooltip {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-overlay);
  color: var(--text);
  box-shadow: 0 6px 20px #0003;
  font: 12px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.leaflet-tooltip.pb-map-tooltip::before { border-top-color: var(--surface); }
.leaflet-tooltip.pb-camera-label { padding: 3px 6px; border-radius: 4px; font-size: 10px; line-height: 1.2; }
.pb-ring-degree-label { border: 0; background: transparent; pointer-events: none; }
.pb-ring-degree-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid #ffffff38;
  border-radius: 4px;
  background: #08121cce;
  color: #fff;
  font: 700 10px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-shadow: 0 1px 3px #000e;
  white-space: nowrap;
}
.ava-siting-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; border-bottom: 1px solid var(--border); background: var(--surface-overlay); color: var(--text); }
.ava-siting-map .leaflet-control-zoom a:hover { background: var(--surface-hover); }
.ava-siting-map .leaflet-bar { overflow: hidden; border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 4px 14px #0003; }
.ava-siting-map .leaflet-draw-actions a { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.ava-siting-map .leaflet-draw-actions a:hover { background: var(--surface-raised); }
.ava-siting-map .leaflet-control-attribution { padding: 2px 6px; background: var(--surface-overlay); color: var(--muted); font-size: 9px; }
.ava-siting-map .leaflet-control-attribution a { color: var(--accent); }
.ava-siting-map .leaflet-popup-content-wrapper, .ava-siting-map .leaflet-popup-tip { background: var(--surface); color: var(--text); }
.ava-siting-map a.leaflet-popup-close-button { color: var(--muted); }


/* Compact imagery credits stay above the map instead of occupying its footer. */
.ava-siting-map .map-credits { margin:0; }
.ava-siting-map .map-credits summary { padding:4px 7px; border:0; background:transparent; color:var(--muted); font-size:10px; }
.ava-siting-map .map-credits summary::before { content:none; }
.ava-siting-map .map-credits div { max-width:240px; padding:7px; color:var(--muted); font-size:10px; line-height:1.5; }
