body {
    background: #f5f5f5;
    font-family: Arial, sans-serif;
}

.bus-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bus-left {
    display: flex;
    gap: 10px;
}

.bus-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-name {
    font-weight: bold;
}

.bus-route {
    font-size: 13px;
    color: #666;
}

.bus-time {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time-box {
    text-align: center;
}

.duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.bus-price {
    text-align: right;
}

.price-old {
    text-decoration: line-through;
    color: #aaa;
    font-size: 14px;
}

.price-new {
    font-weight: bold;
    font-size: 18px;
}

.book-btn {
    background: #10b981;
    color: #fff;
    border: none;
    min-width: 120px;
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
}

.seat {
    font-size: 13px;
    color: #555;
}

.bus-footer {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #e6f4ea;
    color: #0a8f3c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.discount {
    color: orange;
    font-size: 14px;
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.badge-ac {
    background: #e6f4ea;
    color: #16a34a;
}

.badge-nonac {
    background: #fdecea;
    color: #dc2626;
}

/* depreture and arrival time ui */
.pro-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.timeline-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-wrapper .line {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ddd;
    z-index: 1;
}

.timeline-wrapper .dot {
    width: 12px;
    height: 12px;
    background: #16a34a;
    border-radius: 50%;
    z-index: 2;
}

.duration-box {
    position: absolute;
    background: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    border: 1px solid #16a34a;
    z-index: 3;
    top: -18px;
}

.bus-card:hover .line {
    background: #16a34a;
}

.bus-card:hover .dot {
    transform: scale(1.2);
    transition: 0.3s;
}

.bus-card:hover .duration-box {
    background: #16a34a;
    color: #fff;
}

/* seat plan er design start */

#drawerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 1040;
}

.seat-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    overflow-y: auto;
    transition: 0.35s ease;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
}

.seat-drawer.show {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.drawer-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.drawer-header button {
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.drawer-body {
    padding: 12px;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.legend-box {
    width: 15px;
    height: 15px;
    display: inline-block;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

.available-box {
    background: #16a34a;
}

.booked-box {
    background: #dc2626;
}

.selected-box {
    background: #2563eb;
}

.driver-box {
    width: 90px;
    margin: 0 auto 15px;
    text-align: center;
    background: #f3f4f6;
    padding: 8px;
    border-radius: 10px;
    font-weight: 700;
    color: #111827;
    font-size: 12px;
}

.seat-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.aisle {
    width: 60px;
}

.seat-box {
    width: 38px;
    height: 38px;
    margin: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.seat-box.available {
    background: #16a34a;
    color: #fff;
}

.seat-box.available:hover {
    transform: translateY(-2px);
}

.seat-box.booked {
    background: #dc2626;
    color: #fff;
    cursor: not-allowed;
}

.seat-box.selected {
    background: #2563eb !important;
    color: #fff;
}

@media (max-width: 768px) {
    .seat-drawer {
        width: 100%;
    }

    .seat-box {
        width: 42px;
        height: 42px;
        font-size: 11px;
    }

    .aisle {
        width: 25px;
    }
}

.driver-box {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.normal-row,
.ac-row,
.sleeper-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

.normal-aisle,
.ac-aisle,
.sleeper-aisle {
    width: 80px;
}

.left-group,
.right-group,
.right-seat,
.sleeper-right {
    display: flex;
    gap: 8px;
}

.left-seat,
.sleeper-left {
    width: 60px;
}

.seat-box {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.available {
    background: #28a745;
    color: #fff;
}

.booked {
    background: #dc3545;
    color: #fff;
    cursor: not-allowed;
}

.sleeper-left .seat-box {
    width: 60px;
    height: 85px;
}

/* =========================
   AC COACH (2+1)
========================= */

.ac-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.ac-left {
    display: flex;
    gap: 8px;
}

.ac-right {
    display: flex;
    justify-content: center;
    width: 55px;
}

.ac-aisle {
    width: 70px;
}

/* =========================
   NON AC COACH (2+2)
========================= */

.normal-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

.left-group,
.right-group {
    display: flex;
    gap: 8px;
}

.normal-aisle {
    width: 70px;
}

/* =========================
   SLEEPER COACH
========================= */

.sleeper-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.sleeper-left {
    width: 60px;
}

.sleeper-right {
    display: flex;
    gap: 8px;
}

.sleeper-aisle {
    width: 35px;
}

.sleeper-left .seat-box {
    height: 120px;
}

@media (max-width: 768px) {
    .ac-aisle,
    .normal-aisle,
    .sleeper-aisle {
        width: 30px;
    }

    .ac-left,
    .right-group,
    .left-group,
    .sleeper-right {
        gap: 5px;
    }
}
.price-area {
    display: flex;
    flex-direction: column;
}

.bus-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
/* seat plan er design end */

/* bus list blade er mobile responsive start */

@media (max-width: 768px) {
    .bus-card {
        border-radius: 16px;
        padding: 14px;
        margin-bottom: 16px;
    }

    .bus-header {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .bus-left {
        width: 100%;
    }

    .bus-logo {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .bus-name {
        font-size: 18px;
        font-weight: 700;
    }

    .bus-route {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.6;
        word-break: break-word;
    }

    .bus-time {
        width: 100%;
        background: #f8fafc;
        border-radius: 12px;
        padding: 12px;

        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .time {
        font-size: 18px;
        font-weight: 700;
    }

    .location {
        font-size: 13px;
    }

    .bus-price {
        width: 100%;
        background: #f8fafc;
        border-radius: 12px;
        padding: 15px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .fare-label {
        font-size: 12px;
        color: #6b7280;
    }

    .price-new {
        font-size: 32px;
        font-weight: 800;
        line-height: 1;
        color: #10b981;
    }

    .price-old {
        display: none;
    }

    .seat {
        font-size: 13px;
        color: #374151;
        margin-bottom: 8px;
    }

    .book-btn {
        width: 100%;
        height: 46px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
    }

    .bus-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .bus-footer span,
    .bus-footer .tag {
        font-size: 11px;
        padding: 6px 10px;
    }
}
/* bus list blade er mobile responsive end */

.seat-box.available {
    background: #22c55e;
    color: #fff;
    cursor: pointer;
}

.seat-box.booked {
    background: #f59e0b;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}

.legend-box.sold,
.seat-box.sold {
    background: #dc2626;
    color: #fff;
}

.seat-trip-card {
    background: #f5f5f5;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 10px;
}

.trip-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.trip-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.trip-details h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.trip-details p {
    margin: 2px 0 0;
    color: #666;
    font-size: 13px;
}

.trip-route-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trip-point {
    flex: 1;
}

.trip-point span {
    display: block;
    color: #999;
    font-size: 11px;
    font-weight: 600;
}

.trip-point strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.trip-line {
    width: 80px;
    border-top: 1px dashed #bbb;
}

.trip-fare-info {
    margin-top: 12px;
    font-weight: 700;
    color: #16a34a;
}

.seat-info-bar {
    background: #f8e7c8;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.seat-legend {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-box.available {
    background: #22c55e;
    border: 1px solid #333;
}

.legend-box.sold {
    background: #ef4444;
}

.legend-box.selected {
    background: #2563eb !important;
}

@media (max-width: 576px) {
    .trip-route-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .trip-line {
        width: 100%;
    }
    .seat-legend {
        justify-content: flex-start;
    }
}

#bookingSummary {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px;
    z-index: 999;
}
.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
}
.continue-btn {
    width: 100%;
    border: none;
    background: #0a9d3f;
    color: #fff;
    height: 50px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
}
.continue-btn:hover {
    opacity: 0.95;
}

#seatLayout {
    max-width: 280px;
    margin: 0 auto;
    padding: 10px;
    background: #f9fafb;
    border-radius: 12px;
}

/* ticket list filter start */


.filter-sidebar{
    background:#fff;
    border-radius:16px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:15px;
}

.filter-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.filter-header h6{
    margin:0;
    font-size:18px;
    font-weight:700;
}

.reset-btn{
    border:1px solid #16a34a;
    background:#fff;
    color:#16a34a;
    border-radius:6px;
    padding:4px 10px;
    font-size:12px;
    font-weight:700;
}

.filter-section{
    margin-bottom:25px;
}

.filter-title{
    color:#f97316;
    font-size:13px;
    font-weight:700;
    margin-bottom:12px;
}

.custom-checkbox{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
    font-size:14px;
}

.custom-checkbox input{
    width:18px;
    height:18px;
}

.filter-select{
    width:100%;
    height:42px;
    border:1px solid #dcdcdc;
    border-radius:8px;
    padding:0 12px;
}

.time-filter{
    width:100%;
    background:#eef2f7;
    border:none;
    border-radius:10px;
    padding:12px;
    margin-bottom:10px;
    text-align:left;
}

.time-filter small{
    display:block;
    color:#64748b;
}

/* ticket list filter end */
