@scope (.tpv-map-scope) {
:scope { --gutter: clamp(24px, 5vw, 64px); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:scope {
  margin: 0;
  background: var(--tp-paper);
  color: var(--tp-ink);
  font: 400 17px/1.65 var(--tp-font-ui);
}
h1, h2, h3 {
  color: var(--tp-brand);
  font: 600 30px/1.12 var(--tp-font-heading);
  margin: 0;
}
p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--tp-brand); text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--tp-brand); outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.wrap {
  width: min(1280px, calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}
.icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow, .draft-mark {
  color: var(--tp-brand);
  font: 600 12px/1.4 var(--tp-font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.metadata { color: var(--tp-muted); font-size: 13px; line-height: 1.45; }
.text-action, #venue-directory button.text-action {
  display: inline-flex;
  width: fit-content;
  min-height: var(--tp-control-height);
  align-items: center;
  gap: var(--tp-space-1);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-brand);
  font: 600 14px/1.4 var(--tp-font-ui);
}
#venue-directory button.text-action:is(:hover, :active, :focus) { background: transparent; }
.text-action:is(:hover, :focus-visible, :active) > span {
  background: var(--tp-sand);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.external::after { content: "↗" / ""; }

.site-head { border-bottom: 1px solid var(--tp-line); }
.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: var(--tp-space-4);
}
.site-logo { display: block; }
.site-logo img { width: 124px; height: auto; }
.draft-mark { color: var(--tp-muted); }
.intro { padding-block: clamp(32px, 5vw, 64px) var(--tp-space-6); }
.intro h1 {
  font-size: clamp(48px, 5.5vw, 76px);
  margin-block: var(--tp-space-2) var(--tp-space-3);
}
.lede { max-width: 62ch; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tp-space-2);
  align-items: center;
  margin-bottom: var(--tp-space-3);
}
.venue-search {
  display: flex;
  align-items: center;
  flex: 1 1 14rem;
  gap: var(--tp-space-2);
  min-width: 0;
  max-width: 420px;
  padding-inline: var(--tp-space-3);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-pill);
  color: var(--tp-brand);
}
.venue-search:focus-within {
  border-color: var(--tp-brand);
  box-shadow: inset 0 0 0 1px var(--tp-brand);
}
/* The shared Elementor kit also styles inputs inside the map. The label owns the visible border and focus. */
#venue-search {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: calc(var(--tp-control-height) - 2px);
  margin: 0;
  padding: var(--tp-space-2) 0;
  border: 0;
  border-radius: 0;
  outline: none !important;
  box-shadow: none;
  background: transparent;
  color: var(--tp-brand);
  font: 400 14px/1.4 var(--tp-font-ui);
  -webkit-appearance: none;
  appearance: none;
  transition: none;
}
.filter-controls, .view-toggle, .venue-view-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tp-space-2);
}
.filter { position: relative; min-width: 0; }
#venue-directory .venue-control, .filter > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tp-space-2);
  min-height: var(--tp-control-height);
  padding: var(--tp-space-2) var(--tp-space-3);
  border: 1px solid var(--tp-brand);
  border-radius: var(--tp-radius-pill);
  background: transparent;
  color: var(--tp-brand);
  font: 600 14px/1.4 var(--tp-font-ui);
  cursor: pointer;
}
#venue-directory .venue-control:is(:hover, :active, [aria-pressed="true"], [aria-expanded="true"]),
.filter:is([open], .has-value) > summary,
.filter > summary:hover { background: var(--tp-sand); color: var(--tp-brand); }
.filter > summary { list-style: none; }
.filter > summary::-webkit-details-marker { display: none; }
.filter[open] > summary > .icon { transform: rotate(180deg); }
.filter-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 3px;
  border-radius: var(--tp-radius-pill);
  background: var(--tp-brand);
  color: var(--tp-paper);
  font-size: 11px;
}
.filter-options {
  position: absolute;
  z-index: 12;
  top: calc(100% + var(--tp-space-2));
  left: 0;
  width: max-content;
  min-width: 205px;
  max-width: min(320px, 80vw);
  max-height: min(54vh, 360px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: var(--tp-space-2);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-action);
  background: var(--tp-paper);
  box-shadow: 0 8px 26px rgb(12 66 14 / 10%);
}
@media (min-width: 761px) and (max-width: 1120px) {
  #venue-filter-home .filter:is([data-filter="district"], [data-filter="bottle"]) > .filter-options {
    left: auto;
    right: 0;
  }
}
.filter-choice {
  display: flex;
  align-items: center;
  gap: var(--tp-space-2);
  min-height: 36px;
  padding-inline: var(--tp-space-2);
  color: var(--tp-brand);
  font: 600 14px/1.35 var(--tp-font-ui);
  cursor: pointer;
}
.filter-choice:has(:checked), .filter-choice:hover { background: var(--tp-sand); }
.filter-choice input { margin: 0; flex: none; accent-color: var(--tp-brand); }
.filter-group-name { padding: var(--tp-space-2) var(--tp-space-2) var(--tp-space-1); }
#venue-directory .filter-open, .map-results { display: none; }
.venue-view-actions { margin-inline-start: auto; }
.view-toggle {
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--tp-brand);
  border-radius: var(--tp-radius-pill);
}
#venue-directory .view-toggle .venue-control { border: 0; min-height: calc(var(--tp-control-height) - 2px); }
#venue-directory .view-toggle .venue-control:first-child { border-radius: var(--tp-radius-pill) 0 0 var(--tp-radius-pill); }
#venue-directory .view-toggle .venue-control:last-child { border-radius: 0 var(--tp-radius-pill) var(--tp-radius-pill) 0; }
#venue-directory .view-toggle .venue-control:focus-visible { outline-offset: -3px; }
.selected-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tp-space-2);
  margin-bottom: var(--tp-space-3);
}
#venue-directory .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--tp-space-2);
  min-height: 36px;
  max-width: 100%;
  padding: var(--tp-space-1) var(--tp-space-3);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-pill);
  background: var(--tp-sand);
  color: var(--tp-brand);
  font: 600 13px/1.35 var(--tp-font-ui);
  text-align: left;
}
#venue-directory .filter-chip:hover { border-color: var(--tp-brand); }
.filter-chip > span:first-child { overflow-wrap: anywhere; }
.filter-dialog {
  width: min(560px, 100%);
  max-width: 100%;
  max-height: min(78vh, 640px);
  inset: auto 0 0;
  margin: 0 auto;
  padding: var(--tp-space-5);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-panel) var(--tp-radius-panel) 0 0;
  background: var(--tp-paper);
  color: var(--tp-ink);
  overscroll-behavior: contain;
}
.filter-dialog::backdrop { background: rgb(12 12 12 / 28%); }
.filter-dialog-head, .filter-dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--tp-space-3); }
.filter-dialog-actions { justify-content: flex-end; margin-top: var(--tp-space-4); }
.filter-dialog .filter-controls { display: grid; grid-template-columns: minmax(0, 1fr); margin-block: var(--tp-space-3); }
.filter-dialog .filter > summary { display: flex; justify-content: space-between; }
.filter-dialog .filter-options {
  position: static;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: 220px;
  margin-top: var(--tp-space-2);
  box-shadow: none;
}
.reset { margin-inline: var(--tp-space-2); }

.explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: start;
  gap: var(--tp-space-6);
  --venue-workspace-height: clamp(420px, 67dvh, 660px);
}
.map-panel { border: 1px solid var(--tp-line); }
[data-venue-view] .map-frame { height: var(--venue-workspace-height); aspect-ratio: auto; }
[data-venue-view="list"] .explorer { grid-template-columns: minmax(0, 1fr); }
[data-venue-view="list"] .map-panel { display: none; }
[data-venue-view="list"] .venue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--tp-space-6); }
[data-venue-view="list"] .venue-thumbnail { width: min(42%, clamp(110px, 16vw, 192px)); }
[data-venue-view="map"] .places { display: flex; flex-direction: column; min-width: 0; max-height: var(--venue-workspace-height); }
[data-venue-view="map"] .venue-scroll { overflow: auto; overscroll-behavior: contain; }
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 545;
  min-height: 224px;
  overflow: hidden;
  background: #f3f0e8;
  container-type: size;
}
#venue-interactive-map { position: absolute; inset: 0; }
.interactive-map:not(.is-ready) { visibility: hidden; }
.interactive-map .is-outside-map { visibility: hidden; }
#map-plane .is-outside-fallback,
.map-panel.is-outside-fallback :is(.map-plane, .map-north, .map-credit) { visibility: hidden; }
.interactive-map:not(.is-country-view) .map-city-anchor,
.interactive-map.is-country-view .map-anchor:not(.map-city-anchor),
#map-plane .map-anchor:not(.map-city-anchor) { display: none; }
.is-interactive-map :is(.map-plane, .map-north, .map-credit) { display: none; }
.map-actions {
  position: absolute;
  z-index: 4;
  top: var(--tp-space-3);
  right: var(--tp-space-3);
  display: grid;
  gap: var(--tp-space-1);
}
#venue-directory :is(.map-actions .venue-control, .map-close) {
  width: var(--tp-control-height);
  padding: 0;
  background: var(--tp-paper);
}
#venue-directory :is(.map-actions .venue-control, .map-close):is(:hover, :active) { background: var(--tp-sand); }
#venue-directory .map-actions .venue-control { border-radius: var(--tp-radius-action); }
#venue-directory .map-close { border-color: transparent; }
.map-area, .map-feedback {
  position: absolute;
  z-index: 4;
  top: var(--tp-space-3);
  left: var(--tp-space-3);
  max-width: calc(100% - 76px);
}
#venue-directory .map-area, .map-feedback { background: var(--tp-paper); }
.map-feedback { padding-inline: var(--tp-space-3); border-radius: var(--tp-radius-action); }
.map-feedback > p { padding-block: var(--tp-space-2); }
.map-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100cqw, calc(100cqh * 1000 / 780));
  height: min(100cqh, calc(100cqw * 780 / 1000));
  transform: translate(-50%, -50%);
}
.map-frame:has(.interactive-map:not(.is-ready)) { background: #cadcda; }
.map-drawing { width: 100%; height: 100%; pointer-events: none; }
.map-north, .map-credit {
  background: var(--tp-paper);
  color: var(--tp-brand);
  padding: 2px var(--tp-space-2);
  font: 600 10px/1.4 var(--tp-font-ui);
}
.map-north { position: absolute; inset: var(--tp-space-3) var(--tp-space-3) auto auto; }
.map-credit { text-align: right; }
.map-credit a { white-space: nowrap; }
.map-credit a:hover { background: var(--tp-sand); }
.map-credit:focus-visible { outline-offset: -2px; }
.map-anchor {
  position: absolute;
  width: var(--tp-control-height);
  height: var(--tp-control-height);
}
#map-plane .map-anchor { transform: translate(-50%, -50%); }
.map-anchor:has(.map-pin:is(.is-highlighted, :focus-visible)) { z-index: 2; }
.map-anchor:has(.map-pin:is(.is-selected, [aria-pressed="true"])) { z-index: 3; }
:is(#map-plane, #venue-interactive-map) .map-pin {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
:is(#map-plane, #venue-interactive-map) .map-pin:is(:hover, :active, :focus-visible) {
  background: transparent;
  box-shadow: none;
}
:is(#map-plane, #venue-interactive-map) .map-pin:focus-visible { outline: 2px solid var(--tp-brand); outline-offset: -2px; }
.map-pin :is(.map-agave, .map-dot) {
  display: block;
  width: 28px;
  height: 28px;
  fill: var(--tp-brand);
  stroke: var(--tp-brand);
  stroke-width: 1.65;
  stroke-linejoin: round;
  pointer-events: none;
}
.map-pin:not(.map-pin--dot) .map-dot,
.map-pin.map-pin--dot .map-agave { display: none; }
.map-pin.is-highlighted :is(.map-agave, .map-dot) { filter: drop-shadow(0 0 2px var(--tp-paper)); }
.map-pin:is(:hover, :active, :focus-visible, .is-highlighted, .is-selected, [aria-pressed="true"]) :is(.map-agave, .map-dot) { fill: var(--tp-sand); }
.map-symbols {
  position: absolute;
  z-index: 4;
  bottom: 36px;
  left: var(--tp-space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--tp-space-3);
  max-width: calc(100% - 2 * var(--tp-space-3));
  margin: 0;
  padding: 2px var(--tp-space-2);
  list-style: none;
  border-radius: var(--tp-radius-action);
  background: var(--tp-paper);
  color: var(--tp-brand);
  font: 600 12px/1.4 var(--tp-font-ui);
  pointer-events: none;
}
.map-symbols li { display: flex; align-items: center; gap: var(--tp-space-1); }
.map-symbols svg { width: 16px; height: 16px; fill: currentColor; }
.map-symbols[hidden], .map-frame:has(.map-selection:not([hidden])) .map-symbols { display: none; }
.map-selection {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: var(--tp-space-3);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--tp-space-2);
  width: min(380px, calc(100% - var(--tp-space-6)));
  padding: var(--tp-space-2);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-action);
  background: var(--tp-paper);
  box-shadow: 0 8px 26px rgb(12 66 14 / 12%);
  color: var(--tp-brand);
}
.map-selection:has(> img:not([hidden])) { grid-template-columns: minmax(68px, 32%) minmax(0, 1fr) auto; }
.map-selection.is-anchored { top: var(--venue-popup-y); left: var(--venue-popup-x); bottom: auto; }
.map-selection > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.map-selection-copy { min-width: 0; overflow-wrap: anywhere; }
#map-current { font: 600 24px/1.12 var(--tp-font-heading); }
.map-selection .text-action { font-size: 13px; }
.map-selection .map-close { align-self: start; }

.places-count {
  padding-bottom: var(--tp-space-2);
  border-bottom: 1px solid var(--tp-line);
}
.venue-list { list-style: none; margin: 0; padding: 0; }
.venue-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--tp-line);
}
.venue-option {
  display: flex;
  align-items: center;
  gap: var(--tp-space-3);
  width: 100%;
  padding: var(--tp-space-3);
  border: 0;
  background: transparent;
  color: var(--tp-brand);
  text-align: left;
}
.venue-list li:has(.venue-option.is-selected) { background: var(--tp-sand); }
.venue-option:focus-visible { outline-offset: -2px; }
.venue-thumbnail {
  display: block;
  flex: none;
  width: clamp(96px, 35%, 164px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.venue-option > .icon { flex: none; }
.venue-list li:has(.venue-locate) .venue-option > .icon { display: none; }
#venue-directory .venue-locate { width: var(--tp-control-height); padding: 0; border-color: transparent; }
.venue-summary { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.venue-name {
  color: var(--tp-brand);
  font: 600 27px/1.12 var(--tp-font-heading);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.venue-option:is(:hover, :focus-visible, .is-highlighted) .venue-name { background: var(--tp-sand); }
.venue-address {
  display: block;
  margin-top: var(--tp-card-meta-gap);
  color: var(--tp-brand);
  font: 400 14px/1.45 var(--tp-font-ui);
}
.empty { margin-top: var(--tp-space-4); }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-space-2) var(--tp-space-6);
  margin-block: var(--tp-section-space) var(--tp-space-6);
  border-top: 1px solid var(--tp-line);
  padding-top: var(--tp-space-3);
  color: var(--tp-muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  :scope { font-size: 16px; }
  .site-head-inner { min-height: 64px; }
  .site-logo img { width: 108px; }
  .intro { padding-block: var(--tp-space-6); }
  .intro h1 { font-size: clamp(40px, 8vw, 54px); }
  .explorer { grid-template-columns: minmax(0, 1fr); --venue-workspace-height: clamp(400px, 66dvh, 600px); }
  #venue-filter-home { display: none; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  #venue-directory .filter-open { display: inline-flex; white-space: nowrap; }
  .filters > .reset { display: none; }
  .venue-search { max-width: none; }
  #venue-search { font-size: 16px; }
  .venue-view-actions { grid-column: 1 / -1; justify-self: start; margin-inline-start: 0; }
  [data-venue-view="map"] .places { display: none; }
  [data-venue-view="map"] .map-results { display: block; margin-bottom: var(--tp-space-2); }
  [data-venue-view="list"] .venue-list { grid-template-columns: minmax(0, 1fr); }
  [data-venue-view="list"] .venue-thumbnail { width: clamp(88px, 36%, 156px); }
  .venue-option { min-height: 56px; padding: var(--tp-space-3) var(--tp-space-2); }
  .venue-name { font-size: 26px; }
}
@media (max-width: 560px) {
  .map-symbols { bottom: 60px; }
  .map-city-anchor .map-pin :is(.map-agave, .map-dot) { width: 21px; height: 21px; }
  .map-selection { padding-inline: var(--tp-space-2); }
  .drink-list, .drink--illustrated { grid-template-columns: minmax(0, 1fr); }
}

:scope a.venue-option:not(.is-selected):is(:hover, :focus-visible),
:scope a.text-action:is(:hover, :focus-visible) { background: transparent !important; }
}
.tp-venue-archive {
  --venue-gutter: var(--tp-space-6);
}

.tp-venue-archive:has(#venue-directory[data-venue-view]) {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.tp-venue-archive > header { flex: none; }
.tp-venue-archive-header { padding: var(--tp-space-3) var(--venue-gutter); }
.tp-venue-archive > .tpv-map-scope {
  display: flex;
  flex: 1;
  min-height: 0;
}

.tp-venue-archive main.wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  padding-inline: var(--venue-gutter);
  padding-bottom: max(var(--tp-space-3), env(safe-area-inset-bottom));
}

.tp-venue-archive main.wrap .intro {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--tp-space-1) var(--tp-space-6);
  padding-block: var(--tp-space-3) var(--tp-space-4);
}
.tp-venue-archive main.wrap .intro h1 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 48px);
}
.tp-venue-archive main.wrap .intro .lede {
  max-width: none;
  font-size: 14px;
  line-height: 1.45;
}

.tp-venue-archive [data-venue-view] {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.tp-venue-archive :is(.filters, .selected-filters, .map-results, .places-count) { flex: none; }
.tp-venue-archive .selected-filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tp-venue-archive .filter-chip { flex: none; }
.tp-venue-archive .filter-chip:focus-visible { outline-offset: -3px; }

.tp-venue-archive [data-venue-view] .explorer {
  flex: 1;
  /* Keep the map controls and the list reachable on very short screens. */
  min-height: calc(4 * var(--tp-control-height));
  align-items: stretch;
}
.tp-venue-archive [data-venue-view] .places {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: none;
}
.tp-venue-archive [data-venue-view] .venue-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.tp-venue-archive .venue-scroll:focus-visible { outline-offset: -2px; }

.tp-venue-archive [data-venue-view="map"] .map-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.tp-venue-archive [data-venue-view="map"] .map-frame {
  flex: 1;
  height: auto;
  min-height: 0;
}

@media (max-width: 760px) {
  .tp-venue-archive #venue-directory .filters > .reset { display: none; }
  .tp-venue-archive [data-venue-view="map"] .places { display: none; }
}

@media (max-width: 760px) and (max-height: 620px) {
  .tp-venue-archive main.wrap .intro { padding-block: var(--tp-space-2); }
  .tp-venue-archive main.wrap .intro .lede { font-size: 13px; }
  .tp-venue-archive [data-venue-view] .explorer { min-height: 160px; }
}

.tpv-map-scope .venue-category { display:block; color:var(--tp-muted); font-size:12px; margin-top:4px; }
