/* RadarČeska Turistika v2.0.4 — smart route panel */

/* V203 was directionally right, but still too tall in the video. */
.rc-tourist-route-card{
  min-width:292px!important;
  width:min(304px,calc(100vw - 34px))!important;
  max-width:304px!important;
  max-height:min(54vh,455px)!important;
  padding:12px 10px 11px!important;
}

/* Once smart placement moves the content, the old MapLibre triangle no longer
   points at the route accurately. The selected route itself is the locator. */
.rc-route-popup-smart-v204 .maplibregl-popup-tip{
  opacity:0!important;
  pointer-events:none!important;
}

.rc-route-popup-smart-v204 .maplibregl-popup-content{
  will-change:translate;
}

/* Keep scrollbar obvious but visually quiet. */
.rc-tourist-route-card{
  scrollbar-width:thin;
  scrollbar-color:rgba(67,99,85,.38) rgba(241,246,243,.45);
}
.rc-tourist-route-card::-webkit-scrollbar{width:7px}
.rc-tourist-route-card::-webkit-scrollbar-track{
  background:rgba(241,246,243,.45);
  border-radius:999px;
}
.rc-tourist-route-card::-webkit-scrollbar-thumb{
  background:rgba(67,99,85,.33);
  border:2px solid rgba(247,250,248,.9);
  border-radius:999px;
}

/* Slightly denser route weather rows to make profile reachable sooner. */
.rc-trw201-point{
  min-height:31px!important;
  padding-top:3px!important;
  padding-bottom:3px!important;
}
.rc-trw201-summary{padding-top:6px!important;padding-bottom:6px!important}
.rc-elev202-chart svg{height:60px!important}

@media(max-width:700px){
  .rc-tourist-route-card{
    min-width:min(286px,calc(100vw - 24px))!important;
    width:min(300px,calc(100vw - 24px))!important;
    max-width:min(300px,calc(100vw - 24px))!important;
    max-height:min(52vh,430px)!important;
  }
}

@media(max-height:690px){
  .rc-tourist-route-card{max-height:48vh!important}
}
