/* Listing view switcher (List | Calendar | Timeline), Calendar grid & mobile agenda,
   Timeline (Gantt) view, and /compare side-by-side matrix. */

.view-switch {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: var(--r-md);
    background: var(--wash);
    font: var(--t-body);
}

.view-switch a,
.view-switch .current {
    padding: 5px 14px;
    border-radius: var(--r-sm);
}

.view-switch .current {
    background: var(--card);
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--sh-segment);
}

.view-switch a {
    color: var(--muted);
    background: transparent;
}

.view-switch a:hover {
    text-decoration: none;
    color: var(--ink);
}

@media (max-width: 768px) {
    .meta-center .view-switch,
    .meta-row > .view-switch {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        padding: 3px;
        gap: 2px;
    }
    .view-switch a,
    .view-switch .current {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 4px;
        font-size: 13.5px;
        text-align: center;
        width: 100%;
    }
}

/* Calendar & Timeline availability legend */
.cal-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font: 500 12.5px/1.2 var(--f-sans);
    color: var(--muted);
}

.cal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.cal-dot.is-available {
    background: var(--accent);
}

.cal-dot.is-limited {
    background: var(--warn);
}

.cal-dot.is-sold-out {
    background: var(--bad);
}

/* Antarctic Season-Grouped Month Strip (Calendar & Timeline) */
.cal-months {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

@media (max-width: 768px) {
    .cal-months {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }
}

.cal-season-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 11px;
    border-radius: var(--r-pill);
    background: var(--card);
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.cal-season-group.is-active-season {
    border-color: var(--accent-ring);
    box-shadow: var(--sh-card);
}

.cal-season-label {
    font: 700 11px/1 var(--f-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding-right: 4px;
    border-right: 1px solid var(--line);
}

.cal-season-group.is-active-season .cal-season-label {
    color: var(--accent);
}

.cal-season-pills {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.cal-month-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    font: 600 13px/1.2 var(--f-sans);
    color: var(--ink-2);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.cal-month-pill:hover {
    text-decoration: none;
    background: var(--accent-soft);
    color: var(--accent);
}

.cal-month-pill small {
    font: 600 11px/1 var(--f-mono);
    font-variant-numeric: tabular-nums;
    opacity: 0.72;
}

.cal-month-pill.current {
    background: var(--btn-bg);
    color: var(--btn-ink);
}

.cal-month-pill.current small {
    opacity: 0.88;
}

/* Calendar Card & Integrated Month Stepper */
.calendar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-card);
    overflow: hidden;
}

.cal-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.cal-toolbar-side {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cal-toolbar-side.is-end {
    justify-content: flex-end;
}

.cal-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6.5px 13px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font: 600 13px/1.2 var(--f-sans);
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.cal-step-btn:hover:not(.is-disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
}

.cal-step-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    padding: 6.5px 9px;
}

.cal-step-arrow {
    display: inline-flex;
    align-items: center;
}

.cal-step-arrow .icon {
    width: 13.5px;
    height: 13.5px;
}

.cal-step-arrow.is-prev .icon,
.cal-drawer-step .is-prev .icon {
    transform: rotate(180deg);
}

.cal-toolbar-center {
    text-align: center;
}

.cal-toolbar-month {
    margin: 0;
    font: 400 22px/1.2 var(--f-serif);
    color: var(--ink);
}

.cal-toolbar-sub {
    margin: 3px 0 0;
    font: 500 12.5px/1.3 var(--f-sans);
    color: var(--muted);
}

.cal-toolbar-sub .sep {
    margin: 0 5px;
    opacity: 0.55;
}

/* 7-Column ISO Week Grid */
.cal-head,
.cal-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-head div {
    padding: 9px 10px;
    font: 600 11px/1.2 var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    background: var(--subtle-bg);
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.cal-head div:last-child {
    border-right: 0;
}

.cal-head div.is-weekend {
    background: var(--wash);
}

.cal-day {
    min-height: 138px;
    min-width: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--card);
    transition: background .15s ease, box-shadow .15s ease;
}

.cal-week .cal-day:last-child {
    border-right: 0;
}

.calendar .cal-week:last-child .cal-day {
    border-bottom: 0;
}

.cal-day.is-weekend:not(.out) {
    background: var(--surface);
}

.cal-day.is-empty {
    background: var(--subtle-bg);
}

.cal-day.out {
    background: var(--bg);
    min-height: 92px;
}

.cal-day.is-selected {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.cal-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 22px;
}

.cal-day .d {
    font: 600 12.5px/1 var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.cal-day.is-empty .d {
    color: var(--muted);
    opacity: 0.65;
}

.cal-day.out .d {
    color: var(--muted);
    opacity: 0.36;
}

.cal-day.is-today .d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--accent-ink);
}

.cal-day-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--subtle-bg);
    color: var(--muted);
    font: 700 10.5px/1 var(--f-mono);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cal-day-count:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.cal-day-chips {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 2-Line Structured Voyage Chip */
.cal-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px 7px 5px 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-ring);
    border-left: 3px solid var(--accent);
    color: var(--ink);
    text-decoration: none;
    transition: background .14s ease, transform .14s ease, border-color .14s ease;
}

.cal-chip:hover {
    text-decoration: none;
    background: var(--accent-soft-hover);
    border-color: var(--accent);
}

.cal-chip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
}

.cal-chip-ship {
    font: 600 12px/1.25 var(--f-sans);
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.cal-chip-badges {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.cal-chip-fly {
    display: inline-flex;
    color: var(--accent);
}

.cal-chip-fly .icon {
    width: 11px;
    height: 11px;
}

.cal-chip-days {
    font: 600 10px/1.15 var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    padding: 1px 4px;
    border-radius: 4px;
    background: var(--card);
}

.cal-chip-sub {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.cal-chip-price {
    font: 700 11px/1.2 var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    flex-shrink: 0;
}

.cal-chip-op {
    font: 400 10.5px/1.2 var(--f-sans);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.cal-chip.limited {
    background: var(--warn-bg);
    border-color: var(--warn-line);
    border-left-color: var(--warn);
}

.cal-chip.limited .cal-chip-price,
.cal-chip.limited .cal-chip-days,
.cal-chip.limited .cal-chip-fly {
    color: var(--warn);
}

.cal-chip.limited:hover {
    filter: brightness(0.97);
}

.cal-chip.sold_out {
    background: var(--bad-bg);
    border-color: var(--bad-line);
    border-left-color: var(--bad);
    opacity: 0.85;
}

.cal-chip.sold_out .cal-chip-price,
.cal-chip.sold_out .cal-chip-days {
    color: var(--bad);
}

/* +N More Day Drawer Trigger */
.cal-more-btn {
    margin-top: auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 4.5px 8px;
    border-radius: 6px;
    border: 1px dashed var(--accent-ring);
    background: var(--surface);
    color: var(--accent);
    font: 600 11.5px/1.2 var(--f-sans);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.cal-more-btn:hover {
    background: var(--accent-soft);
    border-style: solid;
    border-color: var(--accent);
}

.cal-more-btn .icon {
    width: 11.5px;
    height: 11.5px;
}

/* Slide-Over Day Departures Drawer (<dialog>) */
.cal-drawer {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    width: min(580px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--card);
    color: var(--ink);
    box-shadow: -18px 0 48px rgba(5, 15, 32, 0.28);
}

.cal-drawer::backdrop {
    background: rgba(5, 15, 32, 0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cal-drawer-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cal-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.cal-drawer-eyebrow {
    margin: 0 0 4px;
    font: 600 10.5px/1.2 var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.cal-drawer-title {
    margin: 0;
    font: 400 22px/1.25 var(--f-serif);
    color: var(--ink);
}

.cal-drawer-summary {
    margin: 4px 0 0;
    font: 500 13px/1.35 var(--f-sans);
    color: var(--muted);
}

.cal-drawer-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cal-drawer-step,
.cal-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.cal-drawer-step:hover:not(:disabled),
.cal-drawer-close:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.cal-drawer-step:disabled {
    opacity: 0.35;
    cursor: default;
}

.cal-drawer-step .icon,
.cal-drawer-close .icon {
    width: 15px;
    height: 15px;
}

.cal-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px 28px;
}

.cal-day-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-day-panel[hidden] {
    display: none !important;
}

.cal-drawer-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: var(--r-lg);
    background: var(--card);
    border: 1px solid var(--line);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cal-drawer-card:hover {
    border-color: var(--accent-ring);
    box-shadow: var(--sh-card);
}

@media (max-width: 560px) {
    .cal-drawer-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }
    .cal-drawer-aside {
        grid-column: 1 / -1;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }
}

.cal-drawer-media {
    width: 92px;
    height: 66px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .cal-drawer-media {
        width: 72px;
        height: 54px;
    }
}

.cal-drawer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cal-drawer-media .icon {
    width: 24px;
    height: 24px;
}

.cal-drawer-main {
    min-width: 0;
}

.cal-drawer-card-title {
    margin: 0 0 4px;
    font: 600 14.5px/1.32 var(--f-sans);
}

.cal-drawer-card-title a {
    color: var(--ink);
    text-decoration: none;
}

.cal-drawer-card-title a:hover {
    color: var(--accent);
}

.cal-drawer-meta {
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12.5px;
    color: var(--ink-2);
}

.cal-drawer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cal-drawer-meta .icon {
    width: 13px;
    height: 13px;
    color: var(--accent);
}

.cal-drawer-dates {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.cal-fly-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--accent);
    font-weight: 600;
}

.cal-fly-tag .icon {
    width: 11.5px;
    height: 11.5px;
}

.cal-drawer-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cal-drawer-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cal-drawer-price small {
    font-size: 11px;
    color: var(--muted);
}

.cal-drawer-price b {
    font: 700 16px/1.15 var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.cal-drawer-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cal-compare-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4.5px 9px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--subtle-bg);
    color: var(--ink-2);
    font: 600 11.5px/1.2 var(--f-sans);
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.cal-compare-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cal-compare-pill:has(input:checked) {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.cal-compare-pill input {
    margin: 0;
    width: 13px;
    height: 13px;
}

.cal-view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--accent-ink);
    font: 600 11.5px/1.2 var(--f-sans);
    text-decoration: none;
    transition: background .15s ease;
}

.cal-view-link:hover {
    background: var(--accent-hover);
    color: var(--accent-ink);
    text-decoration: none;
}

.cal-view-link .icon {
    width: 11.5px;
    height: 11.5px;
}

/* Mobile & Portrait Tablet Agenda (<= 860px) */
.cal-agenda {
    display: none;
}

@media (max-width: 860px) {
    .calendar {
        display: none;
    }
    .cal-agenda {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    .agenda-day-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0 0 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--line);
    }
    .agenda-day h3 {
        font: 700 13px/1.3 var(--f-mono);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--ink-2);
        margin: 0;
    }
    .agenda-day-badge {
        font: 600 11.5px/1.2 var(--f-mono);
        color: var(--muted);
    }
    .agenda-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .agenda-item {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        padding: 10px 12px;
        color: var(--ink);
        text-decoration: none;
        transition: border-color .15s ease;
    }
    .agenda-item:hover {
        text-decoration: none;
        border-color: var(--accent);
    }
    .agenda-thumb {
        width: 66px;
        height: 46px;
        border-radius: 6px;
        overflow: hidden;
        background: var(--accent-soft);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent);
    }
    .agenda-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .agenda-thumb .icon {
        width: 20px;
        height: 20px;
    }
    .agenda-item .what {
        min-width: 0;
    }
    .agenda-item .what b {
        display: block;
        font-size: 14.5px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .agenda-item .what small {
        display: block;
        margin-top: 2px;
        color: var(--muted);
        font-size: 12.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .agenda-price-col {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }
    .agenda-item .price {
        font: 700 14px/1.2 var(--f-mono);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }
}

/* Timeline (Fleet Gantt) view — rows are ships, bars are half-day AM/PM voyages */
.timeline-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-card);
    overflow: hidden;
}

.tl-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 18px;
    background: var(--subtle-bg);
    border-bottom: 1px solid var(--line);
}

.tl-sort-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-sort-label {
    font: 600 11px/1.2 var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.tl-sort-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tl-sort-pill {
    padding: 5px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-2);
    font: 600 12.5px/1.2 var(--f-sans);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.tl-sort-pill:hover:not(.is-active) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.tl-sort-pill.is-active {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: var(--btn-ink);
}

.tl-scroll {
    overflow: auto;
    max-height: min(76vh, 840px);
    background: var(--card);
    overscroll-behavior: contain;
}

.timeline {
    --day-w: 32px;
    --ship-w: 224px;
    width: max(100%, calc(var(--ship-w) + var(--days) * var(--day-w)));
}

.tl-row {
    display: flex;
    border-bottom: 1px solid var(--line);
}

.tl-rows > .tl-row:last-child {
    border-bottom: 0;
}

.tl-row:hover > .tl-ship {
    background: var(--surface);
}

.tl-ship {
    flex: 0 0 var(--ship-w);
    width: var(--ship-w);
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--card);
    padding: 9px 14px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    transition: background .12s ease;
}

.tl-ship-name-row {
    min-width: 0;
}

.tl-ship-link,
.tl-ship-name {
    display: block;
    font: 600 13.5px/1.25 var(--f-sans);
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-ship-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.tl-ship-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    line-height: 1.25;
    color: var(--muted);
    min-width: 0;
}

.tl-op-link {
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tl-op-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.tl-ship-cap {
    flex-shrink: 0;
    font-size: 11px;
    white-space: nowrap;
}

.tl-head {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--subtle-bg);
    box-shadow: 0 1px 0 var(--line);
}

.tl-head .tl-ship {
    z-index: 5;
    background: var(--subtle-bg);
    font: 600 11px/1.2 var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.tl-days {
    display: grid;
    grid-template-columns: repeat(var(--days), minmax(var(--day-w), 1fr));
    flex: 1 1 auto;
    background: var(--subtle-bg);
}

.tl-day-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    border-right: 1px solid var(--line);
    text-align: center;
}

.tl-day-col:last-child {
    border-right: 0;
}

.tl-dow {
    font: 600 9.5px/1 var(--f-mono);
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.78;
}

.tl-dnum {
    font: 700 11.5px/1.1 var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.tl-day-col.we {
    background: var(--wash);
}

.tl-day-col.is-today {
    background: var(--accent-soft);
}

.tl-day-col.is-today .tl-dnum {
    color: var(--accent);
}

.tl-body {
    position: relative;
}

.tl-backdrop {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--ship-w);
    right: 0;
    display: grid;
    grid-template-columns: repeat(var(--days), minmax(var(--day-w), 1fr));
    pointer-events: none;
    z-index: 0;
}

.tl-backdrop i {
    display: block;
    border-right: 1px solid var(--line);
}

.tl-backdrop i:last-child {
    border-right: 0;
}

.tl-backdrop i.is-we {
    background: var(--surface);
}

.tl-backdrop i.is-today {
    background: var(--accent-soft);
}

.tl-rows {
    position: relative;
    z-index: 1;
}

.tl-group-row {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--wash);
    border-bottom: 1px solid var(--line);
}

.tl-group-sticky {
    position: sticky;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tl-group-title {
    font: 700 11px/1.2 var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-2);
}

.tl-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 1.5px 7px;
    border-radius: var(--r-pill);
    background: var(--card);
    border: 1px solid var(--line);
    font: 700 10.5px/1.2 var(--f-mono);
    color: var(--accent);
}

.tl-track {
    flex: 1 1 auto;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.tl-lane {
    display: grid;
    grid-template-columns: repeat(var(--half-cols), minmax(calc(var(--day-w) / 2), 1fr));
    min-height: 32px;
    align-items: stretch;
}

.tl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    margin: 1px 1.5px;
    padding: 0 7px 0 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--ink);
    border: 1px solid var(--accent-ring);
    border-left: 3px solid var(--accent);
    font-size: 12px;
    text-decoration: none;
    transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.tl-bar:hover {
    text-decoration: none;
    background: var(--accent-soft-hover);
    border-color: var(--accent);
}

.tl-bar.is-selected {
    box-shadow: 0 0 0 2px var(--accent);
    z-index: 2;
}

.tl-bar-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.tl-bar-price {
    font: 700 11.5px/1.15 var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    flex-shrink: 0;
    white-space: nowrap;
}

.tl-bar-title {
    font: 500 11.5px/1.2 var(--f-sans);
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tl-bar-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.tl-bar-fly {
    display: inline-flex;
    color: var(--accent);
}

.tl-bar-fly .icon {
    width: 11px;
    height: 11px;
}

.tl-bar-days {
    font: 600 10px/1.15 var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    background: var(--card);
    padding: 1.5px 4.5px;
    border-radius: 4px;
}

.tl-bar-stub {
    font: 700 10.5px/1 var(--f-mono);
    color: var(--accent);
    white-space: nowrap;
}

.tl-clip-mark {
    font: 700 13px/1 var(--f-mono);
    color: var(--accent);
    opacity: 0.78;
    flex-shrink: 0;
}

.tl-bar.limited {
    background: var(--warn-bg);
    border-color: var(--warn-line);
    border-left-color: var(--warn);
}

.tl-bar.limited :is(.tl-bar-price, .tl-bar-days, .tl-bar-fly, .tl-bar-stub, .tl-clip-mark) {
    color: var(--warn);
}

.tl-bar.limited:hover {
    filter: brightness(0.97);
}

.tl-bar.sold_out {
    background: var(--bad-bg);
    border-color: var(--bad-line);
    border-left-color: var(--bad);
    opacity: 0.88;
}

.tl-bar.sold_out :is(.tl-bar-price, .tl-bar-days, .tl-bar-stub, .tl-clip-mark) {
    color: var(--bad);
}

.tl-bar.clip-s {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 2px dashed var(--accent);
    margin-left: 0;
    padding-left: 5px;
}

.tl-bar.limited.clip-s {
    border-left-color: var(--warn);
}

.tl-bar.sold_out.clip-s {
    border-left-color: var(--bad);
}

.tl-bar.clip-e {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 2px dashed var(--accent);
    margin-right: 0;
    padding-right: 5px;
}

.tl-bar.limited.clip-e {
    border-right-color: var(--warn);
}

.tl-bar.sold_out.clip-e {
    border-right-color: var(--bad);
}

/* Mobile Ship-Schedule Cards (<= 768px) */
.tl-mobile-list {
    display: none;
}

@media (max-width: 768px) {
    .tl-scroll {
        display: none;
    }

    .timeline-card {
        border-bottom-left-radius: var(--r-lg);
        border-bottom-right-radius: var(--r-lg);
        margin-bottom: 14px;
    }

    .tl-subbar {
        border-bottom: 0;
        padding: 10px 14px;
    }

    .tl-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .tl-m-group-head {
        margin-top: 6px;
        padding: 4px 2px;
    }

    .tl-m-group-inner {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .tl-m-card {
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        box-shadow: var(--sh-card);
        overflow: hidden;
    }

    .tl-m-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 11px 14px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
    }

    .tl-m-ship-copy {
        min-width: 0;
    }

    .tl-m-ship-title {
        display: block;
        font: 600 15px/1.25 var(--f-sans);
        color: var(--ink);
        text-decoration: none;
    }

    .tl-m-ship-sub {
        margin: 2px 0 0;
        font-size: 12px;
        color: var(--muted);
    }

    .tl-m-count {
        flex-shrink: 0;
        padding: 2px 8px;
        border-radius: var(--r-pill);
        border: 1px solid var(--line);
        background: var(--card);
        font: 700 11px/1.2 var(--f-mono);
        color: var(--muted);
    }

    .tl-m-voyages {
        display: flex;
        flex-direction: column;
    }

    .tl-m-voyage {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 11px 14px 12px;
        border-bottom: 1px solid var(--line);
        color: var(--ink);
        text-decoration: none;
        transition: background .12s ease;
    }

    .tl-m-voyage:last-child {
        border-bottom: 0;
    }

    .tl-m-voyage:hover {
        text-decoration: none;
        background: var(--subtle-bg);
    }

    .tl-m-voyage-top {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
    }

    .tl-m-voyage-title {
        font: 600 14px/1.3 var(--f-sans);
        min-width: 0;
    }

    .tl-m-price-wrap {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .tl-m-price {
        font: 700 13.5px/1.2 var(--f-mono);
    }

    .tl-m-voyage-sub {
        font-size: 12px;
        color: var(--muted);
    }

    .tl-m-span-track {
        position: relative;
        height: 6px;
        border-radius: 999px;
        background: var(--wash);
        overflow: hidden;
        margin-top: 2px;
    }

    .tl-m-span-fill {
        position: absolute;
        top: 0;
        bottom: 0;
        border-radius: 999px;
        background: var(--accent);
        min-width: 6px;
    }

    .tl-m-span-fill.limited {
        background: var(--warn);
    }

    .tl-m-span-fill.sold_out {
        background: var(--bad);
    }

    .tl-m-span-fill.clip-s {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .tl-m-span-fill.clip-e {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* Timeline Slide-Over Voyage Quick-Inspect Dossier */
.tl-voyage-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tl-voyage-panel[hidden] {
    display: none !important;
}

.tl-dossier-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.tl-dossier-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-dossier-hero.is-placeholder > .icon {
    width: 44px;
    height: 44px;
}

.tl-dossier-badges {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tl-dossier-fly {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(8, 20, 38, 0.82);
    color: #fff;
    font: 600 11.5px/1.2 var(--f-sans);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tl-dossier-fly .icon {
    width: 12px;
    height: 12px;
}

.tl-dossier-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 460px) {
    .tl-dossier-specs {
        grid-template-columns: 1fr;
    }
}

.tl-spec-box {
    padding: 11px 13px;
    border-radius: var(--r-md);
    background: var(--subtle-bg);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tl-spec-label {
    font: 600 10.5px/1.2 var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.tl-spec-val {
    font: 600 13.5px/1.35 var(--f-sans);
    color: var(--ink);
}

.tl-spec-val a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent-ring);
    text-underline-offset: 2px;
}

.tl-spec-val a:hover {
    color: var(--accent);
}

.tl-dossier-tags {
    margin: 0;
}

.tl-dossier-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}

.tl-dossier-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tl-dossier-price small {
    font-size: 11px;
    color: var(--muted);
}

.tl-dossier-price b {
    font: 700 20px/1.15 var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.tl-dossier-offers {
    font-size: 11.5px;
    color: var(--muted);
}

.tl-dossier-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-compare-pill {
    padding: 7px 12px;
    font-size: 12.5px;
}

.tl-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    font-size: 13px;
}

.tl-view-btn .icon {
    width: 13px;
    height: 13px;
}

.tl-sibling-block {
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.tl-sibling-heading {
    margin: 0 0 8px;
    font: 600 11px/1.2 var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.tl-sibling-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tl-sibling-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease;
}

.tl-sibling-item:hover {
    border-color: var(--accent);
    background: var(--subtle-bg);
}

.tl-sibling-item.is-current {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.tl-sibling-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tl-sibling-main b {
    font: 600 13px/1.25 var(--f-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-sibling-main small {
    font-size: 11.5px;
    color: var(--muted);
}

.tl-sibling-price {
    font: 700 13px/1.2 var(--f-mono);
    color: var(--accent);
    flex-shrink: 0;
}

.tl-hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
}

/* Compare — side-by-side matrix page */
.compare-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.compare-head .count {
    color: var(--muted);
    font-size: 14px;
}

.compare-empty svg {
    width: 56px;
    height: 56px;
    color: #a8bcc9;
}

.compare-empty p {
    max-width: 420px;
    margin: 12px auto 20px;
}

.compare-wrap {
    overflow-x: auto;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 6px 18px rgba(20, 35, 46, .06);
}

.compare-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
}

.compare-table th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--card);
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    padding: 12px 14px 12px 16px;
    vertical-align: middle;
    width: 130px;
    border-bottom: 1px solid var(--line);
    box-shadow: 1px 0 0 var(--line);
}

.compare-table td {
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
    vertical-align: top;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.compare-table tr:last-child :is(td, th) {
    border-bottom: 0;
}

.compare-table .c-section :is(th, td) {
    background: var(--bg);
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 11px;
}

.compare-table .c-photo td {
    vertical-align: bottom;
    border-bottom-color: transparent;
    padding-bottom: 4px;
}

.compare-table .c-photo th {
    border-bottom-color: transparent;
    box-shadow: none;
    background: transparent;
}

.c-thumb {
    display: block;
    width: 100%;
    height: 130px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--accent-soft);
}

.c-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.c-thumb.placeholder svg {
    width: 44px;
    height: 44px;
}

.c-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.c-thumb:hover img {
    transform: scale(1.03);
}

.c-overline {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.c-title {
    display: block;
    margin-top: 2px;
    font-weight: 700;
    font-size: 15px;
    color: inherit;
    line-height: 1.3;
}

.c-remove {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.c-remove:hover {
    color: var(--bad);
    text-decoration: none;
}

.c-price.is-best {
    background: var(--ok-bg);
}

.c-price b {
    font: var(--t-price);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.c-price small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.val-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ok);
    background: var(--ok-bg);
    border: 1px solid var(--ok-line);
    border-radius: var(--r-pill);
    padding: 1px 8px;
}

td .val-tag {
    margin-left: 6px;
}

.c-price .val-tag {
    display: block;
    width: fit-content;
    margin-left: 0;
}

.c-route {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.45;
}

.compare-table .muted {
    color: var(--muted);
}

.compare-table .tags {
    margin: 0;
}

.c-actions .btn {
    display: block;
    text-align: center;
}

.c-actions .btn + .btn {
    margin-top: 6px;
}

.compare-table tr.c-ai-row :is(td, th) {
    background: var(--subtle-bg);
}

.compare-table .c-ai-head th {
    color: var(--accent);
}

.c-ai-intro,
.c-ai-cell {
    font-size: 13.5px;
}

.ai-headline {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.c-ai-cell ul {
    margin: 0 0 10px;
    padding-left: 16px;
}

.c-ai-cell li {
    margin: 3px 0;
}

.ai-ideal {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px dashed var(--line);
    padding-top: 8px;
}

.ai-ideal b {
    color: var(--ink);
    font-weight: 600;
}

.c-ai-tip {
    font-size: 13px;
}

.c-ai-tip:not(:empty)::before {
    content: "💡 ";
}

.ai-skeleton {
    display: grid;
    gap: 8px;
    padding: 2px 0;
}

.ai-skeleton span {
    height: 11px;
    border-radius: var(--r-sm);
    background: linear-gradient(90deg, var(--wash) 25%, var(--surface) 45%, var(--wash) 65%);
    background-size: 200% 100%;
    animation: ai-shimmer 1.2s linear infinite;
}

.ai-skeleton span:nth-child(2) { width: 82%; }
.ai-skeleton span:nth-child(3) { width: 64%; }

@keyframes ai-shimmer {
    to { background-position: -200% 0; }
}

.c-map {
    display: block;
    height: 110px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
}

.c-map img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.c-map:hover {
    border-color: var(--accent);
}
