/*search form*/
#criuses_search {
    margin-bottom: 3em;
    border-radius: 2.5em;
    padding: 2em;
    background: #F8F8FB;
}

#criuses_search .search_input {
    width: 100%;
    padding: 0.5em 1em;
    border-radius: 2.5em;
    background: white;
    border: 1px solid #CFD3E7;
}

#criuses_search .search_inputs-block {
    gap: 0.5em;
}

#criuses_search .form-label {
    margin-bottom: 0;
    padding: 0;
    color: #ADB7C0;
    font-size: 0.75em;
    left: 120%;
}

#criuses_search .form-select, #criuses_search .form-control {
    border: none;
    font-size: 0.8em;
    line-height: 120%;
}

#criuses_search .form-select {
    padding: 0 1.5em 0 0;
    background-position: right 0 center;
}

#criuses_search .form-select:focus {
    box-shadow: none;
}

#criuses_search .form-control {
    padding: 0;
}

#criuses_search .search_sorting-block {
    margin-top: 1.5em;
    gap: 0.5em;
}

#criuses_search .search_sorting-button {
    position: relative;
    padding-bottom: 0.25em;
    cursor: pointer;
    width: max-content;
}

#criuses_search .search_sorting-button input {
    cursor: pointer;
    position: absolute;
    z-index: 5;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
}

#criuses_search .search_sorting-button label {
    color: #6A676D;
}

#criuses_search .search_sorting-button.active label {
    color: #000;
    position: relative;
}

#criuses_search .search_sorting-button.active:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    border-bottom: 2px dashed #D5D5D5;
}

/*rooms*/
.news-detail .cabins {
    border-radius: 2.5em;
    padding: 2em;
    background: #F8F8FB;
}

.news-detail .cabins .cabins_row {
    border-radius: 2.5em;
    padding: 1em;
    background: #FFFFFF;
}

.news-detail .cabins_item {
    position: relative;
    border-radius: 2.2em;
    padding: 0.25em;
    border: 1px solid #CFD3E7;
}

@media (any-hover: hover) {
    .news-detail .cabins_item:hover .cabins_item-text {
        opacity: 1;
        visibility: visible;
        height: auto;
    }
}

.news-detail .cabins_item .cabin_image {
    display: block;
    border-radius: 2em;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1;
}

.news-detail .cabins_item .cabin_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease 0s;
}

@media (any-hover: hover) {
    .news-detail .cabins_item .cabin_image:hover img {
        transform: scale(1.1);
    }
}

.news-detail .cabins_item-labels {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0.75em;
    margin-bottom: 1em;
}

.news-detail .cabins_item-label {

}

.news-detail .cabins_item .buttonsale {
    padding: 10px !important;
    width: 100%;
    margin-bottom: 1em;
    position: relative;
    z-index: 5;
}

.news-detail .cabins_item-text {
    font-size: 0.6125rem;
    position: absolute;
    z-index: 4;
    width: calc(100% + 2px);
    height: 0;
    top: calc(100% - 4em);
    left: -1px;
    border-radius: 0 0 2em 2em;
    padding: 3em 0.5em 1em 0.5em;
    border: 1px solid #CFD3E7;
    border-top: none;
    color: #687094;
    background: #FFFFFF;
    transition: all 0.3s ease 0s;
    opacity: 0;
    visibility: hidden;
}

/*detail route*/
.detail_top_sale-block {
    color: #fff;
    background: #EB5D36;
    padding: 0.625em 1.875em;
    font-size: 1em;
    line-height: 120%;
    width: max-content;
    border-radius: 3.125em;
    margin-bottom: 1em;
}

.detail_top_route-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 1rem;
}

.detail_top_buttons {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    /*flex-direction: column;*/
    gap: 1rem;
}

.detail_top_route-block .detail_top_price {
    margin-top: 0;
    margin-right: 0;
}

.detail_top_route-block .skit-button {
    margin: 0;
}

.detail_top_route-block .detail_top_price, .detail_top_route-block .skit-button {
    width: 100%;
    white-space: nowrap;
}

.trace-route {
    width: 100%;
    padding: 0.5em;
    border-radius: 2em;
    background: #F8F8FB;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 1rem;
}

.trace-route__date-block {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.5em;
    border-radius: 1.6em;
    padding: 1em 1.5em;
    background: #fff;
}

.trace-route__date {
    font-weight: 700;
    font-size: 1.125em;
    line-height: 120%;
    color: #EB5D36;
}

.trace-route__time {
    font-weight: 700;
    font-size: 1.5625em;
    line-height: 120%;
}

.trace-route__body {
    width: 100%;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.trace-route__info {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #B8B8B8;
}

.trace-route__days {
    font-size: 1em;
    line-height: 120%;
}

.trace-route__places {
    font-size: 1em;
    line-height: 120%;
}

.trace-route__row {
    margin-top: 0.75em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-column-gap: 2em;
    -moz-column-gap: 2em;
    column-gap: 2em;
}

.trace-route__points {
    position: relative;
    color: #B8B8B8;
    font-size: 0.75em;
    line-height: 120%;
}

.trace-route__points:not(:last-child)::before {
    content: "";
    position: absolute;
    width: 0.3em;
    height: 1px;
    top: 50%;
    right: -1.15em;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background: #B8B8B8;
}

@media (max-width: 991.98px) {
    .detail_top_route-block {
        justify-content: center;
        flex-direction: column;
    }

    .detail_top_buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .trace-route__date-block {
        border-radius: 1em;
        padding: 0.5em;
    }

    .trace-route__date {
        font-size: 0.9em;
    }

    .trace-route__places, .trace-route__days {
        font-size: 0.75em;
    }

    .news-detail .cabins {
        border-radius: 1.25em;
        padding: 1em;
    }

    .news-detail .cabins_item {
        width: calc(50% - 0.5rem) !important;
    }

    .news-detail .cabins_row-items .cabins_item {
        width: 100% !important;
    }
}

@media (max-width: 479.98px) {
    .detail_top_buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .news-detail .cabins_item {
        width: 100% !important;
    }
}

.news-detail .cabins_row-items {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: start;
    flex-direction: row;
    gap: 1rem;
}

.news-detail .cabins_column, .news-detail .cabins_column h5 {
    width: max-content;
}

@media (max-width: 767.98px) {
    .news-detail .cabins_column {
        width: 100%;
    }

    .news-detail .cabins_row-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479.98px) {
    .news-detail .cabins_row-items {
        grid-template-columns: repeat(auto-fit, minmax(29em, 1fr));
    }
}

.breadcrumb--black .breadcrumb-title, .breadcrumb--black .bx-breadcrumb-item{
    color: #212529;
}

.page_top_banner--empty:before{
    display: none;
}

.header_wrap{
    box-sizing: border-box;
    /*padding: 0 10px 0 5px;*/
}

.btn_modal_tg{
    text-decoration: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--theme-h-bottom-color);
    border: 1.5px solid var(--theme-skit-color);
    border-radius: 15px;
    line-height: 30px;
    padding: 0 10px;
}

.modal-tg {
    position: fixed;
    z-index: 9999999;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-tg--hidden {
    display: none;
}

.modal-tg__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-tg__close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-tg__close svg {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal-tg__illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
}

.modal-tg__illustration svg {
    width: 100%;
    height: 100%;
}

.modal-tg__body {
    width: auto;
    padding: 20px 20px 20px 30px;
    box-sizing: border-box;
    border-radius: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.modal-tg__content {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px 0 70px;
}

.modal-tg__title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
    color: #EB5D36;
}

/* Элемент: Подзаголовок (строка с иконкой ТГ) */
.modal-tg__subtitle {
    font-size: 14px;
    color: #000;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Элемент: Иконка Телеграм внутри текста */
.modal-tg__telegram-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    background-color: #2A6E9B;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.modal-tg__telegram-icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Элемент: Навигация (список ссылок) */
.modal-tg__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

/* Элемент: Ссылка */
.modal-tg__link {
    font-size: 14px;
    color: #483C78; /* Фиолетовый цвет ссылок */
    text-decoration: underline dotted #483C78 1px;
    text-underline-offset: 2px;
    line-height: 1.4;
    transition: opacity 0.2s ease;

}

.modal-tg__link:hover {
    opacity: 0.8;
}

/* Адаптив для мобильных устройств */
@media (max-width: 600px) {
    .modal-tg {
        align-items: flex-start;
    }

    .modal-tg__body {
        width: calc(100% - 20px);
        margin-top: 10px;
        padding: 15px 15px 15px 30px;
    }

    .modal-tg__content {
        padding: 45px 0 0 0;
    }

    .modal-tg__illustration {
        width: 30px;
        height: 30px;
    }

    .modal-tg__link {
        max-width: none;
    }
}
