.hbh-therapist-directory {
	--hbh-blue: var(--color-1, #004aa5);
	--hbh-blue-dark: #043b83;
	--hbh-navy: #051338;
	--hbh-muted: #566287;
	--hbh-border: #d6deed;
	--hbh-panel: #ffffff;
	box-sizing: border-box;
	color: var(--hbh-navy);
	font-family: inherit;
	margin-left: 50%;
	max-width: calc(100vw - 32px);
	padding: 18px 0 48px;
	transform: translateX(-50%);
	width: min(1165px, calc(100vw - 32px));
}

.hbh-therapist-directory *,
.hbh-therapist-directory *::before,
.hbh-therapist-directory *::after {
	box-sizing: border-box;
}

.hbh-therapist-directory [hidden] {
	display: none !important;
}

.hbh-directory__filters {
	background: var(--hbh-panel);
	border: 1px solid var(--hbh-border);
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(10, 45, 105, 0.025);
	margin: 0;
	padding: 22px 30px 26px;
}

.hbh-directory__filter-heading,
.hbh-directory__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.hbh-directory__filter-heading {
	margin-bottom: 17px;
}

.hbh-directory__filter-heading h2 {
	color: var(--hbh-navy);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	padding: 0;
}

.hbh-directory__clear {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--hbh-blue-dark);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	padding: 5px;
}

.hbh-directory__clear.is-inactive,
.hbh-directory__clear:disabled {
	cursor: default;
	opacity: 0.35;
}

.hbh-directory__filter-grid {
	display: grid;
	grid-template-columns: minmax(220px, 1.15fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(190px, 0.82fr);
	gap: 42px;
	align-items: end;
}

.hbh-directory__field label {
	display: block;
	color: #344272;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 9px;
	text-transform: uppercase;
}

.hbh-directory__field input,
.hbh-directory__field select,
.hbh-directory__sort select {
	appearance: none;
	background-color: #fff;
	border: 1px solid var(--hbh-border);
	border-radius: 6px;
	color: var(--hbh-navy);
	font: inherit;
	font-size: 15px;
	height: 49px;
	line-height: 1.3;
	margin: 0;
	width: 100%;
}

.hbh-directory__field input {
	padding: 0 14px 0 45px;
}

.hbh-directory__field input::placeholder {
	color: #66739b;
	opacity: 1;
}

.hbh-directory__field select,
.hbh-directory__sort select {
	background-image: linear-gradient(45deg, transparent 50%, #061438 50%), linear-gradient(135deg, #061438 50%, transparent 50%);
	background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	cursor: pointer;
	padding: 0 42px 0 14px;
}

.hbh-directory__search-control {
	position: relative;
}

.hbh-directory__control-icon {
	color: var(--hbh-navy);
	left: 14px;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.hbh-directory__control-icon svg,
.hbh-card__location-icon svg,
.hbh-card__footer svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.hbh-directory__control-icon svg {
	height: 20px;
	width: 20px;
}

.hbh-directory__submit,
.hbh-directory__reset {
	appearance: none;
	background: var(--hbh-blue);
	border: 1px solid var(--hbh-blue);
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	height: 49px;
	line-height: 1.2;
	padding: 0 24px;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.hbh-directory__submit:hover,
.hbh-directory__reset:hover {
	background: var(--hbh-blue-dark);
	border-color: var(--hbh-blue-dark);
}

.hbh-directory__toolbar {
	margin: 24px 0;
	min-height: 38px;
	padding: 0;
}

.hbh-directory__count {
	color: var(--hbh-navy);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	padding: 0;
}

.hbh-directory__sort select {
	font-size: 15px;
	height: 38px;
	min-width: 142px;
	background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px;
}

.hbh-directory__mobile-filter-jump {
	display: none;
}

.hbh-directory__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	overflow: visible;
}

.hbh-card {
	background: #fff;
	border: 1px solid var(--hbh-border);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: visible;
	position: relative;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hbh-card:hover,
.hbh-card:focus-within {
	border-color: var(--hbh-blue);
	box-shadow: 0 0 0 1px var(--hbh-blue);
	z-index: 4;
}

.hbh-card__image-link {
	display: block;
	margin: 5px 5px 0;
	overflow: hidden;
	border-radius: 15px;
}

.hbh-card__image {
	aspect-ratio: 1 / 1;
	background: #eef1f6;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.hbh-card__image--placeholder {
	align-items: center;
	color: var(--hbh-blue);
	display: flex;
	font-size: clamp(52px, 6vw, 88px);
	font-weight: 700;
	justify-content: center;
}

.hbh-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 11px 11px 13px;
}

.hbh-card__name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	padding: 0;
}

.hbh-card__name a {
	color: #060d24;
}

.hbh-card__credentials {
	color: #3a4774;
	font-size: 14px;
	line-height: 1.35;
	margin: 4px 0 0;
	min-height: 19px;
	padding: 0;
}

.hbh-card__locations {
	align-items: flex-start;
	color: #39466f;
	display: flex;
	font-size: 13px;
	gap: 8px;
	line-height: 1.45;
	margin-top: 11px;
	min-width: 0;
}

.hbh-card__location-icon {
	color: var(--hbh-navy);
	flex: 0 0 auto;
	margin-top: 1px;
}

.hbh-card__location-icon svg {
	height: 16px;
	width: 16px;
}

.hbh-card__location-values {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 7px;
	min-width: 0;
}

.hbh-card__separator {
	color: #8b95b1;
}

.hbh-card__pills {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 13px;
}

.hbh-card__pill,
.hbh-overflow__trigger--text {
	appearance: none;
	background: #fff;
	border: 1px solid var(--hbh-border);
	border-radius: 999px;
	color: var(--hbh-navy);
	display: inline-flex;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	min-height: 30px;
	padding: 6px 12px;
	white-space: nowrap;
}

.hbh-overflow {
	display: inline-flex;
	position: relative;
	z-index: 8;
}

.hbh-overflow__trigger {
	cursor: pointer;
}

.hbh-overflow__trigger--text {
	border-radius: 5px;
	min-height: 24px;
	padding: 2px 7px;
}

.hbh-overflow__tooltip {
	--hbh-tooltip-shift: 0px;
	background: var(--hbh-blue-dark);
	border-radius: 4px;
	bottom: calc(100% + 9px);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	left: 50%;
	line-height: 1.35;
	max-width: min(260px, calc(100vw - 32px));
	min-width: max-content;
	padding: 8px 10px;
	pointer-events: none;
	position: absolute;
	text-align: center;
	transform: translateX(-50%) translateX(var(--hbh-tooltip-shift));
	white-space: normal;
	z-index: 100;
}

.hbh-overflow__tooltip::after {
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid var(--hbh-blue-dark);
	content: "";
	left: calc(50% - var(--hbh-tooltip-shift));
	position: absolute;
	top: 100%;
	transform: translateX(-50%);
}

.hbh-card__footer {
	align-items: center;
	border-radius: 0 0 9px 9px;
	border-top: 1px solid #e1e6ef;
	color: var(--hbh-blue);
	display: flex;
	font-size: 15px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 50px;
	padding: 12px 18px;
	transition: background-color 160ms ease, color 160ms ease;
}

.hbh-card__footer svg {
	height: 20px;
	margin-left: 20px;
	width: 20px;
}

.hbh-card:hover .hbh-card__footer,
.hbh-card:focus-within .hbh-card__footer {
	background: var(--hbh-blue);
	color: #fff;
}

.hbh-directory__no-results {
	background: #f7f9fc;
	border: 1px solid var(--hbh-border);
	border-radius: 10px;
	margin-top: 4px;
	padding: 48px 20px;
	text-align: center;
}

.hbh-directory__no-results h3 {
	color: var(--hbh-navy);
	font-size: 21px;
	font-weight: 700;
	margin: 0;
	padding: 0;
}

.hbh-directory__no-results p {
	color: var(--hbh-muted);
	font-size: 15px;
	padding: 9px 0 17px;
}

.hbh-directory__reset {
	height: 44px;
}

.hbh-therapist-directory a:focus-visible,
.hbh-therapist-directory button:focus-visible,
.hbh-therapist-directory input:focus-visible,
.hbh-therapist-directory select:focus-visible {
	box-shadow: 0 0 0 4px rgba(0, 74, 165, 0.14);
	outline: 2px solid var(--hbh-blue);
	outline-offset: 2px;
}

@media (max-width: 1180px) {
	.hbh-directory__filter-grid {
		gap: 20px;
	}

	.hbh-directory__grid {
		gap: 22px;
	}
}

@media (max-width: 980px) {
	.hbh-directory__filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 640px) {
	.hbh-therapist-directory {
		max-width: calc(100vw - 32px);
		padding-bottom: 34px;
		width: calc(100vw - 32px);
	}

	.hbh-directory__filters {
		padding: 20px 16px;
		scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 70px);
	}

	.hbh-directory__filter-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hbh-directory__submit,
	.hbh-directory__field input,
	.hbh-directory__field select {
		min-height: 50px;
		width: 100%;
	}

	.hbh-directory__toolbar {
		align-items: center;
		gap: 8px;
		margin: 20px 0;
		padding: 0;
	}

	.hbh-directory__count {
		font-size: 14px;
		margin-right: auto;
	}

	.hbh-directory__sort select {
		font-size: 13px;
		height: 40px;
		min-width: 118px;
		padding-left: 10px;
	}

	.hbh-directory__mobile-filter-jump {
		align-items: center;
		appearance: none;
		background: var(--hbh-blue-dark, #043b83);
		border: 1px solid var(--hbh-blue-dark, #043b83);
		border-radius: 999px;
		color: #fff;
		cursor: pointer;
		display: inline-flex;
		font: inherit;
		font-size: 13px;
		font-weight: 700;
		gap: 6px;
		justify-content: center;
		min-height: 40px;
		padding: 8px 12px;
	}

	.hbh-directory__mobile-filter-jump.is-floating {
		bottom: max(18px, env(safe-area-inset-bottom));
		box-shadow: 0 8px 24px rgba(5, 19, 56, 0.24);
		position: fixed;
		right: 16px;
		z-index: 9999;
	}

	.hbh-directory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	.hbh-card {
		border-radius: 9px;
	}

	.hbh-card__image-link {
		border-radius: 9px;
		margin: 4px 4px 0;
	}

	.hbh-card__body {
		padding: 8px 8px 10px;
	}

	.hbh-card__name {
		font-size: 15px;
		line-height: 1.25;
	}

	.hbh-card__credentials {
		font-size: 12px;
		line-height: 1.25;
		margin-top: 2px;
		min-height: 15px;
	}

	.hbh-card__locations {
		font-size: 11px;
		gap: 4px;
		line-height: 1.35;
		margin-top: 8px;
	}

	.hbh-card__location-icon svg {
		height: 13px;
		width: 13px;
	}

	.hbh-card__location-values {
		gap: 0 4px;
	}

	.hbh-card__pills {
		gap: 4px;
		padding-top: 9px;
	}

	.hbh-card__pill,
	.hbh-overflow__trigger--text {
		font-size: 11px;
		min-height: 24px;
		padding: 4px 6px;
	}

	.hbh-card__footer {
		font-size: 13px;
		min-height: 42px;
		padding: 9px 8px;
	}

	.hbh-card__footer svg {
		height: 16px;
		margin-left: 8px;
		width: 16px;
	}
}

@media (max-width: 340px) {
	.hbh-directory__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbh-therapist-directory *,
	.hbh-therapist-directory *::before,
	.hbh-therapist-directory *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
