/* ============================================================
   booking-transition.css
   Grow-to-fullscreen animation + skeleton vehicle card loader.
   Triggered by BookingTransition.trigger() in booking-transition.js
   ============================================================ */

/* ─── Transition screen overlay ─────────────────────────────── */
.bt-screen {
    position: fixed;
    z-index: 9999;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    backface-visibility: hidden;

    /* Grow transition: mirrors .booking-card border-radius → 0 */
    transition:
        top    0.45s cubic-bezier(0.4, 0, 0.2, 1),
        left   0.45s cubic-bezier(0.4, 0, 0.2, 1),
        width  0.45s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.45s ease;

    will-change: top, left, width, height, border-radius;
}

.bt-screen--open {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* needed so .vs-panel (position:absolute) is contained here */
    position: fixed !important;
}

/* Freeze vertical scroll while an inner panel is sliding horizontally */
.bt-screen--panel-open {
    overflow: hidden !important;
}

/* ─── Inner content (fades in once expand completes) ─────────── */
.bt-screen-inner {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 100%;
    padding-bottom: 3rem;
    font-family: "Montserrat", "Metropolis", "Segoe UI", sans-serif;
    will-change: opacity, transform;
}

.bt-screen--content-visible .bt-screen-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Fake header ────────────────────────────────────────────── */
.bt-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
}

.bt-header-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    flex-shrink: 0;
}

.bt-header-title {
    height: 18px;
    width: 160px;
    border-radius: 6px;
    background: #f0f0f0;
}

.bt-header-count {
    margin-left: auto;
    height: 14px;
    width: 72px;
    border-radius: 6px;
    background: #f0f0f0;
}

/* ─── Filter pill row ────────────────────────────────────────── */
.bt-filter-row {
    display: flex;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.bt-filter-row::-webkit-scrollbar {
    display: none;
}

.bt-filter-pill {
    height: 32px;
    border-radius: 999px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.bt-filter-pill:nth-child(1) { width: 80px; }
.bt-filter-pill:nth-child(2) { width: 100px; }
.bt-filter-pill:nth-child(3) { width: 70px; }
.bt-filter-pill:nth-child(4) { width: 90px; }

/* ─── Skeleton card list ─────────────────────────────────────── */
.bt-skel-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 1.25rem 1.5rem;
}

/* ─── Individual skeleton vehicle card ───────────────────────── */
.bt-skel-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.bt-skel-card-img {
    width: 100%;
    height: 160px;
    background: #eeeeee;
}

.bt-skel-card-body {
    padding: 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bt-skel-badge {
    width: 72px;
    height: 20px;
    border-radius: 999px;
    background: #eeeeee;
}

.bt-skel-line {
    height: 14px;
    border-radius: 6px;
    background: #eeeeee;
}

.bt-skel-line--title {
    width: 70%;
    height: 18px;
}

.bt-skel-line--sub {
    width: 45%;
}

/* ─── Feature chips (seats / transmission / AC) ──────────────── */
.bt-skel-features {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.bt-skel-feat {
    width: 60px;
    height: 26px;
    border-radius: 8px;
    background: #eeeeee;
}

/* ─── Price + CTA row ────────────────────────────────────────── */
.bt-skel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f4f4f4;
}

.bt-skel-price {
    width: 90px;
    height: 24px;
    border-radius: 8px;
    background: #eeeeee;
}

.bt-skel-btn {
    width: 110px;
    height: 38px;
    border-radius: 12px;
    background: #eeeeee;
}

/* ─── Shimmer pulse animation ────────────────────────────────── */
@keyframes bt-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.bt-pulse {
    background-image: linear-gradient(
        90deg,
        #eeeeee 25%,
        #e0e0e0 50%,
        #eeeeee 75%
    );
    background-size: 800px 100%;
    animation: bt-shimmer 1.4s infinite linear;
}

/* ─── Body scroll lock while screen is open ─────────────────── */
body.bt-no-scroll {
    overflow: hidden;
    touch-action: none;
}
