/* MISTER FAST V37.2.1 — Floating Route Card Position Fix
   Moves the single route card inside the real Leaflet map and hides duplicate summary UI. */

/* Duplicate compact summary from the older route planner must never appear. */
.mf-lmc-map-panel [data-v362-route-status],
.mf-lmc-map-panel .mf-v362-route-summary{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Once moved into #mfLmcMap, position from the actual map edge. */
#mfLmcMap{
  position:relative!important;
}
#mfLmcMap > .mf-v31-estimate.mf-v363-estimate,
#mfLmcMap .mf-v3721-route-card{
  position:absolute!important;
  top:18px!important;
  right:18px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:1000!important;
  margin:0!important;
}

/* Avoid overlap with Leaflet attribution and keep interaction enabled. */
#mfLmcMap > .mf-v31-estimate.mf-v363-estimate{
  pointer-events:auto!important;
}

/* Fullscreen map keeps exactly the same corner position. */
.mf-lmc-map-panel.is-map-fullscreen #mfLmcMap > .mf-v31-estimate.mf-v363-estimate{
  top:18px!important;
  right:18px!important;
}

@media(max-width:900px){
  #mfLmcMap > .mf-v31-estimate.mf-v363-estimate,
  #mfLmcMap .mf-v3721-route-card{
    top:12px!important;
    right:10px!important;
  }
}

@media(max-width:520px){
  #mfLmcMap > .mf-v31-estimate.mf-v363-estimate,
  #mfLmcMap .mf-v3721-route-card{
    top:8px!important;
    right:8px!important;
  }
}
