/* Booking Calendar Page Styles */
.booking-calendar-page {
    padding: 4rem 5%;
    background: var(--cream);
}

.calendar-booking-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Calendar Section */
.calendar-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.calendar-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--forest);
    margin: 0;
}

.calendar-nav-btn {
    background: var(--sand);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.calendar-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background: white;
}

.legend-color.booked {
    background: #ffcccb;
    border-color: #ff6b6b;
}

.legend-color.selected {
    background: var(--terracotta);
    border-color: var(--terracotta);
}

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

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 1rem 0.5rem;
    color: var(--forest);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 0.95rem;
    position: relative;
}

.calendar-day:hover:not(.disabled):not(.booked) {
    border-color: var(--terracotta);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-day.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.booked {
    background: #ffcccb;
    color: #721c24;
    cursor: not-allowed;
    position: relative;
}

.calendar-day.booked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ff6b6b;
    transform: translateY(-50%);
}

.calendar-day.selected {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
    font-weight: 600;
}

.calendar-day.in-range {
    background: rgba(201, 123, 99, 0.2);
    border-color: var(--terracotta);
}

.calendar-day.today {
    font-weight: 600;
    color: var(--forest);
}

.calendar-day.today::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--terracotta);
    border-radius: 50%;
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

/* Booking Summary */
.booking-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--sand);
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-summary h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--forest);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--terracotta);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--terracotta);
}

/* Booking Form Section */
.booking-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: fit-content;
    position: sticky;
    top: 120px;
}

.booking-form-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--forest);
}

.form-intro {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.calendar-booking-form .form-group {
    margin-bottom: 1.5rem;
}

.calendar-booking-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}

.calendar-booking-form input,
.calendar-booking-form select,
.calendar-booking-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--sand);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: var(--cream);
}

.calendar-booking-form input:focus,
.calendar-booking-form select:focus,
.calendar-booking-form textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    background: white;
}

.calendar-booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-button:disabled:hover {
    transform: none;
}

.submit-button:disabled::before {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .calendar-booking-layout {
        grid-template-columns: 1fr;
    }
    
    .booking-form-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .calendar-legend {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
    
    .calendar-booking-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calendar-day-header {
        font-size: 0.75rem;
        padding: 0.75rem 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
}
