.hlds-directory {
    width: 100%;
    box-sizing: border-box;
}

.hlds-directory *,
.hlds-directory *::before,
.hlds-directory *::after {
    box-sizing: border-box;
}

/* =========================================================
   LAYOUT
========================================================= */

.hlds-directory__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

/* =========================================================
   FILTER SIDEBAR
========================================================= */

.hlds-filters {
    position: sticky;
    top: 30px;
    height: calc(100vh - 60px);
    min-height: 400px;
    overflow: hidden;
}

.hlds-filters__form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 22px;
    background: #B58F86;
}

/*
 * The submit button remains permanently visible.
 */
.hlds-filters__header,
.hlds-filter {
    flex-shrink: 0;
}

.hlds-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.hlds-filters__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.hlds-filters__reset {
    font-size: 13px;
    text-decoration: none;
}

.hlds-filter {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}

/* Filter content scrolls; header and button stay visible */
.hlds-filters__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-width: thin;
}

.hlds-filters__submit {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 13px 18px;
    border: 0;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.hlds-filters__submit:hover {
    background: #6B4C4C;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

.hlds-filter__title {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.4;
}

.hlds-filter__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hlds-filter__option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.45;
}

.hlds-filter__option input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.hlds-filter__group-title {
    margin: 10px 0 7px;
    font-size: 13px;
    font-weight: 600;
}

.hlds-filter__group-title:first-child {
    margin-top: 0;
}

/* =========================================================
   RESULTS
========================================================= */

.hlds-results {
    min-width: 0;
}

.hlds-results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.hlds-results__count {
    font-size: 15px;
}

.hlds-results__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* =========================================================
   CARDS
========================================================= */

.hlds-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ceb5af;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    text-align: center;

    transform: translateY(0);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.hlds-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.hlds-card__image-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.hlds-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    transform: scale(1);
    transition:
        transform .45s cubic-bezier(.2, .65, .3, 1),
        filter .3s ease;
}

.hlds-card:hover .hlds-card__image {
    transform: scale(1.045);
    filter: brightness(1.03);
}

.hlds-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #d8c5c1;
    text-align: center;
}

.hlds-card__image--placeholder span {
    font-size: 15px;
}

.hlds-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 20px 20px;
}

.hlds-card__specialty {
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .75;
}

.hlds-card__title {
    margin: 0 0 13px;
    font-size: 20px;
    line-height: 1.3;
}

.hlds-card__title a {
    color: inherit;
    text-decoration: none;
}

.hlds-card__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.hlds-card__tag {
    display: inline-block;
    padding: 5px 9px;
    background: rgba(255, 255, 255, .35);
    font-size: 12px;
    line-height: 1.2;
}

.hlds-card__areas {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.hlds-card__label {
    font-weight: 600;
}

.hlds-card__store {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin-bottom: 17px;
    font-size: 13px;
    line-height: 1.5;
}

.hlds-card__store-icon {
    font-size: 8px;
    line-height: 1.9;
}

/* =========================================================
   PROFILE BUTTON
========================================================= */

.hlds-card__button {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 12px 15px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    border: 0;

    transition:
        background-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.hlds-card__button:hover {
    background: #6B4C4C;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .18);
}

/* =========================================================
   PAGINATION
========================================================= */

.hlds-pagination {
    margin-top: 35px;
}

.hlds-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hlds-pagination li {
    margin: 0;
    padding: 0;
}

.hlds-pagination a,
.hlds-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e3e3e3;
    text-decoration: none;
    font-size: 13px;
}

.hlds-pagination .current {
    font-weight: 600;
}

/* =========================================================
   NOTICES
========================================================= */

.hlds-no-results,
.hlds-notice {
    padding: 35px;
    border: 1px solid #e7e7e7;
    text-align: center;
}

.hlds-no-results h3 {
    margin: 0 0 8px;
}

.hlds-no-results p {
    margin: 0;
}

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

@media (max-width: 1199px) {

    .hlds-directory__layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 22px;
    }

    .hlds-results__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

}

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

@media (max-width: 767px) {

    .hlds-directory__layout {
        display: block;
    }

    .hlds-filters {
        position: static;
        height: auto;
        min-height: 0;
        overflow: visible;
        margin-bottom: 25px;
    }

    .hlds-filters__form {
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 18px;
    }

    .hlds-filters__scroll {
        overflow: visible;
    }

    .hlds-filters__submit {
        position: static;
        margin-top: 5px;
    }

    .hlds-results__header {
        margin-bottom: 18px;
    }

    .hlds-results__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hlds-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
        padding: 20px 18px 18px;
    }

    .hlds-card__title {
        font-size: 19px;
    }

}


/* Hierarchical service areas */
.hlds-filter__area-parent {
    margin: 10px 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.hlds-filter__area-branch {
    margin-left: 14px;
}

.hlds-filter__area-child {
    margin-bottom: 8px;
}


/* =========================================================
   PREMIUM CARDS
========================================================= */

.hlds-card--premium {
    position: relative;
    background: #D4AF37;
}

.hlds-card--premium .hlds-card__premium-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: block;
    padding: 7px 12px;
    background: #000;
    color: #D4AF37;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
}

.hlds-card--premium .hlds-card__tag {
    background: rgba(255, 255, 255, .45);
}

.hlds-card--premium .hlds-card__button {
    background: #000;
    color: #fff;
}

.hlds-card--premium .hlds-card__button:hover {
    background: #6B4C4C;
    color: #fff;
}
