.soves-trending-widget,
.soves-trending-widget * {
    box-sizing: border-box;
}

.soves-trending-widget {
    --soves-trending-primary: var(--soves-brand-primary);
    --soves-trending-blue: var(--soves-brand-accent);
    --soves-trending-ink: #111827;
    --soves-trending-muted: #5f6674;
    --soves-trending-border: #dfe7f0;
    --soves-trending-soft: #f7f9fc;
    --soves-trending-columns: 4;
    --soves-trending-gap: 24px;
    --soves-trending-card-radius: 14px;
    --soves-trending-card-bg: #ffffff;
    --soves-trending-title-size: 20px;
    --soves-trending-desc-size: 13px;
    --soves-trending-card-min-height: 260px;
    --soves-trending-body-padding-top: 18px;
    --soves-trending-body-padding-right: 20px;
    --soves-trending-body-padding-bottom: 20px;
    --soves-trending-body-padding-left: 20px;
    width: 100%;
}

.soves-trending-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0 0 24px;
}

.soves-trending-tab {
    min-width: 78px;
    min-height: 40px;
    border: 1px solid var(--soves-trending-border);
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    padding: 9px 16px;
    box-shadow: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.soves-trending-tab:hover,
.soves-trending-tab:focus-visible,
.soves-trending-tab.is-active {
    border-color: var(--soves-trending-primary);
    background: var(--soves-trending-primary);
    color: #ffffff;
    outline: 0;
}

.soves-trending-panel[hidden] {
    display: none !important;
}

.soves-trending-grid {
    display: grid;
    grid-template-columns: repeat(var(--soves-trending-columns, 4), minmax(0, 1fr));
    gap: var(--soves-trending-gap, 24px);
    align-items: stretch;
}

.soves-trending-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--soves-trending-border);
    border-radius: var(--soves-trending-card-radius, 14px);
    background: var(--soves-trending-card-bg, #ffffff);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.soves-trending-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1.36 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4ff, #fff1ed);
    color: var(--soves-trending-ink);
}

.soves-trending-card__media > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

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

.soves-trending-card__media > a:hover img,
.soves-trending-card__media > a:focus-visible img {
    transform: scale(1.05);
}

.soves-trending-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soves-trending-muted);
    font-weight: 600;
}

.soves-trending-card__top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.soves-trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 25px;
    border-radius: 999px;
    background: var(--soves-trending-blue);
    color: #ffffff;
    padding: 5px 9px;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

.soves-trending-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--soves-dashboard-red);
    padding: 5px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}

.soves-trending-widget button.soves-trending-favorite,
.soves-trending-widget button.soves-trending-favorite[type="button"] {
    width: 25px !important;
    min-width: 25px !important;
    height: 25px !important;
    min-height: 25px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--soves-dashboard-red) !important;
    padding: 5px !important;
    box-shadow: none !important;
}

.soves-trending-favorite .soves-ms-icon {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}

.soves-trending-favorite:hover,
.soves-trending-favorite:focus-visible,
.soves-trending-favorite.is-favorite,
.soves-trending-widget button.soves-trending-favorite:hover,
.soves-trending-widget button.soves-trending-favorite:focus-visible,
.soves-trending-widget button.soves-trending-favorite.is-favorite {
    background: var(--soves-dashboard-red) !important;
    color: #ffffff !important;
    outline: 0;
}

.soves-trending-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    /* Keeps every tab's cards the same overall height even though hotel/tour
       cards naturally carry more body content than a destination card —
       switching tabs shouldn't make the whole widget jump in size. */
    min-height: var(--soves-trending-card-min-height, 260px);
    padding: var(--soves-trending-body-padding-top, 18px) var(--soves-trending-body-padding-right, 20px) var(--soves-trending-body-padding-bottom, 20px) var(--soves-trending-body-padding-left, 20px);
}

.soves-trending-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    margin: 0 0 8px;
}

.soves-trending-card__meta-row > * {
    min-width: 0;
}

.soves-trending-card h3 {
    margin: 0 0 8px;
    font-size: var(--soves-trending-title-size, 20px);
    line-height: 1.18;
    font-weight: 600;
}

.soves-trending-card h3 a {
    color: var(--soves-trending-ink);
    text-decoration: none;
    transition: color .18s ease;
}

.soves-trending-card h3 a:hover,
.soves-trending-card h3 a:focus-visible {
    color: var(--soves-trending-primary);
}

/* Flight tab: a plain destination pick (image + city), not a fake flight/route
   card — Paximum only prices a route once a real search runs, so there's no
   honest "route/airline/price" to show ahead of time here. */
.soves-trending-destination-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--soves-trending-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.soves-trending-destination-tag .soves-ms-icon {
    font-size: 15px;
}

.soves-trending-destination-teaser {
    margin: 0 0 12px;
    color: var(--soves-trending-muted);
    font-size: 14px;
    line-height: 1.4;
}

.soves-trending-destination-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--soves-trending-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.soves-trending-destination-cta .soves-ms-icon {
    font-size: 17px;
}

.soves-trending-destination-cta:hover,
.soves-trending-destination-cta:focus-visible {
    filter: brightness(0.94);
}

.soves-trending-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--soves-trending-muted);
    font-size: 14px;
    line-height: 1.1;
}

.soves-trending-rating .soves-ms-icon {
    color: #f5b400;
    font-size: 15px;
}

.soves-trending-rating strong {
    border-radius: 4px;
    background: #ffd91d;
    color: #111827;
    padding: 3px 5px;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
}

.soves-trending-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #344054;
    font-size: 14px;
    line-height: 1.2;
}

.soves-trending-type .soves-ms-icon {
    color: var(--soves-trending-primary);
}

.soves-trending-location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.soves-trending-location-row > * {
    min-width: 0;
}

.soves-trending-location {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--soves-trending-muted);
    font-size: 15px;
    line-height: 1.25;
    text-decoration: none;
    transition: color .18s ease;
}

.soves-trending-location span {
    position: relative;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.soves-trending-location span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.soves-trending-location:hover,
.soves-trending-location:focus-visible {
    color: var(--soves-trending-primary);
}

.soves-trending-location:hover span::after,
.soves-trending-location:focus-visible span::after {
    transform: scaleX(1);
}

.soves-trending-location .soves-ms-icon,
.soves-trending-location-side .soves-ms-icon {
    flex: 0 0 auto;
}

.soves-trending-location-side {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    color: #4b5565;
    font-size: 13px;
    font-weight: 600;
}

.soves-trending-facilities {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    border-top: 1px solid var(--soves-trending-border);
    padding-top: 12px;
    color: var(--soves-trending-primary);
    font-size: 12px;
    line-height: 1.35;
}

.soves-trending-facilities > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 999px;
    background: rgba(10, 48, 105, 0.08);
    color: var(--soves-trending-primary);
    padding: 0;
}

.soves-trending-facilities > span > span:not(.soves-ms-icon) {
    display: none;
}

.soves-trending-facilities .soves-ms-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: inherit;
    font-size: 18px;
    line-height: 1;
}

.soves-trending-facilities strong {
    color: var(--soves-trending-ink);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}


.soves-trending-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--soves-trending-border);
}

.soves-trending-facilities + .soves-trending-card__footer {
    border-top: 0;
}

.soves-trending-card__footer--single {
    justify-content: flex-start;
    border-top: 0;
    padding-top: 8px;
}

.soves-trending-tour-description {
    display: block;
    margin: 0 0 2px;
    overflow: visible;
    overflow-wrap: anywhere;
    color: var(--soves-trending-muted);
    font-size: var(--soves-trending-desc-size, 13px);
    line-height: 1.45;
}

.soves-trending-tour-more {
    display: inline-block;
    margin: 0 0 4px;
    color: var(--soves-trending-primary);
    font-size: var(--soves-trending-desc-size, 13px);
    font-weight: 600;
    text-decoration: none;
}

.soves-trending-tour-more::after {
    content: " \2192";
}

.soves-trending-tour-more:hover,
.soves-trending-tour-more:focus-visible {
    text-decoration: underline;
    outline: 0;
}

.soves-trending-card__price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.soves-trending-card__price em,
.soves-trending-card__price small {
    color: var(--soves-trending-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}

.soves-trending-card__price strong {
    color: var(--soves-trending-primary);
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
}

.soves-trending-card__price del {
    color: #98a2b3;
    font-size: 18px;
    font-weight: 600;
}

.soves-trending-tour-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    margin-top: 14px;
    padding-top: 15px;
    border-top: 1px solid var(--soves-trending-border);
    color: #111827;
    font-size: 13px;
}

.soves-trending-tour-facts > * {
    min-width: 0;
}

.soves-trending-tour-facts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.soves-trending-tour-facts > span + span {
    white-space: nowrap;
    padding-left: 14px;
    border-left: 1px solid var(--soves-trending-border);
}

.soves-trending-tour-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 15px;
    border-top: 1px solid var(--soves-trending-border);
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.soves-trending-tour-facts--after-dates {
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
}

.soves-trending-tour-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin-top: 14px;
    border-radius: 8px;
    background: var(--soves-trending-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.soves-trending-tour-cta:hover,
.soves-trending-tour-cta:focus-visible {
    background: var(--soves-trending-blue);
    color: #ffffff;
    transform: translateY(-1px);
    outline: 0;
}

.soves-trending-empty {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px dashed var(--soves-trending-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--soves-trending-muted);
    padding: 24px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .soves-trending-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .soves-trending-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .soves-trending-tabs {
        justify-content: center;
    }

    .soves-trending-grid {
        display: flex;
        grid-template-columns: none;
        gap: 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        padding: 0 16px 12px;
        margin: 0 -16px;
        -webkit-overflow-scrolling: touch;
    }

    .soves-trending-grid > * {
        flex: 0 0 min(420px, 82vw);
        scroll-snap-align: center;
    }
}

@media (max-width: 560px) {
    .soves-trending-tabs {
        justify-content: center;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .soves-trending-tab {
        flex: 0 0 auto;
    }

    .soves-trending-grid {
        gap: 14px;
    }

    .soves-trending-grid > * {
        flex-basis: min(330px, 86vw);
    }

    .soves-trending-card__body {
        padding: 16px 18px 18px;
    }

    .soves-trending-card h3 {
        font-size: 18px;
    }

    .soves-trending-card__meta-row,
    .soves-trending-card__footer,
    .soves-trending-location-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .soves-trending-tour-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }
}

@media (max-width: 390px) {
    .soves-trending-grid > * {
        flex-basis: min(300px, 88vw);
    }

    .soves-trending-card__body {
        padding: 15px 15px 17px;
    }

    .soves-trending-tour-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .soves-trending-tour-facts > span + span {
        padding-left: 10px;
    }
}

/* Sold-out state: manual "Sold out" flag or every upcoming departure full. */
.soves-sold-out-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 999px;
    background: #b42318;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.soves-sold-out-badge--inline {
    position: static;
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 8px;
}

.soves-hotel-card.is-sold-out .soves-hotel-card__image,
.soves-trending-card.is-sold-out .soves-trending-card__media img {
    filter: grayscale(.85);
    opacity: .7;
}

.soves-trending-tour-cta.is-disabled,
.soves-trending-tour-cta.is-disabled:hover,
.soves-trending-tour-cta.is-disabled:focus-visible {
    background: #d0d5dd;
    color: #667085;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/* Sold out: a big red SOLD OUT stamp across the photo (cards, widgets and the detail page gallery). */
.soves-hotel-card.is-sold-out .soves-hotel-card__media::after,
.soves-trending-card.is-sold-out .soves-trending-card__media::after,
.soves-is-sold-out .soves-detail-gallery__main::after {
    content: "SOLD OUT";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%) rotate(-12deg);
    padding: .08em .4em;
    border: .09em solid #d31f2a;
    border-radius: .18em;
    background: rgba(255, 255, 255, .82);
    color: #d31f2a;
    font-size: clamp(1.7rem, 7vw, 2.9rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    pointer-events: none;
}

.soves-is-sold-out .soves-detail-gallery__main::after {
    font-size: clamp(2.4rem, 9vw, 5rem);
}

.soves-is-sold-out .soves-detail-gallery__main [data-gallery-main] {
    filter: grayscale(.85);
}
