.tour-package-preview {
    --package-accent: var(--red-color, #0b9f6d);
    --package-accent-rgb: var(--red-color-rgb, 11, 159, 109);
    --package-ink: #17212b;
    --package-muted: #667279;
    box-sizing: border-box;
    width: min(1264px, calc(100% - 40px));
    min-height: 412px;
    margin: 32px auto 40px;
    padding: 20px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 24px;
    background: #fff;
    color: var(--package-ink);
    font-family: inherit;
}

.functionBox .search .search__union .search__block .search__items .search__item.tour-package-result,
.functionBox .search .search__union .search__block .search__items .search__item.kompas-tour-item {
    min-height: 0;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    background: transparent;
}

.tour-package-result .tour-package-preview,
.kompas-tour-item .tour-package-preview {
    width: 100%;
    margin: 0;
}

.tour-package-preview *,
.tour-package-preview *::before,
.tour-package-preview *::after {
    box-sizing: border-box;
}

.tour-package-preview__icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.tour-package-preview__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.tour-package-preview__title {
    margin: 0;
    color: var(--package-ink);
    font-size: clamp(21px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1.15;
}

.tour-package-preview__title a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

.tour-package-preview__title a:hover,
.tour-package-preview__title a:focus-visible {
    color: var(--package-accent);
}

.tour-package-preview__flight,
.tour-package-preview__indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(var(--package-accent-rgb), 0.14);
    background: rgba(var(--package-accent-rgb), 0.07);
    color: #5d696d;
    font-weight: 700;
    white-space: nowrap;
}

.tour-package-preview__flight {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 9px;
    color: var(--package-accent);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
    text-decoration: none;
}

.tour-package-preview__flight:hover {
    border-color: rgba(var(--package-accent-rgb), 0.32);
    background: rgba(var(--package-accent-rgb), 0.11);
    box-shadow: 0 5px 14px rgba(var(--package-accent-rgb), 0.1);
}

.tour-package-preview__flight:focus-visible {
    outline: 3px solid rgba(var(--package-accent-rgb), 0.22);
    outline-offset: 2px;
}

.tour-package-preview__flight-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 3px;
    padding-left: 9px;
    border-left: 1px solid rgba(var(--package-accent-rgb), 0.22);
    font-size: 11px;
    font-weight: 750;
}

.tour-package-preview__flight .tour-package-preview__flight-edit svg {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
}

.tour-package-preview__flight svg,
.tour-package-preview__indicator svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-package-preview__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.55fr);
    align-items: start;
    gap: 14px;
}

@media (min-width: 761px) {
    .tour-package-preview--without-hotels .tour-package-preview__layout {
        min-height: 360px;
        align-items: stretch;
    }

    .tour-package-preview--without-hotels .tour-package-preview__media {
        min-height: 360px;
    }

    .tour-package-preview--without-hotels .tour-package-preview__placement {
        display: flex;
        flex-direction: column;
    }

    .tour-package-preview--without-hotels .tour-package-preview__footer {
        margin-top: auto;
        padding-top: 18px;
    }
}

.tour-package-preview__media {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 18px;
    background: #dce4e2;
    height: 100%;
}

.tour-package-preview__image {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% center;
    opacity: 0;
    pointer-events: none;
    filter: brightness(0.94) saturate(0.94);
    transform: scale(1.035);
    transition:
        opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 520ms ease,
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 560ms;
    visibility: hidden;
    will-change: opacity, transform;
}

.tour-package-preview__image.is-active {
    z-index: 1;
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: translate3d(0, 0, 0) scale(1);
    visibility: visible;
    transition-delay: 0s;
}

.tour-package-preview__image.is-preparing {
    z-index: 2;
    opacity: 0;
    visibility: visible;
    transition: none;
}

.tour-package-preview__media.is-sliding-next .tour-package-preview__image.is-preparing {
    transform: translate3d(7%, 0, 0) scale(1.035);
}

.tour-package-preview__media.is-sliding-previous .tour-package-preview__image.is-preparing {
    transform: translate3d(-7%, 0, 0) scale(1.035);
}

.tour-package-preview__image.is-leaving {
    z-index: 1;
    opacity: 0;
    filter: brightness(0.9) saturate(0.9);
    visibility: visible;
}

.tour-package-preview__media.is-sliding-next .tour-package-preview__image.is-leaving {
    transform: translate3d(-5%, 0, 0) scale(1.02);
}

.tour-package-preview__media.is-sliding-previous .tour-package-preview__image.is-leaving {
    transform: translate3d(5%, 0, 0) scale(1.02);
}

.tour-package-preview__media::after {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 38%;
    background: linear-gradient(to top, rgba(9, 20, 22, 0.76), rgba(9, 20, 22, 0));
    content: "";
    pointer-events: none;
}

.tour-package-preview__media::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 3px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(9, 20, 22, 0.22);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 160ms ease, transform 160ms ease;
}

.tour-package-preview__media.is-loading-slide::before {
    animation: tour-package-preview-spin 720ms linear infinite;
    opacity: 1;
    transform: scale(1);
}

.tour-package-preview__media.is-loading-slide .tour-package-preview__slider-controls button {
    cursor: progress;
}

@keyframes tour-package-preview-spin {
    to {
        transform: rotate(360deg) scale(1);
    }
}

.tour-package-preview__slider-controls {
    position: absolute;
    top: 50%;
    right: 13px;
    left: 13px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.tour-package-preview__slider-controls button,
.tour-package-preview__fullscreen {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(23, 33, 43, 0.1);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(9, 20, 22, 0.22);
    color: var(--package-ink);
    cursor: pointer;
    pointer-events: auto;
    transition:
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.tour-package-preview__slider-controls button:hover,
.tour-package-preview__fullscreen:hover {
    color: var(--package-accent);
    box-shadow: 0 8px 22px rgba(9, 20, 22, 0.28);
    transform: scale(1.06);
}

.tour-package-preview__slider-controls button:active {
    color: var(--package-accent);
    transform: scale(0.94);
}

.tour-package-preview__slider-controls button:focus-visible,
.tour-package-preview__fullscreen:focus-visible {
    outline: 3px solid rgba(var(--package-accent-rgb), 0.3);
    outline-offset: 2px;
}

.tour-package-preview__slider-controls svg,
.tour-package-preview__fullscreen svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.tour-package-preview__media:fullscreen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    background: #08100f;
}

.tour-package-preview__media:fullscreen .tour-package-preview__image {
    object-fit: contain;
}

.tour-package-preview__slider-next svg {
    transform: rotate(180deg);
}

.tour-package-preview__fullscreen {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(23, 33, 43, 0.14);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(9, 20, 22, 0.24);
    color: #11191d;
}

.tour-package-preview__fullscreen svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

.tour-package-preview__nights {
    position: absolute;
    top: 16px;
    right: auto;
    bottom: auto;
    left: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(9, 20, 22, 0.68);
    box-shadow: 0 6px 18px rgba(9, 20, 22, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.tour-package-preview__nights svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-package-preview__image-caption {
    position: absolute;
    top: 16px;
    right: auto;
    bottom: auto;
    left: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(9, 20, 22, 0.68);
    box-shadow: 0 6px 18px rgba(9, 20, 22, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
}

.tour-package-preview__image-caption > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tour-package-preview__image-caption > span svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-package-preview__placement {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgb(227 228 229);
    border-radius: 17px;
    background: rgb(255 255 255 / 3%);
    box-shadow: 0 14px 32px rgba(18, 48, 40, 0.06);
}

.tour-package-preview__placement-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(23, 33, 43, 0.12);
}

.tour-package-preview__placement-main {
    min-width: 0;
}

.tour-package-preview__overline {
    margin: 0 0 4px;
    color: var(--package-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.tour-package-preview__placement-main h3 {
    margin: 0;
    color: var(--package-accent);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.tour-package-preview__indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tour-package-preview__indicator {
    min-height: 27px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
}

.tour-package-preview__indicator svg {
    color: var(--package-accent);
}

.tour-package-preview__booking {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: end;
    gap: 14px;
}

.tour-package-preview__booking .basket-booking-form {
    margin: 0 !important;
}

.tour-package-preview__guests {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 6px;
    color: var(--package-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.tour-package-preview__guests svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: var(--package-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.tour-package-preview__price {
    color: #b4372d;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.tour-package-preview__price-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 6px;
}

.tour-package-preview__agent-info {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: var(--package-accent);
    cursor: help;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.tour-package-preview__agent-info::before,
.tour-package-preview__agent-info::after {
    position: absolute;
    left: 50%;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 140ms ease,
        transform 140ms ease,
        visibility 140ms ease;
    visibility: hidden;
}

.tour-package-preview__agent-info::before {
    bottom: calc(100% - 6px);
    border: 6px solid transparent;
    border-top-color: #17212b;
    content: "";
    transform: translate(-50%, 4px);
}

.tour-package-preview__agent-info::after {
    bottom: calc(100% + 6px);
    width: max-content;
    max-width: min(300px, calc(100vw - 32px));
    padding: 9px 11px;
    border-radius: 9px;
    background: #17212b;
    box-shadow: 0 8px 24px rgba(9, 20, 22, 0.2);
    color: #fff;
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transform: translate(-50%, 5px);
    white-space: nowrap;
}

.tour-package-preview__price-wrap:hover .tour-package-preview__agent-info::before,
.tour-package-preview__price-wrap:hover .tour-package-preview__agent-info::after,
.tour-package-preview__agent-info:focus-visible::before,
.tour-package-preview__agent-info:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.tour-package-preview__agent-info:focus-visible {
    outline: 2px solid var(--package-accent);
    outline-offset: 2px;
}

.tour-package-preview__book,
.tour-package-preview__booking .search__button {
    display: inline-flex;
    min-width: 158px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid var(--brand-accent, #cf454c) !important;
    border-radius: 12px;
    background: var(--brand-accent, #cf454c) !important;
    color: #fff;
    cursor: pointer;
    filter: brightness(1);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    transition: filter 240ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tour-package-preview__book > svg,
.tour-package-preview__booking .search__button .buy-button__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.tour-package-preview__book:hover,
.tour-package-preview__booking .search__button:hover {
    background: var(--brand-accent, #cf454c) !important;
    color: #fff !important;
    border-color: var(--brand-accent, #cf454c) !important;
    filter: brightness(1.08);
}

.tour-package-preview__book:active,
.tour-package-preview__booking .search__button:active {
    filter: brightness(0.84);
}

.tour-package-preview__book:disabled {
    cursor: not-allowed;
    filter: grayscale(0.35);
    opacity: 0.62;
}

.tour-package-preview__book:focus-visible,
.tour-package-preview__booking .search__button:focus-visible,
.tour-package-preview__edit:focus-visible {
    outline: 3px solid rgba(var(--package-accent-rgb), 0.24);
    outline-offset: 2px;
}

.tour-package-preview__hotels {
    display: block;
    width: auto;
    margin-top: 14px;
    padding: 12px;
    padding-top: 5px;
    border: 1px solid #dce4e1;
    border-radius: 13px;
    background: #fff;
}

.tour-package-preview__hotels-empty {
    padding: 12px 10px;
    color: var(--package-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.tour-package-preview__hotel {
    position: relative;
    display: grid;
    grid-template-columns: 134px minmax(0, 1fr);
    align-items: flex-start;
    gap: 13px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f5f7f7;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.tour-package-preview__hotel:hover {
    border-color: rgba(var(--package-accent-rgb), 0.16);
    background: #f8fbfa;
}

.tour-package-preview__hotel-photos {
    display: flex;
    gap: 6px;
}

.tour-package-preview__hotel-photo {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    border-radius: 7px;
    background: transparent;
}

.tour-package-preview__hotel-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.tour-package-preview__hotel-photo::after {
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 24, 23, 0.78), transparent);
    content: "";
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.tour-package-preview__hotel-photo small {
    position: absolute;
    right: 4px;
    bottom: 3px;
    left: 4px;
    z-index: 1;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.tour-package-preview__hotel-photo-preview {
    display: none;
}

.tour-package-preview__hotel-info {
    min-width: 0;
}

.tour-package-preview__hotel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 40px;
}

.tour-package-preview__location {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: var(--package-muted);
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-package-preview__location svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    fill: none;
    stroke: var(--package-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-package-preview__rating {
    flex: 0 0 auto;
    color: var(--package-accent);
    font-size: 13px;
    font-weight: 850;
}

.tour-package-preview__hotel-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px;
    padding-right: 40px;
}

.tour-package-preview__hotel-info h4 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--package-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-package-preview__hotel-info h4 a {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(var(--package-accent-rgb), 0.28);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-overflow: ellipsis;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.tour-package-preview__hotel-info h4 a:hover,
.tour-package-preview__hotel-info h4 a:focus-visible {
    color: var(--package-accent);
    text-decoration-color: currentColor;
}

.tour-package-preview__hotel-info h4 a:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(var(--package-accent-rgb), 0.22);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
    .tour-package-preview__hotel-photo {
        overflow: visible;
        cursor: zoom-in;
        outline: none;
    }

    .tour-package-preview__hotel-photo:focus-visible {
        box-shadow: 0 0 0 3px rgba(var(--package-accent-rgb), 0.24);
    }

    .tour-package-preview__hotel-photo-preview {
        position: absolute;
        bottom: calc(100% + 10px);
        left: 0;
        z-index: 20;
        display: block;
        width: 250px;
        height: 180px;
        padding: 4px;
        border: 1px solid rgba(23, 33, 43, 0.12);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 16px 38px rgba(9, 20, 22, 0.28);
        opacity: 0;
        pointer-events: none;
        transform: translateY(7px) scale(0.97);
        transform-origin: left bottom;
        transition:
            opacity 160ms ease,
            transform 160ms ease,
            visibility 160ms ease;
        visibility: hidden;
    }

    .tour-package-preview__hotel-photo:last-child .tour-package-preview__hotel-photo-preview {
        right: 0;
        left: auto;
        transform-origin: right bottom;
    }

    .tour-package-preview__hotel-photo-preview img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 9px;
        object-fit: cover;
    }

    .tour-package-preview__hotel-photo:hover .tour-package-preview__hotel-photo-preview,
    .tour-package-preview__hotel-photo:focus-visible .tour-package-preview__hotel-photo-preview {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
    }
}

.tour-package-preview__hotel-parameters {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(128px, 0.9fr);
    gap: 8px;
}

.tour-package-preview__hotel-parameters > span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.tour-package-preview__hotel-parameters > span > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: var(--package-accent);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-package-preview__hotel-parameters > span > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.tour-package-preview__hotel-parameters small {
    color: #7a8589;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.tour-package-preview__hotel-parameters strong {
    overflow: hidden;
    color: #3e494e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-package-preview__edit {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(var(--package-accent-rgb), 0.18);
    border-radius: 8px;
    background: #fff;
    color: var(--package-accent);
    font-family: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.tour-package-preview__edit:hover {
    border-color: rgba(var(--package-accent-rgb), 0.32);
    background: rgba(var(--package-accent-rgb), 0.06);
    color: var(--package-accent);
}

.tour-package-preview__edit svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-package-preview__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 13px;
}

.tour-package-preview__availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #586469;
    font-size: 12px;
}

.tour-package-preview__availability > svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-package-preview__availability strong {
    color: #b4372d;
}

.tour-package-preview__guide-card {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #586469;
    font-size: 12px;
}

.tour-package-preview__guide-card > svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.tour-package-preview__guide-card > span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
}

.tour-package-preview__guide-card strong {
    color: #263137;
    font-size: 12px;
    font-weight: 800;
}

/* Имя гида ведёт на его страницу — подчёркиваем так же, как названия отелей */
.tour-package-preview__guide-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(var(--package-accent-rgb), 0.28);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.tour-package-preview__guide-link:hover,
.tour-package-preview__guide-link:focus-visible {
    color: var(--package-accent);
    text-decoration-color: currentColor;
}

.tour-package-preview__guide-link:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(var(--package-accent-rgb), 0.22);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .tour-package-preview {
        width: min(1264px, calc(100% - 28px));
    }

    .tour-package-result .tour-package-preview,
    .kompas-tour-item .tour-package-preview {
        width: 100%;
    }

    .tour-package-preview__layout {
        grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr);
        gap: 18px;
    }

    .tour-package-preview__placement-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .tour-package-preview__booking {
        grid-template-columns: max-content max-content;
        justify-content: space-between;
    }

}

@media (max-width: 760px) {
    .tour-package-preview {
        width: calc(100% - 20px);
        margin: 22px auto 30px;
        padding: 16px;
        border-radius: 18px;
    }

    .tour-package-result .tour-package-preview,
    .kompas-tour-item .tour-package-preview {
        width: 100%;
        margin: 0;
    }

    .tour-package-preview__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .tour-package-preview__title {
        font-size: 22px;
    }

    .tour-package-preview__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .tour-package-preview__media {
        max-height: 440px;
    }

    .tour-package-preview--without-hotels .tour-package-preview__layout {
        min-height: 0;
    }

    .tour-package-preview--without-hotels .tour-package-preview__media {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .tour-package-preview--without-hotels .tour-package-preview__placement {
        display: block;
    }

    .tour-package-preview--without-hotels .tour-package-preview__footer {
        margin-top: 13px;
        padding-top: 0;
    }

    .tour-package-preview__placement {
        padding: 14px;
    }
}

@media (max-width: 580px) {
    .tour-package-preview--without-hotels .tour-package-preview__media {
        aspect-ratio: 4 / 3;
    }

    .tour-package-preview__slider-controls {
        right: 9px;
        left: 9px;
    }

    .tour-package-preview__slider-controls button,
    .tour-package-preview__fullscreen {
        width: 34px;
        height: 34px;
    }

    .tour-package-preview__fullscreen {
        right: 9px;
        bottom: 9px;
        width: 28px;
        height: 28px;
    }

    .tour-package-preview__fullscreen svg {
        width: 15px;
        height: 15px;
    }

    .tour-package-preview__nights {
        top: 12px;
        right: auto;
        bottom: auto;
        left: 12px;
    }

    .tour-package-preview__image-caption {
        top: 12px;
        right: auto;
        bottom: auto;
        left: 12px;
        padding: 7px 9px;
    }

    .tour-package-preview__image-caption > span {
        font-size: 11px;
    }

    .tour-package-preview__placement-header {
        gap: 14px;
    }

    /* Цена и «N взрослых» — в одну строку (цена слева, гости справа),
       кнопка во всю ширину под ними: столбик из трёх строк оставлял
       слева от цены пустое поле и тянул карточку вниз. */
    .tour-package-preview__booking {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) max-content;
        justify-content: stretch;
    }

    .tour-package-preview__price-wrap {
        justify-self: start;
    }

    .tour-package-preview__booking .basket-booking-form {
        grid-column: 1 / -1;
    }

    .tour-package-preview__book,
    .tour-package-preview__booking .basket-booking-form,
    .tour-package-preview__booking .search__button {
        width: 100%;
    }

    .tour-package-preview__guests {
        grid-row: 1;
        grid-column: 2;
        justify-self: end;
        white-space: normal;
    }

    .tour-package-preview__hotels {
        padding: 9px;
    }

    .tour-package-preview__hotel {
        grid-template-columns: minmax(0, 1fr);
    }

    .tour-package-preview__hotel-photos {
        grid-column: 1;
    }

    .tour-package-preview__hotel-info {
        grid-column: 1;
    }

    .tour-package-preview__hotel-parameters {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .tour-package-preview__media.is-loading-slide::before {
        animation: none;
    }
}
