body.therapists-page #main-header {
  position: relative;
  z-index: 1106;
}

body.therapists-page {
  padding-top: 0;
  overflow-x: hidden;
  --filter-panel-top: 76px;
}

/* Therapist filter controls */
.therapist-filter-shell {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.therapist-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid #dde4ee;
  border-radius: 14px;
  background: #eef4fb;
}

@media (min-width: 992px) {
  body.therapists-page .therapist-filter-shell {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    background: var(--surface-bg);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }

  .therapist-filter-shell {
    margin-top: 0;
    margin-bottom: 0.35rem;
  }

  .therapist-filter-bar {
    min-height: 50px;
    padding: 0.5rem 0.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html.theme-dark .therapist-filter-shell,
  html.theme-dark .therapist-filter-bar {
    background: var(--surface-bg) !important;
    border-color: var(--border-soft) !important;
  }
}

.therapist-filter-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
  min-width: 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.therapist-filter-breadcrumbs a {
  color: #1f2937;
}

.therapist-filter-breadcrumbs a:hover {
  color: var(--color-blue);
}

.therapist-filter-breadcrumbs .sep {
  color: #94a3b8;
}

.therapist-filter-form {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.therapist-filter-form .form-select,
.therapist-filter-form-mobile .form-select {
  border-color: #ced5df;
  border-radius: 12px;
  font-weight: 500;
  height: 42px;
}

.therapist-filter-form .ims-select-host {
  min-width: 130px;
  max-width: 180px;
}

.therapist-filter-form-mobile .ims-select-host {
  width: 100%;
}

.therapist-filter-form .form-select {
  width: auto;
  min-width: 130px;
  max-width: 180px;
  padding-right: 2.2rem;
}

.status-toggle {
  display: inline-flex;
  border: 1px solid #ced5df;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.status-pill {
  border: 0;
  background: transparent;
  color: #445063;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  line-height: 1;
  min-height: 44px;
  min-width: 84px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.status-pill:hover {
  background: #f3f6fb;
}

.status-pill.is-active {
  background: var(--color-blue);
  color: #fff;
}

.filter-mobile-trigger {
  width: 100%;
  border: 1px solid #d7dee9;
  border-radius: 12px;
  height: 46px;
  padding: 0 0.9rem;
  text-align: left;
  background: #fff;
  color: #6b7280;
  font-weight: 500;
}

.therapist-filter-mobile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.therapist-filter-mobile-row .filter-mobile-trigger {
  width: 100%;
}

.therapist-filter-mobile-row .status-pill {
  min-width: 72px;
  padding: 0.45rem 0.7rem;
}

.therapist-filter-mobile-panel {
  position: fixed;
  top: var(--filter-panel-top);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 980;
  background: #ffffff;
  padding: 0.75rem 1rem 1rem;
  overflow-y: auto;
  height: calc(100dvh - var(--filter-panel-top));
  transition: top 0.2s ease, height 0.2s ease;
}

.therapist-filter-mobile-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-bottom: 1px solid #e7edf5;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.therapist-filter-mobile-title {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}

.therapist-filter-mobile-back {
  width: 36px;
  height: 36px;
  border: 1px solid #bfd6f4;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f2ff 100%);
  color: var(--color-blue);
  box-shadow: 0 4px 10px rgba(11, 99, 206, 0.15);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.therapist-filter-mobile-back:hover {
  background: linear-gradient(180deg, #e8f2ff 0%, #d9eaff 100%);
}

.therapist-filter-form-mobile {
  display: grid;
  gap: 0.75rem;
}

.filter-mobile-apply {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
}

.filter-mobile-apply:hover {
  background: var(--color-blue-hover);
}

.therapist-filter-form-mobile .form-select {
  width: 100%;
  max-width: 100%;
}

.therapist-filter-form-mobile .status-toggle {
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  body.therapists-page {
    padding-top: 0;
    --filter-panel-top: 0px;
  }

  body.therapists-page #main-header .navbar.fixed-top {
    position: static !important;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
  }

  body.therapists-page .therapist-filter-shell {
    position: sticky;
    top: 0;
    z-index: 1020;
    margin-top: 0;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    background: var(--surface-bg);
    border-bottom: 1px solid var(--border-soft);
  }

  .therapist-filter-shell {
    margin-top: 0.75rem;
  }

  .therapist-filter-mobile-panel {
    top: var(--filter-panel-top);
    height: calc(100dvh - var(--filter-panel-top));
  }
}

@media (max-width: 991.98px) {
  html.theme-dark body.therapists-page .therapist-filter-shell {
    background: var(--surface-bg);
    border-bottom-color: var(--border-soft);
  }
}
