/* ★★★ ПРЕМИАЛЬНЫЙ КАЛЕНДАРЬ С GLASSMORPHISM ★★★ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.booking-calendar-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.booking-calendar-popup.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.booking-calendar {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2), 0 10px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Кастомный scrollbar */
.booking-calendar::-webkit-scrollbar {
    width: 8px;
}

.booking-calendar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.booking-calendar::-webkit-scrollbar-thumb {
    background: #c09542;
    border-radius: 10px;
}

.booking-calendar::-webkit-scrollbar-thumb:hover {
    background: #a67c2e;
}

.calendar-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-close-btn:hover {
    background: white;
    transform: rotate(90deg) scale(1.05);
    border-color: #c09542;
    color: #c09542;
    box-shadow: 0 6px 20px rgba(192, 149, 66, 0.2);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.calendar-nav-btn {
    background: linear-gradient(135deg, rgba(27, 53, 102, 0.08) 0%, rgba(192, 149, 66, 0.08) 100%);
    border: 1px solid rgba(192, 149, 66, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #1b3566;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c09542 0%, #a67c2e 100%);
    border-color: #c09542;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 149, 66, 0.3);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-months {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .calendar-months {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .booking-calendar {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 60px 20px 20px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .calendar-nav {
        gap: 20px;
    }
    
    .calendar-months {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .booking-calendar {
        padding: 60px 15px 15px;
    }
    
    .calendar-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .calendar-month-title {
        font-size: 20px;
    }
    
    .calendar-weekday {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .calendar-day {
        border-radius: 8px;
    }
    
    .calendar-day-number {
        font-size: 13px;
    }
    
    .calendar-day-price {
        font-size: 10px;
    }
}

.calendar-month {
    min-width: 0;
}

.calendar-month-title {
    font-size: 24px;
    font-weight: 700;
    color: #1b3566;
    margin-bottom: 20px;
    text-align: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 10px 0;
}

.calendar-weekday.weekend {
    color: #e74c3c;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 8px 4px;
    position: relative;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(192, 149, 66, 0.2);
    border-color: #c09542;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #c09542 0%, #a67c2e 100%);
    border-color: #c09542;
    color: white;
    box-shadow: 0 6px 20px rgba(192, 149, 66, 0.4);
}

.calendar-day.in-range {
    background: linear-gradient(135deg, rgba(192, 149, 66, 0.15) 0%, rgba(27, 53, 102, 0.15) 100%);
    border-color: rgba(192, 149, 66, 0.3);
}

.calendar-day.start-date {
    background: #405a8d;
    border-radius: 8px 0 0 8px;
}

.calendar-day.end-date {
    background: #405a8d;
    border-radius: 0 8px 8px 0;
}

.calendar-day.start-date.end-date {
    border-radius: 8px;
}

.calendar-day-number {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.calendar-day.weekend .calendar-day-number {
    color: #e74c3c;
}

.calendar-day.selected .calendar-day-number {
    color: white;
}

.calendar-day.in-range .calendar-day-number {
    color: #1a1a1a;
}

.calendar-day-price {
    font-size: 11px;
    font-weight: 700;
    color: #c09542;
}

.calendar-day.selected .calendar-day-price {
    color: white;
}

.calendar-day.in-range .calendar-day-price {
    color: #c09542;
}

.calendar-footer {
    margin-top: 30px;
    text-align: center;
}

.calendar-footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #1b3566;
    margin-bottom: 8px;
}

.calendar-footer-subtitle {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.calendar-selected-info {
    background: #f8fafc;
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.calendar-selected-info.active {
    display: block;
}

.calendar-selected-dates {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.calendar-selected-date {
    text-align: center;
}

.calendar-selected-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.calendar-selected-value {
    font-size: 18px;
    font-weight: 700;
    color: #1b3566;
}

.calendar-selected-nights {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.calendar-selected-nights strong {
    color: #c09542;
    font-size: 16px;
}

.calendar-confirm-btn {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #c09542 0%, #a67c2e 100%);
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    color: white;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(192, 149, 66, 0.35);
}

/* Shine эффект */
.calendar-confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.calendar-confirm-btn:hover::before {
    left: 100%;
}

.calendar-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 149, 66, 0.5);
}

.calendar-confirm-btn:active {
    transform: scale(0.98);
}

.calendar-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

