/* Normal-mode map controls and compact shared footer. */
.system-footer .footer-inner{padding:10px 18px!important}
.system-footer .footer-connect{display:flex!important;flex-wrap:wrap;gap:4px 20px!important;margin:0!important}
.system-footer .footer-connect>a,.system-footer .footer-connect>button{display:inline-flex;align-items:center;justify-content:flex-start;width:auto!important;flex:none;min-height:40px!important;padding:3px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:13px!important;line-height:1.3;color:#17616b;text-decoration:none}
.system-footer nav{gap:0 18px!important}.system-footer nav a{min-height:36px!important;align-items:center;display:inline-flex;padding:0!important;font-size:12px!important}
.system-footer small{display:block;margin-top:2px!important;font-size:11px!important}
.preview-map-tabs{display:flex;gap:6px;padding:0 12px 8px}.preview-map-tabs a{display:flex;align-items:center;justify-content:center;min-height:44px;flex:1;border:1px solid #cad6d8;border-radius:6px;font-size:13px;color:#17616b;text-decoration:none}
.mobile-map-preview .mobile-map-preview-heading{padding:10px 12px!important;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mobile-map-preview .mobile-map-preview-heading h2{font-size:17px!important;margin:0!important}.mobile-map-preview .mobile-map-preview-heading a{font-size:13px;min-height:36px;display:inline-flex;align-items:center}
.mobile-map-preview .mobile-preview-canvas{height:50svh;min-height:280px;max-height:460px}.mobile-preview-canvas #mobile-preview-map{height:100%!important}
.catalog-object-icon{display:flex;align-items:center;justify-content:center;background:transparent;border:0}
.catalog-object-icon .object-symbol{display:block;box-sizing:border-box;width:26px;height:26px;border:1.5px solid #42626c;border-radius:5px;background:#fffef5;color:#2a5663;font-size:23px;font-family:Arial,sans-serif;font-weight:700;line-height:23px;text-align:center;box-shadow:0 1px 3px #0003}
.catalog-object-icon .object-water{font-size:16px}.catalog-object-icon .object-rescue{color:#b43c30}.catalog-object-icon .object-camps{color:#6e4f24}
.map-object-cluster{display:flex;align-items:center;justify-content:center;background:none;border:0}.map-object-cluster span{display:block;min-width:30px;height:30px;line-height:30px;text-align:center;background:#fffdf5;border:2px solid #38636d;border-radius:50%;font-weight:700;color:#193f50}
.route-point.endpoint{display:block;min-width:27px;width:max-content;padding:0 4px;box-sizing:border-box;height:27px;background:#fff;border:2px solid #c65308;border-radius:14px;line-height:23px;color:#983c00;font-size:13px;font-weight:bold;text-shadow:none;box-shadow:0 1px 4px #0004}
.route-arrow-icon{background:none;border:0;pointer-events:none}.route-arrow-icon span{display:block;line-height:18px;color:#863900;font-size:17px;text-shadow:1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff;transform-origin:center}
section.useful-map .map-explorer-toolbar{flex-wrap:wrap}section.useful-map .map-quick-tabs{display:flex;flex-wrap:wrap;gap:5px;margin-left:auto}
section.useful-map .map-quick-tabs button{min-height:40px!important;font-size:12px!important;padding:5px 9px!important}
section.useful-map #catalog-toggle{display:none}
#catalog-layers{overflow-y:auto!important;font-size:13px;line-height:1.5}#catalog-layers h2{font-size:16px!important}#catalog-layers label{display:flex;align-items:center;gap:8px;min-height:44px}#catalog-layers input{width:20px;height:20px}
section.useful-map .route-details-dialog[open]{position:absolute;inset:auto auto 60px 12px;margin:0;z-index:950;width:min(380px,calc(100% - 340px));max-height:45%;overflow:auto;box-shadow:0 3px 16px #1234}
section.useful-map .route-details-heading{position:sticky;top:0;background:#fffdf8;z-index:1;padding:8px 12px}
section.useful-map .route-details-heading button{min-height:40px!important;width:40px}
section.useful-map.filters-closed .route-details-dialog[open]{width:min(380px,calc(100% - 24px))}
section.useful-map.map-expanded{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;min-height:0!important;margin:0!important;border:0;border-radius:0;z-index:2500}
body.map-is-expanded{overflow:hidden}body.map-is-expanded>.system-footer{display:none}
@media(max-width:900px){section.useful-map .map-explorer-toolbar h1{width:100%;font-size:16px!important}section.useful-map .map-quick-tabs{margin:0;width:100%;flex-wrap:nowrap}section.useful-map .map-quick-tabs button{flex:1;max-width:none!important;min-height:44px!important;padding:4px!important;font-size:12px!important}section.useful-map .route-details-dialog[open]{position:absolute;inset:auto 8px 52px;width:calc(100% - 16px)!important;max-height:35%;margin:0;border-radius:10px}section.useful-map .route-details-heading h2{font-size:14px!important}section.useful-map #route-details-body,section.useful-map #object-details-body{padding:8px 12px}section.useful-map .leaflet-control-zoom a{width:40px;height:40px;line-height:40px}}

/* Details replace the desktop catalogue without covering the selected route. */
@media(min-width:901px){section.useful-map .route-details-dialog[open],section.useful-map.filters-closed .route-details-dialog[open]{inset:0 0 0 auto;width:310px!important;max-width:310px;max-height:100%;height:100%;border:0;border-left:1px solid #d4dedf;border-radius:0;box-shadow:none;box-sizing:border-box}}
/* Compact map-page chrome; other pages retain their established header. */
.brand-map-title,.map-site-menu-toggle{display:none}
.catalog-region-filter{flex:none;margin:0 0 4px;border:1px solid #cad6d8;border-radius:5px;background:#fff}
.catalog-region-filter summary{display:flex;align-items:center;min-height:38px;padding:0 9px;font-size:12px;color:#17616b;cursor:pointer;list-style:none}
.catalog-region-filter summary::after{content:'▾';margin-left:auto}.catalog-region-filter[open] summary::after{content:'▴'}
.catalog-region-filter .catalog-regions{padding:4px 8px;margin:0;gap:5px}
.catalog-route-summary{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:none;flex-wrap:wrap;margin:0 0 3px}
.catalog-route-summary .catalog-actions{margin:0;gap:12px;flex-wrap:nowrap}.catalog-route-summary .catalog-count{margin:0!important;white-space:nowrap}
section.useful-map .map-filter-footer #catalog-fit{display:block;flex:1;min-height:44px!important}
section.useful-map .map-filter-footer #catalog-fit:disabled{opacity:.55;cursor:default}
@media(max-width:900px){
body.map-catalog-page>.system-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 10px;min-height:56px;padding:6px 12px;box-sizing:border-box}
.map-catalog-page .system-header .brand{margin:0;min-width:0;gap:8px;grid-column:1;grid-row:1}
.map-catalog-page .system-header .brand img{width:28px!important;height:28px!important;object-fit:contain}
.map-catalog-page .system-header .brand strong{font-size:17px!important;line-height:1.2}
.map-catalog-page .system-header .brand small,.map-catalog-page .system-header .brand-desktop-title,.map-catalog-page .system-header .brand-mobile-title{display:none!important}
.map-catalog-page .system-header .brand-map-title{display:inline!important}
.map-catalog-page .map-site-menu-toggle{display:block;grid-column:2;grid-row:1;min-height:44px;margin:0;padding:6px 10px;background:#fff;color:#193f50;border:0;border-radius:6px;font-size:14px}
.map-catalog-page:not(.map-menu-open) .system-header .header-right,.map-catalog-page:not(.map-menu-open) .system-header .interface-switch,.map-catalog-page:not(.map-menu-open) .mobile-page-nav{display:none!important}
.map-catalog-page.map-menu-open .system-header .header-right{display:flex!important;grid-column:1/-1;grid-row:2;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;width:100%;margin:8px 0 0!important}
.map-catalog-page.map-menu-open .system-header .interface-switch{display:flex!important;grid-column:1/-1;grid-row:3;width:100%;box-sizing:border-box;margin:8px 0 0!important}
.map-catalog-page.map-menu-open .mobile-page-nav{display:flex!important;margin:8px 12px;gap:6px}
.map-catalog-page>.app-layout{display:block!important;width:100%;padding:0!important}
.map-catalog-page .app-layout>.side{display:none!important}.map-catalog-page #content{padding:0!important;margin:0}
.map-catalog-page section.useful-map{height:calc(100dvh - 56px);min-height:320px;margin:0;border-radius:0;border:0}
.map-catalog-page section.useful-map .map-explorer-toolbar h1{display:none}
.map-catalog-page section.useful-map .map-explorer-toolbar{padding:5px 7px;gap:0}
body.map-catalog-page section.useful-map>#catalog-panel{inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border:0!important}
section.useful-map .map-filter-heading{padding:4px 10px!important}
section.useful-map .map-filter-heading h2{font-size:16px!important}
section.useful-map .catalog-tabs{padding:0 10px 4px;gap:4px}
section.useful-map .catalog-scroll{padding:6px 10px 0}
section.useful-map .catalog-tabs button{font-size:13px!important}
section.useful-map .catalog-route-summary .catalog-actions button{font-size:12px!important;min-height:38px!important}
section.useful-map .catalog-region-filter summary{min-height:40px;font-size:13px}
section.useful-map .map-filter-footer{padding:5px 10px max(5px,env(safe-area-inset-bottom))}
section.useful-map .map-filter-footer #catalog-fit{font-size:14px!important}
section.useful-map .catalog-region-filter summary:focus-visible{outline:2px solid #1769b3;outline-offset:1px}
}
