/* Beer trails: a compact bottom sheet, separate from Leaflet controls. */
.trail-fab{
  display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;
  min-width:44px;min-height:44px;padding:0;border-radius:50%;
  border:1px solid var(--color-border-strong,#cfc6b8);
  background:var(--color-surface,#fff);color:var(--color-ink,#171717);
  box-shadow:0 5px 18px #17171729;cursor:pointer;
}
.trail-fab svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.trail-fab.is-active{background:var(--bk-brand,#123f38);color:white;border-color:var(--bk-brand,#123f38)}
.trail-fab:focus-visible,.trail-sheet-close:focus-visible{outline:3px solid #f4c430;outline-offset:3px}
@media(hover:hover){.trail-fab:hover{background:var(--bk-brand-soft,#e6efeb)}.trail-fab.is-active:hover{background:var(--bk-brand-strong,#0b302c)}}
.trail-sheet{
  position:fixed;z-index:2500;inset:auto 0 max(12px,env(safe-area-inset-bottom,0px));
  margin:0 auto;padding:0;width:calc(100% - 24px);max-width:480px;
  max-height:none;overflow:visible;border:0;border-radius:24px;
  background:transparent;color:var(--bk-ink,#171717);
  box-shadow:0 14px 50px #17171738;
}
.trail-sheet:not([open]){display:none}
/* Non-modal panel: the rest of the map remains interactive. */
.trail-sheet .trail-map-control{
  box-sizing:border-box;display:flex;flex-direction:column;
  width:100%;max-width:none;min-height:min(32vh,260px);min-height:min(32dvh,260px);
  max-height:min(54vh,460px);max-height:min(54dvh,460px);
  margin:0;padding:0;border:1px solid var(--bk-border,#e4ded3);
  border-radius:24px;background:var(--bk-surface,#fff);box-shadow:none;overflow:hidden;
}
.trail-sheet .trail-sheet-header{
  position:relative;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;
  gap:12px;height:auto;min-height:64px;margin:0;padding:10px 12px 6px 22px;
  background:transparent;color:inherit;border:0;z-index:auto;
}
.trail-sheet-header h2{margin:0;font:700 23px/1.2 var(--bk-display,Georgia,serif);letter-spacing:-.025em}
.trail-sheet-close{
  display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;
  padding:0;border:0;border-radius:50%;background:var(--bk-subtle,#f3eee4);
  color:var(--bk-ink,#171717);cursor:pointer;
}
.trail-sheet-close svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.trail-sheet-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 22px 20px;scrollbar-width:thin}
.trail-sheet .trail-map-control label{display:block;margin:2px 0 8px;font:700 12px/1.3 var(--bk-ui,system-ui);letter-spacing:0;text-transform:none;color:var(--bk-muted,#68716d)}
.trail-sheet .trail-map-control select{
  box-sizing:border-box;display:block;width:100%;max-width:none;min-height:48px;
  padding:10px 12px;border:1px solid var(--bk-border-strong,#cfc6b8);border-radius:12px;
  background:var(--bk-surface,#fff);color:var(--bk-ink,#171717);
  font:500 16px/1.35 var(--bk-ui,system-ui);
}
.trail-sheet-hint{margin:12px 0 0;color:var(--bk-muted,#68716d);font:400 14px/1.5 var(--bk-ui,system-ui)}
.trail-sheet .trail-callout{margin-top:16px;padding-top:14px;font-size:14px}
.trail-sheet .trail-callout[hidden],.trail-sheet-hint[hidden]{display:none}
.trail-sheet .trail-callout strong{font-size:20px;margin-bottom:12px}
.trail-sheet .trail-callout-meta,.trail-sheet .trail-callout p,.trail-sheet .trail-callout a{font-size:13px;line-height:1.45}
.trail-sheet .trail-callout a{margin-top:8px;text-underline-offset:3px}
.trail-sheet .trail-callout-stats{gap:36px;margin:12px 0}
.trail-sheet .trail-callout-stats span{font-size:12px}
.trail-sheet .trail-callout-stats b{font-size:25px}
.trail-sheet .trail-callout-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.trail-sheet .trail-callout-actions button{min-height:44px;padding:10px 18px;font-size:14px;cursor:pointer}
.trail-sheet[open]{animation:trail-sheet-enter .2s ease-out}
@keyframes trail-sheet-enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:480px){.trail-sheet .trail-map-control{max-height:calc(100vh - 72px);max-height:calc(100dvh - 72px)}}
@media(prefers-reduced-motion:reduce){.trail-sheet[open]{animation:none}}

/* Desktop uses the sidebar; mobile uses the map button and sheet. */
@media(min-width:721px){
  #trailSheetButton,#trailSheet{display:none!important}
}
@media(max-width:720px){
  .filter-block.trail-filter{display:none}
  body:not([data-mobile-view="map"]) #trailSheet{display:none!important}
}
