/* ========== Booking Calendar ========== */
.bc-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px 10px;
}

.bc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 10px;
    padding: 8px 0;
    background: #f9f9f9;
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 5;
}
.bc-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.bc-weekday.weekend { color: #ef4444; }

.bc-months {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

.bc-month {
    background: #fff;
}
.bc-month-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    padding: 5px 10px;
    text-transform: capitalize;
}
.bc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.bc-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    user-select: none;
    /*min-height: 54px;*/
    /*padding: 4px;*/
}
.bc-day:hover:not(.bc-day-empty):not(.bc-day-booked) {
    background: #e5e5e5;
}
.bc-day-empty { background: transparent; cursor: default; }

.bc-day-num {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
}
.bc-day-price {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Занят / недоступен */
.bc-day-booked {
    opacity: 0.5;
}

.bc-day-past {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.bc-day-past .bc-day-num {
    color: #999;
}

/* Запрещаем курсор «no» только когда действительно нельзя кликать.
   В view-режиме класс на контейнере .bc-main имеет bc-mode-view */
.bc-main.bc-mode-view .bc-day-booked {
    cursor: not-allowed;
}

.bc-main:not(.bc-mode-view) .bc-day-booked {
    cursor: pointer;
}
.bc-day-booked .bc-day-num { color: #6b7280; }
.bc-day-booked .bc-day-price { color: #9ca3af; }

/* Выбранный диапазон */
.bc-day-in-range {
    background: #dbeafe !important;
}
.bc-day-range-start,
.bc-day-range-end {
    background: #000 !important;
    color: #fff;
}
.bc-day-range-start .bc-day-num,
.bc-day-range-end .bc-day-num { color: #fff; }
.bc-day-range-start .bc-day-price,
.bc-day-range-end .bc-day-price { color: #e5e7eb; }

/* Выходные */
.bc-day-weekend .bc-day-num { color: #ef4444; }

/* Плавающая кнопка редактирования */
.bc-edit-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.bc-edit-bar-hidden { display: none; }
.bc-range-label {
    flex: 1;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
}
.bc-edit-btn {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.bc-edit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== Вложенный слайд редактирования ========== */
.bc-edit-slide {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bc-edit-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

/* Свободно / Недоступно */
.bc-status-tabs {
    display: flex;
    gap: 8px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 12px;
}
.bc-status-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}
.bc-status-tab.active {
    background: #000;
    color: #fff;
}

/* Числовые поля */
.bc-field {
    margin-bottom: 15px;
}
.bc-field-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}
.bc-field input[type="number"],
.bc-field input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    background: #f9f9f9;
    outline: none;
}
.bc-field input:focus { border-color: #000; background: #fff; }

/* Min nights */
.bc-nights-picker {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.bc-night-btn {
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    min-width: 48px;
}
.bc-night-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Кнопки внизу */
.bc-edit-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    margin-top: auto;
}
.bc-edit-actions button {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.bc-btn-apply {
    background: #000;
    color: #fff;
}
.bc-btn-cancel {
    background: #f5f5f5;
    color: #000;
}
