﻿.route-cluster-box .rcb-head {
	margin-bottom: 8px
}

.route-cluster-box .rcb-row {
	padding: 6px 4px;
	border-bottom: 1px solid rgba(0,0,0,.06)
}

	.route-cluster-box .rcb-row:last-child {
		border-bottom: 0
	}

.route-cluster-box .rcb-title {
	font-weight: 600
}

.route-cluster-box .rcb-eta {
	color: #555
}

.route-cluster-box .rcb-order {
	color: #2563eb;
	font-weight: 600
}
.poi-popup {
	font-family: Arial;
	padding: 8px 12px;
	font-size: 14px;
	min-width: 160px;
}

.poi-title {
	font-weight: bold;
	margin-bottom: 6px;
	font-size: 15px;
}




/********** V2 **********/
.rtm-stop-anchor {
	position: relative;
	width: 0;
	height: 0;
	overflow: visible;
	pointer-events: none;
}

.rtm-stop-marker {
	--rtm-stop-accent: #6b7280;
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, calc(-100% - 12px));
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	max-width: 340px;
	padding: 7px 12px 7px 8px;
	border: 2px solid var(--rtm-stop-accent);
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.18);
	overflow: visible;
	white-space: nowrap;
	pointer-events: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: geometricPrecision;
}

.rtm-stop-marker--collection {
	--rtm-stop-accent: #16a34a;
}

.rtm-stop-marker--delivery {
	--rtm-stop-accent: #2563eb;
}

.rtm-stop-marker--default {
	--rtm-stop-accent: #6b7280;
}

.rtm-stop-marker__badge {
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--rtm-stop-accent);
	color: #ffffff;
	font: 700 12px/1 "Segoe UI", Arial, sans-serif;
}

.rtm-stop-marker__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rtm-stop-marker__title {
	max-width: 280px;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #111827;
	font: 700 12px/1.2 "Segoe UI", Arial, sans-serif;
}

.rtm-stop-marker__meta {
	max-width: 280px;
	margin-top: 1px;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #4b5563;
	font: 600 11px/1.2 "Segoe UI", Arial, sans-serif;
}

.rtm-stop-marker__status {
	max-width: 280px;
	margin-top: 1px;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #4b5563;
	font: 600 11px/1.2 "Segoe UI", Arial, sans-serif;
}

.rtm-stop-marker__pointer {
	position: absolute;
	left: 50%;
	bottom: -10px;
	width: 18px;
	height: 18px;
	transform: translateX(-50%) rotate(45deg);
	background: #ffffff;
	border-right: 2px solid var(--rtm-stop-accent);
	border-bottom: 2px solid var(--rtm-stop-accent);
	border-bottom-right-radius: 3px;
	box-shadow: 4px 4px 10px rgba(15, 23, 42, 0.06);
	pointer-events: none;
}
.rtm-cluster-popup {
	min-width: 280px;
	max-width: 360px;
}

.rtm-cluster-popup__header {
	padding: 0 0 8px 0;
	margin: 0 0 8px 0;
	border-bottom: 1px solid #e5e7eb;
	color: #111827;
	font: 700 13px/1.2 "Segoe UI", Arial, sans-serif;
}

.rtm-cluster-popup__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 280px;
	overflow-y: auto;
	padding-right: 4px;
}

.rtm-cluster-popup__row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
}

.rtm-cluster-popup__badge {
	flex: 0 0 auto;
	width: 50px;
	height: 25px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font: 700 11px/1 "Segoe UI", Arial, sans-serif;
}

.rtm-cluster-popup__body {
	min-width: 0;
	flex: 1 1 auto;
}

.rtm-cluster-popup__title {
	color: #111827;
	font: 700 12px/1.25 "Segoe UI", Arial, sans-serif;
	word-break: break-word;
}

.rtm-cluster-popup__tags {
	color: #8d8d8d;
	font: 0.7rem "Segoe UI", Arial, sans-serif;
	word-break: break-word;
	font-style: italic;
}

.rtm-cluster-popup__meta {
	margin-top: 2px;
	color: #4b5563;
	font: 600 11px/1.25 "Segoe UI", Arial, sans-serif;
	word-break: break-word;
}

/* The element HERE transforms — keep it empty/light */
.rtm-stop-anchor--gpu {
	will-change: transform;
	transform: translateZ(0);
}

/* The actual heavy UI — static, no transform */
.rtm-stop-marker--gpu {
	contain: layout paint style; /* isolate repaint */
	backface-visibility: hidden;
	pointer-events: auto;
}

/* Inner UI container – reduces transforms on siblings */
.rtm-stop-marker__inner {
	transform: translateZ(0);
}
