/* TRACOM, harta rezidenților. Totul sub .trh, ca tema (Divi sau alta) să nu schimbe aspectul. */
.trh {
	--trh-ink: #14202B; --trh-soft: #4A5560; --trh-line: #DADDD8; --trh-line2: #B9BEB7;
	--trh-accent: #C2410C; --trh-accent2: #9A3412; --trh-ground: #F3F5F1; --trh-pin: 24px;
	color: var(--trh-ink); font-size: 16px; line-height: 1.5; text-align: left;
}
.trh *, .trh *::before, .trh *::after { box-sizing: border-box; }
.trh button { font-family: inherit; letter-spacing: normal; text-transform: none; }
/* Specificitate 0,1,2: peste regulile temei (ex. „.et_pb_text ul”), sub regulile de mai jos. */
.trh :is(section, aside) :is(p, h2, h3, ul, li, dl, dd) { margin: 0; padding: 0; }
.trh :is(section, aside) :is(ul, li) { list-style: none; }
.trh a { text-decoration: none; }
.trh [hidden] { display: none !important; }

/* --- harta --- */
.trh .trh-map { position: relative; background: var(--trh-ground); border-bottom: 1px solid var(--trh-line); }
.trh .trh-map__view { position: relative; max-width: 1180px; margin: 0 auto; aspect-ratio: 1900 / 1490; overflow: hidden; overflow: clip; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.trh .trh-map__view.is-zoomed { touch-action: none; cursor: grab; }
.trh .trh-map__stage { position: absolute; inset: 0; transform-origin: 0 0; --k: 1; }
.trh .trh-map__stage.is-anim { transition: transform .45s ease; }
.trh .trh-map__plan { display: block; width: 100%; max-width: none; height: 100%; pointer-events: none; }
.trh .trh-pin {
	position: absolute; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(calc(1 / var(--k))); z-index: 2;
	min-width: var(--trh-pin); height: var(--trh-pin); margin: 0; padding: 0 3px; border-radius: 999px;
	border: 2px solid #fff; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
	box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: pointer; display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.trh .trh-pin--grp { height: 28px; padding: 0 10px; font-size: 12px; box-shadow: 0 2px 5px rgba(0,0,0,.4); z-index: 3; }
.trh .trh-pin--adm { min-width: var(--trh-pin); padding: 0 4px; border-radius: 5px; background: #B91C1C; z-index: 4; }
.trh .trh-pin--pct { height: auto; padding: 4px 8px; border-radius: 5px; background: var(--trh-ink); letter-spacing: .04em; z-index: 4; }
.trh .trh-pin__n { margin-left: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fff; color: var(--trh-ink); font-size: 10px; line-height: 16px; text-align: center; }
.trh .trh-pin--adm .trh-pin__n { color: #B91C1C; }
.trh .trh-pin:hover, .trh .trh-pin:focus-visible { z-index: 7; outline: 2px solid var(--trh-ink); outline-offset: 1px; }
.trh .trh-pin.is-sel { background: var(--trh-accent); box-shadow: 0 0 0 4px rgba(194,65,12,.33), 0 2px 6px rgba(0,0,0,.4); z-index: 6; }
.trh .trh-pin--pct.is-sel, .trh .trh-pin--adm.is-sel { border-color: var(--trh-accent); background: var(--trh-ink); }
.trh .trh-pin--adm.is-sel { background: #B91C1C; }

/* fereastra cu detalii */
.trh .trh-map__pop { position: absolute; z-index: 9; background: #fff; border-radius: 10px; border-top: 3px solid var(--trh-accent); box-shadow: 0 10px 30px rgba(20,32,43,.28); padding: 18px; max-height: calc(100% - 16px); overflow-y: auto; }
.trh .trh-pop__x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--trh-soft); cursor: pointer; }
.trh .trh-pop__back { display: block; margin: 0 0 8px; padding: 0; border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--trh-accent2); cursor: pointer; }
.trh .trh-pop__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding-right: 26px; }
.trh .trh-pop__head > div:last-child { min-width: 0; }
.trh .trh-pop__logo { flex: 0 0 64px; height: 44px; border-radius: 6px; background: #EEF1F4; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--trh-soft); overflow: hidden; }
.trh .trh-pop__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.trh .trh-pop__alogo { flex: 0 0 auto; width: 64px; height: auto; display: block; }
.trh .trh-pop__badge { flex: 0 0 auto; background: var(--trh-ink); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 9px; border-radius: 6px; }
.trh .trh-pop__k { margin: 0 0 2px; font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--trh-soft); }
.trh .trh-pop__h { margin: 0; padding: 0 26px 0 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--trh-ink); }
.trh .trh-pop__head .trh-pop__h { padding: 0; }
.trh .trh-pop__sub { margin: 4px 0 10px; font-size: 13px; color: var(--trh-soft); }
.trh .trh-pop__sub--list { margin: 16px 0 6px; font-weight: 600; color: var(--trh-ink); }
.trh .trh-pop__dom { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--trh-accent2); }
.trh .trh-pop__txt { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #2E3A45; }
.trh .trh-pop__dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.trh .trh-pop__dl dt { color: var(--trh-soft); font-weight: 400; }
.trh .trh-pop__dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.trh .trh-pop__dl a { color: var(--trh-ink); font-weight: 600; }
.trh .trh-pop__list { border-top: 1px solid #E3E6E1; }
.trh .trh-pop__list li { border-bottom: 1px solid #E3E6E1; padding: 0; }
.trh .trh-pop__list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 2px; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--trh-ink); font-size: 14px; }
.trh .trh-pop__list button:hover .trh-pop__nm { text-decoration: underline; }
.trh .trh-pop__list button > span:last-child { color: var(--trh-accent2); }
.trh .trh-pop__nr { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.trh .trh-pop__nm { flex: 1; font-weight: 600; }
.trh .trh-pop__btns { display: flex; gap: 8px; }
.trh .trh-pop__btns a { flex: 1; text-align: center; padding: 10px 6px; border-radius: 6px; border: 1px solid var(--trh-ink); background: #fff; color: var(--trh-ink); font-weight: 600; font-size: 14px; line-height: 1.3; }
.trh .trh-pop__btns a.is-dark { background: var(--trh-ink); color: #fff; }
.trh .trh-pop__btns:empty { display: none; }

/* legenda: alege sectorul */
.trh .trh-map__legend { position: absolute; left: 24px; bottom: 24px; width: 240px; background: #fff; border: 1px solid var(--trh-line); border-radius: 10px; padding: 14px 12px; font-size: 15px; z-index: 8; box-shadow: 0 4px 14px rgba(20,32,43,.12); }
.trh .trh-map__lt { margin: 0 0 2px 6px; font-size: 16px; font-weight: 700; }
.trh .trh-map__ls { margin: 0 0 8px 6px; font-size: 12px; color: var(--trh-soft); }
.trh .trh-map__secs { display: flex; flex-direction: column; gap: 2px; }
.trh .trh-lsec { width: 100%; min-height: 38px; margin: 0; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: #fff; color: var(--trh-ink); font-size: 15px; font-weight: 400; cursor: pointer; display: flex; align-items: center; gap: 10px; text-align: left; }
.trh .trh-lsec:hover { border-color: var(--c); }
.trh .trh-lsec[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; font-weight: 700; }
.trh .trh-lsec__dot { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c); }
.trh .trh-lsec[aria-pressed="true"] .trh-lsec__dot { box-shadow: 0 0 0 1px #fff; }
.trh .trh-lsec__dot--all { background: conic-gradient(#1F78B4 0 25%, #8A4FA3 0 50%, #3D8A28 0 75%, #A07800 0); box-shadow: 0 0 0 1px var(--trh-line2); }
.trh .trh-lsec__name { flex: 1; }
.trh .trh-lsec__n { font-size: 14px; font-variant-numeric: tabular-nums; opacity: .8; }
.trh .trh-map__keys { margin: 10px 0 0; padding: 10px 6px 0; border-top: 1px solid #E3E6E1; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.3; }
.trh .trh-map__keys li { display: flex; align-items: center; gap: 10px; padding: 0; }
.trh .trh-key { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.trh .trh-key--grp { height: 22px; padding: 0 7px; border-radius: 11px; background: var(--trh-ink); }
.trh .trh-key--adm { width: 22px; height: 22px; border-radius: 5px; background: #B91C1C; }
.trh .trh-key--pct { padding: 4px 5px; border-radius: 4px; background: var(--trh-ink); font-size: 10px; }

.trh .trh-map__ctrl { position: absolute; right: 24px; top: 24px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trh-line); border-radius: 10px; overflow: hidden; z-index: 8; }
.trh .trh-map__ctrl button { width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--trh-line); border-radius: 0; background: #fff; font-size: 20px; line-height: 1; color: var(--trh-ink); cursor: pointer; }
.trh .trh-map__ctrl button:last-child { border-bottom: 0; }
.trh .trh-map__ctrl button:hover { background: var(--trh-ground); }
.trh .trh-map__hint { position: absolute; right: 24px; bottom: 18px; padding: 6px 10px; font-size: 13px; color: var(--trh-soft); background: rgba(255,255,255,.85); border-radius: 6px; }
.trh .trh-map:fullscreen, .trh .trh-map.is-fs { background: var(--trh-ground); display: flex; align-items: center; justify-content: center; }
.trh .trh-map.is-fs { position: fixed; inset: 0; z-index: 100000; }
.trh .trh-map:fullscreen .trh-map__view, .trh .trh-map.is-fs .trh-map__view { width: min(100vw, calc(100vh * 1900 / 1490)); max-width: none; }

/* --- filtrele --- */
.trh .trh-filters { background: #fff; border-bottom: 1px solid var(--trh-line); }
.trh .trh-filters__in { max-width: 1240px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.trh .trh-filters__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; }
.trh .trh-search { flex: 0 1 420px; display: flex; flex-direction: column; gap: 8px; margin: 0; font-weight: 600; font-size: 15px; }
.trh .trh-search input { width: 100%; height: auto; margin: 0; font-family: inherit; font-weight: 400; font-size: 16px; line-height: 1.4; padding: 12px 16px; border: 1px solid var(--trh-line2); border-radius: 8px; background: #fff; color: var(--trh-ink); box-shadow: none; }
.trh .trh-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trh .trh-group__t { font-weight: 600; font-size: 15px; margin-right: 4px; }
.trh .trh-pill { margin: 0; font-size: 15px; font-weight: 400; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--trh-line2); background: #fff; color: var(--trh-ink); }
.trh .trh-pill[aria-pressed="true"] { border-color: var(--trh-ink); background: var(--trh-ink); color: #fff; }
.trh .trh-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.trh .trh-count { font-size: 15px; color: var(--trh-soft); }

/* --- fișele --- */
.trh .trh-list { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; }
.trh .trh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trh .trh-card { background: #fff; border: 1px solid var(--trh-line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.trh .trh-card.is-sel { border-color: var(--trh-accent); box-shadow: 0 0 0 2px var(--trh-accent); }
.trh .trh-card__top { display: flex; align-items: center; justify-content: space-between; }
.trh .trh-card__nr { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.trh .trh-card__sec { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--c); }
.trh .trh-card__logo { height: 88px; border-radius: 8px; background: var(--trh-ground); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #8A949E; overflow: hidden; }
.trh .trh-card__logo img { max-width: 80%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.trh .trh-card__name { margin: 0 0 4px; padding: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--trh-ink); }
.trh .trh-card__dom { font-size: 13px; font-weight: 600; color: var(--trh-accent2); }
.trh .trh-card__desc { font-size: 14px; line-height: 1.5; color: var(--trh-soft); }
.trh .trh-card__ct { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; }
.trh .trh-card__ct li { display: flex; gap: 8px; align-items: baseline; padding: 0; overflow-wrap: anywhere; }
.trh .trh-card__ct li > span { width: 16px; flex: 0 0 16px; color: var(--trh-soft); }
.trh .trh-card__ct a { color: var(--trh-ink); font-weight: 600; }
.trh .trh-card__ct em { font-style: normal; font-size: 13px; color: #8A949E; }
.trh .trh-card__links { margin-top: auto; padding-top: 12px; border-top: 1px solid #E3E6E1; display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.trh .trh-card__links a { color: var(--trh-ink); padding: 6px 0; }
.trh .trh-card__links a:hover { text-decoration: underline; }
.trh .trh-card__links button { margin: 0 0 0 auto; padding: 6px 0; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--trh-accent2); cursor: pointer; }
.trh .trh-more { width: 100%; min-height: 48px; margin: 20px 0 0; border-radius: 8px; border: 1px solid var(--trh-ink); background: #fff; color: var(--trh-ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.trh .trh-empty { padding: 24px; background: #fff; border: 1px dashed var(--trh-line2); border-radius: 10px; color: var(--trh-soft); }

@media (max-width: 1100px) {
	.trh .trh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Pe ecran îngust legenda trece sub hartă, ca rând de butoane. */
@media (max-width: 760px) {
	.trh .trh-map { display: flex; flex-direction: column; }
	.trh .trh-map__view { width: 100%; }
	.trh .trh-map__legend { position: static; width: auto; margin: 0; border: 0; border-top: 1px solid var(--trh-line); border-radius: 0; box-shadow: none; padding: 10px 12px; }
	.trh .trh-map__lt, .trh .trh-map__ls, .trh .trh-map__keys { display: none; }
	/* Sub hartă sectorul se alege din butoanele filtrelor; legenda apare doar pe ecran complet. */
	.trh .trh-map__legend { display: none; }
	.trh .trh-map:fullscreen .trh-map__legend, .trh .trh-map.is-fs .trh-map__legend { display: block; }
	.trh .trh-map__secs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
	.trh .trh-lsec { width: auto; min-height: 36px; padding: 0 10px; border-color: var(--trh-line2); font-size: 14px; gap: 6px; }
	.trh .trh-lsec__dot { width: 14px; height: 14px; flex-basis: 14px; }
	.trh .trh-lsec__n { display: none; }
	.trh .trh-map:fullscreen, .trh .trh-map.is-fs { flex-direction: column; justify-content: center; }
	.trh .trh-map__hint { display: none; }
	.trh .trh-map__ctrl { right: 10px; top: 10px; }
	.trh .trh-map__ctrl button { width: 40px; height: 40px; }
	.trh .trh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trh { --trh-pin: 18px; }
	.trh .trh-pin { font-size: 9px; border-width: 1.5px; }
	.trh .trh-pin--grp { height: 20px; padding: 0 6px; font-size: 10px; }
	.trh .trh-pin--pct { padding: 3px 5px; font-size: 9px; }
}
@media (max-width: 520px) {
	.trh .trh-grid { grid-template-columns: 1fr; }
	.trh .trh-filters__in, .trh .trh-list { padding-left: 16px; padding-right: 16px; }
	.trh { --trh-pin: 15px; }
	.trh .trh-pin { font-size: 8px; border-width: 1px; padding: 0 2px; }
	.trh .trh-pin--grp { height: 17px; padding: 0 5px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
	.trh .trh-map__stage.is-anim { transition: none; }
}
