/* Booking Calendar Styles */
.calendar-container {
    margin: 2rem 0;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.calendar-nav-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-month-year {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.calendar-day:hover:not(.disabled):not(.booked) {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.calendar-day.today {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
}

.calendar-day.disabled {
    color: var(--border-color);
    cursor: not-allowed;
    background: #f5f5f5;
}

.calendar-day.booked {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

.calendar-day.booked.calendar-blocked {
    background: #ede7f6;
    color: #4527a0;
    text-decoration: none;
}

.calendar-day.booked.calendar-unavailable {
    background: #eceff1;
    color: #37474f;
    text-decoration: none;
}

.calendar-day.booked.calendar-blocked,
.calendar-day.booked.calendar-unavailable {
    cursor: not-allowed;
    pointer-events: none;
}


.calendar-day.checkout-available {
    background: #fff3e0;
    color: #e65100;
    border: 2px dashed #ff9800;
    cursor: pointer;
    pointer-events: auto;
}

.calendar-day.checkout-available:hover {
    background: #ffe0b2;
    border-color: #f57c00;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.calendar-day.in-range {
    background: rgba(26, 95, 122, 0.2);
    color: var(--primary-color);
}

.calendar-day.check-in {
    background: var(--primary-color);
    color: white;
    border-radius: 8px 0 0 8px;
}

.calendar-day.check-out {
    background: var(--primary-color);
    color: white;
    border-radius: 0 8px 8px 0;
}

.calendar-day.range-start {
    border-radius: 8px 0 0 8px;
}

.calendar-day.range-end {
    border-radius: 0 8px 8px 0;
}

/* Calendar Navigation */
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-btn:hover {
    border-color: var(--primary-color);
}

/* Date Range Display */
.selected-dates {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.date-display {
    flex: 1;
}

.date-display-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.date-display-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.date-display-value.empty {
    color: var(--text-light);
    font-style: italic;
}

/* Booking Status Messages */
.booking-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.booking-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.booking-status.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.booking-status.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #42a5f5;
}

/* Loading State */
.calendar-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Mobile Calendar Adjustments */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
    }

    .calendar-grid {
        gap: 0.25rem;
    }

    .calendar-day {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .calendar-day-header {
        font-size: 0.8rem;
        padding: 0.25rem;
    }

    .calendar-month-year {
        font-size: 1.1rem;
    }

    .selected-dates {
        flex-direction: column;
        gap: 1rem;
    }

    .calendar-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .calendar-view-toggle {
        justify-content: center;
    }
}

/* Calendar Animation */
@keyframes calendarFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-grid {
    animation: calendarFadeIn 0.3s ease;
}

/* Calendar Legend */
.calendar-legend {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.today-color {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    line-height: 1;
}

.available-color {
    background: white;
    border: 2px solid var(--border-color);
}

.selected-color {
    background: var(--primary-color);
    color: white;
}

.in-range-color {
    background: rgba(26, 95, 122, 0.2);
    border: 2px solid var(--primary-color);
}

.checkout-color {
    background: #fff3e0;
    border: 2px dashed #ff9800;
}

.booked-color {
    background: #ffebee;
    color: #c62828;
    text-decoration: line-through;
    position: relative;
}

.booked-color::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #c62828;
}

.blocked-hold-color {
    background: #ede7f6;
    border: 2px solid #5e35b1;
}

.unavailable-cal-color {
    background: #eceff1;
    border: 2px solid #546e7a;
}

.disabled-color {
    background: #f5f5f5;
    border: 2px solid var(--border-color);
}

/* Mobile Legend Adjustments */
@media (max-width: 768px) {
    .calendar-legend {
        padding: 0.5rem 0.75rem;
    }

    .legend-items {
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .legend-item {
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .legend-color {
        width: 16px;
        height: 16px;
    }

    .today-color {
        font-size: 0.6rem;
    }
}

/* Full-page booking: tighter labels when six steps */
.booking-modal--page .step-indicator .step-label {
    font-size: 0.62rem;
    line-height: 1.15;
    text-align: center;
    max-width: 4rem;
}

@media (min-width: 768px) {
    .booking-modal--page .step-indicator .step-label {
        font-size: 0.78rem;
        max-width: none;
    }
}

.review-next-hint {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.payment-proof-intro {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.payment-proof-field {
    margin-bottom: 0.75rem;
}

.payment-proof-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.payment-proof-field input[type="file"] {
    width: 100%;
    max-width: 28rem;
    padding: 0.5rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    cursor: pointer;
}

.payment-proof-note {
    color: var(--text-light);
    margin-top: 0.5rem;
}
