/* Бронирование — страница организации */
.booking-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1100;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 640px) {
    .booking-drawer-overlay {
        align-items: center;
        padding: 20px;
    }
}
.booking-drawer-overlay.active { display: flex; }

.booking-drawer {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    animation: bookingSlideUp 0.3s ease;
}
@media (min-width: 640px) {
    .booking-drawer { border-radius: 20px; animation: fadeUp 0.3s ease; }
}
@keyframes bookingSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.booking-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}
.booking-drawer-head h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.booking-drawer-head h3 i { color: var(--primary); }
.booking-drawer-head p { margin: 0; font-size: 0.82rem; color: var(--text-soft); line-height: 1.4; }
.booking-drawer-close {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--border); background: white;
    cursor: pointer; color: var(--text-soft); flex-shrink: 0;
}

.booking-flash {
    margin: 12px 20px 0;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.booking-flash.success { background: #e6f7ee; color: #0d7d4a; }
.booking-flash.error { background: #fef2f2; color: #b91c1c; }

.booking-form { padding: 16px 20px 20px; }
.booking-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.booking-step {
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text-soft);
    border: 1px solid var(--border);
}
.booking-step.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    font-weight: var(--font-medium);
}
.booking-step.done {
    background: #e6f7ee;
    color: #0d7d4a;
    border-color: transparent;
}

.booking-panel { display: none; animation: fadeUp 0.2s ease; }
.booking-panel.active { display: block; }
.booking-label {
    display: block;
    font-size: 0.8rem;
    font-weight: var(--font-medium);
    margin-bottom: 10px;
    color: var(--text-soft);
}

.booking-date-quick {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.booking-date-btn {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: white;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}
.booking-date-btn:hover, .booking-date-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.booking-date-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
}

.booking-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-height: 80px;
}
@media (min-width: 400px) { .booking-slots { grid-template-columns: repeat(4, 1fr); } }
.booking-slot {
    padding: 10px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: var(--transition-fast);
}
.booking-slot:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-light);
}
.booking-slot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.booking-slot:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}
.booking-slots-hint, .booking-hint {
    font-size: 0.8rem;
    color: var(--text-soft);
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
}

.booking-guests-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
}
.guests-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--primary);
    font-family: inherit;
}
.guests-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.guests-value { font-size: 2rem; font-weight: var(--font-semibold); min-width: 40px; text-align: center; }

.booking-summary {
    margin-top: 14px;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.55;
}
.booking-summary strong { display: block; margin-bottom: 4px; }

.booking-drawer-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.booking-drawer-footer .btn { flex: 1; justify-content: center; }

.booking-form .form-group { margin-bottom: 12px; }
.booking-form .form-group label { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 6px; display: block; }
.booking-form input, .booking-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
}
