.ifbs-members-wrapper {
    padding: 20px 0;
}

.ifbs-members-header {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}


#ifbs-map {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 500px;
    width: 100%;
}

.ifbs-filters.container {
    /*background: #f9f9f9;*/
    width: 100%;
    padding: 70px 20px 0px;
    margin-bottom: 0px;
}

.ifbs-filters .span4 {
    margin-bottom: 30px;
    position: relative;
}

.ifbs-filters .heading {
    margin: 0;
    padding: 5px 0 10px;
    font-size: 16px;
}

.ifbs-filters .heading::before {
    font-family: "t2gicons-professional";
    font-weight: normal !important;
    vertical-align: middle;
    text-align: center;
    line-height: 34px !important;
    height: 46px !important;
    font-size: 46px !important;
    color: #009ee3 !important;
    text-transform: none !important;
}

.ifbs-filters .heading-search::before {
    font-family: "t2gicons-ecommerce";
    content: "\e009";
}

.ifbs-filters .heading-filter-type {
    position: relative;
}

.ifbs-filters .heading-filter-type::before {
    content: "\e091";
}

.ifbs-filters .heading-zip::before {
    content: "\e049";
}

.ifbs-filters input,
.ifbs-filters input::placeholder,
.ifbs-filters select,
.ifbs-filters select::placeholder {
    font-family: "Open Sans";
    font-weight: 300;
    color: #999;

}

.ifbs-filters select {
    width: 100%;
}

.ifbs-filters .form-control {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 4px 6px;
    line-height: 28px;
    height: 28px;

}

.ifbs-filters .select2-container--default .select2-selection--single {
    border-radius: 0;
    border: 1px solid #ccc;
}

.ifbs-member-types-dummy {
    margin-bottom: 30px;
}

.ifbs-member-types-open-btn {
    font-family: "Open Sans", sans-serif;
    display: block;
    width: 100%;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 5px;
    color: #444;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#ifbs-search {
    font-family: "Open Sans", sans-serif;
    color: #444;
}

#ifbs-search::placeholder {
    font-family: "Open Sans", sans-serif;
    color: #444;
    font-weight: 400;
}

.ifbs-member-types-open-btn[aria-expanded="true"]+.bb_selection__arrow {
    transform: rotate(180deg);
    bottom: 23px;
}

.bb_selection__arrow {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 20px;
    right: 10px;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    bottom: 8px;
    width: 8px;
}

.ifbs-member-types-content {
    display: none;
}

.ifbs-member-types-dummy.is-open .ifbs-member-types-content {
    display: block;
}

.ifbs-member-types-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
    padding: 13px 0;
}

.ifbs-member-types-row:not(:last-child) {
    margin-bottom: 12px;
}

.ifbs-member-type {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #cccccc63;
    border-radius: 0px;
    padding: 6px 12px;
    hyphens: auto;
    text-align: justify;
    word-wrap: break-word;
}

.ifbs-member-type:hover,
.ifbs-member-type.is-active {
    border-color: #cfcfcf;
    background: #f7f7f7;
}

.ifbs-member-type span {
    text-align: center;
}

.ifbs-member-type-icon {
    width: 28px;
    height: 28px;
    display: block;
}

.ifbs-member-attributes {
    display: none;
    margin-bottom: 40px !important;
}

.ifbs-member-attributes.is-visible {
    display: block;
}

.ifbs-member-attributes-heading {
    margin-bottom: 20px;
}

.ifbs-member-attributes-heading::before {
    content: none;
}

.ifbs-member-attributes-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.ifbs-member-attribute-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
}

.ifbs-member-attribute-parent {
    font: inherit;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid #009ee3;
    border-radius: 0;
    padding: 10px 14px;
    color: #3f3f3f;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ifbs-member-attribute-parent:hover {
    background: #e8f5fc;
    border-color: #009ee3;
}

.ifbs-member-attribute-parent.is-active {
    background: #009ee3;
    border-color: #009ee3;
    color: #fff;
}

.ifbs-member-attribute-children {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.ifbs-member-attribute-children.is-open {
    display: flex;
}

.ifbs-member-attribute-pill.ifbs-member-attribute-pill-child {
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.ifbs-member-attribute-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid #009ee3;
    border-radius: 0;
    padding: 10px 14px;
    color: #3f3f3f;
    text-decoration: none;
    line-height: 1.2;
    align-self: start;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ifbs-member-attribute-pill:hover {
    background: #e8f5fc;
    border-color: #009ee3;
}

.ifbs-member-attribute-pill.is-active {
    background: #009ee3;
    border-color: #009ee3;
    color: #fff;
}

.ifbs-member-attribute-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ifbs-member-attribute-arrow {
    flex: 0 0 auto;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.ifbs-member-attribute-parent .ifbs-member-attribute-arrow {
    transform: rotate(90deg);
}

.ifbs-member-attribute-parent[aria-expanded="true"] .ifbs-member-attribute-arrow {
    transform: rotate(-90deg);
}

.ifbs-member-attributes-empty {
    color: #666;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .ifbs-member-attributes-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ifbs-member-attributes-pills {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ifbs-member-types-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mitglied-card {
    margin-bottom: 30px;
    /* Ensure grid layout works */
    float: left;
    width: 25%;
    /* 4 columns */
    margin-left: 0;
    padding-left: 20px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .mitglied-card {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .mitglied-card {
        width: 100%;
    }
}

.mitglied-card .gridbox {
    background: #fff;
    border: 1px solid #eee;
    height: 100%;
    transition: all 0.3s ease;
}

.mitglied-card .gridbox:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    padding: 10px;
}

.member-logo-container .member_logo {
    height: auto;
    width: auto;
    margin: auto;
    text-align: center;
    vertical-align: middle;
}

.mitglied-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
}

.mitglied-adresse {
    height: 158px;
    font-size: 14px;
    color: #666;
}

.mitglied-adresse p:first-child {
    margin-bottom: 4px;
}

.mitglied-adresse p:last-child {
    margin-top: 0px;
    padding-bottom: 10px;
}

.btn.m-list-button-web,
.btn.m-list-button-email,
.btn.m-list-button-details {
    background: #eee;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 3px;
    color: #333;
    transition: background 0.2s;
}

.btn.m-list-button-web:hover,
.btn.m-list-button-email:hover,
.btn.m-list-button-details:hover {
    background: #ddd;
}

.mitgliederliste-bc .filterable {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/*.mitgliederliste-bc .filterable [class*="span"] */
.mitgliederliste-bc .filterable .blog-article.grid-style.mitglied-card {
    width: calc(25% - 20px);
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 0;
}

.mitgliederliste-bc .filterable [class*="span"] .content {
    width: 100%;
    padding-bottom: 0;
}

.member-buttons p {
    display: flex;
    justify-content: center;
}


.page-template-portfolio .select2-search {
    display: block;
}

/* Google Maps Info Window Styles */
.ifbs-infowindow-container {
    max-width: 300px;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ifbs-infowindow-title {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.ifbs-infowindow-address {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.ifbs-infowindow-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.ifbs-infowindow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #009ee3;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.ifbs-infowindow-btn:hover {
    background-color: #007bb5;
    color: white;
    text-decoration: none;
}

.ifbs-infowindow-btn i {
    margin: 0;
    padding: 0;
}

/* Pagination Styles */
.pagination-container {
    clear: both;
    padding: 20px 0;
}

.pagination-buttons {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 8px 12px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
}

.pagination-btn:hover {
    background-color: #009ee3;
    color: white;
    border-color: #009ee3;
}

.pagination-btn.active {
    background-color: #009ee3;
    color: white;
    border-color: #009ee3;
    font-weight: bold;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #666;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

#ifbs-members-list {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #939393;
    padding-top: 20px;
}

.blog-article.standard-style .content h1,
.blog-article.alternate-style .content h1,
.blog-article.timeline-style .content h1,
.blog-article.fullscreen-single h1 {
    text-transform: none;
}

/* Member detail: references */
.ifbs-member-references {
    clear: both;
    margin: 35px 0;
}

.ifbs-member-references__heading {
    margin-bottom: 20px;
}

.ifbs-member-reference {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "title"
        "image"
        "description";
    gap: 14px;
    margin-bottom: 32px;
}

.ifbs-member-reference__title {
    grid-area: title;
    margin: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

.ifbs-member-reference__image-wrap {
    grid-area: image;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    justify-self: start;
}

.ifbs-member-reference__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 360px;
}

.ifbs-member-reference__description {
    grid-area: description;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.ifbs-member-reference__description > :last-child {
    margin-bottom: 0;
}

.ifbs-member-reference--no-image {
    grid-template-areas:
        "title"
        "description";
}

@media (min-width: 768px) {
    .ifbs-member-reference {
        grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
        grid-template-areas:
            "image title"
            "image description";
        column-gap: 24px;
        row-gap: 10px;
        align-items: start;
    }

    .ifbs-member-reference--no-image {
        grid-template-columns: minmax(0, 760px);
        grid-template-areas:
            "title"
            "description";
        justify-content: start;
    }

    .ifbs-member-reference--no-image .ifbs-member-reference__title,
    .ifbs-member-reference--no-image .ifbs-member-reference__description {
        max-width: 760px;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .ifbs-member-reference__image-wrap {
        justify-self: center;
        max-width: min(100%, 360px);
    }
}