.bfirm-container .filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 12px;
}

.bfirm-container .bfirm-filter-heading {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 7px;
}

.bfirm-container .bfirm-clear-filters {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 5px;
    color: inherit;
    font-size: .9em;
    font-weight: 600;
    text-decoration: none;
}

.bfirm-container .bfirm-clear-filters:hover,
.bfirm-container .bfirm-clear-filters:focus {
    color: #d60000;
    text-decoration: none;
}

.bfirm-container .search-filter-params .search-filter-header {
    display: none !important;
}

.bfirm-category-grid-row {
    row-gap: 30px;
}

.bfirm-category-grid-column {
    display: flex;
}

.bfirm-category-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 570px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .125);
    background: #fff;
}

.bfirm-category-card-image {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: #eee;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.bfirm-category-card-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bfirm-category-card-image > img.is-placeholder {
    object-fit: contain;
    background: #eee;
}

.bfirm-category-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    opacity: 0;
    text-decoration: none;
    transform: scale(0);
    transition: opacity .2s ease, transform .2s ease;
}

.bfirm-category-card-hover span {
    padding: 9px 18px;
    border: 1px solid #d60000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.bfirm-category-card:hover .bfirm-category-card-hover,
.bfirm-category-card-hover:focus {
    opacity: 1;
    color: #fff;
    text-decoration: none;
    transform: scale(1);
}

.bfirm-category-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0;
    text-align: center;
}

.bfirm-category-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    padding: 0 18px;
}

.bfirm-category-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
}

.bfirm-category-card-featured {
    flex: 0 0 auto;
    padding: 8px 15px;
    background: #d60000;
    color: #fff;
    font-weight: 600;
}

.bfirm-category-card-category {
    margin-left: auto;
    color: #d60000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: right;
    text-decoration: none;
}

.bfirm-category-card-title {
    width: 100%;
    height: 50px;
    margin: 8px 0 10px;
    font-size: 19px;
    line-height: 1.3;
    text-align: center;
}

.bfirm-category-card-title a {
    color: #222;
    text-decoration: none;
}

.bfirm-category-card-description {
    display: -webkit-box;
    width: 100%;
    height: 80px;
    min-height: 0;
    margin: 0 0 12px;
    padding: 0 0 14px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    color: #777;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.bfirm-category-card-bottom {
    margin-top: auto;
}

.bfirm-category-card-location {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    gap: 6px;
    padding: 8px 14px 10px;
    color: #777;
    font-size: 14px;
    text-align: center;
}

.bfirm-category-card-location i {
    flex: 0 0 auto;
    color: #999;
    font-size: 18px;
}

.bfirm-category-card-button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: #d60000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.bfirm-category-card-button:hover,
.bfirm-category-card-button:focus {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.bfirm-custom-filters {
    padding: 0 16px 14px;
}

.bfirm-custom-filter-group {
    padding: 18px 0 4px;
    border-top: 1px solid #e4e4e4;
}

.bfirm-custom-filter-group:first-child {
    border-top: 0;
}

.bfirm-custom-filter-group h3 {
    margin: 0 0 10px;
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.bfirm-custom-filter-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bfirm-custom-filter-group li {
    margin: 0;
    padding: 0;
}

.bfirm-custom-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #333;
    font: inherit;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.bfirm-custom-filter-option:hover,
.bfirm-custom-filter-option:focus,
.bfirm-custom-filter-option.is-active {
    color: #d60000;
}

.bfirm-custom-filter-option.is-active > span:first-child::before {
    content: "\2713";
    margin-right: 7px;
    font-weight: 700;
}

.bfirm-custom-filter-count {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 2px 7px;
    background: #f2f2f2;
    color: #666;
    font-size: 12px;
    text-align: center;
}

.bfirm-custom-filter-empty {
    margin: 0;
    padding: 18px 0 6px;
    color: #777;
    font-size: 14px;
}

.bfirm-compact-pagination {
    display: flex;
    justify-content: center;
    margin: 34px 0 12px;
}

.bfirm-compact-pagination.is-hidden {
    display: none;
}

.bfirm-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 0 0 -1px;
    padding: 0;
    border: 1px solid #d8dde3;
    border-radius: 0;
    background: #fff;
    color: #111;
    font-size: 17px;
    cursor: pointer;
}

.bfirm-page-button:first-child {
    margin-left: 0;
    border-radius: 7px 0 0 7px;
}

.bfirm-page-button:last-child {
    border-radius: 0 7px 7px 0;
}

.bfirm-page-button:hover,
.bfirm-page-button:focus,
.bfirm-page-button.is-active {
    position: relative;
    z-index: 1;
    border-color: #000;
    background: #000;
    color: #fff;
}

.bfirm-page-button:disabled {
    color: #9aa1a9;
    cursor: default;
}

.bfirm-page-button:disabled:hover {
    z-index: auto;
    border-color: #d8dde3;
    background: #fff;
    color: #9aa1a9;
}

@media (max-width: 991.98px) {
    .bfirm-category-card-image {
        height: 225px;
    }
}

@media (max-width: 575.98px) {
    .bfirm-category-card-description {
        min-height: 0;
    }

    .bfirm-page-button {
        width: 40px;
        height: 42px;
        font-size: 15px;
    }
}
