.all-filters {
    margin-bottom: 1em;
}
.wrapper.dark{
    background-color: #101125;
}

.filterblock {
    border: 1px solid var(--lgray);
    border-radius: 5px;
    color: var(--dblue);
    background: #fff;
    height: fit-content;
    height: min-content;
}
#filt_header {
    background-color: #dfe3e9;
    padding: 8px 16px;
}
.filterblock hr {
    border-top: 1px solid var(--lgray);
    margin: 0.5rem 0;
}
.filterblock .fold ~ div {
    overflow: hidden;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--lgray);
    }
.filterblock .fold {
    border-top: 1px solid var(--lgray);
    display: flex;
    justify-content: space-between;
    border-radius: 3px;
    margin: 0;
    background-color: transparent;
    cursor: pointer;
    padding:1rem 0.5rem;
    transition: 0.2s;
}
.filterblock .fold:hover {
    background-color: #f3f3f3;
}
.all-filters .white_btn{
    max-width: 90%;
}

input[type="checkbox"] + label {
    display: flex;
    align-items: center;
    margin: 10px 0 0;
    cursor: pointer;
    text-align: left;
    font-size: 20px;
    padding: 0 0 0 10px;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label:before {
    background: #fff;
    content: "\2713";
    font-size: 1.5rem;
    border: 1px solid var(--lgray);
    border-radius: 5px;
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    padding-left: 0.3em;
    padding-bottom: 0.3em;
    margin-right: 0.5em;
    vertical-align: bottom;
    color: transparent;
    transition: 0.2s;
}

input[type="checkbox"] + label:active:before {
    transform: scale(0);
}

input[type="checkbox"]:checked + label:before {
    color: var(--red);
}

input[type="checkbox"]:disabled + label:before {
    transform: scale(1);
    color: #aaa;
}
input[type="checkbox"]:checked:disabled + label:before {
    transform: scale(1);
    background-color: #bfb;
    color: #bfb;
}
.excurs {
    display: flex;
    box-shadow: 0px 4px 8px 0px #00000022;
    padding: 5px 30px 5px 5px;
    transition: box-shadow 0.4s;
    background-color: #ffffff;
}

@supports (display: grid) {
    .excurs {
        display: grid;
        grid-template-columns: minmax(240px, 2fr) 3fr max-content;
        grid-gap: 1rem;
        align-items: center;
    }
    .excurs.event {
        grid-template-columns: minmax(220px, 2fr) 3fr min-content;
    }
}

.excurs:hover {
    box-shadow: 0px 6px 16px 2px #00000030;
}


.excurs:hover .anim_btn{
    opacity: 1;
}

.discount {
    background: url("/img/off.svg");
    background-repeat: no-repeat;
    color: white;
    padding-left: 7px;
    font-weight: 500;
}

#details-block {
    width: 300px;
    border: 1px solid var(--lgray);
    text-align: left;
    padding: 10px;
    position: absolute;
    z-index: 999;
    right: 45px;
    bottom: 30px;
    background: white;
    border-radius: 5px;
}

#details-block table {
    width: 100%;
    padding: 20px;
    color: var(--title-color);
}
#details-block button.details {
    background: white;
    border: 1px solid var(--lgray);
}
.fs-18 {
    font-size: 18px;
}
#img-content .top-card {
    overflow: hidden;
    padding: 10px 0;
}
#img-content .top-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.excurs-img{
    height: inherit;
}
.tours-img {
    height: 100%;
    position: relative;
    overflow: hidden;
}
.tours-img::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ffffffbd;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.tour_map {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: 0.3s;
    z-index: 7;
}
.tours-img:hover .tour_map {
    opacity: 1;
    transform: scale(1);
}
.tours-img:hover::after {
    opacity: 1;
}
.excurs-img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}
.tours-img img {
    height: 100%;
}
.early-booking {
    position: absolute;
    top: 20px;
    right: 110px;
    width: 120px;
}
.bestseller {
    background-image: url("/img/front/bests.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 100% 0;
    width: 151px;
    height: 100px;
    top: -30px;
    right: -20px;
}

.text-small {
    font-size: 16px;
}

/* winsum swither */
.winsum_switch {
    --_switch-bg-clr: #b3d7ea;
    --_switch-bg-clr-on: #48a3cd;
    --_switch-padding: 2px;
    --_slider-bg-clr: rgb(255, 255, 255);
    --_slider-bg-clr-on: rgb(255, 255, 255);
    --_label-padding: 4px;
    --_switch-easing: cubic-bezier(0.47,
            1.64,
            0.41,
            0.8);
    /* easing on toggle switch */
    color: white;
    width: fit-content;
    display: flex;
    justify-content: center;
    position: relative;
    border-radius: 9999px;
    cursor: pointer;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    isolation: isolate;
    margin-bottom: 0 !important;
}

.winsum_switch input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.winsum_switch>span {
    display: grid;
    place-content: center;
    /* transition: opacity 300ms ease-in-out 150ms; */
    padding: var(--_label-padding);
    font-size: 16px;
}

.winsum_switch::before,
.winsum_switch::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    transition: inset 150ms ease-in-out;
}

/* switch slider */
.winsum_switch::before {
    background-color: var(--_slider-bg-clr);
    inset: var(--_switch-padding) 50% var(--_switch-padding) var(--_switch-padding);
    transition:
        inset 500ms var(--_switch-easing),
        background-color 500ms ease-in-out;
    z-index: -1;
    /* box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.3); */
}

/* switch bg color */
.winsum_switch::after {
    background-color: var(--_switch-bg-clr-on);
    inset: 0;
    z-index: -2;
}
.winsum_switch:has(input:checked)::after {
    background-color: var(--_switch-bg-clr);
}

/* switch hover & focus */
.winsum_switch:focus-within::after {
    inset: -0.25rem;
}

.winsum_switch:has(input:checked):hover>span:first-of-type,
.winsum_switch:has(input:not(:checked)):hover>span:last-of-type {
    /* opacity: 1; */
    transition-delay: 0ms;
    transition-duration: 100ms;
}

/* switch hover */
.winsum_switch:has(input:checked):hover::before {
    inset: var(--_switch-padding) var(--_switch-padding) var(--_switch-padding) 45%;
}

.winsum_switch:has(input:not(:checked)):hover::before {
    inset: var(--_switch-padding) 45% var(--_switch-padding) var(--_switch-padding);
}

/* checked - move slider to right */
.winsum_switch:has(input:checked)::before {
    background-color: var(--_slider-bg-clr-on);
    inset: var(--_switch-padding) var(--_switch-padding) var(--_switch-padding) 50%;
}

/* checked - set opacity */
/* .switch>span:last-of-type,
.switch>input:checked+span:first-of-type {
    opacity: 0.75;
}
 */
/* .switch>input:checked~span:last-of-type {
    opacity: 1;
}
 */
/* end winsum swither */




@media (min-width: 992px) {
    .excurs .anim_btn {
        opacity: 0;
        transition: opacity .5s;
    }
}
@media (max-width: 992px) {
    .early-booking {
        width: 100px;
        right: 80px;
    }
}
@media (max-width: 768px) {
    .bestseller {
        height: 80px;
        right: -7px;
    }
    .excurs {
        padding: 10px;
    }
    .early-booking {
        width: 100px;
        right: 20px;
        top: 288px;
    }
    @supports (display: grid) {
        .excurs {
            display: grid;
            grid-template-columns: auto;
            grid-template-rows: auto;
            grid-gap: 1rem;
            align-items: center;
        }
    }
    .excurs.event {
        display: flex;
        flex-wrap: wrap;
    }
    .excurs-text {
        display: none;
    }

    .excurs .white_btn {
        margin: auto;
    }
    .excurs-img img {
        height: 230px;
    }

    .excurs_rating {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .excurs{
        grid-gap: 4px;
    }

    .excurs-title{
        font-size: 1.4rem;
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {


    .excurs_rating{display: none;}

    .excurs_rating,
    .excurs_price,
    .excurs_price h4 {
        margin-bottom: 0;
    }
}
