:root {
  --ehspf-sa-green: #1f6b45;
  --ehspf-sa-green-dark: #123a28;
  --ehspf-sa-green-soft: #edf7f0;
  --ehspf-sa-ink: #101815;
  --ehspf-sa-muted: #58665f;
  --ehspf-sa-line: #d8e5dc;
  --ehspf-sa-white: #ffffff;
  --ehspf-sa-band: #f5fbf7;
  --ehspf-sa-shadow: 0 12px 30px rgba(16, 24, 21, 0.08);
}

.ehspf-service-areas,
.ehspf-nearby-locations {
  color: var(--ehspf-sa-ink);
  font-family: inherit;
  margin: 32px 0;
}

.ehspf-service-areas {
  background: var(--ehspf-sa-white);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(16, 24, 21, 0.12);
  overflow: hidden;
}

.ehspf-service-areas *,
.ehspf-nearby-locations * {
  box-sizing: border-box;
}

.ehspf-service-areas-header {
  background:
    linear-gradient(90deg, rgba(16, 24, 21, .94), rgba(18, 58, 40, .84)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #101815 0%, #1f6b45 120%);
  border-bottom: 1px solid var(--ehspf-sa-line);
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  position: relative;
}

.ehspf-service-areas-header::after {
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .08) 50%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 48px);
  content: "";
  inset: 0;
  opacity: .5;
  pointer-events: none;
  position: absolute;
}

.ehspf-service-areas-header > * {
  position: relative;
  z-index: 1;
}

.ehspf-service-areas-rule {
  display: block;
  width: 58px;
  height: 4px;
  background: #44b764;
  margin: 0 0 14px;
}

.ehspf-service-areas h2,
.ehspf-service-areas h3,
.ehspf-service-areas h4,
.ehspf-nearby-locations h2 {
  color: var(--ehspf-sa-green-dark);
  line-height: 1.16;
  margin: 0;
}

.ehspf-service-areas h2,
.ehspf-nearby-locations h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
}

.ehspf-service-areas-header h2,
.ehspf-service-areas-header p {
  color: var(--ehspf-sa-white);
}

.ehspf-service-areas h3 {
  font-size: 20px;
}

.ehspf-service-areas h4 {
  font-size: 18px;
}

.ehspf-service-areas-header p,
.ehspf-service-areas-empty p,
.ehspf-service-areas-cta p,
.ehspf-nearby-locations p {
  color: var(--ehspf-sa-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 820px;
}

.ehspf-service-areas .ehspf-service-areas-header p {
  color: rgba(255, 255, 255, .86);
}

.ehspf-service-areas-stat {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: var(--ehspf-sa-white);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  margin-top: 18px;
  padding: 8px 12px;
}

.ehspf-footer-service-area-map {
  color: inherit;
  display: grid;
  gap: 14px;
  max-width: 100%;
}

.ehspf-footer-service-area-map *,
.ehspf-footer-service-area-map *::before,
.ehspf-footer-service-area-map *::after {
  box-sizing: border-box;
}

.ehspf-footer-service-area-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ehspf-footer-service-area-copy {
  min-width: 0;
}

.ehspf-footer-service-area-head strong {
  color: inherit;
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.ehspf-footer-service-area-head p {
  color: currentColor;
  font-size: 14px;
  line-height: 1.45;
  margin: 5px 0 0;
  opacity: .78;
}

.ehspf-footer-service-area-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.ehspf-footer-service-area-summary span {
  align-items: center;
  background: rgba(31, 107, 69, .08);
  border: 1px solid rgba(31, 107, 69, .22);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  opacity: .88;
  padding: 6px 9px;
  white-space: nowrap;
}

.ehspf-footer-service-area-stat {
  background: rgba(31, 107, 69, .14) !important;
  font-weight: 900 !important;
}

.ehspf-footer-service-area-actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ehspf-footer-service-area-all,
.ehspf-footer-service-area-phone {
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  opacity: .9;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.ehspf-footer-service-area-phone {
  background: var(--ehspf-sa-green);
  border-color: var(--ehspf-sa-green);
  color: var(--ehspf-sa-white);
  opacity: 1;
}

.ehspf-footer-service-area-all:hover,
.ehspf-footer-service-area-phone:hover,
.ehspf-footer-service-area-links a:hover {
  opacity: 1;
}

.ehspf-footer-service-area-map .ehspf-service-areas-map {
  padding: 0;
}

.ehspf-footer-service-area-map .ehspf-service-areas-map.is-leaflet {
  min-height: 190px;
}

.ehspf-footer-service-area-map .ehspf-service-areas-leaflet,
.ehspf-footer-service-area-map .ehspf-service-areas-static-map {
  border-radius: 6px;
  box-shadow: none;
  height: var(--ehspf-footer-map-height, 190px);
  min-height: var(--ehspf-footer-map-height, 190px);
}

.ehspf-footer-service-area-map .ehspf-service-areas-static-map::before {
  content: "NY + VT";
  display: block;
  font-size: 28px;
  inset: auto 12px 10px auto;
}

.ehspf-footer-service-area-map .ehspf-service-areas-map button strong {
  display: none;
}

.ehspf-footer-service-area-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--ehspf-footer-service-area-columns, 2), minmax(0, 1fr));
}

.ehspf-footer-service-area-links span {
  color: inherit;
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.ehspf-footer-service-area-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  line-height: 1.3;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ehspf-footer-service-area-links li {
  line-height: 1.3;
}

.ehspf-footer-service-area-links a,
.ehspf-footer-service-area-links em {
  color: inherit;
  font-size: 13px;
  font-style: normal;
  opacity: .82;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.ehspf-service-areas-controls {
  background: var(--ehspf-sa-white);
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--ehspf-sa-line);
}

.ehspf-service-areas-empty {
  background:
    linear-gradient(135deg, rgba(31, 107, 69, .08), transparent 52%),
    var(--ehspf-sa-white);
  border-top: 1px solid var(--ehspf-sa-line);
  display: grid;
  gap: 10px;
  padding: clamp(22px, 4vw, 38px);
}

.ehspf-service-areas-empty h3 {
  color: var(--ehspf-sa-green-dark);
  font-size: clamp(22px, 2.5vw, 30px);
}

.ehspf-service-areas-controls label {
  color: var(--ehspf-sa-green-dark);
  font-weight: 800;
}

.ehspf-service-areas-controls input[type="search"] {
  appearance: none;
  background: var(--ehspf-sa-white);
  border: 1px solid var(--ehspf-sa-line);
  border-radius: 6px;
  color: var(--ehspf-sa-ink);
  font: inherit;
  min-height: 48px;
  padding: 11px 14px;
  width: 100%;
}

.ehspf-service-areas-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ehspf-service-areas button,
.ehspf-service-areas-cta a,
.ehspf-service-area-arrow {
  align-items: center;
  appearance: none;
  border: 1px solid var(--ehspf-sa-green);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.ehspf-service-areas-filter-row button,
.ehspf-service-areas-reset,
.ehspf-service-areas-nearest button {
  background: var(--ehspf-sa-white);
  color: var(--ehspf-sa-green-dark);
}

.ehspf-service-areas button:hover,
.ehspf-service-areas button:focus-visible,
.ehspf-service-areas-cta a:hover,
.ehspf-service-areas-cta a:focus-visible,
.ehspf-service-area-arrow:hover,
.ehspf-service-area-arrow:focus-visible,
.ehspf-nearby-locations a:hover,
.ehspf-nearby-locations a:focus-visible {
  box-shadow: 0 0 0 4px rgba(31, 107, 69, 0.16);
  outline: 0;
}

.ehspf-service-areas button.is-active,
.ehspf-service-areas-cta a:first-child,
.ehspf-service-area-arrow {
  background: var(--ehspf-sa-green);
  color: var(--ehspf-sa-white);
}

.ehspf-service-areas-count,
.ehspf-service-areas-nearest p {
  color: var(--ehspf-sa-muted);
  margin: 0;
  padding: 0 clamp(18px, 3vw, 28px);
}

.ehspf-service-areas-count {
  font-weight: 700;
  padding-top: 18px;
}

.ehspf-service-areas-map {
  padding: 18px clamp(18px, 3vw, 28px) 0;
}

.ehspf-service-areas-static-map {
  background:
    radial-gradient(circle at 33% 30%, rgba(31, 107, 69, 0.16), transparent 18%),
    radial-gradient(circle at 58% 48%, rgba(31, 107, 69, 0.12), transparent 20%),
    radial-gradient(circle at 73% 66%, rgba(31, 107, 69, 0.1), transparent 17%),
    linear-gradient(90deg, rgba(31, 107, 69, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 107, 69, 0.08) 1px, transparent 1px),
    var(--ehspf-sa-band);
  background-size: 44px 44px;
  border: 1px solid var(--ehspf-sa-line);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.ehspf-service-areas-static-map::before {
  color: rgba(18, 58, 40, .18);
  content: "NY / VT Service Region";
  font-size: clamp(22px, 5vw, 54px);
  font-weight: 900;
  inset: auto 20px 18px auto;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
}

.ehspf-service-areas-map button {
  background: transparent;
  border: 0;
  color: var(--ehspf-sa-green-dark);
  gap: 6px;
  min-height: auto;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.ehspf-service-areas-map button span {
  background: var(--ehspf-sa-green);
  border: 2px solid var(--ehspf-sa-white);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(31, 107, 69, 0.18);
  display: block;
  height: 16px;
  width: 16px;
}

.ehspf-service-areas-map button.is-approximate span {
  background: #2f7f55;
  box-shadow: 0 0 0 6px rgba(47, 127, 85, 0.14);
}

.ehspf-service-areas-map button strong {
  background: var(--ehspf-sa-white);
  border: 1px solid var(--ehspf-sa-line);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(16, 24, 21, .12);
  color: var(--ehspf-sa-green-dark);
  font-size: 13px;
  line-height: 1;
  max-width: 150px;
  overflow: hidden;
  padding: 6px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehspf-service-areas-map button:hover,
.ehspf-service-areas-map button:focus-visible {
  z-index: 4;
}

.ehspf-service-areas-map.is-leaflet {
  min-height: 360px;
}

.ehspf-service-areas-map-tools {
  align-items: center;
  color: var(--ehspf-sa-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 10px clamp(18px, 3vw, 28px) 0;
}

.ehspf-service-areas-map-tools p {
  margin: 0;
}

.ehspf-service-areas-map-tools label {
  align-items: center;
  color: var(--ehspf-sa-green-dark);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  white-space: nowrap;
}

.ehspf-service-areas-leaflet {
  border: 1px solid var(--ehspf-sa-line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(16, 24, 21, .12);
  height: clamp(340px, 46vw, 520px);
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.ehspf-service-areas-map.is-leaflet .ehspf-service-areas-static-map {
  height: 1px;
  min-height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.ehspf-service-areas-map .leaflet-container {
  color: var(--ehspf-sa-ink);
  font: inherit;
}

.ehspf-service-areas-map .leaflet-popup-content {
  color: var(--ehspf-sa-ink);
  font-size: 14px;
  line-height: 1.45;
  margin: 12px 14px;
}

.ehspf-service-areas-map .leaflet-popup-content strong {
  color: var(--ehspf-sa-green-dark);
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.ehspf-service-areas-map .leaflet-popup-content a {
  color: var(--ehspf-sa-green);
  font-weight: 800;
}

.ehspf-service-areas-nearest {
  display: grid;
  gap: 8px;
  padding: 18px clamp(18px, 3vw, 28px) 0;
}

.ehspf-service-areas-nearest button {
  justify-self: start;
}

.ehspf-service-areas-groups {
  display: grid;
  gap: 26px;
  padding: clamp(18px, 3vw, 28px);
}

.ehspf-service-areas-group {
  background: var(--ehspf-sa-band);
  border: 1px solid var(--ehspf-sa-line);
  border-radius: 8px;
  padding: 0;
}

.ehspf-service-areas-group[hidden],
.ehspf-service-areas [hidden] {
  display: none !important;
}

.ehspf-service-areas-group > summary {
  align-items: baseline;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  list-style: none;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2vw, 22px);
  user-select: none;
}

.ehspf-service-areas-group > summary::-webkit-details-marker {
  display: none;
}

.ehspf-service-areas-group > summary::before {
  color: var(--ehspf-sa-green);
  content: "\25B8"; /* ▸ */
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  margin-right: 8px;
  transition: transform 150ms ease;
}

.ehspf-service-areas-group[open] > summary::before {
  transform: rotate(90deg);
}

.ehspf-service-areas-group > summary:hover,
.ehspf-service-areas-group > summary:focus-visible {
  background: rgba(31, 107, 69, 0.06);
  outline: 0;
}

.ehspf-service-areas-group > summary h3 {
  display: inline;
  font-size: 20px;
}

.ehspf-service-areas-group-count {
  color: var(--ehspf-sa-muted);
  font-size: 14px;
  font-weight: 700;
}

.ehspf-service-areas-group h3 {
  margin: 0;
}

.ehspf-service-areas-group ul,
.ehspf-nearby-locations ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ehspf-service-areas-group ul {
  border-top: 1px solid var(--ehspf-sa-line);
  columns: 3 200px;
  column-gap: 24px;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2vw, 22px);
}

.ehspf-service-areas-group-flat ul {
  border-top: 0;
}

.ehspf-service-areas-group [data-ehspf-service-area-card] {
  break-inside: avoid;
  margin: 0 0 6px;
  padding: 2px 0;
}

.ehspf-service-area-card {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.ehspf-service-area-card a {
  display: inline-block;
  padding: 2px 0;
}

[data-ehspf-service-area-card].is-highlighted .ehspf-service-area-card a,
[data-ehspf-service-area-card].is-highlighted .ehspf-service-area-unlinked {
  background: rgba(31, 107, 69, 0.14);
  border-radius: 4px;
  padding: 2px 6px;
}

.ehspf-service-area-card a:not(.ehspf-service-area-arrow),
.ehspf-service-area-unlinked,
.ehspf-nearby-locations a {
  color: var(--ehspf-sa-green-dark);
  font-weight: 800;
  text-decoration-color: var(--ehspf-sa-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ehspf-service-area-meta,
.ehspf-service-area-services,
.ehspf-service-area-distance {
  color: var(--ehspf-sa-muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.ehspf-service-area-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ehspf-service-area-badges span {
  background: var(--ehspf-sa-green-soft);
  border-radius: 999px;
  color: var(--ehspf-sa-green-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 8px;
}

.ehspf-service-area-arrow {
  align-self: flex-start;
}

.ehspf-service-area-arrow-disabled {
  background: #eaf3ed;
  border-color: var(--ehspf-sa-line);
  color: var(--ehspf-sa-muted);
  cursor: default;
}

.ehspf-service-areas-cta {
  background: var(--ehspf-sa-green-dark);
  color: var(--ehspf-sa-white);
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 36px);
}

.ehspf-service-areas-cta h3,
.ehspf-service-areas-cta p {
  color: var(--ehspf-sa-white);
}

.ehspf-service-areas-cta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ehspf-service-areas-cta a:last-child {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--ehspf-sa-white);
}

.ehspf-nearby-locations {
  background: var(--ehspf-sa-band);
  border: 1px solid var(--ehspf-sa-line);
  border-left: 4px solid var(--ehspf-sa-green);
  border-radius: 8px;
  padding: 20px;
}

.ehspf-nearby-locations ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ehspf-nearby-locations li {
  background: var(--ehspf-sa-white);
  border: 1px solid var(--ehspf-sa-line);
  border-radius: 8px;
  padding: 12px 14px;
}

.ehspf-nearby-locations span,
.ehspf-nearby-locations small {
  color: var(--ehspf-sa-muted);
}

@media (max-width: 720px) {
  .ehspf-service-areas {
    margin: 22px 0;
  }

  .ehspf-service-areas-filter-row,
  .ehspf-service-areas-cta > div {
    align-items: stretch;
    flex-direction: column;
  }

  .ehspf-service-areas-filter-row button,
  .ehspf-service-areas-reset,
  .ehspf-service-areas-nearest button,
  .ehspf-service-areas-cta a {
    width: 100%;
  }

  .ehspf-service-areas-map > div {
    min-height: 240px;
  }

  .ehspf-service-areas-map button strong {
    display: none;
  }

  .ehspf-footer-service-area-head,
  .ehspf-footer-service-area-links {
    grid-template-columns: 1fr;
  }

  .ehspf-footer-service-area-actions {
    justify-content: flex-start;
  }

  .ehspf-footer-service-area-all {
    justify-self: start;
  }
}
