/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .search-form {
        flex-wrap: wrap;
    }
    
    .form-group {
        min-width: 200px;
    }
    
    .swap_wrapper {
        width: 100%;
    }
    
    .calender_wrap {
        width: 48%;
    }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
    .nav {
        position: relative;
       
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        color: #000;
        font-size: 20px;
        padding: 10px;
        order: -1;
        z-index: 1000;
    }
    
    .nav-links {
        position: fixed;
        top: 57px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        display: none;
        z-index: 999;
        border-radius: 0 0 10px 10px;
        overflow: hidden;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-links .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
        font-size: 16px;
    }
    
    .nav-links .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-links .nav-link:hover {
        background: #f8f9fa;
        padding-left: 25px;
    }
    
    .nav-links .nav-link.active {
        background: #007DFD;
        color: white;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links::before {
        display: none;
    }
    
    .live-service {
    margin-left: auto;
    display: none;
}
 .header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 6px 0;
    padding-bottom: 0px;
    padding-top: 0px;
}
    .search-form {
        flex-direction: column;
    }
    
    .swap_wrapper {
        width: 100%;
        flex-direction: column;
    }
    .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #061728;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}
 .total-section {
        color: white;
    }
    
    .total-price {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .additional-charges {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .book-now-btn {
        background: #007DFD;
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
    }
    
   body {
    padding-bottom: 71px;
}
.main {
    min-height: unset;
}
   .flight-times {
   
    width: 95%;
}
    
    .form-group.adult {
        width: 100%;
    }
    
    .flight-card {
        flex-direction: column;
    }
    
    .flight_wrapper {
        width: 100%;
    }
    
    .booking-info {
        width: 100%;
        border-left: none;
        border-top: 0.65px solid #E0E0E0;
        padding: 20px;
    }
    
    .flight-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .flighttime_wrapper {
        width: 100%;
    }
    
    .stop_wrapper {
        width: 100%;
    }
    
    .price-tabs {
        flex-wrap: wrap;
        background-color: transparent!important;
    }
    
    .price-tabs .tab {
        flex: 1 1 50%;
        border-bottom: 0.65px solid #DBDEDF;
    }
    
    .airline-logos {
        overflow-x: auto;
        display: block;
    }
    
    .airline-logos table {
        min-width: 600px;
    }
    
   .lowest-fares-section {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 14px;
}
    button.book_btn {
    position: absolute;
    right: 20px;
    top: 11px;
}
    .profile_call {
        justify-content: center;
    }
    
    .view-details-btn {
        position: static;
        margin: 10px 20px;
    }
    
    .flight_wrapper::after {
        display: none;
    }
    .flight-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: space-between;
    width: 100%;
    padding: 9px 10px;
    border-bottom: 0.65px solid #E0E0E0;
}
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    .search-section{
        display: none;
    }
    .info_div {
    display: none;
}
 .mobile-header {
    display: block;
    background: #EFEFF0;
    padding: 15px 20px;
    box-shadow: none;
    padding-bottom: 0px;
}
.route-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #000000;
    margin-bottom: 0px;
}
 .route-info p {
        font-size: 10px;
        color: #000000;
        margin: 0;
        font-weight: 500;
    }
    
 .route-info {
    text-align: center;
    flex: 1;
    background-color: #ffffff;
    border-radius: 100px;
    width: 291px;
    height: 50px;
    max-width: 291px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
 .route-item {
    width: 50%;
    background: transparent;
    border-radius: 0px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 0.5px solid #D9D9D9;
}
  .flights-count {
        font-size: 14px;
        font-weight: 500;
        color: #000000;
    }
    .filter-mobile-btn {
    background: none;
    border: none;
    color: #007DFD;
    font-size: 15px;
    font-weight: 500;
}
.mobile-route-section .route-item:last-child {
    border-right: none;
}
 
    .date-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 0.5px solid rgba(0,0,0,0.5);
    border-radius: 50px;
    padding: 5px 10px;
}
.flight-results {
    display: flex;
    gap: 0px;
    align-items: stretch;
    POSITION: relative;
    margin-bottom: 0;
    flex-wrap: nowrap;
    border-bottom: 0.5px solid #D9D9D9;
    margin-left: -10px;
    margin-right: -10px;
}
.mobile-route-section {
    display: flex;
    gap: 0px;
    margin: 15px -10px;
    padding: 0 0px;
    background-color: #EFEFF0;
    border-top: 0.5px solid #D9D9D9;
    margin-bottom: 0px;
}
.flight-type {
   font-size: 9px;
    color: #007EFF;
   
}
.duration {
    font-size: 9px;
    color: #007EFF;
    font-weight: 400;
}
.lowest-fares-section {
   
    display: none;
}
.custom_flightresults .flight-card {
   
    background-color:#F2F9FF;
}
.flightwrapper {
   border-right: 0.5px solid #D9D9D9;
    width: 50%;
}
.flightwrapper:nth-child(2) {
   border-right: none;
    width: 50%;
}
.flight-results:nth-child(1) .flightwrapper {
   background-color: #F2F9FF;
}
.flight-card {
    border-radius: 0px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    box-shadow: none;
    padding: 10px;
    padding-bottom: 41px;
}
.departure, .arrival {
    text-align: center;
    min-width: auto;
}
.view-details-btn {
 
    display: none;
}
.flight_choice{
    display: none;
}
.flight-card{
    position: relative;
}
.price-section {
    display: flex;
    justify-content: space-between;
    /* padding: 14px 25px; */
    border-top: 1px solid #E0E0E0;
    padding-top: 10px;
    margin-top: 10px;
    position: absolute;
    right: 20px;
    top: -6px;
    border: none;
}
.flight-details-section {
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    position: relative;
    top: 35px;
}
.airline-section {
    display: flex;
    align-items: center;
    min-width: 60px;
    width: 20%;
    position: absolute;
    left: 15px;
    top: 12px;
}
.price {
    font-size: 14px;
    color: #171F30;
    font-weight: bold;
}
.departure .time, .arrival .time {
    font-size: 13px;
    font-weight: 600;
    color: #171F30;
    margin-bottom: 0px;
}
.flightwrapper .flight-info {
    display: flex;
    align-items: center;
    gap: 19px;
    flex: 1;
    justify-content: space-between;
    width: 100%;
    padding: 0px 0px!important;
    border-bottom: none;
}
    .mobile-controls {
        display: flex;
        gap: 10px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        margin-bottom: 20px;
        position: relative;
    }
    
    .mobile-btn {
        background: #242E45;
        color: white;
        padding: 12px 20px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 500;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .trip-options {
        display: none;
    }
    
    .search-form {
        display: none;
    }
    
   .content-wrapper {
    padding: 10px;
    padding-bottom: 0px;
}
    
    .search-section {
        padding: 20px 0;
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 80px 15px 15px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .sidebar-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        color: #666;
        font-size: 20px;
        padding: 10px;
        z-index: 1001;
    }
    
    .time-dropdown {
    position: absolute;
    top: 59%;
    left: 0;
    width: calc(101.33% - 5px);
    background: #0C1019;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
    z-index: 998;
    overflow: hidden;
    margin-top: 5px;
}
    
    .time-dropdown.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    .dropdown-option {
        padding: 12px 16px;
        border-bottom: 1px solid #242E45;
        font-size: 14px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .dropdown-option:last-child {
        border-bottom: none;
    }
    
    .dropdown-option:hover {
        background: #242E45;
        padding-left: 20px;
    }
    
    .stops-dropdown {
        position: absolute;
        top: 81%;
        left: calc(33.33% + 5px);
        width: calc(33.33% - 5px);
        background: #0C1019;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        display: none;
        z-index: 998;
        overflow: hidden;
        margin-top: 5px;
    }
    
    .stops-dropdown.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    .price-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
  .price-tabs .tab {
    flex: 1;
    min-width: 90px;
    border-right: none;
    border-bottom: none;
    padding: 4px 8px;
    background: transparent;
    box-shadow: inset 0 0 0 0.5px #DADADA;
    margin-right: 11px;
    border-radius: 6px;
}
   .mobile-hide span{
    display: none;
   }
  .tab.mobile-hide {
    display: flex;
    align-items: center;
    border: none!important;
    box-shadow: none;
}
.mobile-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #E7E7E9;
    padding: 20px;
    margin-left: -20px;
    margin-right: -20px;
}
.best-badge {
    display: block;
    font-size: 12px;
    color: #000000;
}
.best-badge  i{
    font-size: 16px;
    margin-right: 4px;
}
   .price-tabs .tab.active {
    background: #061728;
    color: #ffffff;
    border-radius: 6px!important;
}
    
    .price-tabs .tab-label {
        font-size: 10px;
        margin-bottom: 0px;
    }
    
    .price-tabs .tab-price {
        font-size: 12px;
        font-weight: 600;
    }
    
    .price-tabs .tab:last-child {
        border-right: none;
    }
    
   
   .tab.active::before{
    display: none;
   }
    .price-tabs .tab.active .tab-label{
        color: #ffffff;
    }
    .booking-info {
        position: relative;
    }
    
    .booking-info .view-details-btn {
        position: absolute;
        bottom: 15px;
        left: 15px;
        background: #F0F3F5;
        color: #000000;
        border: none;
        padding: 8px 12px;
        font-size: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        border-radius: 5px;
    }
    
    .booking-info .price {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .booking-info .price span {
        font-size: 14px;
    }
    
    .price-detail {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .phone-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
   .img_wrapper {
    gap: 10px;
    width: 100%;
}
    
    .profile_text {
        margin-left: 0;
        text-align: center;
    }
    
    .profile_call {
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
    
   button.call_btn {
    margin-left: 0;
    background: #007DFD;
    color: white;
    width: 100%;
    padding: 8px 0px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
}
    
    .call_btn::before {
        content: "\f095";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: white;
        margin-right: 8px;
    }
    
    .call_btn img {
        display: none;
    }
    
    .book_btn i {
        margin-left: 0;
    }
    .flight-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #171E30;
    transform: translateY(-50%);
    z-index: 1;
    width: 55px;
    border-radius: 8px;
    margin: 0 auto;
}
.arrival {
    position: relative;
    right: 12px;
}
}
