/*-------------------------------------------------------------
- Global CPT Styles
-------------------------------------------------------------*/
.insight_cpt_wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}
/*-------------------------------------------------------------
- Member Organization Card
-------------------------------------------------------------*/
.mem_org_content_container{
    border: solid 1px #e5e5e5;
    display: block;
    overflow: auto;
    padding: 10px;
    border-radius: 5px;
}
.mem_org_feat_img{
    height: 260px;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 1px #e5e5e5;
    border-radius: 5px;
    margin-bottom: 10px;
}
/*-------------------------------------------------------------
- Isotope
-------------------------------------------------------------*/
body .custom_isotope_button_wrapper a.mem_org_filter_button.button.is-checked {
    background-size: 800%!important;
    color: #1F4185!important;
    background-color: #E7F1F8!important;
    background-repeat: no-repeat!important;
}
.mem_org_isotope_wrapper{
    margin-top: 100px;
}
.custom_isotope_filter a.mem_org_filter_button {
    background: #013a8b;
    border-color: #013a8b;
    color: #E7F1F8;
    transition: background 0.3s ease;
}

.custom_isotope_filter a.mem_org_filter_button:hover {
    background: #264c80;
    transition: background 0.3s ease;
}

/*-------------------------------------------------------------
- Member ORganization Facet Styles
-------------------------------------------------------------*/
.facet-mem-org-wraper {
    margin-bottom: 20px;
}
.filter_scroll_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}
.mem_org_filter_group {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.mem_org_filter_group h2 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1F4185;
    border-bottom: 2px solid #E7F1F8;
    padding-bottom: 8px;
}
.mem_org_filter_group label {
    display: block;
    margin-bottom: 0px;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 0;
}
.mem_org_filter_group input[type="checkbox"] {
    margin-left: 8px;
    float: right;
}
.checkbox-group {
    flex-grow: 1;
}
.mem_org_filter_group_bottom {
    min-width: unset;
    max-width: 100%;
    gap: 20px;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
}
.mem_org_filter_group_bottom .search input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 0;
}
.datatables_reset_button {
    background-color: #F4A64E;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
.datatables_reset_button:hover {
    background-color: #e0954a;
}

/* Responsive adjustments */
@media screen and (max-width: 959px) {
    .filter_scroll_wrapper {
        display: block;
        height: 100%;
        width: 100%;
        overflow: scroll;
    }
    .mem_org_filter_group {
        max-width: none;
        min-width: auto;
        width: 75%;
        margin-left: 5%;
        margin-bottom: 20px;
    }
    .mem_org_filter_group_bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .mem_org_filter_group_bottom .reset-filter {
        text-align: center;
    }
}


/*-------------------------------------------------------------
- Toggle Checkbox
-------------------------------------------------------------*/
.toggle-checkboxes.button{
    background-color: #28817C;
    color: #ffffff;
    margin-bottom: 5px;
    padding: 6px 10px 4px;
    border-radius: 8px;
    text-align: center !important;
    font-size: .8rem;
    line-height: .8rem !important;
    border:none;
}
.toggle-checkboxes.button:hover{
    background-color: #F4A64E!important;
    color: #ffffff!important;
}

/*-------------------------------------------------------------
- Mobile Facet
-------------------------------------------------------------*/
.mobile_facet_bottom_buttom_wrapper {
    margin: 20px 0;
}
.responsive_facet_wrapper.mobile_facet_menu{
    display: block!important;
    position: fixed;
    z-index: 9999999;
    box-shadow: 0 0 4px rgba(0,0,0,.3);
    background: #fff;
    left: 150%;
    top: 0px;
    width: 100%!important;
    height: 100% !important;
    transition: left .2s ease-out,top .2s ease-out,width .2s ease-out,height .2s ease-out;
    padding:0;
}
.responsive_facet_wrapper.mobile_facet_menu.open{
    left:15%;
}
.responsive_facet_wrapper.mobile_facet_menu.closed{
    left:110%;
    transition: left .2s ease-out,top .2s ease-out,width .2s ease-out,height .2s ease-out;
}
.responsive_facet_wrapper.closed a.mobile_facet_side_button,
a.mobile_facet_trigger.mobile_facet_bottom_button.closed{
    display: none;
}

a.mobile_facet_bottom_button{
    z-index: 9999999;
    background: #276AB6;
    display: inline-block;
    padding: 5px 20px;
    color: #fff;
}
a.mobile_facet_side_button {
    position: absolute;
    top: 260px;
    display: inline-block;
    padding: 10px;
    left: -45px;
    background: #276AB6;
    color: #fff;
    transform: rotate(270deg);
    transform-origin: left top 0;
    font-size: 20px;
}
a.mobile_facet_bottom_button:hover,
a.mobile_facet_side_button:hover{
    color:#fff;
}

/*-------------------------------------------------------------
- Custom CPT Links
-------------------------------------------------------------*/
p.log_in_to_view {
    color: #b25900;
}

/*-------------------------------------------------------------
- Custom Member Organization Table
-------------------------------------------------------------*/
#mem_org_table_wrapper div.dt-button-collection {
    width: 300px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Target the button container within the collection */
#mem_org_table_wrapper div.dt-button-collection div.dt-button-collection-title,
#mem_org_table_wrapper div.dt-button-collection div {
    max-height: inherit;
    overflow-y: visible;
}

/* Style the buttons themselves */
#mem_org_table_wrapper div.dt-button-collection button.dt-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    margin-bottom: 1px;
    white-space: normal;
    word-break: break-word;
}

/* Active button styling */
#mem_org_table_wrapper div.dt-button-collection button.dt-button.active {
    background-color: #E7F1F8;
    color: #1F4185;
}

/*-------------------------------------------------------------
- Mobile Facet Media Query
-------------------------------------------------------------*/

@media screen and (max-width:959px){
    body .mem_org_isotope_wrapper{
        margin-top: 160px!important;
    }
}

@media only screen and (max-width: 959px) {
    a.mobile_facet_trigger.mobile_facet_bottom_button.closed{
        display: inline-block;
    }
    body a.mem_org_filter_button.button{
        display: block!important;
    }
}

@media screen and (min-width:420px) and (max-width:767px){
    .vc_col-sm-4.mem_org_list_wrapper.insight_cpt_wrapper.isotope-item{
        width: 100%;
    }
    .mem_org_content_container {
        max-width: 400px;
        margin: 0 auto;
    }
    .vc_col-sm-4.mem_org_list_wrapper.insight_cpt_wrapper.isotope-item .mem_org_featured_image{
        width: 100%;
        height: auto;
    }
}
@media only screen and (max-width: 460px) {
    .mem_org_map_filter {
        display: block;
    }
    .mem_org_map_filter #reset_button{
        margin-top: 10px!important;
    }
    #mem_org_table td {
        font-size: .8rem;
    }
    #mem_org_table td img{
        display: none;
    }
}


 
.mem_orgDetailUi {
    width: 100%;
    display: flex;
    justify-content: space-between;;
}
