/* TN Programări — harta specialiștilor */
.tnm {
	--tnp-primary: #00672B;
	--tnp-accent: #65BC7B;
	--tnm-ink: #18222d;
	--tnm-text: #3d4855;
	--tnm-muted: #6f7a87;
	--tnm-line: #e4e9e6;
	--tnm-soft: #f3f8f4;
	--tnm-font: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-family: var(--tnm-font);
	color: var(--tnm-text);
	font-size: 16px;
	line-height: 1.5;
	margin: 32px 0;
	container-type: inline-size;
	container-name: tnm;
	-webkit-font-smoothing: antialiased;
}
.tnm *, .tnm *::before, .tnm *::after { box-sizing: border-box; }
.tnm h2, .tnm h3, .tnm h4, .tnm p { margin: 0; padding: 0; font-family: var(--tnm-font); text-transform: none; letter-spacing: normal; }
.tnm button { font-family: var(--tnm-font); cursor: pointer; margin: 0; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; }
.tnm a { text-decoration: none; }
.tnm .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tnm-i { width: 17px; height: 17px; flex: none; }

.tnm-card {
	background: #fff;
	border: 1px solid var(--tnm-line);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(16, 40, 24, .04), 0 12px 40px -12px rgba(16, 40, 24, .18);
	overflow: hidden;
}

/* Head */
.tnm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 30px 34px 24px; border-bottom: 1px solid var(--tnm-line); }
.tnm-head__text { flex: 1 1 380px; }
.tnm .tnm-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tnp-primary); line-height: 1; }
.tnm .tnm-eyebrow::before { content: ""; width: 20px; height: 3px; border-radius: 2px; background: var(--tnp-primary); flex: none; }
.tnm .tnm-title { font-size: 28px; line-height: 1.2; color: var(--tnm-ink); margin-bottom: 8px; }
.tnm .tnm-sub { font-size: 15px; color: var(--tnm-muted); }
.tnm-select { position: relative; display: flex; align-items: center; flex: 0 1 300px; }
.tnm-select .tnm-i { position: absolute; left: 14px; color: var(--tnp-primary); pointer-events: none; }
.tnm .tnm-select select {
	width: 100%; height: 50px; margin: 0; padding: 0 40px 0 42px; font: 500 15.5px var(--tnm-font); color: var(--tnm-ink);
	border: 1.5px solid var(--tnm-line); border-radius: 12px; background: #fbfcfb url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjNmY3YTg3JyBzdHJva2Utd2lkdGg9JzInPjxwYXRoIGQ9J202IDkgNiA2IDYtNicvPjwvc3ZnPg==") right 14px center/16px no-repeat;
	-webkit-appearance: none; appearance: none; cursor: pointer; box-shadow: none;
}
.tnm .tnm-select select:focus { outline: none; border-color: var(--tnp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tnp-primary) 12%, transparent); }

/* Body */
.tnm-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
.tnm-map { position: relative; overflow: hidden; padding: 0 0 44px; background: linear-gradient(180deg, #fbfdfb, #f5f9f6); border-right: 1px solid var(--tnm-line); }
.tnm-map > svg { display: block; width: 100%; height: auto; overflow: hidden; user-select: none; }

.tnm-county { fill: #e9f0eb; stroke: #fff; stroke-width: calc(1.1px * var(--k, 1)); stroke-linejoin: round; cursor: pointer; transition: fill .2s, opacity .3s; outline: none; }
.tnm-county.has { fill: color-mix(in srgb, var(--tnp-accent) 42%, #fff); }
.tnm-county:hover, .tnm-county:focus-visible { fill: color-mix(in srgb, var(--tnp-accent) 70%, #fff); }
.tnm-county.has:hover, .tnm-county.has:focus-visible { fill: var(--tnp-accent); }
.tnm-county.is-active { fill: color-mix(in srgb, var(--tnp-primary) 14%, #fff) !important; stroke: var(--tnp-primary); stroke-width: calc(1.6px * var(--k, 1)); }
.tnm-county.is-dim { opacity: .38; }

.tnm-badges { transition: opacity .25s; }
.tnm-badges.is-hidden { opacity: 0; pointer-events: none; }
.tnm-badge { cursor: pointer; }
.tnm-badge circle { r: 12px; fill: var(--tnp-primary); stroke: #fff; stroke-width: 2.5px; }
.tnm-badge text { font: 700 12px var(--tnm-font); fill: #fff; pointer-events: none; }

.tnm-dots circle { fill: #8fa99a; opacity: .55; pointer-events: none; }
.tnm-dots circle.town { fill: #5f7d6b; opacity: .9; }

.tnm-pin { cursor: pointer; outline: none; animation: tnm-drop .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.tnm-pin__shape { fill: var(--tnp-primary); stroke: #fff; stroke-width: 2px; filter: drop-shadow(0 3px 4px rgba(0, 40, 15, .35)); transition: fill .2s; }
.tnm-pin:hover .tnm-pin__shape, .tnm-pin:focus-visible .tnm-pin__shape { fill: #004d1f; }
.tnm-pin text { font: 700 11px var(--tnm-font); fill: #fff; pointer-events: none; }
.tnm-pin text.tnm-pin__label { font: 600 12px var(--tnm-font); fill: var(--tnm-ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
@keyframes tnm-drop { from { opacity: 0; } to { opacity: 1; } }

.tnm .tnm-back { position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--tnm-line); border-radius: 999px; background: #fff; color: var(--tnm-ink); font-size: 14px; font-weight: 500; line-height: 1.2; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25); }
.tnm .tnm-back:hover { border-color: var(--tnp-primary); color: var(--tnp-primary); }
.tnm .tnm-back[hidden] { display: none; }
.tnm-tip { position: absolute; z-index: 3; transform: translate(-50%, -100%); pointer-events: none; background: var(--tnm-ink); color: #fff; padding: 8px 12px; border-radius: 9px; font-size: 13px; line-height: 1.35; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.tnm-tip strong { display: block; font-weight: 600; }
.tnm-tip span { color: rgba(255, 255, 255, .72); }
.tnm-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--tnm-ink); }
.tnm-legend { position: absolute; left: 20px; bottom: 14px; display: flex; gap: 18px; font-size: 12.5px; color: var(--tnm-muted); }
.tnm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tnm-legend i { width: 12px; height: 12px; border-radius: 4px; }
.tnm-legend i.has { background: color-mix(in srgb, var(--tnp-accent) 42%, #fff); }
.tnm-legend i.none { background: #e9f0eb; }
.tnm.is-zoomed .tnm-legend { visibility: hidden; }

/* Panel */
.tnm-panel { position: relative; padding: 26px 26px 28px; max-height: 640px; overflow-y: auto; scrollbar-width: thin; }
.tnm-panel__head { margin-bottom: 18px; }
.tnm-panel__head .tnm-eyebrow { margin-bottom: 8px; }
.tnm .tnm-panel h3 { font-size: 23px; line-height: 1.25; color: var(--tnm-ink); margin-bottom: 4px; }
.tnm-panel__head p:not(.tnm-eyebrow) { font-size: 14.5px; color: var(--tnm-muted); }
.tnm-counties-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tnm .tnm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border: 1px solid var(--tnm-line); border-radius: 999px; color: var(--tnm-ink); font-size: 14px; font-weight: 500; background: #fff; transition: border-color .15s, background .15s; }
.tnm .tnm-chip b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tnp-primary); color: #fff; font-size: 12px; }
.tnm .tnm-chip:hover { border-color: var(--tnp-accent); background: var(--tnm-soft); }
.tnm-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--tnm-soft); font-size: 14px; color: var(--tnm-text); margin-bottom: 16px; }
.tnm-note .tnm-i { color: var(--tnp-primary); margin-top: 2px; }
.tnm-muted { color: var(--tnm-muted); font-size: 14.5px; margin-bottom: 16px !important; }

.tnm-loc { padding: 14px 0 6px; border-top: 1px solid var(--tnm-line); transition: background .3s; }
.tnm-loc:first-of-type { border-top: 0; padding-top: 0; }
.tnm-loc.is-focus { background: linear-gradient(90deg, color-mix(in srgb, var(--tnp-accent) 14%, transparent), transparent 70%); border-radius: 10px; }
.tnm .tnm-loc h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15.5px; font-weight: 600; color: var(--tnm-ink); }
.tnm-loc h4 .tnm-i { color: var(--tnp-primary); }
.tnm-loc h4 span { flex: 1; }
.tnm-loc h4 em { font-style: normal; font-weight: 400; color: var(--tnm-muted); font-size: 13.5px; }
.tnm-loc h4 b { font-size: 12px; color: var(--tnp-primary); background: var(--tnm-soft); border-radius: 999px; padding: 2px 9px; }

.tnm-spec { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--tnm-line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.tnm-spec:hover { border-color: color-mix(in srgb, var(--tnp-accent) 70%, #fff); box-shadow: 0 8px 22px -14px rgba(0, 70, 25, .45); }
.tnm-avatar { width: 50px; height: 50px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--tnp-accent) 25%, #fff); color: var(--tnp-primary); font-weight: 700; font-size: 16px; }
.tnm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tnm-spec__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tnm-spec__body strong { color: var(--tnm-ink); font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.tnm-spec__title { font-size: 13.5px; color: var(--tnp-primary); font-weight: 500; }
.tnm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tnm-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--tnm-soft); color: var(--tnm-text); font-size: 12px; font-weight: 500; }
.tnm-tag .tnm-i { width: 13px; height: 13px; }
.tnm-tag--cab { background: color-mix(in srgb, var(--tnp-primary) 10%, #fff); color: var(--tnp-primary); }
.tnm-spec__addr { display: flex; gap: 5px; align-items: flex-start; margin-top: 6px; font-size: 13px; color: var(--tnm-muted); }
.tnm-spec__addr .tnm-i { width: 14px; height: 14px; margin-top: 2px; }

.tnm .tnm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 14px 10px 16px; border-radius: 12px; background: var(--tnp-primary); color: #fff !important; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background .2s, transform .1s; flex: none; }
.tnm .tnm-btn:hover { background: color-mix(in srgb, var(--tnp-primary) 85%, #000); }
.tnm .tnm-btn:active { transform: translateY(1px); }
.tnm .tnm-btn .tnm-i { width: 16px; height: 16px; }
.tnm .tnm-btn--wide { width: 100%; padding: 13px 18px; white-space: normal; text-align: center; }
.tnm-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 22px 16px; border: 1px dashed color-mix(in srgb, var(--tnp-accent) 60%, #fff); border-radius: 14px; background: var(--tnm-soft); }
.tnm-empty > .tnm-i { width: 34px; height: 34px; color: var(--tnp-primary); }
.tnm-empty p { font-size: 15px; }

.tnm .tnm-attr { padding: 10px 22px; border-top: 1px solid var(--tnm-line); font-size: 11.5px; color: #98a2ad; }
.tnm-attr a { color: inherit; text-decoration: underline; }
.tnm-loading { display: grid; place-items: center; min-height: 360px; border: 1px solid var(--tnm-line); border-radius: 18px; }
.tnm-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--tnp-primary) 18%, transparent); border-top-color: var(--tnp-primary); animation: tnm-spin .7s linear infinite; }
@keyframes tnm-spin { to { transform: rotate(360deg); } }
.tnm-error { padding: 20px; border-radius: 12px; background: #fdf0ef; color: #9b2c22; }

@container tnm (max-width: 880px) {
	.tnm-body { grid-template-columns: 1fr; }
	.tnm-map { border-right: 0; border-bottom: 1px solid var(--tnm-line); padding: 0 0 40px; }
	.tnm .tnm-back { top: 12px; left: 12px; }
	.tnm-panel { max-height: none; overflow: visible; }
	.tnm-head { padding: 24px 22px 20px; }
	.tnm-select { flex-basis: 100%; }
}
@container tnm (max-width: 520px) {
	.tnm .tnm-title { font-size: 23px; }
	.tnm-panel { padding: 22px 18px; }
	.tnm-spec { flex-wrap: wrap; }
	.tnm .tnm-spec .tnm-btn { width: 100%; }
	.tnm-legend { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tnm *, .tnm *::before, .tnm *::after { animation: none !important; transition: none !important; } }
