/* Catalog & editorial card primitives (.card, .vcard, .ecard, .scard, .ocard,
   .rcard, .acard, .mcard) and the sticky compare tray. */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: var(--s5);
}

/* Shared card surface primitive — unified --r-lg (12px) architectural radius */
.card,
.vcard,
.rcard {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-card);
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.vcard {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}

.vcard:hover,
.rcard:hover {
    box-shadow: var(--sh-card-hover);
    transform: translateY(-2px);
}

.rcard:hover {
    border-color: var(--accent-ring);
}

.vcard-media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--photo-placeholder);
}

.vcard-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vcard-media.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #DFEAF1, #F0F5F8);
    color: #A8BCC9;
}

html[data-theme="dark"] .vcard-media.placeholder {
    background: linear-gradient(160deg, #0D213B, #132C4E);
    color: #3E5F82;
}

.vcard-media.placeholder .icon {
    width: 40px;
    height: 56px;
    opacity: .55;
}

.vcard-scrim {
    position: absolute;
    inset: 0;
    background: var(--scrim-card);
    pointer-events: none;
}

.vcard-media img[hidden],
.vcard-scrim[hidden],
.vcard-fallback-pill[hidden],
.media-plate-wrap[hidden] {
    display: none !important;
}

/* Destination photo fallback caption micro-pill on cruise cards */
.vcard-fallback-pill {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px 3px 7px;
    border-radius: var(--r-pill);
    background: rgba(6, 18, 34, 0.64);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.94);
    font: 600 11px/1.25 var(--f-sans);
    letter-spacing: 0.015em;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.vcard-fallback-pill .icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: #7CC4F2;
}

.vcard-fallback-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bespoke naval-architecture & polar graticule SVG plates (.scard & .ocard) */
.vcard-media.has-plate {
    padding: 0;
    display: block;
}

.media-plate-wrap,
.media-plate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.media-plate {
    --plate-grid: rgba(16, 56, 98, 0.075);
    --plate-line: rgba(16, 56, 98, 0.17);
    --plate-accent: #1B6CA8;
    --plate-stroke: #1B4976;
    --plate-ink: #0B2542;
    --plate-muted: rgba(15, 48, 84, 0.58);
    --plate-hull: rgba(255, 255, 255, 0.82);
    --plate-cabin: rgba(244, 249, 253, 0.94);
    --plate-medallion: rgba(255, 255, 255, 0.78);
    background:
        radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.74) 0%, rgba(226, 238, 248, 0) 68%),
        linear-gradient(155deg, #EAF1F7 0%, #DCE8F2 54%, #D0E0EE 100%);
    border-bottom: 1px solid rgba(15, 45, 78, 0.08);
}

html[data-theme="dark"] .media-plate {
    --plate-grid: rgba(125, 185, 238, 0.085);
    --plate-line: rgba(125, 185, 238, 0.22);
    --plate-accent: #56B4E9;
    --plate-stroke: #7CC4F2;
    --plate-ink: #E6F2FC;
    --plate-muted: rgba(162, 202, 236, 0.62);
    --plate-hull: rgba(18, 49, 82, 0.88);
    --plate-cabin: rgba(26, 65, 106, 0.8);
    --plate-medallion: rgba(14, 38, 66, 0.86);
    background:
        radial-gradient(circle at 50% 52%, rgba(56, 189, 248, 0.14) 0%, rgba(11, 29, 53, 0) 68%),
        linear-gradient(155deg, #071425 0%, #0B1F38 52%, #0E2745 100%);
    border-bottom: 1px solid rgba(148, 197, 244, 0.1);
}

.media-plate-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.media-plate-svg .plate-vessel {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.vcard:hover .media-plate-svg .plate-vessel {
    transform: translateX(2.5px);
}

.vcard-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vcard-by {
    margin-top: auto;
    margin-bottom: 14px;
    font: 500 12px/1.35 var(--f-sans);
    letter-spacing: 0.01em;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vcard-by + .vcard-foot {
    margin-top: 0;
}

.vcard-by-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 22px;
}

/* Nested links sit above stretched title links at z-index 2 */
.vcard-by a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 0;
    color: var(--ink-2);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcard-by a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.vcard-by .sep {
    color: var(--muted);
    opacity: 0.5;
    margin: 0 2px;
    flex-shrink: 0;
}

.vcard-by .icon {
    width: 13px;
    height: 13px;
    margin-right: 2px;
    flex-shrink: 0;
    color: var(--muted);
}

.vcard-by .num {
    font-family: var(--f-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.vcard-by-capacity {
    white-space: nowrap;
    flex-shrink: 0;
}

.vcard-title {
    margin: 0 0 10px 0;
    font: 400 18px/1.35 var(--f-serif);
    letter-spacing: -.01em;
}

.vcard-title a {
    color: var(--ink);
}

.vcard-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vcard-title a:hover {
    text-decoration: none;
    color: var(--accent);
}

.vcard-dates,
.vcard-port {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font: var(--t-body);
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
}

.vcard-port {
    margin-top: -4px;
    margin-bottom: 12px;
    font-size: 12.5px;
}

.vcard-dates .icon,
.vcard-port .icon {
    width: 13px;
    height: 13px;
    color: var(--muted);
}

.vcard-dates .num {
    font: var(--t-num);
    font-variant-numeric: tabular-nums;
}

.vcard-tags {
    list-style: none;
    margin: 2px 0 14px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vcard-tags li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.vcard-tag {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 12px;
    line-height: 1.35;
    color: var(--ink-2);
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.act-icon {
    display: inline-flex;
    align-items: center;
    color: var(--teal-ink);
    line-height: 1;
}

.act-icon .icon {
    width: 13.5px;
    height: 13.5px;
}

a.vcard-tag:hover {
    background: var(--card);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-1px);
}

a.vcard-tag:hover .act-icon {
    color: currentColor;
}

.vcard-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--s2);
}

.vcard-foot-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.vcard:hover .scard-action {
    background: var(--accent);
    color: var(--accent-ink);
    transform: translateX(2px);
}

.vcard-price .lbl {
    display: block;
    font: var(--t-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.vcard-price-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 2px;
}

.vcard-price b {
    display: inline-block;
    font: var(--t-price);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.vcard-price-orig,
.price-orig-inline {
    font-family: var(--f-mono);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}

.price-orig-note {
    display: block;
    margin-top: 2px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.vcard-price small {
    display: block;
    margin-top: 2px;
    font: var(--t-body);
    font-size: 12px;
    color: var(--muted);
}

.vcard-price small .num {
    font-family: var(--f-mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.vcard-price small .num.is-secondary {
    color: var(--ink-2);
}

.vcard-price-sep {
    opacity: 0.55;
}

/* Editorial promo & wildlife cards */
.ecard {
    position: relative;
    display: flex;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 420px;
    background: var(--dark);
    box-shadow: var(--sh-card);
    transition: box-shadow .15s ease, transform .15s ease;
}

.ecard:hover {
    box-shadow: var(--sh-card-hover);
    transform: translateY(-2px);
}

.ecard > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecard-scrim {
    position: absolute;
    inset: 0;
    background: var(--scrim-editorial);
}

.ecard-body {
    position: relative;
    margin-top: auto;
    width: 100%;
    padding: var(--s5);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0 var(--s3);
    color: var(--on-dark);
}

.ecard-eyebrow {
    grid-column: 1;
    margin: 0 0 var(--s1);
    font: var(--t-caps);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: rgba(255, 255, 255, .6);
}

.ecard-title {
    grid-column: 1;
    margin: 0 0 6px;
    font: 400 18px/1.2 var(--f-serif);
    letter-spacing: -.01em;
}

.ecard-title a {
    color: var(--on-dark);
}

.ecard-title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.ecard-title a:hover {
    text-decoration: none;
}

.ecard-blurb {
    grid-column: 1;
    margin: 0;
    font: var(--t-body);
    color: rgba(255, 255, 255, .75);
}

.ecard-go {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: var(--on-dark);
}

.ecard:hover .ecard-go {
    background: rgba(255, 255, 255, .32);
}

.ecard-go .icon {
    width: 17px;
    height: 17px;
}

/* Full-bleed editorial photo cards for /activities (.acard — sibling to .ecard) */
.acard {
    position: relative;
    display: flex;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 390px;
    background: var(--dark);
    box-shadow: var(--sh-card), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transition: box-shadow .18s ease, transform .18s ease;
}

.acard:hover {
    box-shadow: var(--sh-card-hover), inset 0 0 0 1px rgba(255, 255, 255, .18);
    transform: translateY(-2px);
}

.acard-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.acard:hover .acard-bg {
    transform: scale(1.035);
}

.acard-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 16, 30, .02) 0%,
        rgba(6, 16, 30, .08) 38%,
        rgba(6, 16, 30, .64) 66%,
        rgba(5, 13, 25, .91) 100%
    );
    pointer-events: none;
}

.acard-body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    width: 100%;
    padding: 22px 22px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0 var(--s4);
    color: var(--on-dark);
}

.acard-eyebrow {
    grid-column: 1;
    margin: 0 0 6px;
    font: var(--t-caps);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .64);
}

.acard-title {
    grid-column: 1;
    margin: 0 0 6px;
    font: 400 21px/1.22 var(--f-serif);
    letter-spacing: -.012em;
}

.acard-title a {
    color: var(--on-dark);
    text-decoration: none;
}

.acard-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.acard-title a:hover {
    text-decoration: none;
}

.acard-desc {
    grid-column: 1;
    margin: 0;
    font: var(--t-body);
    font-size: 13.5px;
    line-height: 1.48;
    color: rgba(255, 255, 255, .78);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acard-meta {
    grid-column: 1;
    margin: 11px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font: 500 12.5px/1.3 var(--f-sans);
    color: rgba(255, 255, 255, .64);
}

.acard-meta .num,
.acard-price {
    font-variant-numeric: tabular-nums;
}

.acard-meta .num {
    font-family: var(--f-mono);
    font-weight: 600;
    color: rgba(255, 255, 255, .86);
}

.acard-meta-sep {
    opacity: .55;
}

.acard-go {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--on-dark);
    transition: background .18s ease, transform .18s ease;
}

.acard:hover .acard-go {
    background: rgba(255, 255, 255, .32);
    transform: translateX(2px);
}

.acard-go .icon {
    width: 17px;
    height: 17px;
}

/* Ship, region, activity & season cards client-side filter visibility */
.scard[hidden],
.scard.is-hidden,
.rcard[hidden],
.acard[hidden],
.mcard[hidden],
.mcard.is-hidden,
.austral-season-group[hidden],
.regions-grid[hidden],
.cards[hidden],
.ship-empty-state[hidden] {
    display: none !important;
}

.scard {
    min-height: 360px;
    overflow: visible;
    content-visibility: visible;
}

.scard > .vcard-media {
    border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
}

.scard:has(.badge-ice:hover, .badge-ice:focus, .badge-ice:focus-visible),
.ocard:has(.badge-ice:hover, .badge-ice:focus, .badge-ice:focus-visible) {
    z-index: 25;
}

.scard-specs {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scard-specs li {
    font-size: 11px;
    line-height: 1.4;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--ink-2);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.scard-specs li.badge-ice {
    background: var(--teal-bg);
    color: var(--teal-ink);
    border-color: var(--teal-line);
    font-family: var(--f-mono);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.scard-specs li.badge-ice .ice-tooltip {
    left: 0;
    transform: translateY(4px);
    text-align: left;
}

.scard-specs li.badge-ice:hover .ice-tooltip,
.scard-specs li.badge-ice:focus .ice-tooltip,
.scard-specs li.badge-ice:focus-visible .ice-tooltip {
    transform: translateY(0);
}

.scard-specs li.badge-ice .ice-tooltip::after {
    left: 16px;
    transform: rotate(45deg);
}

.scard-specs .num {
    font-family: var(--f-mono);
    font-variant-numeric: tabular-nums;
}

.scard-departures {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
}

.scard-departures .num {
    font-family: var(--f-mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.scard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent);
    transition: transform .15s ease, background .15s ease, color .15s ease;
}

.scard-action .icon {
    width: 14px;
    height: 14px;
}

.scard:not(:has(.badge-ice:hover)):hover .scard-action,
.ocard:not(:has(.ocard-spec-link:hover, .badge-ice:hover)):hover .scard-action {
    transform: translateX(2px);
    background: var(--accent);
    color: var(--accent-ink);
}

/* Operator cards on /operators (brand logo stage + interactive technical spec pills) */
.ocard[hidden],
.ocard.is-hidden,
.operator-empty-state[hidden] {
    display: none !important;
}

.ocard {
    min-height: 0;
    overflow: visible;
    content-visibility: visible;
    contain-intrinsic-size: auto 340px;
}

.ocard:not(:has(.ocard-spec-link:hover, .badge-ice:hover)):hover {
    border-color: var(--accent-ring);
}

.ocard-brand-stage {
    position: relative;
    height: 146px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
    border-bottom: 1px solid var(--line);
}

.ocard-brand-stage:not(.has-plate) {
    background-color: #f4f8fc;
    background-image:
        radial-gradient(rgba(15, 45, 78, 0.075) 1px, transparent 1px),
        linear-gradient(160deg, #fafdff 0%, #edf4fb 58%, #e4eef8 100%);
    background-size: 14px 14px, 100% 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .ocard-brand-stage:not(.has-plate) {
    background-color: #eef4fa;
    background-image:
        radial-gradient(rgba(15, 45, 78, 0.085) 1px, transparent 1px),
        linear-gradient(160deg, #f5f9fd 0%, #dde8f4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    border-bottom-color: rgba(125, 190, 255, 0.16);
}

.ocard-brand-stage.has-plate {
    padding: 0;
}

.ocard-brand-stage.has-plate .media-plate {
    width: 100%;
    height: 100%;
}

.ocard-brand-logo {
    display: block;
    max-width: min(204px, 74%);
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .22s ease;
}

.ocard:not(:has(.ocard-spec-link:hover)):hover .ocard-brand-logo {
    transform: scale(1.025);
}

.ocard-iaato-tag {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
    font: 600 9.5px/1 var(--f-mono);
    letter-spacing: 0.14em;
    color: rgba(30, 58, 95, 0.5);
    pointer-events: none;
}

.ocard-origin-badge {
    position: absolute;
    top: 9px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 45, 78, 0.12);
    color: #1e3a5f;
    font: 600 11px/1.2 var(--f-sans);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    pointer-events: none;
    max-width: calc(100% - 82px);
}

.ocard-origin-badge > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ocard-body {
    padding: 16px 20px 18px;
}

.ocard-eyebrow {
    display: block;
    margin-bottom: 4px;
    font: 700 10.5px/1.3 var(--f-sans);
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--usp);
}

.ocard-title {
    margin-bottom: 12px;
}

.ocard:not(:has(.ocard-spec-link:hover, .badge-ice:hover)):hover .ocard-title a {
    color: var(--accent);
}

.ocard-specs {
    margin-top: auto;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ocard-specs + .vcard-foot {
    margin-top: 0;
}

.ocard-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 4.5px;
    min-height: 26px;
    padding: 3px 8.5px;
    border-radius: var(--r-sm);
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font: 500 11.5px/1.3 var(--f-sans);
    white-space: nowrap;
}

.ocard-spec-chip .icon {
    width: 12.5px;
    height: 12.5px;
    color: var(--muted);
    flex-shrink: 0;
    transition: color .15s ease;
}

.ocard-spec-chip .num {
    font-family: var(--f-mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.ocard-spec-link {
    position: relative;
    z-index: 2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.ocard-spec-link .ocard-spec-ext {
    font-family: var(--f-sans);
    font-size: 10.5px;
    line-height: 1;
    color: var(--muted);
    opacity: 0.75;
    margin-left: 0.5px;
    transition: transform .15s ease, color .15s ease, opacity .15s ease;
}

.ocard-spec-link:hover,
.ocard-spec-link:focus-visible {
    text-decoration: none;
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 1px 4px var(--accent-ring);
}

.ocard-spec-link:hover .icon,
.ocard-spec-link:hover .num,
.ocard-spec-link:focus-visible .icon,
.ocard-spec-link:focus-visible .num {
    color: var(--accent);
}

.ocard-spec-link:hover .ocard-spec-ext,
.ocard-spec-link:focus-visible .ocard-spec-ext {
    color: var(--accent);
    opacity: 1;
    transform: translate(1px, -1px);
}

.ocard-spec-chip.is-ice {
    padding: 3px 7.5px;
    background: var(--teal-bg);
    border-color: var(--teal-line);
    color: var(--teal-ink);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}

.ocard-spec-chip.is-ice .ice-tooltip {
    left: auto;
    right: 0;
    transform: translateY(4px);
    text-align: left;
}

.ocard-spec-chip.is-ice:hover .ice-tooltip,
.ocard-spec-chip.is-ice:focus .ice-tooltip,
.ocard-spec-chip.is-ice:focus-visible .ice-tooltip {
    transform: translateY(0);
}

.ocard-spec-chip.is-ice .ice-tooltip::after {
    left: auto;
    right: 13px;
    transform: rotate(45deg);
}

/* Region Cards (.rcard) with full-card stretched title links */
.rcard-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--dark);
}

.rcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.rcard:hover .rcard-media img {
    transform: scale(1.04);
}

.rcard-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
    pointer-events: none;
}

.rcard-badge-featured {
    position: absolute;
    top: var(--s3);
    left: var(--s3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: var(--usp);
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.rcard-badge-featured .icon {
    width: 13px;
    height: 13px;
}

.rcard-badge-context {
    position: absolute;
    top: var(--s3);
    right: var(--s3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(11, 23, 40, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #f8fafc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
    z-index: 2;
    max-width: 58%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcard-tagline {
    position: absolute;
    bottom: var(--s3);
    left: var(--s3);
    right: var(--s3);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcard-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--s5);
    gap: var(--s3);
}

.rcard-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rcard-title {
    font: 400 20px/1.3 var(--f-serif);
    letter-spacing: -.01em;
    margin: 0;
}

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

.rcard-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rcard-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.rcard-subtitle {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--usp);
    margin-top: -2px;
    line-height: 1.4;
}

.rcard-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-2);
    margin: 0;
}

.rcard-activities {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.rcard-activities-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.rcard-activity-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rcard-activity-pills li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.rcard-activity-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 12px;
    line-height: 1.3;
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

a.rcard-activity-pill:hover {
    background: var(--card);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-1px);
}

a.rcard-activity-pill:hover .act-icon {
    color: currentColor;
}

.rcard-activity-pill .act-flag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.rcard-activity-pill .act-flag .flag-svg {
    width: 14px;
    height: 10px;
    border-radius: 2px;
}

.rcard-activity-pill--more {
    font-weight: 600;
    color: var(--ink-2);
    padding: 4px 8px;
}

.rcard-foot {
    margin-top: auto;
    padding-top: var(--s4);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s3);
}

.rcard-action {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent);
    border: none;
    flex-shrink: 0;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}

.rcard-action .icon {
    width: 14px;
    height: 14px;
}

.rcard:hover .rcard-action,
.rcard:hover .scard-action {
    background: var(--accent);
    color: var(--accent-ink);
    transform: translateX(2px);
}

/* Canonical Month Cards (.mcard) on /seasons */
.mcard {
    position: relative;
    content-visibility: visible;
    scroll-margin-top: 90px;
}

.mcard--canonical {
    border-top: 3px solid var(--line);
}

.mcard--canonical.mcard-season-early {
    border-top-color: #0284c7;
}

.mcard--canonical.mcard-season-peak {
    border-top-color: #d97706;
}

.mcard--canonical.mcard-season-late {
    border-top-color: #6366f1;
}

html[data-theme="dark"] .mcard--canonical.mcard-season-early {
    border-top-color: #38bdf8;
}

html[data-theme="dark"] .mcard--canonical.mcard-season-peak {
    border-top-color: #fbbf24;
}

html[data-theme="dark"] .mcard--canonical.mcard-season-late {
    border-top-color: #818cf8;
}

.mcard--canonical:hover,
.shoulder-mcard:hover {
    transform: none;
    border-color: var(--accent-ring);
    box-shadow: var(--sh-card-hover);
}

.mcard--canonical.mcard-season-early:hover { border-top-color: #0284c7; }
.mcard--canonical.mcard-season-peak:hover { border-top-color: #d97706; }
.mcard--canonical.mcard-season-late:hover { border-top-color: #6366f1; }
html[data-theme="dark"] .mcard--canonical.mcard-season-early:hover { border-top-color: #38bdf8; }
html[data-theme="dark"] .mcard--canonical.mcard-season-peak:hover { border-top-color: #fbbf24; }
html[data-theme="dark"] .mcard--canonical.mcard-season-late:hover { border-top-color: #818cf8; }

.mcard-body {
    padding: var(--s5);
    display: flex;
    flex-direction: column;
    gap: 11px;
    height: 100%;
}

.mcard-phase-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mcard-phase-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mcard-phase-dot.early {
    background: #0284c7;
}

.mcard-phase-dot.peak {
    background: #d97706;
}

.mcard-phase-dot.late {
    background: #6366f1;
}

html[data-theme="dark"] .mcard-phase-dot.early {
    background: #38bdf8;
}

html[data-theme="dark"] .mcard-phase-dot.peak {
    background: #fbbf24;
}

html[data-theme="dark"] .mcard-phase-dot.late {
    background: #a5b4fc;
}

.mcard-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
}

.mcard-title {
    margin: 0;
    font: 400 24px/1.2 var(--f-serif);
    letter-spacing: -0.015em;
}

.mcard-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color .15s ease;
}

/* Month cards contain multiple distinct year links (.mcard-year-row); disable
   .vcard-title's full-card stretched ::after overlay so it never intercepts
   individual 202x row hovers/clicks or falsely highlights the month title. */
.mcard-title a::after,
.shoulder-mcard-title a::after {
    content: none;
}

.mcard-title a:hover {
    color: var(--accent);
}

.mcard-title a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.mcard-daylight {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--subtle-bg);
    border: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.mcard-daylight .icon {
    width: 12.5px;
    height: 12.5px;
    color: #d97706;
    flex-shrink: 0;
}

html[data-theme="dark"] .mcard-daylight .icon {
    color: #fbbf24;
}

.mcard-season-tag {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--usp);
}

.mcard-season-tag.season-early,
.mcard-season-early .mcard-season-tag {
    color: #0369A1;
}

html[data-theme="dark"] .mcard-season-tag.season-early,
html[data-theme="dark"] .mcard-season-early .mcard-season-tag {
    color: #38BDF8;
}

.mcard-season-tag.season-peak,
.mcard-season-peak .mcard-season-tag {
    color: #B45309;
}

html[data-theme="dark"] .mcard-season-tag.season-peak,
html[data-theme="dark"] .mcard-season-peak .mcard-season-tag {
    color: #FBBF24;
}

.mcard-season-tag.season-late,
.mcard-season-late .mcard-season-tag {
    color: #5B21B6;
}

html[data-theme="dark"] .mcard-season-tag.season-late,
html[data-theme="dark"] .mcard-season-late .mcard-season-tag {
    color: #C4B5FD;
}

.mcard-blurb {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.52;
    color: var(--ink-2);
}

.mcard-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mcard-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 9px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 12px;
    line-height: 1.3;
    color: var(--ink);
}

.mcard-badge-icon {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    line-height: 1;
}

.mcard-badge-icon .icon {
    width: 13.5px;
    height: 13.5px;
}

/* Inline Year Departure Picker inside Canonical Month Card */
.mcard-years {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
}

.mcard-year-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
    padding: 8.5px 11px;
    background: var(--subtle-bg);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.mcard-year-row:first-child {
    border-top-left-radius: var(--r-md);
    border-top-right-radius: var(--r-md);
}

.mcard-year-row:last-child {
    border-bottom-left-radius: var(--r-md);
    border-bottom-right-radius: var(--r-md);
}

.mcard-year-row + .mcard-year-row {
    margin-top: -1px;
}

.mcard-year-row:hover {
    z-index: 3;
    background: var(--accent-soft);
    border-color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: inset 3px 0 0 var(--accent);
    text-decoration: none;
}

.mcard-year-row:focus-visible {
    z-index: 4;
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.mcard-year-main {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    white-space: nowrap;
}

.mcard-year-num {
    font: 700 13.5px/1.2 var(--f-mono);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mcard-year-row:hover .mcard-year-num {
    color: var(--accent);
}

.mcard-year-count {
    font-size: 12.5px;
    color: var(--muted);
}

.mcard-year-count .num {
    font-weight: 600;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.mcard-year-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.mcard-year-price {
    font-size: 12px;
    color: var(--muted);
}

.mcard-year-price strong {
    font: 700 13px/1.2 var(--f-mono);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mcard-year-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--r-pill);
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--accent);
    flex-shrink: 0;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.mcard-year-arrow .icon {
    width: 12.5px;
    height: 12.5px;
}

.mcard-year-row:hover .mcard-year-arrow {
    transform: translateX(2px);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

/* Compare — card selector & sticky tray */
.compare-check {
    position: absolute;
    top: var(--s2);
    right: var(--s2);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: var(--t-body);
    font-weight: 600;
    color: var(--ink);
    background: var(--overlay-pill-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 4px 10px 4px 7px;
    cursor: pointer;
}

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

.compare-check input {
    margin: 0;
}

.compare-check input:disabled {
    cursor: not-allowed;
}

.compare-check:has(input:disabled) {
    opacity: .5;
    cursor: not-allowed;
}

/* Floating Glass Compare Capsule (standalone on listings/hubs, or upper shelf inside .expedition-bottom-dock) */
.compare-tray {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translate3d(-50%, 0, 0);
    width: min(880px, calc(100vw - 24px));
    z-index: 95;
    background: var(--glass-deck-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-deck-border);
    border-radius: 16px;
    box-shadow: var(--glass-deck-shadow);
    padding: 0;
}

.compare-tray[hidden] {
    display: none;
}

.compare-tray.pulse {
    animation: ct-pulse .4s ease;
}

@keyframes ct-pulse {
    0%, 100% { box-shadow: var(--glass-deck-shadow); }
    40% { box-shadow: 0 0 0 2px var(--bad), 0 18px 40px -10px rgba(184, 50, 50, 0.38); }
}

.ct-inner {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    padding: 8px 12px 8px 14px;
    min-height: 44px;
    box-sizing: border-box;
}

.ct-lead {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    line-height: 1.2;
}

.ct-slot-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: var(--r-pill);
    background: var(--glass-accent-soft);
    border: 1px solid var(--glass-accent-border);
    color: var(--glass-accent);
    font: 700 11px/1.3 var(--f-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.ct-lead-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.ct-lead-label {
    font: 600 12.5px/1.2 var(--f-sans);
    color: var(--glass-ink);
}

.ct-hint {
    font: 500 11.5px/1.2 var(--f-sans);
    color: var(--glass-muted);
}

.compare-tray.is-ready .ct-hint {
    display: none;
}

.ct-chips {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ct-chips::-webkit-scrollbar {
    display: none;
}

.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 196px;
    min-width: 0;
    font: 500 11.5px/1.25 var(--f-sans);
    background: var(--glass-ctrl-bg);
    border: 1px solid var(--glass-ctrl-border);
    color: var(--glass-ink);
    border-radius: var(--r-pill);
    padding: 3px 4px 3px 9px;
    flex-shrink: 1;
}

.compare-chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1;
    color: var(--glass-muted);
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.compare-chip-x:hover {
    background: var(--bad-bg);
    color: var(--bad);
}

.ct-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.ct-clear-btn {
    border: 0;
    background: transparent;
    color: var(--glass-muted);
    font: 600 12px/1.2 var(--f-sans);
    padding: 6px 8px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.ct-clear-btn:hover {
    color: var(--glass-ink);
    background: var(--glass-ctrl-bg-hover);
}

.ct-single-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ct-single-help[hidden],
.compare-tray [data-compare-target="link"][hidden] {
    display: none !important;
}

.ct-help-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5.5px 11px;
    border-radius: var(--r-pill);
    background: var(--glass-ctrl-bg);
    border: 1px solid var(--glass-ctrl-border);
    color: var(--glass-ink);
    font: 600 12px/1.2 var(--f-sans);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ct-help-pill:hover {
    background: var(--glass-ctrl-bg-hover);
    border-color: var(--glass-accent-border);
    color: var(--glass-accent);
    text-decoration: none;
}

.ct-help-pill.is-primary {
    background: var(--glass-accent-soft);
    border-color: var(--glass-accent-border);
    color: var(--glass-accent);
}

.ct-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: var(--r-pill);
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #ffffff;
    font: 600 12.5px/1.2 var(--f-sans);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ct-compare-btn:hover:not(.disabled) {
    background: #1a324d;
    border-color: #1a324d;
    color: #ffffff;
    text-decoration: none;
}

html[data-theme="dark"] .ct-compare-btn:not(.disabled) {
    background: var(--glass-accent-soft);
    border-color: var(--glass-accent-border);
    color: var(--accent-hover);
}

html[data-theme="dark"] .ct-compare-btn:hover:not(.disabled) {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--accent);
    color: #ffffff;
}

.ct-compare-btn.disabled {
    background: var(--glass-ctrl-bg);
    border-color: var(--glass-ctrl-border);
    color: var(--glass-muted);
    opacity: 0.68;
    cursor: not-allowed;
    pointer-events: none;
}

.ct-compare-arrow {
    font-size: 12px;
    line-height: 1;
}

body:has(.compare-tray:not([hidden])) main {
    padding-bottom: 88px;
}

@media (max-width: 720px) {
    .compare-tray {
        width: calc(100vw - 20px);
        bottom: calc(10px + env(safe-area-inset-bottom));
        border-radius: 14px;
    }

    .compare-tray .ct-chips,
    .compare-tray .ct-hint {
        display: none;
    }

    .ct-inner {
        padding: 7px 10px 7px 12px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ct-single-help a + a {
        display: none;
    }
}
