/* =====================================================================
   Map homepage, layout v2 (loaded after globe-brand.css)
   - one slim top bar: logo · one search · where you are · menu tabs · Post · ☰
   - the event list sits under the bar on desktop and is a bottom sheet on phones
   - phones get the same bottom tab bar as the rest of the site (--tb = its height)
   - the brand gradient is an accent only (Post, active tab, selected states);
     the list is plain white with larger, high-contrast text
   ===================================================================== */

:root{--tb:0px}

/* ---- top bar ---- */
.topbar{position:fixed;z-index:9;top:calc(12px + env(safe-area-inset-top,0px));left:max(16px,env(safe-area-inset-left,0px));right:max(16px,env(safe-area-inset-right,0px));
  display:flex;align-items:center;gap:12px;padding:8px 8px 8px 14px;border-radius:16px;background:#fff;color:#0f172a;
  border:1px solid rgba(15,23,42,.10);box-shadow:0 10px 30px rgba(15,23,42,.12),0 1px 3px rgba(15,23,42,.06);font-family:var(--body)}
.tb-logo{display:flex;align-items:center;gap:8px;flex:0 0 auto;text-decoration:none;color:#0f172a}
.tb-logo .wpin{width:18px;height:18px;border:0;background:linear-gradient(135deg,#3f86d6,#5ab0ff 55%,#8fc3f5);box-shadow:none}
.tb-logo .wpin::after{background:#fff;width:6px;height:6px;margin:6px}
.tb-zoom{flex:0 0 auto;width:44px;height:44px;padding:2px;margin:0 0 0 -4px;border:0;border-radius:12px;background:none;cursor:pointer;transition:transform .15s}
.tb-zoom img{display:block;width:40px;height:40px;border-radius:10px;box-shadow:0 2px 8px rgba(37,99,235,.35)}
.tb-zoom:hover{transform:scale(1.06)}.tb-zoom:active{transform:scale(.95)}
.tb-zoom:focus-visible{outline:3px solid rgba(63,134,214,.5);outline-offset:2px}
.tb-name{font:700 19px/1 "Playfair Display",Georgia,serif;white-space:nowrap;letter-spacing:-.01em}
.tb-name b{font-weight:700;background:linear-gradient(135deg,#3f86d6,#5ab0ff 60%,#8fc3f5);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.tb-search{position:relative;flex:1 1 360px;max-width:440px;min-width:0;display:flex;align-items:center}
.tb-search input{width:100%;min-width:0;height:44px;padding:0 64px 0 40px;border-radius:12px;border:1.5px solid rgba(15,23,42,.14);background:#f8fafc;
  font:500 16px var(--body);color:#0f172a;box-shadow:none;-webkit-appearance:none;appearance:none}
.tb-search input::placeholder{color:#64748b}
.tb-search input:focus{outline:none;border-color:#3f86d6;background:#fff;box-shadow:0 0 0 3px rgba(63,134,214,.18)}
.tb-search input::-webkit-search-cancel-button{display:none}
.tb-mag{position:absolute;left:13px;width:18px;height:18px;fill:none;stroke:#64748b;stroke-width:2.2;stroke-linecap:round;pointer-events:none}
.tb-go{position:absolute;right:5px;height:34px;padding:0 14px;border:0;border-radius:9px;font:700 14px var(--body);color:#fff;cursor:pointer;
  background:linear-gradient(135deg,#3f86d6,#5ab0ff 60%,#8fc3f5)}
.tb-go:disabled{opacity:.6;cursor:wait}
.tb-go:focus-visible,.tb-menu:focus-visible,.tb-post:focus-visible{outline:3px solid rgba(63,134,214,.45);outline-offset:2px}

/* where you are, as part of the bar */
.topbar .where{position:static!important;transform:none!important;left:auto!important;right:auto!important;top:auto!important;margin:0!important;width:auto!important;max-width:none!important;
  flex:1 1 auto;min-width:0;display:flex;flex-direction:row;align-items:center;gap:6px;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;
  color:#475569;font:600 14px var(--body);white-space:nowrap;overflow:hidden;pointer-events:none}
.topbar .where::before{content:"";flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#3f86d6;box-shadow:0 0 0 3px rgba(63,134,214,.2)}
.topbar .where #place{overflow:hidden;text-overflow:ellipsis;min-width:0}
.topbar .where .crumb{color:#64748b;font-weight:500}
.topbar .where .here{color:#0f172a;font-weight:700}
.topbar .where .sep{color:#8fc3f5;margin:0 4px}

.topbar .tb-nav{flex:0 0 auto;margin:0}
.tb-post{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 16px!important;border-radius:12px!important;font-size:15px!important;white-space:nowrap}
.tb-post b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.25);font-size:16px;line-height:1}
.tb-menu{flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;gap:4px;width:44px;height:44px;padding:0 12px;border-radius:12px;border:1.5px solid rgba(15,23,42,.14);background:#fff;cursor:pointer}
.tb-menu span{display:block;height:2.5px;border-radius:2px;background:#0f172a}
.tb-menu[aria-expanded="true"]{border-color:#3f86d6;background:#dceeff}

/* ---- ☰ menu ---- */
.gmenu{position:fixed;z-index:30;top:calc(var(--bh,80px) + 8px);right:max(16px,env(safe-area-inset-right,0px));width:300px;max-width:calc(100vw - 32px);max-height:calc(100dvh - var(--bh,80px) - var(--tb) - 24px);overflow:auto;
  padding:6px;border-radius:16px;background:#fff;border:1px solid rgba(15,23,42,.10);box-shadow:0 18px 44px rgba(15,23,42,.18);font-family:var(--body)}
.gmenu>button,.gmenu>a{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:8px 12px;border:0;border-radius:10px;background:none;
  font:600 16px var(--body);color:#0f172a;text-align:left;text-decoration:none;cursor:pointer}
.gmenu>button:hover,.gmenu>a:hover,.gmenu>button:focus-visible,.gmenu>a:focus-visible{background:#f1f5f9;outline:none}
.gmenu i{flex:0 0 28px;font-style:normal;font-size:18px;text-align:center;font-weight:800;color:#1f5fa8}
.gmenu button[aria-pressed="true"] i{color:#fff;border-radius:7px;background:linear-gradient(135deg,#3f86d6,#5ab0ff)}
.gmenu hr{border:0;border-top:1px solid #e2e8f0;margin:6px 8px}
.gm-legal{display:flex;flex-wrap:wrap;gap:4px 14px;padding:8px 12px 6px}
.gm-legal a{font:500 13px var(--body);color:#64748b;text-decoration:none}.gm-legal a:hover{color:#0f172a;text-decoration:underline}

/* ---- the event list (panel) ---- */
@media (min-width:900px){.panel{top:calc(var(--bh,80px) + 12px)!important}}
.panel .ph{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 12px 0!important}
.panel .flscope{margin:0!important;background:#f1f5f9!important}
.panel .flscope button{padding:8px 14px;font-size:14px;min-height:36px;color:#475569}
.panel .flscope button.on{background:#fff!important;color:#14375f!important;box-shadow:0 1px 3px rgba(15,23,42,.15)}
.panel .collapse{border:1.5px solid rgba(15,23,42,.14)!important;background:#fff!important;color:#334155!important;border-radius:10px!important;padding:7px 12px!important;font:700 13.5px var(--body)!important;box-shadow:none!important;min-height:36px}
.panel .flrowbar{display:flex;gap:8px;margin:10px 12px 0}
.whendd,.panel .catslot{flex:1 1 0;min-width:0;margin:0}
.whendd select{width:100%;height:40px;padding:0 30px 0 12px;border-radius:10px;border:1.5px solid rgba(15,23,42,.14);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236366f1' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center;
  font:700 14px var(--body);color:#0f172a;-webkit-appearance:none;appearance:none;cursor:pointer}
.whendd select:focus-visible{outline:none;border-color:#3f86d6;box-shadow:0 0 0 3px rgba(63,134,214,.18)}
.whendd.filtered select,.panel .catslot .ddbtn.filtered{border-color:#3f86d6;background-color:#dceeff;box-shadow:none}
.panel .catslot .catdd{width:100%}
.panel .catslot .plate.catdd{border:0!important;box-shadow:none!important;background:none!important;padding:0!important}
.panel .catslot .ddbtn{width:100%;height:40px;padding:0 12px!important;border-radius:10px!important;border:1.5px solid rgba(15,23,42,.14)!important;background:#fff;box-shadow:none!important;font-size:14px!important}
.panel .catslot .ddbtn::before{content:"Filters"!important;font:700 14px var(--body)!important;color:#0f172a!important}
.panel .catslot .ddmenu{left:0;right:auto;width:260px}
.qchip{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 12px 0;padding:6px 6px 6px 12px;border-radius:10px;background:#dceeff;color:#14375f;font:500 14px var(--body)}
.qchip[hidden]{display:none}
.qchip button{width:30px;height:30px;border:0;border-radius:8px;background:#fff;color:#14375f;font-size:14px;cursor:pointer}
.panel .flcount{padding:10px 14px 4px;font:600 13px var(--body);color:#475569}
/* plain, high-contrast rows */
.panel .flday h3{background:#f8fafc!important;color:#14375f!important;font-size:12.5px;border-bottom:1px solid #e2e8f0}
.panel .flrow{padding:11px 14px;border-bottom:1px solid #eef2f7}
.panel .flrow:hover,.panel .flrow.on{background:#f5f7ff}
.panel .flrow.hl{background:#dceeff;box-shadow:inset 3px 0 0 #3f86d6}
.panel .fltime{flex-basis:72px;font:700 13px var(--body);color:#334155}
.panel .fltime small{font-weight:600;color:#64748b;font-size:12px}
.panel .flwhat b{font-size:15.5px;font-weight:700;color:#0f172a;line-height:1.3}
.panel .flwhat span{font-size:13.5px;color:#475569}
.panel .flgo{color:#94a3b8}
.flempty{padding:16px 14px 6px;color:#334155;font:500 14.5px/1.5 var(--body)}
.flempty p{margin:0 0 10px}
.flempty .btn{display:inline-flex;padding:9px 14px;font-size:14px}
.flnear{list-style:none;margin:0;padding:0;border-top:1px solid #e2e8f0}
.panel .pbody{border-top:1px solid #e2e8f0}
@media (min-width:900px){.dock{top:calc(var(--bh,80px) + 12px)}.ad{top:calc(var(--bh,80px) + 12px)}}
.adhere{font-size:12.5px}

/* map buttons */
.ctrls{gap:6px}
.ctrls .btn{width:44px!important;height:44px!important}

/* ---- quick tips ---- */
.tourcap{background:#fff!important;color:#0f172a!important;border:1px solid rgba(15,23,42,.12)!important;box-shadow:0 14px 36px rgba(15,23,42,.2)!important;font:600 15px/1.4 var(--body)!important;flex-wrap:wrap}
.tourcap .tstep{color:#3f86d6}
.tbtns{display:flex;gap:8px;margin-left:auto}
.tourcap .tskip{background:#fff;color:#475569;border:1.5px solid rgba(15,23,42,.14);border-radius:10px;padding:8px 12px;font:700 13.5px var(--body)}
.tnext{border:0;border-radius:10px;padding:8px 16px;font:700 13.5px var(--body);color:#fff;cursor:pointer;background:linear-gradient(135deg,#3f86d6,#5ab0ff 60%,#8fc3f5)}
.tour-flash{animation:none!important;box-shadow:0 0 0 3px #fff,0 0 0 6px rgba(63,134,214,.75)!important}

/* ---- first visit: find events near you ---- */
.modal.near{background:rgba(15,23,42,.35);z-index:40}
.nearbox{width:min(420px,calc(100vw - 32px))!important;padding:26px 22px 18px!important;text-align:center;border-radius:20px!important}
.nearbox h2{font:700 26px/1.2 "Playfair Display",Georgia,serif!important;color:#0f172a!important;margin:0 0 6px!important}
.nearbox>p{margin:0 0 16px!important;font-size:15.5px!important;color:#475569!important}
.nearf{display:flex;gap:8px}
.nearf input{flex:1;min-width:0;height:48px;padding:0 14px;border-radius:12px;border:1.5px solid rgba(15,23,42,.16);font:500 17px var(--body);color:#0f172a}
.nearf input:focus{outline:none;border-color:#3f86d6;box-shadow:0 0 0 3px rgba(63,134,214,.18)}
.nearf .btn{height:48px;padding:0 16px;font-size:15px;white-space:nowrap}
.nearloc{width:100%;height:48px;margin-top:10px;font-size:15.5px!important}
.nearskip{margin-top:12px;border:0;background:none;color:#1f5fa8;font:600 14.5px var(--body);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px}

/* ---- "What are you into?" picks ---- */
.pickbox{text-align:left!important;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto}
.pkchips{display:flex;flex-wrap:wrap;gap:8px}
.pk{border:1.5px solid #cbd5e1;border-radius:999px;background:#fff;color:#0f172a;font:600 14.5px var(--body);padding:9px 13px;cursor:pointer;min-height:42px}
.pk.on{background:#3f86d6;border-color:#3f86d6;color:#fff}
.pk:focus-visible,.pkchg:focus-visible,.pkall:focus-visible{outline:3px solid rgba(63,134,214,.5);outline-offset:2px}
.pkgo{width:100%;height:50px;margin-top:16px;font-size:16.5px!important}
.pickbox .nearskip{display:block;margin:10px auto 0}
.pknote{margin:8px 0 0!important;text-align:center;font-size:12.5px!important;color:#64748b!important}
.pkbar{display:flex;align-items:center;gap:6px;padding:2px 14px 8px;overflow:hidden}.pkbar[hidden]{display:none}
.pkm{display:block;min-width:0;flex:0 1 auto;background:#e8f1fb;color:#1d5fa8;border-radius:999px;padding:4px 9px;font:600 12.5px var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pkn{flex:0 0 auto}
.pkm b{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}
.pkchg{margin-left:auto;border:0;background:none;color:#1f5fa8;font:700 13px var(--body);cursor:pointer;padding:6px 2px;flex:0 0 auto}
.pkhid{margin:14px 14px 4px;text-align:left;font:500 13px var(--body);color:#64748b}
.pkall{display:block;border:0;background:none;color:#1f5fa8;font:700 13px var(--body);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px 0}
@media (max-width:640px){.modal.pickm{place-items:end center;padding:0}.pickbox{width:100%!important;border-radius:22px 22px 0 0!important;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))!important}}
@media print{.pkbar,.pkhid{display:none!important}}

.btmrow{display:flex;gap:8px;margin:10px 0 8px}.btmrow a{flex:1 1 0;min-width:0;max-width:33%}.btmrow img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}

.flico,.fltag,.fltm{display:none}
.gm-sw{flex:0 0 auto;margin-left:auto;position:relative;width:38px;height:22px;border-radius:999px;background:#64748b;transition:background .15s}
.gm-sw::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s}
#lookbtn[aria-checked="true"] .gm-sw{background:#3f86d6}#lookbtn[aria-checked="true"] .gm-sw::after{left:18px}
#lookbtn{display:flex;align-items:center}#lookbtn[hidden]{display:none}#lookbtn>span:first-of-type{flex:1;text-align:left}

/* ---- shortcut nudge: a glow on the control and a small bubble pointing at it ---- */
.coach{position:fixed;z-index:60;max-width:min(280px,calc(100vw - 20px));padding:9px 13px;border:0;border-radius:12px;background:#0f172a;color:#fff;font:600 13.5px/1.3 var(--body);text-align:left;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.35);animation:coachIn .25s ease-out}
.coach[hidden]{display:none}.coach b{color:#fbbf24}
.coach::before{content:'';position:absolute;top:-6px;left:var(--ax,50%);width:12px;height:12px;margin-left:-6px;background:#0f172a;transform:rotate(45deg);border-radius:2px}
html.metal .coach{background:#f8fafc;color:#0f172a}html.metal .coach::before{background:#f8fafc}html.metal .coach b{color:#b45309}
.coach-ring{animation:coachRing 1.15s ease-out 3;border-radius:14px}
@keyframes coachRing{0%{box-shadow:0 0 0 0 rgba(245,158,11,.85)}100%{box-shadow:0 0 0 16px rgba(245,158,11,0)}}
.zoom-fly{position:fixed;z-index:70;pointer-events:none;border-radius:10px;will-change:transform;filter:drop-shadow(0 0 10px rgba(90,176,255,.9)) drop-shadow(0 6px 14px rgba(0,0,0,.4))}
.zoom-fly.zoom-park{cursor:pointer;border-radius:18px;animation:zoomPark 1.25s ease-in-out infinite!important}
.zoom-fly.zoom-park:focus-visible{outline:3px solid #fbbf24;outline-offset:4px}
@keyframes zoomPark{0%,100%{transform:scale(1);filter:drop-shadow(0 0 8px rgba(90,176,255,.7)) drop-shadow(0 6px 14px rgba(0,0,0,.4))}50%{transform:scale(1.14);filter:drop-shadow(0 0 26px rgba(90,176,255,1)) drop-shadow(0 8px 18px rgba(0,0,0,.45))}}
@keyframes coachIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.coach{animation:none}.coach-ring{animation:none;outline:3px solid #f59e0b;outline-offset:2px}}
@media print{.coach{display:none!important}}
/* on computer-size screens the centred Post button sits at the bottom, so the map hint goes above it */
@media (min-width:900px){.hint{top:auto!important;bottom:calc(104px + env(safe-area-inset-bottom,0px))!important}}

/* ---- add to home screen ---- */
.a2hs{position:fixed;z-index:35;left:50%;transform:translateX(-50%);bottom:calc(16px + var(--tb) + env(safe-area-inset-bottom,0px));width:min(460px,calc(100vw - 24px));
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:14px;border-radius:16px;background:#fff;border:1px solid rgba(15,23,42,.10);box-shadow:0 16px 40px rgba(15,23,42,.22);font-family:var(--body);color:#0f172a}
.a2hs[hidden]{display:none}
.a2hs img{border-radius:10px;flex:0 0 auto}
.a2hs-t{flex:1 1 200px;display:flex;flex-direction:column;gap:2px}.a2hs-t strong{font-size:15.5px}.a2hs-t span{font-size:14px;color:#475569;line-height:1.45}
.a2hs-b{display:flex;gap:8px;margin-left:auto}.a2hs-b .btn{padding:9px 16px;font-size:14px}

/* print: just the list */
@media print{.topbar,.gmenu,.a2hs,.modal{display:none!important}}

/* ---- phones and small tablets ---- */
@media (max-width:899px){
  .topbar{top:0;left:0;right:0;border-radius:0 0 18px 18px;padding:calc(8px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));
    display:grid;grid-template-columns:auto auto 1fr auto auto;grid-template-areas:"logo zoom nav post menu" "search search search search search" "where where where where where";gap:8px 8px;align-items:center}
  .tb-logo{grid-area:logo}.tb-name{font-size:17px}
  .tb-zoom{grid-area:zoom;width:40px;height:40px;margin:0}.tb-zoom img{width:36px;height:36px}
  .topbar .tb-nav{grid-area:nav;justify-self:end}
  .tb-post{grid-area:post;height:40px;padding:0 12px!important;font-size:14px!important}
  .tb-menu{grid-area:menu;width:40px;height:40px;padding:0 10px}
  .tb-search{grid-area:search;max-width:none}
  .tb-search input{height:44px}
  .topbar .where{grid-area:where;font-size:13px;padding:0 2px!important}
  .gmenu{top:calc(var(--bh,120px) + 6px);right:12px}
  .panel{bottom:var(--tb)!important;max-height:none}
  .card{bottom:var(--tb)!important;max-height:min(70dvh,calc(100dvh - var(--bh,120px) - var(--tb) - 8px))!important}
  .ctrls{bottom:calc(16px + var(--tb) + env(safe-area-inset-bottom,0px))}
  body.panel-open:not(.panel-collapsed) .ctrls{bottom:calc(var(--sheet-h,60%) + var(--tb) + 12px)}
  body.panel-open.panel-collapsed .ctrls{bottom:calc(var(--dockh,62px) + 70px + var(--tb))}
  .ctrls .zbtn{display:none}
  body.panel-open:not(.panel-collapsed) .ctrls{display:none}
  .ad{top:auto!important;bottom:calc(16px + var(--tb) + env(safe-area-inset-bottom,0px));right:calc(76px + max(16px,env(safe-area-inset-right,0px)))}
  body.panel-open:not(.panel-collapsed) .ad{bottom:calc(var(--sheet-h,60%) + var(--tb) + 8px)}
  body.panel-open.panel-collapsed .ad{bottom:calc(var(--dockh,62px) + 22px + var(--tb))}
  .dock{top:auto;bottom:calc(14px + var(--tb))}
  .hint{top:auto!important;bottom:calc(70px + var(--tb))!important}
  .cookiebox{bottom:calc(12px + var(--tb))}
  .tourcap{top:auto!important;bottom:calc(12px + var(--tb))!important;left:12px!important;right:12px!important;transform:none!important;width:auto!important;max-width:none!important}
  body.panel-open:not(.panel-collapsed) .tourcap{bottom:calc(var(--sheet-h,60%) + var(--tb) + 8px)!important}
  .toast{top:calc(var(--bh,120px) + 8px)!important}
  .panel .ph{padding:0 12px!important}
  /* the panel no longer needs its own copy of the menu or a second search */
  .panel>.snav{display:none}
  /* while the map zooms, the list steps aside so you can watch it; it comes back when the zoom settles */
  body.zooming.panel-open:not(.panel-collapsed) .panel{transform:translateY(110%);transition:transform .3s ease-in}
}
@media (max-width:700px){
  /* the menu tabs become the site-wide bottom tab bar (see site-nav.css); keep the map's sheet above it */
  .topbar{grid-template-columns:auto 1fr auto auto;grid-template-areas:"logo zoom post menu" "search search search search" "where where where where"}
  .tb-zoom{justify-self:start}
  .topbar .tb-nav{justify-self:stretch}
  .tb-post span{display:none}.tb-post{width:40px;padding:0!important;justify-content:center}.tb-post b{background:none;font-size:22px;width:auto}
}
@media (max-width:380px){.tb-name{font-size:15.5px}}
@media (prefers-reduced-motion:reduce){.tb-go,.tnext,.tb-zoom{transition:none}}

.card .csave[aria-pressed="true"]{color:#1f5fa8;border-color:#b9d9fb;background:#eef7ff}
.card .host a{font-weight:600}
@media (min-width:900px) and (max-width:1240px){.topbar .where{display:none}}

.flthumb{flex:0 0 52px;width:52px;height:52px;border-radius:8px;object-fit:cover;border:1px solid #e2e8f0;align-self:center}
.card .cflyer{display:block;margin:8px 0 6px;border-radius:12px;overflow:hidden;background:#f1f5f9;border:1px solid #e2e8f0}
.card .cflyer img{display:block;width:100%;max-height:240px;object-fit:contain}
@media (max-width:899px){.card .cflyer img{max-height:150px}}

/* ---- flat US map ---- */
.globesnap{position:fixed;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:1;transition:opacity .6s ease,transform .6s ease}
.globesnap.go{opacity:0;transform:scale(1.06)}
.usjump{position:fixed;z-index:5;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(16px + var(--tb) + env(safe-area-inset-bottom,0px));display:flex;gap:6px;flex-wrap:wrap}
.usjump[hidden]{display:none}
.usjump button{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid rgba(15,23,42,.12);background:#fff;color:#14375f;font:700 13.5px var(--body);box-shadow:0 2px 8px rgba(15,23,42,.1);cursor:pointer}
.usjump button:hover{border-color:#8fc3f5}
body.panel-open:not(.panel-collapsed) .usjump{display:none}
@media (min-width:900px){.usjump{left:auto;right:84px}}
@media (max-width:899px){.usjump{bottom:calc(76px + var(--tb) + env(safe-area-inset-bottom,0px))}}
@media (max-width:899px){body.flat .hint{display:none}}

/* ---- event list scrollbar: always visible and easy to grab with a mouse ---- */
@media (hover:hover) and (pointer:fine){
  .panel .pbody{scrollbar-width:auto;scrollbar-color:#94a3b8 #eef2f7;scrollbar-gutter:stable}
  .panel .pbody::-webkit-scrollbar{width:14px}
  .panel .pbody::-webkit-scrollbar-track{background:#eef2f7;border-left:1px solid #e2e8f0}
  .panel .pbody::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px;border:3px solid #eef2f7;min-height:48px}
  .panel .pbody::-webkit-scrollbar-thumb:hover{background:#3f86d6}
  .panel .pbody::-webkit-scrollbar-thumb:active{background:#1f5fa8}
}
/* The width-resize handle used to sit right on top of the scrollbar, so grabbing the bar
   resized the panel instead. Move it just outside the panel's right edge. */
@media (min-width:900px){
  .panel{overflow:visible}
  .panel .rz-x{right:-9px;width:10px}
  .panel .rz-x::before{right:3px}
  .panel .rz-xy{right:-9px;bottom:-9px}
  .panel .rz-y{bottom:-9px;height:10px}
}

/* ---- Local Spotlight (replaces the old floating ad box) ---- */
#ad{display:none!important}
.panel .spcard{display:flex;flex-direction:column;gap:2px;margin:10px 12px 4px;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid #e2e8f0;border-left:4px solid #3f86d6;box-shadow:0 2px 10px rgba(15,23,42,.06)}
.sptag{font:800 11px var(--body);letter-spacing:.06em;text-transform:uppercase;color:#3f86d6}
.spcard .spn{font-size:16px;color:#0f172a}.spcard .spl{font-size:14px;color:#334155}.spcard .spo,.spnear .spo{font-size:14px;font-weight:700;color:#7fb2ea}
.spb{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}.spb a{font:700 13px var(--body);padding:6px 11px;border-radius:9px;border:1.5px solid rgba(15,23,42,.14);color:#0f172a;text-decoration:none;background:#fff}
.spb a:hover{border-color:#8fc3f5}
.card .spnear{margin:8px 0 10px;padding:10px 12px;border-radius:12px;background:#f5f7ff;border:1px dashed #8fc3f5;font-size:14px;color:#334155}
.spnear small{display:block;font:800 10.5px var(--body);letter-spacing:.05em;text-transform:uppercase;color:#3f86d6;margin-bottom:2px}.spnear b{color:#0f172a}
.spinvite{margin:14px 12px 4px;text-align:center;font:500 13.5px var(--body);color:#64748b}.spinvite a{font-weight:700;color:#1f5fa8}

/* ---- one compact filter row: When · Categories · Hide list ---- */
.panel .ph.phc{display:flex;align-items:center;gap:6px;padding:10px 10px 0!important}
.phc .whendd,.phc .catslot{flex:1 1 0;min-width:0;margin:0}
.phc .whendd select{height:38px;font-size:13.5px;padding:0 26px 0 10px;background-position:right 9px center}
.phc .catslot .ddbtn{height:38px;padding:0 10px!important;font-size:13.5px!important}
.phc .catslot .ddbtn::before{font-size:13.5px!important}
.phc .collapse{flex:0 0 auto;min-height:38px!important;padding:0 10px!important;font-size:13px!important;white-space:nowrap}
.panel .qchip{margin-top:8px}
.panel .flcount{padding-top:8px}

/* ---- one row: "10 events in Perry County" · Categories · Hide list (the date strip below handles days) ---- */
.panel .ph.phc{gap:8px}
.phc .flcount{flex:1 1 auto;min-width:0;padding:0 2px!important;font:700 13.5px/1.25 var(--body)!important;color:#334155!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.phc .catslot{flex:0 0 auto!important}
.phc .catslot .ddbtn{width:auto!important}
.panel .fljump{margin-top:8px}

/* ---- Local Spotlight pinned above the list (always visible while the list is open) ---- */
.spslot{display:flow-root} /* keeps the pin's margins inside, so the list leaves room for all of it */
.spslot:empty{display:none}
.sppin{display:flex;align-items:center;gap:10px;margin:8px 10px 6px;padding:9px 10px 9px 12px;border-radius:12px;background:#fff;border:1px solid #e2e8f0;border-left:4px solid #3f86d6;box-shadow:0 2px 8px rgba(15,23,42,.06)}
.sppin .spt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.sppin .sptag{font-size:10px}
.sppin .spt b{font:700 14.5px var(--body);color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sppin .spw{font:600 13px var(--body);color:#7fb2ea;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sppin .spb{flex:0 0 auto;margin:0;flex-direction:column;gap:4px}.sppin .spb a{padding:5px 10px;font-size:12.5px;text-align:center}

/* ---- Smooth list scrolling ("quick return" headers) ----
   The list scrolls natively and never changes size or position. The filter row + date strip float over the
   top of the list and move up exactly as far as you scroll (1:1, no timed jump), so they leave with the content
   under your finger; scroll back up and they come back the same way. The Local Spotlight rides along under
   them and stays on screen. On phones the search row tucks under the logo row once the headers are gone. */
.pclip{position:relative;flex:1 1 auto;min-height:0;overflow:hidden}
.phead{position:absolute;left:0;right:0;top:0;z-index:3;transform:translate3d(0,calc(var(--tk,0px) - var(--o,0px)),0);will-change:transform;
  background:linear-gradient(180deg,#252d38,#1e252f);box-shadow:0 -80px 0 0 #252d38}
.phead.snap{transition:transform .18s ease-out}
.pclip>.pbody{position:absolute;inset:0;overflow-y:auto;padding-top:var(--hd,0px);padding-bottom:12px;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-behavior:auto;border-top:0}
.pclip>.pbody .flday h3{top:var(--stick,0px)}
.phide{flex:0 0 auto}
.phide-in{min-width:0}
@media (max-width:899px){
  /* the sheet's top sits right under the logo row; until the search row tucks away, the headers start below it */
  body:not(.tuck) .panel{--tk:var(--tuck-d,0px)}
  body:not(.tuck) .panel .grab{transform:translate3d(0,var(--tuck-d,0px),0)}
  .panel .grab{position:relative;z-index:4}
  .topbar .tb-search,.topbar .where{max-height:60px;transition:max-height .28s cubic-bezier(.2,.8,.2,1),opacity .2s ease}
  .topbar{transition:row-gap .28s cubic-bezier(.2,.8,.2,1)}
  body.tuck.panel-open:not(.panel-collapsed) .topbar{row-gap:0}
  body.tuck.panel-open:not(.panel-collapsed) .topbar .tb-search,body.tuck.panel-open:not(.panel-collapsed) .topbar .where{max-height:0;opacity:0;overflow:hidden;pointer-events:none}
}
@media (prefers-reduced-motion:reduce){.phead.snap,.topbar,.topbar .tb-search,.topbar .where{transition:none!important}}

/* ---- Categories menu: open toward the left so it stays on screen, and keep Show all / Done always visible ---- */
.panel .ph.phc{position:relative}
.panel .catslot,.panel .catslot .plate.catdd{position:static!important}
.panel .catslot .ddmenu{left:10px!important;right:10px!important;width:auto!important;top:calc(100% + 6px)!important;
  max-height:min(420px,calc(100dvh - var(--bh,120px) - var(--tb,0px) - 140px))!important;overflow:auto;overscroll-behavior:contain;padding-bottom:0}
.panel .catslot .ddmenu .ddfoot{position:sticky;bottom:0;z-index:1;margin:4px -6px 0;padding:8px 10px 8px;background:linear-gradient(180deg,#1d242e,#141a22);border-top:1px solid #313b47}

/* ---- Street map under the pins (MapLibre + OpenFreeMap) ---- */
#streets{position:fixed;inset:0;pointer-events:none;opacity:0;background:#0f141b}
#streets .maplibregl-canvas{outline:none}
.st-attr{position:fixed;right:8px;bottom:calc(var(--tb,0px) + 8px);z-index:6;padding:2px 8px;border-radius:8px;
  background:rgba(11,14,19,.72);color:#c3ccd6;font:600 11px/1.6 var(--body,system-ui);pointer-events:auto}
.st-attr a{color:#c3ccd6;text-decoration:none}.st-attr a:hover{color:#fff;text-decoration:underline}
@media (min-width:900px){.st-attr{left:calc(var(--pw,0px) + 24px);right:auto}}
@media (max-width:899px){body.panel-open:not(.panel-collapsed) .st-attr{bottom:calc(var(--sheet-h,0px) + var(--tb,0px) + 6px)}}
@media (max-width:899px){body.panel-open.panel-collapsed .st-attr{bottom:calc(var(--tb,0px) + var(--dockh,72px) + 16px)}}

/* an open Local Spotlight spot (an invitation, only where there is room) and the "free for everyone" lines */
.spopen{display:block;margin:10px 10px 4px;padding:11px 13px;border-radius:12px;border:1.5px dashed #c9a227;background:#fffdf5}
.spopen .sptag{display:block;font:800 11.5px var(--body);letter-spacing:.4px;text-transform:uppercase;color:#8a6d1f}
.spopen b{display:block;margin:3px 0 2px;font:700 15px var(--body);color:#1e293b}
.spopen span:not(.sptag){display:block;font:500 13.5px var(--body);color:#475569}
.spopen a{display:inline-block;margin-top:7px;font:700 14px var(--body);color:#8a6d1f;text-decoration:none}
.flfree{margin:14px 12px 84px;text-align:center;font:500 13.5px var(--body);color:#64748b}.flfree a{font-weight:700;color:#1f5fa8;white-space:nowrap}
.gm-paid{margin:8px 14px 2px;font:500 12.5px/1.45 var(--body);color:#64748b}
