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

.soves-trending-widget {
    --soves-trending-primary: #d92d20;
    --soves-trending-blue: #0d63f3;
    --soves-trending-ink: #111827;
    --soves-trending-muted: #5f6674;
    --soves-trending-border: #dfe7f0;
    --soves-trending-soft: #f7f9fc;
    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(4, minmax(0, 1fr));
    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: 14px;
    background: #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-trending-primary);
    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-trending-primary) !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-trending-primary) !important;
    color: #ffffff !important;
    outline: 0;
}

.soves-trending-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 20px 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: 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);
}

.soves-trending-airline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--soves-trending-muted);
    font-size: 14px;
    line-height: 1.2;
}

.soves-trending-airline__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--soves-trending-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
}

.soves-trending-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 0 0 16px;
}

.soves-trending-route span,
.soves-trending-route button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    min-height: 31px;
    border: 1px solid var(--soves-trending-border);
    border-radius: 999px;
    color: #4b5565;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
}

.soves-trending-route > span {
    width: 100%;
    min-width: 0;
}

.soves-trending-route > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.soves-trending-route button {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
    width: 32px;
    padding: 0;
    font-size: 16px;
    cursor: default;
}

.soves-trending-route button:hover,
.soves-trending-route button:focus-visible {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
    transform: none;
    box-shadow: none;
    outline: 0;
}

.soves-trending-route button span,
.soves-trending-route button:hover span,
.soves-trending-route button:focus-visible span {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
    font-weight: 600;
    padding: 0;
    transform: none;
    transition: none;
}

.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(226, 74, 59, 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-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-owner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef2f6;
    color: #344054;
    text-decoration: none;
    overflow: hidden;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.soves-trending-owner:hover,
.soves-trending-owner:focus-visible {
    background: rgba(226, 74, 59, 0.1);
    color: var(--soves-trending-primary);
    box-shadow: 0 0 0 3px rgba(226, 74, 59, 0.14);
    transform: translateY(-1px);
    outline: 0;
}

.soves-trending-owner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.soves-trending-owner span {
    font-size: 12px;
    font-weight: 600;
}

.soves-trending-tour-facts {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, auto) 31px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    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 {
    padding-left: 14px;
    border-left: 1px solid var(--soves-trending-border);
}

.soves-trending-tour-facts .soves-trending-owner {
    justify-self: end;
}

.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-route {
        grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
        gap: 6px;
    }

    .soves-trending-route span,
    .soves-trending-route button {
        font-size: 12px;
        min-height: 30px;
        padding: 6px 9px;
    }

    .soves-trending-route button {
        width: 30px;
    }

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

@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: 1fr 31px;
    }

    .soves-trending-tour-facts > span + span {
        border-left: 0;
        padding-left: 0;
    }
}
