/* ==========================================================
   RITHCABS
   CUSTOMER BOOKING HISTORY
   File: assets/css/booking-history.css
========================================================== */


/* ==========================================================
   PAGE
========================================================== */

.booking-history-page {
    width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(circle at 95% 5%,
            rgba(255, 184, 0, 0.08),
            transparent 24%),
        #F7F9FB;

    font-family: 'Inter', sans-serif;
    color: #06283D;
}


.booking-history-page *,
.booking-history-page *::before,
.booking-history-page *::after {
    box-sizing: border-box;
}


/* ==========================================================
   MAIN SECTION
========================================================== */

.booking-history-hero {
    width: 100%;
    padding: 70px 0 90px;
}


/* ==========================================================
   PAGE HEADER
========================================================== */

.booking-history-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 38px;
}


.booking-history-heading {
    width: 100%;
    max-width: 720px;
}


/* ==========================================================
   SECTION LABEL
========================================================== */

.booking-history-page .section-label {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 13px;

    color: #E9A900;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
}


.booking-history-page .section-label span {
    width: 31px;
    height: 3px;

    display: inline-block;
    flex: 0 0 31px;

    border-radius: 20px;

    background: #FFB800;
}


/* ==========================================================
   TITLE
========================================================== */

.booking-history-heading h1 {
    margin: 0;

    color: #06283D;

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.6px;
}


.booking-history-heading h1 span {
    color: #FFB800;
}


/* ==========================================================
   DESCRIPTION
========================================================== */

.booking-history-heading p {
    max-width: 620px;

    margin: 17px 0 0;

    color: #61798C;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}


/* ==========================================================
   CUSTOMER BOX
========================================================== */

.booking-customer-box {
    min-width: 260px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 16px 20px;

    background: #FFFFFF;

    border: 1px solid #E4EAF0;
    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(6, 40, 61, 0.07);
}


.booking-customer-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #FFF5D9;

    color: #06283D;

    font-size: 20px;
}


.booking-customer-box>div:last-child {
    min-width: 0;
}


.booking-customer-box small {
    display: block;

    margin-bottom: 3px;

    color: #8A9AA7;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}


.booking-customer-box strong {
    max-width: 180px;

    display: block;

    overflow: hidden;

    color: #06283D;

    font-size: 15px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.booking-customer-box span {
    display: block;

    margin-top: 3px;

    color: #61798C;

    font-size: 12px;
    font-weight: 500;
}


/* ==========================================================
   SUMMARY ROW
========================================================== */

.booking-summary-row {
    width: 100%;

    display: flex;
    flex-wrap: wrap;

    gap: 20px;

    margin-bottom: 26px;
}


/* ==========================================================
   SUMMARY CARD
========================================================== */

.booking-summary-card {
    min-width: 220px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 17px 20px;

    background: #06283D;

    border-radius: 16px;

    box-shadow:
        0 12px 28px rgba(6, 40, 61, 0.13);
}


.summary-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #FFB800;

    color: #06283D;

    font-size: 20px;
}


.booking-summary-card span {
    display: block;

    margin-bottom: 2px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 12px;
    font-weight: 500;
}


.booking-summary-card strong {
    display: block;

    color: #FFFFFF;

    font-size: 24px;
    font-weight: 800;
}


/* ==========================================================
   CONTENT
========================================================== */

.booking-history-content {
    width: 100%;
}


/* ==========================================================
   BOOKING LIST
========================================================== */

.booking-list {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 20px;
}


/* ==========================================================
   BOOKING CARD
========================================================== */

.booking-card {
    width: 100%;

    position: relative;

    overflow: hidden;

    background: #FFFFFF;

    border: 1px solid #E4EAF0;
    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(6, 40, 61, 0.055);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.booking-card::before {
    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    background: #FFB800;
}


.booking-card:hover {
    transform: translateY(-2px);

    border-color: #D5DEE6;

    box-shadow:
        0 15px 42px rgba(6, 40, 61, 0.09);
}


/* ==========================================================
   CARD TOP
========================================================== */

.booking-card-top {
    min-height: 75px;

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

    gap: 20px;

    padding: 18px 25px 18px 30px;

    border-bottom: 1px solid #EDF1F4;
}


/* ==========================================================
   BOOKING NUMBER
========================================================== */

.booking-number {
    min-width: 0;
}


.booking-number small {
    display: block;

    margin-bottom: 4px;

    color: #8A9AA7;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}


.booking-number strong {
    display: block;

    color: #06283D;

    font-size: 18px;
    font-weight: 800;

    word-break: break-word;
}


/* ==========================================================
   STATUS
========================================================== */

.booking-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-width: 90px;

    padding: 7px 13px;

    border-radius: 50px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;

    text-align: center;
}


/* ==========================================================
   PENDING
========================================================== */

.status-pending {
    color: #9A6800;
    background: #FFF4D2;
}


/* ==========================================================
   ACCEPTED
========================================================== */

.status-accepted {
    color: #0B5C89;
    background: #E6F5FD;
}


/* ==========================================================
   ONGOING
========================================================== */

.status-ongoing {
    color: #744F00;
    background: #FFE8A5;
}


/* ==========================================================
   COMPLETED
========================================================== */

.status-completed {
    color: #137333;
    background: #E6F4EA;
}


/* ==========================================================
   CANCELLED
========================================================== */

.status-cancelled {
    color: #B3261E;
    background: #FDE8E7;
}


/* ==========================================================
   ROUTE
========================================================== */

.booking-route {
    width: 100%;

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 60px minmax(0, 1fr);

    align-items: center;

    gap: 10px;

    padding: 25px 30px;
}


/* ==========================================================
   ROUTE POINT
========================================================== */

.route-point {
    min-width: 0;

    display: flex;
    align-items: flex-start;

    gap: 13px;
}


.route-dot {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 14px;
}


.pickup-point .route-dot {
    background: #FFF5D9;
    color: #FFB800;
}


.drop-point .route-dot {
    background: #EAF1F5;
    color: #06283D;
}


.route-point>div:last-child {
    min-width: 0;
    width: 100%;
}


.route-point small {
    display: block;

    margin-bottom: 5px;

    color: #8A9AA7;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}


.route-point strong {
    display: -webkit-box;

    width: 100%;

    overflow: hidden;

    color: #06283D;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    overflow-wrap: anywhere;
    word-break: break-word;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}


/* ==========================================================
   ROUTE LINE
========================================================== */

.route-line {
    position: relative;

    width: 100%;
    height: 1px;

    background:
        repeating-linear-gradient(to right,
            #BFCAD2 0,
            #BFCAD2 5px,
            transparent 5px,
            transparent 9px);
}


.route-line::after {
    content: '\2192';

    position: absolute;

    top: 50%;
    left: 50%;

    padding: 0 6px;

    transform: translate(-50%, -50%);

    background: #FFFFFF;

    color: #FFB800;

    font-size: 17px;
    font-weight: 800;
}


/* ==========================================================
   INFORMATION GRID
========================================================== */

.booking-info-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    margin: 0 30px;

    overflow: hidden;

    background: #E7EDF1;

    border: 1px solid #E7EDF1;
    border-radius: 14px;
}


/* ==========================================================
   INFORMATION ITEM
========================================================== */

.booking-info-item {
    min-width: 0;
    min-height: 85px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 16px;

    background: #F9FBFC;
}


.booking-info-item>i {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #FFF5D9;

    color: #06283D;

    font-size: 15px;
}


.booking-info-item>div {
    min-width: 0;
    width: 100%;
}


.booking-info-item small {
    display: block;

    margin-bottom: 4px;

    color: #8495A3;

    font-size: 10px;
    font-weight: 600;
}


.booking-info-item strong {
    display: block;

    width: 100%;

    overflow: hidden;

    color: #06283D;

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================
   CARD FOOTER
========================================================== */

.booking-card-footer {
    display: flex;
    align-items: center;

    gap: 20px;

    padding: 20px 30px 23px;
}


/* ==========================================================
   DISTANCE
========================================================== */

.booking-distance {
    min-width: 0;

    margin-right: auto;
}


.booking-distance span {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #61798C;

    font-size: 12px;
    font-weight: 700;
}


.booking-distance i {
    color: #FFB800;

    font-size: 15px;
}


/* ==========================================================
   AMOUNT
========================================================== */

.booking-amount {
    min-width: 120px;

    padding-right: 20px;

    text-align: right;

    border-right: 1px solid #E5EBEF;
}


.booking-amount small {
    display: block;

    margin-bottom: 2px;

    color: #8495A3;

    font-size: 10px;
    font-weight: 600;
}


.booking-amount strong {
    display: block;

    color: #06283D;

    font-size: 20px;
    font-weight: 800;

    white-space: nowrap;
}


/* ==========================================================
   VIEW BUTTON
========================================================== */

.booking-view-btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    gap: 11px;

    padding: 0 18px;

    border-radius: 11px;

    background: #FFB800;

    color: #06283D;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.booking-view-btn:hover,
.booking-view-btn:focus {
    color: #06283D;

    background: #F5AE00;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(255, 184, 0, 0.22);

    text-decoration: none;
}


.booking-view-btn i {
    font-size: 14px;
}


/* ==========================================================
   EMPTY STATE
========================================================== */

.booking-empty-state {
    width: 100%;
    max-width: 680px;

    margin: 25px auto 0;

    padding: 60px 35px;

    text-align: center;

    background: #FFFFFF;

    border: 1px solid #E3EAF0;
    border-radius: 22px;

    box-shadow:
        0 15px 45px rgba(6, 40, 61, 0.06);
}


/* ==========================================================
   EMPTY ICON
========================================================== */

.booking-empty-icon {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 22px;

    background: #FFF5D9;

    color: #06283D;

    font-size: 31px;
}


.booking-empty-state h2 {
    margin: 0 0 10px;

    color: #06283D;

    font-size: 25px;
    font-weight: 800;
}


.booking-empty-state p {
    max-width: 440px;

    margin: 0 auto 25px;

    color: #61798C;

    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================
   BOOK NOW BUTTON
========================================================== */

.booking-now-btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 0 24px;

    background: #FFB800;

    border-radius: 12px;

    color: #06283D;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.booking-now-btn:hover,
.booking-now-btn:focus {
    color: #06283D;

    background: #F5AE00;

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(255, 184, 0, 0.24);

    text-decoration: none;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    .booking-history-hero {
        padding: 50px 0 70px;
    }


    .booking-history-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .booking-customer-box {
        width: 100%;
        max-width: 380px;
    }


    .booking-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .booking-history-hero {
        padding: 35px 0 55px;
    }


    .booking-history-header {
        gap: 22px;
        margin-bottom: 25px;
    }


    .booking-history-heading h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }


    .booking-history-heading p {
        font-size: 14px;
    }


    .booking-customer-box {
        width: 100%;
        min-width: 0;
        max-width: none;
    }


    .booking-customer-box strong {
        max-width: none;
    }


    /* ======================================================
       SUMMARY
    ====================================================== */

    .booking-summary-row {
        width: 100%;
    }


    .booking-summary-card {
        width: 100%;
        min-width: 0;
    }


    /* ======================================================
       CARD TOP
    ====================================================== */

    .booking-card-top {
        padding: 17px 18px 17px 23px;
    }


    /* ======================================================
       ROUTE
    ====================================================== */

    .booking-route {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 22px 20px 22px 25px;
    }


    .route-line {
        width: 1px;
        height: 30px;

        margin: 3px 0 3px 17px;

        background:
            repeating-linear-gradient(to bottom,
                #BFCAD2 0,
                #BFCAD2 4px,
                transparent 4px,
                transparent 8px);
    }


    .route-line::after {
        display: none;
    }


    .route-point strong {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }


    /* ======================================================
       INFORMATION
    ====================================================== */

    .booking-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        margin: 0 20px 0 25px;
    }


    .booking-info-item {
        padding: 13px;
    }


    /* ======================================================
       FOOTER
    ====================================================== */

    .booking-card-footer {
        flex-wrap: wrap;

        gap: 15px;

        padding: 18px 20px 20px 25px;
    }


    .booking-distance {
        width: calc(50% - 8px);
        margin-right: 0;
    }


    .booking-amount {
        width: calc(50% - 8px);
        min-width: 0;

        padding-right: 0;

        border-right: 0;
    }


    .booking-view-btn {
        width: 100%;
        min-height: 48px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .booking-history-heading h1 {
        font-size: 30px;
    }


    .booking-history-page .section-label {
        font-size: 11px;
    }


    .booking-card {
        border-radius: 16px;
    }


    .booking-card-top {
        align-items: flex-start;

        gap: 12px;
    }


    .booking-number strong {
        font-size: 16px;
    }


    .booking-status {
        min-width: auto;

        padding: 6px 10px;

        font-size: 9px;
    }


    /* ======================================================
       ROUTE
    ====================================================== */

    .booking-route {
        padding:
            20px 16px 20px 21px;
    }


    /* ======================================================
       INFORMATION GRID
    ====================================================== */

    .booking-info-grid {
        grid-template-columns: 1fr;

        margin:
            0 16px 0 21px;
    }


    .booking-info-item {
        min-height: 70px;
    }


    .booking-info-item strong {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }


    /* ======================================================
       FOOTER
    ====================================================== */

    .booking-card-footer {
        padding:
            18px 16px 20px 21px;
    }


    .booking-distance {
        width: 100%;
    }


    .booking-amount {
        width: 100%;

        text-align: left;
    }


    .booking-view-btn {
        width: 100%;
    }


    /* ======================================================
       EMPTY STATE
    ====================================================== */

    .booking-empty-state {
        padding: 45px 20px;
    }


    .booking-empty-icon {
        width: 68px;
        height: 68px;

        font-size: 27px;
    }


    .booking-empty-state h2 {
        font-size: 22px;
    }

}