.app-topbar {
  transition: transform 250ms ease, margin-bottom 250ms ease, visibility 0s linear;
}

.topbar-auto-hidden .app-topbar {
  transform: translateY(calc(-100% - 1rem));
  margin-bottom: calc(-1 * var(--topbar-height, 0px));
  visibility: hidden;
  pointer-events: none;
  transition: transform 250ms ease, margin-bottom 250ms ease, visibility 0s linear 250ms;
}

.show-topbar-btn {
  display: none;
  position: fixed;
  top: 0;
  right: 0.75rem;
  z-index: 999;
  width: 36px;
  height: 32px;
  color: #fff;
  background: #0a1f4a;
  border: 1px solid #267caa;
}

.topbar-auto-hidden .show-topbar-btn {
  display: block;
}

.topbar-auto-hidden .app-topbar.d-none + .show-topbar-btn {
  display: none;
}

@media (max-width: 768px) {
  .trip-map-stage {
    transition: height 250ms ease;
  }

  .topbar-auto-hidden:not(.trip-active-body) .trip-map-stage:not(.trip-map-fullscreen) {
    height: max(470px, calc(100dvh - 74px + var(--topbar-height, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-topbar,
  .topbar-auto-hidden .app-topbar,
  .trip-map-stage {
    transition: none;
  }
}
