/* SIGAM 22.5.2 · Corrección responsiva integral de mapas públicos */
html,body{max-width:100%;overflow-x:hidden}
.live-command-shell,.map-command-column,.map-command-toolbar,.map-stage,.command-featured,.active-groups-strip{min-width:0;max-width:100%}
.map-command-toolbar .map-search{box-sizing:border-box}
.map-toolbar-actions button{min-width:0;overflow-wrap:anywhere}
body.sigam-map-fullscreen .mobile-actions{display:none!important}
#live-command-shell:fullscreen,.sigam-fullscreen-fallback{padding:0!important}
#live-command-shell:fullscreen .map-command-toolbar,.sigam-fullscreen-fallback .map-command-toolbar{border-radius:0}

@media(max-width:760px){
  .live-section{overflow:hidden}
  .live-section>.public-container{width:min(100% - 18px,100%)}
  .live-heading{gap:18px;margin-bottom:18px}
  .live-heading .heading-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;width:100%}
  .live-heading .heading-actions .public-button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:54px;padding:11px 12px;text-align:center;white-space:normal;line-height:1.25;font-size:.69rem}
  .live-command-shell{display:block;width:100%;border-radius:22px;overflow:hidden;min-height:0}
  .map-command-column{display:grid;width:100%;grid-template-rows:auto minmax(370px,56vh) auto;border-right:0;border-bottom:1px solid var(--sigam-line)}
  .map-command-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:11px!important;width:100%;padding:13px!important;overflow:hidden}
  .map-command-toolbar .map-search{order:1;flex:0 0 auto!important;flex-basis:auto!important;width:100%!important;max-width:100%!important;height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:0 13px!important;border-radius:13px!important}
  .map-command-toolbar .map-search input{height:48px!important;min-height:48px!important;min-width:0;font-size:.72rem!important;text-overflow:ellipsis}
  .map-command-toolbar .map-search span{flex:0 0 auto;font-size:1rem}
  .map-command-toolbar .map-filters{order:2;display:flex!important;width:100%!important;max-width:100%;gap:7px;padding:1px 0 5px!important;overflow-x:auto!important;overflow-y:hidden;flex-wrap:nowrap!important;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .map-command-toolbar .map-filters::-webkit-scrollbar{display:none}
  .map-command-toolbar .map-filters button{flex:0 0 auto;scroll-snap-align:start;min-height:42px;padding:9px 13px;font-size:.63rem}
  .map-toolbar-actions{order:3;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;width:100%!important;max-width:100%;margin:0!important}
  .map-toolbar-actions .map-action-button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;padding:9px 8px!important;white-space:normal!important;line-height:1.15;font-size:.63rem!important;text-align:center}
  .map-stage,.map-stage .public-map{width:100%;height:auto!important;min-height:370px!important}
  .map-live-badge{left:12px;right:12px;bottom:12px;max-width:calc(100% - 24px);justify-content:center}
  .command-legend{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:11px 13px}
  .command-legend::-webkit-scrollbar{display:none}
  .command-legend span{flex:0 0 auto;white-space:nowrap}
  .command-featured{min-height:0!important;padding:18px}
  .active-groups-strip{border-radius:22px;padding:18px 14px}
  .command-strip .strip-heading{gap:14px}
  .strip-controls{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .strip-controls button{width:100%;min-height:46px}
  .mobile-actions{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));border-radius:17px;padding:6px;max-width:calc(100vw - 20px)}
  .mobile-actions a{min-width:0;white-space:normal;line-height:1.2}
}

@media(max-width:430px){
  :root{--container:calc(100% - 18px)}
  .public-nav{padding-inline:2px}
  .public-brand strong{font-size:1.2rem}
  .live-heading .heading-actions{grid-template-columns:1fr}
  .live-heading .heading-actions .public-button{min-height:48px}
  .map-command-column{grid-template-rows:auto minmax(350px,54vh) auto}
  .map-command-toolbar{padding:11px!important}
  .map-command-toolbar .map-search{height:48px!important;min-height:48px!important;max-height:48px!important}
  .map-command-toolbar .map-search input{height:46px!important;min-height:46px!important;font-size:.67rem!important}
  .map-command-toolbar .map-filters button{min-height:40px;padding:8px 12px;font-size:.6rem}
  .map-toolbar-actions .map-action-button{min-height:46px;font-size:.59rem!important}
  .map-stage,.map-stage .public-map{min-height:350px!important}
  .map-live-badge span{display:none}
  .mobile-actions a{font-size:.64rem}
}

@media(max-width:760px) and (orientation:landscape){
  .map-command-column{grid-template-rows:auto minmax(300px,72vh) auto}
  .map-stage,.map-stage .public-map{min-height:300px!important}
  .mobile-actions{display:none}
}
