/* Chapter color bridge (1.3.6). No parallel palette or chapter-specific settings.
   Site Engine publishes the design roles and derived palette on the current
   site. Retain legacy values only when no chapter theme is present. */
:is(.ps-tf-wrap, .ps-tf-detail-wrap, .ps-tf-landing-wrap) {
  --ps-tf-brand: var(--ps-chapter-primary, var(--ps-chapter-brand-primary, var(--ps-site-brand-primary, #4f46e5)));
  --ps-tf-accent: var(--ps-chapter-accent, var(--ps-chapter-brand-accent, var(--ps-chapter-secondary, var(--ps-chapter-brand-secondary, var(--ps-tf-brand)))));
  --ps-tf-soft: var(--ps-design-brand-soft, var(--ps-chapter-primary-soft, var(--ps-chapter-primary-wash, #eef2ff)));
  --ps-tf-heading: var(--ps-design-heading-dark, var(--ps-chapter-primary-dark, #0f172a));
  --ps-tf-ink: var(--ps-design-body-text, var(--ps-chapter-ink, #273447));
  --ps-tf-muted: var(--ps-design-muted-text, var(--ps-chapter-ink-muted, #64748b));
  --ps-tf-border: var(--ps-design-border, var(--ps-chapter-border, #e2e8f0));
  --ps-tf-button-bg: var(--ps-design-primary-button-bg, var(--ps-design-primary-button-background, var(--ps-tf-accent)));
  --ps-tf-button-text: var(--ps-design-primary-button-text, var(--ps-chapter-on-accent, #ffffff));
  --ps-tf-button-hover: var(--ps-design-primary-button-hover-bg, var(--ps-tf-brand));
  --ps-tf-button-hover-text: var(--ps-design-primary-button-hover-text, #ffffff);
  --ps-tf-pin-color: var(--ps-tf-brand);
  --ps-tf-highlight-ring: color-mix(in srgb, var(--ps-tf-brand) 18%, transparent);
  --primary: var(--ps-tf-brand);
  --primary-lt: var(--ps-tf-soft);
  --accent: var(--ps-tf-accent);
  --muted: var(--ps-tf-muted);
  --border: var(--ps-tf-border);
  color: var(--ps-tf-ink);
  font-family: inherit;
}

/* ── Reset / Base ───────────────────────────────────────────── */
.ps-tf-wrap *,
.ps-tf-wrap *::before,
.ps-tf-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ps-tf-wrap {
  font-family: inherit;
  color: var(--ps-tf-ink);





  --bg:        #f8fafc;
  --card-bg:   #ffffff;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-md: 0 4px 24px var(--ps-tf-highlight-ring);
}

/* Finder layout: map escapes Elementor's centered content region. */
.ps-tf-wrap { width: 100%; min-width: 0; }
.ps-tf-wrap .ps-tf-content {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: clamp(16px, 2vw, 24px);
  box-sizing: border-box;
  min-width: 0;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.ps-tf-search-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.ps-tf-search-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.ps-tf-search-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ps-tf-search-group select,
.ps-tf-search-group input {
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.ps-tf-search-group input {
  background-image: none;
  padding-right: 12px;
}

.ps-tf-search-group select:focus,
.ps-tf-search-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ps-tf-highlight-ring);
}

.ps-tf-geo-btn {
  height: 42px;
  padding: 0 16px;
  background: var(--primary-lt);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}

.ps-tf-geo-btn:hover { background: var(--primary); color: #fff; }

.ps-tf-search-btn {
  height: 42px;
  padding: 0 24px;
  background: var(--ps-tf-button-bg);
  color: var(--ps-tf-button-text);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}

.ps-tf-search-btn:hover {
  background: var(--ps-tf-button-hover);
  color: var(--ps-tf-button-hover-text);
  box-shadow: 0 4px 12px var(--ps-tf-highlight-ring);
}

/* ── Layout ─────────────────────────────────────────────────── */
.ps-tf-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .ps-tf-layout { grid-template-columns: 1fr; }
  .ps-tf-sidebar { order: 2; }
  .ps-tf-main { order: 1; }
}

/* ── Sidebar / Filters ──────────────────────────────────────── */
.ps-tf-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
}

.ps-tf-sidebar::-webkit-scrollbar { width: 4px; }
.ps-tf-sidebar::-webkit-scrollbar-track { background: transparent; }
.ps-tf-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.ps-tf-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ps-tf-sidebar-header h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.ps-tf-clear-filters {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.ps-tf-clear-filters:hover { text-decoration: underline; }

/* Accordion */
.ps-tf-accordion-item {
  border-bottom: 1px solid var(--border);
}

.ps-tf-accordion-item:last-child { border-bottom: none; }

.ps-tf-accordion-trigger {
  width: 100%;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  transition: background .12s;
}

.ps-tf-accordion-trigger:hover { background: var(--bg); }

.ps-tf-accordion-trigger .ps-tf-acc-arrow {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform .2s;
  flex-shrink: 0;
}

.ps-tf-accordion-item.open .ps-tf-acc-arrow { transform: rotate(180deg); }

.ps-tf-accordion-trigger .ps-tf-filter-count {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 6px;
}

.ps-tf-accordion-body {
  display: none;
  padding: 4px 20px 14px;
  max-height: 260px;
  overflow-y: auto;
}

.ps-tf-accordion-item.open .ps-tf-accordion-body { display: block; }

.ps-tf-accordion-body::-webkit-scrollbar { width: 4px; }
.ps-tf-accordion-body::-webkit-scrollbar-track { background: transparent; }
.ps-tf-accordion-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.ps-tf-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
}

.ps-tf-filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.ps-tf-filter-option:hover { color: var(--primary); }

.ps-tf-filter-option.ps-tf-hidden { display: none; }

.ps-tf-show-more {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 0 0;
  display: block;
}
.ps-tf-show-more:hover { text-decoration: underline; }

/* ── Main Column ────────────────────────────────────────────── */
.ps-tf-main { min-width: 0; }

.ps-tf-toolbar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow);
}

.ps-tf-result-count {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.ps-tf-result-count strong { color: #0f172a; }

.ps-tf-sort-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ps-tf-sort-select {
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 32px 0 10px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}

.ps-tf-sort-select:focus { border-color: var(--primary); }

/* ── Pagination ─────────────────────────────────────────────── */
.ps-tf-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ps-tf-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s;
  font-weight: 500;
}

.ps-tf-page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-lt); }
.ps-tf-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.ps-tf-page-btn:disabled { opacity: .4; cursor: default; }
.ps-tf-page-btn.ellipsis { border-color: transparent; background: transparent; cursor: default; }

/* ── Facility Cards ─────────────────────────────────────────── */
.ps-tf-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.ps-tf-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}

.ps-tf-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.ps-tf-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ps-tf-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ps-tf-heading);
  line-height: 1.35;
}

.ps-tf-card-name2 {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.ps-tf-distance-badge {
  background: var(--primary-lt);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ps-tf-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}

.ps-tf-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ps-tf-card-meta svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.ps-tf-card-meta a {
  color: var(--primary);
  text-decoration: none;
}

.ps-tf-card-meta a:hover { text-decoration: underline; }

.ps-tf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ps-tf-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .02em;
}

.ps-tf-tag-type {
  background: var(--primary-lt);
  color: var(--primary);
  border: 1px solid var(--border);
}

.ps-tf-tag-insurance {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.ps-tf-tag-more {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.ps-tf-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.ps-tf-view-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ps-tf-view-btn:hover { color: var(--ps-tf-button-hover); }

/* ── Loading / Empty States ─────────────────────────────────── */
.ps-tf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--muted);
}

.ps-tf-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ps-tf-spin .7s linear infinite;
}

@keyframes ps-tf-spin { to { transform: rotate(360deg); } }

.ps-tf-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.ps-tf-empty h3 { font-size: 18px; color: #1e293b; margin-bottom: 8px; }
.ps-tf-empty p { font-size: 14px; }

/* ── Facility Detail Page ───────────────────────────────────── */
.ps-tf-detail-wrap {
  font-family: inherit;
  color: var(--ps-tf-ink);
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
  --bg:        #f8fafc;
  --radius:    14px;
  --radius-sm: 8px;
  --card-bg:   #ffffff;
  --shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-md: 0 4px 24px var(--ps-tf-highlight-ring);
}

.ps-tf-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .12s;
}

.ps-tf-detail-back:hover { color: var(--primary); }

.ps-tf-detail-hero {
  background: var(--ps-tf-soft);
  border-radius: var(--radius);
  padding: 36px 40px;
  color: var(--ps-tf-heading);
  border: 1px solid var(--ps-tf-border);
  margin-bottom: 24px;
}

.ps-tf-detail-hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.ps-tf-detail-hero .ps-tf-detail-sub {
  font-size: 14px;
  color: var(--ps-tf-muted);
  margin-bottom: 20px;
}

.ps-tf-detail-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ps-tf-detail-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}

.ps-tf-detail-contact-btn.phone {
  background: var(--ps-tf-button-bg);
  color: var(--ps-tf-button-text);
  border: 1.5px solid var(--ps-tf-button-bg);
}

.ps-tf-detail-contact-btn.phone:hover { background: var(--ps-tf-button-hover); color: var(--ps-tf-button-hover-text); border-color: var(--ps-tf-button-hover); }

.ps-tf-detail-contact-btn.web {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.ps-tf-detail-contact-btn.web:hover { background: var(--primary-lt); }

.ps-tf-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 640px) { .ps-tf-detail-grid { grid-template-columns: 1fr; } }

.ps-tf-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.ps-tf-detail-card h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.ps-tf-detail-card p, .ps-tf-detail-card a {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.6;
}

.ps-tf-detail-card a { color: var(--primary); text-decoration: none; }
.ps-tf-detail-card a:hover { text-decoration: underline; }

.ps-tf-services-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.ps-tf-services-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ps-tf-heading);
}

.ps-tf-services-category {
  margin-bottom: 20px;
}

.ps-tf-services-category h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.ps-tf-services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ps-tf-service-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-lt);
  color: var(--primary);
  border: 1px solid var(--ps-tf-border);
}

/* ── State / County Landing Pages ───────────────────────────── */
.ps-tf-landing-wrap {
  font-family: inherit;
  color: var(--ps-tf-ink);
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
  --bg:        #f8fafc;
  --radius:    14px;
  --radius-sm: 8px;
  --card-bg:   #ffffff;
  --shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-md: 0 4px 24px var(--ps-tf-highlight-ring);
}

.ps-tf-landing-hero {
  background: var(--ps-tf-soft);
  border-radius: var(--radius);
  padding: 48px 48px;
  color: var(--ps-tf-heading);
  border: 1px solid var(--ps-tf-border);
  margin-bottom: 32px;
}

.ps-tf-landing-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.ps-tf-landing-hero p {
  font-size: 16px;
  color: var(--ps-tf-ink);
  max-width: 650px;
}

.ps-tf-county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.ps-tf-county-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ps-tf-county-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px var(--ps-tf-highlight-ring);
  transform: translateY(-1px);
}

.ps-tf-county-card .name { font-size: 14px; font-weight: 600; }
.ps-tf-county-card .count { font-size: 12px; color: var(--muted); }

/* ── Mapbox Map ─────────────────────────────────────────────── */
.ps-tf-map-wrap {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.ps-tf-map {
  width: 100%;
  height: 380px;
}

@media (max-width: 640px) {
  .ps-tf-map { height: 260px; }
}

/* ── Finder page full-width map ─────────────────────────────── */
.ps-tf-wrap .ps-tf-finder-map-wrap {
  /* Full-bleed even when the shortcode is inside an Elementor 1300px container.
     Elementor ancestors must not be set to overflow:hidden/clip. */
  position: relative;
  width: var(--ps-tf-viewport-width, 100vw);
  max-width: none;
  margin: 0 0 28px calc(50% - var(--ps-tf-viewport-half, 50vw));
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.ps-tf-finder-map {
  width: 100%;
  height: 420px;
}

/* Mapbox's popup padding is zero by default. Scope overrides to Treatment Finder. */
.ps-tf-finder-map-wrap .mapboxgl-popup-content,
.ps-tf-map-wrap .mapboxgl-popup-content {
  box-sizing: border-box;
  padding: 18px 32px 18px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15,23,42,.15);
  font-family: inherit;
}
.ps-tf-finder-map-wrap .mapboxgl-popup-close-button,
.ps-tf-map-wrap .mapboxgl-popup-close-button {
  top: 5px;
  right: 7px;
  padding: 4px 7px;
  font-size: 18px;
  line-height: 1;
  color: #475569;
}
.ps-tf-popup { min-width: 170px; }
.ps-tf-popup-title { display:block; font-size:15px; line-height:1.4; color:var(--ps-tf-heading); font-weight:750; overflow-wrap:anywhere; }
.ps-tf-popup-address { margin:7px 0 0; font-size:12px; line-height:1.5; color:#64748b; overflow-wrap:anywhere; }
.ps-tf-popup-link { display:inline-flex; align-items:center; margin-top:14px; min-height:36px; padding:9px 13px; border-radius:7px; font-size:12px; line-height:1.35; font-weight:700; color:var(--ps-tf-button-text); background:var(--ps-tf-button-bg); text-decoration:none; }
.ps-tf-popup-link:hover { color:var(--ps-tf-button-hover-text); background:var(--ps-tf-button-hover); text-decoration:none; }


@media (max-width: 768px) {
  .ps-tf-finder-map { height: 280px; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ps-tf-search-bar { flex-direction: column; }
  .ps-tf-search-group { min-width: 100%; }
  .ps-tf-detail-hero { padding: 24px 20px; }
  .ps-tf-detail-hero h1 { font-size: 20px; }
  .ps-tf-landing-hero { padding: 32px 24px; }
  .ps-tf-landing-hero h1 { font-size: 24px; }
}


/* 1.3.5 | Finder controls own their appearance, including inside Elementor Kits.
 * The selectors are deliberately local to the finder. Global button presets can
 * otherwise turn the accordion into outlined full-size pink Elementor buttons.
 * Important is limited to the small set of presentational properties Elementor
 * can claim; responsive layout and interactions remain owned by existing rules.
 */
.ps-tf-wrap button.ps-tf-accordion-trigger,
.ps-tf-wrap button.ps-tf-clear-filters,
.ps-tf-wrap button.ps-tf-show-more,
.ps-tf-wrap button.ps-tf-geo-btn,
.ps-tf-wrap button.ps-tf-search-btn,
.ps-tf-wrap button.ps-tf-page-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  outline-offset: 3px;
  margin: 0 !important;
  cursor: pointer;
}
.ps-tf-wrap button.ps-tf-accordion-trigger {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 14px 20px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  text-align: left !important;
  overflow-wrap: anywhere;
}
.ps-tf-wrap button.ps-tf-accordion-trigger:hover,
.ps-tf-wrap button.ps-tf-accordion-trigger:focus-visible {
  background: var(--bg) !important;
  color: #1e293b !important;
}
.ps-tf-wrap button.ps-tf-clear-filters,
.ps-tf-wrap button.ps-tf-show-more {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--primary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: left !important;
}
.ps-tf-wrap button.ps-tf-clear-filters:hover,
.ps-tf-wrap button.ps-tf-show-more:hover { text-decoration: underline !important; }
.ps-tf-wrap button.ps-tf-geo-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  height: 42px !important;
  padding: 0 16px !important;
  border: 1.5px solid var(--primary) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--primary-lt) !important;
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
.ps-tf-wrap button.ps-tf-geo-btn:hover { background: var(--primary) !important; color: #fff !important; }
.ps-tf-wrap button.ps-tf-search-btn {
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
  padding: 0 24px !important;
  background: var(--ps-tf-button-bg) !important;
  color: var(--ps-tf-button-text) !important;
  border: 0 !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
.ps-tf-wrap button.ps-tf-search-btn:hover { background: var(--ps-tf-button-hover) !important; color: var(--ps-tf-button-hover-text) !important; }
.ps-tf-wrap button.ps-tf-page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 8px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}
.ps-tf-wrap button.ps-tf-page-btn:hover { border-color: var(--primary) !important; color: var(--primary) !important; background: var(--primary-lt) !important; }
.ps-tf-wrap button.ps-tf-page-btn.active { background: var(--ps-tf-button-bg) !important; border-color: var(--ps-tf-button-bg) !important; color: var(--ps-tf-button-text) !important; font-weight: 700 !important; }
.ps-tf-wrap button.ps-tf-page-btn.ellipsis { border-color: transparent !important; background: transparent !important; }
.ps-tf-wrap button.ps-tf-page-btn:disabled { opacity: .4 !important; cursor: default !important; }
.ps-tf-wrap .ps-tf-search-group :is(input,select),
.ps-tf-wrap select.ps-tf-sort-select {
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border-color: var(--border) !important;
  border-style: solid !important;
  color: #0f172a !important;
  background-color: #fff !important;
  box-shadow: none !important;
  max-width: 100%;
}
.ps-tf-wrap .ps-tf-search-group :is(input,select) { height: 42px !important; padding-block: 0 !important; }
.ps-tf-wrap .ps-tf-search-group select { padding-inline: 12px 32px !important; }
.ps-tf-wrap .ps-tf-search-group input { padding-inline: 12px !important; }
.ps-tf-wrap select.ps-tf-sort-select { height: 36px !important; font-size: 13px !important; }
.ps-tf-wrap .ps-tf-filter-option { font-family: inherit; font-size: 13px !important; line-height: 1.4; }
.ps-tf-wrap .ps-tf-filter-option input[type="checkbox"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  display: inline-block !important;
  width: 15px !important;
  height: 15px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 3px;
  accent-color: var(--primary);
  flex: 0 0 15px !important;
}
.ps-tf-wrap button:focus-visible,
.ps-tf-wrap .ps-tf-search-group :is(input,select):focus-visible,
.ps-tf-wrap select.ps-tf-sort-select:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

/* 1.3.6 · Chapter-consistent treatment map pins and popups */
.ps-tf-map-marker { width:38px; height:49px; cursor:pointer; outline-offset:3px; }
.ps-tf-map-marker svg { width:38px; height:49px; display:block; overflow:visible; filter:drop-shadow(0 3px 5px rgba(0,0,0,.24)); transition:transform .15s ease; }
.ps-tf-map-marker:hover svg, .ps-tf-map-marker:focus-visible svg { transform: translateY(-3px); }
.ps-tf-map-marker .ps-tf-pin-body { fill:var(--ps-tf-pin-color, var(--primary, #4f46e5)); }
.ps-tf-map-marker .ps-tf-pin-semicolon { fill:#fff; }
.ps-tf-map-marker:focus-visible { outline:3px solid var(--ps-tf-pin-color, #4f46e5); border-radius:12px; }
.ps-tf-finder-map-wrap .ps-tf-map-popup .mapboxgl-popup-content,
.ps-tf-map-wrap .ps-tf-map-popup .mapboxgl-popup-content {
  border-radius:12px;
  padding:20px 22px;
  border:1px solid var(--ps-tf-border);
  box-shadow:0 12px 36px rgba(15,23,42,.18);
}
.ps-tf-finder-map-wrap .ps-tf-map-popup .mapboxgl-popup-close-button,
.ps-tf-map-wrap .ps-tf-map-popup .mapboxgl-popup-close-button { right:5px; top:4px; }
.ps-tf-popup-eyebrow { display:block; margin-bottom:8px; font-size:10px; letter-spacing:.12em; text-transform:uppercase; font-weight:800; color:var(--primary); }
.ps-tf-popup-title { color:var(--ps-tf-heading); }
.ps-tf-popup-address { color:var(--ps-tf-muted); }
.ps-tf-detail-eyebrow, .ps-tf-landing-hero .ps-tf-landing-eyebrow { margin:0 0 11px; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--primary); }
.ps-tf-detail-hero h1, .ps-tf-landing-hero h1 { color:var(--ps-tf-heading); }
.ps-tf-detail-hero { padding-block:clamp(32px,5vw,52px); }
.ps-tf-detail-hero .ps-tf-detail-sub { color:var(--ps-tf-ink); opacity:1; }
.ps-tf-detail-contact-btn { border-radius:8px; min-height:42px; justify-content:center; }
.ps-tf-detail-wrap .ps-tf-map-wrap { margin:20px 0 28px; }
.ps-tf-detail-card h3, .ps-tf-services-category h4 { color:var(--ps-tf-heading); }
.ps-tf-detail-card a { color:var(--primary); }
.ps-tf-detail-card a.ps-tf-directions { display:inline-flex; align-items:center; gap:5px; margin-top:10px; font-size:13px; font-weight:700; }
.ps-tf-services-section h2, .ps-tf-landing-wrap .ps-tf-section-heading { color:var(--ps-tf-heading); }
.ps-tf-service-pill { border-color:var(--ps-tf-border); }
.ps-tf-card-name { color:var(--ps-tf-heading); }
.ps-tf-landing-wrap .ps-tf-search-btn { background:var(--ps-tf-button-bg); color:var(--ps-tf-button-text); }
.ps-tf-landing-wrap .ps-tf-search-btn:hover { background:var(--ps-tf-button-hover); color:var(--ps-tf-button-hover-text); }
.ps-tf-wrap button.ps-tf-search-btn, .ps-tf-wrap button.ps-tf-page-btn.active { background:var(--ps-tf-button-bg) !important; color:var(--ps-tf-button-text) !important; }
.ps-tf-wrap button.ps-tf-search-btn:hover { background:var(--ps-tf-button-hover) !important; color:var(--ps-tf-button-hover-text) !important; }
.ps-tf-wrap button.ps-tf-page-btn.active { border-color:var(--ps-tf-button-bg) !important; }
.ps-tf-wrap .ps-tf-search-group :is(input,select):focus-visible, .ps-tf-wrap select.ps-tf-sort-select:focus-visible { border-color:var(--primary) !important; }
@media (max-width:640px) { .ps-tf-detail-contact-btn { flex:1 1 auto; } .ps-tf-map-marker, .ps-tf-map-marker svg { width:34px; } }

/* 1.3.7: Clear, mutually exclusive geographic search modes */
.ps-tf-wrap [hidden], .ps-tf-wrap [data-tf-scope][hidden] { display:none !important; }
.ps-tf-search-panel { background:#fff; border:1px solid var(--ps-tf-border); border-radius:14px; padding:16px 20px; margin-bottom:24px; box-shadow:var(--shadow); }
.ps-tf-search-title { font-size:15px; font-weight:700; color:var(--ps-tf-heading); margin:0 0 12px !important; }
.ps-tf-mode-picker { display:flex; flex-wrap:wrap; gap:5px; margin:0 0 14px; padding:4px; border-radius:10px; background:#f1f3f5; width:max-content; max-width:100%; }
.ps-tf-wrap button.ps-tf-mode-btn { appearance:none !important; background:transparent !important; border:0 !important; border-radius:7px !important; color:var(--ps-tf-muted) !important; cursor:pointer; font-size:13px !important; font-weight:600 !important; font-family:inherit !important; line-height:1.25 !important; padding:9px 14px !important; margin:0 !important; min-height:36px; width:auto !important; box-shadow:none !important; text-transform:none !important; }
.ps-tf-wrap button.ps-tf-mode-btn.is-active { background:#fff !important; color:var(--ps-tf-brand) !important; box-shadow:0 1px 5px rgba(0,0,0,.11) !important; }
.ps-tf-wrap button.ps-tf-mode-btn:focus-visible { outline:2px solid var(--ps-tf-brand) !important; outline-offset:2px; }
.ps-tf-search-panel .ps-tf-search-bar { border:0; background:transparent; border-radius:0; box-shadow:none; padding:0; margin:0; gap:12px; }
.ps-tf-scope-hint { color:var(--ps-tf-muted); margin:10px 0 0 !important; font-size:12px; line-height:1.5; }
.ps-tf-map-caption { position:absolute; z-index:3; top:14px; left:15px; padding:6px 10px; border-radius:7px; background:rgba(255,255,255,.94); color:#334155; font-size:11px; font-weight:600; font-family:inherit; line-height:1.3; box-shadow:0 2px 9px rgba(0,0,0,.10); pointer-events:none; }
.ps-tf-map-error { position:absolute; top:52px; left:14px; z-index:5; width:min(440px,calc(100% - 28px)); background:#fff8f3; border:1px solid #dd805b; border-radius:8px; padding:12px; color:#6f3118; font-size:13px; box-shadow:0 3px 12px rgba(0,0,0,.14); }
.ps-tf-wrap button.ps-tf-expand-btn { display:inline-flex !important; width:auto !important; margin:14px 0 0 !important; border:1px solid var(--ps-tf-brand) !important; border-radius:8px !important; background:#fff !important; color:var(--ps-tf-brand) !important; padding:10px 16px !important; font-size:13px !important; font-weight:700 !important; cursor:pointer; }
.ps-tf-wrap button.ps-tf-expand-btn:hover { background:var(--ps-tf-soft) !important; }
/* Semicolon artwork reduced by about 18%, retaining generous pointer hit area. */
/* Mapbox's marker element MUST remain absolutely positioned in its canvas
   container. Changing it to relative makes subsequent markers participate in
   document flow, shifting the map-coordinate transform and causing apparent
   movement against roads when zooming. 1.3.7 accidentally introduced that. */
.ps-tf-map-marker { width:31px; height:40px; }
.ps-tf-finder-map-wrap .mapboxgl-marker.ps-tf-map-marker,
.ps-tf-map-wrap .mapboxgl-marker.ps-tf-map-marker {
  position:absolute !important;
  top:0;
  left:0;
}
.ps-tf-map-marker svg { width:31px; height:40px; }
.ps-tf-map-marker::before { content:""; position:absolute; inset:-6px; }
@media (max-width:640px) {
  .ps-tf-search-panel { padding:16px; }
  .ps-tf-mode-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
  .ps-tf-wrap button.ps-tf-mode-btn { white-space:normal !important; padding:8px 6px !important; font-size:12px !important; }
  .ps-tf-map-marker, .ps-tf-map-marker svg { width:31px; height:40px; }
  .ps-tf-map-caption { top:12px; max-width:55%; }
}

/* Treatment directory → centrally governed provider contribution flows */
.ps-tf-provider-cta,.ps-tf-provider-claim{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:44px 0;padding:clamp(22px,4vw,38px);border-radius:12px;background:var(--ps-design-brand-soft,#f8f5f7);border:1px solid var(--ps-design-section-border,#dce2e8);color:var(--ps-design-body-text,#303b47)}
.ps-tf-provider-cta h2,.ps-tf-provider-claim h2{font-size:clamp(20px,2.5vw,28px);line-height:1.25;margin:0 0 8px;color:var(--ps-design-heading-dark,#303b47)}
.ps-tf-provider-cta p,.ps-tf-provider-claim p{max-width:650px;margin:0;font-size:14px;line-height:1.7}
.ps-tf-provider-cta .ps-tf-provider-eyebrow{color:var(--ps-design-heading-highlight,var(--ps-primary,#67425f));font-size:11px;font-weight:700;letter-spacing:.12em;margin-bottom:10px}
.ps-tf-provider-cta a,.ps-tf-provider-claim a{white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:7px;font-size:14px;font-weight:700;background:var(--ps-design-primary-button-bg,var(--ps-primary,#67425f));color:var(--ps-design-primary-button-text,#fff)}
@media(max-width:680px){.ps-tf-provider-cta,.ps-tf-provider-claim{flex-direction:column;align-items:flex-start}.ps-tf-provider-cta a,.ps-tf-provider-claim a{white-space:normal}}

.ps-tf-provider-managed{display:block;margin:14px 0;padding:10px 16px;border-left:3px solid var(--ps-design-primary-button-bg,var(--ps-primary,#67425f));background:#f6f7f8;font-size:12px;color:#415063}
