.community-directory-page {
  background: #fff;
}
.community-hero {
  max-width: 1200px;
  margin: auto;
  padding: 64px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 70px;
  align-items: end;
  border-bottom: 1px solid #e2e6e6;
}
.community-hero h1 {
  margin: 10px 0 12px;
  color: #173c48;
  font-size: 48px;
  line-height: 1.2;
}
.community-hero p {
  max-width: 690px;
  margin: 0;
  color: #716970;
  font-size: 18px;
  line-height: 1.75;
}
.community-hero-note {
  padding: 22px 24px;
  border-top: 3px solid #0bbbbd;
  background: #f4faf9;
}
.community-hero-note b,
.community-hero-note span {
  display: block;
}
.community-hero-note b {
  color: #078d8f;
  margin-bottom: 8px;
}
.community-hero-note span {
  font-size: 14px;
  line-height: 1.7;
  color: #70676d;
}
.community-directory {
  max-width: 1200px;
  margin: auto;
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.community-filters {
  position: sticky;
  top: 100px;
  border: 1px solid #e1e5e5;
  padding: 23px;
  background: #fff;
}
.community-filters h2 {
  margin: 0 0 20px;
  font-size: 20px;
  color: #173c48;
}
.community-filters label {
  display: block;
  margin: 0 0 18px;
}
.community-filters label span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}
.community-filters input,
.community-filters select {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid #d8dddd;
  background: #fff;
  color: #3f3a3d;
}
.community-filters button {
  width: 100%;
  height: 42px;
  border: 1px solid #0aaeb0;
  background: #fff;
  color: #078d8f;
  font-weight: 700;
}
.filter-explain {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e2e6e6;
}
.filter-explain b {
  font-size: 13px;
}
.filter-explain p {
  font-size: 12px;
  color: #7b7278;
  line-height: 1.7;
  margin: 6px 0 0;
}
.community-results > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.community-results h2 {
  font-size: 30px;
  margin: 7px 0 0;
  color: #173c48;
}
.community-results > header p {
  margin: 0;
  color: #746a70;
  font-size: 14px;
}
.community-cards {
  border-top: 2px solid #76c3cf;
}
.community-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  padding: 25px 20px;
  border-bottom: 1px solid #e2e6e6;
}
.community-service-card:nth-child(even) {
  background: #fbfafb;
}
.community-service-card h3 {
  margin: 0 0 9px;
  color: #173c48;
  font-size: 19px;
  line-height: 1.45;
}
.community-service-card .service-address {
  margin: 0;
  color: #746a70;
  font-size: 14px;
  line-height: 1.65;
}
.service-area-block {
  text-align: right;
}
.service-area-block small {
  display: block;
  margin-bottom: 8px;
  color: #81767c;
}
.service-area-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.service-area-tags span {
  padding: 4px 8px;
  background: #eef8f6;
  color: #078d8f;
  font-size: 12px;
  font-weight: 600;
}
.community-pager {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
}
.community-pager button {
  min-width: 38px;
  height: 38px;
  border: 1px solid #dce1e1;
  background: #fff;
  color: #4c4549;
}
.community-pager button.active {
  border-color: #0bbbbd;
  background: #0bbbbd;
  color: #fff;
}
.community-source {
  margin: 32px 0 0;
  padding: 18px 20px;
  background: #f7f8f8;
  color: #746a70;
  font-size: 12px;
  line-height: 1.7;
}
.community-empty {
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid #e2e6e6;
  color: #746a70;
}
@media (max-width: 900px) {
  .community-hero,
  .community-directory {
    margin-left: 24px;
    margin-right: 24px;
  }
  .community-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .community-directory {
    grid-template-columns: 1fr;
  }
  .community-filters {
    position: static;
  }
  .community-service-card {
    grid-template-columns: 1fr;
  }
  .service-area-block {
    text-align: left;
  }
  .service-area-tags {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .community-hero {
    padding-top: 42px;
  }
  .community-hero h1 {
    font-size: 36px;
  }
  .community-directory {
    padding-top: 32px;
  }
  .community-results > header {
    align-items: start;
    flex-direction: column;
  }
  .community-service-card {
    padding: 21px 12px;
  }
}
.service-offerings {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #edf0f0;
}
.service-offerings section {
  padding: 15px 14px 2px;
  border-left: 1px solid #edf0f0;
}
.service-offerings section:first-child {
  padding-left: 0;
  border-left: 0;
}
.service-offerings section:last-child {
  padding-right: 0;
}
.service-offerings small {
  display: block;
  margin-bottom: 10px;
  color: #554b50;
  font-size: 12px;
  font-weight: 700;
}
.service-offerings section > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.service-offerings span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #e1e4e4;
  background: #f7f8f8;
  color: #aaa2a6;
  font-size: 11px;
  font-weight: 600;
}
.service-offerings span i {
  display: none;
  font-style: normal;
}
.service-offerings span.active {
  border-color: #0bbbbd;
  background: #0bbbbd;
  color: #fff;
}
.service-offerings span.active i {
  display: inline;
}
@media (max-width: 900px) {
  .service-offerings {
    grid-template-columns: 1fr 1fr;
  }
  .service-offerings section:nth-child(3) {
    border-left: 0;
  }
  .service-offerings section,
  .service-offerings section:first-child,
  .service-offerings section:last-child {
    padding: 13px;
    border-bottom: 1px solid #edf0f0;
  }
}
@media (max-width: 600px) {
  .service-offerings {
    grid-template-columns: 1fr;
  }
  .service-offerings section,
  .service-offerings section:first-child,
  .service-offerings section:last-child {
    padding: 13px 0;
    border-left: 0;
  }
  .service-offerings section:last-child {
    border-bottom: 0;
  }
}

/* Horizontal directory filters above the results. */
.community-directory {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.community-filters {
  position: static;
  top: auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 0.8fr) minmax(
      180px,
      0.8fr
    ) 130px;
  gap: 14px 16px;
  align-items: end;
  margin-bottom: 38px;
  padding: 20px 22px;
}
.community-filters h2 {
  grid-column: 1/-1;
  margin-bottom: 0;
}
.community-filters label {
  margin: 0;
}
.community-filters button {
  width: 130px;
}
.community-filters .filter-explain {
  grid-column: 1/-1;
  margin: 2px 0 0;
  padding-top: 14px;
}
.community-filters .filter-explain b,
.community-filters .filter-explain p {
  display: inline;
}
.community-filters .filter-explain p {
  margin-left: 6px;
}
@media (max-width: 900px) {
  .community-filters {
    grid-template-columns: 1fr 1fr;
  }
  .community-filters button {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .community-filters {
    grid-template-columns: 1fr;
  }
}
.community-service-card .service-offerings {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.community-service-card .service-offerings section > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}
.community-service-card .service-offerings section > div > span {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 6px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}
@media (max-width: 760px) {
  .community-service-card .service-offerings {
    grid-template-columns: 1fr !important;
  }
}
.service-offerings section > header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #173c48;
}
.service-offerings section > header svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: #0aaeb0;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-offerings section > header b {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}
.community-service-card > .service-area-block {
  grid-column: 1/-1;
  text-align: left;
  padding-top: 15px;
  border-top: 1px solid #edf0f0;
}
.community-service-card > .service-area-block small {
  font-size: 14px;
  font-weight: 700;
  color: #554b50;
}
.community-service-card .service-area-tags {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}
.community-service-card .service-area-tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 6px 3px;
  border: 1px solid #e1e4e4;
  background: #f7f8f8;
  color: #aaa2a6;
  font-size: 12px;
  white-space: nowrap;
}
.community-service-card .service-area-tags span.active {
  border-color: #0bbbbd;
  background: #0bbbbd;
  color: #fff;
}
@media (max-width: 900px) {
  .community-service-card .service-area-tags {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .community-service-card .service-area-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.community-service-card .service-area-tags {
  gap: 8px 14px;
}
.community-service-card .service-area-tags span {
  justify-content: flex-start;
  gap: 7px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #bbb5b8;
  font-size: 13px;
}
.community-service-card .service-area-tags span:before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border: 1px solid #cbc6c8;
  border-radius: 50%;
  background: #fff;
}
.community-service-card .service-area-tags span.active {
  border: 0;
  background: none;
  color: #176f73;
  font-weight: 700;
}
.community-service-card .service-area-tags span.active:before {
  border-color: #0bbbbd;
  background: #0bbbbd;
  box-shadow: 0 0 0 3px #e5f7f5;
}
.community-service-card .service-area-tags {
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 3px;
}
.community-service-card .service-area-tags span {
  gap: 4px;
  font-size: 12px;
}
.community-service-card .service-area-tags span:before {
  width: 5px;
  height: 5px;
  flex-basis: 5px;
}
@media (max-width: 1000px) {
  .community-service-card .service-area-tags {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 7px;
  }
}
@media (max-width: 600px) {
  .community-service-card .service-area-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.service-area-regions {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 10px 22px;
}
.service-area-regions section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.service-area-regions section > b {
  font-size: 12px;
  color: #81767c;
  white-space: nowrap;
}
.service-area-regions section:nth-child(3) {
  grid-column: 1/-1;
  grid-template-columns: 84px minmax(0, 1fr);
}
.community-service-card .service-area-regions .service-area-tags {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.community-service-card
  .service-area-regions
  section:nth-child(2)
  .service-area-tags {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.community-service-card
  .service-area-regions
  section:nth-child(3)
  .service-area-tags {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .service-area-regions {
    grid-template-columns: 1fr;
  }
  .service-area-regions section:nth-child(3) {
    grid-column: auto;
  }
  .service-area-regions section,
  .service-area-regions section:nth-child(3) {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .community-service-card
    .service-area-regions
    section:nth-child(3)
    .service-area-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.community-service-card .service-area-regions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.community-service-card .service-area-regions section,
.community-service-card .service-area-regions section:nth-child(3) {
  grid-column: auto;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.community-service-card .service-area-regions section > b {
  font-size: 13px;
  color: #554b50;
}
.community-service-card .service-area-regions .service-area-tags,
.community-service-card
  .service-area-regions
  section:nth-child(2)
  .service-area-tags,
.community-service-card
  .service-area-regions
  section:nth-child(3)
  .service-area-tags {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 7px;
}
.community-service-card .service-area-regions section:not(:last-child) {
  padding-bottom: 8px;
  border-bottom: 1px dashed #e5e8e8;
}
@media (max-width: 700px) {
  .community-service-card .service-area-regions section,
  .community-service-card .service-area-regions section:nth-child(3) {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .community-service-card .service-area-regions .service-area-tags,
  .community-service-card
    .service-area-regions
    section:nth-child(2)
    .service-area-tags,
  .community-service-card
    .service-area-regions
    section:nth-child(3)
    .service-area-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.community-cards {
  display: grid;
  gap: 18px;
  border-top: 0;
}
.community-service-card {
  border: 1px solid #dde3e3;
  border-radius: 12px;
  overflow: hidden;
  padding: 27px 26px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(23, 60, 72, 0.05);
}
.community-service-card:nth-child(even) {
  background: #fff;
}
.community-service-card .service-offerings span {
  border-radius: 7px;
}
.community-service-card .service-area-tags span.active:before {
  border-radius: 50%;
}
.community-service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(16, 42, 67, 0.035);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.community-service-card:hover {
  transform: translateY(-3px);
  border-color: #cbdedd;
  box-shadow: var(--shadow);
}
.community-service-card > .service-area-block > small {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.community-service-card .service-area-regions section > b {
  font-size: 14px;
}
.community-service-card .service-area-tags span {
  font-size: 14px;
  line-height: 1.35;
}
.service-area-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #173c48;
}
.service-area-heading svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: #0aaeb0;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-area-heading b {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}
.community-service-card h3 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
}
.service-website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px solid #a8dedd;
  border-radius: 999px;
  color: #078d8f;
  font-size: 13px;
  font-weight: 700;
}
.service-website:hover {
  border-color: #0bbbBD;
  background: #edf9f8;
}
.community-results > .results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.community-results > .results-head h2 {
  margin: 7px 0;
  color: #55474f;
  font-size: 2rem;
  font-weight: 500;
}
.community-results > .results-head p {
  margin: 0;
  color: #746a70;
  font-size: 1rem;
}
.service-head-actions {
  justify-content: flex-end;
}
.service-head-actions .filter-chip {
  width: auto;
  height: 44px;
  border-radius: 0;
}
.service-head-actions select {
  height: 44px;
  border-radius: 0;
}
@media (max-width: 900px) {
  .community-results > .results-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .service-head-actions {
    justify-content: flex-start;
  }
}

/* Split hero and directory switcher, matching the care-home finder. */
.service-search-hero {
  background: #f5f7f7;
  padding-bottom: 1px;
}
.service-hero-stage {
  max-width: 1200px;
  height: 390px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42% 58%;
  background: #fff;
}
.service-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 50px;
}
.service-hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #078d8f;
  font-size: 15px;
  font-weight: 700;
}
.service-hero-copy .eyebrow span {
  width: 22px;
  height: 2px;
  background: #76c3cf;
}
.service-hero-copy h1 {
  margin: 20px 0 14px;
  color: #54444b;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -1px;
}
.service-hero-copy h1 em {
  color: #078f91;
  font-style: normal;
}
.service-hero-copy p {
  max-width: 390px;
  margin: 0;
  color: #706a6d;
  font-size: 17px;
  line-height: 1.75;
}
.service-hero-visual {
  position: relative;
  overflow: hidden;
}
.service-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-hero-visual span {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.9);
  color: #756b70;
  font-size: 12px;
}
.service-search-hero .community-filters {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: calc(100% - 48px);
  margin: -38px auto 44px;
  padding: 0 24px 22px;
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(180px, 0.8fr) minmax(
      180px,
      0.8fr
    ) 128px;
  gap: 15px;
  background: #fff;
  border: 0;
  border-left: 4px solid #0bbbbd;
  box-shadow: 0 13px 35px rgba(23, 60, 72, 0.11);
}
.directory-type-tabs {
  grid-column: 1/-1;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e0e4e4;
}
.directory-type-tabs a {
  position: relative;
  padding: 18px 24px 16px;
  color: #655a60;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.directory-type-tabs a.active {
  color: #078d8f;
  background: #eef9f8;
}
.directory-type-tabs a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #0bbbbd;
}
.service-region-tabs {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  padding-top: 2px;
}
.service-search-hero .service-region-tabs button {
  width: auto;
  min-width: 112px;
  height: 39px;
  padding: 0 22px;
  border: 1px solid #dce3e3;
  border-radius: 999px;
  background: #fff;
  color: #655b60;
  font-size: 15px;
}
.service-search-hero .service-region-tabs button.active {
  border-color: #0bbbbd;
  background: #0bbbbd;
  color: #fff;
}
.service-search-hero .community-filters label {
  margin: 0;
}
.service-search-hero .community-filters label > span {
  font-size: 14px;
  color: #423b3f;
}
.service-search-hero .community-filters input,
.service-search-hero .community-filters select {
  height: 52px;
  font-size: 15px;
}
.service-search-hero #clearServiceFilters {
  width: 128px;
  height: 52px;
  background: #0bbbbd;
  color: #fff;
  font-size: 16px;
}
.community-directory {
  padding-top: 10px;
}
@media (max-width: 900px) {
  .service-hero-stage {
    height: auto;
    grid-template-columns: 1fr;
  }
  .service-hero-copy {
    padding: 45px 32px;
  }
  .service-hero-visual {
    height: 310px;
  }
  .service-search-hero .community-filters {
    grid-template-columns: 1fr 1fr;
  }
  .service-search-hero #clearServiceFilters {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .service-hero-copy h1 {
    font-size: 36px;
  }
  .service-hero-visual {
    height: 230px;
  }
  .service-search-hero .community-filters {
    width: calc(100% - 28px);
    margin-top: -22px;
    grid-template-columns: 1fr;
    padding: 0 16px 18px;
  }
  .directory-type-tabs a {
    flex: 1;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }
  .service-region-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .service-search-hero .service-region-tabs button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
  }
}
