/* RadarCeska train mobile UX v1.0.6 — shared header geometry, short journey, weather-only Live. */
@media (max-width:700px) {
  /* v105 train override missed the horizontal measurements from the v2401 weather header.
     Use exactly the same brand/search/menu slots in every map mode. */
  html[data-rc-mobile-header="v2401"] #app[data-mode="trains"] .top-shell .search-wrap.rc-v2401-search-shell {
    position:fixed!important;
    top:var(--rc-v2401-top,calc(env(safe-area-inset-top,0px) + 7px))!important;
    left:calc(var(--rc-v2401-left-brand,8px) + var(--rc-v2401-brand-w,100px) + var(--rc-v2401-gap,6px))!important;
    right:calc(8px + var(--rc-v2401-menu-w,40px) + var(--rc-v2401-gap,6px))!important;
    width:auto!important;min-width:0!important;max-width:none!important;
    height:var(--rc-v2401-h,38px)!important;min-height:0!important;max-height:var(--rc-v2401-h,38px)!important;
    margin:0!important;padding:0 9px!important;box-sizing:border-box!important;
    display:flex!important;align-items:center!important;gap:6px!important;
    border-radius:11px!important;transform:none!important;
  }
  html[data-rc-mobile-header="v2401"] #app[data-mode="trains"] .top-shell .search-wrap.rc-v2401-search-shell .search-input {
    width:100%!important;min-width:0!important;height:100%!important;
    margin:0!important;padding:0!important;font-size:11px!important;line-height:1!important;
  }
  html[data-rc-mobile-header="v2401"] #app[data-mode="trains"] .top-shell .search-wrap.rc-v2401-search-shell .search-icon {
    flex:0 0 15px!important;width:15px!important;height:15px!important;margin:0!important;
  }
}
/* Live weather signal cards belong exclusively to the Weather mode. Other modes
   keep their own independent LIVE train/bus status and overview controls. */
#app:not([data-mode="weather"]) #mobileLiveDock,
#app:not([data-mode="weather"]) #mobileLivePanel,
#app:not([data-mode="weather"]) #liveFeed,
#app:not([data-mode="weather"]) #liveFeedChip { display:none!important; }

/* Only hide displayed rows. The authoritative train timetable, current/next
   classes, ETA, links, and train route source remain completely untouched. */
@media (max-width:700px) {
  #app[data-mode="trains"] #trainJourneyList .rc-v106-journey-hidden {display:none!important;}
  #app[data-mode="trains"] #trainJourney .rc-v106-load-more-wrap {
    padding:8px 9px 10px;border-top:1px solid rgba(28,65,70,.075);background:#fff;
  }
  #app[data-mode="trains"] #trainJourney .rc-v106-load-more-wrap[hidden] {display:none!important;}
  #app[data-mode="trains"] #trainJourney .rc-v106-load-more {
    display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:39px;
    border-radius:11px;border:1px solid rgba(12,132,110,.18);background:#f0f9f6;
    color:#08715e;font-size:11px;font-weight:760;cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  #app[data-mode="trains"] #trainJourney .rc-v106-load-more:active {background:#e0f4ed;}
  #app[data-mode="trains"] #trainJourney .rc-v106-load-more:focus-visible {outline:2px solid #0b9f80;outline-offset:2px;}
  #app[data-mode="trains"] #trainJourneyList {scroll-behavior:auto;}
}
