/* V181: map heading and controls occupy normal flow ABOVE the actual map at every width. */
body.v78-atlas #trips .v78-map-world{height:auto!important;min-height:0!important;overflow:visible!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}
body.v78-atlas #trips .v78-map-world .chart-hero,
body.v78-atlas #trips .v78-map-world .map-command-bar{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;margin:0!important;z-index:2!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;gap:0!important;min-height:0!important;height:auto!important;overflow:visible!important;padding:0!important;background:var(--strata-surface)!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab .trip-map-head,
body.v78-atlas #trips .v78-map-world #tripMapSlab .map-layer-title,
body.v78-atlas #trips .v78-map-world #tripMapSlab .map-layer-controls,
body.v78-atlas #trips .v78-map-world #tripMapSlab .map-legend,
body.v78-atlas #trips .v78-map-world #tripMapSlab .trip-contour-note{position:relative!important;inset:auto!important;transform:none!important;z-index:2!important;margin:0!important;width:100%!important;box-sizing:border-box!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab .trip-map-head{padding:12px 14px!important;min-height:0!important;background:var(--strata-surface)!important;border-bottom:1px solid var(--strata-accent)!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab .map-layer-title{padding:5px 12px!important;min-height:0!important;background:var(--strata-surface)!important;color:var(--strata-text)!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab .map-layer-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;padding:10px 12px!important;background:var(--strata-surface)!important;clear:both!important;flex:0 0 auto!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab .map-layer-controls button{position:relative!important;inset:auto!important;float:none!important;min-width:0!important;min-height:40px!important;width:100%!important;padding:8px!important;white-space:normal!important;font-size:12px!important;line-height:1.3!important;z-index:3!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab .map-legend{display:flex!important;flex-wrap:wrap!important;gap:12px!important;padding:7px 12px!important;background:var(--strata-surface)!important;color:var(--strata-text)!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab #map{position:relative!important;inset:auto!important;transform:none!important;float:none!important;flex:0 0 auto!important;width:100%!important;height:550px!important;min-height:550px!important;max-height:none!important;z-index:0!important;overflow:hidden!important;clear:both!important}
body.v78-atlas #trips .v78-map-world #tripMapSlab #map .leaflet-control-container{z-index:20!important}
@media(max-width:900px){body.v78-atlas #trips .v78-map-world #tripMapSlab #map{height:420px!important;min-height:420px!important}}
@media(max-width:600px){body.v78-atlas #trips .v78-map-world #tripMapSlab .map-layer-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.v78-atlas #trips .v78-map-world #tripMapSlab #map{height:360px!important;min-height:360px!important}}
