.body-map-figure {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
}

.body-map-region {
  position: absolute;
  inset: 0;
  pointer-events: none;
  fill: var(--border);
  stroke: var(--bg-surface);
  stroke-width: 2;
  cursor: pointer;
}

.body-map-region svg {
  width: 100%;
  height: 100%;
}

.body-map-region path {
  pointer-events: auto;
}

.body-map-region.is-populated {
  fill: color-mix(in srgb, var(--accent) 45%, var(--bg-elevated));
}

.body-map-region.is-selected {
  fill: var(--accent);
}

.body-map-region:hover,
.body-map-region:focus-visible {
  fill: var(--accent-dim);
  stroke: var(--text-primary);
  stroke-width: 3;
}

.body-map-region:focus-visible {
  outline: none;
}
