/* RadarČeska Turistika v1.9.1 — panel collision polish */

/* Desktop: keep filter panel safely above radar legend/timeline cluster. */
.rc-tf190{
  right:76px;
  bottom:176px;
  max-height:min(520px,calc(100vh - 225px));
}
.rc-tf190-scroll{
  max-height:390px;
}

/* When panel is open, hide only the textual helper label next to the map action.
   The actual map action button/icon remains fully usable. */
.tourist-map-action.is-panel-open .tourist-map-state{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

/* Make footer always readable/clickable inside the frosted panel. */
.rc-tf190-foot{
  position:sticky;
  bottom:0;
  z-index:2;
  background:rgba(251,253,252,.985);
  backdrop-filter:blur(10px);
}

/* On smaller desktop/tablet windows leave more room for the timeline. */
@media(max-width:1100px){
  .rc-tf190{
    right:68px;
    bottom:168px;
    max-height:min(500px,calc(100vh - 214px));
  }
}

/* Mobile: panel sits above bottom timeline / action bar and respects iOS safe area. */
@media(max-width:700px){
  .rc-tf190{
    left:8px;
    right:8px;
    bottom:calc(118px + env(safe-area-inset-bottom));
    max-height:min(56vh,500px);
  }
  .rc-tf190-scroll{
    max-height:calc(56vh - 112px);
  }
  .rc-tf190-foot{
    padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
  }
}

/* Very short screens: prefer a shorter panel over covering map timeline. */
@media(max-height:650px){
  .rc-tf190{
    max-height:48vh;
  }
  .rc-tf190-scroll{
    max-height:calc(48vh - 108px);
  }
}
