/*
    Champions League Final 2027 — надстройка над /css/v2/tour.min.css.
    Подключается только для тура champions-league-final-madrid-2027 (Clf2027Helper::isTour).
    Палитра берётся из vars.less: @orange_button #cc6c2b, @blue_bg #2f3759.
*/

/* Viewport, not device-width: the page must reflow when the window shrinks. */
html:has(body.clf-2027-page),
html:has(.content.clf-2027),
body.clf-2027-page,
body.clf-2027-page .container {
    min-width: 0 !important;
}

.content.clf-2027 .wofdi-widget .itin__detail-text,
.content.clf-2027 .wofdi-widget .itin__detail-text.txt-mobile {
    font-family: OpenSansRegular, sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #404040;
}

/* ---------- Trust-полоса ---------- */

.clf-trust {
    background: #faf0e8;
    border-bottom: 1px solid #ecdfd4;
}

.clf-trust__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 38px;
    padding: 15px 20px;
}

.clf-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: OpenSansSemibold, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: #a85520;
}

.clf-trust__item::before {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1;
}

.clf-trust__item--rating::before {
    content: '\2B50';
}

.clf-trust__item--widget {
    flex: 0 0 250px;
    box-sizing: border-box;
    width: 250px;
    max-width: 100%;
    height: 24px;
    max-height: 24px;
    overflow: hidden;
    contain: size;
}

.clf-trust__item--widget::before {
    content: none;
    display: none;
}

.clf-trust__item--widget .trustpilot-widget,
.clf-trust__item--widget iframe {
    display: block;
    box-sizing: border-box;
    width: 250px !important;
    max-width: 250px !important;
    height: 24px !important;
    max-height: 24px !important;
    border: 0;
    transform-origin: left center;
}

.clf-trust__item--widget a {
    color: inherit;
    text-decoration: none;
}

.clf-trust__item--shield::before {
    content: '\1F6E1';
}

.clf-trust__item--fans::before {
    content: '\1F465';
}

/* ---------- Why Travel With Us ---------- */

.clf-why {
    background: #fff;
    padding: 46px 0 10px;
}

.clf-why__title {
    margin: 0 0 26px;
    font-family: OpenSansBold, sans-serif;
    font-size: 30px;
    line-height: 1.25;
    color: #2f3759;
}

.clf-why__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
}

.clf-why__item {
    border-left: 3px solid #cc6c2b;
    padding: 2px 0 2px 20px;
}

.clf-why__item-title {
    margin: 0 0 6px;
    font-family: OpenSansBold, sans-serif;
    font-size: 17px;
    line-height: 1.35;
    color: #1a1a1a;
}

.clf-why__item-text {
    margin: 0;
    font-family: OpenSansRegular, sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #404040;
}

/* ---------- Contact-полоса ---------- */

.clf-contact {
    background: #fff;
    padding: 12px 0 40px;
}

.clf-contact__inner {
    display: flex;
    justify-content: center;
}

.clf-contact__btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #fff;
    color: #2f3759;
    font-family: OpenSansSemibold, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    transition: 0.2s;
}

.clf-contact__btn:hover {
    border-color: #cc6c2b;
    color: #cc6c2b;
}

/* ---------- Карточки отелей: как в макете (фото 90×70 + название + пилюля) ---------- */

.content.clf-2027 .wofdi-widget .card.card--hotel {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: none;
    grid-template-columns: none;
}

.content.clf-2027 .wofdi-widget .card.card--hotel .card__img,
.content.clf-2027 .wofdi-widget .card.card--hotel .itin__photos,
.content.clf-2027 .wofdi-widget .card.card--hotel .itin__photos-desktop {
    width: 90px !important;
    height: 70px !important;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 !important;
}

.content.clf-2027 .wofdi-widget .card.card--hotel .card__body {
    min-width: 0;
    flex: 1;
}

.content.clf-2027 .wofdi-widget .card.card--hotel .card__title {
    font-family: OpenSansSemibold, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.content.clf-2027 .wofdi-widget .card.card--hotel .card__text {
    font-family: OpenSansRegular, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.content.clf-2027 .wofdi-widget .card.card--hotel .hotel-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fdf1ea;
    color: #cc6c2b;
    font-family: OpenSansRegular, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
    vertical-align: 1px;
    white-space: nowrap;
}

/* ---------- Конфигуратор: светлая панель как в макете ---------- */

.content.clf-2027 .tours-block .tours-right .itinerary-form {
    background: #fff;
    padding: 8px 0 20px;
    font-size: 13px;
    /* global form { min-width: 270px } шире колонки 260px — scale + overflow:hidden режет правый край */
    min-width: 0;
}

@media (min-width: 768px) {
    .content.clf-2027 .tours-block .container-floating {
        width: 260px !important;
        min-width: 260px;
        max-width: 260px;
        flex: 0 0 260px;
    }

    .content.clf-2027 .tours-block .tours-right {
        min-width: 0;
    }

    .content.clf-2027 .tours-block .tours-left {
        width: auto !important;
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 20px;
    }

    .content.clf-2027 .container-floating .tours-right.floating {
        overflow: visible;
    }
}

.content.clf-2027 .tours-right .itinerary-form .input-block,
.content.clf-2027 .tours-right .itinerary-form .nf-select-row,
.content.clf-2027 .tours-right .itinerary-form .nf-ticket-section,
.content.clf-2027 .tours-right .itinerary-form .nf-rate-block {
    margin-bottom: 14px;
}

.content.clf-2027 .tours-right .itinerary-form .input-block label .label-text,
.content.clf-2027 .tours-right .itinerary-form .nf-select-row .label-text,
.content.clf-2027 .tours-right .itinerary-form .nf-section-label,
.content.clf-2027 .tours-right .itinerary-form .nf-rate-label {
    font-family: OpenSansRegular, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #777;
    margin-bottom: 4px;
}

.content.clf-2027 .tours-right .itinerary-form .js-travellers-input,
.content.clf-2027 .tours-right .itinerary-form .nf-select-row select.input-text {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px 36px 10px 12px !important;
    height: auto;
    min-height: 40px;
}

.content.clf-2027 .tours-right .itinerary-form .nf-select-row--addons > .label-text {
    display: none;
}

.content.clf-2027 .tours-right .itinerary-form .nf-addon-checkbox-row {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

.content.clf-2027 .tours-right .itinerary-form .input-block label.nf-ticket-radio-row {
    padding: 4px 0;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.content.clf-2027 .tours-right .itinerary-form .input-block label.nf-ticket-radio-row:hover,
.content.clf-2027 .tours-right .itinerary-form .input-block label.nf-ticket-radio-row:focus-within {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.content.clf-2027 .tours-right .itinerary-form .nf-ticket-radio-label {
    font-size: 13px;
    color: #333;
}

.content.clf-2027 .tours-right .itinerary-form .input-block label.nf-ticket-radio-row:has(input:checked) .nf-ticket-radio-label {
    font-weight: 600;
}

.content.clf-2027 .tours-right .itinerary-form .nf-ticket-radio-price,
.content.clf-2027 .tours-right .itinerary-form .nf-ticket-currency,
.content.clf-2027 .tours-right .itinerary-form .js-nf-ticket-price-val {
    color: #1a1a1a;
    font-family: OpenSansRegular, sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.content.clf-2027 .tours-right .itinerary-form .nf-rate-price,
.content.clf-2027 .tours-right .itinerary-form .nf-rate-price .nf-rate-currency,
.content.clf-2027 .tours-right .itinerary-form .nf-rate-price .js-nf-rate-pp {
    color: #1a1a1a !important;
}

.content.clf-2027 .tours-right .itinerary-form .nf-rate-price {
    font-size: 24px;
    font-weight: 700;
}

.content.clf-2027 .tours-right .itinerary-form .nf-rate-price .nf-rate-currency {
    font-size: 16px;
}

.content.clf-2027 .tours-right .itinerary-form .double-form-desktop .book-comments {
    display: none;
}

.content.clf-2027 .tours-right .itinerary-form .double-form-desktop {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.content.clf-2027 .tours-right .itinerary-form .double-form-desktop .btn,
.content.clf-2027 .tours-right .itinerary-form .double-form-desktop .clf-form-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 100%;
    min-width: 0;
    height: 44px !important;
    max-height: 44px !important;
    margin: 0;
    padding: 0 12px;
    border-radius: 8px;
    font-family: OpenSansSemibold, sans-serif;
    font-size: 14px !important;
    line-height: 1.2;
    text-transform: none;
}

.content.clf-2027 .tours-right .itinerary-form .double-form-desktop .clf-form-call {
    flex: 1 1 100%;
}

/* ---------- Конфигуратор: Chat to an Expert + телефон ---------- */

.itinerary-form .clf-form-chat {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-family: OpenSansSemibold, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    transition: 0.2s;
}

.itinerary-form .clf-form-chat:hover {
    border-color: #cc6c2b;
    color: #cc6c2b;
}

.itinerary-form .clf-form-call {
    margin: 0;
    font-family: OpenSansRegular, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #6e6e6e;
    text-align: center;
}

.itinerary-form .clf-form-call a {
    color: #cc6c2b;
    font-family: OpenSansSemibold, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

html.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form,
body.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form {
    box-sizing: border-box;
    padding: 56px 20px 32px !important;
}

html.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form .double-form-desktop .btn,
html.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form .double-form-desktop .clf-form-chat,
html.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form .double-form-mobile .btn,
html.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form .clf-form-chat,
body.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form .double-form-desktop .btn,
body.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form .double-form-desktop .clf-form-chat,
body.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form .double-form-mobile .btn,
body.itinerary-mobile-form-open .content.clf-2027 .tours-right .itinerary-form .clf-form-chat {
    height: 55px !important;
    max-height: none !important;
    min-height: 55px;
    font-size: 16px !important;
}

/* ---------- Мобильная версия (по ширине окна, не по device-width) ---------- */

@media (max-width: 767px) {
    html:has(body.clf-2027-page),
    html:has(.content.clf-2027),
    body.clf-2027-page,
    body.clf-2027-page .container {
        min-width: 0 !important;
        max-width: 100%;
    }

    body.clf-2027-page,
    html:has(.content.clf-2027) {
        overflow-x: hidden;
    }

    .content.clf-2027 .wofdi-widget .itin__detail-text,
    .content.clf-2027 .wofdi-widget .itin__detail-text.txt-mobile {
        font-family: OpenSansRegular, sans-serif;
        font-size: 16px;
        line-height: 28px;
        color: #404040;
    }

    .content.clf-2027 .tours-block {
        display: block;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .content.clf-2027 .tours-block .tours-left {
        width: 100% !important;
        padding: 0 !important;
    }

    .content.clf-2027 .tours-block .container-floating {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
    }

    .content.clf-2027 .tours-block .tours-right,
    .content.clf-2027 .tours-block .tours-right.floating,
    .content.clf-2027 .tours-block .tours-right.fixed {
        display: block;
        position: static !important;
        width: 100%;
        min-width: 0;
        top: auto !important;
        overflow: visible;
    }

    .content.clf-2027 .tours-block .tours-right .itinerary-form {
        display: none;
        box-sizing: border-box;
        padding: 56px 20px 32px !important;
    }

    html.itinerary-mobile-form-open .content.clf-2027 .tours-block .tours-right .itinerary-form,
    body.itinerary-mobile-form-open .content.clf-2027 .tours-block .tours-right .itinerary-form {
        display: block !important;
        padding: 56px 20px 32px !important;
    }

    body.clf-2027-page .main-tour-popup,
    body.clf-2027-page .fancybox-content.main-tour-popup {
        box-sizing: border-box;
        padding: 24px 20px !important;
    }

    .clf-trust__inner {
        gap: 8px 18px;
        padding: 11px 14px;
    }

    .clf-trust__item {
        font-size: 12px;
    }

    .clf-trust__item--widget {
        flex: 0 0 auto;
        width: 250px;
        max-width: 100%;
        height: 24px;
        max-height: 24px;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }

    .clf-trust__item--widget .trustpilot-widget,
    .clf-trust__item--widget iframe {
        width: 250px !important;
        max-width: none !important;
        height: 24px !important;
        max-height: 24px !important;
        transform-origin: left center;
    }

    .clf-why {
        padding: 30px 0 6px;
    }

    .clf-why__title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .clf-why__list {
        gap: 18px;
    }

    .clf-why__item {
        padding-left: 14px;
    }

    .clf-why__item-title {
        font-size: 15px;
    }

    .clf-why__item-text {
        font-size: 14px;
        line-height: 24px;
    }

    .clf-contact {
        padding: 6px 0 28px;
    }

    .clf-contact__btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .content.clf-2027 .wofdi-widget .card.card--hotel {
        flex-direction: column;
        gap: 8px;
    }

    .content.clf-2027 .wofdi-widget .card.card--hotel .card__img,
    .content.clf-2027 .wofdi-widget .card.card--hotel .itin__photos,
    .content.clf-2027 .wofdi-widget .card.card--hotel .itin__photos-desktop {
        width: 100% !important;
        height: 110px !important;
    }

    .content.clf-2027 .tours-right .itinerary-form .double-form-desktop .btn,
    .content.clf-2027 .tours-right .itinerary-form .double-form-desktop .clf-form-chat {
        flex: none;
        height: 55px !important;
        max-height: none !important;
        min-height: 55px;
        font-size: 16px !important;
        line-height: 1.2;
    }

    /* Липкая панель: синяя, как меню; цена белая. */
    .content .itinerary-mobile.clf-mobile-bar {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 900;
        background: #2f3759;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }

    .content .itinerary-mobile.clf-mobile-bar .total-block {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 10px 16px 4px;
        color: #fff;
        text-align: left;
        font-family: OpenSansBold, sans-serif;
    }

    .content .itinerary-mobile.clf-mobile-bar .total-block .total-price {
        display: inline-block;
        margin: 0;
        font-size: 22px;
        line-height: 1.2;
        color: #fff;
        vertical-align: middle;
    }

    .content .itinerary-mobile.clf-mobile-bar .total-block .total-price .total-persons {
        font-size: 14px;
        color: #fff;
    }

    .content .itinerary-mobile.clf-mobile-bar .tour_currency-block span.tour-currency:after {
        border-right-color: #fff;
        border-bottom-color: #fff;
    }

    .content .itinerary-mobile.clf-mobile-bar .itinerary-mobile-button {
        padding: 0 16px 12px;
        text-align: left;
    }

    .content .itinerary-mobile.clf-mobile-bar .btn {
        display: inline-block;
        width: auto;
        min-width: 270px;
        max-width: none;
        margin: 0;
        padding: 0 28px;
        height: 46px;
        line-height: 46px;
        border-radius: 24px;
        background: #cc6c2b;
        font-family: OpenSansSemibold, sans-serif;
        font-size: 15px;
        text-align: center;
    }
}
