/* --- Global Wrapper and Layout --- */
.custom-meetup-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex; /* Enable Flexbox for two-column layout */
    gap: 40px;
}

/* --- Left Column: Filters (Sidebar) --- */
.meetup-sidebar {
    flex-basis: 250px; /* Fixed width for the filter column */
    flex-shrink: 0;
    padding-top: 50px; /* Align with the top of the content */
}

.meetup-filters h4 {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin-bottom: 15px;
}

.location-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-filter-options .filter-label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* --- Custom Checkbox Styling (Red Square) --- */
.location-filter-options input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px; /* Slightly larger */
    height: 18px; /* Slightly larger */
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin-right: 8px; /* Space between checkbox and label */
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.location-filter-options input[type="checkbox"]:checked {
    background-color: #DB383A; /* Red fill when checked */
    border-color: #DB383A;
}

/* Optional: White checkmark inside the red square when checked */
.location-filter-options input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- Right Column: Meetup Content --- */
.meetup-list-content {
    flex-grow: 1; /* Content takes the remaining space */
    padding-right: 20px;
}

.meetup-location-group {
    margin-bottom: 30px;
}

.meetup-location-group h3.location-heading {
    font-size: 28px;
    font-weight: bold;
    color: #333; /* Default, can be overridden by Elementor control */
    margin: 0 0 20px 0;
}

.meetup-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.meetup-city {
    font-size: 18px;
    color: #555;
    flex-basis: 200px; /* Adjust as needed */
    flex-shrink: 0;
}

.meetup-date {
    font-size: 18px;
    color: #555;
    flex-grow: 1;
}

.know-more-link {
    font-size: 16px;
    color: #DB383A; /* Red link color */
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    position: relative;
    padding-bottom: 2px;
}

.know-more-link:hover {
    text-decoration: underline;
}

.item-separator {
    border: 0;
    height: 1px;
    background-color: #DDD;
    margin: 10px 0;
}

/* Hide groups that don't match the filter */
.meetup-location-group.hidden {
    display: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .custom-meetup-wrapper {
        flex-direction: column; /* Stack filters on top for mobile */
        gap: 20px;
    }
    .meetup-sidebar {
        flex-basis: auto;
        padding-top: 0;
        padding: 0 20px;
    }
    .meetup-list-content {
        padding: 0 20px;
    }
    .meetup-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .meetup-city, .meetup-date, .know-more-link {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 5px;
    }
    .know-more-link {
        margin-top: 5px;
    }
}