/* Keep the map primary; search results and rarely used options open independently. */
.sidebar{top:18px;left:18px;right:auto;bottom:auto;width:332px;height:auto;min-height:0;max-height:calc(100dvh - 36px);border-radius:14px;transition:none}
.brand-row{padding:14px 16px 9px;min-height:0;border:0;background:transparent}
.brand{width:246px;max-width:100%;padding:0;border:0;background:transparent;cursor:pointer;text-align:left}
.brand:hover{opacity:.87}
.sidebar-body{padding:0 14px 14px;min-height:0;overflow-y:auto}
.regional-explore{margin:0 0 9px;padding:8px 12px;min-height:34px;font-size:12px;line-height:1.3}
.search-wrap{min-height:41px}
.search-wrap input{font-size:18px;line-height:1.2;padding-top:10px;padding-bottom:10px}
.search-wrap>svg{margin-left:11px;margin-right:9px}
.map-options{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.options-heading{display:flex;justify-content:space-between;align-items:center;margin:0 1px 12px;color:var(--teal);font:11px/1.4 var(--serif)}
.options-heading .text-button{font:18px/1.2 var(--sans);padding:2px 5px}
.map-options .section-caption{margin-top:17px}
.map-options .area-note{font-size:16px}
.map-options .bathroom-filter{margin-top:12px}
.results-section{margin-top:14px}
.place-card-name{font-size:18px}
.place-card-icon{width:37px;height:37px}
.frame-corner-left{left:355px;width:88px}
.maplibregl-ctrl-top-right{top:10px!important;right:10px!important}
.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:0!important}
.map-legend{left:50%;bottom:30px;transform:translateX(-50%);white-space:nowrap}
.place-detail{bottom:50px;max-height:calc(100dvh - 90px)}
.map-notice{left:50%;bottom:85px;transform:translateX(-50%)}
@media(max-width:760px){
  .sidebar{top:12px;left:12px;right:auto;bottom:auto;width:min(332px,calc(100% - 76px));min-width:235px;height:auto;min-height:0;max-height:calc(100dvh - 24px);border-radius:13px;transform:none}
  .brand-row{padding:12px 13px 9px;min-height:0;border:0}
  .brand{width:235px;max-width:100%}
  .sidebar-body{padding:0 11px 11px}
  .sidebar.has-results{max-height:62dvh}
  .regional-explore{padding:8px 9px;margin-bottom:8px;font-size:11px}
  .search-wrap input{font-size:17px}
  .search-wrap>svg{width:14px;height:14px;margin-left:9px;margin-right:7px}
  .group-filters{display:grid;grid-template-columns:1fr;overflow:visible;margin:0;padding:0}
  .group-chip:last-child{grid-column:auto}
  .chip-count{display:block}
  .frame-corner-left{left:-14px;top:-12px;width:80px}
  .map-legend{display:none}
  .maplibregl-ctrl-top-right{top:2px!important;right:1px!important}
  .maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:0!important}
  .place-detail{left:12px;right:12px;bottom:28px;width:auto;max-height:44dvh;padding:18px}
  .map-notice{left:12px;right:12px;bottom:28px;max-width:none;transform:none}
  .results-heading{display:block}
  .results-context{display:block;max-width:none;text-align:left;margin-top:4px}
}

/* Six equal category choices, including the bathroom guide. */
.group-chip:last-child{grid-column:auto}
.group-chip{white-space:normal}
.search-note{margin:0 0 10px;font:15px/1.3 var(--sans);color:var(--slate);padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fffaf0}
@media(max-width:760px){.group-filters{grid-template-columns:1fr 1fr}.group-chip{padding:8px 7px;gap:5px;font-size:16px}.sidebar.has-options{max-height:calc(100dvh - 24px)}}

.options-heading-actions{display:flex;align-items:center;gap:12px}
.map-options .group-chip{padding:7px 8px;min-height:42px;font-size:17px;line-height:1.1}
.map-options .toggle-row{padding:10px 0}
.map-options .toggle-row small{font-size:14px;line-height:1.1}
.map-options .type-filter{margin-top:8px}
.data-footer .art-gallery-link{margin:6px 0}
@media(min-width:761px){.sidebar.has-options{width:370px}.place-detail{right:calc(76px + env(safe-area-inset-right))}}

.seasonal-planning>summary{font:600 17px/1.25 var(--sans);color:var(--teal);margin:13px 0 5px;cursor:pointer}
.seasonal-planning>summary:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:3px}
.seasonal-planning ul{margin-top:5px}

/* Standard home navigation, with the rarely used filters inside search. */
.search-options{position:absolute;right:7px;top:6px;width:28px;height:28px;border:0;border-radius:5px;background:transparent;color:var(--teal);padding:5px;display:flex;align-items:center;justify-content:center}
.search-options svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.search-options[aria-expanded=true]{background:#11746b14}
.search-wrap input{padding-right:67px}.clear-search{right:40px}
.notice-retry{border:1px solid #bda47c;background:#fffaf0;color:var(--teal);border-radius:6px;padding:5px 9px;margin:8px 0 0;display:block}
.map-unavailable .sidebar{height:calc(100dvh - 36px);width:min(430px,calc(100vw - 36px))}
.map-unavailable #map{background:#f6f3ea url('assets/paper.webp') repeat}
.group-chip:disabled{opacity:.55;cursor:default;transform:none}
@media(max-width:760px){.map-unavailable .sidebar{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);width:calc(100vw - 24px)}}

/* Location and share actions remain reachable on narrow phones. */
.location-controls{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:9px}
.location-controls .regional-explore{margin:0;flex:1}
.near-me,.share-place{border:1px solid #b7c7c3;border-radius:8px;background:#f3f8f4;color:var(--teal);padding:8px 12px;font:inherit;min-height:44px;cursor:pointer}
.near-me[aria-pressed=true]{background:var(--teal);color:white}
.location-status{font-size:15px;line-height:1.3;color:var(--slate);margin:0 0 10px}
.location-status:empty{display:none}
.user-location{width:16px;height:16px;border-radius:50%;background:#2479bd;border:3px solid white;box-shadow:0 0 0 6px #2479bd33}
.share-link{width:100%;min-width:0;font-size:16px}
.share-place{font-size:16px}
@media(max-width:760px){
  .sidebar{top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left))}
  .place-detail{bottom:max(28px,env(safe-area-inset-bottom))}
  .location-controls .regional-explore{font-size:12px;min-height:44px}
  .near-me{font-size:16px;padding:8px 10px}
}
.data-status{font-size:15px;line-height:1.3;color:var(--slate);margin:0 0 8px}
.data-status:empty{display:none}

/* Guide programme names and dates wrap inside narrow mobile place cards. */
.guide-links{margin-top:18px;min-width:0}.guide-links h3{font-size:16px}.guide-item{margin:12px 0;overflow-wrap:anywhere}.guide-item a{display:block;line-height:1.5;padding:4px 0;color:var(--cranberry,#a51d35)}.guide-item-status{display:block;font-size:12px;color:#665c55}.guide-item p{margin:4px 0;line-height:1.5}.seasonal-status{white-space:normal;max-width:100%;box-sizing:border-box}
/* Close-up discoveries keep the compact default panel unchanged. */
.neighborhood-options{border-top:1px solid #dfd7c7;margin-top:15px;padding:15px 0 3px}.neighborhood-options h3{font-size:14px;margin:0 0 5px;color:#52644e}.neighborhood-options p{font-size:12px;line-height:1.5;margin:0 0 9px;color:#776b60}.neighborhood-links{display:flex;gap:7px;flex-wrap:wrap}.neighborhood-links button,.neighborhood-related{border:1px solid #d9c8ab;background:#fffaf0;color:#6f4d3f;border-radius:14px;padding:8px 11px;font:inherit;font-size:12px;cursor:pointer}.neighborhood-links button:hover,.neighborhood-related:hover{background:#f0e9da}.neighborhood-links button:focus-visible,.neighborhood-related:focus-visible{outline:2px solid #b81321;outline-offset:2px}.neighborhood-card{margin:14px 0;border-top:1px solid #e2d8c7;padding-top:10px}.neighborhood-vignette{width:190px;max-width:75%;margin:0 auto 10px;background-repeat:no-repeat}.neighborhood-caption{font-family:Georgia,serif;font-size:21px;color:#714334;margin:8px 0}.neighborhood-description{font-size:14px;line-height:1.65}.neighborhood-winter-note{font-size:12px;line-height:1.5;color:#6b7763}.neighborhood-related{margin:12px 0 3px}

/* A small phone toolbar, with separate scrollable sheets for options/results. */
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:4px 12px;border-bottom:1px solid var(--line);font:18px/1.3 var(--serif);color:var(--teal)}
.panel-heading .text-button{font-size:17px;min-width:60px;min-height:44px}
.search-wrap{min-height:44px}.search-options,.clear-search{width:44px;height:44px;top:0;right:0;padding:12px}.clear-search{right:44px;padding:0}.search-wrap input{min-height:44px;padding-right:88px}
.icon-button{width:44px;height:44px;flex-shrink:0}.detail-top{position:sticky;top:-18px;z-index:1;background:var(--paper,#fffdf7)}
.text-button,.type-filter select,.toggle-row,.show-more,.neighborhood-links button,.detail-links a,.notice-retry{min-height:44px}
.map-options .group-chip{min-height:44px}.seasonal-planning>summary{min-height:44px;padding-block:11px}
.maplibregl-ctrl-group button{width:44px!important;height:44px!important}
@media(max-width:760px){
  .sidebar{top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));width:min(332px,calc(100% - 76px));min-width:0;max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  .brand-row{padding:0 8px;min-height:44px}.brand{width:174px;min-height:44px;display:flex;align-items:center}.brand img{width:174px;max-width:100%}
  .sidebar-body{padding:0 8px 6px}.location-controls{gap:6px;margin-bottom:4px;flex-wrap:nowrap}.location-controls button{min-height:44px;padding:6px 8px;white-space:nowrap}.location-controls .regional-explore{font-size:12px}.near-me{font-size:16px}
  .sidebar.has-options,.sidebar.has-results{top:auto;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-height:82dvh;border-radius:16px}
  .sidebar.has-options .brand-row,.sidebar.has-results .brand-row,.sidebar.has-options .location-controls,.sidebar.has-results .location-controls{display:none}
  .sidebar.has-options .sidebar-body,.sidebar.has-results .sidebar-body{padding:8px 12px 12px}.sidebar.has-options .search-wrap,.sidebar.has-results .search-wrap{position:sticky;top:-8px;z-index:2;background:var(--paper)}
  .map-options .options-heading>span{display:none}.map-options .options-heading{justify-content:flex-end;margin-bottom:4px}.map-options{margin-top:6px;padding-top:0;border:0}
  .has-place .location-status,.has-place .data-status{display:none}
  .place-detail{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:calc(32px + env(safe-area-inset-bottom));max-height:min(48dvh,calc(100dvh - 196px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));overscroll-behavior:contain}
  .maplibregl-ctrl-top-right{top:env(safe-area-inset-top)!important;right:env(safe-area-inset-right)!important}
  .maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:env(safe-area-inset-bottom)!important}.map-notice{bottom:calc(32px + env(safe-area-inset-bottom))}
  .map-unavailable .sidebar{height:calc(100dvh - 132px - env(safe-area-inset-bottom));max-height:calc(100dvh - 132px - env(safe-area-inset-bottom));bottom:calc(112px + env(safe-area-inset-bottom));width:auto}.map-unavailable.has-place .sidebar{height:140px;max-height:140px;top:max(8px,env(safe-area-inset-top));bottom:auto}.map-unavailable.has-place .panel-heading,.map-unavailable.has-place .sidebar .search-wrap{display:none}
  .map-unavailable.has-place .map-notice{top:calc(156px + env(safe-area-inset-top));bottom:auto}
  .map-unavailable.has-place .place-detail{max-height:min(48dvh,calc(100dvh - 300px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}
}
/* Short screens keep the card scrollable inside the reserved control strip. */
@media(max-height:500px) and (min-width:761px){
  .place-detail{bottom:calc(32px + env(safe-area-inset-bottom));max-height:calc(100dvh - 52px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
}
