/**
 * Booking Drawer & Mobile Sticky Bar CSS
 * Booking.com Style Solid Architecture: Desktop Sticky Column + Mobile Slide-up Drawer
 * Absolutely NO Glassmorphism - 100% Solid High-Contrast Materials
 */

/* ==========================================================================
   Mobile Sticky Bottom Booking Bar (< 992px)
   ========================================================================== */
.booking-mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #FFFFFF;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 992px) {
    .booking-mobile-dock {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body.has-booking-dock .floating-quick-contact {
        bottom: 85px !important;
        transition: bottom 0.3s ease;
    }
    body.has-booking-dock .scroll-up {
        bottom: 145px !important;
    }
    body.has-booking-dock #main-content {
        padding-bottom: 90px !important;
    }
}

.booking-dock-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.booking-dock-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-dock-price {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.booking-dock-price small {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.booking-dock-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-dock-toggle-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.booking-dock-toggle-btn:hover {
    background: #e2e8f0;
}

.booking-dock-next-btn {
    background: #2563eb;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(217, 38, 24, 0.25);
    transition: background 0.2s ease;
}

.booking-dock-next-btn:hover {
    background: #1d4ed8;
    color: #FFFFFF;
}

/* ==========================================================================
   Slide-Up Drawer Component
   ========================================================================== */
.booking-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.booking-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    z-index: 1055;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
    border-bottom: none;
}

.booking-drawer.active {
    transform: translateY(0);
}

.booking-drawer-handle {
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 3px;
    margin: 10px auto 4px auto;
    flex-shrink: 0;
}

.booking-drawer-header {
    padding: 12px 20px 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-drawer-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-drawer-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.booking-drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.booking-drawer-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

.booking-drawer-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ==========================================================================
   Desktop Sticky Booking Sidebar (>= 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .booking-sidebar-sticky {
        position: sticky;
        top: 90px;
        z-index: 20;
    }

    .booking-sidebar-card {
        background: #FFFFFF;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .booking-sidebar-card .card-header {
        background: #00294d !important;
        color: #FFFFFF;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .booking-sidebar-card .card-body {
        padding: 18px;
    }
}

@media (max-width: 991.98px) {
    body.has-booking-dock,
    body:has(.booking-mobile-dock) {
        padding-bottom: 80px;
    }
}
