
    /* Main Bus List Container */
    .bus-list-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    body {
        background-color: #f5f7fa;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* Bus Card Styling */
    .bus-card {
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        margin-bottom: 30px;
        overflow: hidden;
        transition: all 0.3s ease;
        border: none;
        background-color: white;
    }

    .bus-card:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        transform: translateY(-5px);
    }

    .bus-card-header {
        background: linear-gradient(135deg, #2c3e50, #4ca1af);
        padding: 18px 25px;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bus-card-body {
        padding: 25px;
    }

    .bus-info {
        display: flex;
        flex-direction: column;
    }

    .bus-name {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bus-number {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 12px;
        background: rgba(0, 0, 0, 0.15);
        padding: 4px 10px;
        border-radius: 20px;
        display: inline-block;
        width: fit-content;
    }

    .bus-meta {
        display: flex;
        gap: 20px;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .bus-meta-item {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .bus-meta-item i {
        font-size: 1.1rem;
    }

    .bus-price {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .price-from {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 5px;
    }

    .price-amount {
        font-size: 1.8rem;
        font-weight: 700;
        color: white;
        line-height: 1;
    }

    .price-per-seat {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Amenities */
    .bus-amenities {
        display: flex;
        gap: 15px;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .amenity {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.85rem;
        color: #555;
        background-color: #f0f4f8;
        padding: 5px 10px;
        border-radius: 20px;
    }

    .amenity i {
        color: #4ca1af;
    }

    /* Journey Timeline */
    .journey-timeline {
        display: flex;
        align-items: center;
        padding: 20px 0;
        margin: 20px 0;
        position: relative;
    }

    .timeline-point {
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 2;
        min-width: 100px;
    }

    .timeline-time {
        font-weight: 700;
        font-size: 1.1rem;
        color: #2c3e50;
        margin-bottom: 5px;
    }

    .timeline-city {
        font-size: 0.9rem;
        color: #666;
        font-weight: 500;
        text-align: center;
    }

    .timeline-line {
        flex-grow: 1;
        height: 4px;
        background-color: #e0e6ed;
        position: relative;
        margin: 0 15px;
        border-radius: 2px;
    }

    .timeline-progress {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(90deg, #4ca1af, #2c3e50);
        border-radius: 2px;
    }

    .timeline-duration {
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.85rem;
        color: #666;
        background-color: white;
        padding: 2px 10px;
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
    }

    /* Buttons */
    .show-seats-btn {
        background: linear-gradient(135deg, #ff6b35, #ff8e53);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 600;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
    }

    .show-seats-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
    }

    .show-seats-btn i {
        font-size: 1rem;
    }

    /* Off-canvas Seat Layout */
    .offcanvas-seat-layout {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 1000px;
        height: 100vh;
        background-color: white;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    }

    .offcanvas-seat-layout.show {
        transform: translateX(0);
    }

    .offcanvas-header {
        padding: 18px 25px;
        border-bottom: 1px solid #e0e6ed;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 2;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .offcanvas-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .btn-close {
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: #6c757d;
        transition: all 0.2s;
        line-height: 1;
    }

    .btn-close:hover {
        color: #2c3e50;
        transform: rotate(90deg);
    }

    .offcanvas-body {
        padding: 25px;
    }

    /* Deck Navigation */
    .deck-nav {
        display: flex;
        border-bottom: 2px solid #e0e6ed;
        margin-bottom: 20px;
    }

    .deck-tab {
        padding: 12px 25px;
        cursor: pointer;
        font-weight: 600;
        color: #6c757d;
        border-bottom: 3px solid transparent;
        transition: all 0.2s;
        position: relative;
        bottom: -2px;
    }

    .deck-tab.active {
        color: #2c3e50;
        border-bottom-color: #4ca1af;
    }

    .deck-tab:hover:not(.active) {
        color: #2c3e50;
        border-bottom-color: #adb5bd;
    }

    /* Seat Filters */
    .seat-filters {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        border: 1px solid #e0e6ed;
        background-color: white;
        border-radius: 20px;
        cursor: pointer;
        color: #555;
        transition: all 0.2s;
        font-weight: 500;
    }

    .filter-btn.active {
        background-color: #4ca1af;
        color: white;
        border-color: #4ca1af;
    }

    .filter-btn:hover:not(.active) {
        background-color: #f0f4f8;
        border-color: #d0dae4;
    }

    /* Seat Layout Container */
    .seat-layout-container {
        display: flex;
        gap: 30px;
    }

    .seat-map-column {
        flex: 2;
    }

    .seat-summary-column {
        flex: 1;
    }

    /* Seat Map Styling */
    .seat-map {
        background-color: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #e0e6ed;
    }

    .deck-title {
        font-size: 1.1rem;
        color: #2c3e50;
        margin-bottom: 20px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e0e6ed;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .bus-layout {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 15px 5px;
        margin-bottom: 20px;
    }

    .bus-column {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .seat-box {
        width: 35px;
        height: 35px;
        background-color: #f0f4f8;
        border: 2px solid #d0dae4;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
        overflow: hidden;
    }

    .seat-box.sleeper {
        height: 68px;
        border-radius: 6px;
    }

    .seat-number {
        position: absolute;
        bottom: 120%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        visibility: hidden;
    }

    .seat:hover .seat-number {
        opacity: 1;
        visibility: visible;
    }


    .seat-price {
        font-size: 0.4rem;
        color: #000000ff;
        position: absolute;
        bottom: 4px;
        z-index: 1;
    }

    /* Seat Statuses */
    .seat-available {
        background-color: #e8f4f8;
        border-color: #4ca1af;
        color: #2c3e50;
    }

    .seat-available:hover {
        background-color: #d8e8f0;
        transform: translateY(-3px);
        box-shadow: 0 3px 10px rgba(76, 161, 175, 0.2);
    }

    .seat-booked {
        background-color: #f8e8e8;
        border-color: #e74c3c;
        color: #c0392b;
        cursor: not-allowed;
        position: relative;
        overflow: hidden;
    }

    .seat-booked::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background-color: #c0392b;
        transform: rotate(-45deg);
    }

    .seat-female {
        background-color: #fce8f3;
        border-color: #d63384;
        color: #a61e4d;
        cursor: not-allowed;
    }

    /* Ladies Only Reserved Seat Styling */
    .seat-ladies-only {
        border: 2px dashed #d63384 !important;
        /* Pink dashed border */
        background-color: #fff0f6;
        color: #2c3e50;
    }

    .seat-ladies-only:hover {
        background-color: #fce8f3;
    }

    .seat-selected {
        background-color: #e1f0fa;
        border: 2px solid #3498db;
        color: #2980b9;
        box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    }

    .empty-space {
        width: 35px;
        height: 5px;
        visibility: hidden;
    }

    .seat-box.sleeper.empty-space {
        height: 75px;
    }

    /* Legend */
    .seat-legend {
        background-color: white;
        border-radius: 10px;
        padding: 20px;
        margin-top: 25px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #e0e6ed;
    }

    .legend-title {
        font-size: 1rem;
        color: #2c3e50;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .legend-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .legend-item {
        display: flex;
        align-items: center;
        font-size: 0.85rem;
        color: #555;
        gap: 8px;
    }

    .legend-color {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }

    /* Seat Summary */
    .seat-summary {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        padding: 25px;
        position: sticky;
        top: 20px;
        border: 1px solid #e0e6ed;
    }

    .summary-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e6ed;
    }

    .journey-details {
        margin-bottom: 25px;
    }

    .detail-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .detail-label {
        color: #6c757d;
        font-weight: 500;
    }

    .detail-value {
        font-weight: 600;
        color: #2c3e50;
        text-align: right;
    }

    .point-select {
        margin: 20px 0;
    }

    .point-select label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #555;
    }

    .point-select select {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #d0dae4;
        border-radius: 8px;
        font-size: 0.95rem;
        background-color: white;
        transition: all 0.2s;
    }

    .point-select select:focus {
        border-color: #4ca1af;
        box-shadow: 0 0 0 3px rgba(76, 161, 175, 0.2);
        outline: none;
    }

    .selected-seats {
        margin: 25px 0;
    }

    .no-seats {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        color: #6c757d;
        font-size: 0.95rem;
        border: 1px dashed #d0dae4;
    }

    .seats-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .seat-badge {
        background-color: #e1f0fa;
        color: #2980b9;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 500;
        border: 1px solid #c5e3f5;
    }

    .seat-badge i {
        cursor: pointer;
        font-size: 0.8rem;
        color: #6c757d;
        transition: all 0.2s;
    }

    .seat-badge i:hover {
        color: #e74c3c;
    }

    .total-amount {
        font-size: 1.3rem;
        font-weight: 700;
        color: #27ae60;
        text-align: right;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e0e6ed;
    }

    .proceed-btn {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #f5a525ff, #ffa11eff);
        color: white;
        border: none;
        border-radius: 30px;
        font-weight: 600;
        margin-top: 20px;
        transition: all 0.3s;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    }

    .proceed-btn:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    }

    .proceed-btn:disabled {
        background: #bdc3c7;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* Passenger Form */
    .passenger-form {
        display: none;
        animation: fadeIn 0.3s ease-out;
        margin-top: 30px;
        background-color: white;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid #e0e6ed;
    }

    .form-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 25px;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e6ed;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.95rem;
        font-weight: 500;
        color: #555;
    }

    .form-control {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #d0dae4;
        border-radius: 8px;
        font-size: 0.95rem;
        background-color: white;
        transition: all 0.2s;
    }

    .form-control:focus {
        border-color: #4ca1af;
        box-shadow: 0 0 0 3px rgba(76, 161, 175, 0.2);
        outline: none;
    }

    .form-actions {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #e0e6ed;
    }

    .back-btn {
        padding: 10px 20px;
        background: linear-gradient(135deg, #6c757d, #95a5a6);
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 0.95rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .back-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
    }

    .payment-btn {
        padding: 10px 25px;
        background: linear-gradient(135deg, #ff6b35, #ff8e53);
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 0.95rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }

    .payment-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }

    /* Overlay for offcanvas */
    .offcanvas-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .offcanvas-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Points Modal */
    .points-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1060;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .points-modal.show {
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        background-color: white;
        border-radius: 12px;
        width: 90%;
        max-width: 600px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .points-modal.show .modal-content {
        transform: translateY(0);
    }

    .modal-header {
        padding: 20px;
        border-bottom: 1px solid #e0e6ed;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 1;
    }

    .modal-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: #6c757d;
        transition: all 0.2s;
        line-height: 1;
    }

    .modal-close:hover {
        color: #2c3e50;
        transform: rotate(90deg);
    }

    .modal-body {
        padding: 20px;
    }

    .points-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .point-item {
        padding: 15px;
        border-bottom: 1px solid #e0e6ed;
        cursor: pointer;
        transition: all 0.2s;
    }

    .point-item:last-child {
        border-bottom: none;
    }

    .point-item:hover {
        background-color: #f8f9fa;
    }

    .point-name {
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 5px;
    }

    .point-time {
        font-size: 0.9rem;
        color: #6c757d;
    }

    .point-address {
        font-size: 0.85rem;
        color: #95a5a6;
        margin-top: 5px;
    }

    /* Responsive Adjustments */
    @media (max-width: 1200px) {
        .bus-name {
            font-size: 1.3rem;
        }

        .price-amount {
            font-size: 1.6rem;
        }
    }

    @media (max-width: 992px) {
        .seat-layout-container {
            flex-direction: column;
        }

        .seat-summary {
            position: static;
        }

        .offcanvas-seat-layout {
            max-width: 100%;
        }

        .form-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .bus-card-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }

        .bus-price {
            text-align: left;
            width: 100%;
        }

        .bus-meta {
            flex-wrap: wrap;
        }

        .seat-box {
            width: 50px;
            height: 50px;
        }

        .seat-box.sleeper {
            height: 70px;
        }

        .offcanvas-body {
            padding: 20px;
        }

        .deck-tab {
            padding: 10px 15px;
            font-size: 0.95rem;
        }
    }

    @media (max-width: 576px) {
        .bus-list-container {
            padding: 15px;
        }

        .bus-card {
            margin-bottom: 20px;
        }

        .bus-card-header {
            padding: 15px;
        }

        .bus-card-body {
            padding: 20px;
        }

        .timeline-point {
            min-width: 80px;
        }

        .timeline-time {
            font-size: 1rem;
        }

        .timeline-city {
            font-size: 0.85rem;
        }

        .seat-box {
            width: 45px;
            height: 45px;
        }

        .seat-box.sleeper {
            height: 65px;
        }

        .legend-items {
            grid-template-columns: 1fr;
        }

        .modal-content {
            width: 95%;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Loading Spinner */
    .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
        margin-right: 8px;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Razorpay Payment Button */
    .razorpay-payment-button {
        display: none;
    }

    .bus-details-offcanvas {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 800px;
        height: 100vh;
        background-color: white;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    }

    .bus-details-offcanvas.show {
        transform: translateX(0);
    }

    .bus-details-header {
        padding: 18px 25px;
        border-bottom: 1px solid #e0e6ed;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 2;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .bus-details-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bus-details-body {
        padding: 25px;
    }

    .bus-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }

    .bus-main-image {
        grid-column: span 2;
        height: 250px;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }

    .bus-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .bus-thumbnail {
        height: 100px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
    }

    .bus-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

    .bus-thumbnail:hover img {
        transform: scale(1.05);
    }

    .details-section {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e0e6ed;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bus-specs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .spec-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background-color: #f8f9fa;
        border-radius: 8px;
    }

    .spec-icon {
        width: 36px;
        height: 36px;
        background-color: #e8f4f8;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #4ca1af;
        font-size: 1.1rem;
    }

    .spec-label {
        font-size: 0.9rem;
        color: #6c757d;
    }

    .spec-value {
        font-weight: 600;
        color: #2c3e50;
        margin-top: 3px;
    }

    .amenities-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .amenity-card {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background-color: #f8f9fa;
        border-radius: 8px;
        transition: all 0.2s;
    }

    .amenity-card:hover {
        background-color: #e8f4f8;
        transform: translateY(-3px);
    }

    .amenity-icon {
        font-size: 1.2rem;
        color: #4ca1af;
    }

    .amenity-name {
        font-weight: 500;
        color: #2c3e50;
    }

    .policy-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px dashed #e0e6ed;
    }

    .policy-title {
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .policy-desc {
        font-size: 0.9rem;
        color: #6c757d;
        line-height: 1.5;
    }

    .review-card {
        background-color: #f8f9fa;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .review-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .reviewer {
        font-weight: 600;
        color: #2c3e50;
    }

    .review-date {
        font-size: 0.8rem;
        color: #95a5a6;
    }

    .review-rating {
        color: #f39c12;
        margin-bottom: 8px;
    }

    .review-text {
        font-size: 0.9rem;
        color: #555;
        line-height: 1.5;
    }

    .view-more-btn {
        display: inline-block;
        padding: 8px 15px;
        background-color: #f0f4f8;
        color: #4ca1af;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.2s;
    }

    .view-more-btn:hover {
        background-color: #e8f4f8;
        color: #2c3e50;
    }

    /* Responsive adjustments for bus details */
    @media (max-width: 768px) {
        .bus-gallery {
            grid-template-columns: 1fr;
        }

        .bus-main-image {
            grid-column: span 1;
            height: 200px;
        }

        .bus-specs {
            grid-template-columns: 1fr;
        }

        .amenities-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .amenities-grid {
            grid-template-columns: 1fr;
        }

        .bus-details-body {
            padding: 20px;
        }
    }

    /* --- Offcanvas Setup --- */
    .bus-details-offcanvas {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 600px;
        height: 100vh;
        background: #fff;
        z-index: 1055;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
    }

    .bus-details-offcanvas.show {
        transform: translateX(0);
    }

    /* --- Hidden Scrollbar Logic --- */
    .scroll-container {
        overflow-y: scroll;
        flex: 1;
        scroll-behavior: smooth;
    }

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

    .scroll-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* --- Sticky Header --- */
    .rb-sticky-header {
        background: #fff;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .bus-details-header {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .rating-badge-header {
        background: #27ae60;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* --- Tabs --- */
    .rb-tabs-wrapper {
        padding: 0 10px;
        background: #fff;
    }

    .rb-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        border-bottom: none;
        gap: 15px;
    }

    .rb-tabs::-webkit-scrollbar {
        display: none;
    }

    .rb-tabs .nav-link {
        color: #666;
        font-weight: 600;
        padding: 12px 5px;
        font-size: 14px;
        border: none;
        border-bottom: 3px solid transparent;
        cursor: pointer;
    }

    .rb-tabs .nav-link.active {
        color: #d84e55;
        border-bottom-color: #d84e55;
    }

    /* --- Content Styling --- */
    .bus-details-body {
        padding: 20px;
        background: #f9f9f9;
    }

    .rb-section {
        scroll-margin-top: 140px;
        /* Important for sticky header offset */
    }

    .rb-sec-title {
        font-weight: 700;
        color: #333;
        margin-bottom: 20px;
        font-size: 16px;
    }

    .rb-divider {
        margin: 30px 0;
        border-top: 1px dashed #ddd;
        opacity: 1;
    }

    .rb-carousel .carousel-item img {
        height: 220px;
        object-fit: cover;
        border-radius: 8px;
    }

    .rb-usp-list {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .rb-usp-item {
        background: #fff;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        color: #444;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* --- Route Timeline (Advanced) --- */
    .route-timeline-wrapper {
        padding-left: 10px;
    }

    .rt-stop {
        display: flex;
        align-items: center;
        gap: 15px;
        position: relative;
        z-index: 2;
    }

    .rt-time {
        width: 70px;
        text-align: right;
        font-weight: 700;
        color: #333;
        font-size: 14px;
    }

    .rt-icon {
        width: 24px;
        display: flex;
        justify-content: center;
    }

    .rt-info {
        flex: 1;
    }

    .rt-city {
        font-weight: 700;
        font-size: 15px;
        color: #222;
    }

    .rt-meta {
        font-size: 12px;
        color: #888;
    }

    .dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid #999;
        background: #fff;
    }

    .dot.start {
        border-color: #27ae60;
        background: #27ae60;
    }

    .dot.end {
        border-color: #d84e55;
        background: #d84e55;
    }

    .dot.stop {
        width: 10px;
        height: 10px;
        background: #666;
        border: none;
    }

    .rt-connector {
        display: flex;
        gap: 15px;
        height: 30px;
        align-items: center;
    }

    .rt-connector .line {
        width: 2px;
        height: 100%;
        background: #ddd;
        margin-left: 96px;
        /* Alignment math */
    }


    /* --- Point List --- */
    .rb-point-row {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
    }

    .rb-point-time {
        width: 50px;
        font-weight: 700;
        font-size: 14px;
        text-align: right;
    }

    .rb-point-marker {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #333;
        margin-top: 5px;
        position: relative;
    }

    .rb-point-marker.red {
        background: #d84e55;
    }

    .rb-point-marker::after {
        content: '';
        position: absolute;
        top: 12px;
        left: 5px;
        bottom: -25px;
        width: 2px;
        background: #e0e0e0;
    }

    .rb-point-row:last-child .rb-point-marker::after {
        display: none;
    }

    .rb-loc-name {
        font-weight: 600;
        font-size: 14px;
        color: #333;
    }

    .rb-loc-meta {
        font-size: 12px;
        color: #777;
    }

    .rb-amenity-item {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        border: 1px solid #eee;
        transition: 0.2s;
    }

    .rb-amenity-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .rb-amenity-item i {
        font-size: 24px;
        color: #d84e55;
        display: block;
        margin-bottom: 5px;
    }

    /* Container Fix */
    .rb-carousel {
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        background: #000;
        /* Loading ke time black dikhe */
    }

    /* Image Fit Fix */
    .rb-carousel .carousel-item img {
        width: 100%;
        height: 220px;
        /* Fixed height */
        object-fit: cover;
        /* Image stretch nahi hogi */
        cursor: zoom-in;
        /* Cursor change hoga */
        transition: transform 0.3s ease;
    }

    /* Hover Effect */
    .rb-carousel .carousel-item:hover img {
        transform: scale(1.03);
        /* Thoda zoom hoga hover pe */
        opacity: 0.9;
    }

    /* Overlay Text (View Gallery) */
    .gallery-overlay {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        pointer-events: none;
        /* Click through styling */
        backdrop-filter: blur(2px);
    }

                .bus-card {
                    background: #fff;
                    border-radius: 20px;
                    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
                    padding: 20px;
                    margin-bottom: 20px;
                    border: 1px solid #f0f0f0;
                    font-family: 'Segoe UI', sans-serif;
                }

                /* Top Section: Info, Rating, Time, Price */
                .bus-card-top {
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;
                    margin-bottom: 15px;
                }

                /* 1. Brand Info */
                .bus-brand-info {
                    flex: 2;
                }

                .bus-name {
                    font-size: 18px;
                    font-weight: 700;
                    color: #000;
                    margin-bottom: 5px;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }

                .bus-type {
                    font-size: 13px;
                    color: #777;
                }

                /* 2. Rating Box */
                .rating-box {
                    background-color: #e67e22;
                    /* Matches the orange/brown in image */
                    color: white;
                    padding: 2px 6px;
                    border-radius: 4px;
                    font-weight: bold;
                    font-size: 14px;
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;
                    margin-right: 30px;
                    /* Spacing */
                }

                /* 3. Timing Section */
                .journey-timing {
                    flex: 2;
                    text-align: center;
                }

                .time-row {
                    font-size: 18px;
                    font-weight: 600;
                    color: #333;
                }

                .time-duration {
                    font-size: 13px;
                    color: #888;
                    margin-top: 4px;
                }

                .seats-left {
                    color: #d35400;
                    /* Orange text for seats */
                    font-weight: 500;
                }

                /* 4. Price Section */
                .price-section {
                    flex: 1;
                    text-align: right;
                }

                .price-tag {
                    font-size: 20px;
                    font-weight: 700;
                    color: #000;
                }

                .onwards-text {
                    font-size: 12px;
                    color: #777;
                }

                /* Divider */
                .dashed-divider {
                    border-top: 1px dashed #ddd;
                    margin: 0 -20px 15px -20px;
                    /* Negative margin to touch edges */
                }

                /* Bottom Section: Links & Button */
                .bus-card-bottom {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding-top: 5px;
                }

                .bottom-links {
                    display: flex;
                    gap: 20px;
                }

                .bottom-links a {
                    font-size: 13px;
                    color: #4f46e5;
                    /* Blue link color */
                    text-decoration: none;
                    font-weight: 500;
                }

                .bottom-links a:hover {
                    text-decoration: underline;
                }

                .vertical-sep {
                    color: #ddd;
                    margin: 0 5px;
                }

                .view-seats-btn {
                    background-color: #fa9e14;
                    /* Red color */
                    color: white;
                    border: none;
                    padding: 10px 25px;
                    border-radius: 25px;
                    /* Pill shape */
                    font-weight: 600;
                    cursor: pointer;
                    transition: background 0.2s;
                }

                .view-seats-btn:hover {
                    background-color: #eb8620;
                }
        
                .elegant-bus-card {
                    width: 100%;
                    border-radius: 12px;
                    overflow: hidden;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                    background: white;
                    font-family: 'Segoe UI', sans-serif;
                    margin-bottom: 20px;
                    border: 1px solid #eaeaea;
                }

                .bus-top-section {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 16px;
                    background: #2c3e50;
                    color: white;
                }

                .bus-brand {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                }

                .bus-brand i {
                    font-size: 24px;
                    color: #f39c12;
                }

                .bus-brand h3 {
                    margin: 0;
                    font-size: 18px;
                }

                .bus-spec {
                    margin: 4px 0 0;
                    font-size: 12px;
                    opacity: 0.8;
                }

                .bus-rating {
                    text-align: right;
                }

                .rating-badge {
                    display: block;
                    font-weight: bold;
                    color: #f39c12;
                }

                .reviews {
                    font-size: 12px;
                    opacity: 0.8;
                }

                .journey-section {
                    padding: 16px;
                    border-bottom: 1px solid #eee;
                }

                .timeline {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 16px;
                }

                .departure,
                .arrival {
                    text-align: center;
                }

                .time {
                    font-size: 20px;
                    font-weight: bold;
                    color: #2c3e50;
                }

                .city {
                    font-size: 14px;
                    color: #7f8c8d;
                }

                .duration {
                    flex-grow: 1;
                    padding: 0 12px;
                    position: relative;
                }

                .duration-line {
                    height: 2px;
                    background: #f39c12;
                    position: relative;
                }

                .duration-line:before,
                .duration-line:after {
                    content: '';
                    position: absolute;
                    width: 8px;
                    height: 8px;
                    background: #f39c12;
                    border-radius: 50%;
                    top: -3px;
                }

                .duration-line:before {
                    left: 0;
                }

                .duration-line:after {
                    right: 0;
                }

                .duration-text {
                    position: absolute;
                    top: -20px;
                    left: 50%;
                    transform: translateX(-50%);
                    background: white;
                    padding: 0 8px;
                    font-size: 12px;
                    color: #7f8c8d;
                }

                .amenities {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 12px;
                }

                .amenity {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    font-size: 13px;
                    color: #2c3e50;
                }

                .amenity i {
                    color: #f39c12;
                }

                .action-section {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 16px;
                }

                .pricing {
                    display: flex;
                    flex-direction: column;
                }

                .original-price {
                    font-size: 14px;
                    text-decoration: line-through;
                    color: #7f8c8d;
                }

                .discounted-price {
                    font-size: 22px;
                    font-weight: bold;
                    color: #2c3e50;
                }

                .save-amount {
                    font-size: 12px;
                    color: #27ae60;
                    font-weight: 500;
                }

                .availability {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-end;
                }

                .availability span {
                    font-size: 13px;
                    color: #e74c3c;
                    margin-bottom: 4px;
                }

                .book-btn {
                    background: #f39c12;
                    color: white;
                    border: none;
                    padding: 8px 20px;
                    border-radius: 6px;
                    font-weight: bold;
                    cursor: pointer;
                    transition: all 0.3s;
                }

                .book-btn:hover {
                    background: #e67e22;
                }

                .additional-info {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 12px 16px;
                    background: #f8f9fa;
                    border-top: 1px solid #eee;
                    font-size: 13px;
                    color: #7f8c8d;
                }

                .details-btn {
                    background: none;
                    border: none;
                    color: #f39c12;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    font-size: 13px;
                }

                /* Add this to your CSS */
                .seat-ladies-only {
                    border: 2px dashed #d63384 !important;
                    /* Pink dashed border */
                    background-color: #fff0f6;
                    color: #2c3e50;
                }

                .seat-ladies-only:hover {
                    background-color: #fce8f3;
                }

                .seat-summary {
                    background: #fff;
                    border-radius: 12px;
                    padding: 18px;
                    border: 1px solid #eee;
                }

                .summary-title {
                    font-size: 16px;
                    font-weight: 600;
                    margin-bottom: 14px;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }

                .journey-details {
                    margin-bottom: 16px;
                }

                .detail-row {
                    display: flex;
                    justify-content: space-between;
                    font-size: 14px;
                    padding: 6px 0;
                    border-bottom: 1px dashed #eee;
                }

                .detail-row:last-child {
                    border-bottom: none;
                }

                .detail-label {
                    color: #777;
                    font-weight: 500;
                }

                .detail-value {
                    color: #222;
                    font-weight: 600;
                }

                .detail-row.highlight {
                    background: #f8f9fa;
                    padding: 8px;
                    border-radius: 6px;
                }

                .point-select select {
                    border-radius: 8px;
                    font-size: 14px;
                }

                .no-seats {
                    font-size: 13px;
                    color: #999;
                    padding: 8px 0;
                }

                .proceed-btn {
                    width: 100%;
                    background: #dc3545;
                    color: #fff;
                    border: none;
                    padding: 12px;
                    border-radius: 10px;
                    font-weight: 600;
                }

                .proceed-btn:disabled {
                    background: #ccc;
                    cursor: not-allowed;
                }

                .custom-select-box {
                    border: 1px solid #ddd;
                    padding: 10px;
                    border-radius: 8px;
                    cursor: pointer;
                    display: flex;
                    justify-content: space-between;
                }

                .custom-dropdown {
                    border: 1px solid #ddd;
                    border-radius: 8px;
                    margin-top: 6px;
                    background: #fff;
                    padding: 8px;
                }

                .search-input {
                    font-size: 13px;
                    margin-bottom: 6px;
                }

                .point-list {
                    list-style: none;
                    padding: 0;
                    max-height: 220px;
                    overflow-y: auto;
                }

                .point-list li {
                    padding: 8px;
                    border-bottom: 1px solid #eee;
                    cursor: pointer;
                }

                .point-title {
                    font-weight: 600;
                }

                .point-row {
                    font-size: 12px;
                    color: #666;
                }

                .time {
                    float: right;
                    font-size: 12px;
                    color: #dc3545;
                }

                .view-all {
                    text-align: center;
                    font-size: 13px;
                    color: #0d6efd;
                    cursor: pointer;
                    padding: 6px;
                }

                .seat-gents-only {
                    background: #e7f1ff;
                    border: 1px dashed #0d6efd;
                    color: #0d6efd;
                    cursor: pointer;
                    /* not-allowed bhi mat rakho */
                }
       