/* Booking Calendar Styles */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.calendar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: capitalize;
}

.calendar-nav-btn {
    width: 2rem;
    height: 2rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.calendar-nav-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: scale(1.05);
}

.calendar-nav-btn:active {
    transform: scale(0.95);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
}

.calendar-weekdays > div {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    padding: 0.375rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
    padding: 0.75rem 0.75rem 1.75rem 0.75rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:not(.disabled):hover {
    background: #e0f2fe;
    transform: scale(1.1);
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-day.today {
    border: 2px solid #10b981;
    font-weight: 700;
}

.calendar-day.selected {
    background: #10b981;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.4);
}

.calendar-day.check-in {
    border-radius: 0.5rem;
    position: relative;
}

.calendar-day.check-in::after {
    content: 'Заезд';
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5625rem;
    font-weight: 600;
    color: #10b981;
    white-space: nowrap;
}

.calendar-day.check-out {
    border-radius: 0.5rem;
    position: relative;
}

.calendar-day.check-out::after {
    content: 'Выезд';
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5625rem;
    font-weight: 600;
    color: #10b981;
    white-space: nowrap;
}

.calendar-day.in-range {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-radius: 0;
    position: relative;
}

.calendar-day.in-range:hover {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
}

/* Dropdown Styles */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    z-index: 50;
    max-height: 450px;
    overflow-y: auto;
    pointer-events: auto;
}

.dropdown-menu.hidden {
    display: none !important;
    pointer-events: none !important;
}

.guest-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.guest-counter.compact {
    padding: 0.625rem 0.875rem;
}

.guest-counter:last-child {
    border-bottom: none;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.counter-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #10b981;
    background: white;
    color: #10b981;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.counter-btn.compact {
    width: 1.875rem;
    height: 1.875rem;
    font-size: 0.95rem;
}

.counter-btn:hover:not(:disabled) {
    background: #10b981;
    color: white;
    transform: scale(1.1);
}

.counter-btn:disabled {
    border-color: #e2e8f0;
    color: #cbd5e1;
    cursor: not-allowed;
}

.counter-value {
    min-width: 2rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

/* Date Display */
.date-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.date-display.compact {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
}

.date-display:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.date-info {
    flex: 1;
}

.nights-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #10b981;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.nights-badge.compact {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

/* Form Enhancements */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-section-title i {
    color: #10b981;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu:not(.hidden) {
    animation: slideDown 0.2s ease-out;
}

/* Responsive */
@media (max-width: 640px) {
    .calendar-days {
        gap: 0.125rem;
        padding: 0.5rem;
    }

    .calendar-day {
        font-size: 0.7rem;
    }

    .calendar-header {
        padding: 0.625rem;
    }

    .calendar-title {
        font-size: 0.9375rem;
    }

    .calendar-weekdays > div {
        font-size: 0.6rem;
        padding: 0.25rem 0;
    }
}
