/* Map container takes up 2/3 of viewport height */
      #cruise-map {
        height: 66.67vh;
        min-height: 400px;
        position: relative;
      }
      
      :where(body.live-map-ocean) #cruise-map {
        overflow: hidden;
        background: linear-gradient(180deg, #0b85a9 0%, #0aa5bd 52%, #19b8c3 100%);
      }
      :where(body.live-map-ocean) #cruise-map > #cs-sea {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        pointer-events: none;
        transition: opacity 600ms ease;
        z-index: 0;
      }
      :where(body.live-map-ocean) #cruise-map .maplibregl-canvas-container {
        z-index: 1;
      }
      :where(body.live-map-ocean) #cruise-map .maplibregl-control-container,
      :where(body.live-map-ocean) #cruise-map .maplibregl-marker {
        z-index: 2;
      }
      
      
      :where(body.live-map-test) #cruise-map {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
      }
      
      
      /* Ship info box at bottom of map */
      #ship-info-box {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        min-height: 0;
        height: auto; /* grow to fit the stacked facts; no clipping */
        background: rgba(31, 41, 55, 0.95); /* Dark gray background */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        align-items: center;
        padding: 10px 48px 10px 18px;
        font-family: Inter, Arial, sans-serif;
        font-size: 13px;
        z-index: 100;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        line-height: 1.35;
        color: #e5e7eb; /* Brighter light gray text */
      }
      
      #ship-info-box.active {
        display: flex;
        align-items: center;
      }
      
      #ship-info-box a {
        color: #60a5fa; /* Light blue for links */
        text-decoration: none;
        margin: 0 5px;
      }
      
      #ship-info-box a:hover {
        text-decoration: underline;
        color: #93bbfc; /* Lighter blue on hover */
      }
      
      #ship-info-box b {
        color: #ffffff; /* White for bold text */
      }

      .ship-info-summary {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 3px 12px;
      }

      .ship-info-name {
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
      }

      .ship-info-fact {
        color: #d1d5db;
        white-space: nowrap;
      }

      .ship-info-fact::before,
      .ship-cruise-details::before {
        content: '\00b7';
        margin-right: 12px;
        color: #6b7280;
      }

      .ship-cruise-details {
        display: inline-flex;
        align-items: baseline;
      }

      #ship-info-box .ship-current-cruise {
        display: inline-flex;
        margin: 0 36px 0 0;
        color: #93c5fd;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
      }

      .regular-port-marker {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
        pointer-events: none;
      }

      .regular-port-chip {
        position: absolute;
        left: 0;
        top: 0;
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 3px 7px;
        border-radius: 2px;
        background: rgba(16, 35, 58, 0.82);
        color: #ffffff;
        font-family: Inter, Arial, sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.25;
        text-decoration: none;
        white-space: nowrap;
        pointer-events: auto;
        transition: opacity 0.15s ease, background 0.15s ease;
      }

      .regular-port-leader {
        position: absolute;
        left: 0;
        top: -1px;
        width: 1px;
        height: 2px;
        border-radius: 999px;
        background: rgba(16, 35, 58, 0.82);
        transform-origin: 0 50%;
        pointer-events: none;
      }

      .regular-port-chip:hover,
      .regular-port-chip:focus-visible {
        background: rgba(16, 35, 58, 0.97);
        color: #ffffff;
        text-decoration: none;
        outline: 2px solid rgba(255, 199, 44, 0.9);
        outline-offset: 1px;
      }

      .regular-port-chip-hidden,
      #cruise-map.regular-port-labels-hidden .regular-port-chip,
      #cruise-map.regular-port-labels-hidden .regular-port-leader {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }
