/* ── RegionPinPicker — modal overlay ── */

.pin-picker {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  animation: pinPickerFadeIn 0.2s ease;
}

@keyframes pinPickerFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pin-picker__panel {
  width: 90vw;
  max-width: 560px;
  background: var(--tv-surface, #1a1510);
  border: 1px solid var(--tv-line-bright, rgba(232, 221, 208, 0.22));
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Header */
.pin-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pin-picker__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pin-picker__label {
  font-family: var(--tv-mono, 'Space Mono', monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tv-muted, rgba(232, 221, 208, 0.45));
}

.pin-picker__region {
  font-family: var(--tv-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 20px;
  font-weight: 600;
}

.pin-picker__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tv-muted, rgba(232, 221, 208, 0.45));
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.pin-picker__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Hint */
.pin-picker__hint {
  font-family: var(--tv-mono, 'Space Mono', monospace);
  font-size: 11px;
  color: var(--tv-dim, rgba(232, 221, 208, 0.25));
  letter-spacing: 0.06em;
  margin: 0;
}

/* Map */
.pin-picker__map-wrap {
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tv-line, rgba(232, 221, 208, 0.1));
}

.pin-picker__map {
  background: var(--tv-bg, #0f0c09);
}

.pin-picker__map .leaflet-tile-pane {
  filter: brightness(0.7) saturate(0.4);
}

/* Coords */
.pin-picker__coords {
  font-family: var(--tv-mono, 'Space Mono', monospace);
  font-size: 11px;
  color: var(--tv-muted, rgba(232, 221, 208, 0.45));
  letter-spacing: 0.04em;
  margin: 0;
  text-align: center;
}

/* Error */
.pin-picker__error {
  font-family: var(--tv-mono, 'Space Mono', monospace);
  font-size: 11px;
  color: #dc5050;
  margin: 0;
  text-align: center;
}

/* Actions */
.pin-picker__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pin-picker__cancel,
.pin-picker__save {
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--tv-mono, 'Space Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.pin-picker__cancel {
  background: none;
  border: 1px solid var(--tv-line-bright, rgba(232, 221, 208, 0.22));
  color: var(--tv-muted, rgba(232, 221, 208, 0.45));
}
.pin-picker__cancel:hover {
  border-color: var(--tv-text, #e8ddd0);
  color: var(--tv-text, #e8ddd0);
}

.pin-picker__save {
  background: var(--accent, #c8905e);
  border: none;
  color: #0f0c09;
  font-weight: 600;
}
.pin-picker__save:hover:not(:disabled) {
  opacity: 0.85;
}
.pin-picker__save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile */
@media (max-width: 480px) {
  .pin-picker__panel {
    width: 95vw;
    padding: 16px;
  }

  .pin-picker__map-wrap {
    height: 260px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pin-picker {
    animation: none;
  }
}
