.stc-tour-grid {
    --stc-nile-deep: #0b3155;
    --stc-nile: #12588f;
    --stc-sky: #368fd8;
    --stc-papyrus: #f7f9fc;
    --stc-sand: #ffa61f;
    --stc-sand-deep: #df8910;
    --stc-ink: #10263c;
    --stc-copy: #526a80;
    --stc-line: rgba(18, 88, 143, .15);
    --stc-shadow: 0 1px 2px rgba(11, 49, 85, .04), 0 12px 34px rgba(11, 49, 85, .09);
    display: grid;
    grid-template-columns: repeat(var(--stc-columns, 3), minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 30px);
    width: 100%;
}

.stc-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--stc-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--stc-shadow);
    color: var(--stc-copy);
    font-family: inherit;
    transition: transform 180ms cubic-bezier(.22, .61, .36, 1), box-shadow 180ms cubic-bezier(.22, .61, .36, 1);
}

.stc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(11, 49, 85, .05), 0 18px 44px rgba(11, 49, 85, .13);
}

.stc-card__media-wrap {
    position: relative;
    flex: 0 0 auto;
}

.stc-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, var(--stc-nile-deep), var(--stc-sky));
}

.stc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms cubic-bezier(.22, .61, .36, 1);
}

.stc-card:hover .stc-card__media img {
    transform: scale(1.025);
}

.stc-card__placeholder {
    display: grid;
    height: 100%;
    min-height: 220px;
    place-items: center;
    padding: 24px;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.stc-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: clamp(20px, 2.2vw, 28px);
}

.stc-card__title {
    margin: 0;
    color: var(--stc-ink);
    font-size: clamp(20px, 1.7vw, 27px);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -.025em;
}

.stc-card__title a {
    color: inherit;
    text-decoration: none;
}

.stc-card__title a:hover {
    color: var(--stc-nile);
}

.stc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 15px;
    margin-block-start: 16px;
    color: var(--stc-copy);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

.stc-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stc-card__meta i {
    color: var(--stc-nile);
    font-size: 17px;
    font-style: normal;
}

.stc-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 18px 0 0;
    color: var(--stc-copy);
    font-size: 15px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.stc-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-block-start: auto;
    padding-block-start: 22px;
}

.stc-card__price {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
    color: var(--stc-copy);
    line-height: 1.1;
}

.stc-card__price small {
    margin-block-end: 5px;
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.stc-card__price strong {
    color: var(--stc-nile-deep);
    font-size: 23px;
    font-variant-numeric: tabular-nums;
}

.stc-card__cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--stc-sand);
    color: var(--stc-nile-deep);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.stc-card__cta:hover {
    transform: translateY(-1px);
    background: var(--stc-sand-deep);
    color: #fff;
}

.stc-card__cta:focus-visible,
.stc-card__media:focus-visible,
.stc-card__title a:focus-visible {
    outline: 3px solid var(--stc-sky);
    outline-offset: 3px;
}

.stc-card__badges {
    position: absolute;
    inset: 18px 18px auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.stc-card__badge,
.stc-card__price-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--stc-nile-deep);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: 0 6px 18px rgba(11, 49, 85, .18);
}

.stc-card__price-badge {
    margin-inline-start: auto;
    background: var(--stc-sand);
    color: var(--stc-nile-deep);
    font-variant-numeric: tabular-nums;
}

.stc-card__feature-list {
    display: none;
}

.std-card .stc-card__footer {
    justify-content: flex-end;
}

.std-card .stc-card__cta {
    margin-inline-start: auto;
}

/* 01 — Voyager: generous white frame and full-width amber action. */
.stc-card--voyager {
    padding: 14px;
    border: 0;
    border-radius: 28px;
}

.stc-card--voyager .stc-card__media {
    border-radius: 18px;
}

.stc-card--voyager .stc-card__badges {
    display: none;
}

.stc-card--voyager .stc-card__body {
    padding: 24px 18px 18px;
}

.stc-card--voyager .stc-card__meta span:nth-child(2) {
    order: -1;
    flex-basis: 100%;
}

.stc-card--voyager .stc-card__footer {
    flex-wrap: wrap;
}

.stc-card--voyager .stc-card__cta {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    font-size: 16px;
}

/* 02 — Expedition: image-led catalogue card with a circular arrow action. */
.stc-card--expedition {
    border-radius: 18px;
    background: var(--stc-papyrus);
}

.stc-card--expedition .stc-card__media {
    aspect-ratio: 1.12 / 1;
}

.stc-card--expedition .stc-card__badges {
    display: none;
}

.stc-card--expedition .stc-card__body {
    background: #fff;
}

.stc-card--expedition .stc-card__footer {
    border-block-start: 1px solid var(--stc-line);
}

.stc-card--expedition .stc-card__price {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
}

.stc-card--expedition .stc-card__cta {
    width: 46px;
    min-width: 46px;
    height: 46px;
    overflow: hidden;
    padding: 0;
    border-radius: 50%;
    background: var(--stc-nile);
    color: #fff;
    font-size: 0;
}

.stc-card--expedition .stc-card__cta span {
    font-size: 23px;
}

/* 03 — Nile Premium: structured metadata, amenity chips, navy pill CTA. */
.stc-card--nile {
    border-radius: 24px;
}

.stc-card--nile .stc-card__media {
    aspect-ratio: 16 / 10;
}

.stc-card--nile .stc-card__price {
    display: none;
}

.stc-card--nile .stc-card__feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 20px;
}

.stc-card--nile .stc-card__feature-list span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 166, 31, .24);
    border-radius: 999px;
    background: #fffaf2;
    color: var(--stc-nile-deep);
    font-size: 12px;
    font-weight: 750;
}

.stc-card--nile .stc-card__cta {
    padding-inline: 24px;
    background: var(--stc-nile-deep);
    color: #fff;
}

.stc-card--nile .stc-card__cta:hover {
    background: var(--stc-nile);
}

/* 04 — Heritage Detail: editorial image, price panel, ruled facts. */
.stc-card--heritage {
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(11, 49, 85, .04), 0 9px 28px rgba(11, 49, 85, .08);
}

.stc-card--heritage .stc-card__media {
    aspect-ratio: 16 / 9;
}

.stc-card--heritage .stc-card__badge {
    display: none;
}

.stc-card--heritage .stc-card__badges {
    inset: auto 18px 0;
}

.stc-card--heritage .stc-card__price-badge {
    max-width: 58%;
    min-height: 86px;
    align-items: flex-end;
    padding: 18px 22px;
    border-radius: 18px 0 0 0;
    background: #fff;
    color: var(--stc-sand-deep);
    font-size: 20px;
    box-shadow: -8px -8px 26px rgba(11, 49, 85, .09);
}

.stc-card--heritage .stc-card__title {
    color: var(--stc-nile-deep);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 2vw, 32px);
    text-align: center;
}

.stc-card--heritage .stc-card__meta,
.stc-card--heritage .stc-card__summary,
.stc-card--heritage .stc-card__price {
    display: none;
}

.stc-card--heritage .stc-card__feature-list {
    display: flex;
    flex-direction: column;
    margin-block-start: 20px;
    border-block-start: 1px solid var(--stc-line);
}

.stc-card--heritage .stc-card__feature-list span {
    padding: 13px 4px;
    border-block-end: 1px solid var(--stc-line);
    color: var(--stc-ink);
    font-size: 14px;
}

.stc-card--heritage .stc-card__footer {
    display: block;
}

.stc-card--heritage .stc-card__cta {
    width: 100%;
    border-radius: 0;
    background: var(--stc-sand-deep);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* 05 — Signature: compact badges, warm chips, generous branded CTA. */
.stc-card--signature {
    border-radius: 24px;
}

.stc-card--signature .stc-card__media {
    aspect-ratio: 3 / 2;
}

.stc-card--signature .stc-card__badge {
    background: #335d49;
}

.stc-card--signature .stc-card__price-badge {
    background: #cfa43c;
    color: #fff;
}

.stc-card--signature .stc-card__meta {
    gap: 9px;
}

.stc-card--signature .stc-card__meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef3f7;
    color: var(--stc-nile-deep);
}

.stc-card--signature .stc-card__footer {
    display: block;
}

.stc-card--signature .stc-card__price {
    display: none;
}

.stc-card--signature .stc-card__cta {
    width: 100%;
    min-height: 50px;
    background: #cfa43c;
    color: #fff;
    font-size: 16px;
}

.stc-tour-empty {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 32px;
    border: 1px dashed rgba(18, 88, 143, .3);
    border-radius: 18px;
    background: #f7fafc;
    color: #526a80;
    text-align: center;
}

.stc-tour-empty strong {
    color: #10263c;
    font-size: 18px;
}

@media (max-width: 767px) {
    .stc-tour-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .stc-card__body {
        padding: 20px;
    }

    .stc-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .stc-card--expedition .stc-card__footer {
        align-items: center;
        flex-direction: row;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stc-card,
    .stc-card *,
    .stc-card *::before,
    .stc-card *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
