/* location filter — chip row for location-aware sections (beers, taps,
   menus, events, venues, contact). Works on light and dark bands via
   currentColor. WP: bar rendered by tnbw_loc_filter_bar(); filterable
   items carry data-loc="slug slug" (empty attr = matches only "All",
   no attr = not filterable / shown everywhere). */

.loc-filter {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.loc-filter__label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.loc-filter__chips { display: flex; gap: 8px; flex-wrap: wrap; }

.loc-filter__chip {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px 8px;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.loc-filter__chip:hover { transform: translateY(-2px); }
.loc-filter__chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}
/* the venue saved in the site-wide picker gets a little pick mark */
.loc-filter__chip.is-saved::before {
  content: '\25BC';
  font-size: 8px;
  margin-right: 7px;
  color: var(--accent);
  vertical-align: 2px;
}
.loc-filter__chip.is-saved.is-on::before { color: var(--cream); }

.loc-filter__empty {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text-secondary);
  margin: -6px 0 30px;
}
.loc-filter__empty[hidden] { display: none; }

/* filtered-out items (data-loc-not: an item of a "not available" list; data-loc-nav:
   the link to a group that has gone). Their own display rules would outrank the bare
   hidden attribute, hence !important. */
[data-loc][hidden],
[data-loc-not][hidden],
[data-loc-nav][hidden] { display: none !important; }
/* a filter group's own empty line, and a group that hides when nothing in it matches */
[data-loc-group-empty][hidden],
[data-loc-group][hidden] { display: none !important; }

/* "your spot" emphasis in priority scopes (cards reordered to the front) */
.venue-card.is-yours,
.contact-venues__card.is-yours {
  border-color: var(--accent) !important;
  box-shadow: 6px 6px 0 var(--accent);
}

/* ============================================================
   Floating venue selector — "Now Viewing" tag pinned bottom-right.
   Reuses the same chips/JS as the inline bar; the [data-loc-float]
   flag just changes the presentation to a persistent, spottable
   control that frees the top of the page for content.
   ============================================================ */
.loc-filter--float {
  position: fixed;
  right: clamp(16px, 2.5vw, 30px);
  bottom: clamp(16px, 2.5vw, 30px);
  z-index: 90;               /* above content, below navbar(100)/picker(200) */
  margin: 0;
  display: block;
  animation: locFloatIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: 0.5s;
}
@keyframes locFloatIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .loc-filter--float { animation: none; }
}

.loc-filter--float .loc-filter__label,
.loc-filter--float .loc-filter__chips { /* the inline pieces are repurposed */ }

/* the tag */
.loc-filter__pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-ink);
  color: var(--cream);
  border: 0;
  border-top: 3px solid var(--accent);
  padding: 12px 16px 11px 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(20, 15, 5, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-label);
}
.loc-filter__pill:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(20, 15, 5, 0.4); }
.loc-filter__pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.loc-filter__pill-pin { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.loc-filter__pill-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; text-align: left; }
.loc-filter__pill-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.55);
  margin-bottom: 4px;
}
.loc-filter__pill-venue {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.loc-filter__pill-caret {
  width: 12px; height: 12px; flex-shrink: 0; margin-left: 2px;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.loc-filter--float.is-open .loc-filter__pill-caret { transform: rotate(180deg); }

/* the popover "set list" of venues, above the tag */
.loc-filter__pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  min-width: max(220px, 100%);
  background: var(--bg-ink);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -6px 34px rgba(20, 15, 5, 0.4);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.loc-filter--float.is-open .loc-filter__pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.loc-filter__pop-title {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.5);
  padding: 6px 12px 10px;
}

/* venue rows inside the popover (the chips, restyled) */
.loc-filter--float .loc-filter__chips {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loc-filter--float .loc-filter__chip {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--cream);
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.loc-filter--float .loc-filter__chip:hover {
  transform: none;
  background: rgba(245, 240, 230, 0.07);
}
.loc-filter--float .loc-filter__chip.is-on {
  background: rgba(230, 69, 0, 0.14);
  border-left-color: var(--accent);
  color: var(--cream);
}
.loc-filter--float .loc-filter__chip.is-saved::before {
  content: '\25BC';
  font-size: 7px;
  margin-right: 8px;
  color: var(--accent);
  vertical-align: 2px;
}

/* float bars drop their empty note into the content area, centered */
.loc-filter__empty--float { text-align: center; margin: clamp(30px, 6vw, 70px) auto; max-width: 44ch; }

@media (max-width: 600px) {
  .loc-filter__pop { min-width: min(280px, calc(100vw - 32px)); }
}
