/* Compact navigation: one persistent bar and panels opened on demand. */
body.compact-layout{--navigation-height:calc(74px + env(safe-area-inset-bottom,0px));--app-header-height:76px}
.compact-layout>main{height:calc(100dvh - var(--app-header-height) - var(--navigation-height))}
#mainNavigation{position:fixed;bottom:0;left:0;right:0;height:var(--navigation-height);padding:8px max(12px,calc((100vw - 500px)/2)) calc(8px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:#fffdf8;border-top:1px solid #d5ded5;z-index:900;box-shadow:0 -3px 18px #193d3110}
#mainNavigation button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:48px;border:0;border-radius:12px;background:transparent;color:#496455;font-size:12px;font-weight:600;padding:6px 4px}
#mainNavigation button[aria-pressed=true]{background:#244c38;color:#fff}
#mainNavigation button:not([aria-pressed=true]):hover{background:#e5eddf;color:#193d31}
#mainNavigation button:focus-visible{outline-offset:-3px}
#mainNavigation svg{width:22px;height:22px}
.compact-map-tools{position:absolute;top:16px;left:16px;z-index:5;display:flex;gap:8px}
.compact-map-tools button{display:flex;align-items:center;gap:7px;min-height:44px;background:#fffdf8;border:1px solid #d5ded5;border-radius:13px;padding:10px 13px;box-shadow:0 3px 12px #193d311c;font-size:14px;font-weight:600}
.compact-map-tools button[aria-expanded=true]{background:#244c38;color:#fff}
.compact-layout #panel{top:76px;bottom:16px;left:16px;width:410px;height:auto;max-height:calc(100% - 92px);border-radius:18px;z-index:8;min-height:0}
.compact-layout #panel[data-position=full]{top:16px;bottom:16px;left:16px;width:min(720px,calc(100% - 88px));height:calc(100% - 32px)!important;max-height:calc(100% - 32px)!important}
.compact-layout .panel-toolbar{display:flex;align-items:center;position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid #edf0e9;border-radius:18px 18px 0 0;min-height:44px;padding:0 8px 0 48px}
.compact-layout .panel-toolbar .handle{display:flex;align-items:center;justify-content:center;position:static;flex:1;width:auto;height:44px;border:0;background:transparent;touch-action:none;cursor:ns-resize}
.compact-layout .panel-toolbar .handle span{width:40px;height:4px;background:#aab9ac;border-radius:6px}
#closeMapPanel{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:transparent;color:#294a38;font-size:25px}
.compact-layout .panel-inner{padding:16px 20px 28px}
.compact-layout #browse>.eyebrow,.compact-layout .discovery-actions,.compact-layout .inspiration-entry{display:none!important}
.compact-layout #browse>h1{font-size:26px;margin:0 0 16px}
.compact-layout #tripPanel{border:0;margin:0;padding:0}
.compact-layout #tripPanel>.nearby-heading{top:44px}
.compact-layout.nearby-inline #browse>h1,.compact-layout.nearby-inline #destinationSearch{display:none}
.compact-layout #mapQuickFilters{display:none!important}
.compact-layout .map-top{top:16px;left:auto;right:16px;transform:none}
.compact-layout .map-actions,.compact-layout.map-browsing .map-actions{left:auto;right:16px;top:86px;align-items:flex-end}
.compact-layout .map-actions #locate.location-reference{max-width:170px;font-size:12px;padding:8px 10px}
.compact-layout .contribute-map{top:auto;bottom:86px;left:auto;right:16px}
.compact-layout .map-legend{top:auto;bottom:28px;right:16px;left:auto}
.compact-layout #toast{bottom:16px}
.compact-layout.account-open #mainNavigation,.compact-layout.account-open .compact-map-tools{visibility:hidden}
.compact-layout #inspirationDialog{position:fixed;inset:calc(var(--app-header-height) + 16px) auto calc(var(--navigation-height) + 16px) 16px;margin:0;width:min(780px,calc(100vw - 100px));max-width:none;max-height:none;height:auto;z-index:850;padding:22px;border-radius:18px}
.compact-layout #inspirationDialog>header{position:sticky;top:-22px;padding:12px 0;background:#faf6ed;z-index:5}
.compact-layout #inspirationDialog .itinerary-grid,.compact-layout #inspirationDialog .itinerary-overview{grid-template-columns:1fr}
@media(max-width:700px){
 body.compact-layout{--app-header-height:65px}
 .compact-layout .compact-map-tools{top:12px;left:12px;gap:6px}
 .compact-map-tools button{padding:9px 11px;font-size:13px}
 .compact-layout #panel[data-position=half],.compact-layout.nearby-inline #panel[data-position=half]{top:auto;bottom:0;left:0;width:100%;height:62%!important;max-height:62%!important;min-height:0;border-radius:20px 20px 0 0;--panel-half-ratio:.62}
 .compact-layout #panel[data-position=full]{top:0;bottom:0;left:0;width:100%;height:100%!important;max-height:100%!important;border-radius:0}
 .compact-layout #panel .panel-inner{padding:12px 16px 24px}
 body.compact-layout:has(#panel[data-position]) #map{height:var(--visible-map-height,100%)!important}
 body.compact-layout:has(#panel[hidden]) #map{height:100%!important}
 .compact-layout .map-top{top:auto;bottom:28px;right:12px;max-width:none;padding:3px}
 .compact-layout .map-style-buttons button{height:36px;width:36px;padding:7px}
 .compact-layout .map-actions,.compact-layout.map-browsing .map-actions{right:12px;top:72px}
 .compact-layout .map-actions #locate.location-reference{max-width:130px;font-size:11px}
 .compact-layout .contribute-map{right:12px;bottom:82px}
 .compact-layout .map-legend{left:12px;right:auto;bottom:28px;min-width:0;padding:8px 10px}
 .compact-layout:has(#panel:not([hidden])) .map-top,.compact-layout:has(#panel:not([hidden])) .map-legend,.compact-layout:has(#panel:not([hidden])) .contribute-map{visibility:hidden}
 .compact-layout #inspirationDialog{inset:auto 0 var(--navigation-height);width:100%;height:76dvh;max-height:calc(100dvh - var(--app-header-height) - var(--navigation-height));padding:16px;border-radius:20px 20px 0 0}
 .compact-layout #inspirationDialog>header{top:-16px}
 .compact-layout #inspirationDialog .itinerary-filters{grid-template-columns:1fr}
 .compact-layout #inspirationDialog .place-collections{min-width:0;flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){.compact-layout #panel{transition:none!important}}
/* Override the legacy contribution control's mobile anchors. */
.compact-layout .contribute-map{left:auto!important;right:16px!important;bottom:86px!important}
.compact-layout .map-actions>button{align-self:flex-end}
@media(max-width:700px){.compact-layout .contribute-map{right:12px!important;bottom:82px!important}}
