/*
	* CSS for Filter Page
	*
	* @package      joc_filter
	* @author       Lindsay Humes
	* @since        1.0.0
	* @license      GPL-2.0+
*/

/*--------------------------------------------------------------
# Filter Header
--------------------------------------------------------------*/
.filter-header {
    margin: var(--wp--custom--layout--block-gap) 0;
}

.filter-wrap, .index-wrap {
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 20px);
    position: relative;
}

.filter-title {
    margin: 0 0 10px;
    position: relative;
    line-height: 1;
}

.filter-description {
    line-height: 1.4;
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Page Layout
--------------------------------------------------------------*/
.index-wrap {
    display: block;
}
/*--------------------------------------------------------------
# Post Features
--------------------------------------------------------------*/
.post-filter {
    position: relative;
}
.post-filter.post-sm .abbr-content {
    position: relative;
    padding: 10px;
}
/*--------------------------------------------------------------
# Accordion Feature
--------------------------------------------------------------*/
.filter-group.sm-caps {
    font-size: .8rem;
}
.filter-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative;
    margin: 10px auto 0;
    padding: 10px 0;
    border-top: 1px solid #F5F5F5;
    border-bottom: 1px solid #F5F5F5;
}

.filter-fields {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.filter-fields .sm-sans {
    margin-right: 10px;
}
.filter-group {
    position: relative;
}
.accordion-button {
    display: flex;
    cursor: pointer;
    position: relative;
    background: #F5F5F5;
    margin: 0 10px 0 0;
    width: fit-content;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
}
.accordion-button svg {
    width: 12px;
    height: 12px;
    margin-left: 5px;
}

input.filter-reset {
    padding: inherit;
    width: fit-content;
    font-size: .8rem;
    padding: 9px 15px;
    border:0;
    background: var(--wp--preset--color--ink) !important;
    border-radius: var(--wp--custom--border-radius--medium);
    box-shadow: var(--wp--custom--box-shadow--2);
    color: var(--wp--preset--color--white) !important;
}

.accordion-content {
    padding: 10px;
    margin: 0;
    border: 1px solid #F5F5F5;
    position: absolute;
    z-index: 1;
    background: #fff;
    width: 150px;
}

.accordion-content li {
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
}

.accordion-content li:last-child {
    padding: 0;
}
.accordion-content label {
    display:  flex;
    align-items:  center;
    font-size: .8rem;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.accordion-content li input {
    margin-top: 3px;
    margin-right: 5px;
    min-width: 14px;
    border-radius: 50%;
}
.accordion-content li input[type=checkbox]::selected {
    background: #0d0d0d;
}
.filtered-fields {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
}

.filtered-fields span {
    color: #0D0D0D;
    font-weight: 700;
    margin: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: start;
    align-items: center;
}
.filtered-field-remove {
    content: '';
    background: url(../assets/icons/core/close.svg) no-repeat center;
    margin-right: 3px;
    position: relative;
    display: block;
    text-align: center;
    letter-spacing: 0;
    width: 18px;
    height: 18px;
}
span.filtered-field-remove {
    margin: 0 0 0 5px;
    width: 12px;
    height: 12px;
}
.accordion-selected span {
    display: block;
    margin: 0 auto 10px;
    padding: 10px 5px;
}
.index-subtitle.sm-caps {
    display: block;
    padding: 10px 20px;
    font-size: .8rem;
    background: #F5F5F5;
    width: fit-content;
    margin: 0 0 20px auto;
    color: var(--wp--preset--color--ink);
}


.results {
    width: 100%;
}
.results-content {
        display: grid;
    column-gap: var(--wp--custom--layout--block-gap);
    row-gap: var(--wp--custom--layout--block-gap);
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.no-filter-results {
    text-align: center;
    margin: 30px auto;
    color: #D0021B;
}
/*--------------------------------------------------------------
# Filter Pagination
--------------------------------------------------------------*/
.pagination {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
    .filter-fields {
        flex-wrap: wrap;
    }
    .filter-fields .sm-sans {
        display: block;
        width: 100%;
        margin: 0 0 5px;
    }
    .filter-group {
        width: calc(1 / 4 * 100% - 10px);
        margin: 0 5px 0 0;
    }
    .accordion-button {
        width: 100%;
    }
    .accordion-content {
        width: 100%;
        top: 35px;
    }
}
@media screen and (max-width: 900px) {
    .results-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-wrap, .index-wrap {
        width: 100%;
    }
}
@media screen and (max-width: 650px) {

    .filter-group {
        width: calc(1 / 2 * 100% - 10px);
    }
    .accordion-content {
        top: 40px;
    }
    .results-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--wp--custom--layout--block-gap-small);
    row-gap: var(--wp--custom--layout--block-gap-small);
}
}

