/* Брендовые цвета из дизайна */
:root {
    --brand-cream: #fffaf5;
    --brand-terracotta: #bc5033;
    --brand-green: #414f36;
    --brand-black: #1e1e1e;
    --brand-light-terracotta: #eda38e;
    --brand-sage: #bdc691;
    --night-slot: #6b7280;
}

/* ScheduleApp.css */



.schedule-grid {
    display: grid;
    gap: 1px;
    background: var(--brand-cream);
}

.desktop-grid {
    grid-template-columns: 100px repeat(var(--days-count), 1fr);
}

.mobile-grid {
    grid-template-columns: 100px 1fr;
}

.time-label {
    background: var(--brand-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-green);
    border-right: 2px solid var(--brand-terracotta);
    padding: 12px 8px;
    min-height: 60px;

}

.day-header {
    background: var(--color-brand-accent);
    color: var(--brand-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    padding: 16px 12px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.day-header-content {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.day-header.non-working-day {
    background: #6b7280;
    opacity: 0.7;
}

.day-header.holiday {
    background: #dc2626;
    opacity: 0.9;
}

.day-name {
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.day-date {
    font-size: 18px;
    font-weight: 800;
}

.time-slot {
    background: white;
    border: 1px solid rgba(188, 80, 51, 0.1);
    min-height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--brand-green);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.time-slot:hover {
    background: rgba(188, 80, 51, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(188, 80, 51, 0.15);

}

.time-slot.night-hours {
    background: var(--night-slot);
    color: var(--brand-cream);
    border-color: rgba(65, 79, 54, 0.3);
}

.time-slot.night-hours:hover {
    background: #2d3625;
    color: white;
}

/* Выбранные блоки - в стиле брендинга */
.selected-block {
    background: var(--brand-green);
    color: white;
    font-weight: 700;
    border-radius: 18px 18px 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 20px rgba(65, 79, 54, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 20;
}

.selected-block:hover {
    box-shadow: 0 8px 24px rgba(65, 79, 54, 0.5);
}

/* Старый класс для совместимости */
.merged-block {
    background: var(--brand-terracotta);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 20px rgba(188, 80, 51, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    margin: 2px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.merged-block:hover {
    background: #a0452b;
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 24px rgba(188, 80, 51, 0.5);
}

.day-selector {
    background: var(--brand-cream);
    padding: 20px;
    border-bottom: 2px solid rgba(188, 80, 51, 0.1);
    display: none;
}

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

.day-button {
    padding: 12px 8px;
    background: white;
    border: 2px solid rgba(188, 80, 51, 0.2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-green);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.day-button:hover {
    background: rgba(188, 80, 51, 0.05);
    border-color: var(--brand-terracotta);
    transform: translateY(-2px);
}

.day-button.selected {
    background: var(--brand-terracotta);
    color: white;
    border-color: var(--brand-terracotta);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(188, 80, 51, 0.3);
}

.day-button-name {
    font-size: 11px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.day-button-date {
    font-size: 16px;
    font-weight: 700;
}

.day-button.non-working {
    background: #f8f9fa;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #e5e7eb;
}

.day-button.non-working:hover {
    background: #f8f9fa;
    transform: none;
}

.day-button.holiday {
    background: #fef2f2;
    color: #dc2626;
    border-color: #f87171;
    cursor: not-allowed;
    opacity: 0.8;
}

.day-button.holiday:hover {
    background: #fef2f2;
    transform: none;
}

.week-navigation {
 /*   background: var(--brand-cream);*/
    padding: 20px 24px;
    border-bottom: 2px solid rgba(188, 80, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.week-nav-button {
    cursor: pointer;
    font-weight: 600;
    color: var(--brand-terracotta);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.week-nav-button:hover {

    color: var(--color-brand-green);

}

.week-nav-button:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.current-week {
    font-weight: 700;
    color: var(--brand-green);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.day-night-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.toggle-container {
    display: flex;
}

.toggle-button {
    padding: 10px 18px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-green);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.toggle-button.active {
    background: var(--brand-terracotta);
    color: white;
    box-shadow: 0 2px 8px rgba(188, 80, 51, 0.3);
}

.toggle-button:not(.active):hover {
    background: rgba(188, 80, 51, 0.1);
    color: var(--brand-terracotta);
}

.time-slot.inactive {
    background: #f8f9fa !important;
    color: #9ca3af !important;
    cursor: default;
    border-color: #e5e7eb !important;
}

.time-slot.inactive:hover {
    transform: none;
    box-shadow: none;
    background: #f8f9fa !important;
}

.legend {
    background: var(--brand-cream);
    padding: 16px 24px;
    border-top: 2px solid rgba(188, 80, 51, 0.1);
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 6px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .desktop-grid {
        display: none;
    }

    .mobile-grid {
        display: grid;
    }

    .day-selector {
        display: block;
    }

    .time-label {
        font-size: 11px;
        padding: 8px 6px;
        min-height: 50px;
    }

    .day-header {
        font-size: 12px;
        padding: 12px 8px;
    }

    .time-slot {
        font-size: 11px;
        min-height: 50px;
    }

    .selected-block, .merged-block {
        font-size: 10px;
        margin: 1px;
        padding: 4px;
    }

    .week-navigation {
        padding: 16px 20px;
    }

    .week-nav-button {

        font-size: 13px;
    }
}

@media (min-width: 769px) {
    .desktop-grid {
        display: grid;
    }

    .mobile-grid {
        display: none;
    }
}

@media (max-width: 480px) {
    .schedule-container {
        margin: 10px;
        border-radius: 12px;
    }

    .time-label {
        font-size: 10px;
        padding: 6px 4px;
        min-height: 45px;
    }

    .time-slot {
        font-size: 10px;
        min-height: 45px;
    }

    .day-button {
        font-size: 11px;
        padding: 8px 4px;
    }

    .week-navigation {
        padding: 12px 16px;
    }
}

/* Стили в духе сайта */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-cream);
    color: var(--brand-black);
}

.font-script {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-gradient {
    background: var(--brand-terracotta);
}

.hall-selector {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(30, 30, 30, 0.08);
    border: 1px solid rgba(188, 80, 51, 0.1);
}

.hall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.hall-card {
    padding: 20px;
    border: 2px solid rgba(188, 80, 51, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.hall-card:hover {
    border-color: var(--brand-terracotta);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(188, 80, 51, 0.15);
}

.hall-card.selected {
    border-color: var(--brand-terracotta);
    background: rgba(188, 80, 51, 0.05);
    box-shadow: 0 4px 16px rgba(188, 80, 51, 0.2);
}

/* --- НОВЫЕ СТИЛИ ДЛЯ ФОРМЫ БРОНИРОВАНИЯ --- */
.booking-form {
    position: sticky;
    top: 24px;
}

.booking-form h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--brand-green);
    font-size: 1.75rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--brand-green);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(65, 79, 54, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #fcfcfc;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-terracotta);
    box-shadow: 0 0 0 4px rgba(188, 80, 51, 0.1);
    background: white;
}

.booking-summary {
    background: var(--brand-cream);
    border: 2px solid rgba(188, 80, 51, 0.1);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 24px;
}

.price-breakdown {
    font-size: 14px;
    color: var(--brand-green);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-terracotta);
}

/* --- НОВЫЕ СТИЛИ ДЛЯ КНОПОК --- */
.submit-button, .modal-option-button {
    width: 100%;
    background-color: var(--brand-terracotta);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(188, 80, 51, 0.2);
}

.submit-button:hover, .modal-option-button {
    background-color: #a0452b; /* Darker terracotta */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(188, 80, 51, 0.3);
}

.submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* --- КОНЕЦ НОВЫХ СТИЛЕЙ ДЛЯ КНОПОК --- */


/* Loader styles в брендовых цветах */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    flex-direction: column;
}

.cultura-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-text {
    font-size: 1.2rem;
    color: var(--brand-green);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.loader-spinner {
    border: 4px solid rgba(188, 80, 51, 0.2);
    border-top: 4px solid var(--brand-terracotta);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Занятые слоты */
.time-slot.occupied {
    background: rgba(220, 38, 38, 0.1) !important;
    color: #dc2626 !important;
    cursor: not-allowed;
    opacity: 0.8;
    border: 2px solid rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.time-slot.occupied:hover {
    transform: none;
    box-shadow: none;
    background: rgba(220, 38, 38, 0.1) !important;
    color: #dc2626 !important;
}

.time-slot.occupied.night-hours {
    background: rgba(127, 29, 29, 0.3) !important;
    color: #fca5a5 !important;
    border: 2px solid rgba(127, 29, 29, 0.5);
}

.time-slot.occupied.night-hours:hover {
    background: rgba(127, 29, 29, 0.3) !important;
    color: #fca5a5 !important;
}

/* === СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА (С УЛУЧШЕНИЯМИ) === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 30, 30, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(30, 30, 30, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(188, 80, 51, 0.1);
}

.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close-button:hover {
    color: var(--brand-terracotta);
    background: rgba(188, 80, 51, 0.1);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 1rem;
    text-align: center;
}

/* Устаревший класс, оставляем для совместимости */
.modal-option {
    border: 2px solid rgba(188, 80, 51, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modal-option:hover {
    border-color: var(--brand-terracotta);
    background-color: rgba(188, 80, 51, 0.05);
    transform: translateY(-2px);
}

/* --- НОВЫЙ СТИЛЬ ДЛЯ КНОПОК ОПЛАТЫ --- */
.payment-button {
    width: 100%;
    background-color: var(--brand-green);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-button:hover {
    background-color: #2d3625; /* Darker green */
    transform: translateY(-2px);
}

.payment-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.modal-cancel-button {
    background-color:  #9ca3af;
    color: var(--brand-green);
    font-weight: 600;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
}
.modal-cancel-button:hover {
    text-decoration: underline;
}
.slot-price-text {
    color: var(--brand-green);
}

/* --- СТИЛИ ДЛЯ НОВОГО ПЕРЕКЛЮЧАТЕЛЯ ДЕНЬ/НОЧЬ (из SCSS) --- */
.switch-wrapper { /* Этот класс не используется в React, но стили для label и switch нужны */
    margin: 0; /* Убираем лишние отступы */
    font-size: 0;
}

.switch-label {
    font-size: 0.875rem; /* 14px */
    display: inline-block;
    vertical-align: middle; /* Выравниваем по центру с кнопкой */
    padding: 0 8px;
    transition: transform ease-in .2s, opacity ease-in .2s;
    font-weight: 600; /* Немного жирнее */
    opacity: 0.6;
    color: var(--brand-green); /* Цвет текста */
    text-align: center; /* Центрируем текст */
    line-height: 1.2; /* Для многострочного текста */
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px; /* Ширина переключателя */
    height: 30px; /* Высота переключателя */
    cursor: pointer;
    border-radius: 15px; /* Половина высоты */
    border: 1px solid #e8e8e8; /* Тонкая рамка */
    background-color: #bc5033; /* Светло-голубой для дня */
    transition: background-color .4s ease;
    overflow: hidden; /* Скрываем части солнца/луны */
    flex-shrink: 0; /* Чтобы не сжимался */
}



/* Солнце/Луна (кружок) */
.switch::after {
    position: absolute;
    content: "";
    height: 22px; /* Размер кружка */
    width: 22px; /* Размер кружка */
    top: 50%;
    left: 4px; /* Начальное положение */
    cursor: pointer;
    transform: translateY(-50%);
    background: #e8e8e8;
    transition: transform .3s ease-in-out, background-color .3s ease, box-shadow .3s ease;
    border-radius: 50%;
}

.switch-label.day.active {
    transform: scale(1.1);
    opacity: 1;
}
.switch-label.night.active {
    transform: scale(1.1);
    opacity: 1;
}

/* Стили для ночного режима */
.switch.night-active {

    background: #e8e8e8;

}

/* Скрытие облаков */
.switch.night-active::before {
    opacity: 0;
    transform: translateX(-20px);
}

/* --- КОНЕЦ СТИЛЕЙ ПЕРЕКЛЮЧАТЕЛЯ --- */

/* --- НОВЫЕ СТИЛИ ДЛЯ РЕЖИМА "СУТКИ" --- */

.switch.night-active::after {
    /* Градиент: левая половина желтая (солнце), правая - серая (луна) */
    background-color: #566170; /* Цвет солнца */

    /* Убираем тень луны/солнца или делаем универсальную */
    transform: translate(25px, -50%);
}
/* -------------------------------------- */


/* --- СТИЛИ ДЛЯ НЕАКТИВНЫХ ДНЕЙ (ПРОШЕДШИХ ИЛИ ПОЛНОСТЬЮ ЗАНЯТЫХ) --- */
.day-header.is-day-unavailable,
.day-button.is-day-unavailable {
    background-color: #e5e7eb !important; /* Более темный серый фон */
    color: #9ca3af !important;          /* Приглушенный серый текст */
    opacity: 0.6 !important;             /* Сделать немного прозрачнее */
    cursor: not-allowed !important;      /* Курсор "недоступно" */
    border-color: #d1d5db !important;    /* Серая рамка для кнопок */
}

/* Убираем эффекты наведения для неактивных кнопок дней */
.day-button.is-day-unavailable:hover {
    transform: none !important;
    box-shadow: none !important;
}
/* ------------------------------------------------------------------ */

/* --- СТИЛИ ДЛЯ НЕАКТИВНЫХ/ПРОШЕДШИХ СЛОТОВ --- */
.time-slot.is-past-or-unavailable {
    background-color: #f3f4f6 !important; /* Светло-серый фон */
    color: #9ca3af !important; /* Приглушенный серый текст */
    cursor: not-allowed !important; /* Курсор "недоступно" */
    border-color: #e5e7eb !important; /* Светлая рамка */
}

/* Убираем эффекты наведения для неактивных слотов */
.time-slot.is-past-or-unavailable:hover {
    transform: none;
    box-shadow: none;
}

/* Стили для неактивных ночных часов (если нужно немного темнее) */
.time-slot.is-past-or-unavailable.night-hours {
    background-color: #e5e7eb !important; /* Чуть темнее серый */
    color: #6b7280 !important;
    border-color: #d1d5db !important;
}
/* ------------------------------------------- */

.slot-info{
   padding: 16px 24px;
    color: #9ca3af !important;
    border-color: #e5e7eb !important;
}


