/*
 * css/location-picker.css — SHARED VISUAL LOCATION PICKER (UNIFY PASS)
 * -----------------------------------------------------------------------
 * Namespaced `.locpick-*`. Managed by JS (its own `.is-open` class, same
 * pattern as css/dialogs.css's `.ep-modal`), not the `.sheet-toggle
 * :checked ~` checkbox convention `.canvas-sheet` normally relies on —
 * this picker's DOM is created once, lazily, and appended to <body>
 * directly, so there's no page-authored checkbox sibling to hook into.
 * Same bottom-docked "sheet" visual language as the rest of the app
 * (base sizing/position borrowed from .canvas-sheet in app-canvas.css)
 * per the house preference for sheets over centred modals.
 */
.locpick-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 75;
}
.locpick-backdrop.is-open { display: block; }

.locpick-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: min(680px, 100vw);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-xl);
  z-index: 76;
  padding: var(--space-4);
  overflow-y: auto;
  transition: transform var(--duration-med) var(--ease-out);
}
.locpick-sheet.is-open { transform: translate(-50%, 0); }

.locpick-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.locpick-title { margin: 0; font-family: var(--font-display); font-size: 1.05em; }
.locpick-help { margin: 0; font-size: 0.82em; color: var(--text-faint); }

.locpick-canvas-wrap { position: relative; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-sunken); min-height: 260px; }
.locpick-svg { display: block; width: 100%; height: 260px; }
.locpick-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-4); text-align: center; font-size: 0.86em; color: var(--text-faint); }

.locpick-bay { cursor: pointer; }
.locpick-bay.is-selected { stroke: var(--accent); stroke-width: 2.5; }

.locpick-selection-line { font-size: 0.88em; font-weight: 600; color: var(--text); padding: 8px 10px; background: var(--bg-elevated-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }

.locpick-row { display: flex; }
.locpick-section-label { font-size: 0.7em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: 6px; }
.locpick-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.locpick-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated-2);
  color: var(--text-muted);
  font-size: 0.8em;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.locpick-chip:hover { background: var(--bg-elevated-3, var(--bg-elevated-2)); }
.locpick-chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.locpick-actions { display: flex; justify-content: flex-end; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); }

@media (max-width: 640px) {
  .locpick-sheet { width: 100vw; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--space-3); }
  .locpick-svg { height: 220px; }
}
