/* [tm_emergency_help] — карта неотложной помощи в Поморье. */

.tm-emergency-help {
	margin: 1.5rem 0;
}

.tm-emergency-help__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	align-items: center;
}

.tm-emergency-help__filter {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.92em;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.tm-emergency-help__filter input { margin: 0; }

.tm-emergency-help__dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.tm-emergency-help__dot--medical  { background: #d23b3b; }
.tm-emergency-help__dot--dental   { background: #2b7bd9; }
.tm-emergency-help__dot--pharmacy { background: #1f8a3a; }

.tm-emergency-help__count {
	margin-left: auto;
	color: #666;
	font-size: 0.85em;
}

.tm-emergency-help__map {
	height: 560px;
	width: 100%;
	border-radius: 8px;
	border: 1px solid #e5e5e5;
	background: #f6f6f6;
}

/* Leaflet divIcon: ставим точку категории.
   ::after — белая «бусинка» в центре для контраста на тёмном фоне. */
.tm-eh-marker {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.tm-eh-marker--medical  { background: #d23b3b; }
.tm-eh-marker--dental   { background: #2b7bd9; }
.tm-eh-marker--pharmacy { background: #1f8a3a; }

.tm-eh-popup {
	font-size: 0.95em;
	line-height: 1.4;
	max-width: 280px;
}
.tm-eh-popup strong {
	display: block;
	font-size: 1.05em;
	margin-bottom: 0.25em;
}
.tm-eh-popup__category {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 0.78em;
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.4em;
}
.tm-eh-popup__category--medical  { background: #d23b3b; }
.tm-eh-popup__category--dental   { background: #2b7bd9; }
.tm-eh-popup__category--pharmacy { background: #1f8a3a; }
.tm-eh-popup__address { color: #555; font-size: 0.9em; margin-bottom: 0.25em; }
.tm-eh-popup__phone { color: #222; font-size: 0.9em; margin-top: 0.25em; }
.tm-eh-popup__phone a { color: #1f6feb; text-decoration: none; }
.tm-eh-popup__phone a:hover { text-decoration: underline; }

.tm-emergency-help--error {
	padding: 1rem;
	background: #fff3f3;
	border: 1px solid #f3c0c0;
	border-radius: 6px;
	color: #8a1f1f;
}

@media (max-width: 600px) {
	.tm-emergency-help__map { height: 420px; }
	.tm-emergency-help__count { margin-left: 0; flex-basis: 100%; }
}
