/* Красивый календарь с ценами - POPUP версия */
.booking-calendar-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.2s;
}

.booking-calendar-popup.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.booking-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.calendar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 10;
}

.calendar-close-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.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: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1b3566;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.calendar-nav-btn:hover {
    background: #f0f0f0;
}

.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;
    }
}

.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: 1px solid #e1e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    padding: 8px 4px;
    position: relative;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    border-color: #c09542;
    box-shadow: 0 2px 8px rgba(192, 149, 66, 0.2);
    transform: translateY(-2px);
}

.calendar-day.empty {
    border: none;
    cursor: default;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f8f8f8;
}

.calendar-day.selected {
    background: #405a8d;
    border-color: #405a8d;
    color: white;
}

.calendar-day.in-range {
    background: linear-gradient(90deg, #405a8d 0%, #5a7ab8 100%);
    border-color: #405a8d;
    color: white;
}

.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: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.calendar-day.weekend .calendar-day-number {
    color: #e74c3c;
}

.calendar-day.selected .calendar-day-number,
.calendar-day.in-range .calendar-day-number {
    color: white;
}

.calendar-day-price {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.calendar-day.selected .calendar-day-price,
.calendar-day.in-range .calendar-day-price {
    color: rgba(255, 255, 255, 0.9);
}

.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: 16px;
    background: linear-gradient(135deg, #c09542 0%, #a87e35 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(192, 149, 66, 0.35);
}

.calendar-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 149, 66, 0.5);
}

.calendar-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

