/* Find our beer (/find/). Builds on shared/kit.css; tokens only, dark by default (DARK.md). */

/* ---- Hero ---- */
.fhero { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.fhero .h1 { color: var(--brand); }
.fhero__lede { margin: 16px 0 0; }

/* ---- List beside the map ---- */
.ffind { padding: 0 0 clamp(56px, 8vw, 104px); }
.ffind__grid { display: grid; gap: 32px 48px; align-items: start; }
@media (min-width: 960px) {
  .ffind__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .fmap { position: sticky; top: calc(var(--header-h) + 20px); }
}
.ffind__list { display: grid; gap: 28px; min-width: 0; }

/* ---- Filters: a pill segmented control and a beer select ---- */
.ffilters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px; }
html:not(.js) .ffilters, html:not(.js) .fstatus { display: none; }
.fseg { display: inline-flex; margin: 0; padding: 4px; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--panel); min-inline-size: 0; }
.fseg__opt { position: relative; }
.fseg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fseg__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1rem; white-space: nowrap; transition: background-color .2s, color .2s; }
.fseg__opt input:hover + span { text-decoration: underline; text-underline-offset: 3px; }
.fseg__opt input:checked + span { background: var(--fg); color: var(--bg); text-decoration: none; }
.fseg__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fbeer { display: grid; gap: 6px; flex: 1 1 200px; max-width: 320px; }
.fbeer__label { font-weight: 600; font-size: .9375rem; }
.fbeer__select { min-height: 52px; }
.fstatus { margin: -14px 0 0; min-height: 1.5em; font-weight: 600; font-size: .9375rem; }
/* Four options: two by two on phones */
@media (max-width: 560px) {
  .fseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; border-radius: 28px; }
  .fseg__opt span { justify-content: center; width: 100%; padding-inline: 8px; }
  .fbeer { max-width: none; }
}

/* ---- Groups ---- */
.fgroup { display: grid; gap: 14px; }
.fgroup[hidden] { display: none; }
.fgroup__h { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; color: var(--accent); }
.fgroup__note { margin: -4px 0 2px; color: var(--muted); font-size: .9375rem; }
.placeholder { margin: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); font-weight: 600; }
.fempty { margin: 0; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); font-weight: 600; }
.fbeernote { margin: 0; padding: 14px 18px; border-radius: var(--radius); background: var(--surface-2); font-weight: 600; }
.fbeernote[hidden] { display: none; }
.fbeernote button, .fempty button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fcards > li[hidden] { display: none; }

/* ---- Venue cards ---- */
.fcard { display: grid; gap: 14px; padding: 20px; border: 2px solid transparent; border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s; }
.fcard:hover { border-color: var(--line-strong); }
.fcard:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.fcard.is-selected { border-color: var(--fg); background: var(--surface-2); }
.fcard--taproom { background: color-mix(in oklab, var(--sun) 9%, var(--surface)); }
.fcard--taproom.is-selected { background: color-mix(in oklab, var(--sun) 13%, var(--surface-2)); }
.fcard__top { display: grid; gap: 2px; }
.fcard__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.fcard__icon { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--brand); color: var(--ground); }
.fcard__icon svg { width: 22px; height: 22px; }
.fcard__icon--both { background: var(--sun); color: var(--sun-ink); }
.fcard__name { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.fcard__meta { margin: 2px 0 0; font-weight: 600; font-size: .9375rem; color: var(--fg); }
.fcard__note { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun); color: var(--sun-ink); font-weight: 700; }
.fcard__row { display: grid; gap: 8px; }
.fcard__label { margin: 0; font-weight: 600; font-size: .9375rem; color: var(--accent); }
.fcard__text { margin: 0; }
.fcard__text .link { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
.fcard__go { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 2px 0 0; }
.fcard__go svg { width: 18px; height: 18px; }
.fcard__dir { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.fcard__nopin { color: var(--muted); font-size: .9375rem; }
[data-group="places"] .fcard:not(.fcard--taproom), [data-group="air"] .fcard { gap: 10px; padding: 16px 18px; }
[data-group="places"] .fcard__go, [data-group="air"] .fcard__go { margin: 0; }
.fcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.fcard__foot .fcard__dir { min-height: 40px; }

/* How a place has our beer: the brewery's three formats, and Members */
.fformats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.fformat { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px 4px 7px; border-radius: var(--radius-sm); background: var(--ground); border: 1px solid var(--line); font-weight: 600; font-size: .9375rem; line-height: 1.2; }
.fformat svg { width: 18px; height: 18px; flex: none; }
.fformat--tap svg { color: var(--sun); }
.fformat--onsite svg { color: var(--longtail); }
.fformat--home svg { color: var(--brand); }
.fformat--members { border-style: dashed; border-color: var(--line-strong); }

/* Beer chips: the beer's own colour as a swatch; each links to its page */
.fchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--ground); color: var(--fg); font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; }
a.fchip:hover { border-color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
a.fchip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fchip__sw { width: 22px; height: 22px; flex: none; border-radius: 5px; background: var(--c, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fchip--plain { border-style: dashed; }
.fchip.is-match { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun); }

/* ---- The map ---- */
.fmap { margin: 0; min-width: 0; }
.fmap__frame { position: relative; aspect-ratio: 306 / 222; border-radius: var(--radius-lg); overflow: clip; background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.fmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fmap__sea-a { stop-color: color-mix(in oklab, var(--atlantic) 45%, var(--surface)); }
.fmap__sea-b { stop-color: var(--surface-0); }
.fmap__reef { fill: none; stroke: color-mix(in oklab, var(--reef) 22%, var(--surface)); stroke-width: 9; stroke-linejoin: round; opacity: .7; }
.fmap__shallows { fill: none; stroke: color-mix(in oklab, var(--reef) 45%, var(--surface)); stroke-width: 3.2; stroke-linejoin: round; }
.fmap__land { fill: color-mix(in oklab, var(--cream) 14%, var(--surface-2)); stroke: color-mix(in oklab, var(--cream) 55%, var(--surface)); stroke-width: .5; stroke-linejoin: round; }
.fmap__parish { position: absolute; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(.75rem, 1.05vw, .9375rem); line-height: 1; color: color-mix(in oklab, var(--brand) 62%, var(--surface)); white-space: nowrap; pointer-events: none; }
.fmap__north { position: absolute; top: 12px; right: 14px; display: grid; justify-items: center; font-weight: 700; font-size: .875rem; color: var(--cream); line-height: 1; }
.fmap__north::before { content: ""; width: 0; height: 0; margin-bottom: 3px; border-inline: 5px solid transparent; border-bottom: 9px solid var(--cream); }
@media (max-width: 600px) { .fmap__parish { display: none; } }

/* Pins: a round head on a short stalk; the tip is the place (--p is the parish, west to east) */
.fpin { position: absolute; z-index: 1; display: grid; justify-items: center; transform: translate(-50%, -100%); color: var(--ground); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.fpin::after { content: ""; width: 3px; height: 9px; margin-top: -1px; border-radius: 0 0 2px 2px; background: var(--fpin-bg); box-shadow: 0 0 0 1.5px var(--ground); }
.fpin { --fpin-bg: var(--brand); }
.fpin[hidden] { display: none; }
.fpin--tap { --fpin-bg: var(--sun); }
.fpin--onsite { --fpin-bg: var(--longtail); }
.fpin--home { --fpin-bg: var(--brand); }
.fpin--taproom { --fpin-bg: var(--sun); z-index: 2; }
.fpin.is-clustered { display: none; }
.fpin__head { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 38px; height: 38px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--fpin-bg); border: 2px solid var(--ground); box-shadow: 0 6px 14px rgba(0, 0, 0, .55); transition: transform .2s var(--ease-out); }
.fpin__head svg { width: 20px; height: 20px; }
.fpin--taproom .fpin__head { height: 42px; padding: 0 9px; }
.fpin:hover .fpin__head, .fpin.is-selected .fpin__head { transform: scale(1.14); }
.fpin.is-selected { z-index: 3; }
.fpin.is-selected .fpin__head { border-color: var(--cream); }
.fpin:focus-visible { outline: none; }
.fpin:focus-visible .fpin__head { outline: 3px solid var(--focus); outline-offset: 3px; }
.fpin__ring { position: absolute; left: 50%; bottom: 0; width: 22px; height: 22px; margin: 0 0 -11px -11px; border-radius: 50%; border: 2px solid var(--fpin-bg); opacity: 0; pointer-events: none; }
.fpin.is-selected .fpin__ring { opacity: .9; }
@media (max-width: 600px) {
  .fpin__head { min-width: 32px; height: 32px; padding: 0 5px; }
  .fpin__head svg { width: 17px; height: 17px; }
  .fpin--taproom .fpin__head { height: 34px; padding: 0 6px; }
}

/* A cluster: pins that would overlap at this size, as one numbered circle
   with a stalk, like a pin. Its list opens under the map (.fmap__area). */
.fclus { position: absolute; z-index: 1; display: grid; justify-items: center; padding: 0; border: 0; background: none; color: var(--ground); transform: translate(-50%, -100%); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.fclus::after { content: ""; width: 3px; height: 9px; margin-top: -1px; border-radius: 0 0 2px 2px; background: var(--cream); box-shadow: 0 0 0 1.5px var(--ground); }
.fclus__head { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--cream); border: 2px solid var(--ground); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sun) 70%, transparent), 0 6px 14px rgba(0, 0, 0, .55); font-weight: 800; font-size: 1rem; line-height: 1; font-variant-numeric: tabular-nums; transition: transform .2s var(--ease-out); }
.fclus:hover .fclus__head, .fclus[aria-expanded="true"] .fclus__head, .fclus.is-selected .fclus__head { transform: scale(1.12); }
.fclus[aria-expanded="true"] .fclus__head, .fclus.is-selected .fclus__head { background: var(--sun); color: var(--sun-ink); }
.fclus[aria-expanded="true"], .fclus.is-selected { z-index: 3; }
.fclus:focus-visible { outline: none; }
.fclus:focus-visible .fclus__head { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 600px) { .fclus__head { min-width: 34px; height: 34px; font-size: .9375rem; } }
html[data-motion="full"] .fmap.will-drop:not(.is-dropped) .fclus { opacity: 0; }
html[data-motion="full"] .fmap.will-drop.is-dropped .fclus { animation: fpin-drop .6s var(--ease-out) both; animation-delay: calc(var(--p, 0) * 260ms + 80ms); }

/* The list for one cluster, under the map */
.fmap__area { margin: 14px 0 0; padding: 14px 16px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); }
.fmap__area[hidden] { display: none; }
.fmap__area:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fmap__area-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fmap__area-h { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; color: var(--accent); }
.fmap__area-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -8px -6px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; }
.fmap__area-x svg { width: 20px; height: 20px; }
.fmap__area-x:hover { background: var(--surface-2); }
.fmap__area-x:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.fmap__area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 16px; max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: none; }
@media (min-width: 600px) { .fmap__area-list { grid-template-columns: 1fr 1fr; } }
.fmap__area-list button { display: grid; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.fmap__area-list button:hover { background: var(--surface-2); }
.fmap__area-list button:focus-visible { outline: 3px solid var(--focus); outline-offset: -1px; }
.fmap__area-list button[aria-current="true"] { background: color-mix(in oklab, var(--sun) 16%, var(--surface)); }
.fmap__area-name { font-weight: 700; line-height: 1.25; }
/* Wide screens: the map is sticky, so the list sits over the map itself and
   scrolls inside it, rather than running off the bottom of the window. */
@media (min-width: 960px) {
  .fmap__area { position: absolute; z-index: 5; top: 12px; left: 12px; right: 12px; margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(var(--fh, 420px) - 24px); background: color-mix(in oklab, var(--surface) 96%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
  .fmap__area[hidden] { display: none; }
  .fmap__area-list { max-height: none; }
}
.fmap__area-what { font-size: .875rem; color: var(--muted); line-height: 1.3; }

/* The name of the selected place, above its pin */
.fmap__tag { position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 58px)); padding: 6px 12px; border-radius: var(--radius-pill); background: var(--cream); color: var(--ground); font-weight: 700; font-size: .9375rem; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); pointer-events: none; }
.fmap__tag[hidden] { display: none; }
.fmap__tag.is-left { transform: translate(-12%, calc(-100% - 58px)); }
.fmap__tag.is-right { transform: translate(-88%, calc(-100% - 58px)); }
@media (max-width: 600px) { .fmap__tag { font-size: .875rem; padding: 5px 10px; transform: translate(-50%, calc(-100% - 50px)); } .fmap__tag.is-left { transform: translate(-12%, calc(-100% - 50px)); } .fmap__tag.is-right { transform: translate(-88%, calc(-100% - 50px)); } }

/* Key and credit */
.fmap__key { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: .9375rem; }
.fmap__key li { display: inline-flex; align-items: center; gap: 8px; }
.fkey { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 30px; height: 30px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--brand); color: var(--ground); }
.fkey svg { width: 17px; height: 17px; }
.fkey--tap, .fkey--taproom { background: var(--sun); color: var(--sun-ink); }
.fkey--onsite { background: var(--longtail); color: var(--ground); }
.fkey--clus { background: var(--cream); color: var(--ground); font-weight: 800; font-size: .875rem; border: 2px solid var(--ground); }
.fmap__key-clus[hidden] { display: none; }
.fmap figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.fmap figcaption a { color: var(--fg); }

/* ---- Motion (full only): pins drop in parish by parish as the map comes
   into view (find.js adds .will-drop, then .is-dropped); the selected pin
   pulses. Reduced motion shows every pin in place. ---- */
@keyframes fpin-drop {
  0% { opacity: 0; transform: translate(-50%, calc(-100% - 40px)); }
  60% { opacity: 1; transform: translate(-50%, calc(-100% + 3px)); }
  100% { opacity: 1; transform: translate(-50%, -100%); }
}
@keyframes fpin-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
html[data-motion="full"] .fmap.will-drop:not(.is-dropped) .fpin { opacity: 0; }
html[data-motion="full"] .fmap.will-drop.is-dropped .fpin { animation: fpin-drop .6s var(--ease-out) both; animation-delay: calc(var(--p, 0) * 260ms + 80ms); }
html[data-motion="full"]:not(.save-data) .fpin.is-selected .fpin__ring { animation: fpin-pulse 1.8s var(--ease-out) infinite; }

/* ---- The finder link, Near me, distances ---- */
.fhero__go { margin: 22px 0 0; }
.fhero__guide { min-height: 56px; padding-inline: 26px; font-size: 1.125rem; }
.fhero__guide svg, .fnear__btn svg { width: 20px; height: 20px; }
.fnear { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -8px 0 0; }
.fnear__btn[aria-pressed="true"] { background: var(--fg); color: var(--ground); }
.fnear__btn[hidden] { display: none; }
.fnear__msg { font-size: .9375rem; font-weight: 600; }
.fnear__msg:empty { display: none; }
.fcard__dist { margin: -4px 0 0; font-weight: 700; color: var(--accent); }
.fcard__dist[hidden] { display: none; }
.fcard__approx { font-size: .875rem; color: var(--muted); }
.fgroup__checked { font-weight: 600; color: var(--fg); }

/* ---- BermudAir: the plane over the map, and its card ---- */
.fplane { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fplane__route { fill: none; stroke: #ECFFFF; stroke-opacity: .28; stroke-width: .5; stroke-dasharray: 1.4 2.2; vector-effect: non-scaling-stroke; }
.fplane__link { pointer-events: auto; cursor: pointer; outline: none; }
.fplane__body, .fplane__wing { fill: #FFFFFF; }
.fplane__tail { fill: #D8136F; }
.fplane__stripe { fill: none; stroke: #12D4D9; stroke-width: .7; stroke-linecap: round; }
.fplane__craft { filter: drop-shadow(0 1.4px .8px rgba(0, 0, 0, .35)); }
.fplane__tag rect { fill: #D8136F; stroke: #FFFFFF; stroke-width: .6; }
.fplane__tag text { fill: #FFFFFF; font: 700 4.2px var(--font-body); letter-spacing: .02em; }
.fplane__can rect { fill: #FFFFFF; }
.fplane__can path { stroke: #D8136F; stroke-width: .45; }
.fplane__link:hover .fplane__tag rect, .fplane__link:focus-visible .fplane__tag rect { fill: #1B8084; }
.fplane__link:focus-visible .fplane__tag rect { stroke: #ECFFFF; stroke-width: 1.2; }
[data-group="air"] .fcard { background: #D8136F; color: #FFFFFF; }
[data-group="air"] .fcard .fcard__meta { color: rgba(255, 255, 255, .9); }
[data-group="air"] .fcard.is-selected { border-color: #ECFFFF; }
.fcard__logo { margin: 0 0 8px; }
.fcard__logo img { display: block; width: 150px; height: auto; }
