:root {
	--tm-color-north: #0e7c7b;
	--tm-color-central: #e07b39;
	--tm-color-south: #2c72b0;
	--tm-color-other: #6b7280;
	--tm-color-primary: #0e7c7b;
	--tm-text: #17202a;
	--tm-border: #e5e7eb;
	--tm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.tm-map-wrapper,
.tm-map-wrapper * {
	box-sizing: border-box;
}
.tm-map-wrapper {
	position: relative;
	width: 100%;
	color: var(--tm-text);
	font-family: var(--tm-font);
	--tm-effective-height: clamp(560px, 80vh, var(--tm-map-height, 720px));
}
.tm-map-wrapper input,
.tm-map-wrapper button,
.tm-map-wrapper select,
.tm-map-wrapper textarea {
	font-family: inherit;
}
.tm-map-wrapper :where(a, button, dd, dl, dt, em, h3, h4, i, li, p, span, strong),
.tm-map-wrapper .mapboxgl-ctrl,
.tm-map-wrapper .mapboxgl-popup {
	font-family: var(--tm-font) !important;
}
.tm-filters {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
	overflow-x: auto;
	padding: 2px;
}
.tm-map-wrapper .tm-chip {
	appearance: none;
	border: 1px solid var(--tm-border);
	background: #fff;
	border-radius: 999px;
	color: #334155;
	cursor: pointer;
	font: 600 13px/1.2 var(--tm-font);
	line-height: 1.2;
	min-height: 38px;
	min-width: 88px;
	padding: 8px 14px;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
}
.tm-map-wrapper .tm-chip:hover,
.tm-map-wrapper .tm-chip:focus {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
}
.tm-map-wrapper .tm-chip.is-active {
	background: var(--tm-color-primary);
	border-color: var(--tm-color-primary);
	color: #fff;
}
.tm-map-wrapper .tm-chip.is-active:hover,
.tm-map-wrapper .tm-chip.is-active:focus {
	background: var(--tm-color-primary);
	border-color: var(--tm-color-primary);
	color: #fff;
}
.tm-map-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 16px;
	height: var(--tm-effective-height);
	min-height: 0;
}
.tm-map-grid--full {
	grid-template-columns: 1fr;
}
.tm-map-canvas {
	border-radius: 8px;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}
.tm-map-list {
	border: 1px solid var(--tm-border);
	border-radius: 8px;
	list-style: none;
	margin: 0;
	overflow: auto;
	padding: 6px;
	height: 100%;
}
.tm-list-item {
	align-items: center;
	background: #fff;
	border: 1px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	display: grid;
	gap: 9px;
	grid-template-columns: 46px 1fr;
	min-height: 64px;
	padding: 8px 12px;
	transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tm-list-item.is-selected,
.tm-list-item:hover {
	background: #e7f6f4;
	border-color: rgba(14, 124, 123, .24);
	box-shadow: inset 3px 0 0 var(--tm-color-primary);
}
.tm-list-thumb {
	align-items: center;
	background: #f3f4f6;
	border-radius: 50%;
	display: flex;
	font-weight: 700;
	height: 44px;
	justify-content: center;
	overflow: hidden;
	width: 44px;
}
.tm-list-thumb img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.tm-list-meta strong,
.tm-list-meta em {
	display: block;
	font-style: normal;
}
.tm-list-meta strong {
	color: #17202a;
	font-size: 15.5px;
	font-weight: 750;
	line-height: 1.2;
}
.tm-list-item.is-selected .tm-list-meta strong {
	color: #0b6665;
}
.tm-list-meta em {
	color: #64748b;
	font-size: 12px;
	margin-top: 4px;
}
.tm-marker {
	--ring: var(--tm-color-other);
	cursor: pointer;
	height: 44px;
	left: 0;
	position: absolute;
	top: 0;
	width: 44px;
}
.tm-marker[data-region="north"] { --ring: var(--tm-color-north); }
.tm-marker[data-region="central"] { --ring: var(--tm-color-central); }
.tm-marker[data-region="south"] { --ring: var(--tm-color-south); }
.tm-marker[data-region="other"] { --ring: var(--tm-color-other); }
.tm-marker__img,
.tm-marker__fallback {
	background: #fff;
	border: 3px solid var(--ring);
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
	color: var(--ring);
	display: grid;
	font-size: 18px;
	font-weight: 700;
	height: 44px;
	object-fit: cover;
	place-items: center;
	width: 44px;
}
.tm-marker__label {
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
	color: #111827;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	pointer-events: none;
	position: absolute;
	left: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
}
.tm-map-wrapper .tm-cluster-marker {
	align-items: center;
	appearance: none;
	background: var(--tm-color-primary);
	border: 3px solid #fff;
	border-radius: 999px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
	color: #fff;
	cursor: pointer;
	display: flex;
	font: 800 15px/1 var(--tm-font);
	height: 46px;
	justify-content: center;
	width: 46px;
}
.tm-map-wrapper .tm-cluster-marker:hover,
.tm-map-wrapper .tm-cluster-marker:focus {
	background: var(--tm-color-primary);
	border-color: #fff;
	color: #fff;
	outline: 3px solid rgba(14, 124, 123, .28);
	outline-offset: 2px;
	transform: scale(1.05);
}
.tm-marker.is-selected {
	z-index: 10;
	height: 56px;
	width: 56px;
}
.tm-marker.is-selected .tm-marker__img,
.tm-marker.is-selected .tm-marker__fallback {
	border-color: var(--tm-color-primary);
	border-width: 4px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .35), 0 0 0 7px rgba(14, 124, 123, .3);
	height: 56px;
	width: 56px;
}
.mapboxgl-popup-content {
	border-radius: 18px;
	box-shadow: 0 18px 46px rgba(15, 23, 42, .2);
	padding: 0;
}
.mapboxgl-popup-close-button {
	display: none;
}
.mapboxgl-popup {
	z-index: 20;
}
.tm-popup {
	background: #fff;
	border-radius: 18px;
	max-height: min(390px, calc(var(--tm-effective-height) - 96px), 64vh);
	max-width: 292px;
	overflow-y: auto;
	position: relative;
	scrollbar-width: thin;
}
.tm-popup,
.tm-popup * {
	box-sizing: border-box;
}
.tm-popup a,
.tm-popup button {
	font-family: inherit;
}
.tm-popup::-webkit-scrollbar {
	width: 6px;
}
.tm-popup::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
}
.tm-popup.has-scroll::after {
	align-items: flex-end;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 72%);
	border-radius: 0 0 18px 18px;
	bottom: 0;
	color: #0e7c7b;
	content: "⌄";
	display: flex;
	font-size: 18px;
	font-weight: 800;
	height: 48px;
	justify-content: center;
	left: 0;
	line-height: 1;
	padding-bottom: 7px;
	pointer-events: none;
	position: sticky;
	right: 0;
	transition: opacity .16s ease;
	width: 100%;
}
.tm-popup.has-scroll.is-at-end::after {
	opacity: 0;
}
.tm-popup-hero {
	border-radius: 18px 18px 0 0;
	height: 132px;
	overflow: hidden;
	position: relative;
}
.tm-popup-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.tm-popup-image--fallback {
	align-items: center;
	background: linear-gradient(135deg, #dff3f0, #f8fafc);
	color: var(--tm-color-primary);
	display: flex;
	font-size: 44px;
	font-weight: 800;
	justify-content: center;
}
.tm-popup .tm-region-badge {
	bottom: 10px;
	left: 12px;
	position: absolute;
}
.tm-popup-close {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, .94);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
	color: #17202a;
	cursor: pointer;
	display: flex;
	font-size: 20px;
	font-weight: 800;
	height: 30px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 10px;
	top: 10px;
	width: 30px;
}
.tm-popup-close:hover,
.tm-popup-close:focus {
	background: #fff;
	color: #0f172a;
}
.tm-popup-body {
	padding: 14px 14px 12px;
}
.tm-popup p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	color: #475569;
	font-size: 13px;
	line-height: 1.45;
	margin: 8px 0 0;
}
.tm-popup h3,
.tm-sheet h3 {
	color: #111827;
	font-size: 19px;
	line-height: 1.25;
	margin: 0;
}
.tm-region-badge {
	background: var(--tm-color-other);
	border-radius: 999px;
	color: #fff;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	text-transform: uppercase;
}
.tm-region-badge[data-region="north"] { background: var(--tm-color-north); }
.tm-region-badge[data-region="central"] { background: var(--tm-color-central); }
.tm-region-badge[data-region="south"] { background: var(--tm-color-south); }
.tm-popup-attrs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
}
.tm-popup-attrs dt {
	font-weight: 700;
}
.tm-popup-cta,
.tm-sheet-cta {
	align-items: center;
	background: var(--tm-color-primary);
	border-radius: 8px;
	color: #fff;
	display: flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	margin-top: 12px;
	min-height: 44px;
	padding: 11px 14px;
	position: relative;
	text-decoration: none;
}
.tm-popup-cta strong,
.tm-sheet-cta strong {
	display: block;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
}
.tm-popup-cta i,
.tm-sheet-cta i {
	font-style: normal;
	line-height: 1;
	position: absolute;
	right: 14px;
	text-align: right;
	top: 50%;
	transform: translateY(-50%);
}
.tm-popup-related,
.tm-sheet-related {
	margin-top: 12px;
}
.tm-popup-related h4 {
	color: #64748b;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	margin: 0 0 4px;
	text-transform: uppercase;
}
.tm-related-row {
	align-items: center;
	border-top: 1px solid #edf2f7;
	color: inherit;
	display: grid;
	gap: 9px;
	grid-template-columns: 38px 1fr auto;
	min-height: 50px;
	padding: 8px 0;
	text-decoration: none;
}
.tm-related-row img {
	border-radius: 8px;
	height: 38px;
	object-fit: cover;
	width: 38px;
}
.tm-related-row span {
	color: #1f2937;
	display: -webkit-box;
	font-size: 12.5px;
	font-weight: 650;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.tm-related-row i {
	color: #94a3b8;
	font-size: 18px;
	font-style: normal;
	line-height: 1;
	text-align: center;
	width: 14px;
}
.tm-sheet {
	display: none;
}
.tm-map-wrapper.is-dense .tm-marker__label {
	display: none;
}
@media (min-width: 1024px) {
	.tm-marker { height: 52px; width: 52px; }
	.tm-marker__img,
	.tm-marker__fallback { height: 52px; width: 52px; }
	.tm-marker.is-selected { height: 68px; width: 68px; }
	.tm-marker.is-selected .tm-marker__img,
	.tm-marker.is-selected .tm-marker__fallback { height: 68px; width: 68px; }
}
@media (max-width: 1023px) {
	.tm-map-grid {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, var(--tm-effective-height)) auto;
		height: auto;
	}
	.tm-map-canvas {
		height: var(--tm-effective-height);
	}
	.tm-map-list {
		height: auto;
		max-height: 280px;
	}
}
@media (min-width: 768px) and (max-width: 1023px) {
	.tm-map-wrapper {
		--tm-effective-height: clamp(500px, 68vh, 620px);
	}
	.tm-filters {
		gap: 7px;
		margin-bottom: 10px;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.tm-filters::-webkit-scrollbar {
		display: none;
	}
	.tm-map-wrapper .tm-chip {
		min-height: 36px;
		min-width: 78px;
		padding: 7px 13px;
	}
	.tm-map-grid {
		gap: 12px;
	}
	.tm-map-list {
		display: grid;
		gap: 7px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-height: 230px;
		padding: 6px;
	}
	.tm-list-item {
		gap: 8px;
		grid-template-columns: 42px 1fr;
		min-height: 58px;
		padding: 7px 10px;
	}
	.tm-list-thumb {
		height: 40px;
		width: 40px;
	}
	.tm-list-meta strong {
		font-size: 14.5px;
	}
	.tm-list-meta em {
		font-size: 11.5px;
		margin-top: 3px;
	}
	.tm-marker {
		height: 48px;
		width: 48px;
	}
	.tm-marker__img,
	.tm-marker__fallback {
		height: 48px;
		width: 48px;
	}
	.tm-marker.is-selected {
		height: 60px;
		width: 60px;
	}
	.tm-marker.is-selected .tm-marker__img,
	.tm-marker.is-selected .tm-marker__fallback {
		height: 60px;
		width: 60px;
	}
	.tm-marker__label {
		font-size: 11px;
		left: calc(100% + 9px);
		padding: 3px 8px;
	}
	.tm-popup {
		max-height: min(360px, calc(var(--tm-effective-height) - 88px), 60vh);
		max-width: 280px;
	}
	.tm-popup-hero {
		height: 122px;
	}
	.tm-popup-body {
		padding: 13px 13px 11px;
	}
	.tm-popup h3 {
		font-size: 18px;
	}
	.tm-popup p {
		font-size: 12.5px;
		-webkit-line-clamp: 3;
	}
}
@media (max-width: 767px) {
	.tm-map-wrapper {
		--tm-effective-height: min(70vh, 620px);
	}
	.tm-filters {
		left: 12px;
		margin: 0;
		overflow-x: auto;
		padding: 2px 0 8px;
		position: absolute;
		right: 12px;
		scrollbar-width: none;
		top: 12px;
		z-index: 5;
	}
	.tm-filters::-webkit-scrollbar {
		display: none;
	}
	.tm-map-wrapper .tm-chip {
		box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
		min-width: auto;
	}
	.tm-map-list,
	.mapboxgl-popup {
		display: none !important;
	}
	.tm-map-canvas {
		border-radius: 0;
		height: 100%;
		min-height: 0;
	}
	.tm-sheet {
		background: #fff;
		border-radius: 16px 16px 0 0;
		bottom: 0;
		box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
		left: 0;
		max-height: 58vh;
		overflow: auto;
		padding: 18px 16px 16px;
		position: fixed;
		right: 0;
		transform: translateY(100%);
		transition: transform .25s ease;
		z-index: 9999;
	}
	.tm-sheet::before {
		background: #cbd5e1;
		border-radius: 999px;
		content: "";
		display: block;
		height: 4px;
		margin: 0 auto 12px;
		width: 44px;
	}
	.tm-sheet.is-open {
		display: block;
		transform: translateY(0);
	}
	.tm-sheet-close {
		align-items: center;
		background: #f1f5f9;
		border: 1px solid #e2e8f0;
		border-radius: 999px;
		color: #334155;
		cursor: pointer;
		display: flex;
		font-size: 22px;
		font-weight: 700;
		height: 32px;
		justify-content: center;
		line-height: 1;
		position: absolute;
		right: 14px;
		top: 12px;
		width: 32px;
		z-index: 2;
	}
	.tm-sheet-head {
		display: grid;
		gap: 12px;
		grid-template-columns: 88px 1fr;
	}
	.tm-sheet-head img,
	.tm-sheet-fallback {
		border-radius: 12px;
		height: 88px;
		object-fit: cover;
		width: 88px;
	}
}
