.soves-featured-tours,
.soves-featured-tours * {
    box-sizing: border-box;
}

.soves-featured-tours {
    --soves-ft-ink: #101828;
    --soves-ft-muted: #4b5565;
    --soves-ft-border: #e2e8f0;
    --soves-ft-primary: var(--soves-brand-primary);
    --soves-ft-container-width: 1300px;
    --soves-ft-gap: 20px;
    --soves-ft-card-radius: 14px;
    --soves-ft-pill-bg: #ffffff;
    --soves-ft-title-size: 15px;
    --soves-ft-desc-size: 13px;
    width: 100%;
    padding: 26px 0 30px;
    background: transparent;
}

.soves-featured-tours__heading {
    width: min(var(--soves-ft-container-width, 1300px), calc(100% - 32px));
    margin: 0 auto 20px;
    color: var(--soves-ft-ink);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

/* Card: full-bleed background image, a white pill label overlaid bottom-left
   showing the tour name; on hover/focus the pill grows and swaps to the
   short description instead. */
.soves-featured-tour-card {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--soves-ft-card-radius, 14px);
    background: #0f172a;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.soves-featured-tour-card__media {
    position: absolute;
    inset: 0;
    display: block;
}

.soves-featured-tour-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.soves-featured-tour-card:hover .soves-featured-tour-card__media img,
.soves-featured-tour-card:focus-within .soves-featured-tour-card__media img {
    transform: scale(1.06);
}

.soves-featured-tour-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #243447, #3c5a6e);
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    font-weight: 600;
}

.soves-featured-tour-card__label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    display: inline-block;
    background: var(--soves-ft-pill-bg, #ffffff);
    border-radius: 999px;
    padding: 10px 20px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.18);
    text-decoration: none;
    transition: border-radius 0.25s ease, padding 0.25s ease;
}

.soves-featured-tour-card__title {
    display: block;
    color: var(--soves-ft-ink);
    font-size: var(--soves-ft-title-size, 15px);
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.soves-featured-tour-card__desc {
    display: none;
    color: var(--soves-ft-muted);
    font-size: var(--soves-ft-desc-size, 13px);
    line-height: 1.45;
}

.soves-featured-tour-card:hover .soves-featured-tour-card__label,
.soves-featured-tour-card:focus-within .soves-featured-tour-card__label {
    border-radius: 16px;
    padding: 14px 18px;
}

.soves-featured-tour-card:hover .soves-featured-tour-card__title,
.soves-featured-tour-card:focus-within .soves-featured-tour-card__title {
    display: none;
}

.soves-featured-tour-card:hover .soves-featured-tour-card__desc,
.soves-featured-tour-card:focus-within .soves-featured-tour-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* One horizontal row, all cards the same height; each card's own "Tile Size"
   (set per-row in the Elementor repeater) decides how much of the row's
   width it takes — Normal, Normal, Wide, Normal, Normal reads as a 2-1-2
   pattern in a single row, matching the reference destinations layout. */
.soves-featured-tours__track {
    width: min(var(--soves-ft-container-width, 1300px), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    height: 360px;
    gap: var(--soves-ft-gap, 20px);
}

.soves-featured-tour-card {
    flex: 1 1 0;
    min-width: 0;
}

.soves-featured-tour-card--wide,
.soves-featured-tour-card--large {
    flex: 2 1 0;
}

@media (max-width: 900px) {
    .soves-featured-tours__track {
        flex-wrap: wrap;
        height: auto;
    }

    .soves-featured-tour-card,
    .soves-featured-tour-card--wide,
    .soves-featured-tour-card--large {
        flex-basis: calc(50% - 10px);
        height: 220px;
    }
}

@media (max-width: 640px) {
    .soves-featured-tours__track {
        flex-direction: column;
        width: 100%;
        padding: 0 16px;
        gap: 16px;
    }

    .soves-featured-tour-card,
    .soves-featured-tour-card--wide,
    .soves-featured-tour-card--large {
        flex-basis: auto;
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .soves-featured-tours__heading {
        font-size: 24px;
    }
}
