/* ═══════════════════════════════════════════
   BOOKING PANEL — Slide-in Cart
   ═══════════════════════════════════════════ */

/* Overlay */
.bp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.bp-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Panel */
.bp-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
}
.bp-panel.open {
    transform: translateX(0);
}

/* Header */
.bp-header {
    background: #f26522;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.bp-header-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.bp-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.bp-count-badge {
    background: #fff;
    color: #f26522;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.bp-close:hover { background: rgba(255,255,255,0.35); }

/* Body */
.bp-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.bp-body::-webkit-scrollbar { width: 4px; }
.bp-body::-webkit-scrollbar-track { background: #f5f5f5; }
.bp-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* Empty state */
.bp-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #aaa;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
}
.bp-empty span { font-size: 3rem; display: block; margin-bottom: 0.8rem; }

/* Car item card */
.bp-car-item {
    background: #fafafa;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    position: relative;
}
.bp-car-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}
.bp-car-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}
.bp-car-type-tag {
    font-size: 0.7rem;
    font-family: 'DM Sans', sans-serif;
    background: rgba(242,101,34,0.1);
    color: #f26522;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}
.bp-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 0.3rem;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}
.bp-remove-btn:hover { color: #e24b4a; }

/* Detail rows */
.bp-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.bp-detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
}
.bp-detail-row .bp-dr-label {
    color: #999;
    min-width: 90px;
    flex-shrink: 0;
}
.bp-detail-row .bp-dr-val {
    color: #1a1a1a;
    font-weight: 500;
}
.bp-detail-row .bp-dr-val.orange { color: #f26522; font-weight: 700; }

/* Inline edit fields */
.bp-inline-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.8rem;
}
.bp-inline-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f26522;
    font-family: 'DM Sans', sans-serif;
}
.bp-inline-input {
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}
.bp-inline-input:focus { border-color: #f26522; }
.bp-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Duration / price strip */
.bp-price-strip {
    background: rgba(242,101,34,0.06);
    border: 1.5px solid rgba(242,101,34,0.15);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
}
.bp-price-strip .bp-days { color: #888; }
.bp-price-strip .bp-est {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #f26522;
    font-size: 1rem;
}
.bp-price-strip .bp-est small {
    font-size: 0.65rem;
    color: #aaa;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}

/* Contact section */
.bp-contact-section {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.bp-contact-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.7rem;
}
.bp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.bp-err {
    font-size: 0.72rem;
    color: #e24b4a;
    font-family: 'DM Sans', sans-serif;
    display: none;
    margin-top: 0.2rem;
}
.bp-err.show { display: block; }

/* Footer */
.bp-footer {
    padding: 1rem 1.4rem 1.2rem;
    border-top: 1.5px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}
.bp-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
}
.bp-total-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
}
.bp-total-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f26522;
}
.bp-total-note {
    font-size: 0.72rem;
    color: #aaa;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 0.9rem;
}
.bp-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.bp-wa-btn:hover { background: #1ebc59; transform: translateY(-1px); }
.bp-wa-btn:active { transform: scale(0.98); }
.bp-wa-btn svg { flex-shrink: 0; }

/* Floating trigger badge (cart icon in navbar) */
.bp-nav-trigger {
    position: relative;
    cursor: pointer;
    background: #f26522;
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s;
}
.bp-nav-trigger:hover { background: #d94f10; }
.bp-nav-trigger .bp-nav-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}
.bp-nav-trigger .bp-nav-dot.show { display: flex; }

/* Responsive */
@media (max-width: 480px) {
    .bp-panel { width: 100vw; }
    .bp-contact-grid { grid-template-columns: 1fr; }
    .bp-date-row { grid-template-columns: 1fr; }
}