/* Find Us — the locator.
 *
 * Colours come from the brand slots (--navy --pink --yel --lime --cream),
 * which Site settings fills in. Two tones are local to this section: the deep
 * map ground, which is a darkened navy, and the ink-on-tinted-panel greys.
 *
 * Several rules here are two-class on purpose. Mapbox ships its own stylesheet
 * and loads it after ours; a single-class rule of ours ties with theirs on
 * specificity and loses on source order, which is how this map previously
 * collapsed to nothing at all. Where a rule has to beat mapbox-gl.css it is
 * written as `.fu .thing`, never `.thing`.
 */

/* The section is the tan page; the coloured panel is .fu__in inside it, inset
   by the page gutter and rounded, matching the hero, film, beer and Instagram
   sections. Board "4 · Find us": 16px gutter, 22px radius, 56px inside. */
.fu {
  --fu-deep: #3f2250;
  --fu-ink: var(--navy, #5f3775);
  /* outlines and hard shadows: the shared line colour, 669 C plum */
  --fu-line: var(--line, #3c2b52);
  --fu-panel: var(--cream, #f6efde);
  background: var(--sg-page);
  color: var(--fu-ink);
  padding: var(--page-gutter, 16px) 0;
}

/* The Section background setting is written inline onto the section, where
   nothing in a stylesheet can outrank it. It belongs on the panel here, so the
   section is held at the tan and the panel reads --sec-bg instead. */
.fu.has-sec-bg { background-color: var(--sg-page) !important; }

.fu__in {
  position: relative;
  margin-inline: var(--page-gutter, 16px);
  border-radius: var(--panel-r, 22px);
  background: var(--sec-bg, var(--fu-bg, #f6ca5e));
  padding: clamp(28px, 4.4vw, 56px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  /* The list is a narrow column and the map takes everything else: the map is
     the point, the list is how you find your way around it. */
  grid-template-columns: minmax(300px, 440px) minmax(0, 820px);
  /* The list and the map sit together as one group, centred in the panel:
     on a wide screen the spare width goes to the panel's edges, not into a
     gap between them. */
  justify-content: center;
  gap: clamp(28px, 3.6vw, 52px);
  align-items: center;
}

.fu__in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--fu-tex, none);
  background-size: cover;
  opacity: .14;
  pointer-events: none;
}

/* ---- left column ------------------------------------------------------- */

.fu__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; container-type: inline-size; }

.fu .fu__eyebrow {
  color: var(--fu-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.fu__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: .9;
  text-transform: uppercase;
  color: var(--fu-ink);
}

.fu__text { font-size: 16px; line-height: 1.6; max-width: 42ch; }
.fu__text p { margin: 0 0 .6em; }
.fu__text p:last-child { margin-bottom: 0; }

/* search ------------------------------------------------------------------ */

.fu__search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--fu-line);
  border-radius: 999px;
  background: var(--fu-panel);
  padding: 11px 18px;
  margin-top: 4px;
}

.fu__search-ico { width: 15px; height: 15px; flex: none; opacity: .55; color: var(--fu-ink); }

.fu__q {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--fu-ink);
  outline: none;
}

.fu__q::placeholder { color: color-mix(in srgb, var(--fu-ink) 55%, transparent); }
.fu__q:focus-visible { outline: none; }
.fu__search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fu-ink) 25%, transparent); }

/* region tabs -------------------------------------------------------------- */

.fu__tabs { display: flex; gap: 7px; flex-wrap: wrap; }

.fu__tab {
  border: 1.5px solid var(--fu-line);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--fu-panel);
  color: var(--fu-ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.fu__tab:hover { background: color-mix(in srgb, var(--fu-ink) 12%, var(--fu-panel)); }
.fu__tab.is-on { background: var(--fu-ink); color: var(--fu-panel); }

/* venue cards -------------------------------------------------------------- */

.fu__list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0 4px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Seventy-odd venues would run off the page, so the list scrolls inside the
     section. Three cards and a peek at the fourth, which reads as scrollable. */
  max-height: 336px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--fu-ink) 45%, transparent) transparent;
  overscroll-behavior: contain;
}

.fu__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fu-panel);
  border: 2px solid var(--fu-line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--fu-line);
  padding: 14px 16px;
  transition: box-shadow .18s ease, transform .18s ease;
}

.fu__item:hover,
.fu__item.is-on { box-shadow: 7px 7px 0 var(--pink, #8367b8); transform: translate(-1px, -1px); }
.fu__item[hidden] { display: none; }

.fu__card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fu__dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pink, #8367b8);
  border: 2px solid var(--fu-line);
  transition: background-color .18s ease;
}

.fu__item.is-on .fu__dot { background: var(--lime, #bc4648); }

.fu__card-body { flex: 1; min-width: 0; }

.fu__card-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.fu__name {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--fu-ink);
}

.fu__pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1.5px solid var(--fu-line);
  border-radius: 30px;
  background: var(--lime, #bc4648);
  color: var(--fu-panel);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fu__addr {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
  color: color-mix(in srgb, var(--fu-ink) 85%, transparent);
}

/* The directions arrow. Sized to sit beside the region pill, which is the
   proportion that took several passes to get right — do not grow it. */
.fu__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--fu-line);
  border-radius: 50%;
  background: var(--yel, #f6ca5e);
  color: var(--fu-ink);
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}

.fu__go svg { width: 18px; height: 18px; display: block; }
.fu__go:hover { transform: translateX(2px); background: var(--fu-panel); }

.fu__empty { margin: 4px 0 0; font-size: 14px; opacity: .75; }

.fu__soon {
  margin-top: 2px;
  border: 1.5px dashed color-mix(in srgb, var(--fu-ink) 45%, transparent);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: color-mix(in srgb, var(--fu-panel) 45%, transparent);
  font-size: 14px;
  line-height: 1.5;
}

.fu__soon-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--fu-line);
  flex: none;
  opacity: .6;
}

.fu__note {
  margin: 12px calc(var(--page-gutter, 16px) + 8px) 0;
  font-family: var(--f-mono);
  font-size: 12px;
  opacity: .8;
}

/* ---- the map ------------------------------------------------------------- */

.fu__mapwrap { position: relative; min-width: 0; }

/* The offset block behind the frame, drawn as a pseudo-element so the frame
   itself stays a single stacking context for Mapbox. */
.fu__mapwrap::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(8px, 8px);
  border-radius: 26px;
  background: var(--pink, #8367b8);
}

.fu__map {
  position: relative;
  height: clamp(480px, 50vw, 720px);
  border-radius: 26px;
  border: 2px solid var(--fu-line);
  background: var(--fu-deep);
  overflow: hidden;
  isolation: isolate;
}

/* Two-class on purpose: mapbox-gl.css sets `.mapboxgl-map { position: relative }`
   on this same element, ties on specificity and wins on source order, which
   collapses the container to zero height and renders nothing, silently. */
.fu .fu__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.fu__mapfail {
  position: absolute;
  inset: auto 24px 24px;
  margin: 0;
  color: var(--fu-panel);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
}

.fu__badge {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  background: var(--yel, #f6ca5e);
  color: var(--fu-ink);
  border: 1.5px solid var(--fu-line);
  border-radius: 999px;
  padding: 7px 16px 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  pointer-events: none;
}

.fu__legend {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  background: var(--fu-panel);
  border: 1.5px solid var(--fu-line);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  pointer-events: none;
}

.fu__leg {
  display: flex;
  gap: 7px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fu-ink);
}

.fu__leg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yel, #f6ca5e);
  border: 1.5px solid var(--fu-deep);
  box-sizing: border-box;
}

.fu__leg-dot--soon { background: none; border: 1.5px dashed var(--fu-ink); }

/* ---- markers -------------------------------------------------------------
 * Carried over from the Squarespace and Next.js builds, each learned the hard
 * way:
 *   - no transform or transition on the marker ROOT. Mapbox rewrites that
 *     element's transform every frame of a pan, so anything of ours there
 *     makes the markers smear behind the map. Hover scale goes on the inner
 *     span instead.
 *   - `contain: layout style`, never `paint`. Paint containment clips the
 *     marker to its own box and crops the hover scale into a square.
 */

.fu .fu-mk {
  width: 18px;
  height: 18px;
  cursor: pointer;
  contain: layout style;
}

.fu-mk__in {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--yel, #f6ca5e);
  border: 2px solid var(--fu-deep, #3f2250);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .16s ease, background-color .16s ease;
}

.fu-mk:hover .fu-mk__in { transform: scale(1.35); }

.fu-mk.is-on .fu-mk__in {
  background: var(--lime, #bc4648);
  border-color: var(--cream, #f6efde);
  transform: scale(1.5);
}

/* The ring around the selected pin. A pseudo-element so it never affects the
   marker's own box, which Mapbox positions. */
.fu-mk.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid var(--lime, #bc4648);
  opacity: .55;
  animation: fuPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes fuPulse {
  0% { transform: scale(.55); opacity: .7; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ---- the callout ---------------------------------------------------------
 * Mapbox renders popups outside our markup, so these are plain rules on
 * mapbox's own class names, scoped under .fu so no other map on the site is
 * caught by them.
 */

.fu .mapboxgl-popup { max-width: 260px !important; }
.fu .mapboxgl-popup-tip { display: none; }

.fu .mapboxgl-popup-content {
  background: var(--fu-panel);
  border: 2px solid var(--fu-line);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--fu-line);
  padding: 11px 15px 13px;
  transform: rotate(-2deg);
  font-family: var(--f-body);
}

.fu .mapboxgl-popup-close-button {
  color: var(--fu-ink);
  font-size: 18px;
  line-height: 1;
  padding: 2px 7px 4px;
  border-radius: 50%;
}

.fu .fu-co__n {
  display: block;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  /* Explicit: a bare heading is what the site-wide heading rule targets, and
     a direct match beats an inherited value. */
  color: var(--fu-ink);
  margin: 0 18px 0 0;
}

.fu .fu-co__a {
  display: block;
  margin: 2px 0 9px;
  font-size: 13px;
  line-height: 1.35;
  color: color-mix(in srgb, var(--fu-ink) 80%, transparent);
}

.fu .fu-co__foot { display: flex; align-items: center; gap: 8px; }

.fu .fu-co__pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1.5px solid var(--fu-line);
  border-radius: 30px;
  background: var(--lime, #bc4648);
  color: var(--fu-panel);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Matches the pill beside it — 24px, not the 40px of the card arrow. This is
   the size that was settled on; it looked wrong at every larger value. */
.fu .fu-co__go {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--fu-line);
  border-radius: 50%;
  background: var(--yel, #f6ca5e);
  color: var(--fu-ink);
  text-decoration: none;
}

.fu .fu-co__go svg { width: 12px; height: 12px; display: block; }

/* Mapbox's own chrome, toned down to the panel colours. */
.fu .mapboxgl-ctrl-attrib,
.fu .mapboxgl-ctrl-attrib a { color: color-mix(in srgb, var(--fu-panel) 70%, transparent); }
.fu .mapboxgl-ctrl-bottom-right { z-index: 2; }
.fu .mapboxgl-canvas:focus-visible { outline: 2px solid var(--yel, #f6ca5e); outline-offset: -4px; }

/* ---- narrow screens ------------------------------------------------------ */

@media (max-width: 1000px) {
  .fu__in { grid-template-columns: minmax(0, 1fr); }
  .fu__mapwrap { order: -1; }
  .fu__map { height: clamp(320px, 62vw, 460px); }
  .fu__list { max-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .fu-mk.is-on::after { animation: none; }
  .fu__item, .fu__go, .fu-mk__in { transition: none; }
}

/* ---- featured spots --------------------------------------------------------
 * Four venues picked out under the map, as the Squarespace locator had them,
 * now in this section's own language: cream sticker cards with the plum
 * outline and hard shadow, an amber icon disc, and the same pressed and
 * selected states as the venue list. Clicking one opens its pin.
 */

.fu__feat { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }

.fu__feat-k {
  align-self: flex-start;
  margin: 0;
  padding: 6px 13px 5px;
  border: 1.5px solid var(--fu-line);
  border-radius: 999px;
  background: var(--plum, #3c2b52);
  color: var(--cream, #f6efde);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.fu__feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fu__fcard {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 2px solid var(--fu-line);
  border-radius: 18px;
  background: var(--cream, #f6efde);
  color: var(--fu-ink);
  box-shadow: 4px 4px 0 var(--fu-line);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: translate .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.fu__fcard:hover { translate: 2px 2px; box-shadow: 2px 2px 0 var(--fu-line); }
.fu__fcard:focus-visible { outline: 3px solid var(--fu-line); outline-offset: 3px; }
.fu__fcard.is-on { background: var(--amber, #ffb600); translate: -1px -1px; box-shadow: 6px 6px 0 var(--fu-line); }

.fu__ficon {
  flex: none;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--fu-line);
  border-radius: 50%;
  background: var(--amber, #ffb600);
  color: var(--plum, #3c2b52);
}

.fu__fcard.is-on .fu__ficon { background: var(--cream, #f6efde); }
.fu__ficon svg { width: 26px; height: 26px; }

.fu__fbody { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.fu__fname {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.fu__fdesc { font-size: 13px; line-height: 1.3; opacity: .85; }

@media (max-width: 1100px) {
  .fu__feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* On a phone the four become a row you swipe, with the next card peeking in. */
@media (max-width: 640px) {
  .fu__feat-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -4px;
    padding: 2px 4px 8px;
  }
  .fu__feat-list::-webkit-scrollbar { display: none; }
  .fu__feat-list li { flex: 0 0 80%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .fu__fcard { transition: none; }
}

/* ---- "scroll for more" ------------------------------------------------------
 * The list scrolls inside the section, which is easy to miss. While there is
 * more below, the bottom of the list fades into the panel and an amber pill
 * sits over it — the press colour, in the map's sticker style — with its
 * arrow bobbing. Pressing it scrolls the list on.
 */

.fu__listwrap { position: relative; }

/* No fade over the list: the pill alone says there is more, and it leaves
   once the visitor has seen it (see find-us.js). */

.fu__more {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 7px;
  border: 2px solid var(--fu-line);
  border-radius: 999px;
  background: var(--amber, #ffb600);
  color: var(--plum, #3c2b52);
  box-shadow: 3px 3px 0 var(--fu-line);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: translate .16s ease, box-shadow .16s ease, opacity .35s ease, scale .35s ease;
}

.fu__more.is-gone { opacity: 0; scale: .9; pointer-events: none; }
.fu__more[hidden] { display: none; }
.fu__more svg { width: 14px; height: 14px; animation: fuBob 1.6s ease-in-out infinite; }
.fu__more:hover { translate: calc(-50% + 2px) 2px; box-shadow: 1px 1px 0 var(--fu-line); }
.fu__more:focus-visible { outline: 3px solid var(--fu-line); outline-offset: 3px; }

@keyframes fuBob {
  0%, 100% { transform: translateY(-1px); }
  50%      { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .fu__more svg { animation: none; }
  .fu__more { transition: opacity .2s ease; }
}

/* On a desktop the list column is wide enough for the four area pills to sit
   on one line; below that the map needs the room more, and they may wrap. */
@media (min-width: 1180px) {
  .fu__in { grid-template-columns: 520px minmax(0, 820px); }
  /* Five areas (All, San Francisco, North Bay, South Peninsula, South Bay) sit
     on one line with the pills a touch tighter. If another area is added and
     they no longer fit, they wrap to a second line rather than run under the map. */
  .fu__tabs { flex-wrap: wrap; gap: 6px; }
  .fu__tab { padding: 8px 9px; letter-spacing: .05em; }
}

/* "On draft near you" on one line: the headline is sized to the width of the
   list column it sits in. Set in Gulden it runs about 9.8 times its own size,
   so 10% of the column keeps it just inside, whatever the screen. */
@supports (font-size: 1cqi) {
  .fu__title { font-size: min(64px, 10cqi); white-space: nowrap; }
}

/* ---- phones: read top to bottom ------------------------------------------
 * The heading and line come first, then the map, then the search, the
 * filters and the list, so the map is never seen before its title. The copy
 * column steps aside (display: contents) so its parts can sit either side of
 * the map; the panel takes over as the size reference for the one-line title. */
@media (max-width: 1000px) {
  .fu__in { container-type: inline-size; row-gap: 16px; }
  .fu__copy { display: contents; }
  .fu__mapwrap { order: 1; margin-block: 8px 10px; }
  .fu__copy > :not(.fu__eyebrow):not(.fu__title):not(.fu__text) { order: 2; }
  .fu__feat { order: 3; }
}

/* the filters become one row you swipe, running to the panel's edges, and
   the venue cards tighten so three or four show at a time */
@media (max-width: 640px) {
  .fu__in { padding: 26px 18px 24px; }
  .fu__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -18px;
    padding: 2px 18px 6px;
    scroll-padding-inline: 18px;
  }
  .fu__tabs::-webkit-scrollbar { display: none; }
  .fu__tab { flex: none; }
  .fu__item { padding: 12px 12px 12px 14px; }
  .fu__card { gap: 10px; }
  .fu__card-head { gap: 6px; }
  .fu__name { font-size: 15px; line-height: 1.2; }
  .fu__addr { font-size: 13px; line-height: 1.35; }
  .fu__list { max-height: min(380px, 58vh); }
}

/* ---- side by side: the map fills its column --------------------------------
 * Between 1000 and about 1300px the list column (title, search, filters, list,
 * button) is taller than the map's own height, which left a gap above and below
 * the map. The map now stretches to the column, keeping its height as the
 * floor, and the column's contents stay centred when the map is the taller. */
@media (min-width: 1001px) {
  .fu__in { align-items: stretch; }
  .fu__copy { justify-content: center; }
  .fu__mapwrap { display: flex; flex-direction: column; }
  .fu__map { flex: 1 1 auto; height: auto; min-height: clamp(480px, 50vw, 720px); }
}
