.mcr-map-shell {
	scroll-margin-top: calc(80px + var(--mcr-live-banner-height, 0px));
	padding: 16px;
	border: 1px solid rgba(255,255,255,.14);
	background: linear-gradient(145deg, rgba(22,23,27,.96), rgba(6,7,9,.98));
	box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.mcr-ride-status {
	display: flex;
	min-height: 42px;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 9px 13px;
	border: 1px solid rgba(255,255,255,.18);
	background: #0b0c0e;
	color: #d7d3cb;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .055em;
	text-transform: uppercase;
}
.mcr-ride-status__dot {
	width: 11px;
	height: 11px;
	flex: 0 0 11px;
	border-radius: 50%;
	background: #8c8f96;
	box-shadow: 0 0 0 3px rgba(140,143,150,.16);
}
.mcr-ride-status.is-live {
	border-color: rgba(214,31,44,.75);
	background: rgba(214,31,44,.16);
	color: #fff;
}
.mcr-ride-status.is-live .mcr-ride-status__dot {
	background: #d61f2c;
	box-shadow: 0 0 0 3px rgba(214,31,44,.24);
	animation: mcr-live-ride-pulse 1.4s ease-out infinite;
}
.mcr-ride-status.is-error {
	border-color: rgba(245,200,76,.45);
	color: #f5c84c;
}
.mcr-ride-status.is-error .mcr-ride-status__dot { background: #f5c84c; }
.mcr-map-app-controls {
	position: absolute;
	right: 14px;
	top: 50%;
	z-index: 900;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 4px;
	padding: 6px 4px;
	transform: translateY(-50%);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 28px;
	background: rgba(17,18,22,.96);
	box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.mcr-map-app-control {
	position: relative;
	display: block;
}
.mcr-map-app-control[hidden] { display: none !important; }
.mcr-map-app-icon {
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
}
.mcr-map-app-icon:hover,
.mcr-map-app-icon:focus-visible,
.mcr-map-app-icon.is-active,
.mcr-map-app-icon.is-selected { background: #d61f2c; color: #fff; }
.mcr-map-app-menu {
	position: absolute;
	right: 52px;
	top: 50%;
	z-index: 910;
	width: max-content;
	min-width: 205px;
	padding: 6px;
	transform: translateY(-50%);
	border: 1px solid rgba(255,255,255,.32);
	border-radius: 4px;
	background: rgba(17,18,22,.98);
	box-shadow: 0 14px 38px rgba(0,0,0,.6);
}
.mcr-map-app-menu[hidden] { display: none !important; }
.mcr-map-mode {
	display: flex;
	width: 100%;
	min-height: 40px;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 8px 34px;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: #eee9df;
	font-size: .84rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}
.mcr-map-mode:hover,
.mcr-map-mode:focus-visible { background: rgba(255,255,255,.09); color: #fff; }
.mcr-map-mode.is-active {
	position: relative;
	background: rgba(214,31,44,.2);
	color: #fff;
}
.mcr-map-mode.is-active::before { position: absolute; left: 12px; content: "✓"; color: #fff; font-weight: 900; }
.mcr-map-mode:disabled {
	color: #6f6d69;
	cursor: not-allowed;
	opacity: .58;
}
@keyframes mcr-live-ride-pulse {
	0% { box-shadow: 0 0 0 0 rgba(214,31,44,.55); }
	70%, 100% { box-shadow: 0 0 0 8px rgba(214,31,44,0); }
}
.mcr-map-toolbar {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 14px;
}
.mcr-map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.mcr-map-filter {
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 0;
	background: #0b0c0e;
	color: var(--marker, #d61f2c);
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}
.mcr-map-filter:hover,
.mcr-map-filter:focus-visible,
.mcr-map-filter.is-active {
	border-color: #d61f2c;
	background: #d61f2c;
	color: #fff;
}
.mcr-map-search {
	display: flex;
	width: min(340px, 100%);
	min-height: 42px;
	align-items: center;
	gap: 10px;
	padding: 0 13px;
	border: 1px solid rgba(255,255,255,.22);
	background: #07080a;
	color: #d61f2c;
}
.mcr-map-search input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
}
.mcr-map-search input::placeholder { color: #96928b; }
.mcr-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	padding: 0 0 14px;
	color: #c9c5bd;
	font-size: .82rem;
}
.mcr-map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mcr-map-legend i { width: 10px; height: 10px; border-radius: 50%; background: #8c8f96; }
.mcr-map-legend i.is-upcoming { background: #f5c84c; }
.mcr-map-legend i.is-current { background: #d61f2c; }
.mcr-map-legend b { width: 23px; height: 4px; background: #d61f2c; }
.mcr-map-stage { position: relative; width: 100%; overflow: hidden; border-radius: 4px; }
.mcr-map { width: 100%; min-height: 620px; background: #141518; }
.leaflet-popup-pane { z-index: 1000 !important; }
.leaflet-control-attribution {
	padding: 1px 4px !important;
	background: rgba(10,11,13,.72) !important;
	color: rgba(255,255,255,.82) !important;
	font-size: 8px !important;
	line-height: 1.35 !important;
}
.leaflet-control-attribution a { color: inherit !important; }
.mcr-map-stage:fullscreen,
.mcr-map-stage:-webkit-full-screen {
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
	background: #141518;
}
.mcr-map-stage.mcr-map--fullscreen-fallback {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483647 !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	aspect-ratio: auto !important;
	background: #141518;
}
body.mcr-map-body-fullscreen { overflow: hidden !important; }
.mcr-map-stage:fullscreen .mcr-map,
.mcr-map-stage:-webkit-full-screen .mcr-map,
.mcr-map-stage.mcr-map--fullscreen-fallback .mcr-map {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	aspect-ratio: auto !important;
}
.mcr-map-count { margin: 12px 0 0; color: #aaa69f; font-size: .83rem; text-align: right; }
.mcr-map-marker { border: 0; background: transparent; }
.mcr-map-pin {
	position: relative;
	display: block;
	width: 26px;
	height: 33px;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
}
.mcr-map-pin__shape {
	position: absolute;
	inset: 0;
	display: block;
	width: 26px;
	height: 33px;
	overflow: visible;
}
.mcr-map-pin__shape .mcr-map-pin__body {
	fill: var(--marker, #d61f2c);
	stroke: #fff;
	stroke-width: 4;
	stroke-linejoin: round;
}
.mcr-map-pin__icon {
	pointer-events: none;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip { background: #111216; color: #fff; }
.leaflet-popup-content-wrapper { border: 1px solid rgba(255,255,255,.16); border-radius: 2px; box-shadow: 0 18px 45px rgba(0,0,0,.52); }
.leaflet-popup-close-button { color: #fff !important; }
.mcr-map-popup { min-width: 220px; max-width: 290px; font-family: sans-serif; }
.mcr-map-popup img { width: 100%; max-height: 145px; object-fit: cover; margin-bottom: 9px; }
.mcr-map-popup small { color: #f5c84c; font-weight: 700; text-transform: uppercase; }
.mcr-map-popup h3 { margin: 7px 0; color: #fff; font-size: 1.25rem; line-height: 1; text-transform: uppercase; }
.mcr-map-popup p { margin: 8px 0; color: #ccc; }
.mcr-map-popup__description { white-space: pre-line; }
.mcr-map-popup__directions { margin: 10px 0; border: 1px solid #555; border-radius: 8px; background: #15171a; color: #ddd; }
.mcr-map-popup__directions summary { padding: 9px 10px; color: #fff; font-weight: 800; cursor: pointer; }
.mcr-map-popup__directions ol { max-height: 230px; margin: 0; padding: 0 12px 10px 34px; overflow: auto; }
.mcr-map-popup__directions li { margin: 0 0 7px; padding-left: 2px; line-height: 1.3; }
.mcr-map-popup__directions li small { display: block; color: #f5c84c; }
.mcr-map-popup .mcr-map-popup__address {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	color: #fff;
	font-weight: 700;
}
.mcr-map-popup__address i { margin-top: 3px; color: #d61f2c; }
.mcr-map-popup a { color: #fff; font-weight: 800; text-underline-offset: 4px; }
.mcr-public-rider-marker { border: 0; background: transparent; }
.mcr-live-destination-marker { border: 0; background: transparent; }
.mcr-live-destination {
	position: relative;
	display: grid;
	width: 38px;
	height: 48px;
	place-items: center;
	filter: drop-shadow(0 3px 5px rgba(0,0,0,.7));
}
.mcr-live-destination svg { display: block; width: 38px; height: 48px; overflow: visible; }
.mcr-live-destination__body { fill: #d61f2c; stroke: #fff; stroke-width: 2.5; }
.mcr-live-destination__flag { fill: #fff; }
.mcr-live-rider {
	display: flex;
	width: 220px;
	height: 132px;
	align-items: center;
	flex-direction: column;
	justify-content: flex-end;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,.68));
	pointer-events: auto;
}
.mcr-live-rider__bubble {
	box-sizing: border-box;
	max-width: 216px;
	padding: 7px 11px;
	border: 2px solid var(--rider-color);
	border-radius: 8px;
	background: rgba(10,12,11,.95);
	color: #fff;
	font: 800 12px/1.25 Arial, sans-serif;
	text-align: center;
	white-space: normal;
}
.mcr-live-rider__bubble strong,
.mcr-live-rider__bubble span { display: inline; color: inherit; }
.mcr-live-rider__bubble span { font-size: 10px; letter-spacing: .04em; }
.mcr-live-rider__connector {
	display: block;
	width: 2px;
	height: 31px;
	flex: 0 0 31px;
	background: var(--rider-color);
}
.mcr-live-rider__pin {
	display: grid;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	place-items: center;
	border: 3px solid #000;
	border-radius: 50%;
	background: var(--rider-color);
	box-shadow: inset 0 0 0 3px #fff;
}
.mcr-live-rider__pin svg {
	display: block;
	width: 27px;
	height: 22px;
	fill: #fff;
}
.mcr-live-rider__leader-logo {
	display: block;
	width: 30px;
	height: 30px;
	background: url('mcr-leader-logo.png') center / contain no-repeat;
}
@media (max-width: 700px) {
	.mcr-map-shell { padding: 10px; }
	.mcr-ride-status {
		min-height: 38px;
		margin-bottom: 10px;
		padding: 7px 10px;
		font-size: .7rem;
		letter-spacing: .035em;
	}
	.mcr-map-app-controls { right: 50%; top: auto; bottom: 10px; flex-direction: row; transform: translateX(50%); }
	.mcr-map-app-menu { right: 50%; top: auto; bottom: 52px; transform: translateX(50%); }
	.mcr-map-toolbar { align-items: stretch; flex-direction: column; }
	.mcr-map-filters {
		display: grid;
		width: 100%;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 4px;
	}
	.mcr-map-filter {
		min-width: 0;
		min-height: 34px;
		padding: 6px 3px;
		font-size: .68rem;
		letter-spacing: .025em;
		white-space: nowrap;
	}
	.mcr-map-search { width: 100%; }
	.mcr-map {
		width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: 1 / 1;
	}
	.mcr-map .leaflet-control-container {
		transition: opacity .12s ease;
	}
	.mcr-map.mcr-map--popup-open .leaflet-control-container {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}
	.leaflet-popup {
		max-width: calc(100vw - 28px) !important;
	}
	.leaflet-popup-content-wrapper {
		max-width: calc(100vw - 28px);
	}
	.leaflet-popup-content {
		box-sizing: border-box;
		width: min(380px, calc(100vw - 112px)) !important;
		min-width: 0;
		max-width: none;
		max-height: min(44vh, 260px);
		margin: 12px 30px 12px 12px;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.leaflet-popup-close-button {
		z-index: 4;
		width: 34px !important;
		height: 34px !important;
		font-size: 25px !important;
		line-height: 30px !important;
	}
	.mcr-map-popup {
		min-width: 0;
		max-width: none;
	}
	.mcr-map-popup img {
		max-height: 92px;
	}
	.mcr-map-popup h3 {
		font-size: 1.05rem;
	}
	.mcr-map-popup p {
		margin: 6px 0;
		font-size: .9rem;
		line-height: 1.35;
	}
}
@media (orientation: portrait) {
	.mcr-map-app-controls { right: 50%; top: auto; bottom: 10px; flex-direction: row; transform: translateX(50%); }
	.mcr-map-app-menu { right: 50%; top: auto; bottom: 52px; transform: translateX(50%); }
}
@media (orientation: landscape) {
	.mcr-map-app-controls { right: 12px; top: 50%; bottom: auto; flex-direction: column; transform: translateY(-50%); }
	.mcr-map-app-menu { right: 52px; top: 50%; bottom: auto; transform: translateY(-50%); }
}
