/* SFRATK capsule proportions with the approved Tour Aksiya home palette. */
.phone-mode.app-view {
  --app-nav-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-nav-height: 56px;
  --app-nav-bottom: calc(14px + var(--app-nav-safe-bottom));
  --app-nav-clearance: calc(var(--app-nav-height) + var(--app-nav-bottom) + 8px);
  --app-nav-side: 22px;
  padding-bottom: calc(var(--app-nav-clearance) + 8px);
}
.phone-mode.app-view .bottomnav {
  position: fixed;
  z-index: 30;
  inset: auto var(--app-nav-side) var(--app-nav-bottom);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 49px;
  align-items: stretch;
  gap: 0;
  width: calc(100% - var(--app-nav-side) * 2);
  max-width: calc(430px - var(--app-nav-side) * 2);
  height: var(--app-nav-height);
  min-height: var(--app-nav-height);
  margin: 0 auto;
  padding: 2px 5px 3px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 27px;
  background: linear-gradient(115deg, rgb(33 86 184 / 96%), rgb(36 96 198 / 96%));
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 6px 26px rgb(33 86 184 / 20%);
}
.phone-mode.app-view .bottomnav,
.phone-mode.app-view .bottomnav * { box-sizing: border-box; }
.phone-mode.app-view .bottomnav a[data-nav] {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 49px;
  height: 49px;
  margin: 0;
  padding: 2px 1px;
  border: 0;
  border-radius: 19px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.phone-mode.app-view .bottomnav .app-nav-icon {
  display: inline-flex;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 23px;
  min-height: 23px;
  margin: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-size: 0;
  line-height: 1;
  transform: translateY(0) scale(1);
  transition: transform .32s cubic-bezier(.22, .8, .2, 1), background-color .15s ease;
}
.phone-mode.app-view .bottomnav a[data-nav] .app-nav-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-mode.app-view .bottomnav a[data-nav] .app-nav-icon svg.app-nav-brand-icon {
  width: 27px;
  height: 19px;
  overflow: hidden;
  stroke: none;
}
.phone-mode.app-view .bottomnav .app-nav-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -.1px;
  white-space: nowrap;
  opacity: .8;
  transition: opacity .2s ease;
}
.phone-mode.app-view .bottomnav a[aria-current="page"],
.phone-mode.app-view .bottomnav a[aria-current="location"] { color: #fff; background: rgb(255 255 255 / 19%); }
.phone-mode.app-view .bottomnav a[aria-current] .app-nav-label { font-weight: 700; opacity: 1; }
.phone-mode.app-view .bottomnav a[data-nav]:focus-visible { outline: 2px solid #d6e7ff; outline-offset: -2px; background: rgb(255 255 255 / 10%); }
.phone-mode.app-view .sticky,
.phone-mode.app-view .package-price-sticky.sticky { bottom: var(--app-nav-clearance); }
.phone-mode.app-view .with-sticky { padding-bottom: calc(170px + var(--app-nav-safe-bottom)); }
.phone-mode.app-view .package-page.with-sticky { padding-bottom: calc(190px + var(--app-nav-safe-bottom)); }
.phone-mode.app-view .bottomnav > .app-nav-indicator {
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 6px;
  display: block;
  width: calc((100% - 12px) / 4);
  height: 49px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  line-height: 0;
  transform: translateX(calc(var(--app-nav-index, 0) * 100%));
  transition: transform .32s cubic-bezier(.22, .8, .2, 1);
  pointer-events: none;
}
.phone-mode.app-view .bottomnav > .app-nav-indicator::before {
  content: '';
  position: absolute;
  inset: 2px 3px;
  border-radius: 22px;
  background: rgb(255 255 255 / 19%);
}
.phone-mode.app-view .bottomnav:has(> .app-nav-indicator) a[aria-current] { background: transparent; }
.phone-mode.app-view .bottomnav:has(> .app-nav-indicator) a[data-nav] .app-nav-icon { background: transparent; }
.home-greeting .home-wave {
  display: inline-block;
  font-size: 26.4px;
  line-height: 1;
  vertical-align: -.04em;
  transform-origin: 70% 75%;
  animation: home-hand-wave 1.8s ease-in-out 1.3s 1;
}
@keyframes home-hand-wave {
  0%, 100% { transform: rotate(0); }
  15%, 45% { transform: rotate(18deg); }
  30%, 60% { transform: rotate(-9deg); }
  75% { transform: rotate(9deg); }
}
@media (max-width: 360px) {
  .phone-mode.app-view { --app-nav-side: 12px; }
  .phone-mode.app-view .bottomnav .app-nav-label { font-size: 10px; letter-spacing: -.15px; }
}
@media (hover: hover) {
  .phone-mode.app-view .bottomnav a[data-nav]:not([aria-current]):hover { background: rgb(255 255 255 / 8%); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-mode.app-view .bottomnav .app-nav-icon,
  .phone-mode.app-view .bottomnav .app-nav-label,
  .phone-mode.app-view .bottomnav > .app-nav-indicator { transition: none; }
  .home-greeting .home-wave { animation: none; }
}

/* Nested app screens use their back action instead of the four root tabs. */
.phone-mode.app-view.app-navigation-hidden {
  --app-nav-clearance: calc(12px + var(--app-nav-safe-bottom));
  padding-bottom: var(--app-nav-clearance);
}
.phone-mode.app-view.app-navigation-hidden .package-page.with-sticky {
  padding-bottom: var(--package-sticky-clearance, calc(100px + var(--app-nav-safe-bottom)));
}
#app-navigation[hidden] { display: none !important; }

/* Approved compact app home. Website and the remaining page layouts keep their styles. */
.phone-mode.app-view .home-masthead {
  overflow: visible;
  background: transparent;
}
.phone-mode.app-view .home-masthead::after { display: none; }
.phone-mode.app-view .home-hero {
  isolation: isolate;
  padding: 4px 0 0;
}
.phone-mode.app-view .home-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 84px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(115deg, #2156b8, #2460c6);
  pointer-events: none;
}
.phone-mode.app-view .home-hero > .wrap {
  max-width: 430px;
  padding: 0 14px;
}
.phone-mode.app-view .app-home-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 240px;
  max-width: 100%;
  height: 46px;
  margin: 0 auto 4px;
}
.phone-mode.app-view .app-home-logo-ticket {
  display: block;
  flex: 0 0 66px;
  width: 66px;
  height: 46px;
}
.phone-mode.app-view .app-home-wordmark {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.phone-mode.app-view .app-home-wordmark svg {
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.phone-mode.app-view .app-home-word-tour { width: 66px; height: 22px; margin-top: -1px; }
.phone-mode.app-view .app-home-word-aksiya { width: 89px; height: 27px; }
.phone-mode.app-view .home-greeting .home-wave {
  animation: app-home-hand-wave 2.8s ease-in-out infinite;
}
/* 1.8 seconds of waving, then one full second at rest. */
@keyframes app-home-hand-wave {
  0% { transform: rotate(0); }
  10%, 30% { transform: rotate(18deg); }
  20%, 40% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
  64.2857%, 100% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-mode.app-view .home-greeting .home-wave { animation: none; }
}
.phone-mode.app-view .home-hero .home-greeting {
  justify-content: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}
.phone-mode.app-view .home-hero .home-wave {
  font-size: 14px;
  line-height: 1;
}
.phone-mode.app-view .home-hero h1 {
  max-width: 260px;
  margin: 3px auto 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.5px;
  text-align: center;
}
.phone-mode.app-view .home-hero .compact-route {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(29 55 100 / 6%);
  text-align: left;
}
.phone-mode.app-view .home-hero .route-origin,
.phone-mode.app-view .home-hero .compact-route button.home-destination-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 6px;
  height: 48px;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid #e7edf6;
  border-radius: 11px;
  background: #f5f8fd;
  text-align: center;
}
.phone-mode.app-view .home-hero .route-origin > div,
.phone-mode.app-view .home-hero .home-destination-copy {
  min-width: 0;
  grid-column: 2;
  text-align: center;
}
.phone-mode.app-view .home-hero .route-origin::after { content: ''; width: 12px; }
.phone-mode.app-view .home-hero .route-origin small,
.phone-mode.app-view .home-hero .home-destination-copy > small {
  display: block;
  margin: 0 0 2px;
  color: #667994;
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
}
.phone-mode.app-view .home-hero .route-origin strong,
.phone-mode.app-view .home-hero .home-destination-copy > strong {
  display: block;
  overflow: hidden;
  color: #172b4d;
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-mode.app-view .home-hero .home-route-icon svg { width: 18px; height: 18px; }
.phone-mode.app-view .home-hero .home-destination-flag { display: none; }
.phone-mode.app-view .home-hero .home-destination-toggle > svg:last-child {
  grid-column: 3;
  width: 12px;
  height: 12px;
}
.phone-mode.app-view .home-hero .route-submit {
  height: 40px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 12px;
}
.phone-mode.app-view .home-content { padding-top: 14px; }

/* Native owns the top inset; bottom content reaches behind the system area. */
.phone-mode.app-view.native-shell {
  --app-nav-safe-bottom: var(--native-safe-bottom, env(safe-area-inset-bottom, 0px));
  --app-nav-bottom: max(4px, calc(var(--app-nav-safe-bottom) - 18px));
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
}
.phone-mode.app-view.native-shell .bottomnav { max-width: none; }
.phone-mode.app-view.native-shell .home-hero > .wrap { max-width: none; }
.phone-mode.app-view.native-shell .home-hero::before { background:#2156b8; }
.phone-mode.app-view.native-shell.customer-view { background: #f5f7fb; }
.phone-mode.app-view.native-shell { overscroll-behavior-x: none; }
/* Move the live screen with the finger; prior-view presentation stays inert. */
.phone-mode.app-view.native-shell:is(.native-back-drag,.native-back-settle) { overflow-x:clip; }
.phone-mode.app-view.native-shell:is(.native-back-drag,.native-back-settle) #app > *,
.phone-mode.app-view.native-shell:is(.native-back-drag,.native-back-settle) #app-navigation > .bottomnav {
  translate:var(--native-back-offset,0px) 0;
  will-change:translate;
}
.phone-mode.app-view.native-shell.native-back-settle #app > *,
.phone-mode.app-view.native-shell.native-back-settle #app-navigation > .bottomnav {
  transition:translate .22s cubic-bezier(.2,.75,.25,1);
  pointer-events:none;
}
@media (prefers-reduced-motion:reduce) {
  .phone-mode.app-view.native-shell.native-back-settle #app > *,
  .phone-mode.app-view.native-shell.native-back-settle #app-navigation > .bottomnav { transition:none; }
}
@media (max-width: 359px) {
  .phone-mode.app-view .home-hero .route-origin,
  .phone-mode.app-view .home-hero .compact-route button.home-destination-toggle {
    gap: 4px;
    padding-inline: 6px;
  }
  .phone-mode.app-view .home-hero .route-origin strong,
  .phone-mode.app-view .home-hero .home-destination-copy > strong { font-size: 13px; }
}

/* The previous visual view is inert and isolated in a closed shadow tree. */
[data-native-back-preview] { position:fixed; inset:0; z-index:0; overflow:hidden; contain:paint; pointer-events:none; background:#f5f6f8; }
[data-native-back-preview][hidden] { display:none!important; }
.phone-mode.app-view.native-shell.native-back-preview-visible #app { position:relative; z-index:1; }
.phone-mode.app-view.native-shell.native-back-preview-visible #app::before {
  content:""; position:fixed; inset:0; z-index:-1; background:var(--native-back-canvas,#f5f6f8);
  translate:var(--native-back-offset,0px) 0; pointer-events:none; box-shadow:-8px 0 22px rgb(15 35 65 / 14%);
}
.phone-mode.app-view.native-shell.native-back-preview-visible.native-back-settle #app::before { transition:translate .22s cubic-bezier(.2,.75,.25,1); }
@media(prefers-reduced-motion:reduce) { .phone-mode.app-view.native-shell.native-back-preview-visible.native-back-settle #app::before { transition:none; } }
