.escorts-map-page .escorts-map-intro {
	margin: 0.5rem auto 0;
	max-width: 42rem;
	color: #64748b;
	font-size: 1rem;
	line-height: 1.5;
}

.escorts-map-count {
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	color: #475569;
}

.escorts-map-container {
	max-width: 1280px;
	padding-bottom: 1rem;
}

.escorts-map-alert {
	margin-top: 1rem;
}

#escortsMapEmpty[hidden],
.escorts-map-shell[hidden] {
	display: none !important;
}

.escorts-map-shell {
	position: relative;
	width: 100%;
	margin-top: 0.75rem;
}

.escorts-map-canvas {
	width: 100%;
	height: min(78vh, 720px);
	min-height: 400px;
	border-radius: 0.85rem;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #e2e8f0;
	touch-action: pan-x pan-y pinch-zoom;
}

.escorts-map-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	border-radius: 0.85rem;
	background: rgba(248, 250, 252, 0.92);
	z-index: 2;
	font-size: 0.92rem;
	color: #475569;
}

.escorts-map-loader.is-hidden {
	display: none;
	pointer-events: none;
}

.escorts-map-card-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	border-radius: 0.85rem;
	background: rgba(248, 250, 252, 0.88);
	z-index: 4;
	font-size: 0.92rem;
	font-weight: 600;
	color: #475569;
	pointer-events: none;
}

.escorts-map-card-loader[hidden] {
	display: none !important;
}

.escorts-map-my-location {
	position: absolute;
	left: 0.85rem;
	bottom: 0.85rem;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.65rem;
	padding: 0.5rem 0.95rem;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.16);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	color: #2563eb;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.escorts-map-my-location i {
	font-size: 1rem;
}

.escorts-map-my-location:hover,
.escorts-map-my-location:focus {
	background: #eff6ff;
	color: #1d4ed8;
	outline: none;
}

.escorts-map-my-location.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.escorts-map-my-location.is-loading i {
	animation: escortsMapSpin 0.75s linear infinite;
}

@media (max-width: 768px) {
	.escorts-map-my-location {
		left: 0.65rem;
		bottom: 0.65rem;
		padding: 0.55rem 0.75rem;
		font-size: 0.82rem;
	}

	.escorts-map-my-location-label {
		display: none;
	}

	.escorts-map-my-location {
		width: 2.65rem;
		height: 2.65rem;
		min-height: 0;
		padding: 0;
		border-radius: 999px;
	}
}

.escorts-map-loader-spinner {
	width: 2rem;
	height: 2rem;
	border: 3px solid #fecaca;
	border-top-color: #dc2626;
	border-radius: 50%;
	animation: escortsMapSpin 0.75s linear infinite;
}

@keyframes escortsMapSpin {
	to { transform: rotate(360deg); }
}

.escorts-map-card {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	z-index: 3;
	width: min(100% - 1.7rem, 320px);
	max-height: calc(100% - 1.7rem);
	overflow: auto;
	background: #fff;
	border-radius: 0.85rem;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.escorts-map-card[hidden] {
	display: none !important;
}

.escorts-map-card-close {
	position: absolute;
	top: 0.35rem;
	right: 0.45rem;
	z-index: 2;
	border: 0;
	background: rgba(255, 255, 255, 0.92);
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	font-size: 1.35rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.escorts-map-card-inner {
	padding: 0.85rem;
}

.escorts-map-card-figure {
	position: relative;
	margin: 0 0 0.65rem;
	border-radius: 0.65rem;
	overflow: hidden;
}

.escorts-map-card-photo-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
	-webkit-appearance: none;
	appearance: none;
}

.escorts-map-card-photo-btn.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.escorts-map-card-figure .escorts-map-gallery-badge {
	right: 0.55rem;
	bottom: 0.55rem;
	width: 2rem;
	height: 2rem;
	font-size: 0.85rem;
}

.escorts-map-card-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.escorts-map-card-flag {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
}

.escorts-map-card-title {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.25;
}

.escorts-map-card-title a {
	color: inherit;
	text-decoration: none;
}

.escorts-map-card-type {
	margin: 0 0 0.45rem;
	font-size: 0.82rem;
	color: #64748b;
}

.escorts-map-card-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.55rem;
}

.escorts-map-card-contact .profile-badge {
	font-size: 0.82rem;
}

.escorts-map-card-badges {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 0.55rem;
}

.escorts-map-card-badges .profile-badge {
	font-size: 0.78rem;
}

.escorts-map-card-about {
	display: block;
	margin-bottom: 0.65rem;
	font-size: 0.82rem;
	line-height: 1.4;
}

.escorts-map-card-profile-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.85rem;
	font-size: 0.88rem;
	font-weight: 600;
}

.escorts-map-card-location {
	padding-top: 0.75rem;
	border-top: 1px solid #e2e8f0;
	font-size: 0.84rem;
	line-height: 1.45;
}

.escorts-map-card-location dt {
	margin: 0.35rem 0 0.1rem;
	font-weight: 600;
	color: #334155;
}

.escorts-map-card-location dd {
	margin: 0;
	color: #475569;
}

.escorts-map-directions-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.55rem 0.85rem;
	border: 0;
	border-radius: 0.55rem;
	background: #dc2626;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.escorts-map-directions-btn:hover {
	background: #b91c1c;
	color: #fff;
	text-decoration: none;
}

/* Compact popup — anchored next to marker via JS (.is-positioned) */
.escorts-map-card.is-compact {
	width: calc(100% - 2.4rem);
	max-width: 360px;
	max-height: none;
	overflow: visible;
	pointer-events: auto;
}

.escorts-map-card.is-compact.is-positioned {
	bottom: auto;
	right: auto;
	transform: none;
}

.escorts-map-card.is-compact:not(.is-positioned) {
	top: auto;
	bottom: 0.85rem;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

.escorts-map-card.is-compact .escorts-map-card-close {
	display: none !important;
}

.escorts-map-card.is-compact .escorts-map-card-inner {
	padding: 0.85rem 0.9rem 0.9rem;
}

.escorts-map-compact {
	display: block;
}

.escorts-map-compact-top {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
}

.escorts-map-compact-photo {
	position: relative;
	flex: 0 0 88px;
	width: 88px;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem;
	border-radius: 0.55rem;
	overflow: hidden;
	background: #f1f5f9;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.escorts-map-gallery-trigger {
	position: relative;
}

.escorts-map-gallery-trigger.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.escorts-map-gallery-badge {
	position: absolute;
	right: 0.3rem;
	bottom: 0.3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 0.72rem;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
	pointer-events: none;
}

.escorts-map-compact-photo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 118px;
	object-fit: contain;
	object-position: center;
}

.escorts-map-compact-body {
	min-width: 0;
	flex: 1 1 auto;
	overflow: visible;
	max-height: none;
}

.escorts-map-details {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 0.5rem;
	padding-top: 0.15rem;
	border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.escorts-map-detail-row {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0.55rem 0;
	font-size: 0.94rem;
	line-height: 1.35;
	min-width: 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.escorts-map-detail-row:last-child {
	border-bottom: 0;
	padding-bottom: 0.15rem;
}

.escorts-map-detail-label {
	flex: 0 0 5.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.2;
	white-space: nowrap;
}

.escorts-map-detail-label::after {
	content: ':';
	margin-left: 0.05rem;
}

.escorts-map-detail-value {
	min-width: 0;
	flex: 1 1 auto;
	color: #0f172a;
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.escorts-map-detail-value a {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.escorts-map-detail-value a:hover {
	color: #dc2626;
	text-decoration: none;
}

.escorts-map-detail-wa {
	color: #15803d !important;
}

.escorts-map-detail-wa:hover {
	color: #166534 !important;
}

.escorts-map-compact-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	padding-bottom: 0.15rem;
}

.escorts-map-compact-title {
	margin: 0;
	flex: 1 1 auto;
	font-size: 1.08rem;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #0f172a;
}

.escorts-map-compact-prefix {
	color: #dc2626;
	font-weight: 800;
}

.escorts-map-compact-flag.flag-icon {
	display: block;
	flex: 0 0 auto;
	width: 2.375rem;
	height: 1.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	line-height: 1.75rem;
	font-size: 1.75rem;
	box-shadow: none;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	align-self: center;
}

.escorts-map-compact-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.escorts-map-compact-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	min-height: 3.25rem;
	padding: 0.5rem 0.35rem;
	border-radius: 0.55rem;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #f8fafc;
	color: #334155;
	cursor: pointer;
}

.escorts-map-compact-btn i {
	font-size: 1.05rem;
}

.escorts-map-compact-btn.is-profile {
	background: #dc2626;
	border-color: #dc2626;
	color: #fff;
}

.escorts-map-compact-btn.is-route {
	background: #fff;
	color: #334155;
}

.escorts-map-compact-btn.is-close {
	background: #e2e8f0;
	color: #475569;
}

.escorts-map-compact-btn:active {
	transform: scale(0.98);
}

@media (min-width: 769px) {
	.escorts-map-card.is-compact {
		width: calc(100% - 3rem);
		max-width: 520px;
	}

	.escorts-map-card.is-compact:not(.is-positioned) {
		bottom: 1.15rem;
	}

	.escorts-map-card.is-compact .escorts-map-card-inner {
		padding: 1.1rem 1.15rem 1.1rem;
	}

	.escorts-map-compact-top {
		gap: 1rem;
	}

	.escorts-map-compact-photo {
		flex: 0 0 120px;
		width: 120px;
		min-height: 52px;
		padding: 0.35rem;
		border-radius: 0.65rem;
	}

	.escorts-map-compact-photo img {
		max-height: 168px;
	}

	.escorts-map-gallery-badge {
		width: 1.75rem;
		height: 1.75rem;
		font-size: 0.82rem;
	}

	.escorts-map-compact-title {
		font-size: 1.28rem;
	}

	.escorts-map-compact-flag.flag-icon {
		width: 3rem;
		height: 2.25rem;
		line-height: 2.25rem;
		font-size: 2.25rem;
	}

	.escorts-map-details {
		margin-top: 0.65rem;
		padding-top: 0.25rem;
	}

	.escorts-map-detail-row {
		padding: 0.65rem 0;
		font-size: 1.02rem;
		gap: 0.85rem;
	}

	.escorts-map-detail-label {
		flex-basis: 6.25rem;
		font-size: 0.84rem;
	}

	.escorts-map-detail-value {
		font-size: 1.02rem;
	}

	.escorts-map-compact-actions {
		gap: 0.6rem;
		margin-top: 0.85rem;
		padding-top: 0.85rem;
	}

	.escorts-map-compact-btn {
		min-height: 3.6rem;
		padding: 0.6rem 0.45rem;
		font-size: 0.92rem;
		border-radius: 0.65rem;
	}

	.escorts-map-compact-btn i {
		font-size: 1.2rem;
	}
}

@media (max-width: 768px) {
	.escorts-map-canvas {
		height: min(68vh, 620px);
		min-height: 360px;
	}
}
