.fac-calendar-wrapper {
    margin: 20px 0;
    text-align: center;
}

.fac-calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Reduced gap for a tighter layout */
    justify-content: center;
    margin-bottom: 15px;
}

/* Default styling for months */
.fac-month {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px; /* Reduced padding for smaller buttons */
    border-radius: 20px; /* Pill shape */
    font-size: 12px; /* Reduced font size */
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

/* Enforce 6 months per row on desktop */
@media (min-width: 769px) {
    .fac-month {
        flex: 0 0 calc(16.66% - 6px); /* Adjusted for smaller gap (6px) */
        max-width: calc(16.66% - 6px);
        min-width: 50px; /* Reduced min-width for smaller buttons */
        box-sizing: border-box;
    }
}

.fac-available {
    background: linear-gradient(135deg, #2e7d32, #66bb6a); /* Green gradient */
    color: white;
}

.fac-unavailable {
    background-color: rgba(200, 200, 200, 0.3);
    color: #666;
}

.fac-month:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fac-plane-icon {
    margin-left: 3px; /* Reduced margin */
    font-size: 12px; /* Match the reduced font size */
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .fac-calendar {
        gap: 6px;
    }

    .fac-month {
        padding: 3px 8px; /* Slightly more padding on mobile for readability */
        font-size: 11px;
        flex: initial;
        max-width: initial;
        min-width: 0;
    }

    .fac-plane-icon {
        font-size: 11px;
    }
}