/* Modern Booking Calendar Styles */

.booking-calendar-container {
    margin: 30px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.calendar-header h3 {
    margin: 0;
    color: #252525;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f7a392;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: #f58b77;
    transform: scale(1.05);
}

.calendar-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Horizontal Date Boxes */
.calendar-dates {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.calendar-dates::-webkit-scrollbar {
    height: 8px;
}

.calendar-dates::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.calendar-dates::-webkit-scrollbar-thumb {
    background: #f7a392;
    border-radius: 10px;
}

.calendar-dates::-webkit-scrollbar-thumb:hover {
    background: #f58b77;
}

.date-box {
    min-width: 90px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.date-box:hover {
    border-color: #f7a392;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(247, 163, 146, 0.3);
}

.date-box.selected {
    background: linear-gradient(135deg, #f7a392 0%, #f58b77 100%);
    border-color: #f7a392;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(247, 163, 146, 0.4);
}

.date-box.disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.date-box.disabled:hover {
    transform: none;
    box-shadow: none;
}

.date-box-day {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.7;
}

.date-box.selected .date-box-day {
    opacity: 1;
}

.date-box-date {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.date-box-month {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
}

.date-box.selected .date-box-month {
    opacity: 1;
}

/* Slots Section */
.slots-container {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    display: none;
}

.slots-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slots-header {
    margin-bottom: 20px;
}

.slots-header h4 {
    margin: 0 0 5px 0;
    color: #252525;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.slots-date-info {
    color: #707070;
    font-size: 14px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.slot-box {
    padding: 12px 15px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.slot-box:hover {
    border-color: #f7a392;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(247, 163, 146, 0.25);
}

.slot-box.selected {
    background: #f7a392;
    border-color: #f7a392;
    color: white;
}

.slot-box.unavailable {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    position: relative;
}

.slot-box.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #999;
    transform: translateY(-50%);
}

.slot-box.unavailable:hover {
    transform: none;
    box-shadow: none;
}

.slots-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.slots-loading i {
    font-size: 32px;
    color: #f7a392;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.slots-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

.slots-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Legend */
.slots-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
}

.legend-box.available {
    background: #ffffff;
    border-color: #f7a392;
}

.legend-box.selected {
    background: #f7a392;
    border-color: #f7a392;
}

.legend-box.unavailable {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .date-box {
        min-width: 80px;
        height: 90px;
    }
    
    .date-box-date {
        font-size: 24px;
    }
    
    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .slot-box {
        padding: 10px;
        font-size: 13px;
    }
    
    .slots-legend {
        justify-content: center;
    }
}
