/* Root */

:root {
    --color-white: #f1f1f1;
    --color-white-black: #d4d4d4;
    --color-gray: #1b1a1a;
    --color-black: #111111;
    --color-blue: #164ab9;
    --color-green: #19c298;
}

/* Grid tours */

.select_city {
    margin-bottom: 10px;
}

.search_tovars {
    width: 100%;
    margin-bottom: 10px;
}

.grid_tours {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.tour_block {
    border: 1px solid var(--color-gray);
    display: flex;
    margin-bottom: 10px;
}

.tour_block:last-child {
    margin-bottom: 0px;
}

.name_tour {
    width: calc(100% - 200px);
    padding: 20px;
    display: flex;
    align-items: center;
    text-align: left;
    border-right: 1px solid var(--color-gray);
    font-size: 18px;
    font-weight: 700;
}

.date_tour {
    width: 250px;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 20px;
    border-right: 1px solid var(--color-gray);
    font-size: 14px;
    font-weight: 400;
}

.no_vis_city_to_sql {
    max-width: 0px;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
    font-size: 0;
    line-height: 0;
}

.open_tour {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: var(--color-blue);
    color: var(--color-white);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.open_tour:hover {
    background-color: var(--color-green);
}

/* Tour categories */

.tour_categories {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.categories_block {
    width: calc(33.333% - 5px);
    position: relative;
    margin-bottom: 38px;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    opacity: 0;
    transform: translate(-15px, -15px);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    -webkit-transition-delay: .5s;
    -moz-transition-delay: .5s;
    -o-transition-delay: .5s;
    transition-delay: .5s;
}

.categories_block_an {
    opacity: 1;
    transform: translate(0px, 0px);
}

.categories_block:last-child {
    margin-bottom: 0;
}

.image_categories {
    width: 100%;
    height: 400px;
    border-bottom: none;
    position: relative;
    z-index: 48;
    filter: contrast(95%);
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.image_categories:hover {
    transform: scale(1.01);
    filter: contrast(120%);
}

.name_categories {
    width: 70%;
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    background-color: var(--color-white);
    padding: 10px;
    position: absolute;
    left: 50%;
    top: 0px;
    transform: translateX(-50%);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 50;
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.image_categories:hover .name_categories {
    width: calc(100% + 2px);
    top: -2px;
    border-radius: 0px;
}

.button_categories {
    width: calc(80% - 15px);
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 50;
}

/* Media */

@media screen and (max-width: 1023px) {
    .tour_block {
        flex-wrap: wrap;
    }

    .name_tour {
        width: 100%;
        font-size: 15px;
        text-align: center;
        justify-content: center;
    }

    .date_tour {
        width: 50%;
        text-align: center;
        justify-content: center;
        font-weight: 300;
        border-right: 0px;
        border-top: 1px solid var(--color-gray);
        padding: 10px;
    }

    .open_tour {
        width: 50%;
        border-top: 1px solid var(--color-gray);
        font-size: 15px;
        font-weight: 400;
        padding: 10px;
    }

    .categories_block {
        width: calc(50% - 5px);
    }
}


@media screen and (max-width: 700px) {
    .categories_block {
        width: 100%;
    }
}