/***** 1. Общие стили для слайдера  jQuery UI *****/
.ui-widget {
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.1em;
}

.ui-corner-all {
    border-radius: 4px; /* закругления */
}

.ui-state-default {
    border: 1px solid #d3d3d3;
    background: #e6e6e6;
    color: #555555;
    cursor: pointer;
}

.ui-state-hover,
.ui-state-focus {
    border: 1px solid #999999;
    background: #dadada;
    color: #212121;
}

.ui-state-active {
    border: 1px solid #aaaaaa;
    background: #ffffff;
    color: #212121;
}

.ui-state-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.ui-state-disabled .ui-slider-handle,
.ui-state-disabled .ui-slider-range {
    cursor: default;
}

/***** 2. Стили для слайдера *****/

.ui-slider {
    position: relative;
    text-align: left;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    border-radius: 50%;
    background: var(--primary-color);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ui-slider .ui-slider-handle:hover {
    background: var(--primary-color);
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    display: block;
    background: var(--secondary-color); /* цвет полоски (можно заменить) */
    height: 100%; /* чтобы полоска была видимой */
}

/* Горизонтальный слайдер */
.ui-slider-horizontal {
    height: 0.8em;
}

.ui-slider-horizontal .ui-slider-handle {
    top: -0.3em; /* вертикальное положение ползунка */
    margin-left: -0.6em;
}

.ui-slider-horizontal .ui-slider-range {
    top: 0; /* чтобы полоска была выровнена по контейнеру */
    height: 100%;
}

.ui-slider-horizontal .ui-slider-range-min {
    left: 0;
}

.ui-slider-horizontal .ui-slider-range-max {
    right: 0;
}

/* Вертикальный слайдер */
.ui-slider-vertical {
    width: 0.8em;
    height: 100px; /* задайте высоту по вашему усмотрению */
}

.ui-slider-vertical .ui-slider-handle {
    left: -0.3em;
    margin-left: 0;
    margin-bottom: -0.6em;
}

.ui-slider-vertical .ui-slider-range {
    left: 0;
    width: 100%;
}

.ui-slider-vertical .ui-slider-range-min {
    bottom: 0;
}

.ui-slider-vertical .ui-slider-range-max {
    top: 0;
}

/***** 3. Дополнительные стили для полоски и ховеров *****/

/* Полоска между ползунками */
.ui-slider .ui-slider-range {
    background: linear-gradient(to right, #ffffff, var(--primary-color)); /* цвет полоски (градиент) */
    border-radius: 4px;
}

.ui-slider-horizontal .ui-slider-range {
    height: 0.5em; /* толщина полоски */
    top: 0.15em; /* чтобы была выровнена по центру */
}

/* Для вертикального слайдера (если используется) */
.ui-slider-vertical .ui-slider-range {
    width: 0.5em;
    left: 0.15em;
}

.filter_type {
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--secondary-color);

}

.filter_type h5 {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bolder;
}

/* Общий контейнер для формы */
#price-form {
    display: flex;
    flex-direction: column; /* Элементы располагаются вертикально */
    align-items: center;
}

/* Контейнер для слайдера */
.slider-container {
    width: 100%;
}

/* Слайдер */
#price-slider {
    margin: 10px 0;
    width: 100%;
}

.slider-container button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bolder;
}

.slider-container button:hover {
    background-color: var(--secondary-color);
}

/* Контейнер для цен */
.price-values {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.max-price input {
    width: 100%; /* Фиксированная ширина полей */
    text-align: right;
    border: none; /* Убираем границу */
    background: none; /* Убираем фон */
    font-weight: bold;
    font-size: 1.4em;
    color: var(--primary-color);
}

/* Максимальная цена */
.min-price input {
    width: 100%; /* Фиксированная ширина полей */
    text-align: left;
    border: none; /* Убираем границу */
    background: none; /* Убираем фон */
    font-weight: bold;
    font-size: 1.4em;
    color: var(--secondary-color);
}

/* Categories menu */
.categories-menu {
    font-size: 1.1em;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 20px;
}

.category-toggle {
    width: 100%;
    text-align: center;
    font-weight: bold;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.1em;
}


.num_tours {
    margin-left: 5px;
    background-color: var(--secondary-color);
    width: 20px;
    height: 20px;
    color: white;
    text-align: center;
    align-items: center;
    font-size: 0.7em;
    font-weight: bolder;
    border-radius: 50%;
}

#categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#categories-list.hidden {
    display: none;
}

#categories-list li {
    padding: 8px 0;
    border-top: 1px solid #ddd;
}

#categories-list li:first-child {
    border-top: none;
}

#categories-list a {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1em;
    display: flex;
    align-items: center;
}

#categories-list a:hover {
    color: var(--secondary-color);
}

#categories-list a.active {
    color: var(--primary-color);
    font-weight: bolder;
}

#categories-list i {
    margin-right: 8px;
    font-size: 1.2em;
}

.price_list_converted {
    text-align: center;
    display: block;
    font-size: 0.7em;
    font-weight: bolder;
    color: grey;
    border: 1px dotted grey;
    border-radius: 3px;
    padding: 5px 7px 4px 7px;
    rotate: -3deg;

}

.checked_tag {
    color: var(--primary-color);
    font-weight: bolder;
    text-transform: uppercase;
}


.strip_all_tour_list {
    margin-bottom: 30px;
    background-color: #fff;
    display: block;
    -webkit-box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.strip_all_tour_list p {
    font-size: 0.9em;
    line-height: 1.3;
    margin-top: -15px;
}

.strip_all_tour_list .ribbon_3 {
    left: 7px;
}

.tour_list_desc .rating {
    margin: 15px 0 3px -3px;
    font-size: 1em;
}

.img_list {
    overflow: hidden;
    min-height: 220px;
    text-align: center;
    position: relative;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.img_list img {
    width: fit-content;
    height: 240px;
    position: absolute;
    left: -10%;
}

.img_list a img {
    transform: scale(1.2);
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    -webkit-backface-visibility: hidden;
}

.img_list a:hover img {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.img_list .short_info {
    padding: 5px 5px 5px 5px;
    text-align: left;
    min-height: 38px;
    font-size: 13px;
    font-weight: 500;
}

.tour_list_desc {
    padding: 0;
    border-right: 1px solid #ededed;
    height: fit-content;
    line-height: 17px;
}

.tour_list_desc h3 {
    text-transform: uppercase;
    font-weight: bolder;
    line-height: 1.2;
    font-size: 1.1em;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.price_list {
    text-align: center;
    align-content: center;
    align-items: center;
    display: table;
    height: 220px;
    color: var(--primary-color);
    width: 100%;
    margin-left: -15px;
    font-weight: bolder;
    font-size: 1.5em;
    position: relative;
}

.price_list a {
    margin-top: 20px;
    width: 100%;
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.6em;
    font-weight: bolder;
    font-family: "Roboto", sans-serif;
    padding-top: 5px;
    padding-bottom: 5px;
}

.price_list a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.price_list small {
    font-size: 0.5em;
    color: var(--dark-grey);
    display: block;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: -5px;
}

.price_list div {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.price_list p {
    padding: 0;
    margin: 0;
}

.price_list .normal_price_list {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 20px;
    margin-top: 10px;
}


ul.add_info {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

ul.add_info li {
    display: inline-block;
    margin-right: 5px;
    text-align: center;
    width: 35px;
    height: 35px;
    color: white;
    background-color: var(--primary-color);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

ul.add_info li:hover {
    background-color: var(--secondary-color);
}

ul.add_info li a {
    color: #555;
    width: 35px;
    height: 35px;
    display: block;
}

ul.add_info li i {
    display: inline-block;
    font-size: 22px;
    top: 6px;
    position: relative;
}

#filters_col {
    background-color: #fff;
    padding: 5px 0 5px 0;
    border: 1px solid var(--secondary-color);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    margin-bottom: 15px;
    border-radius: 10px;
}

#filters_col label {
    color: #333;
    font-weight: normal;
}

a#filters_col_bt {
    display: block;
    color: var(--primary-color);
    text-align: center;
    font-weight: bolder;
    font-size: 25px;
    text-transform: uppercase;
}


a#filters_col_bt .icon_adjust-vert {
    font-size: 26px;
}

.filter_type ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

/* Checkbox style */
.container_check {
    display: flex;
    position: relative;
    align-items: center;
    padding-left: 30px;
    line-height: 1.3;
    margin-bottom: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container_check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.container_check input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border: 1px solid transparent;
}

.container_check i {
    font-size: 1em;
    color: var(--secondary-color);
    padding: 0;
}

.container_check .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    border-radius: 3px;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--primary-color);

}

.container_check .checkmark:after {
    content: '✓';
    color: white;
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    font-size: 1.3em;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.container_check input:checked ~ .checkmark:after {
    display: block;
}


@media (max-width: 768px) {

    .slider-container button {
        margin-top: 10px;
        font-size: 1em;
        align-self: center;
    }

    .max-price input {
        font-size: 1.4em;
    }

    .min-price input {
        font-size: 1.4em;
    }


    .ui-slider .ui-slider-handle {
        width: 1em;
        height: 1em;
    }

    .ui-slider-horizontal .ui-slider-handle {
        top: -0.1em;
    }

    .categories-menu {
        font-size: 1em;
        border: 1px solid var(--secondary-color);
        padding: 8px;
    }

    #filters_col {
        border: 1px solid var(--secondary-color);
    }


    .category-toggle {
        font-size: 1.2em;
    }

    #categories-list a {
        font-size: 1em;
    }

    .filter_type h5 {
        font-size: 1em;
    }

    .num_tours {
        font-size: 0.9em;
    }

}

@media only screen and (max-width: 991px) {

    .strip_all_tour_list .row {
        flex-direction: column;
    }

    .strip_all_tour_list .col-lg-4,
    .strip_all_tour_list .col-lg-6,
    .strip_all_tour_list .col-lg-2 {
        width: 100%;
        max-width: 100%;
    }

    .img_list {
        align-content: center;
        align-items: center;
        vertical-align: middle;
        overflow: hidden;
        height: 205px;
    }

    .img_list img {
        position: inherit;
        width: 100%;
        left: 0;
        object-fit: cover;

    }

    .tour_list_desc {
        margin-left: 10px;
        margin-right: 10px;
        padding: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #b2ebf2;
    }

    .tour_list_desc .rating {
        margin: 5px 0 10px 0;
    }

    .tour_list_desc h3 {
        font-size: 20px;
    }

    .price_list {
        height: auto;
        margin: 0;
        padding: 15px;
        text-align: left;
    }

    .price_list div {
        display: block;
    }


    ul.add_info {
        text-align: center;
        display: grid;
        gap: 7px;
        grid-template-columns: repeat(3, 1fr);
        max-width: 180px;
        margin: 15px auto;
    }

    ul.add_info li {
        margin-right: 0;

    }

    .price_list_converted {
        display: block;
        margin-top: 5px;
    }

    .tooltip-content {
        max-width: 260px;
        margin: 0 0 20px -120px;
    }

    .tooltip-content::after {
        left: 46%; /* Центрирование относительно подсказки */
    }

}

@media (min-width: 992px) and (max-width: 1400px) {

    .tour_list_desc {
    padding-left: 3px;
    border-right: 1px solid #ededed;
        margin-left: -15px;
    height: 220px;
    line-height: 17px;
}

    .price_list_converted {
        margin-top: 5px
    }

    .price_list small {
        font-size: 0.5em;
        display: block;
        text-align: center;
        text-transform: uppercase;
        font-weight: bolder;
        margin-bottom: 0;
    }

    .price_list {
        font-size: 1.5em;
    }

    .container_check i {
        font-size: 0.8em;
    }

    .max-price input {
        font-size: 1.2em;
    }

    .min-price input {
        font-size: 1.2em;
    }

    .ui-slider .ui-slider-handle {
        width: 1em;
        height: 1em;
    }

    .ui-slider-horizontal .ui-slider-handle {
        top: -0.1em;
    }

    .categories-menu {
        font-size: 1em;
        border: 1px solid var(--secondary-color);
        padding: 8px;
    }

    #filters_col {
        border: 1px solid var(--secondary-color);
    }

    .category-toggle {

        font-size: 0.8em;
        font-weight: bolder;
    }

    #categories-list a {
        font-size: 0.8em;
    }

    .num_tours {
        width: 20px;
        height: 20px;
        font-size: 1em;
    }


    a#filters_col_bt {
        font-size: 18px;
    }


    a#filters_col_bt .icon_set_1_icon-65 {
        font-size: 15px;
    }

    .price_list_converted {
        font-size: 12px;
        display: block;
    }

    .filter_type h5 {
        font-size: 1em;
    }

}

@media only screen and (max-width: 767px) {
    .price_list_converted {
        width: fit-content;
        display: inline;
    }

    .price_list small {
        font-size: 0.5em;
        display: inline;
    }


    .tour_list_desc p {
        font-size: 14px;
    }

    ul.add_info li {
        width: 40px;
        height: 40px;
    }

    ul.add_info li i {
        font-size: 25px;
        top: 8px;
    }

    .tooltip_styled .tooltip-content {
        width: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
}