.service-page {
    min-height: calc(100vh - 70px);
    padding: 28px 16px calc(96px + env(safe-area-inset-bottom));
    background: #f3f7f3;
}

.service-content {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.service-heading {
    margin-bottom: 20px;
}

.service-eyebrow {
    color: #b65a32;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.service-heading h1 {
    margin: 5px 0 3px;
    color: #173c29;
    font-size: 1.45rem;
    font-weight: 800;
}

.service-heading p {
    margin: 0;
    color: #65756a;
    font-size: .9rem;
}

.service-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #d7e3d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(28, 67, 42, .06);
}

.service-search > span {
    color: #0b7a3e;
    font-size: 1.5rem;
    line-height: 1;
}

.service-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173c29;
    font: inherit;
}

.service-search input::placeholder {
    color: #87948b;
}

.service-categories {
    margin: 22px -16px 26px;
    overflow: hidden;
}

.service-group-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 0 16px 10px;
    scrollbar-width: none;
}

.service-group {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #dbe6dc;
    border-radius: 6px;
    background: #fff;
    color: #526b59;
    font: inherit;
    font-size: .76rem;
    white-space: nowrap;
    cursor: pointer;
}

.service-group.is-selected {
    border-color: #b65a32;
    background: #b65a32;
    color: #fff;
}

.service-category-list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 1px 16px 8px;
    scrollbar-width: thin;
    scrollbar-color: #c8d8cb transparent;
}

.service-category {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #dbe6dc;
    border-radius: 999px;
    background: #fff;
    color: #375646;
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
}

.service-category.is-selected {
    border-color: #0b7a3e;
    background: #0b7a3e;
    color: #fff;
}

.service-category[hidden],
.service-group[hidden] {
    display: none;
}

.service-results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 13px;
}

.service-results-heading h2 {
    margin: 0;
    color: #173c29;
    font-size: 1.05rem;
    font-weight: 800;
}

.service-results-heading > span {
    color: #78877d;
    font-size: .8rem;
}

.service-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    gap: 13px;
}

.service-provider-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid #e0e9e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(28, 67, 42, .045);
}

.service-provider-card[hidden] {
    display: none;
}

.provider-card-top {
    position: relative;
    width: 68px;
    margin-bottom: 12px;
}

.provider-avatar {
    display: block;
    width: 68px;
    height: 68px;
    border: 2px solid #e5f0e7;
    border-radius: 50%;
    background: #f0f5f1;
    object-fit: cover;
}

.provider-category-icon {
    position: absolute;
    right: -5px;
    bottom: -3px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff0e8;
    font-size: .85rem;
}

.service-provider-card h3 {
    overflow: hidden;
    margin: 0 0 3px;
    color: #183b29;
    font-size: .98rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-profession {
    min-height: 1.35em;
    margin: 0 0 10px;
    color: #66766b;
    font-size: .82rem;
}

.provider-location {
    margin: -3px 0 7px;
    color: #57745f;
    font-size: .75rem;
}

.provider-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 11px;
    color: #718078;
    font-size: .76rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
    color: #354b3c;
    font-size: .83rem;
}

.provider-rating > span {
    color: #dc8b24;
}

.provider-rating small {
    color: #869188;
    font-size: .72rem;
}

.provider-contact {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 6px;
    background: #0b7a3e;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.provider-contact:hover,
.provider-contact:focus-visible {
    background: #075d2e;
    color: #fff;
}

.service-empty {
    margin: 0;
    padding: 30px 18px;
    border: 1px dashed #c9d9cc;
    border-radius: 8px;
    color: #6b7b70;
    text-align: center;
}

.service-empty[hidden] {
    display: none;
}

@media (min-width: 700px) {
    .service-page {
        padding-top: 38px;
    }

    .service-categories {
        margin-right: 0;
        margin-left: 0;
    }

    .service-category-list {
        padding-right: 0;
        padding-left: 0;
    }

    .service-group-list {
        padding-right: 0;
        padding-left: 0;
    }
}

:root[data-theme="dark"] .service-page {
    background: #16231a;
}

:root[data-theme="dark"] :is(.service-heading h1, .service-results-heading h2, .service-provider-card h3) {
    color: #e8f2ea;
}

:root[data-theme="dark"] :is(.service-search, .service-category, .service-provider-card) {
    border-color: #344b39;
    background: #202f24;
    color: #e0ebe2;
}

:root[data-theme="dark"] .service-search input {
    color: #e0ebe2;
}