/* Path: static/travel.css
   Purpose: the Travel panel (static/travel.js): the places an explorer can transfer to, each with its Go
   button, and the HUD's wind-up bar (#travelWind) with its Cancel button. Stacking comes from static/windows.js. */

.travel-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100% - 32px));
  max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; display: grid; gap: 10px;
  padding: 16px; background: rgba(7,11,20,.96); border: 1px solid rgba(155,232,155,.45); color: #dcebff; font-size: 13px; }
.travel-box header { display: flex; align-items: center; gap: 10px; }
.travel-box h3 { flex: 1; min-width: 0; margin: 0; font: 400 20px var(--f-type); color: #eaf4ff; }
.travel-box h4 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7f9bb8; }
.travel-box p { margin: 0; }
.travel-status { color: #eaf4ff; overflow-wrap: anywhere; }
.travel-none { color: #b9cbe0; }

/* Each place: its name and where it is, with the button that starts the transfer. */
.travel-list { list-style: none; margin: 0; padding: 0; display: grid; }
.travel-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); }
.travel-list li:first-child { border-top: 0; }
.travel-place { flex: 1; min-width: 0; display: grid; gap: 2px; }
.travel-place b { font-weight: 600; overflow-wrap: anywhere; }
.travel-place span { font-size: 12px; color: #b9cbe0; }
.travel-list button { flex: none; }

/* The wind-up: bottom center of the view, under the toast and clear of the objective and the minimap. */
.travel-wind { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); z-index: 45; width: min(340px, calc(100% - 32px)); box-sizing: border-box;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 8px 10px; background: rgba(7,11,20,.88);
  border: 1px solid rgba(155,232,155,.45); color: #eaf4ff; font-size: 13px; }
.travel-wind[hidden] { display: none; }
.travel-wind span { min-width: 0; overflow-wrap: anywhere; }
.travel-wind i { grid-column: 1; grid-row: 2; display: block; height: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.travel-wind b { display: block; height: 100%; width: 0; background: #9be89b; }
.travel-wind button { grid-column: 2; grid-row: 1 / span 2; }

html.bk-touch-ui .travel-box button { min-height: 44px; min-width: 44px; font-size: 16px; }
html.bk-touch-ui .travel-list li { min-height: 44px; }
/* Between the move stick and the thumb buttons, above the version line. */
html.bk-touch-ui .travel-wind { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 20px); width: min(340px, calc(100% - 500px)); min-width: 220px; }
html.bk-touch-ui .travel-wind button { min-height: 44px; min-width: 44px; font-size: 16px; }
/* A phone on its side: less padding, so the places show sooner; the body scrolls past that. */
@media (max-height: 500px) {
  .travel-box { padding: 10px 12px; gap: 6px; max-height: calc(100% - 16px); }
  .travel-box h3 { font-size: 17px; }
  .travel-list li { padding: 2px 0; }
}
