/* Osprey voyage map. Sits on the Deep Water "How it works" ground.
   Tokens fall back to brand values if the page hasn't defined them. */
.vmap {
  --vm-sea: var(--deep, #16293C);
  --vm-land: #20384F;
  --vm-border: #35516C;
  --vm-gm: #2C4A66;
  --vm-grat: rgba(244, 240, 230, .05);
  --vm-text: var(--bone, #F4F0E6);
  --vm-text-2: #B7C0C8;
  --vm-text-3: #8E9BA7;
  --vm-ghost: rgba(183, 192, 200, .38);
  --vm-route: #E8E3D7;
  --vm-ship: var(--eye, #E9A227);
  color: var(--vm-text);
  font-family: var(--f-body, "Inter", system-ui, sans-serif);
}
.vmap__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1200 / 620; max-width: 100%;
  border-radius: 16px; background: var(--vm-sea);
  border: 1px solid rgba(244, 240, 230, .1);
}
.vmap__frame svg { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) { .vmap__frame { aspect-ratio: 10 / 9; } }

.vmap__grat { fill: none; stroke: var(--vm-grat); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vmap__land { fill: var(--vm-land); stroke: none; }
.vmap__gm { fill: var(--vm-gm); }
.vmap__border { fill: none; stroke: var(--vm-border); stroke-width: .75; vector-effect: non-scaling-stroke; }

.vmap__lab { font-size: calc(var(--u, 1) * 11px); fill: var(--vm-text-3); letter-spacing: .02em; pointer-events: none; }
.vmap__lab.sea { font-style: italic; letter-spacing: .12em; fill: rgba(142, 155, 167, .7); }
.vmap__lab.gm { fill: var(--vm-text-2); font-weight: 600; }

.vmap__ghost { fill: none; stroke: var(--vm-ghost); stroke-width: 1.25; stroke-dasharray: 1 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vmap__prog { fill: none; stroke: var(--vm-route); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vmap__prog.is-land, .vmap__ghost.is-land { stroke-dasharray: 5 5; }

.vmap__dot { fill: var(--vm-sea); stroke: var(--vm-route); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.vmap__port.is-dest .vmap__dot { fill: var(--vm-route); }
.vmap__portname { font-size: calc(var(--u, 1) * 12.5px); font-weight: 600; fill: var(--vm-text); paint-order: stroke; stroke: var(--vm-sea); stroke-width: calc(var(--u, 1) * 3px); stroke-linejoin: round; }

.vmap__hull { fill: var(--vm-ship); }
.vmap__halo { fill: var(--vm-ship); opacity: .18; }
.vmap__ship.is-rail .vmap__hull { transform: scale(.8); }
.vmap__ship.is-hold .vmap__halo { animation: vmPulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vmPulse { 0%, 100% { opacity: .12; transform: scale(1); } 50% { opacity: .32; transform: scale(1.5); } }

.vmap__hud {
  position: absolute; left: 14px; bottom: 14px; max-width: min(78%, 330px);
  padding: 12px 14px; border-radius: 12px;
  background: rgba(15, 31, 47, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 240, 230, .1);
}
.vmap__hud p { margin: 0; }
.vmap__label { font-size: .78rem; color: var(--vm-text-3); }
.vmap__routename { font-size: .92rem; color: var(--vm-text-2); margin-top: 2px !important; }
.vmap__day { margin-top: 8px !important; font: 750 1.9rem/1 var(--f-display, "Archivo", sans-serif); font-stretch: 82%; font-variant-numeric: tabular-nums; color: var(--vm-text); }
.vmap__status { margin-top: 4px !important; font-size: .92rem; color: var(--vm-text); min-height: 1.4em; }
.vmap__credit { position: absolute; right: 10px; bottom: 6px; margin: 0; font-size: .68rem; color: rgba(142, 155, 167, .7); }

.vmap__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.vmap__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vmap__picklabel { font-size: .92rem; color: var(--vm-text-2); margin-right: 2px; }
.vmap__origin, .vmap__again {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 600 .95rem/1 var(--f-body, "Inter", system-ui, sans-serif);
  transition: background-color .2s, color .2s, border-color .2s;
}
.vmap__origin { background: transparent; color: var(--vm-text); border: 1px solid rgba(244, 240, 230, .3); }
.vmap__origin:hover { border-color: var(--vm-text); }
.vmap__origin[aria-pressed="true"] { background: var(--vm-text); color: var(--vm-sea); border-color: var(--vm-text); }
.vmap__again { background: transparent; color: var(--vm-text-2); border: 0; text-decoration: underline; text-underline-offset: 4px; padding: 0 4px; }
.vmap__again:hover { color: var(--vm-text); }
.vmap__origin:focus-visible, .vmap__again:focus-visible { outline: 2px solid var(--vm-ship); outline-offset: 3px; }
.vmap__note { margin: 12px 0 0; font-size: .86rem; line-height: 1.5; color: var(--vm-text-3); max-width: 70ch; }

/* Phones: the readout moves under the map so it never covers the ship. */
@media (max-width: 720px) {
  .vmap__hud {
    position: static; max-width: none; margin-top: 10px;
    display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline;
    background: rgba(15, 31, 47, .6); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .vmap__label, .vmap__routename { grid-column: 1 / -1; }
  .vmap__day { font-size: 1.55rem; }
  .vmap__status { margin-top: 0 !important; font-size: .9rem; }
  .vmap__pick { width: 100%; }
  .vmap__picklabel { width: 100%; }
  .vmap__origin { flex: 1 1 0; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vmap__ship.is-hold .vmap__halo { animation: none; }
  .vmap__origin, .vmap__again { transition: none; }
}
