.g15-london-map {
	position: relative;
	width: 100%;
	min-height: 500px;
	overflow: hidden;
}

.g15-london-map__map-area {
	position: relative;
	width: 100%;
}

.g15-london-map__canvas {
	width: 100%;
	height: 560px;
	border-radius: 4px;
	overflow: hidden;
}

.g15-london-map__labels {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	overflow: hidden;
}

.g15-london-map__label {
	position: absolute;
	transform: translate(
		calc(-50% + var(--label-offset-x, 0%)),
		calc(-50% + var(--label-offset-y, 0%))
	);
	font-family: "futura-pt", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: #ffffff;
	text-align: center;
	max-width: 120px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	white-space: normal;
}

.g15-london-map__label.is-hidden {
	display: none;
}

.g15-london-map--empty {
	padding: 1.5rem;
	background: #f5f5f5;
	border: 1px dashed #ccc;
}

.g15-london-map__legend {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.95);
	padding: 10px 12px;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	font-size: 12px;
	line-height: 1.4;
	max-width: calc(100% - 24px);
}

.g15-london-map__legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.g15-london-map__legend-item:last-child {
	margin-bottom: 0;
}

.g15-london-map__legend-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.g15-london-map__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1000;
}

.g15-london-map__panel {
	position: fixed;
	z-index: 1001;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.g15-london-map__panel-close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	z-index: 2;
}

.g15-london-map__panel-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	box-sizing: border-box;
}

.g15-london-map__panel-title {
	margin: 0 0 16px;
	font-size: 1.35rem;
	line-height: 1.2;
	padding-right: 32px;
	flex-shrink: 0;
}

.g15-london-map__panel-subtitle {
	margin: 0 0 12px;
	font-size: 1rem;
}

.g15-london-map__panel-carousel {
	flex: 1;
	min-height: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.g15-london-map__panel-carousel::-webkit-scrollbar {
	display: none;
}

.g15-london-map__panel-carousel-track {
	display: flex;
	height: 100%;
}

.g15-london-map__panel-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	overflow-y: auto;
	padding-right: 4px;
	box-sizing: border-box;
}

.g15-london-map__panel-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding-top: 16px;
	flex-shrink: 0;
}

.g15-london-map__panel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.g15-london-map__panel-arrow {
	display: none;
}

.g15-london-map__panel-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d0d0d0;
	cursor: pointer;
}

.g15-london-map__panel-dot.is-active {
	background: #480088;
}

.g15-london-map__panel-divider {
	margin: 20px 0;
	border: 0;
	border-top: 1px solid #e5e5e5;
}

.g15-london-map__panel-stats p {
	margin: 0 0 14px;
	
}

.g15-london-map__panel-stats p .stats-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-weight: 600;
	font-size: 20px;
	color: #6600CC;
	margin-right: 4px;
}

.g15-london-map__panel-stats p .stats-wrap .stats-icon {
	width: auto;
	height: 22px;
	fill: #6600CC;
	margin-right: 4px;
}

.g15-london-map__tooltip {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	margin-left: 4px;
	margin-bottom: 1px;
}

.g15-london-map__tooltip-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #480088;
	line-height: 0;
}

.g15-london-map__tooltip-icon,
.g15-london-map__tooltip-trigger svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.g15-london-map__tooltip-panel {
	display: none;
	position: fixed;
	width: min(260px, calc(100vw - 48px));
	padding: 12px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	font-size: 13px;
	line-height: 1.45;
	font-weight: normal;
	color: #333;
	z-index: 1002;
	text-align: left;
	pointer-events: auto;
}

.g15-london-map__tooltip-panel.is-visible {
	display: block;
}

.g15-london-map__panel-associations {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.g15-london-map__panel-associations li {
	margin-bottom: 6px;
	padding-left: 0;
	display: flex;
	justify-content: space-between;
}

.g15-london-map__panel-associations li span {
	display: block;
	margin: 0;
	padding: 0;
}

.g15-london-map__panel-associations li .percentages-wrap {
	font-weight: 600;
	color: #6600CC;
}

.g15-london-map__error {
	padding: 1rem;
	color: #a00;
}

.g15-london-map__attribution {
	margin: 8px 0 0;
	font-size: 11px;
	line-height: 1.4;
	color: #666;
}

/* Ensure no attribution overlay appears on the map canvas */
.g15-london-map .maplibregl-ctrl-attrib {
	display: none !important;
}

@media (max-width: 959px) {
	.g15-london-map__panel {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: min(92vw, 480px);
		max-height: 80vh;
		border-radius: 6px;
	}

	.g15-london-map__panel-content {
		max-height: calc(80vh - 48px);
	}
}

@media (min-width: 960px) {
	.g15-london-map {
		height: 90vh;
		min-height: 90vh;
	}

	.g15-london-map__map-area,
	.g15-london-map__canvas {
		height: 90vh;
	}

	.g15-london-map__panel {
		position: absolute;
		top: 3rem;
		right: 3rem;
		width: 400px;
		border: 1px solid #e5e5e5;
		overflow: hidden;
		border-radius: 6px;
	}

	.g15-london-map__panel[hidden] {
		display: none;
	}

	/*
	.g15-london-map--panel-open .g15-london-map__map-area {
		width: calc(100% - 360px);
	}
	*/

	.g15-london-map__panel-arrow {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
		color: #333;
		flex-shrink: 0;
	}

	.g15-london-map__panel-arrow svg {
		width: 22px;
		height: 22px;
		fill: currentColor;
	}

	.g15-london-map__panel-arrow--prev svg {
		transform: scaleX(-1);
	}

	.g15-london-map__panel-arrow:disabled {
		opacity: 0.25;
		cursor: not-allowed;
	}
}

@media (max-width: 959px) {
	.g15-london-map__overlay:not([hidden]) {
		display: block;
	}
}
