
/* Стили для бронирования */
.booking-section {
    min-height: 100vh;
    margin-top: 100px;
}

/* Навигация по датам */
.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.date-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(124, 87, 71, 0.1);
    background: var(--white);
    color: var(--dark-brown);
    transition: all 0.3s ease;
    cursor: pointer;
}

.date-nav-btn:hover {
    background: var(--bright-green);
    color: white;
    border-color: var(--bright-green);
    transform: scale(1.05);
}

.today-btn {
    width: auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0, 150, 64, 0.1), rgba(93, 156, 89, 0.1));
    border: 1px solid rgba(0, 150, 64, 0.2);
}

.today-btn:hover {
    background: var(--bright-green);
}

.current-date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
}

.current-month {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-brown);
}

.current-year {
    font-size: 1.2rem;
    color: var(--warm-brown);
}

/* Календарь */
.weekdays-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--warm-brown);
    padding: 15px 0;
    font-size: 1rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-cell {
    aspect-ratio: 1;
    border: none;
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(124, 87, 71, 0.05);
}

.day-cell:hover:not(.empty):not(.past):not(:disabled) {
    transform: scale(0.95);
    background: var(--bright-green);
    color: white;
}

.day-cell.active {
    background: var(--bright-green);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 150, 64, 0.3);
}

.day-cell.today {
    border: 2px solid var(--bright-green);
}

.day-cell.past {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.day-cell.empty {
    background: transparent;
    cursor: default;
    box-shadow: none;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 600;
}

.availability-indicator {
    position: absolute;
    bottom: 5px;
    width: 6px;
    height: 6px;
    background: var(--bright-green);
    border-radius: 50%;
}

/* План зала */
.restaurant-map {
    background: linear-gradient(135deg, rgba(124, 87, 71, 0.05), rgba(60, 46, 36, 0.05));
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 80px;
    gap: 15px;
    position: relative;
    border: 1px solid rgba(124, 87, 71, 0.1);
}

.table {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table:hover:not(.disabled) {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 150, 64, 0.3);
}

.table.selected {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--bright-green), 0 10px 25px rgba(0, 150, 64, 0.3);
}

.table.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.table span {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}

.table-label {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem !important;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
}

/* Типы столов */
.table-regular {
    background: linear-gradient(135deg, var(--bright-green), var(--medium-green));
}

.table-gold {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
}

.table-bar {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* Размеры столов */
.table[data-table-id="1"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="2"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="3"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="4"] { grid-column: span 2; grid-row: span 2; }
.table[data-table-id="5"] { grid-column: span 3; grid-row: span 1; }
.table[data-table-id="6"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="7"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="8"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="9"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="10"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="11"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="12"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="13"] { grid-column: span 1; grid-row: span 1; }

/* Стены */
.wall {
    background: linear-gradient(135deg, var(--dark-brown), #2c3e50);
    opacity: 0.3;
    border-radius: 8px;
}

.wall-1 {
    grid-column: 5;
    grid-row: 2 / span 2;
}

.wall-2 {
    grid-column: 7;
    grid-row: 4 / span 2;
}
/* Временные слоты */
.time-slots {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.time-slots::-webkit-scrollbar {
    width: 4px;
}

.time-slots::-webkit-scrollbar-track {
    background: rgba(124, 87, 71, 0.05);
    border-radius: 2px;
}

.time-slots::-webkit-scrollbar-thumb {
    background: var(--bright-green);
    border-radius: 2px;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(124, 87, 71, 0.1);
}

.time-slot:hover:not(.disabled) {
    transform: translateX(5px);
    border-color: var(--bright-green);
    box-shadow: 0 5px 15px rgba(0, 150, 64, 0.1);
}

.time-slot.selected {
    background: var(--bright-green);
    color: white;
    border-color: var(--bright-green);
}

.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.slot-time {
    font-weight: 600;
    font-size: 1rem;
}

.slot-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.slot-status.available {
    background: rgba(0, 150, 64, 0.1);
    color: var(--bright-green);
}

.slot-status.booked {
    background: rgba(227, 6, 19, 0.1);
    color: var(--bright-red);
}

/* Форма бронирования */
.booking-form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(124, 87, 71, 0.08);
    border: 1px solid rgba(124, 87, 71, 0.1);
}

.form-control {
    border: 1px solid rgba(124, 87, 71, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--bright-green);
    box-shadow: 0 0 0 3px rgba(0, 150, 64, 0.1);
}

.btn-book-table {
    background: linear-gradient(135deg, var(--bright-green), var(--medium-green));
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-book-table:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 150, 64, 0.3);
}

.btn-book-table:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Адаптивность */
@media (max-width: 992px) {
    .restaurant-map {
        grid-template-columns: repeat(8, 1fr);
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .restaurant-map {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 20px;
    }

    .current-month {
        font-size: 1.5rem;
    }

    .time-slots-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .date-navigation {
        gap: 10px;
    }

    .date-nav-btn {
        width: 40px;
        height: 40px;
    }

    .current-date-display {
        min-width: 150px;
    }

    .current-month {
        font-size: 1.2rem;
    }

    .current-year {
        font-size: 1rem;
    }

    .booking-form-card {
        padding: 20px;
    }
}

/* Базовые стили для столов (уже есть в вашем коде) */
.table-regular {
    background: linear-gradient(135deg, var(--bright-green), var(--medium-green));
}

.table-gold {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
}

.table-bar {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* Стены */
.wall {
    background: linear-gradient(135deg, var(--dark-brown), #2c3e50);
    opacity: 0.3;
    border-radius: 8px;
}

.wall-1 {
    grid-column: 5;
    grid-row: 2 / 4;
}

.wall-2 {
    grid-column: 6;
    grid-row: 5 / 7;
}

.wall-3 {
    grid-column: 9 / 13;
    grid-row: 7;
    height: 40px;
    align-self: center;
}

/* Контейнер карты */
.restaurant-map {
    position: relative;
    border-radius: 20px;
    padding: 20px;
    min-height: 600px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(60px, auto);
    gap: 12px;
}

/* Стили для столов */
.table {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 0;
    overflow: hidden;
}

/* Размеры столов */
.table[data-table-id="1"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="2"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="3"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="4"] { grid-column: span 2; grid-row: span 2; }
.table[data-table-id="5"] { grid-column: span 3; grid-row: span 1; }
.table[data-table-id="6"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="7"] { grid-column: span 2; grid-row: span 1; }
.table[data-table-id="8"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="9"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="10"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="11"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="12"] { grid-column: span 1; grid-row: span 1; }
.table[data-table-id="13"] { grid-column: span 1; grid-row: span 1; }

/* Типы столов */
.table-regular {
    background: linear-gradient(135deg, #009640, #006b2e);
}
.table-gold {
    background: linear-gradient(135deg, #f1c40f, #d4a017);
    color: #2c3e50;
}
.table-bar {
    background: linear-gradient(135deg, #7f8c8d, #5a6268);
}

/* Окна */
.window {
    position: absolute;
    width: 106px;
    height: 80px;
    background: linear-gradient(135deg, #87CEEB, #4A90D9);
    border-radius: 12px 12px 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.window::before {
    content: '❖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
}

.window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 84px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.window:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Индивидуальное позиционирование окон */
.window-top-1 { top: 10px; left: 3%; }
.window-top-2 { top: 10px; left: 20%; }
.window-top-3 { top: 10px; left: 52%; }
.window-top-4 { top: 10px; left: 76%; }

/* Подписи к окнам */
.window-top-1::after {
    content: 'Окно 1';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.window-top-2::after {
    content: 'Окно 2'; position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.window-top-3::after {
    content: 'Окно 3';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);}
.window-top-4::after {
    content: 'Окно 4';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Стены */
.wall-top, .wall-bottom, .wall-left, .wall-right {
    position: absolute;
    background: linear-gradient(135deg, #8B7355, #6B5340);
    z-index: 5;
}
.wall-top { top: 0; left: 0; right: 0; height: 4px; }
.wall-bottom { bottom: 0; left: 0; right: 0; height: 4px; }
.wall-left { top: 0; left: 0; bottom: 0; width: 4px; }
.wall-right { top: 0; right: 0; bottom: 0; width: 4px; }

/* Внутренние перегородки */
.wall-1 {
    position: absolute;
    top: 4px;
    left: -1%;
    transform: translateX(-50%);
    width: 4px;
    height: 190px;
    background: linear-gradient(180deg, #8B7355, #6B5340);
    border-radius: 2px;
    z-index: 5;
}
.wall-2 {
    position: absolute;
    bottom: 20px;
    left: 12%;
    width: 4px;
    height: 190px;
    background: linear-gradient(180deg, #8B7355, #6B5340);
    border-radius: 2px;
    z-index: 5;
}

/* Вход */
.entrance {
    position: absolute;
    bottom: 508px;
    right: 8px;
    z-index: 10;
}
.entrance-door {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    width: 75px;
    height: 75px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #D2691E;
    position: relative;
    overflow: hidden;
}
.entrance-door i { font-size: 36px; color: #FFD700; }
.entrance-door span { color: white; font-size: 14px; font-weight: 600; }
.entrance-door:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты */
@media (max-width: 992px) {
    .restaurant-map {
        gap: 8px;
        grid-auto-rows: minmax(50px, auto);
    }
    .window { width: 70px; height: 60px; }
    .window::before { font-size: 16px; }
    .window::after { width: 50px; }
    .window-top-1 { left: 2%; }
    .window-top-2 { left: 24%; }
    .window-top-3 { left: 48%; }
    .window-top-4 { left: 72%; }
    .entrance { bottom: 500px; }
    .entrance-door { width: 60px; height: 60px; }
    .table { font-size: 12px; padding: 6px; }
    /* Уменьшаем span столов */
    .table[data-table-id="1"] { grid-column: span 2; }
    .table[data-table-id="4"] { grid-column: span 2; grid-row: span 1; }
    .table[data-table-id="5"] { grid-column: span 2; }
}

/* Мобильные телефоны */
@media (max-width: 768px) {
    .restaurant-map {
        gap: 6px;
        grid-auto-rows: minmax(40px, auto);
        padding: 15px;
    }
    .window { width: 50px; height: 40px; }
    .window::before { font-size: 12px; }
    .window::after { width: 30px; }
    .window-top-1 { left: 1%; top: 5px; }
    .window-top-2 { left: 22%; top: 5px; }
    .window-top-3 { left: 47%; top: 5px; }
    .window-top-4 { left: 72%; top: 5px; }
    .window-top-1::after,
    .window-top-2::after,
    .window-top-3::after,
    .window-top-4::after {
        font-size: 7px;
        bottom: -18px;
        padding: 2px 5px;
    }
    .entrance { bottom: 380px; }
    .entrance-door { width: 45px; height: 45px; }
    .entrance-door i { font-size: 20px; }
    .entrance-door span { font-size: 9px; }
    .table { font-size: 9px; padding: 4px; }
    /* Компактные размеры столов */
    .table[data-table-id="1"] { grid-column: span 2; }
    .table[data-table-id="2"] { grid-column: span 2; }
    .table[data-table-id="3"] { grid-column: span 2; }
    .table[data-table-id="4"] { grid-column: span 2; grid-row: span 1; }
    .table[data-table-id="5"] { grid-column: span 2; }
    .table[data-table-id="6"] { grid-column: span 2; }
    .table[data-table-id="7"] { grid-column: span 2; }
    .table[data-table-id="8"] { grid-column: span 1; }
    .table[data-table-id="9"] { grid-column: span 1; }
    .table[data-table-id="10"] { grid-column: span 1; }
    .table[data-table-id="11"] { grid-column: span 1; }
    .table[data-table-id="12"] { grid-column: span 1; }
    .table[data-table-id="13"] { grid-column: span 1; }
    .wall-1 { height: 100px; left: 2%; }
    .wall-2 { height: 100px; left: 8%; bottom: 23px; }
}

/* Маленькие телефоны */
@media (max-width: 576px) {
    .restaurant-map {
        gap: 4px;
        grid-auto-rows: minmax(35px, auto);
        padding: 10px;
    }
    .window { width: 55px;height: 55px; }
    .window::before { font-size: 9px; }
    .window-top-1 { left: 4%; }
    .window-top-2 { left: 19%; }
    .window-top-3 { left: 50%; }
    .window-top-4 { left: 75%; }
    .entrance {  bottom: 506px; right: 9px; }
    .entrance-door { width: 35px; height: 35px; }
    .entrance-door i { font-size: 16px; }
    .entrance-door span { font-size: 7px; }
    .table { font-size: 7px; padding: 3px; }
    .wall-1 { height: 160px; }
    .wall-2 { height: 160px; }
}

/* Очень маленькие телефоны */
@media (max-width: 400px) {
    .restaurant-map {
        gap: 3px;
        grid-auto-rows: minmax(30px, auto);
    }
    .window { width: 50px; height: 50px; }
    .window-top-1 { left: 3%; }
    .window-top-2 { left: 19%; }
    .window-top-3 { left: 50%; }
    .window-top-4 { left: 75%; }
    .entrance { bottom: 508px; }
    .entrance-door { width: 30px; height: 30px; }
    .table { font-size: 6px; padding: 2px; }
}

/* Анимации */
@keyframes doorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes windowGlow {
    0% { box-shadow: 0 0 0 rgba(135, 206, 235, 0); }
    50% { box-shadow: 0 0 10px rgba(135, 206, 235, 0.5); }
    100% { box-shadow: 0 0 0 rgba(135, 206, 235, 0); }
}
.entrance-door:hover { animation: doorPulse 0.5s ease; }
.window:hover { animation: windowGlow 1s ease; }


.error-message {
    font-size: 0.8rem;
    color: #E30613;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-control.is-invalid {
    border-color: #E30613 !important;
}

.form-control.is-valid {
    border-color: #009640 !important;
}

.btn-book-table:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
