/* Visible route-ready Start GPS button + full menu fallback if premium header is missing. */
#tourora-route-entry-start[hidden],#tourora-route-entry-toolbar[hidden]{display:none!important}
@media(max-width:880px){
 #tourora-route-entry-start{
  position:fixed;z-index:3000;
  left:50%;transform:translateX(-50%);
  bottom:calc(83px + env(safe-area-inset-bottom,0px));
  width:min(330px,calc(100vw - 34px));min-height:54px;
  padding:12px 15px;display:flex;align-items:center;justify-content:center;
  border:2px solid #9de35e;border-radius:13px;background:#c7f77f;
  color:#103d2e;font:900 15px/1.2 system-ui,-apple-system,sans-serif;
  box-shadow:0 4px 17px #071a18a0;touch-action:manipulation;
 }
 #tourora-route-entry-start:disabled{background:#e3eae4;border-color:#a2b9ad;color:#4f685c;box-shadow:0 2px 8px #071a1840}
 #tourora-route-entry-start:focus-visible{outline:3px solid #0c7dd5;outline-offset:3px}
 #tourora-route-entry-toolbar{
  position:fixed;z-index:2700;
  top:calc(8px + env(safe-area-inset-top,0px));left:9px;right:9px;
  width:calc(100% - 18px);height:67px;
  display:flex;align-items:center;gap:7px;
  padding:7px;border:1px solid #557c70;border-radius:15px;
  background:#103b33;color:#fff;box-shadow:0 6px 18px #051a198c;
 }
 #tourora-route-entry-toolbar .tre-brand{font:900 16px/1.1 system-ui,-apple-system,sans-serif;color:#f1fff5;letter-spacing:-.6px;white-space:nowrap}
 #tourora-route-entry-toolbar .tre-tools{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0;align-items:center}
 #tourora-route-entry-toolbar .tre-tools::-webkit-scrollbar{display:none}
 #tourora-route-entry-toolbar .tre-tool{
  flex:0 0 53px;min-height:49px;padding:4px 3px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  border:1px solid #5b8074;border-radius:9px;background:#234f45;color:#f6fff7;
  font:800 9px/1.1 system-ui,-apple-system,sans-serif;touch-action:manipulation;
 }
 #tourora-route-entry-toolbar .tre-symbol{font:700 22px/1 system-ui}
 #tourora-route-entry-toolbar .tre-tool:focus-visible{outline:2px solid #d9ffa5;outline-offset:1px}
 body.tourora-entry-fallback-menu:not(.driving) .topline{display:none!important}
 body.tourora-entry-fallback-menu:not(.driving) .chapter{top:calc(82px + env(safe-area-inset-top,0px))!important}
}
@media(max-width:880px) and (orientation:landscape) and (max-height:620px){
 #tourora-route-entry-start{bottom:calc(60px + env(safe-area-inset-bottom,0px));width:min(240px,40vw);min-height:42px;padding:7px 9px;font-size:12px}
 #tourora-route-entry-toolbar{height:45px;padding:3px;gap:5px}
 #tourora-route-entry-toolbar .tre-tool{min-height:38px;flex-basis:48px;font-size:8px}
 #tourora-route-entry-toolbar .tre-symbol{font-size:15px}
 body.tourora-entry-fallback-menu:not(.driving) .chapter{top:calc(56px + env(safe-area-inset-top,0px))!important}
}


/* Tourora NAV mobile route-ready layout: one horizontal toolbar and aligned controls. */
@media screen and (max-width:880px){
 body.tourora-tidy-primary-start:not(.driving) #tourora-route-entry-start,
 body.tourora-tidy-topbar:not(.driving) #tourora-route-entry-toolbar,
 body.tourora-tidy-primary-start:not(.driving) #tn-quick-start,
 body.tourora-tidy-primary-start:not(.driving) #start {
  display:none!important;
 }
 body.tourora-tidy-primary-start:not(.driving) #tn-start{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:43px!important;max-height:56px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;white-space:normal!important;text-align:center!important;
  padding:8px 10px!important;line-height:1.15!important;
  font-size:clamp(12px,3vw,16px)!important;
  box-sizing:border-box!important;transform:none!important;touch-action:manipulation!important;
 }
 body.tourora-tidy-primary-start:not(.driving) #tn-start:focus-visible{
  outline:3px solid #167dd0!important;outline-offset:2px!important;
 }
 /* A single horizontal row above the destination panel. */
 body.tg-nav-route:not(.driving) .tourora-speed-clear-rail-v5{
  position:fixed!important;left:9px!important;right:auto!important;top:auto!important;
  bottom:var(--tourora-control-row-bottom,calc(192px + env(safe-area-inset-bottom,0px)))!important;
  margin:0!important;transform:none!important;z-index:2400!important;
  box-sizing:border-box!important;
 }
 body.tg-nav-route:not(.driving) #tourora-route-actions-v3:not(.tj-actions-open){
  position:fixed!important;top:auto!important;left:auto!important;right:9px!important;
  bottom:var(--tourora-control-row-bottom,calc(192px + env(safe-area-inset-bottom,0px)))!important;
  width:min(130px,32vw)!important;min-width:0!important;max-width:32vw!important;
  min-height:45px!important;box-sizing:border-box!important;
  margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;
  background:transparent!important;z-index:2430!important;
 }
 body.tg-nav-route:not(.driving) #tourora-route-actions-v3:not(.tj-actions-open) .tj-route-menu{
  min-height:45px!important;width:100%!important;min-width:0!important;max-width:100%!important;
  padding:7px 5px!important;margin:0!important;white-space:normal!important;line-height:1.14!important;
  font-size:clamp(11px,2.8vw,13px)!important;
 }
 body.tg-nav-route.tourora-premium-traffic:not(.driving) #tourora-journey-rail #tp-choice:not([hidden]){
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:fixed!important;top:auto!important;right:auto!important;
  left:calc(30vw - 5px)!important;
  bottom:var(--tourora-control-row-bottom,calc(192px + env(safe-area-inset-bottom,0px)))!important;
  transform:none!important;box-sizing:border-box!important;
  width:min(122px,31vw)!important;max-width:31vw!important;
  min-height:45px!important;margin:0!important;padding:5px 6px!important;
  font-size:clamp(10px,2.65vw,12px)!important;line-height:1.14!important;
  z-index:2440!important;
 }
 body.tg-nav-route:not(.driving) .tourora-speed-clear-rail-v5{
  max-width:min(104px,27vw)!important;min-width:0!important;
 }
 /* Keep the journey rail above the action row rather than covering buttons. */
 body.tg-nav-route:not(.driving) #tourora-journey-rail:not(.tj-mini){
  top:auto!important;
  bottom:calc(var(--tourora-control-row-bottom,calc(192px + env(safe-area-inset-bottom,0px))) + 54px)!important;
  max-height:min(220px,30dvh)!important;min-height:0!important;
  box-sizing:border-box!important;
 }
 body.tg-nav-route:not(.driving) #tourora-journey-rail.tj-mini{
  top:auto!important;
  bottom:calc(var(--tourora-control-row-bottom,calc(192px + env(safe-area-inset-bottom,0px))) + 54px)!important;
  max-height:135px!important;min-height:0!important;
 }
}
@media screen and (orientation:landscape) and (min-width:480px) and (max-width:1100px) and (max-height:620px){
 /* The old two-column rail and new fallback navbar must never coexist. */
 body.tourora-tidy-topbar:not(.driving) #tourora-vertical-rail-v3,
 body.tourora-tidy-topbar:not(.driving) #tourora-route-entry-toolbar{
  display:none!important;
 }
 body.tourora-tidy-topbar:not(.driving) .tourora-original-horizontal-header-v3{
  display:flex!important;visibility:visible!important;
  position:fixed!important;
  top:calc(7px + env(safe-area-inset-top,0px))!important;
  left:calc(8px + env(safe-area-inset-left,0px))!important;
  right:calc(8px + env(safe-area-inset-right,0px))!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  height:57px!important;min-height:57px!important;max-height:57px!important;
  box-sizing:border-box!important;flex-wrap:nowrap!important;align-items:center!important;
  gap:4px!important;padding:4px 8px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  z-index:2700!important;
 }
 body.tourora-tidy-topbar:not(.driving) .tourora-original-horizontal-header-v3 button{
  min-width:0!important;flex-shrink:1!important;
  max-height:51px!important;font-size:clamp(9px,1.3vw,12px)!important;
 }
 body.tg-nav-route:not(.driving) .tourora-turn-card-landscape-v3{
  position:fixed!important;
  top:calc(70px + env(safe-area-inset-top,0px))!important;
  left:calc(9px + env(safe-area-inset-left,0px))!important;
  right:auto!important;
  width:min(370px,calc(100vw - 240px))!important;
  max-width:min(370px,calc(100vw - 240px))!important;
  max-height:112px!important;overflow:hidden!important;
  z-index:1800!important;
 }
 body.tg-nav-route:not(.driving) .tourora-speed-clear-rail-v5{
  left:calc(9px + env(safe-area-inset-left,0px))!important;
  bottom:var(--tourora-control-row-bottom,calc(76px + env(safe-area-inset-bottom,0px)))!important;
  max-width:110px!important;
 }
 body.tg-nav-route:not(.driving) #tourora-route-actions-v3:not(.tj-actions-open){
  top:auto!important;right:calc(9px + env(safe-area-inset-right,0px))!important;
  bottom:var(--tourora-control-row-bottom,calc(76px + env(safe-area-inset-bottom,0px)))!important;
  min-width:0!important;width:min(133px,24vw)!important;max-width:24vw!important;
  z-index:2450!important;
 }
 body.tg-nav-route.tourora-premium-traffic:not(.driving) #tourora-journey-rail #tp-choice:not([hidden]){
  top:auto!important;left:calc(16vw + env(safe-area-inset-left,0px))!important;right:auto!important;
  bottom:var(--tourora-control-row-bottom,calc(76px + env(safe-area-inset-bottom,0px)))!important;
  width:min(125px,22vw)!important;max-width:22vw!important;
 }
 body.tg-nav-route:not(.driving) #tourora-journey-rail:not(.tj-mini),
 body.tg-nav-route:not(.driving) #tourora-journey-rail.tj-mini{
  position:fixed!important;right:calc(9px + env(safe-area-inset-right,0px))!important;
  top:calc(73px + env(safe-area-inset-top,0px))!important;
  bottom:auto!important;max-height:120px!important;min-height:0!important;
  width:155px!important;overflow-y:auto!important;
 }
 body.tg-nav-route:not(.driving) #tourora-route-actions-v3.tj-actions-open{
  top:auto!important;left:auto!important;
  right:calc(9px + env(safe-area-inset-right,0px))!important;
  bottom:var(--tourora-control-row-bottom,calc(76px + env(safe-area-inset-bottom,0px)))!important;
  max-height:min(60dvh,210px)!important;
 }
}
