:root{
    --border:rgba(128, 128, 128, 0.747);
}
.tours{
    width: 90%;
    height: auto;
    margin: 2rem auto;
}
.tours-search {
    position: relative;
    width: 40%;
    height: 3rem;
    display: flex;
    margin: 0 auto 2rem auto;
}
.tours-search input{
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: none;
    font-size: 1.1rem;
    font-family: 'Ubuntu', sans-serif;
}

.tours-search button{
    height: 100%;
    width: 3.5rem;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 20px;
    border: none;
}
.tours-search button img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tours-list{
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
    column-gap: 5rem;
    align-items: center;
}
/*tour cards*/

.tour-card{
    display: block;
    width: 550px;
    height: 250px;
    background: white;
    border-radius: 20px;
    position: relative;
}

.tour-card img{
    width: 50%;
    height: 95%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: -50px;
    top: 2.5%;
    border-radius: 20px;
}
.tour-card .tour-content{
    width: 55%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    text-align: center;
    color: black;
}
.tour-card .tour-content .price{
    position: absolute;
    right: 0;
    bottom: 10px;
    height: 3rem;
    width: 7rem;
    font-size: 1.2rem;
    background: #F87357;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.tour-card .tour-content .tags{
    font-size: 0.7rem;
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    position: absolute;
    right: 1rem;
}
.tour-card .tour-content .tags .tag{
    background: var(--background-color);
    padding: 0.2rem 0.5rem;
    color: var(--accent-color);
    font-weight: 800;
    border-radius: 10px;
    padding: 0.5rem;
    transition-duration: 0.3s;
}
.tour-card .tour-content .tags .tag:hover{
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    transition-duration: 0.3s;
}
@media only screen and (max-width:700px){
    .tour-card{
        width: 300px;
        font-size: 0.80rem;
        height: 225px;
    }
    .tour-card img{
        width: 45%;
        left: 0;
        height: 100%;
        top: 0;
    }
    .tours-search{
        width: 90%;
    }
}

.tour-details{
    width: 90%;
    height: auto;
    margin: auto;
    background: white;
    border-radius: 50px;
    position: relative;
    color: black;
    padding: 1rem;
}

.tour-details .links a{
    text-decoration: none;
    color: black;
    font-weight: 500;
}
.tour-details .links a:hover{
    color: var(--primary-color);
}
.tour-details .gallery{
    height: 300px;
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.25rem;
    border: 1px solid var(--border) ;
    border-radius: 25px;
}
.tour-details .gallery img{
    width: 21.5%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.tour-content{
    text-align: center;
    margin-top: 1rem;
}
.tour-content h1{
    font-size: 1.5rem;
}
.tour-content .route{
    font-size: 1.2rem;
    font-weight: 800;
}
.tour-content .grid{
    display: grid;
    width: 90%;
    justify-content: center;
    border: 1px solid var(--border);
    margin: auto;
    grid-template-columns: 2fr 1fr;
    padding: 1rem;
    column-gap: 5rem;
    border-radius: 25px;
}
.tour-content .grid form{
    width: 90%;
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 1rem;
}
.tour-content .grid form fieldset{
    width: 90%;
    height: 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 25px;
    margin-top: 1rem;
}
.tour-content .grid form fieldset input{
    width: 50%;
    height: 100%;
    font-size: 1.2rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    text-align: center;
}
.tour-content .grid form fieldset label{
    font-size: 1.2rem;
    font-weight: 800;
}
.tour-content .price-info{
    width: 90%;
    margin-top: 1rem;
    border-top: 1px solid black;
    display: grid;
    grid-template-columns: 2fr 1fr;
    text-align: left;
}
.tour-content .right{
    text-align: right;
    font-weight: bold;
}
.tour-content .book-tour{
    width: 90%;
    height: 3rem;
    font-size: 1rem;
    border-radius: 25px;
    border: none;
    background: var(--background-color);
    color: white;
    cursor: pointer;
    transition-duration: 0.3s;
}
.tour-content .book-tour:hover{
    font-size: 1.1rem;
    scale:1.08;
    transition-duration: 0.3s;
}

@media only screen and (max-width:900px){
    .tour-details .gallery{
        height: auto;
        gap: 0;
        width: 95%;
        padding: 0.5rem;
        gap: 0.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .tour-details .gallery img{
        border-radius: 5px;
        height: 100%;
        width: 100%;
    }
    .tour-content .grid{
        grid-template-columns: 100%;
        gap: 1rem;
    }
}