/* MOVARA Frontend Surface 1.9.63 — mobile production authority.
 * Presentation only. Android/iPhone portrait + coarse-touch landscape.
 * Flow retains all value, Places, terminal, quote, state and booking authority. */

@media (max-width:767px){
  /* Production tap targets: preserve the approved 1.9.62 geometry while
     ensuring interactive controls remain comfortably reachable by touch. */
  body.mfs-landing-vnext-active .mfs-acq-nav-toggle{
    width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important;
    touch-action:manipulation!important;
  }
  body.mfs-landing-vnext-active .mfs-acq-account-link{
    min-height:44px!important;touch-action:manipulation!important;
  }
  body.mfs-landing-vnext-active .mfs-acq-preferences-slot select{
    min-height:44px!important;height:44px!important;touch-action:manipulation!important;
  }
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-step1-fields>.movara-swap{
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
    right:7px!important;top:48px!important;touch-action:manipulation!important;
  }
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-location-clear{
    min-width:44px!important;min-height:44px!important;touch-action:manipulation!important;
  }
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] #movara-find,
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-passenger-trigger{
    touch-action:manipulation!important;
  }

  /* Prevent long translated values from forcing the compact header wider. */
  body.mfs-landing-vnext-active .mfs-acq-nav__inner,
  body.mfs-landing-vnext-active .mfs-acq-nav__utility,
  body.mfs-landing-vnext-active .mfs-acq-preferences-slot,
  body.mfs-landing-vnext-active .mfs-acq-preferences-slot .movara-journey-preferences{
    min-width:0!important;
  }
}

/* iPhone/Android landscape: a coarse pointer is the authority, not width alone.
   Large-phone landscape widths (e.g. 844–932px) must never fall back to desktop nav. */
@media (max-width:1024px) and (hover:none) and (pointer:coarse) and (orientation:landscape){
  body.mfs-landing-vnext-active .mfs-acq-container{width:calc(100% - 24px)!important}
  body.mfs-landing-vnext-active .mfs-acq-nav{min-height:56px!important;height:auto!important}
  body.mfs-landing-vnext-active .mfs-acq-nav__inner{grid-template-columns:minmax(110px,1fr) auto!important;gap:8px!important;padding-block:6px!important}
  body.mfs-landing-vnext-active .mfs-acq-nav__links{
    position:absolute!important;z-index:850!important;top:calc(100% + 6px)!important;left:0!important;right:0!important;
    display:none!important;grid-template-columns:1fr!important;gap:0!important;padding:8px!important;
    border:1px solid #dce7f3!important;border-radius:14px!important;background:#fff!important;
    box-shadow:0 18px 42px rgba(20,52,92,.12)!important;
  }
  body.mfs-landing-vnext-active .mfs-acq-nav__links.is-open{display:grid!important}
  body.mfs-landing-vnext-active .mfs-acq-nav__links a{min-height:44px!important;display:flex!important;align-items:center!important;padding:0 12px!important}
  body.mfs-landing-vnext-active .mfs-acq-nav-toggle{display:inline-flex!important;width:44px!important;height:44px!important;flex:0 0 44px!important}
  body.mfs-landing-vnext-active .mfs-acq-account-link{min-height:44px!important}
  body.mfs-landing-vnext-active .mfs-acq-preferences-slot select{min-height:44px!important;height:44px!important}
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-step1-fields>.movara-swap{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-location-clear{min-width:44px!important;min-height:44px!important}
  body.mfs-landing-vnext-active .mfs-acq-hero{min-height:540px!important}
  body.mfs-landing-vnext-active .mfs-acq-hero__media{top:170px!important;left:0!important}
  body.mfs-landing-vnext-active .mfs-acq-hero__inner{min-height:255px!important;padding-top:20px!important;padding-bottom:28px!important}
  body.mfs-landing-vnext-active .mfs-acq-hero__copy{width:100%!important;max-width:520px!important;padding:0!important}
  body.mfs-landing-vnext-active .mfs-acq-techline{font-size:11.5px!important}
  body.mfs-landing-vnext-active .mfs-acq-hero h1{font-size:34px!important;line-height:1.04!important;max-width:500px!important}
  body.mfs-landing-vnext-active .mfs-acq-hero__lead{font-size:13.5px!important;line-height:1.42!important;max-width:500px!important}
  body.mfs-landing-vnext-active .mfs-acq-search-wrap{margin-top:-108px!important}
  body.mfs-landing-vnext-active #movara-vnext-app-profiler,
  body.mfs-landing-vnext-active .mfs-vnext-preview-badge{display:none!important}
}


/* WebKit phone focus zoom: preserve Android typography and change only real
   iOS form controls. Accessibility zoom itself remains enabled. */
@supports (-webkit-touch-callout:none){
  @media (max-width:1024px) and (hover:none) and (pointer:coarse){
    body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] input.movara-native-input,
    body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] input.movara-inline-date,
    body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] input.movara-inline-time{font-size:16px!important}
  }
}
