/* Tarife Medici — stil acordeon pe specialități */

.tm-tarife {
	--tm-green-dark: #4b6b16;
	--tm-green: #6b9a2f;
	--tm-green-soft: #f3f8ea;
	--tm-green-row: #e3efd0;
	--tm-border: #e6e6e6;
	--tm-border-open: #9dc46a;
	--tm-text: #333333;
	--tm-price: #6d5a10;
	--tm-badge-cas-bg: #e6f2d8;
	--tm-badge-cas-text: #4b6b16;
	--tm-badge-privat-bg: #fdeee2;
	--tm-badge-privat-text: #b4642a;
	--tm-radius: 8px;

	max-width: 960px;
	margin: 0 auto;
	color: var(--tm-text);
	font-size: 16px;
	line-height: 1.5;
}

/* ---------- Căutare ---------- */

.tm-tarife .tm-search {
	margin-bottom: 18px;
}

.tm-tarife .tm-search__input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	font-size: 15px;
	background: #fff;
	box-sizing: border-box;
}

.tm-tarife .tm-search__input:focus {
	outline: none;
	border-color: var(--tm-border-open);
	box-shadow: 0 0 0 3px rgba(157, 196, 106, .25);
}

.tm-tarife .tm-search__empty {
	margin: 14px 2px 0;
	color: #777;
	font-size: 15px;
}

/* ---------- Cardul specialității ---------- */

.tm-tarife .tm-spec {
	background: #fff;
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
	margin-bottom: 12px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tm-tarife .tm-spec.is-open {
	border-color: var(--tm-border-open);
	box-shadow: 0 2px 10px rgba(75, 107, 22, .08);
}

.tm-tarife .tm-spec__heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	border: 0;
}

.tm-tarife .tm-spec__head {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 18px 22px;
	background: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	box-shadow: none;
	transition: background-color .2s ease;
}

.tm-tarife .tm-spec__head:hover {
	background: var(--tm-green-soft);
}

.tm-tarife .tm-spec.is-open .tm-spec__head {
	background: var(--tm-green-soft);
}

.tm-tarife .tm-spec__head:focus-visible {
	outline: 2px solid var(--tm-green);
	outline-offset: -2px;
}

.tm-tarife .tm-spec__title {
	flex: 1 1 auto;
	font-size: 19px;
	font-weight: 700;
	color: var(--tm-green-dark);
	letter-spacing: .1px;
}

.tm-tarife .tm-spec__meta {
	flex: 0 0 auto;
	font-size: 14px;
	color: var(--tm-green);
	white-space: nowrap;
}

.tm-tarife .tm-spec__chevron {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--tm-green);
	transition: transform .25s ease;
}

.tm-tarife .tm-spec.is-open .tm-spec__chevron {
	transform: rotate(180deg);
}

/* ---------- Panoul ---------- */

.tm-tarife .tm-spec__wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .28s ease;
}

.tm-tarife .tm-spec.is-open .tm-spec__wrap {
	grid-template-rows: 1fr;
}

.tm-tarife .tm-spec__panel {
	overflow: hidden;
	min-height: 0;
	visibility: hidden;
	transition: visibility .28s;
}

.tm-tarife .tm-spec.is-open .tm-spec__panel {
	visibility: visible;
}

/* ---------- Medic ---------- */

.tm-tarife .tm-doctor {
	background: var(--tm-green-row);
	padding: 11px 22px;
}

.tm-tarife .tm-doctor__name {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--tm-green-dark);
	text-decoration: none;
}

.tm-tarife a.tm-doctor__name:hover {
	text-decoration: underline;
}

/* ---------- Servicii ---------- */

.tm-tarife .tm-services {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-tarife .tm-service {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 22px;
	border-bottom: 1px solid #f0f0f0;
	margin: 0;
}

.tm-tarife .tm-services:last-child .tm-service:last-child {
	border-bottom: 0;
}

.tm-tarife .tm-service__name {
	flex: 1 1 auto;
	min-width: 0;
}

.tm-tarife .tm-service__price {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--tm-price);
	white-space: nowrap;
}

.tm-tarife .tm-badge {
	flex: 0 0 auto;
	display: inline-block;
	min-width: 118px;
	text-align: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	line-height: 1.3;
	white-space: nowrap;
	background: #f1f1f1;
	color: #555;
}

.tm-tarife .tm-badge.is-cas {
	background: var(--tm-badge-cas-bg);
	color: var(--tm-badge-cas-text);
}

.tm-tarife .tm-badge.is-privat {
	background: var(--tm-badge-privat-bg);
	color: var(--tm-badge-privat-text);
}

.tm-tarife .tm-spec[hidden],
.tm-tarife .tm-service[hidden] {
	display: none;
}

.tm-empty {
	color: #777;
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
	.tm-tarife .tm-spec__head {
		flex-wrap: wrap;
		padding: 15px 16px;
		gap: 4px 12px;
	}

	.tm-tarife .tm-spec__title {
		flex: 1 1 calc(100% - 34px);
		font-size: 17px;
	}

	.tm-tarife .tm-spec__chevron {
		order: 2;
	}

	.tm-tarife .tm-spec__meta {
		order: 3;
		flex: 1 1 100%;
		font-size: 13px;
	}

	.tm-tarife .tm-doctor {
		padding: 10px 16px;
	}

	.tm-tarife .tm-service {
		flex-wrap: wrap;
		gap: 6px 12px;
		padding: 13px 16px;
	}

	.tm-tarife .tm-service__name {
		flex: 1 1 100%;
	}

	.tm-tarife .tm-badge {
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tm-tarife .tm-spec__wrap,
	.tm-tarife .tm-spec__chevron {
		transition: none;
	}
}

/* ---------- Print ---------- */

@media print {
	.tm-tarife .tm-search,
	.tm-tarife .tm-spec__chevron {
		display: none;
	}

	.tm-tarife .tm-spec__wrap {
		grid-template-rows: 1fr;
	}

	.tm-tarife .tm-spec__panel {
		visibility: visible;
	}
}
