
@media (max-width: 991px) {
    .splmodify #bus_form .normalinput.form-control{
        border: none !important;
    }
    .busrows.madgrid {
        display: block !important;
        position: relative !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
        overflow: hidden !important;
    }

    .splmodify #bus_form .searchsbmtfot{
        height: 60px;
    }
    .splmodify #bus_form .full_smal_tab .borderinp, .splmodify #bus_form .bus_dte .borderinp{
        border: none !important;
    }

    .splmodify #bus_form .bus_dte .borderinp{
        height: 1px;
    }
    .fiftywirdt1.dflex {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        margin-bottom: 15px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px dashed #eee !important;
    }

    .icon_bus {
        position: static !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }

    .icon_bus img {
        width: 35px !important;
        height: auto !important;
    }

    .mobile_pad_bus {
        padding: 0 !important;
        flex-grow: 1 !important;
    }

    .busername.travel-name {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
    }

    .bustype.bus-type {
        font-size: 13px !important;
        color: #666 !important;
        font-weight: 400 !important;
    }

    .fiftywirdt2 {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 15px !important;
        padding: 0 5px !important;
    }

    .fiftywirdt2 > div {
        width: auto !important;
        flex: 1 !important;
    }

    .fiftywirdt2 .cenertext {
        text-align: center !important;
    }

    .bigtimef {
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #333 !important;
        display: block !important;
        margin-bottom: 4px !important;
    }

    .fiftywirdt2 span {
        font-size: 12px !important;
        color: #888 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .arowwspr {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile_clock {
        display: block !important;
        font-size: 14px !important;
        color: #ff6b00 !important;
        margin-bottom: 2px !important;
    }

    .durtnlabls.duration {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #666 !important;
        background: #f0f0f0 !important;
        padding: 2px 8px !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
    }

    .full_bus_prices {
        position: static !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 15px !important;
        border-top: 1px solid #f5f5f5 !important;
    }

    .mobile_rt {
        width: auto !important;
        float: none !important;
    }

    .seatcnt {
        font-size: 13px !important;
        color: #2ecc71 !important;
        font-weight: 600 !important;
        margin-bottom: 0 !important;
    }

    .bustprice {
        font-size: 20px !important;
        font-weight: 800 !important;
        color: #ff6b00 !important;
        margin-bottom: 5px !important;
        text-align: right !important;
    }

    .bustprice strong {
        font-size: 14px !important;
        margin-right: 2px !important;
    }

    .bookbuss.bus-info-btn {
        margin-top: 5px !important;
    }

    .inner-summary-btn.bookallbtn {
       display: block !important;
        width: 100% !important;
        background: linear-gradient(135deg, #ff8d28 0%, #ff6b00 100%) !important;
        color: #fff !important;
        border: none !important;
        padding: 5px 10px !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2) !important;
        transition: all 0.3s ease !important;
    }

    .bookbus_mobile {
        display: none !important;
    }

    .bus-menu.list-inline {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        /* padding: 12px 0 !important;
        margin: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; */
    }

    .bus-menu.list-inline::-webkit-scrollbar {
        display: none !important;
    }

    .bus-menu li {
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .bus-tab-toggle {
        font-size: 12px !important;
        display: block !important;
    }

    .bus-tab-toggle:hover, .bus-tab-toggle:focus {
        background: #e9ecef !important;
        color: #ff6b00 !important;
    }

    .bus-menu.list-inline > .hide {
    }

    .bus-pickup-drop-body, .panel-body {
        padding: 10px !important;
    }

    .table-bordered.bus-pd-table, 
    .table-bordered.bus-viewmore-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        border: 0 !important;
    }

    .bus-pd-table thead th {
        background: #f8f9fa !important;
        font-size: 12px !important;
        padding: 10px 8px !important;
        white-space: nowrap !important;
        width: auto !important;
    }

    .bus-pd-table tbody td,
    .bus-viewmore-table tbody td {
        font-size: 12px !important;
        padding: 8px !important;
        min-width: 80px !important;
    }
    @media (max-width: 767px) {
        .layoutonly {
            display: flex !important;
            gap: 20px !important;
            justify-content: left !important;
            width: 100% !important;
            overflow-x: auto !important;
        }

        .upnddown {
            flex: 1 !important;
            min-width: 280px !important; 
            background: #f8f9fa !important;
            padding: 15px !important;
            border-radius: 16px !important;
            margin-bottom: 20px !important;
            border: 1px solid #e9ecef !important;
        }

        .upnddown table {
            width: 100% !important;
            border-collapse: separate !important;
            border-spacing: 0 12px !important; 
        }

        .upnddown::before {
            content: "Lower deck";
            display: block;
            font-weight: 700;
            font-size: 16px;
            color: #333;
            margin-bottom: 20px;
            padding-left: 5px;
        }

        .upnddown:nth-of-type(2)::before {
            content: "Upper deck";
        }

        .ssss tr:first-child td:first-child {
            background-image: url('../../../../images/seats/steering.png');
            background-repeat: no-repeat;
            background-position: center 10px;
            background-size: 30px;
        }
        .ssss tr:first-child td:first-child img[src*="steering.png"] {
            display: none !important;
        }

        .ssss tr:first-child td:first-child img[src*="lower.jpg"],
        .ssss tr:first-child td:first-child img[src*="upper.jpg"] {
            display: none !important;
        }

        .ssss td {
            padding: 0 4px !important; 
            vertical-align: bottom !important;
            text-align: center;
        }

        .ssss td img {
            width: 100% !important;
            max-width: 40px !important;
            height: auto !important;
            border-radius: 8px !important;
            border: 1px solid transparent !important;
            transition: all 0.2s ease !important;
            background-color: #fff;
            padding: 15px 5px;
        }

        .ssss td img[src*="-IG.png"] { border-color: #27ae60 !important; }
        .ssss td img[src*="-F.png"] { border-color: #e91e63 !important; }
        .ssss td img[src*="-M.png"] { border-color: #2196f3 !important; }

        .ssss td img[src*="-B-"], 
        .ssss td img.disable-select {
            filter: grayscale(1) !important;
            opacity: 0.4 !important;
            border-color: #e0e0e0 !important;
            background: #f0f0f0 !important;
        }
        .ssss td.empty {
             background: none !important;
        }

        .ssss td::after {
            content: attr(data-price);
            display: block;
            font-size: 11px;
            font-weight: 600;
            text-align: center;
            color: #555;
            margin-top: 4px;
        }
        .ssss td.empty::after {
            content: "";
        }
        .ssss td img.disable-select::after {
            content: "Sold";
            color: #999;
        }

        .col-md-5.col-sm-12[style*="border"] {
            margin-top: 20px !important;
            height: auto !important;
            border: none !important;
            background: #fff !important;
            border-radius: 12px !important;
            box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
            padding: 20px !important;
        }

        .seat-side-panel { padding: 0 !important; }
        .fareamount { font-weight: 600 !important; color: #555 !important; }
        #side-selected-seat-price-0 { color: #ff8d28 !important; font-size: 18px !important; font-weight: 700 !important; }

        .priceanlo {
            background: #fff !important;
            padding: 20px !important;
            border-radius: 12px !important;
            margin-top: 20px !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
        }
        .priceanlo table { width: 100% !important; }
        .seat_set { font-size: 13px !important; color: #444 !important; padding-left: 10px !important; }
    }
}

@media (max-width: 480px) {

    .busrows.madgrid {
        padding: 12px !important;
    }

    .bigtimef {
        font-size: 15px !important;
    }

    .busername.travel-name {
        font-size: 14px !important;
    }

    .bustprice {
        font-size: 18px !important;
    }

    .icon_bus img {
        width: 30px !important;
    }

    .durtnlabls.duration {
        font-size: 10px !important;
        padding: 1px 6px !important;
    }
}

@media (max-width: 320px) {
    .fiftywirdt2 {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .bus-tab-toggle {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }

    .bustprice {
        font-size: 16px !important;
    }
    
    .seatcnt {
        font-size: 12px !important;
    }
}

