/* location picker — Hattie B's-inspired first-visit overlay, TN Brew voice.
   WP: feature toggle on Theme Settings; venues auto from Location CPT. */
.location-picker {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(12, 10, 6, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 0.35s ease;
}
.location-picker[hidden] { display: none; }
.location-picker.is-leaving { opacity: 0; pointer-events: none; }

.location-picker__panel {
  width: min(860px, 100%);
  background: var(--bg);
  border: 3px solid var(--bg-ink);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  text-align: center;
}
.location-picker__panel::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border-medium);
  pointer-events: none;
}

.location-picker__kicker { justify-content: center; margin-bottom: 14px; }
.location-picker__title {
  font-size: clamp(42px, 7vw, 72px);
  margin-bottom: 8px;
}
.location-picker__sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto 34px;
}

.location-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.location-picker__option {
  border: 2px solid var(--bg-ink);
  background: var(--bg-elevated);
  padding: 22px 16px 18px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.location-picker__option:hover {
  background: var(--bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.location-picker__option .pick-mark { width: 34px; margin: 0 auto 10px; display: block; }
.location-picker__option-name {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.location-picker__option-desc {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 10px;
}
.location-picker__option .chip { color: var(--accent); }

/* current saved venue, shown when reopening to change it */
.location-picker__option.is-selected {
  border-color: var(--accent);
  box-shadow: 6px 6px 0 var(--accent);
}
.location-picker__option.is-selected .chip {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}


.location-picker__skip {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.location-picker__skip:hover { color: var(--accent); }

@media (max-width: 720px) {
  .location-picker__grid { grid-template-columns: 1fr; }
  /* the pick on the left; the name, its line and any note stacked beside it (1.2.8: as a row of
     flex items they sat side by side, each squeezed to a narrow column) */
  .location-picker__option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    text-align: left;
    padding: 14px 16px;
  }
  .location-picker__option .pick-mark { margin: 0; grid-row: 1 / span 3; }
  .location-picker__option > :not(.pick-mark) { grid-column: 2; }
  .location-picker__option .chip { justify-self: start; }
  .location-picker__option-name { margin-bottom: 2px; font-size: 23px; }
  .location-picker__option-desc { margin-bottom: 0; }
}
