.cgp-live-location,
.cgp-map-dialog {
	--cgp-location-bg: #06150d;
	--cgp-location-surface: #10271a;
	--cgp-location-surface-2: #173421;
	--cgp-location-accent: #a7b253;
	--cgp-location-accent-2: #c4cf6b;
	--cgp-location-live: #31b96a;
	--cgp-location-text: #f4f7f1;
	--cgp-location-muted: #aab4ab;
	--cgp-location-line: rgba(167, 178, 83, 0.26);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.cgp-live-location {
	--cgp-location-map-height: 260px;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--cgp-location-line);
	border-radius: 8px;
	color: var(--cgp-location-text);
	background: var(--cgp-location-bg);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.cgp-live-location *,
.cgp-live-location *::before,
.cgp-live-location *::after,
.cgp-map-dialog *,
.cgp-map-dialog *::before,
.cgp-map-dialog *::after {
	box-sizing: inherit;
}

.cgp-live-location-header,
.cgp-live-location-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cgp-live-location-header {
	padding: 16px 18px;
	border-bottom: 1px solid var(--cgp-location-line);
	background: var(--cgp-location-surface);
}

.cgp-live-location-title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.cgp-live-location-icon {
	display: inline-flex;
	flex: 0 0 46px;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 8px;
	color: var(--cgp-location-bg);
	background: var(--cgp-location-accent);
	font-size: 25px;
}

.cgp-live-location-title > div {
	min-width: 0;
}

.cgp-live-location-title span:not(.cgp-live-location-icon) {
	display: block;
	margin-bottom: 2px;
	color: var(--cgp-location-accent-2);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.cgp-live-location-title h2 {
	margin: 0;
	color: var(--cgp-location-text);
	font-size: 25px;
	line-height: 1.15;
	letter-spacing: 0;
}

.cgp-live-location-state {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	color: var(--cgp-location-muted);
	font-size: 13px;
}

.cgp-live-location-state i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #6f7a70;
}

.cgp-live-location.is-live .cgp-live-location-state {
	color: var(--cgp-location-accent-2);
}

.cgp-live-location.is-live .cgp-live-location-state i {
	background: var(--cgp-location-live);
	box-shadow: 0 0 0 5px rgba(49, 185, 106, 0.16);
	animation: cgp-location-pulse 2s ease-out infinite;
}

.cgp-live-location.is-active.is-stale .cgp-live-location-state i {
	background: #e0a940;
}

.cgp-live-location-map {
	position: relative;
	height: var(--cgp-location-map-height);
	min-height: 220px;
	background: #dce3d7;
}

.cgp-live-location-map-canvas {
	width: 100%;
	height: 100%;
	z-index: 1;
}

.cgp-live-location .leaflet-container,
.cgp-map-dialog .leaflet-container {
	background: #aad3df;
}

.cgp-live-location-empty {
	position: absolute;
	z-index: 500;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	padding: 26px;
	color: var(--cgp-location-muted);
	text-align: center;
	background: var(--cgp-location-bg);
}

.cgp-live-location-empty[hidden] {
	display: none;
}

.cgp-live-location-empty .dashicons {
	width: 38px;
	height: 38px;
	margin-bottom: 9px;
	color: var(--cgp-location-accent);
	font-size: 38px;
}

.cgp-live-location-empty strong {
	color: var(--cgp-location-text);
	font-size: 17px;
}

.cgp-live-location-empty p {
	max-width: 480px;
	margin: 5px 0 0;
	font-size: 13px;
}

.cgp-live-location-footer {
	min-height: 58px;
	padding: 9px 12px 9px 16px;
	border-top: 1px solid var(--cgp-location-line);
	background: var(--cgp-location-surface);
}

.cgp-live-location-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	min-width: 0;
}

.cgp-live-location-meta > span {
	display: grid;
	gap: 1px;
	min-width: 0;
}

.cgp-live-location-meta small {
	color: var(--cgp-location-muted);
	font-size: 10px;
}

.cgp-live-location-meta strong {
	overflow: hidden;
	color: var(--cgp-location-text);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cgp-live-location-link {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 0 11px;
	border: 1px solid var(--cgp-location-line);
	border-radius: 7px;
	color: var(--cgp-location-text);
	background: var(--cgp-location-surface-2);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.cgp-live-location-link .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.cgp-live-location-link small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	color: var(--cgp-location-bg);
	background: var(--cgp-location-accent);
	font-size: 10px;
}

.cgp-live-location-link:hover,
.cgp-live-location-link:focus-visible {
	border-color: var(--cgp-location-accent);
	color: var(--cgp-location-bg);
	background: var(--cgp-location-accent);
}

.cgp-live-location-link:hover small,
.cgp-live-location-link:focus-visible small {
	background: var(--cgp-location-bg);
	color: var(--cgp-location-text);
}

.cgp-live-location .leaflet-control-zoom a,
.cgp-map-dialog .leaflet-control-zoom a {
	color: #183222;
}

.cgp-live-location .leaflet-control-attribution,
.cgp-map-dialog .leaflet-control-attribution {
	font-size: 9px;
}

.cgp-map-div-icon {
	border: 0;
	background: transparent;
}

.cgp-map-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(16, 39, 26, 0.3);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.cgp-map-cluster span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 3px solid #f7faf5;
	border-radius: 50%;
	color: #102419;
	background: var(--cgp-location-accent);
	font-size: 12px;
	font-weight: 900;
}

.cgp-map-pin {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 3px solid #f7faf5;
	border-radius: 50% 50% 50% 0;
	background: var(--cgp-location-accent);
	box-shadow: 0 4px 13px rgba(0, 0, 0, 0.36);
	transform: rotate(-45deg);
}

.cgp-map-pin.is-live {
	width: 34px;
	height: 34px;
	background: var(--cgp-location-live);
}

.cgp-map-pin b,
.cgp-map-pin i {
	display: block;
	transform: rotate(45deg);
}

.cgp-map-pin b {
	color: #102419;
	font-size: 15px;
	font-style: normal;
	line-height: 1;
}

.cgp-map-pin i {
	width: 10px;
	height: 10px;
	border: 3px solid #f7faf5;
	border-radius: 50%;
	background: #0a6d39;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.cgp-location-popup .leaflet-popup-content-wrapper,
.cgp-location-popup .leaflet-popup-tip {
	color: var(--cgp-location-text);
	background: var(--cgp-location-surface);
}

.cgp-location-popup .leaflet-popup-content-wrapper {
	overflow: hidden;
	border: 1px solid var(--cgp-location-line);
	border-radius: 7px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cgp-location-popup .leaflet-popup-content {
	width: auto !important;
	margin: 0;
}

.cgp-location-popup .leaflet-popup-close-button {
	top: 5px;
	right: 5px;
	width: 27px;
	height: 27px;
	border-radius: 50%;
	color: #102419;
	background: rgba(244, 247, 241, 0.9);
	font-size: 20px;
	line-height: 25px;
}

.cgp-location-popup-card {
	width: 270px;
	max-width: 100%;
}

.cgp-location-popup-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
}

.cgp-location-popup-body {
	padding: 12px 13px 13px;
}

.cgp-location-popup-place {
	display: block;
	margin-bottom: 3px;
	color: var(--cgp-location-accent-2);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.cgp-location-popup-body h3 {
	margin: 0;
	color: var(--cgp-location-text);
	font-size: 16px;
	line-height: 1.25;
	letter-spacing: 0;
}

.cgp-location-popup-body p {
	margin: 7px 0 0;
	color: var(--cgp-location-muted);
	font-size: 12px;
	line-height: 1.45;
}

.cgp-location-popup-link {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin-top: 11px;
	padding: 0 11px;
	border-radius: 5px;
	color: #102419 !important;
	background: var(--cgp-location-accent);
	font-size: 11px;
	font-weight: 800;
	text-decoration: none !important;
}

.cgp-location-live-popup {
	display: grid;
	gap: 3px;
	padding: 12px 13px;
}

.cgp-location-live-popup span {
	color: var(--cgp-location-live);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.cgp-location-live-popup strong {
	color: var(--cgp-location-text);
	font-size: 15px;
}

.cgp-location-live-popup small {
	color: var(--cgp-location-muted);
	font-size: 11px;
}

.cgp-map-dialog[hidden] {
	display: none;
}

.cgp-map-dialog {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 18px;
	color: var(--cgp-location-text);
}

.cgp-map-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 10, 6, 0.84);
	backdrop-filter: blur(6px);
}

.cgp-map-dialog-panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(1180px, 100%);
	height: min(860px, calc(100dvh - 36px));
	overflow: hidden;
	border: 1px solid var(--cgp-location-line);
	border-radius: 8px;
	background: var(--cgp-location-bg);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.cgp-map-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
	padding: 12px 16px 12px 20px;
	border-bottom: 1px solid var(--cgp-location-line);
	background: var(--cgp-location-surface);
}

.cgp-map-dialog-header > div {
	min-width: 0;
}

.cgp-map-dialog-header span {
	display: block;
	color: var(--cgp-location-accent-2);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.cgp-map-dialog-header h2 {
	margin: 2px 0 0;
	color: var(--cgp-location-text);
	font-size: 23px;
	line-height: 1.15;
	letter-spacing: 0;
}

.cgp-map-dialog-close {
	display: inline-flex;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--cgp-location-line) !important;
	border-radius: 7px;
	color: var(--cgp-location-text) !important;
	background: var(--cgp-location-surface-2) !important;
	cursor: pointer;
}

.cgp-map-dialog-close:hover,
.cgp-map-dialog-close:focus,
.cgp-map-dialog-close:focus-visible {
	border-color: var(--cgp-location-accent) !important;
	color: var(--cgp-location-bg) !important;
	background: var(--cgp-location-accent) !important;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(167, 178, 83, 0.2);
}

.cgp-map-dialog-close .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.cgp-map-dialog-canvas {
	width: 100%;
	height: 100%;
	min-height: 320px;
	background: #dce3d7;
}

.cgp-map-dialog-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	min-height: 48px;
	align-items: center;
	padding: 8px 18px;
	border-top: 1px solid var(--cgp-location-line);
	background: var(--cgp-location-surface);
}

.cgp-map-dialog-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cgp-location-muted);
	font-size: 11px;
}

.cgp-map-dialog-legend i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border: 2px solid #f7faf5;
	border-radius: 50%;
	color: #102419;
	background: var(--cgp-location-accent);
	font-size: 9px;
	font-style: normal;
	font-weight: 800;
}

.cgp-map-dialog-legend i.is-live {
	background: var(--cgp-location-live);
}

html.cgp-map-dialog-open,
html.cgp-map-dialog-open body {
	overflow: hidden;
}

@keyframes cgp-location-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(49, 185, 106, 0.3);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(49, 185, 106, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(49, 185, 106, 0);
	}
}

@media (max-width: 700px) {
	.cgp-live-location-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 9px;
		padding: 14px;
	}

	.cgp-live-location-title {
		gap: 10px;
	}

	.cgp-live-location-icon {
		flex-basis: 43px;
		width: 43px;
		height: 43px;
		font-size: 23px;
	}

	.cgp-live-location-title h2 {
		font-size: 23px;
	}

	.cgp-live-location-state {
		margin-left: 2px;
		font-size: 12px;
	}

	.cgp-live-location-map {
		height: min(var(--cgp-location-map-height), 260px);
	}

	.cgp-live-location-footer {
		flex-direction: row;
		gap: 8px;
		min-height: 56px;
		padding: 8px 9px 8px 13px;
	}

	.cgp-live-location-meta {
		flex: 1 1 auto;
		min-width: 0;
	}

	.cgp-live-location-meta > span:not(:first-child) {
		display: none;
	}

	.cgp-live-location-link {
		flex: 0 0 auto;
		min-height: 38px;
		padding: 0 9px;
	}

	.cgp-map-dialog {
		padding: 0;
	}

	.cgp-map-dialog-panel {
		width: 100%;
		height: 100dvh;
		border: 0;
		border-radius: 0;
	}

	.cgp-map-dialog-header {
		min-height: 66px;
		padding: max(10px, env(safe-area-inset-top)) 12px 10px 15px;
	}

	.cgp-map-dialog-header h2 {
		font-size: 20px;
	}

	.cgp-map-dialog-canvas {
		min-height: 0;
	}

	.cgp-map-dialog-legend {
		padding-right: max(14px, env(safe-area-inset-right));
		padding-bottom: max(8px, env(safe-area-inset-bottom));
		padding-left: max(14px, env(safe-area-inset-left));
	}
}

@media (prefers-reduced-motion: reduce) {
	.cgp-live-location.is-live .cgp-live-location-state i {
		animation: none;
	}
}
