

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* overflow: hidden; */
    /* width: 600px; */
    cursor: pointer;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.02);
}

.card-header, .card-body {
    padding: 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.location, .trip-info {
    display: flex;
    align-items: center;
}


.start-location, .end-location, .trip-date, .trip-time {
    font-size: 14px;
    white-space: normal;
    font-weight: 800;
    color: #484747;
    text-align: left;
    margin-top : 12%;
}

.driver-info {
    display: flex;
    align-items: center;  
    justify-content: center; 
    width:100%;
    border-right: 1px solid #ccc;
    padding: 5px 15px;
}
.driver-info:last-child {
    border-right:none;
}


.driver-photo {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.driver-name {
    font-size: 16px;
    color: #333;
}
.available-seats, .total-distance {
    font-size: 14px;
    color: var(--heading-color);
    font-weight: 800;
}
.price {
    font-size: 18px;
    color: green;
    font-weight: bold;
}
 

.trip-heading{
    display: grid;
    justify-content: left;
    align-items: center;
    padding: 0px 10px;
}

.triplist-container{
    width: 100%;
    max-width: 800px; /* Adjust the max-width as needed */
    margin: 3%;
}

#triplist{
    width: 100% !important; 
    background-color: #F7FFF5 !important;  
}

.triplist-head-location, .triplist-body-location{
    display: grid;
    align-items: center;
    grid-template-columns: 0.7fr 0.5fr 0.7fr 0.5fr 0.5fr 0.5fr;
}
.trip-heading p{
    color: var(--heading-color);
    font-size: 14px;
    font-weight: 800;
    font-family: Montserrat;
    justify-content: space-around;
    display: flex;
    margin-bottom: 3%;
} 

.trip-driver-details{
    display: flex !important;
    justify-content: space-between !important;
    width: 100%;
    text-align: center;
}
/*sort side*/
.sort-container{
    width : 40%;
    margin : 0px 25px;
}
.sort-card{
    margin-top: 40% !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    height:100%;
}
.sort-contents{
    transform: translate(10px, -100px);
    display: block;
}


    .sidebar {
        width: 35%;
        background-color: #F7FFF5;
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        border-radius: 5%;
    }


.sidebar h2 {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #ccc;
}

.sidebar ul li {
    margin: 10px 0;
    color:#6B6868;
}

.sidebar ul li input[type="radio"] {
    margin-right: 10px;
}

.sidebar .image-container {
    margin-top: 20px;
    text-align: center;
}

.sidebar .image-container img {
    max-width: 100%;
}

.sidebar .image-container p {
    font-weight: bold;
    color: #28a745;
}

.driver-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .driver-info {
    flex: 1 1 48%; /* Take up roughly half of the container width */
    margin: 0.5%;
  }


@media screen and (max-width: 767px) {

    .seats-row, .info-row{
        display: flex;      
        width: 100%;
        justify-content: space-between;
    }

    .triplist-head-location{
        display: none !important;
    }

    .res-trip-head{
        display: block !important;
    }
    .card-body{
        display: block;
    }
    .card-header{
        padding: 5px !important;
        font-size: 13px;
    }
    .card-header p{
        margin-bottom: 0% !important;
    }


    #triplist{
        width : 90% !important;
        padding :0px !important;
        height: auto !important;
        margin: 7px auto;
    }

    
    .tripdate-time{
        display: flex;
        gap: 10%;
    }

    .triplist-body-location {
        display: block !important;
    }
    .trip-heading {
        justify-content: flex-start;
        border-bottom: 1px solid #ccc;
        padding: 10px;
    }

    .trip-heading p {
        display: flex;
        justify-content: flex-start;
        margin-bottom :0% !important;
    }
    .driver-info {
        display: flex;
        align-items: center;
        justify-content: left;
    }
  

    .trip-start{
        width:8%;
        height : 8%;
    }
    .trip-dest {
        width: 10%;
        height: 50%;
    }
    .driver-photo{
        width: 40px;
        height: 40px;
    }
    /* .available-seats, .total-distance {
        font-size: 14px;
    } */
    .trip-pickup{
        font-size: 14px;
    }
    .res-trip-heading{
        display: flex;
        border-bottom: none;
    }

    .sidebar{
        display: none;
    }

    .driver-info {
        flex: 1 1 100%; /* Full width on mobile */
        margin-bottom: 10px; /* Space between rows */
      }
    
      .driver-info:nth-child(1),
      .driver-info:nth-child(2) {
        flex: 1 1 48%; /* Half width for the first two items on mobile */
      }
    
      .driver-info:nth-child(3),
      .driver-info:nth-child(4) {
        flex: 1 1 48%; /* Half width for the last two items on mobile */
      }
    .trip-driver-details{
        flex-wrap: wrap;
    }

    .image-container {
        width: 100%; /* or any specific width */
        max-width: var(--small-width);
        position: relative;
        overflow: hidden; /* hides any overflowed content */
    }
   
}


@media screen and (min-width: 768px) and (max-width: 992px) {

    
}






