/* Mobile Explore: keep the travel status and navigation gadget side by side. */
@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .map-stage.map-focus .memory-journey-toast,
  html body main.app-shell section.map-stage.map-focus .memory-journey-toast,
  html body .app-shell .map-stage.map-focus.memory-relive-journey .memory-journey-toast,
  html body main.app-shell section.map-stage.map-focus.memory-relive-journey .memory-journey-toast {
    box-sizing: border-box !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    right: calc(max(14px, env(safe-area-inset-right)) + 98px) !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 20px) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 68px !important;
    margin: 0 !important;
    padding: 9px 9px 9px 12px !important;
    gap: 8px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    transform: translateY(10px) scale(0.985) !important;
    transform-origin: 100% 100% !important;
  }

  html body .app-shell .map-stage.map-focus .memory-journey-toast.show,
  html body main.app-shell section.map-stage.map-focus .memory-journey-toast.show,
  html body .app-shell .map-stage.map-focus.memory-relive-journey .memory-journey-toast.show,
  html body main.app-shell section.map-stage.map-focus.memory-relive-journey .memory-journey-toast.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }

  html body .app-shell .map-stage.map-focus .memory-journey-path,
  html body main.app-shell section.map-stage.map-focus .memory-journey-path {
    display: none !important;
  }

  html body .app-shell .map-stage.map-focus .memory-journey-copy,
  html body main.app-shell section.map-stage.map-focus .memory-journey-copy {
    min-width: 0 !important;
    text-align: left !important;
  }

  html body .app-shell .map-stage.map-focus .memory-journey-kicker,
  html body main.app-shell section.map-stage.map-focus .memory-journey-kicker {
    font-size: 0.58rem !important;
    letter-spacing: 0.06em !important;
  }

  html body .app-shell .map-stage.map-focus .memory-journey-copy strong,
  html body main.app-shell section.map-stage.map-focus .memory-journey-copy strong {
    margin-top: 3px !important;
    font-size: 0.84rem !important;
    line-height: 1.08 !important;
  }

  html body .app-shell .map-stage.map-focus .memory-journey-copy small,
  html body main.app-shell section.map-stage.map-focus .memory-journey-copy small {
    margin-top: 4px !important;
    font-size: 0.64rem !important;
    line-height: 1.1 !important;
  }

  html body .app-shell .map-stage.map-focus .memory-journey-pin,
  html body main.app-shell section.map-stage.map-focus .memory-journey-pin {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    place-items: center !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
  }
}

@media (max-width: 370px) {
  html body .app-shell .map-stage.map-focus .memory-journey-toast,
  html body main.app-shell section.map-stage.map-focus .memory-journey-toast,
  html body .app-shell .map-stage.map-focus.memory-relive-journey .memory-journey-toast,
  html body main.app-shell section.map-stage.map-focus.memory-relive-journey .memory-journey-toast {
    right: calc(max(12px, env(safe-area-inset-right)) + 100px) !important;
    min-height: 62px !important;
    padding-left: 10px !important;
  }

  html body .app-shell .map-stage.map-focus .memory-journey-copy small,
  html body main.app-shell section.map-stage.map-focus .memory-journey-copy small {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .memory-journey-toast,
  html body main.app-shell section.map-stage.map-focus .memory-journey-toast {
    transition: none !important;
  }
}
