/* A map workspace, never a nested page or a modal sheet. */
:root[data-theme] body #app .places-page:has(.map-explorer){max-width:1440px;width:calc(100% - 48px);margin:16px auto 20px;padding:0}
:root[data-theme] body #app .map-explorer{height:var(--explorer-height,700px);min-height:420px;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:14px;color:#1f2024}
:root[data-theme] body #app .map-explorer *{box-sizing:border-box;min-width:0}
:root[data-theme] body #app .explorer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
:root[data-theme] body #app .explorer-heading h1{font-size:24px;line-height:1.7;margin:0}
:root[data-theme] body #app .explorer-heading .discovery-eyebrow{font-size:12px;color:#71727a}
:root[data-theme] body #app .explorer-heading>a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;padding:8px 16px;margin:0}
:root[data-theme] body #app .explorer-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.3fr) auto;gap:10px;padding:0;margin:0}
:root[data-theme] body #app .explorer-search :is(input,select,button){min-height:48px;height:48px;margin:0;font-size:14px}
:root[data-theme] body #app .explorer-search input{border-radius:24px;padding-inline:18px}
:root[data-theme] body #app .explorer-search button{padding-inline:24px}
:root[data-theme] body #app .explorer-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin;overscroll-behavior-inline:contain}
:root[data-theme] body #app .explorer-chip{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;flex:none;min-height:44px;padding:8px 16px;background:#fff;border:1px solid #e8e9f1;border-radius:24px;font-size:13px;font-weight:600;color:#494a50;margin:0}
:root[data-theme] body #app .explorer-chip[aria-pressed="true"]{background:#006ffd;color:#fff;border-color:#006ffd}
:root[data-theme] body #app .explorer-chip:disabled{opacity:1;color:#8f9098;background:#f8f9fe;cursor:default}
:root[data-theme] body #app .explorer-chip>span{font-size:10px;color:#71727a}
:root[data-theme] body #app .explorer-workspace{display:grid;grid-template-columns:340px minmax(0,1fr);grid-template-areas:"list map";min-height:0;gap:16px;position:relative;overflow:clip;contain:layout paint}
:root[data-theme] body #app .explorer-sheet{grid-area:list;display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff;border:1px solid #e8e9f1;border-radius:24px;overflow:hidden;z-index:2}
:root[data-theme] body #app .explorer-sheet-heading{padding:16px 18px;border-bottom:1px solid #e8e9f1;background:#fff;flex:none}
:root[data-theme] body #app .explorer-sheet-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
:root[data-theme] body #app .explorer-sheet-title h2{font-size:16px;line-height:1.8;margin:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
:root[data-theme] body #app .explorer-clear{border:1px solid #e8e9f1;border-radius:50%;background:#fff;min-width:44px;width:44px;height:44px;padding:0;font-size:24px;color:#71727a;margin:0}
:root[data-theme] body #app .explorer-sheet-controls{display:none}
:root[data-theme] body #app .explorer-list{overflow-y:auto;min-height:0;flex:1;padding:12px;overscroll-behavior-y:contain;scrollbar-gutter:stable}
:root[data-theme] body #app .explorer-list:focus-visible{outline:2px solid #006ffd;outline-offset:-3px}
:root[data-theme] body #app .explorer-results{display:grid;grid-template-columns:1fr;gap:10px;align-content:start}
:root[data-theme] body #app .explorer-card{padding:18px;border:1px solid #e8e9f1;background:#fff;border-radius:18px;display:grid;grid-template-rows:auto auto auto auto;gap:10px;cursor:pointer}
:root[data-theme] body #app .explorer-card.is-selected{border-color:#006ffd;background:#eaf2ff}
:root[data-theme] body #app .explorer-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
:root[data-theme] body #app .explorer-card-head img{width:28px;height:28px;flex:none}
:root[data-theme] body #app .explorer-category{color:#006ffd;font-size:11px;font-weight:700;line-height:1.8}
:root[data-theme] body #app .explorer-card h3{margin:0;font-size:16px;line-height:1.9}
:root[data-theme] body #app .explorer-card h3 button{border:0;padding:0;min-height:44px;background:transparent;color:#1f2024;text-align:right;font-size:inherit;font-weight:700;line-height:inherit;display:block;width:100%;margin:0}
:root[data-theme] body #app .explorer-card p{margin:0;font-size:13px;color:#71727a;line-height:1.9;min-height:25px}
:root[data-theme] body #app .explorer-card-actions{display:flex;gap:8px;margin-top:4px}
:root[data-theme] body #app .explorer-card-actions>*{display:flex;align-items:center;justify-content:center;flex:1;margin:0;min-height:44px;padding:8px 12px;font-size:12px;white-space:nowrap;border-radius:12px}
:root[data-theme] body #app [data-explorer-selected]:not([hidden]){margin-bottom:10px}
:root[data-theme] body #app .explorer-map{grid-area:map;position:relative;min-height:0;overflow:hidden;border:1px solid #e8e9f1;border-radius:24px;background:#eaf2ff;isolation:isolate}
:root[data-theme] body #app .explorer-map>.street-map-shell{height:100%;display:flex;flex-direction:column;border:0;border-radius:0;margin:0;position:static;box-shadow:none}
:root[data-theme] body #app .explorer-map .motoryar-street-map{height:auto!important;min-height:0!important;flex:1;z-index:0}
:root[data-theme] body #app .explorer-map .street-map-toolbar{position:absolute;inset-block-start:12px;inset-inline-start:12px;padding:0;background:transparent;z-index:1;display:flex;gap:8px;max-width:calc(100% - 80px)}
:root[data-theme] body #app .explorer-map .street-map-toolbar b{display:none}
:root[data-theme] body #app .explorer-map .street-map-toolbar button{background:#fff;min-height:44px;margin:0;font-size:12px;padding:8px 12px;flex:none}
:root[data-theme] body #app .explorer-locate{position:absolute;inset-inline-start:12px;inset-block-start:68px;z-index:1;background:#fff;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;font-size:12px;margin:0}
:root[data-theme] body #app .explorer-status{position:absolute;inset-inline:12px;inset-block-end:26px;z-index:1;font-size:12px;line-height:1.8;background:#fff;border-radius:12px;padding:10px;margin:0}
:root[data-theme] body #app .explorer-status:empty{display:none}
:root[data-theme] body #app .explorer-map .street-map-status{position:absolute;inset-inline:12px;inset-block-end:30px;z-index:1;background:#fff;padding:8px 12px;border-radius:12px;font-size:12px;line-height:1.8;margin:0}
:root[data-theme] body #app .explorer-map .street-map-status:empty{display:none}
:root[data-theme] body #app .explorer-map .street-map-retry{position:absolute;inset-block-start:124px;inset-inline-start:12px;z-index:1;background:#fff;min-height:44px}
:root[data-theme] body #app .explorer-empty{padding:28px 12px;display:grid;justify-items:center;text-align:center;gap:16px}
:root[data-theme] body #app .explorer-empty h3{font-size:16px;margin:0}
:root[data-theme] body #app [data-explorer-pagination] .pagination{flex-wrap:wrap;gap:8px;margin:16px 0 4px;padding:0}
:root[data-theme] body #app [data-explorer-pagination] button{min-height:44px;font-size:12px;padding:8px 12px}

:root[data-theme] body:has(#app .map-explorer)>.journey-nav,:root[data-theme] body:has(#app .map-explorer)>.ref-footer{display:none!important}
:root[data-theme] body #app .explorer-heading{padding:0;background:transparent;border:0;box-shadow:none;position:static;width:100%;max-width:none;border-radius:0;min-height:0;margin:0}
:root[data-theme] body #app .explorer-map .street-map-toolbar{inset-inline-start:auto;inset-inline-end:12px}
:root[data-theme] body #app .explorer-locate{inset-inline-start:auto;inset-inline-end:12px}
:root[data-theme] body #app .map-explorer{min-height:0;overflow-anchor:none}
:root[data-theme] body:has(#app .map-explorer) #app{padding-block-end:0;min-height:0}
:root[data-theme] body #app .explorer-sheet{overflow:clip}
:root[data-theme] body #app .map-explorer :is(a,button,input,select,[tabindex]){scroll-margin:4px}
:root[data-theme] body #app .explorer-list{scroll-padding:6px}
:root[data-theme] body #app .explorer-map .leaflet-control-zoom a{width:44px;height:44px;line-height:44px}
/* On phones and tablets the map and results are separate, reachable page sections. */
@media(max-width:1023px){
:root[data-theme] body #app .places-page:has(.map-explorer){width:calc(100% - 32px);margin:12px auto 0}
:root[data-theme] body.has-quick-nav:has(#app .map-explorer) #app{padding-block-end:calc(84px + env(safe-area-inset-bottom,0px))}
:root[data-theme] body #app .map-explorer{height:auto;grid-template-rows:auto auto auto auto;gap:12px}
:root[data-theme] body #app .explorer-heading h1{font-size:20px}
:root[data-theme] body #app .explorer-heading .discovery-eyebrow{display:none}
:root[data-theme] body #app .explorer-search{grid-template-columns:minmax(0,1fr) auto;gap:8px}
:root[data-theme] body #app .explorer-search select{display:none}
:root[data-theme] body #app .explorer-search :is(input,button){font-size:13px;height:48px}
:root[data-theme] body #app .explorer-search button{padding-inline:16px}
:root[data-theme] body #app .explorer-workspace{display:flex;flex-direction:column;gap:16px;contain:layout paint;overflow:clip}
:root[data-theme] body #app .explorer-map{order:-1;height:clamp(280px,45svh,420px);min-height:280px;flex:none}
:root[data-theme] body #app .explorer-sheet{position:relative;inset:auto;height:auto;min-height:0;max-height:none;flex:none;box-shadow:none}
:root[data-theme] body #app .explorer-sheet-heading{padding:12px 16px;min-height:0}
:root[data-theme] body #app .explorer-sheet-title{display:flex;min-height:32px}
:root[data-theme] body #app .explorer-list{display:block;height:auto;max-height:none;min-height:0;flex:none;overflow:visible;padding:12px}
:root[data-theme] body #app .explorer-map .leaflet-control-attribution{margin-bottom:0}
:root[data-theme] body #app .explorer-status,:root[data-theme] body #app .explorer-map .street-map-status{inset-block-start:auto;inset-block-end:30px;max-width:calc(100% - 24px)}
}
/* Align the map content with the desktop header's inner edges. */
@media(min-width:1024px){
 :root[data-theme] body #app .places-page:has(.map-explorer){width:calc(100% - max(24px, (100vw - 1280px)/2) - max(24px, (100vw - 1280px)/2));max-width:none}
}
