.searching__box {
    background-color: rgb(255 255 255 / .75);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.searching__form-top {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.searching__form-bottom {
    margin-top: 20px;
}

.input, .searching select {
    width: 100%;
    padding: 5px;
    margin-top: 10px;
    cursor: pointer;
    background-color: var(--white-color);
    border-radius: 5px;
    height: 25px;
    line-height: 25px;
    border: 1px solid #aaa;
}

.input {
    display: block;
}

.searching__choices {
    position: relative;
}

.searching__choices {
    outline: none;
    border: none;
}

.searching__choices-inner {
    line-height: 1;
    outline: none;
    position: relative;
    margin-top: 10px;
    background-color: #fff;
    border-radius: 5px;
    padding: 5px;
    border: 1px solid #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.searching__choices.simple .searching__choices-inner, .searching__choices.search .searching__choices-inner {
    height: 25px
}

.searching__choices-inner .choices__item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.searching__choices.simple .searching__choices-inner .choices__item {
    padding-right: 20px;
}

.searching__choices-inner .choices__item {
    line-height: 1;
}

.searching__choices.simple::after,
.searching__choices.search::after,
.searching__choices.detail::after,
.searching__details-button::after {
    content: '';
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: #aaa;
    right: 8px;
    top: 10px;
    position: absolute;
    width: 7px;
    height: 6px;
}

.searching__choices.simple::before,
.searching__choices.search::before,
.searching__choices.detail::before {
    content: '';
    position: absolute;
    display: block;
    right: 21px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background-color: #aaa;
    z-index: 1;
}

.searching__choices.is-open.simple::after,
.searching__choices.is-open.search::after,
.searching__choices.is-open.detail::after,
.searching__details-button.active::after {
    transform: rotate(180deg);
}

.searching__dropdown {
    position: absolute;
    display: none;
    left: 0;
    right: 0;
    bottom: 2px;
    transform: translateY(100%);
    z-index: 5;
    border-radius: 0 0 5px 5px;
    background-color: var(--white-color);
    border: 1px solid #aaa;
    border-top: none;
    overflow: hidden;
}

.searching__choices.is-open .searching__choices-inner {
    border-radius: 5px 5px 0 0;
    border-bottom: none;
}

.searching__choices.is-open .searching__dropdown {
    display: block;
}

.searching__choice {
    padding: 2px 5px;
    cursor: pointer;
}

.searching__choice:hover, .searching__choice.is-highlighted {
    background-color: #276bda;
    color: var(--white-color);
}

.w-180 {
    width: 180px;
}

.w-230 {
    width: 230px;
}

.w-115 {
    width: 115px;
}

.w-65 {
    width: 65px;
}

.searching__items {
    display: flex;
    gap: 20px;
}

.searching__items.searching__peoples {
    margin-right: 30px;
}

.searching__item.searching__cost {
    order: 1;
}

.searching__items.childrens_age {
    order: 2;
}

.searching__items > .searching__choices {
    width: 65px;
}

/* Children age block */
.searching__items.childrens_age {
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    flex-basis: 100%;
}

.children-age-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.children-age-selects .searching__choices.age-select {
    width: 100px;
}

.children-age-selects .searching__choices.age-select .searching__choices-inner {
    margin-top: 0;
}

.children-age-selects .searching__choices.age-select::after {
    top: 50%;
    transform: translateY(-50%);
}

.children-age-selects .searching__choices.age-select.is-open::after {
    transform: translateY(-50%) rotate(180deg);
}

.children-age-selects .searching__choices.age-select::before {
    top: 50%;
    transform: translateY(-50%);
    height: 17px;
}

input.searching__search-input {
    width: calc(100% - 6px);
    margin: 5px auto;
    border: 1px solid #aaa;
    display: block;
    padding: 2px 20px 2px 5px;
    background: url(../assets/images/search.svg) no-repeat 98% / 16px 16px;
}

.searching__dropdown .choices__list {
    max-height: 300px;
    overflow-y: auto;
}

.searching__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: #B4C7E5 1px solid;
    padding-top: 10px;
    margin-top: 10px;
}

.searching__details-button {
    position: relative
}

.searching__details-button::after {
    right: -12px;
    top: 35%;
}

.searching__details-button span {
    text-decoration: underline dotted;
}

.searching__details-button .open-value, .searching__details-button.active span {
    display: none;
}

.searching__details-button.active .open-value {
    display: block;
}

.searching__details {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: .5s all linear;
    border-top: #fff0 1px solid;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.searching__details.active {
    max-height: none;
    opacity: 1;
    display: block;
    border-top: #B4C7E5 1px solid;
    pointer-events: painted;
}

.searching__multiple {
    display: flex;
    gap: 0 5px;
    flex-wrap: wrap;
}

.searching__multiple .choices__item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #aaa;
    margin-bottom: 4px;
}

.searching__multiple .choices__button {
    position: relative;
    font-size: 0
}

.searching__multiple .choices__button::before {
    content: "✕";
    font-size: 12px;
}

.searching__details-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.searching__details-item p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 5px;
    margin-bottom: -5px;
}

.searching__details-item .searching__choices-inner {
    margin-top: 0;
}

.searching__details-item .searching__choices.detail::after {
    top: 50%;
    transform: translateY(-50%);
}

.searching__details-item .searching__choices.is-open.detail::after {
    transform: translateY(-50%) rotate(180deg);
}

.searching__details-item .searching__choices.detail::before {
    display: none;
}

.no-characteristics {
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

.searching__choices.detail .choices__item.is-selected {
    color: #aaa
}

.searching__choices.detail .choices__item.is-selected.is-highlighted {
    background-color: #fff0;
    color: #aaa;
}

.choices__input.choices__input--cloned {
    border: 0;
}

.date {
    width: 115px;
}

.date__wrapper {
    position: relative;
    cursor: pointer;
}

.date__wrapper::after {
    content: url(../assets/images/calendar.svg);
    width: 14px;
    height: 14px;
    position: absolute;
    transform: translateY(-50%);
    top: 35%;
    right: 10px;
    pointer-events: none;
}

.searching .datepicker-input.in-edit:focus {
    outline: none;
    box-shadow: none;
    border: 1px solid #aaa;
}

.searching__range {
    display: flex;
    align-items: center;
    gap: 20px;
}

.searching__range-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.searching__range-inputs .input {
    margin-top: 0;
}

.searching__range-line {
  height: 20px;
  padding: 10px 0;
}

.searching__range-slider {
    align-self: flex-end;
    position: relative;
    width: 250px;
    height: 6px;
    background: #cfd8dc;
    border-radius: 3px;
}

.searching__range-slider input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 0;
}

.searching__range-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 22px;
    background: url(../images/range-icon.png) no-repeat center / cover;
    border: none;
    pointer-events: all;
    cursor: pointer;
}

.searching__range-slider input::-moz-range-thumb {
    width: 10px;
    height: 22px;
    background: url(../images/range-icon.png) no-repeat center / cover;
    border: none;
    pointer-events: all;
    cursor: pointer;
}

.searching__range-progress {
    position: absolute;
    height: 100%;
    background: #4caf50;
    border-radius: 3px;
}

.searching__range-inputs input {
    width: 70px;
}

.searching__range-bottom {
    margin-top: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 250px;
}

.form-group.slider {
    position: relative;
}

#filter_form .form-group {
    position: relative;
}

.searching__button {
    background-color: var(--secondary-color);
    padding: 10px 40px;
    border-radius: 5px;
    color: var(--white-color);
    font-weight: 700;
}

@media (max-width: 1250px) {

    .searching__item.searching__cost {
        order: unset;
    }

    .searching__items.searching__peoples {
        margin-right: 30px;
        width: 100%;
    }

}

@media (max-width: 768px) {

    .searching__box {
        margin-top: 0;
        border-radius: 0;
        padding: 20px;
    }

}

@media (max-width: 550px) {

    .searching__form-top {
        gap: 10px;
    }

    .searching__item, .searching__range-slider, .searching__range > div {
        width: 100%;
    }

    .searching__range input {
        flex-grow: 1;
    }

    .searching__items {
        width: 100%;
    }

    .searching__items.searching__peoples {
        margin-right: 0;
    }

    .searching__range {
        width: 100%;
        flex-direction: column;
    }

    .searching__range-bottom {
        width: 100%;
    }

    .searching__range-line {
        margin-bottom: 20px;
    }

    .w-115 {
        width: calc(50% - 10px);
    }

    .searching__button {
        padding: 10px 20px;
    }

    .searching__details-button::after {
        display: none;
    }

    .searching__details-button {
        padding-right: 10px;
    }

}
