
.tour_card{
    width: calc(50% - 30px);
}

.tours_section .gap-30{
    row-gap: 30px;
    column-gap: 35px;
}

.tours_section{
    padding-bottom: 100px;
}


.tours_section .tour_img_container{
    border: 1px solid #dddddd;
    padding: 7px;
    position: relative;
    transition: all 0.3s ease-in-out;
    margin-bottom: 30px;
}

.tours_section .tour_img_container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: 
        linear-gradient(90deg, #bfa888 0%, #bfa888 100%) top left,
        linear-gradient(180deg, #bfa888 0%, #bfa888 100%) top right,
        linear-gradient(270deg, #bfa888 0%, #bfa888 100%) bottom right,
        linear-gradient(0deg, #bfa888 0%, #bfa888 100%) bottom left;
    background-size: 
        0 1px,
        1px 0,
        0 1px,
        1px 0;
    background-repeat: no-repeat;
    pointer-events: none;
}

.tours_section .tour_img_container::before {
    animation: border-animation-reverse 2s ease-in-out forwards;
}

.tours_section .tour_img_container:hover::before {
    animation: border-animation 2s ease-in-out forwards;
}

@keyframes border-animation {
    0% {
        background-size: 0 1px, 1px 0, 0 1px, 1px 0;
    }
    25% {
        background-size: 100% 1px, 1px 0, 0 1px, 1px 0;
    }
    50% {
        background-size: 100% 1px, 1px 100%, 0 1px, 1px 0;
    }
    75% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0;
    }
    100% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
}

@keyframes border-animation-reverse {
    0% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
    25% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0;
    }
    50% {
        background-size: 100% 1px, 1px 100%, 0 1px, 1px 0;
    }
    75% {
        background-size: 100% 1px, 1px 0, 0 1px, 1px 0;
    }
    100% {
        background-size: 0 1px, 1px 0, 0 1px, 1px 0;
    }
}

.tours_section .tour_img_container img{
    object-fit: cover;
    width: 100%;
    height: 250px;
}

.tours_section .tour_img_container a{
    width: 100%;
}

.tours_section .price_div{
    color: #bfa888;
}


.tours_content{
    padding: 0 7px;
}
.tours_content h4{
    font-family: "Cormorant Upright",serif;
    text-transform: uppercase;
    color: #000;
    font-size: 24px;
    line-height: 1.25em;
    letter-spacing: .05em;
    font-weight: 500;
    margin: 0;
    word-wrap: break-word;
}

.tours_content p{
    margin: 8px 0 0 0;
    font-family: 'Roboto',sans-serif;
    font-size: 15px;
    line-height: 1.73em;
    font-weight: 300;
    color: #404040;
    font-variant-numeric: lining-nums;
}

.tour_info{
    padding: 7px 0 0;
    margin: 17px 0 0;
    border-top: 1px solid #ebebeb;
}

.tour_info span{
    color: #bfa888;
    flex: 1;
}

.tour_info div{
    padding: 0 7px;
}

.tours_section .page-numbers{
    position: relative;
    margin: 0 11px;
    padding: 0 3px;
    font-family: 'Inconsolata',monospace;
    font-weight: 400;
    font-size: 15px;
    &:hover{
        color: #bfa888;
    }
}

.tours_section .page-numbers.current{
    font-weight: 700;
    color: #bfa888;
}

.tours_section .page-numbers.next svg{
    color: #000;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: all 0.5 ease-in-out;
    &:hover{
        color: #bfa888;
        transform: translateX(3px);
    }
}
.tours_section .page-numbers.prev svg {
    color: #000;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: all 0.5 ease-in-out;
    &:hover{
        color: #bfa888;
        transform: translateX(-3px);
    }
}

.tours_section .page-numbers.next{
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.tours_section .page-numbers.prev{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.pagination{
    margin-top: 60px;
}
@media (max-width: 992px){
    .tour_card{
        width: 100%;
    }
}