﻿.recent-bookings-section {
    background: #f8fbff;
    padding: 78px 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.recent-bookings-container {
    width: min(94%, 1420px);
    margin: 0 auto;
}

.recent-bookings-heading {
    text-align: center;
    margin-bottom: 44px;
}

    .recent-bookings-heading span {
        color: #f97316;
        font-weight: 900;
        letter-spacing: 0.14em;
        font-size: 1rem;
    }

    .recent-bookings-heading h2 {
        color: #0b1f4d;
        font-size: clamp(2.2rem, 5vw, 4.1rem);
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: -0.045em;
        margin: 12px 0;
    }

    .recent-bookings-heading p {
        color: #64748b;
        font-size: 1.12rem;
        margin: 0;
    }

.recent-bookings-shell {
    position: relative;
}

.recent-bookings-window {
    overflow: hidden;
    padding: 6px;
}

.recent-bookings-track {
    display: flex;
    gap: 34px;
    transition: transform 0.5s ease;
}

.recent-booking-card {
    background: #ffffff;
    flex: 0 0 calc((100% - 34px) / 2);
    max-width: calc((100% - 34px) / 2);
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.booking-top {
    min-height: 52px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef3fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.booking-badge {
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
}

    .booking-badge.local {
        background: #0b1f4d;
    }

    .booking-badge.labor {
        background: #f97316;
    }

.booking-date {
    color: #64748b;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.booking-body {
    display: grid;
    grid-template-columns: 48% 52%;
    min-height: 315px;
}

.booking-photo {
    min-height: 200px;
    background: #e5eaf1;
}

    .booking-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.booking-info {
    padding: 22px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .booking-info h3 {
        color: #0b1f4d;
        font-weight: 900;
        font-size: 1.15rem;
        margin: 0;
    }

.route-arrow {
    color: #f97316;
    font-size: 1.6rem;
    font-weight: 900;
    display: block;
    margin: 8px 0;
}

.booking-specs {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    text-align: left;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

    .booking-specs p {
        color: #0b1f4d;
        font-size: 0.95rem;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .booking-specs svg {
        color: #0b1f4d;
        width: 22px;
        height: 22px;
    }

.booking-bottom {
    min-height: 70px;
    background: #fbfeff;
    border-top: 1px solid #eef3fa;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

    .booking-bottom > div:first-child {
        padding-left: 20px;
    }

    .booking-bottom span {
        color: #64748b;
        font-weight: 800;
        display: block;
        margin-bottom: 6px;
    }

    .booking-bottom strong {
        color: #f97316;
        font-size: 1.25rem;
        font-weight: 900;
        line-height: 1;
    }

.booking-status {
    min-height: 70px;
    border-left: 1px solid #eef3fa;
    color: #0b1f4d;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
}

    .booking-status svg {
        color: #2563eb;
        width: 28px;
        height: 28px;
    }

.recent-booking-arrow {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #f97316;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    cursor: pointer;
}

    .recent-booking-arrow svg {
        width: 36px;
        height: 36px;
    }

.recent-prev {
    left: -34px;
}

.recent-next {
    right: -34px;
}

.recent-booking-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

    .recent-booking-dots span {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #cbd5e1;
    }

        .recent-booking-dots span.active {
            background: #f97316;
        }

.recent-bookings-cta {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

    .recent-bookings-cta svg {
        color: #f97316;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .recent-bookings-cta p {
        color: #0b1f4d;
        font-size: 1.08rem;
        font-weight: 600;
        margin: 0;
    }

    .recent-bookings-cta a {
        color: #2563eb;
        font-weight: 800;
        text-decoration: none;
    }

/* Tablet */
@media (max-width: 1100px) {
    .recent-booking-card {
        flex: 0 0 84%;
        max-width: 84%;
    }

    .recent-prev {
        left: 10px;
    }

    .recent-next {
        right: 10px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .recent-bookings-section {
        padding: 56px 0;
    }

    .recent-bookings-container {
        width: 100%;
        padding: 0 18px;
    }

    .recent-bookings-heading {
        margin-bottom: 32px;
    }

        .recent-bookings-heading span {
            font-size: 0.78rem;
        }

        .recent-bookings-heading h2 {
            font-size: 2.25rem;
            line-height: 1.05;
            letter-spacing: -0.035em;
        }

        .recent-bookings-heading p {
            font-size: 1rem;
            line-height: 1.6;
        }

    .recent-bookings-window {
        padding: 4px 0;
        overflow: hidden;
    }

    .recent-bookings-track {
        gap: 16px;
    }

    .recent-booking-card {
        flex: 0 0 100%;
        max-width: 100%;
        border-radius: 18px;
    }

    .booking-top {
        min-height: auto;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-date {
        font-size: 0.95rem;
    }

    .booking-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .booking-photo {
        min-height: 250px;
        height: 250px;
    }

    .booking-info {
        padding: 28px 20px;
    }

        .booking-info h3 {
            font-size: 1.35rem;
        }

    .booking-specs {
        gap: 10px;
        margin-top: 16px;
    }

        .booking-specs p {
            font-size: 1rem;
        }

    .booking-bottom {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
        text-align: center;
    }

        .booking-bottom > div:first-child {
            padding-left: 0;
        }

    .booking-status {
        border-left: none;
        border-top: 1px solid #dfe5ee;
        padding-top: 16px;
        min-height: auto;
    }

    .recent-booking-arrow {
        width: 54px;
        height: 54px;
    }

        .recent-booking-arrow svg {
            width: 30px;
            height: 30px;
        }

    .recent-prev {
        left: 8px;
    }

    .recent-next {
        right: 8px;
    }

    .recent-booking-dots {
        margin-top: 24px;
    }

    .recent-bookings-cta {
        margin-top: 30px;
        padding: 0 10px;
        flex-direction: column;
        gap: 10px;
    }

        .recent-bookings-cta p {
            font-size: 1rem;
            line-height: 1.5;
        }
}

/* Small phones */
@media (max-width: 430px) {
    .recent-bookings-container {
        padding: 0 14px;
    }

    .recent-bookings-heading h2 {
        font-size: 2rem;
    }

    .booking-photo {
        height: 230px;
        min-height: 230px;
    }

    .recent-booking-arrow {
        width: 48px;
        height: 48px;
    }

    .recent-prev {
        left: 2px;
    }

    .recent-next {
        right: 2px;
    }
}
