/* Shared Stashes + Squad Planner footprint control. Keeps existing UI and leaflet markers intact. */
.ra-footprints-canvas{pointer-events:none!important;image-rendering:auto;transform-origin:0 0!important;backface-visibility:hidden;}
#map .ra-footprint-control{position:relative!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;box-shadow:0 5px 18px #0008;background:#19231e!important;border:1px solid #415146!important;border-radius:11px!important;color:#ecf2ea!important;font:13px/1.35 Inter,Segoe UI,Arial,sans-serif!important;pointer-events:auto;}
/* Match the shared right-side toolbar shell on BOTH Stashes and Squad Planner.
   Stashes has a more-specific generic rule that strips backgrounds/borders
   from every Leaflet control; specifically reapply the footprint shell. */
#map .leaflet-top.leaflet-right > .ra-footprint-control{
  position:relative!important;
  box-sizing:border-box!important;
  width:44px!important;height:44px!important;
  min-width:44px!important;min-height:44px!important;
  max-width:44px!important;
  margin:0!important;padding:0!important;
  background:#19231e!important;
  border:1px solid #415146!important;
  border-radius:11px!important;
  box-shadow:0 5px 18px #0008!important;
  overflow:visible!important;
  pointer-events:auto!important;
}
#map .leaflet-top.leaflet-right > .ra-footprint-control .ra-footprint-trigger{
  box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;min-width:0;min-height:0;
  margin:0;padding:0;
  line-height:1;
}
#map .leaflet-top.leaflet-right > .ra-footprint-control .ra-footprint-trigger:focus-visible{
  outline:2px solid #ffa34b;
  outline-offset:2px;
}
@media (max-width:700px){
  #map .leaflet-top.leaflet-right > .ra-footprint-control{
    width:39px!important;height:39px!important;
    min-width:39px!important;min-height:39px!important;
    max-width:39px!important;
  }
}
#map .ra-footprint-trigger{display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:10px;background:transparent;color:#ffa34b;font-size:25px;font-weight:750;cursor:pointer;}
#map .ra-footprint-trigger:hover,#map .ra-footprint-trigger[aria-expanded="true"]{background:#304034;color:#ffc074;}
#map .ra-footprint-panel{box-sizing:border-box;position:absolute;right:55px;top:0;width:296px;max-width:min(296px,calc(100vw - 112px));max-height:min(82vh,650px);overflow-y:auto;padding:15px;background:#17211b;border:1px solid #3b5040;border-radius:12px;box-shadow:0 14px 36px #000b;color:#ecf2ea;z-index:1000;}
#map .ra-footprint-panel[hidden]{display:none!important;}
#map .ra-footprint-heading{display:flex;flex-direction:column;gap:4px;margin-bottom:13px}
#map .ra-footprint-heading span{color:#ffac57;font-weight:800;letter-spacing:.13em;font-size:10px}
#map .ra-footprint-heading strong{font-size:18px;font-weight:800}
#map .ra-footprint-option{display:flex;align-items:flex-start;gap:9px;margin:0 0 6px;padding:9px;border-radius:8px;background:#253227;border:1px solid #334939;cursor:pointer;color:#e9f0e7;font-size:12px;line-height:1.35}
#map .ra-footprint-option:hover{background:#314235}
#map .ra-footprint-option input{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#f4a449;cursor:pointer}
#map .ra-footprint-master{background:#344331;border-color:#5d7249;margin-bottom:10px}
#map .ra-footprint-group{padding:0 0 6px;margin-bottom:8px;border-bottom:1px solid #455447}
#map .ra-footprint-range{display:flex;align-items:center;gap:10px;margin:15px 0;color:#cedacb;font-size:12px}
#map .ra-footprint-range input{min-width:0;flex:1;accent-color:#ffa34b}
#map .ra-footprint-range output{width:38px;text-align:right;font-weight:750;color:#ffc075}
#map .ra-footprint-jump{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:8px}
#map .ra-footprint-jump label{grid-column:span 2;color:#b7cbb9;font-size:11px;font-weight:700}
#map .ra-footprint-jump select{min-width:0;padding:9px 7px;color:#f3f9f0;background:#263228;border:1px solid #4b5e4c;border-radius:6px}
#map .ra-footprint-jump button{padding:7px 12px;background:#e99137;color:#192218;border:0;border-radius:6px;font-weight:800;cursor:pointer}
#map .ra-footprint-key{display:grid;grid-template-columns:1fr 1fr;gap:9px 5px;margin-top:16px;font-size:10px;color:#b5cbb5}
#map .ra-footprint-key span{display:flex;gap:6px;align-items:center}
#map .ra-footprint-key i{display:inline-block;width:12px;height:8px;border-radius:2px;flex:none}
#map .ra-footprint-status{border-top:1px solid #405241;margin:13px 0 6px;padding-top:11px;color:#f4b878;font-size:11px}
#map .ra-footprint-panel small{color:#b0c2b0;font-size:10px;line-height:1.5;display:block}
@media(max-width:700px){#map .ra-footprint-control{width:39px!important;min-width:39px!important;height:39px!important;min-height:39px!important}#map .ra-footprint-panel{right:47px;max-width:calc(100vw - 105px);width:270px}}
