/* Therapist loop grid (shortcode: [therapist_loop]) */
.therapist-loop {
	--hwd-loop-cols: 3;
	--hwd-loop-cols-tablet: 2;
	--hwd-loop-cols-mobile: 1;

	/* Elementor global colors fallbacks */
	--hwd-therapists-accent: var(--e-global-color-accent, var(--e-global-color-primary, #3E7C6C));
	--hwd-therapists-text: var(--e-global-color-text, #222);
	--hwd-therapists-muted: var(--e-global-color-secondary, #666);

	display: grid;
	grid-template-columns: repeat(var(--hwd-loop-cols), minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
}

@media (max-width: 1024px) {
	.therapist-loop {
		grid-template-columns: repeat(var(--hwd-loop-cols-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.therapist-loop {
		grid-template-columns: repeat(var(--hwd-loop-cols-mobile), minmax(0, 1fr));
	}
}

/* Card */
.therapist-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.therapist-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 0, 0, 0.12);
}

.therapist-card.is-featured {
	border-color: var(--hwd-therapists-accent);
}

/* Media / photo */
.therapist-card__media {
	position: relative;
	padding: 14px 14px 0;
}

.therapist-card__thumb {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
	text-decoration: none;
}

.therapist-card__img,
.therapist-card__img--placeholder {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.therapist-card__img--placeholder {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
}

/* Overlays */
.therapist-card__badge {
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.therapist-card__badge--city {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 2;
	background: var(--hwd-therapists-accent);
	color: #fff;
}

.therapist-card__badge-group--langs {
	position: absolute;
	right: 22px;
	bottom: 10px;
	z-index: 2;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
	max-width: calc(100% - 44px);
}

.therapist-card__badge--lang {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: var(--hwd-therapists-text);
}

/* Content */
.therapist-card__content {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.therapist-card__name {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	color: var(--hwd-therapists-text);
}

.therapist-card__name a {
	color: inherit;
	text-decoration: none;
}

.therapist-card__name a:hover {
	color: var(--hwd-therapists-accent);
}

.therapist-card__desc {
	margin: 0;
	color: var(--hwd-therapists-muted);
	font-size: 14px;
	line-height: 1.45;
}

.therapist-card__skills {
	font-size: 13px;
	font-weight: 700;
	color: var(--hwd-therapists-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0.9;
}

/* CTA */
.therapist-card__cta {
	margin-top: 4px;
}

.therapist-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--hwd-therapists-accent);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	text-decoration: none;
}

.therapist-card__button:hover {
	filter: brightness(0.95);
}

/* Generic badge (still used by other shortcodes) */
.hwd-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 13px;
	line-height: 1;
	font-weight: 700;
	background: rgba(62, 124, 108, 0.16);
	color: var(--hwd-therapists-accent);
	border: 1px solid rgba(62, 124, 108, 0.18);
	margin: 4px 6px 0 0;
	text-decoration: none;
}

.hwd-badge--soft {
	background: rgba(62, 124, 108, 0.10);
	border-color: rgba(62, 124, 108, 0.12);
}
