/* Brand Standards

Color Palette:
0D3B66
2E5D66
62B6CB
F4D35E
EE964B
333333
F9FAFB

Primary Fonts:
Inter
Lora

Hero Headline - 48 pt, Lora
Hero Subhead - 28 pt, italic, Lora

Body Headline - 40 pt, Lora
Body Subhead - 24 pt, italic, Lora

Body Text - 18 pt, Inter

Button - 20 pt, white, Lora, orange background

Background Patterns:
Gold - 244  /  211  /  94  /  .25
Orange - 238 / 150 / 75 / 0.56
*/

.provider-listings-page,
.provider-listings-page * {
  box-sizing: border-box;
}

.provider-listings-page {
  font-family: Inter, Arial, sans-serif;
  color: #333333;
  background: #F7F3E8;
}

/* header */
.provider-listings-header {
  background-image: url('https://www.getsupporttogether.com/backgrounds/get-support-together-mental-health-provider-header.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 24px;
}

.provider-listings-header-inner,
.provider-toolbar-inner,
.provider-listings-filters-panel,
.provider-listings-status-text,
.provider-listings-grid,
.provider-pagination-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.provider-listings-header-inner {
  text-align: center;
}

.provider-listings-title {
  margin: 0 0 10px;
  font-family: Lora, Georgia, serif;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: #EE964B;
}

.provider-listings-subtitle {
  margin: 0 auto 18px;
  max-width: 900px;
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
}

.provider-listings-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.provider-listings-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #62B6CB;
  color: #F7F3E8;
  font-weight: 700;
  font-size: 14px;
}

.provider-listings-header.is-crisis-mode,
.provider-listings-header.is-crisis-mode .provider-listings-header-inner {
  background: transparent !important;
  background-image: none !important;
  min-height: 0 !important;
}

.provider-listings-header.is-crisis-mode {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.provider-listings-header.is-crisis-mode .provider-listings-header-inner {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.provider-listings-header.is-crisis-mode .provider-listings-title {
  margin-bottom: 0 !important;
}

/* layout sections */
.provider-listings-toolbar,
.provider-listings-filters,
.provider-listings-status,
.provider-listings-grid-wrap,
.provider-listings-pagination {
  background: #F7F3E8;
  padding-left: 24px;
  padding-right: 24px;
}

.provider-listings-toolbar {
  padding-top: 24px;
  padding-bottom: 12px;
}

.provider-listings-filters {
  padding-top: 0;
  padding-bottom: 8px;
}

.provider-listings-status {
  padding-top: 8px;
  padding-bottom: 18px;
}

.provider-listings-grid-wrap {
  padding-top: 8px;
  padding-bottom: 24px;
}

.provider-listings-pagination {
  padding-top: 4px;
  padding-bottom: 32px;
}


/* toolbar */
.provider-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.provider-toolbar-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.provider-toolbar-main-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
}



.provider-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.provider-toolbar-search {
  min-width: 0;
  position: relative;
}

.provider-toolbar-search::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #0D3B66;
  font-size: 18px;
  pointer-events: none;
  opacity: 0.85;
}

.provider-search-input {
  width: 100%;
  min-height: 62px;
  padding: 16px 18px 16px 50px;
  border: 2px solid #62B6CB;
  border-radius: 18px;
  background: #ffffff;
  color: #0D3B66;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(98, 182, 203, 0.18);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.provider-search-input::placeholder {
  color: rgba(13, 59, 102, 0.72);
  font-weight: 600;
}

.provider-search-input:hover {
  border-color: #0D3B66;
  box-shadow: 0 8px 22px rgba(13, 59, 102, 0.14);
}

.provider-search-input:focus,
.provider-page-size-select:focus {
  outline: none;
  border-color: #0D3B66;
  box-shadow:
    0 0 0 4px rgba(98, 182, 203, 0.22),
    0 10px 26px rgba(13, 59, 102, 0.16);
}
.provider-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #EE964B;
  color: #000000;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.provider-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.22);
  opacity: 0.96;
}

.provider-btn-secondary {
  background: #62B6CB;
  color: #F7F3E8;
}

.provider-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.provider-page-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.provider-page-size-label {
  font-size: 14px;
  font-weight: 700;
  color: #0D3B66;
  white-space: nowrap;
}

.provider-page-size-select {
  min-height: 40px;
  min-width: 88px;
  padding: 8px 12px;
  border: 1px solid rgba(13,59,102,0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #333333;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

/* filters */
.provider-listings-filters {
  padding-top: 0;
  padding-bottom: 8px;
  position: relative;
}

.provider-listings-filters-panel {
  display: none;
}

.provider-listings-filters-panel.is-open {
  display: block;
}

.provider-filter-dropdown-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(13,59,102,0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #0D3B66;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.provider-filter-dropdown-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13,59,102,0.10);
  background: #ffffff;
}

.provider-filter-dropdown-btn.is-active {
  background: #62B6CB;
  color: #F7F3E8;
  border-color: #62B6CB;
}

.provider-filter-dropdown-btn-text {
  white-space: nowrap;
}

.provider-filter-dropdown-btn-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(13,59,102,0.12);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.provider-filter-dropdown-btn.is-active .provider-filter-dropdown-btn-count {
  background: rgba(247,243,232,0.22);
}

.provider-filter-dropdown-btn-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.provider-filter-dropdown-btn.is-active .provider-filter-dropdown-btn-caret i {
  transform: rotate(180deg);
}

.provider-filter-dropdown-btn-caret i {
  transition: transform 0.15s ease;
}

.provider-mobile-filter-btn,
.provider-mobile-filter-category-btn,
.provider-filter-dropdown-panel-back {
  font-family: Inter, Arial, sans-serif;
}

.provider-mobile-filter-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  width: auto;
  padding: 9px 13px;
  border: 1px solid rgba(13,59,102,0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #0D3B66;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.provider-mobile-filter-btn-count,
.provider-mobile-filter-category-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #62B6CB;
  color: #F7F3E8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.provider-filter-dropdown-panel {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 18px;
  background: #F7F3E8;
  border: 1px solid rgba(13,59,102,0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.provider-filter-dropdown-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.provider-filter-dropdown-panel-title {
  font-family: Lora, Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  color: #0D3B66;
  font-weight: 400;
}

.provider-filter-dropdown-panel-close {
  cursor: pointer;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0D3B66;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.provider-filter-dropdown-panel-back {
  cursor: pointer;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0D3B66;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.provider-mobile-filter-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.provider-mobile-filter-category-btn {
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(13,59,102,0.12);
  border-radius: 12px;
  background: #ffffff;
  color: #0D3B66;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.provider-mobile-filter-category-arrow {
  color: #EE964B;
  font-size: 13px;
}

.provider-filter-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}

.provider-filter-subgroup {
  min-width: 0;
}

.provider-filter-subgroup-title {
  margin: 0 0 10px;
  font-family: Lora, Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
  color: #0D3B66;
  font-weight: 400;
}

.provider-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.provider-filter-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: #333333;
}

/* status */
.provider-listings-status-text {
  font-size: 16px;
  line-height: 1.5;
  color: #0D3B66;
  font-weight: 700;
}

/* grid */
.provider-listings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* cards */
.provider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #F7F3E8;
  border: 1px solid rgba(13,59,102,0.18);
  border-radius: 10px;
  padding: 14px;
  min-height: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  overflow: visible;
  z-index: 1;
}

.provider-card:hover,
.provider-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 59, 102, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 100;
}

.provider-card-link,
.provider-card-main-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
}

.provider-card-link:hover,
.provider-card-main-link:hover {
  text-decoration: none;
}

.provider-card,
.provider-card * {
  color: inherit;
}

.provider-card-top {
  text-align: center;
  margin-bottom: 8px;
}

.provider-card-avatar-wrap {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border: 3px solid #62B6CB;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.provider-card-avatar,
.provider-card-avatar-wrap .provider-card-avatar {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.provider-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.provider-card-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F3E8;
  color: #0D3B66;
  font-family: Lora, Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
}

.provider-card-body {
  text-align: center;
  margin-bottom: 12px;
}

.provider-card-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #62B6CB;
  color: #F7F3E8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.provider-card-section-spacer {
  height: 8px;
}

.provider-card-name {
  margin: 0 0 4px;
  font-family: Lora, Georgia, serif;
  font-size: 19px;
  line-height: 1.2;
  color: #0D3B66;
  font-weight: 700;
}

.provider-card-title {
  margin: 0 0 4px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #333333;
}

.provider-card-subtitle {
  margin: 0 0 6px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #333333;
}

.provider-card-location-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 28px;
  margin: 0 auto 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(98, 182, 203, 0.20);
  color: #0D3B66;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.provider-card-location-badge-secondary {
  margin-top: auto;
  margin-bottom: 10px;
  background: rgba(244, 211, 94, 0.34);
}

.provider-card-location-address {
  margin: auto 0 8px;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #333333;
}

.provider-card-location-address-line {
  display: block;
}

.provider-card-location-address + .provider-card-profile-button {
  margin-top: 0;
}

.provider-card-mini-link {
  display: inline-flex;
  margin-left: 4px;
  color: #0D3B66;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
}

.provider-card-mini-link:hover {
  text-decoration: underline;
}

.provider-card-field {
  margin: 0 0 6px;
}

.provider-card-field + .provider-card-field {
  margin-top: 0;
}

.provider-card-field-label {
  margin: 0 0 4px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  color: #EE964B;
  text-transform: none;
  letter-spacing: 0;
}

.provider-card-field-value {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #333333;
}

.provider-card-footer {
  margin-top: auto;
}

.provider-card-accepting-text {
  margin: 0 0 10px;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #EE964B;
}

.provider-card-profile-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: #EE964B;
  color: #000000;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.16);
}

.provider-card-profile-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.20);
  text-decoration: none;
}

/* contact icons */
.provider-card-contact-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  z-index: 4;
}

.provider-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #0D3B66;
  color: #0D3B66;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.provider-contact-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13,59,102,0.16);
  opacity: 0.95;
  text-decoration: none;
}

.provider-contact-icon i {
  font-size: 16px;
  line-height: 1;
  color: #0D3B66;
}

.provider-contact-icon-glyph {
  font-size: 14px;
  line-height: 1;
  color: #0D3B66;
}

/* legacy ribbon kept neutral in case old markup still exists */
.provider-card-ribbon {
  display: none;
}

.provider-card-ribbon::before,
.provider-card-ribbon::after,
.provider-card-ribbon span {
  display: none;
}

/* async terms/offerings */
.provider-card-async-section {
  margin: 8px 0 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

.provider-card-async-section .provider-card-field-label {
  margin: 0 0 4px;
  line-height: 1.2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.provider-card-hover-block {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

.provider-card-hover-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.provider-card-summary-chip,
.provider-card-summary-more {
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.provider-card-summary-chip::after {
  content: ",";
  margin-right: 4px;
}

.provider-card-summary-chip:last-of-type::after {
  content: "";
  margin-right: 0;
}

.provider-card-summary-more {
  color: #0D3B66;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.provider-card-summary-more:hover {
  text-decoration: underline;
}

.provider-card-async-section-expertise .provider-card-hover-summary {
  display: block;
  line-height: 1.45;
}

.provider-card-async-section-expertise .provider-card-summary-chip {
  display: inline;
}

.provider-card-async-section-expertise .provider-card-summary-chip::after {
  content: " •";
  margin: 0 5px;
  color: #EE964B;
  font-weight: 800;
}

.provider-card-async-section-expertise .provider-card-summary-chip:last-of-type::after {
  content: "";
  margin: 0;
}

.provider-card-async-section-expertise .provider-card-summary-more {
  display: inline-flex;
  margin-left: 6px;
}

.provider-card--location .provider-card-async-mount-location {
  width: 100%;
  margin: 2px 0 10px;
}

.provider-card--location .provider-card-async-section {
  margin-top: 6px;
}

.provider-card--location .provider-card-async-section .provider-card-field-label {
  margin-bottom: 6px;
  text-align: center;
}

.provider-card--location .provider-card-hover-summary,
.provider-card--location .provider-card-async-section-expertise .provider-card-hover-summary {
  display: block;
  text-align: left;
  line-height: 1.35;
}

.provider-card--location .provider-card-summary-chip,
.provider-card--location .provider-card-async-section-expertise .provider-card-summary-chip {
  position: relative;
  display: block;
  margin: 0 0 3px;
  padding-left: 12px;
  line-height: 1.35;
}

.provider-card--location .provider-card-summary-chip::before,
.provider-card--location .provider-card-async-section-expertise .provider-card-summary-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #EE964B;
  transform: translateY(-50%);
}

.provider-card--location .provider-card-summary-chip::after,
.provider-card--location .provider-card-async-section-expertise .provider-card-summary-chip::after {
  content: "";
  margin: 0;
}

.provider-card--location .provider-card-summary-more,
.provider-card--location .provider-card-async-section-expertise .provider-card-summary-more {
  display: inline-flex;
  margin: 2px 0 0 12px;
}

.provider-card-hover-overlay {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(320px, 85vw);
  background: #F7F3E8;
  border: 1px solid rgba(13, 59, 102, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding: 12px 14px;
  max-height: 240px;
  overflow-y: auto;
}

.provider-card-hover-block.has-overlay:hover .provider-card-hover-overlay,
.provider-card-hover-block.has-overlay:focus-within .provider-card-hover-overlay {
  display: block;
}


.provider-card-hover-overlay-title {
  margin-bottom: 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  color: #EE964B;
}

.provider-card-hover-overlay-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.provider-card-hover-overlay-item {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #333333;
}

/* empty/error */
.provider-listings-empty,
.provider-listings-error {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 24px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  color: #333333;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* pagination */
.provider-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.provider-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.provider-page-nav,
.provider-page-btn {
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #EE964B;
  color: #000000;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.provider-page-btn.is-active {
  background: #62B6CB;
  color: #F7F3E8;
}

.provider-page-nav[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

/* responsive */
@media (max-width: 1200px) {
  .provider-listings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .provider-toolbar-main-row {
    grid-template-columns: 1fr;
  }

  .provider-toolbar-actions {
    justify-content: flex-start;
  }

  .provider-filter-dropdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .provider-listings-toolbar,
  .provider-listings-filters,
  .provider-listings-status,
  .provider-listings-grid-wrap,
  .provider-listings-pagination,
  .provider-listings-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .provider-listings-title {
    font-size: 30px;
  }

  .provider-toolbar-filter-row {
    order: 2;
    align-items: flex-start;
  }

  .provider-toolbar-filter-row-mobile {
    flex-direction: row;
    gap: 0;
  }

  .provider-mobile-filter-btn {
    position: fixed;
    top: calc(20vh + env(safe-area-inset-top));
    left: 18px;
    left: max(18px, env(safe-area-inset-left));
    z-index: 9998;
    min-height: 46px;
    padding: 11px 16px;
    box-shadow: 0 8px 22px rgba(13, 59, 102, 0.22);
  }

  .provider-toolbar-main-row {
    order: 1;
    gap: 12px;
  }

  .provider-toolbar-search {
    order: 1;
  }

  .provider-filter-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }

  .provider-filter-dropdown-grid {
    grid-template-columns: 1fr;
  }

  .provider-listings-filters-panel.is-open {
    position: fixed;
    top: 0;
    top: env(safe-area-inset-top);
    bottom: 0;
    left: 0;
    z-index: 9999;
    width: min(88vw, 380px);
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #F7F3E8;
    box-shadow: 12px 0 30px rgba(13, 59, 102, 0.22);
    animation: providerFilterDrawerIn 0.18s ease-out;
  }

  .provider-filter-dropdown-panel {
    max-width: none;
    min-height: 100%;
    padding: 18px 16px 24px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .provider-filter-dropdown-panel-title {
    font-size: 22px;
  }

  .provider-filter-options {
    max-height: none;
  }

  .provider-listings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .provider-toolbar-actions {
    order: 2;
    flex-direction: column;
    align-items: stretch;
  }

  .provider-page-size-wrap {
    display: none;
  }

  #providerApplyFiltersBtn {
    display: none;
  }

  .provider-listings-pagination {
    display: none;
  }

  .provider-card-hover-overlay {
    width: min(300px, 92vw);
  }
}

.provider-mobile-scroll-sentinel {
  grid-column: 1 / -1;
  min-height: 24px;
  pointer-events: none;
}

@keyframes providerFilterDrawerIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@supports (height: 100dvh) {
  @media (max-width: 640px), (hover: none) and (pointer: coarse) {
    .provider-listings-filters-panel.is-open {
      max-height: 100dvh;
    }
  }
}

.provider-filters-inner-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* dropdown filter UI replaces the old accordion filter UI 

.provider-filter-accordion-group {
  border: 1px solid rgba(13,59,102,0.12);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.provider-filter-accordion-toggle {
  width: 100%;
  border: 0;
  background: #ffffff;
  color: #0D3B66;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.provider-filter-accordion-toggle:hover {
  background: #F7F3E8;
}

.provider-filter-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.provider-filter-accordion-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.provider-filter-accordion-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #62B6CB;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.provider-filter-accordion-chevron {
  font-size: 18px;
  line-height: 1;
  color: #0D3B66;
}

.provider-filter-accordion-panel {
  display: none;
  padding: 0 16px 14px;
  border-top: 1px solid rgba(13,59,102,0.08);
  background: #ffffff;
}

.provider-filter-accordion-group.is-open .provider-filter-accordion-panel {
  display: block;
}

.provider-filter-accordion-group.is-open .provider-filter-accordion-chevron {
  transform: rotate(45deg);
}
*/

.provider-filter-options {
  max-height: 260px;
  overflow: auto;
  padding-top: 12px;
}

@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .provider-filter-options {
    max-height: none;
  }
}
