
/* ==========================================
   PRESTIGE DEVELOPMENTS
   SERVICE CATEGORY FILTER
   Salient Post Loop Builder
   ========================================== */


/* FILTER WRAPPER */

.tbp-portfolio-filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin: 0 0 32px;
}


/* FILTER FIELDS */

.tbp-portfolio-filter-fields {
    display: block;
    width: 100%;
    max-width: none;
    flex: none;
}

.tbp-portfolio-filter {
    display: block;
    width: 100%;
    max-width: none;
}


/* FILTER LABEL */

.tbp-portfolio-filter label {
    display: block;
    margin: 0 0 14px;
    color: #333333;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
}


/* DROPDOWN */

body .tbp-portfolio-filter select {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 56px;

    padding: 12px 48px 12px 18px;

    color: #202126;
    background-color: #ffffff;

    border: 1px solid #d5d7da;
    border-radius: 4px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    cursor: pointer;
    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* DROPDOWN HOVER */

body .tbp-portfolio-filter select:hover {
    border-color: #999999;
}


/* DROPDOWN FOCUS */

body .tbp-portfolio-filter select:focus {
    border-color: #202126;
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 33, 38, 0.07);
}

body .tbp-portfolio-filter select:focus-visible {
    outline: 2px solid #202126;
    outline-offset: 2px;
}


/* ==========================================
   RESET FILTERS
   ========================================== */

body .tbp-portfolio-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    align-self: flex-end;

    width: auto;
    min-height: auto;

    margin: 14px 0 0;
    padding: 0;

    background: transparent !important;
    border: none !important;
    border-radius: 0;

    color: #666666 !important;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;

    cursor: pointer;
    box-shadow: none !important;

    transition: color 0.2s ease;
}


/* RESET ICON */

body .tbp-portfolio-filter-reset::before {
    content: "\21BB";
    display: inline-block;

    margin-right: 7px;

    font-size: 19px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.25s ease;
}


/* RESET HOVER */

body .tbp-portfolio-filter-reset:hover {
    color: #202126 !important;
    background: transparent !important;
    opacity: 1;
}

body .tbp-portfolio-filter-reset:hover::before {
    transform: rotate(-35deg);
}


/* RESET FOCUS */

body .tbp-portfolio-filter-reset:focus-visible {
    outline: 2px solid #202126;
    outline-offset: 5px;
}


/* ==========================================
   NO RESULTS MESSAGE
   ========================================== */

.tbp-portfolio-no-results {
    width: 100%;
    margin: 16px 0 0;
    color: #a52a2a;
    font-size: 14px;
    line-height: 1.5;
}

.tbp-portfolio-filters
[data-portfolio-no-results][hidden] {
    display: none !important;
}


/* ==========================================
   HIDE SALIENT NATIVE FILTERS

   Keeps native filter links accessible
   to our custom JavaScript.
   ========================================== */

.nectar-post-grid-wrap.tbp-custom-filter-enabled
> .nectar-post-grid-filters,

.nectar-post-grid-wrap.tbp-custom-filter-enabled
.nectar-post-grid-filters {

    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
    border: 0 !important;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 999px) {

    .tbp-portfolio-filter label {
        font-size: 21px;
        margin-bottom: 12px;
    }

    body .tbp-portfolio-filter select {
        min-height: 54px;
    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 690px) {

    .tbp-portfolio-filters {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 28px;
    }

    .tbp-portfolio-filter-fields,
    .tbp-portfolio-filter {
        width: 100%;
        max-width: none;
    }

    .tbp-portfolio-filter label {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    body .tbp-portfolio-filter select {
        width: 100%;
        min-height: 52px;
        padding: 12px 42px 12px 15px;
        font-size: 16px;
    }

    body .tbp-portfolio-filter-reset {
        align-self: flex-end;
        width: auto;
        margin-top: 12px;
        padding: 0;
        font-size: 13px;
    }

}


/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    body .tbp-portfolio-filter select,
    body .tbp-portfolio-filter-reset,
    body .tbp-portfolio-filter-reset::before {
        transition: none !important;
    }

}


/* No custom animations applied to
   Salient Post Loop cards. */
