/* 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);
	--hwd-therapist-photo-height: 220px;

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

/* Columns helper (driven by shortcode attribute cols) */
.therapist-loop--cols-1 { --hwd-loop-cols: 1; }
.therapist-loop--cols-2 { --hwd-loop-cols: 2; }
.therapist-loop--cols-3 { --hwd-loop-cols: 3; }
.therapist-loop--cols-4 { --hwd-loop-cols: 4; }
.therapist-loop--cols-5 { --hwd-loop-cols: 5; }
.therapist-loop--cols-6 { --hwd-loop-cols: 6; }

@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;
}

/* Markup compatibility: older templates use <a class="therapist-card__image"> */
.therapist-card__image {
	position: relative;
	padding: 14px 14px 0;
	display: block;
	text-decoration: none;
}

.therapist-card__image img {
	width: 100%;
	height: var(--hwd-therapist-photo-height);
	object-fit: cover;
	display: block;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.04);
}

.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: var(--hwd-therapist-photo-height);
	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;
	flex: 1;
}

.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;
}

/* Current loop markup uses .therapist-card__excerpt */
.therapist-card__excerpt {
	margin: 0;
	color: var(--hwd-therapists-muted);
	font-size: 14px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.therapist-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.therapist-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.therapist-card__tag {
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: var(--hwd-therapists-text);
}

.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,
.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;
	width: fit-content;
	margin-top: auto;
}

.therapist-card__cta:hover,
.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);
}

/* Online badge */
.therapist-card__badge--online{
  position:absolute;
  top:22px;
  left:22px;
  z-index:2;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(0,0,0,0.10);
  color:#111;
}
