/* Voyage history modal */
#modal:has(.vhr-root) .modal-card{width:min(1150px,96vw);max-height:92dvh}
#modal:has(.vhr-root) #modalBody{min-height:0;overflow:auto}
.vhr-root { color: #e8f3f9; width: 100%; max-width: 100%; box-sizing: border-box; }
.vhr-root * { box-sizing: border-box; }
.vhr-intro { margin: 0 0 12px; color: #a7c5d3; font-size: .86rem; }
.vhr-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .8fr); gap: 16px; min-height: 290px; }
.vhr-stage { align-self: start; overflow: hidden; border: 1px solid rgba(149, 201, 225, .3); border-radius: 12px; background: #10283f; }
.vhr-map { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.vhr-ocean { fill: #10283f; }
.vhr-grid { fill: none; stroke: #789caf; stroke-width: .8; opacity: .27; }
.vhr-land { fill: #335467; stroke: #79a3ac; stroke-width: .45; opacity: .72; }
.vhr-frame { fill: none; stroke: #668da7; stroke-width: 1; opacity: .6; }
.vhr-route-line { fill: none; stroke: #62cce2; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--vhr-length); stroke-dashoffset: var(--vhr-length); animation: vhr-draw 1.5s ease-out var(--vhr-delay, 0ms) forwards; }
.vhr-route { opacity: .48; }
.vhr-route.is-selected { opacity: 1; }
.vhr-route.is-selected .vhr-route-line { stroke: #ffcf78; stroke-width: 3.5; }
.vhr-port { fill: #fff1b9; stroke: #204258; stroke-width: 1.5; }
@keyframes vhr-draw { to { stroke-dashoffset: 0; } }
.vhr-records { min-width: 0; max-height: min(55vh, 460px); display: flex; flex-direction: column; }
.vhr-summary { margin: 0 0 8px; font-size: .84rem; line-height: 1.5; color: #d0e8ee; overflow-wrap: anywhere; }
.vhr-list { min-height: 0; overflow: auto; display: grid; align-content: start; gap: 8px; padding: 2px; }
.vhr-item { display: grid; gap: 5px; width: 100%; padding: 11px 12px; border: 1px solid rgba(151, 197, 212, .3); border-radius: 9px; background: rgba(16, 43, 62, .7); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.vhr-item:hover, .vhr-item:focus-visible { border-color: #78cce3; outline: none; }
.vhr-item.is-selected { border-color: #ffce82; background: rgba(63, 68, 71, .8); }
.vhr-item-title { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: .92rem; overflow-wrap: anywhere; }
.vhr-arrow { color: #ffce82; }
.vhr-item-meta, .vhr-item-countries { font-size: .78rem; line-height: 1.45; color: #afcbd5; overflow-wrap: anywhere; }
.vhr-item-countries { color: #e5c88f; }
.vhr-empty, .vhr-message { margin: 10px 2px; font-size: .85rem; color: #bfd6df; }
.vhr-more { margin: 8px auto 0; padding: 8px 16px; border: 1px solid #8cc9d7; border-radius: 7px; background: #183f55; color: #ecfaff; cursor: pointer; font: inherit; }
.vhr-more:hover, .vhr-more:focus-visible { background: #23546e; }
.vhr-more:disabled { opacity: .55; cursor: wait; }
.vhr-root [hidden] { display: none !important; }
@media (max-width: 720px) {
  .vhr-layout { grid-template-columns: 1fr; gap: 12px; }
  .vhr-records { max-height: min(42vh, 370px); }
  .vhr-intro { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vhr-route-line { animation: none; stroke-dashoffset: 0; }
}
