@media (min-width: 992px) {

    .container {
        max-width: 1020px;
    }
}

@media (min-width: 1400px) {

    .container {
        max-width: 1320px;
    }
}

@media (min-width: 576px) and (max-width:767px) {

    .container,
    .container-sm {
        max-width: 620px;
    }
}

@media (max-width:1399px) {
    .hero-slide {
        margin-bottom: 69px;
    }

    .hero-img img {
        bottom: -69px;
    }

    .concession-right .apply-btn {
        right: 0;
    }
}

@media (max-width:1199px) {
    .hero-img img {
        bottom: -57px;
    }

    .hero-slide {
        margin-bottom: 57px;
    }
}

@media (max-width: 991px) {

    .hero-content {
        flex-direction: column;
        text-align: center;

    }

    .badge-box {
        position: unset;
        transform: translateY(0);
    }

    .header-right {
        position: absolute;
        top: 83px;
        width: 100%;
        background-color: var(--white);
        z-index: 1;
        left: 0;
    }

    .header-right:has(.navbar-collapse.show) {
        border-bottom: 1px solid #f2f2f2;
    }

    .header-right .navbar-nav {
        width: 100%;
        background: #fff;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .header-right .navbar-nav li a {
        padding: 10px 0px;
    }

    .slick-dots {
        right: 5px;
    }

    .hero-text {
        order: 1;
        padding-top: 50px;
    }

    .hero-img {
        order: 2;
    }

    .hero-slide {
        margin-bottom: 106px;
    }

    .hero-img img {
        position: relative;
        max-width: 100%;
        left: 0px;
        bottom: -106px;
        margin-top: -86px;
    }

    .travel-support p {
        width: 100%;
    }

    .concession-img-wrapper img {
        margin-top: 30px;
    }

    .app-link-mobile {
        margin: 0px 0 -40px -50px;
    }

    #openFilter {
        display: block;
    }

    .filter-close-wrapper {
        display: flex !important;
    }

    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 1040;
    }

    .filter-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Filter Panel */
    .filter-panel {
        position: fixed;
        top: 0;
        max-width: 350px;
        left: -100%;
        height: 100%;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
    }

    .filter-panel.show {
        left: 0;
    }


    .select-seat-btn {
        min-width: 100px;
        padding: 8px 5px;
    }

    .payment-content-wrapper {
        flex-wrap: wrap;
    }

    .payment-content-wrapper .payment-content-left {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .payment-content-wrapper .payment-content-right {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 20px;
    }
}

@media screen and (min-width: 767px) and (max-width: 991px) {
    .bus-book-seat .col-6 {
        padding: 5px;
    }

    .seat-wrapper {
        padding: 12px;
    }

    .seat {
        width: 32px;
    }


}

@media (max-width:767px) {
    .top-bar-content {
        justify-content: space-between;
    }

    .hero-slider .slick-dots {
        bottom: 1%;
        top: unset;
        width: -webkit-fill-available;
        right: unset;
        flex-direction: column;
        display: block !important;
        gap: 12px;
    }

    .search-btn {
        width: 100%;
        padding: 16px;
        border-radius: 0px 0px 14px 14px;
    }

    .search-item:nth-child(3):after {
        width: 100%;
        height: 1px;
        top: 100%;
        right: 0;
        transform: translateY(0);
    }

    .search-item:nth-child(2):after {
        width: 100%;
        height: 1px;
        top: 100%;
        right: 0;
        transform: translateY(0);
        content: '';
        background: #B7B7B7;
        position: absolute;
    }

    .search-item:nth-child(1):after {
        width: 100%;
        height: 1px;
        top: 100%;
        right: 0;
        transform: translateY(0);
        content: '';
        background: #B7B7B7;
        position: absolute;
    }

/*    .search-item:nth-child(4):after {
        height: calc(100% - 1px);
        right: 10px;
    }*/

    .download-app-wrapper .mobile-box {
        order: 3;
    }

    .header-right {
        top: 63.95px;
    }

    .logo {
        font-size: 18px;
    }

    .logo img {
        width: 40px;
    }

    .header-right {
        gap: 28px;
    }

    .hero-img img {
        left: 1px;
        bottom: -87px;
    }

    .hero-slide {
        margin-bottom: 87px;
    }

    .mobile-seat-book {
        display: block;
    }

    .bus-name p {
        margin-bottom: 0 !important;
    }

    .bus-time {
        margin-top: 6px;
    }

    .bus-left-part {
        display: block;
    }

    .bus-time-wrapper {
        margin-left: 0;
    }

    .option-row-wrapper {
        display: none;
    }

    .desktop-bus-form {
        display: none;
    }

    .mobile-bus-form {
        display: block;
    }

    .mobile-bus-form .offcanvas {
        padding-right: 0;
        padding-left: 0;
    }

    .mobile-bus-form .offcanvas-top {
        height: fit-content !important;
    }

    .mobile-bus-form .offcanvas-body {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
    }

    .mobile-bus-form .swap2 {
        transform: rotate(90deg);
        background: #fff;
        border: 0.5px solid #c3c3c3;
        border-radius: 5px;
        z-index: 1;
        display: flex;
        position: absolute;
        padding: 8px;
        top: 55px;
        right: 20px;
    }

    .mobile-bus-form #swapBtn2 img {
        width: 20px;
    }

    .book-content-wrapper {
        display: block;
        justify-content: space-between;
    }

    .book-content-wrapper .book-content-left,
    .book-content-wrapper .book-content-right {
        width: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }

}

@media (max-width: 575px) {
    .header-right {
        top: 56.95px;
    }

    .desktop-show {
        display: none !important;
    }

    .mobile-show {
        display: block !important;
    }

    .a1 {
        font-size: 13px;
    }

    .a2 {
        font-size: 11px;
    }

    .a3 {
        font-size: 9px;
    }

    .logo {
        font-size: 12px;
    }

    .logo img {
        width: 30px;
    }

    .header .navbar-toggler {
        padding-right: 5px;
        padding-left: 5px;
    }

    .header .navbar-toggler span {
        padding-right: 5px;
        padding-left: 5px;
    }

    .top-bar-content {
        gap: 20px;
        font-size: 12px;
    }

    .top-number img {
        width: 12px;
        height: 12px;
    }

    .top-bar select {
        font-size: 12px;
    }

    .hero-slide {
        padding: 25px;
        margin-bottom: 101px;
    }

    .hero-img img {
        left: 16px;
        bottom: -101px;
    }

    .hero-text p {
        padding-right: 0;
        font-size: 14px;
        text-align: left;
    }

    .hero-slider .slick-dots {
        top: 47%;
        right: 15px;
    }

    .row:has(.hero-slide) {
        padding: 0 10px;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 10px;
    }

    .travel-support p {
        font-size: 13px;
    }

    .main-heading {
        font-size: 25px;
    }

    .route-content {
        padding: 33px 20px;
    }

    .route-btns-content .btn {
        font-size: 12px;
        padding: 7px 17px;

    }

    .concession-wrapper {
        padding: 33px 20px;
    }

    .concession-right .apply-btn {
        bottom: 40px;
    }

    .destinations-box {
        padding: 33px 20px;
    }

    .download-app-wrapper {
        padding: 40px 20px;
    }

    .hero-text {
        padding-left: 0;
        padding-right: 0;
    }

    .app-link-btn {
        padding: 10px 0px;
        font-size: 12px;
        min-width: 92px;
    }

    .phone-wrapper {
        gap: 15px;
    }

    .phone-wrapper input {
        min-width: unset;
        padding-right: 0 !important;
        font-size: 13px;
    }

    .concession-left .col-md-6 p {
        padding-right: 0px;
        font-size: 13px;
    }

    .concession-left img {
        margin-right: 14px;
    }

    .iti {
        font-size: 13px;
    }

    .iti__selected-flag {
        padding: 0;
    }

    .filter-box {
        width: 100%;
    }

    .filter-panel {
        width: 100%;
    }

    .bus-time {
        font-size: 13px;
    }

    .bus-time small {
        display: none;
    }

    .bus-book-seat .col-6:first-child {
        padding-right: 3px;
    }

    .bus-book-seat .col-6:last-child {
        padding-left: 3px;
    }

    .seat-wrapper {
        padding: 12px;
    }

    .seat {
        width: 32px;
    }

    .sleeper {
        height: 60px;
    }

    .provider-seat .provide-left {
        width: 50%;
    }

    .lower-right-seat,
    .upper-right-seat {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .complete-txt-box h5 {
        font-size: 18px;
    }

    .complete-txt-box p {
        font-size: 13px;
    }

    .journey-start,
    .journey-end {
        width: 100%;
        max-width: 100%;
    }

    .journey-start-end {
        display: block;
    }

    .journey-consume-time {
        margin: 30px 0;
        text-align: left;
    }

    .journey-consume-time b {
        display: block;
    }

    .journey-consume-time p:before {
        content: none;
    }

    .toggle-btn #toggleText {
        font-size: 10px;
    }

    .toggle-btn #toggleIcon {
        font-size: 11px;
    }

    .option-row h6 {
        font-size: 16px;
    }

    .login-payment .right .btn {
        margin-left: 10px;
        min-width: auto;
    }

    .pymnt-opt-img {
        width: 30px;
        height: fit-content;
    }
}

@media (max-width:400px) {
    .top-bar-content {
        gap: 14px;
    }

    .header .navbar-toggler {
        font-size: 13px;
    }

    .logo br {
        display: block;
    }
}