/* Staging integration only. Native PNY metrics/brand/cards live in exact-copy board.css. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.discovery{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center}
.discovery>.schedule-heading,.discovery>#results-detail,.discovery>#notice,.discovery>#search-form{grid-column:1/-1}
/* The rounded segmented control Gabor preferred, on top of the native palette. */
.discovery .mode-switch{display:flex;width:max-content;max-width:100%;grid-column:1;background:#f0f3ed;padding:4px;border-radius:28px;gap:0}
.discovery .mode-switch button{min-height:40px;padding:0 20px;border-radius:24px;font-size:13px;font-weight:600;background:none}
.discovery .mode-switch button[aria-pressed=true]{background:var(--forest);color:var(--surface);box-shadow:0 2px 5px #143d3520}
.discovery>#open-filters{grid-column:2;justify-self:end}
.filter-toggle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.filter-toggle svg{width:18px;height:18px;flex:none}
.filter-toggle .muted{font-weight:400}
.search-form{display:flex;align-items:center;gap:8px;margin:14px 0 4px}
.search-form input{flex:1;min-width:0}
.search-form svg,.map-toggle svg,.map-recenter svg,.map-games-heading svg,.square-button>svg{width:20px;height:20px;flex:none}
.filter-body{display:grid;gap:10px}
.map-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;gap:20px}
.results-panel{min-width:0;overflow:visible}
.workspace>.map-panel{position:sticky;top:16px;height:calc(100dvh - 32px);min-height:360px;min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;isolation:isolate;background:var(--mint)}
#map{position:absolute;inset:0;z-index:0}
.maplibregl-map{font-family:var(--sans);background:var(--mint)}
.maplibregl-ctrl-group button{min-height:44px;width:44px;height:44px}
.maplibregl-popup-content{font:13px/1.5 var(--sans);color:var(--navy);border:1px solid var(--line);border-radius:8px;padding:16px}
.map-recenter{position:absolute;z-index:5;top:112px;right:10px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 3px 10px #143d3515}
.map-hidden{grid-template-columns:minmax(0,1fr)}
.workspace.map-hidden>.map-panel{display:none}
/* Map selection is visible two ways: a labelled pin and the matching board cards. */
.user-location-dot{width:16px;height:16px;border:3px solid #fff;border-radius:50%;background:#2583f7;box-shadow:0 0 0 6px #2583f724,0 1px 5px #163c5d40;pointer-events:none;z-index:1}
.selected-venue-marker{display:flex;align-items:center;gap:8px;min-height:0;max-width:230px;padding:7px 13px 7px 9px;border:0;border-radius:999px;background:var(--forest);color:var(--surface);font:600 12px/1.1 var(--sans);box-shadow:0 6px 18px #143d3540;cursor:pointer}
.selected-marker-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px #dce98259}
.selected-marker-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-card.selected{border-color:var(--forest);box-shadow:0 0 0 2px var(--forest)}
.map-games,.mobile-toggle{display:none}
.toast svg{width:18px;height:18px;flex:none}
/* Selection panel: same compact native widget list on desktop and phone. */
.map-games:not([hidden]){display:flex;flex-direction:column;position:absolute;z-index:4;left:12px;right:12px;bottom:12px;max-height:min(54%,400px);background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 22px #143d3526;overflow:hidden}
.map-games-heading{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 8px 0 16px;flex:none;gap:8px}
.map-games-heading h2{font-size:13px;font-weight:600;letter-spacing:0;margin:0}
.map-games-heading button{display:grid;place-items:center;width:44px;height:44px;min-height:44px}
.map-games-context{flex:none;font-size:12px;color:var(--muted);margin:0;padding:0 16px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.map-games-filter{flex:none;display:block;margin:0 16px 8px;padding:0;font-size:12px;text-align:left}
.map-games-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;display:flex;flex-direction:column;gap:10px;padding:0 8px 8px;scrollbar-width:thin}
.map-games-list .event-card{flex:none;padding:10px}
.map-games-list .event-card.selected{border-color:var(--forest);box-shadow:0 0 0 2px var(--forest)}
.map-games-list .card-title{font-size:16px}.map-games-list .card-top{gap:8px}
.map-games-list .venue-logo-frame{width:32px;height:32px;flex-basis:32px;padding:3px}
.map-games-list .game-identity{display:none}
.map-games-list .card-level{font-size:11px;margin:2px 0}.map-games-list .card-date{font-size:11px;margin-bottom:4px}
.map-games-list .card-summary{margin-top:0;padding:6px 0}.map-games-list .card-time{font-size:18px}
.map-games-list .card-venue{font-size:12px}.map-games-list .card-stats{margin-top:4px}
.map-games-list .card-attendance,.map-games-list .card-price,.map-games-list .card-people{font-size:11px}
.map-games-list .card-distance{font-size:11px;margin:4px 0}.map-games-list .card-actions{margin-top:8px}
.map-games-list .card-actions .primary-button{min-height:44px;padding:8px 10px;font-size:12px}
.map-games-empty{font-size:13px;padding:12px 8px 20px;color:var(--muted)}
.map-games-empty p{margin:0 0 8px}
.map-preview-open .maplibregl-popup{display:none}
/* Filters are the tested live controls, presented in a modal. */
#filter-dialog{max-width:600px;width:calc(100% - 32px)}
#filter-dialog .dialog-top{margin-bottom:4px}
#filter-dialog .dialog-top h2{font-size:14px;letter-spacing:.2px;font-weight:600}
#filter-dialog{padding:20px}
#filter-dialog #filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:8px 0 0}
#filter-dialog .match-toggle{padding:4px 0}
#filter-dialog .filter-explainer{margin:2px 0}
#filter-dialog .origin-pill{margin:4px 0 0;padding-bottom:4px}
#filter-dialog .filter-explainer{display:flex}
#filter-dialog .match-toggle{display:flex}
#filter-dialog .origin-pill{display:block}
.filter-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
.filter-dialog-actions .primary-button{min-width:150px}
@media(min-width:761px){
 /* Wide Airbnb-style framing: equal results/map columns without the old page-width cap. */
 html{scroll-padding-top:calc(var(--workspace-top,188px) + 12px)}
 .site-header,body>main{width:100%;max-width:none;padding-inline:clamp(24px,2.8vw,96px)}
 .site-header{position:sticky;top:0;background:var(--paper)}
 body>main>.schedule{padding-top:0}
 .discovery{position:sticky;top:var(--site-header-height,56px);z-index:4;background:var(--paper);padding:16px 0}
 .workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,2.8vw,48px)}
 .workspace.map-hidden{grid-template-columns:minmax(0,1fr)}
 .workspace>.map-panel{top:var(--workspace-top,176px);height:calc(100dvh - var(--workspace-top,176px) - 20px);min-height:240px;border-radius:16px}
 .workspace .day-games{grid-template-columns:repeat(2,minmax(0,1fr))}
 .map-games:not([hidden]){max-width:420px}
 .workspace.map-hidden .day-games{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
}
@media(min-width:761px) and (max-width:1199px){.workspace:not(.map-hidden) .day-games{grid-template-columns:minmax(0,1fr)}}
/* Grouping is temporarily fixed to days; retain the native controls for later restoration. */
.preferences-row>.view-switch[aria-label="Group games"]{display:none}
.preferences-row:has(#restore-hidden[hidden]){display:none}
#results-count{margin-left:auto}
@media(max-width:760px){
 .workspace{display:block}
 .workspace>.map-panel{display:none}
 #desktop-toggle{display:none}
 .results-panel{padding-bottom:64px}
 .discovery .mode-switch button{padding:0 16px;font-size:12px}
 .workspace.show-map{position:fixed;inset:0;z-index:500;display:block;height:100dvh;min-height:0;background:var(--paper)}
 .workspace.show-map>.results-panel{display:none}
 .workspace.show-map>.map-panel{display:block;position:absolute;inset:0;height:100%;min-height:0;border:0;border-radius:0}
 body.map-open{overflow:hidden}
 .mobile-toggle{display:inline-flex;position:fixed;z-index:700;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:144px;min-width:144px;height:48px;min-height:48px;padding:0 18px;border:1px solid #ffffff59;border-radius:24px;background:var(--forest);color:var(--lime);box-shadow:0 4px 18px #143d3540;gap:8px;font:600 13px/1 var(--sans);white-space:nowrap}
 button.mobile-toggle:is(:hover,:active,:focus-visible){background:var(--forest);color:var(--lime)}
 .mobile-toggle svg{width:18px;height:18px}
 .toast{z-index:750;bottom:calc(84px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px)}
 .map-recenter{top:108px}
 .workspace.show-map .map-games:not([hidden]){bottom:calc(84px + env(safe-area-inset-bottom));max-height:46dvh}
 #filter-dialog{padding:20px}
}
