/* Mobile discovery keeps listings in view; full fields remain available on demand. */
/* The homepage keeps the approved phone order before deferred scripts arrive. */
.page-home #main>section:has(>.home-tonight-list){display:flex;flex-direction:column}
.page-home #main>section>.tonight-quick-filters{order:1}
.page-home #main>section>.home-tonight-list{order:2}
/* Preserve the margins that previously collapsed between the section's children. */
.page-home .home-tonight-list>:first-child{margin-top:0}
.page-home .home-tonight-list>:last-child{margin-bottom:0}
.page-home .home-tonight-list>.empty-gigs:first-child{margin-top:4px}
.mobile-discovery,.mobile-search-heading,.discovery-heading-compact,.mobile-filter-date,.mobile-filter-area { display:none; }
.more-filter-options { min-width:0; }
.more-filter-options>summary { cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center;gap:10px; }
.more-filter-options>summary:after { content:'+';margin-left:auto; }
.more-filter-options[open]>summary:after { content:'−'; }
.more-filter-options>.field { margin-top:16px; }
.filter-availability-note { font-size:12px;color:var(--gg-text-3); }
.filter-option-list { display:grid;gap:4px;margin-top:8px; }
.filter-option-list:empty { display:none; }
.filter-option-list button { min-height:44px;text-align:left;justify-content:flex-start;flex-direction:column;align-items:flex-start;white-space:normal; }
.filter-option-list small { color:var(--gg-text-3); }
.category-bar[hidden] { display:none!important; }
@media(max-width:759px) {
 .page-home.mobile-discovery-ready #discovery-search:not(:popover-open){display:none}
 .page-home.mobile-discovery-ready #main>section>.tonight-quick-filters{order:2}
 .page-home.mobile-discovery-ready #main>section>.home-tonight-list{order:1}
 .page-home.mobile-discovery-ready .home-tonight-list>:last-child{margin-bottom:8px}
 .page-home.mobile-discovery-ready .home-tonight-list>.empty-gigs:first-child{margin-top:0;margin-bottom:1em}
 .page-home.mobile-discovery-ready #main>section>.tonight-quick-filters{margin-bottom:0}
 .site-header .header-main { margin-inline:0;display:flex;flex-wrap:nowrap;align-items:center;gap:12px;min-height:64px;height:auto;padding:10px 16px; }
 .site-header .brand { flex:0 1 112px;width:112px;min-width:88px;margin-right:0; }
 .site-header .brand img { width:100%;height:auto; }
 .site-header .header-area-group { flex:1;min-width:0;width:auto; }
 .site-header .area-picker { min-width:0;width:100%;height:44px;font-size:14px;padding:0 8px;gap:5px; }
 .site-header .area-button-name { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
 .site-header .header-main>nav,.site-header .header-search { display:none; }
 .has-discovery-search .site-header { top:0; }
 .mobile-discovery-ready .site-header .category-bar { display:none; }
 .site-header .category-bar { padding-top:4px;padding-bottom:6px;min-height:54px; }
 .category-bar .category-chip { min-height:44px; }
 .mobile-discovery-ready .discovery-hero { padding:12px 0 8px;margin-bottom:0; }
 .mobile-discovery-ready .seo-breadcrumbs { margin:8px 0;font-size:11px; }
 .mobile-discovery-ready .hero-title-slot { height:auto;min-height:0;margin:0; }
 .mobile-discovery-ready .hero-title-slot h1 { font-size:26px;line-height:1.2;margin:0; }
 .mobile-discovery-ready .hero-title-slot .results-title { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
 .mobile-discovery-ready .discovery-heading-compact { display:block;font:700 20px/1.25 var(--gg-font-display);margin:0; }
 .page-search.mobile-discovery-ready .discovery-hero .eyebrow { display:none; }
 .mobile-discovery-ready .hero-title-slot .results-title { font-size:20px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
 .mobile-discovery-ready .hero-official { margin:6px 0 0;font-size:16px; }
 .mobile-discovery-ready .discovery-hero .eyebrow { margin:0 0 8px;font-size:11px; }
 .mobile-discovery-ready .discovery-hero .lead,.mobile-discovery-ready .standalone-filter-trigger { display:none; }
 .mobile-discovery-ready .discovery-hero .quick-links { display:none; }
 .mobile-discovery-ready .mobile-discovery { display:block;position:sticky;top:var(--gg-header-height,64px);z-index:45;padding:8px 0;background:var(--gg-bg);border-bottom:1px solid var(--gg-border);margin:0 0 12px; }
 .mobile-search-summary { width:100%;display:flex;align-items:center;text-align:left;gap:10px;min-height:52px;padding:8px 12px;background:var(--gg-surface);border:1px solid var(--gg-border);border-radius:var(--gg-radius); }
 [data-mobile-summary] { display:flex;flex-direction:column;min-width:0;flex:1;gap:3px; }
 [data-mobile-summary] strong { font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
 [data-mobile-summary] small { font-size:12px;color:var(--gg-text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
 .mobile-edit-label { color:var(--gg-link);font-size:12px; }
 .mobile-discovery-controls { display:flex;align-items:stretch;gap:8px;margin-top:8px; }
 .mobile-discovery-controls>button,.mobile-sort-slot { flex:1;min-width:0; }
 .mobile-sort-slot>button { width:100%;min-height:44px;height:100%;font-size:12px; }
 #mobile-sort { width:min(360px,calc(100vw - 32px));padding:16px;border:1px solid var(--gg-border);border-radius:var(--gg-radius);background:var(--gg-bg-hero);color:var(--gg-text-1); }
 #mobile-sort::backdrop { background:rgb(0 0 0 / .6); }
 .mobile-sort-heading { display:flex;align-items:center;justify-content:space-between;margin-bottom:16px; }
 .mobile-sort-heading h2 { margin:0;font-size:18px; }
 .mobile-sort-heading button { width:44px;height:44px;padding:0;font-size:24px; }
 .mobile-discovery-controls>button { display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:4px 7px;font-size:12px;border-radius:var(--gg-radius); }
 .mobile-date-control [data-mobile-date-label] { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
 .mobile-discovery-controls button[aria-pressed=true] { border-color:var(--gg-link);background:var(--gg-surface-3);color:var(--gg-text-1); }
 #mobile-sort .results-sort { display:block;margin:0;width:100%; }
 #mobile-sort .results-sort label { display:block;margin:0 0 8px;font-size:14px; }
 #mobile-sort .results-sort select { width:100%;min-width:0;max-width:none;font-size:12px;min-height:44px;height:44px;padding:4px 22px 4px 8px; }
 #mobile-sort .results-sort>button { display:none; }
 #mobile-sort .clearable-control { width:100%; }
 #mobile-sort .field-clear { display:flex; }
 #mobile-sort .field-clear[hidden] { display:none; }
 .mobile-discovery-ready .search-scroll-tools { display:none!important; }
 .mobile-discovery-ready .results-toolbar { display:block;margin:0 0 8px; }
 .mobile-discovery-ready .results-controls { gap:0;margin:0; }
 .mobile-discovery-ready .results-controls>.results-filter-trigger { display:none; }
 .mobile-discovery-ready .filter-summary-heading { justify-content:flex-end;min-height:0;margin:0; }
 .mobile-discovery-ready .filter-summary-heading strong,.mobile-discovery-ready .no-active-filters { display:none; }
 .mobile-discovery-ready .clear-filters { display:inline-flex;align-items:center;min-height:44px;font-size:12px; }
 .mobile-discovery-ready .results-controls:has(.active-filter) { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px; }
 .mobile-discovery-ready .results-controls .active-filter-row { grid-column:1;grid-row:1;margin:0;flex-wrap:nowrap;height:48px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding:2px 0;mask-image:none; }
 .mobile-discovery-ready .active-filter-row .active-filter { flex:none;max-width:none; }
 .mobile-discovery-ready .active-filter-row .active-filter button { height:44px;white-space:nowrap; }
 .mobile-discovery-ready .active-filter-row .active-filter button>span:first-child { white-space:nowrap;max-width:180px;text-overflow:ellipsis;overflow:hidden; }
 .mobile-discovery-ready .results-controls .filter-summary-heading { grid-column:2;grid-row:1; }
 .mobile-discovery-ready .results-controls:not(:has(.active-filter)) { display:none; }
 .mobile-only-summary .results-controls { margin-top:8px; }
 .mobile-discovery-ready .results-time-note { margin:8px 0;font-size:11px; }
 .mobile-discovery-ready .results-content>section>p { margin:8px 0;font-size:13px; }
 .mobile-discovery-ready .results-content .day-group-heading { margin-top:14px; }
 #discovery-search[popover]:not(:popover-open) { display:none; }
 #discovery-search[popover]:popover-open { display:grid;position:fixed;inset:var(--gg-visual-top,0px) 0 auto;width:100%;max-width:600px;max-height:calc(var(--gg-visual-height,100dvh) - 12px);margin:0 auto;border:1px solid var(--gg-border-strong);border-radius:var(--gg-radius-lg) var(--gg-radius-lg) 0 0;padding:0 16px max(16px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:68px;scroll-padding-bottom:80px;background:var(--gg-bg-hero);box-shadow:var(--gg-shadow-pop);gap:12px; }
 #discovery-search[popover]::backdrop { background:rgb(0 0 0 / .6); }
 .mobile-search-heading { display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;background:var(--gg-bg-hero);padding:10px 0;border-bottom:1px solid var(--gg-border); }
 .mobile-search-heading h2 { font-size:18px;margin:0; }
 .mobile-search-heading button { min-width:44px;min-height:44px;padding:0;font-size:24px; }
 #discovery-search[popover]>.field,#discovery-search[popover]>.find-button { grid-column:1/-1; }
 #discovery-search[popover]>.find-button { position:sticky;bottom:0;min-height:48px; }
 body:has(#discovery-search:popover-open) { overflow:hidden; }
 body:has(#discovery-search:popover-open) .mobile-nav,body:has(.filter-panel:popover-open) .mobile-nav { display:none; }
 .mobile-discovery-ready .filter-panel { text-align:left; }
 .mobile-filter-area { display:block; }
 .mobile-filter-date { display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--gg-border); }
 .mobile-filter-date button { min-height:44px; }
 .mobile-filter-date [data-filter-date] { flex:1;justify-content:flex-start;text-align:left; }
 .mobile-filter-date [data-reset-date] { width:44px;padding:0;font-size:21px; }
 .mobile-discovery-ready .filter-panel:popover-open { inset:var(--gg-visual-top,0px) 0 auto;width:100%;max-width:600px;max-height:calc(var(--gg-visual-height,100dvh) - 12px);margin:0 auto;border-radius:var(--gg-radius-lg) var(--gg-radius-lg) 0 0;padding-bottom:env(safe-area-inset-bottom); }
 .mobile-discovery-ready .filter-panel-footer { display:flex;gap:12px;align-items:center; }
 .mobile-discovery-ready .filter-panel-footer [data-view-gigs] { flex:1;min-height:48px;font-size:14px; }
 .mobile-discovery-ready .filter-panel-footer .filter-clear { min-height:44px;display:flex;align-items:center; }
 .mobile-discovery-ready .more-filter-options>.field { margin-top:12px; }
 .tonight-quick-filters { flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;white-space:nowrap;scrollbar-width:thin;padding-bottom:4px; }
 .tonight-quick-filters>* { flex:none; }
 .page-place .city-heading { padding:16px 24px; }
 .page-place .city-heading h1 { font-size:26px;margin:8px 0; }
 .page-place .city-heading .place-summary { font-size:13px;line-height:1.5;margin:8px 0; }
 .page-place .city-heading .place-history { font-size:11px;margin:6px 0; }
 .page-place .city-heading .city-shortcuts { display:flex;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;gap:8px;scrollbar-width:thin; }
 .page-place .city-heading .city-shortcuts>* { flex:none; }
 .page-place .city-heading .city-shortcuts :is(a,button) { min-height:44px;padding:8px 12px; }
}
@media(hover:hover) and (pointer:fine) {
 .mobile-search-summary:hover,.mobile-discovery-controls>button:hover,.filter-option-list button:hover,.more-filter-options>summary:hover { background:var(--gg-surface-3); }
}
@media(max-height:480px) { .mobile-discovery-ready .mobile-discovery { position:static; }.mobile-discovery-ready .site-header { position:relative; } }

.experience-switch { display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0; }
.experience-switch a { display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid var(--gg-border);border-radius:var(--gg-radius);background:var(--gg-surface);font-size:13px;text-decoration:none; }
.experience-switch a[aria-current] { background:var(--gg-text-1);color:var(--gg-bg); }

.more-filter-options>summary:focus-visible { outline:2px solid var(--gg-link);outline-offset:2px; }
.filter-option-list button[aria-selected=true] { background:var(--gg-surface-3);outline:2px solid var(--gg-link);outline-offset:-2px; }

@media(min-width:760px) and (max-width:999px){
 .site-header .header-main{display:grid;grid-template-columns:217px minmax(0,1fr);gap:12px 20px;padding-block:12px}
 .site-header .header-search{display:none}
 .site-header .header-area-group{min-width:0;width:100%}
 .site-header .header-main>nav{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0}
 .site-header .header-main>nav form{display:block}
 .site-header .header-main>nav [data-saved-nav]{margin-left:auto}
}
.mobile-sort-help{font-size:13px;color:var(--gg-text-2);line-height:1.5;margin:12px 0}
