/* Region map + inputs layout */
.picker-layout {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.map-panel {
  width: 55%;
}

.map-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.inputs-panel {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media only screen and (max-width: 720px) {
  .picker-layout {
    flex-direction: column;
  }
  .map-panel,
  .inputs-panel {
    width: 100%;
  }
}

/* Region map path styling */
#region-map path {
  fill: var(--accent-bg);
  stroke: var(--border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.15s ease;
}

#region-map path:hover {
  fill: var(--accent-hover);
}

#region-map path.selected {
  fill: var(--accent);
}

/* Custom hover tooltip (faster and more consistent than a native SVG title) */
.region-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--accent-bg);
  color: var(--text);
  border: var(--border-width) solid var(--border);
  border-radius: var(--standard-border-radius);
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.1s ease;
  z-index: 10;
}

.region-tooltip.visible {
  opacity: 1;
}
