/* Tourora iPhone Find layout stability, 26 Nov 2026.
   This only expands the Find panel when the driver opens destination search.
   Live navigation HUD, map and route drawing are not changed. */
@media screen and (max-width:700px) and (orientation:portrait){
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter,
 body.tg-nav-route:not(.driving).tourora-destination-editing .chapter {
   display:block!important;
   position:fixed!important;
   top:calc(70px + env(safe-area-inset-top,0px))!important;
   left:10px!important;
   right:10px!important;
   width:calc(100vw - 20px)!important;
   min-width:0!important;
   max-width:calc(100vw - 20px)!important;
   box-sizing:border-box!important;
   margin:0!important;
   padding:12px!important;
   border-radius:14px!important;
   z-index:2650!important;
   max-height:min(54dvh,480px)!important;
   overflow-y:auto!important;
   box-shadow:0 10px 30px #061d2080!important;
 }
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter .dest-search,
 body.tg-nav-route:not(.driving).tourora-destination-editing .chapter .dest-search {
   width:100%!important;max-width:none!important;display:block!important;
   box-sizing:border-box!important;margin:0!important;
 }
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter .dest-search-row,
 body.tg-nav-route:not(.driving).tourora-destination-editing .chapter .dest-search-row{
   display:grid!important;
   grid-template-columns:minmax(0,1fr) minmax(59px,auto) minmax(40px,auto)!important;
   align-items:stretch!important;
   gap:7px!important;width:100%!important;
 }
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter .dest-search-row #nav-dest-search,
 body.tg-nav-route:not(.driving).tourora-destination-editing .chapter .dest-search-row #nav-dest-search {
   display:block!important;min-width:0!important;width:100%!important;
   max-width:none!important;flex:auto!important;
   font-size:16px!important;min-height:47px!important;height:47px!important;
   padding:8px 12px!important;box-sizing:border-box!important;
 }
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter .dest-search-row #nav-dest-go,
 body.tg-nav-route:not(.driving).tourora-destination-editing .chapter .dest-search-row #nav-dest-go {
   min-width:59px!important;max-width:76px!important;min-height:47px!important;
   height:47px!important;padding:6px 8px!important;
 }
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter .dest-search-row #nav-routes-quick,
 body.tg-nav-route:not(.driving).tourora-destination-editing .chapter .dest-search-row #nav-routes-quick {
   display:flex!important;min-width:40px!important;max-width:46px!important;
   width:100%!important;height:47px!important;
 }
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter .nav-search-cancel {
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   min-height:32px!important;padding:5px 10px!important;
   margin:0 0 8px auto!important;float:none!important;
 }
}
@media screen and (min-width:701px) and (max-width:1100px) and (orientation:landscape){
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter {
   left:calc(12px + env(safe-area-inset-left,0px))!important;
   right:auto!important;width:min(550px,calc(100vw - 36px))!important;
   max-width:min(550px,calc(100vw - 36px))!important;
   top:calc(75px + env(safe-area-inset-top,0px))!important;
   box-sizing:border-box!important;
 }
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter .dest-search-row{
   display:flex!important;align-items:stretch!important;width:100%!important;
 }
 body.tg-nav-route:not(.driving).nav-search-expanded .chapter #nav-dest-search{
   width:100%!important;flex:1 1 auto!important;min-width:0!important;
 }
}