/**
 * LNEG Atlas Biometano — interactive map styles.
 *
 * Loads via wp_enqueue_style() before Leaflet's own CSS (Leaflet is injected
 * at runtime by biometano-map.js only when the map is about to enter the
 * viewport), so nothing here may depend on `.leaflet-*` rules being present
 * yet — every Leaflet override below is written to win on its own.
 *
 */

.lneg-biometano-map {
	--lneg-map-green: #3ab880;
	--lneg-map-green-dark: #006141;
	--lneg-map-green-darker: #00503a;
	--lneg-map-green-tint: #e6f5ee;
	--lneg-map-text: #232323;
	--lneg-map-muted: #5f6b66;
	--lneg-map-border: #c8d1cf;
	--lneg-map-panel: #f5f7f6;
	--lneg-map-stage: #eef2f0;
	--lneg-map-grid: #e2e8e5;
	--lneg-map-alert: #d65a3a;
	--lneg-map-radius: 12px;
	--lneg-map-radius-control: 6px;

	/* Effective stage height. The shortcode puts `--lneg-map-height` on this
	   wrapper; every breakpoint that changes the stage height redefines this
	   token, never the stage `height` alone. */
	--lneg-map-canvas-height: max(var(--lneg-map-height, 640px), 320px);

	position: relative;
	z-index: 0;
	/* new stacking context: Leaflet's internal z-indexes
	   (panes/controls go up to ~1000) can never climb
	above the theme's sticky header (1020-1030). */
	isolation: isolate; 
	display: block;
	margin: 2rem 0;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: var(--lneg-map-radius, 12px);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(35, 35, 35, 0.04);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map *,
.lneg-biometano-map *::before,
.lneg-biometano-map *::after {
	box-sizing: border-box;
}

.lneg-biometano-map button,
.lneg-biometano-map input,
.lneg-biometano-map select {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
}

.lneg-biometano-map img {
	margin: 0;
}

.lneg-biometano-map__layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	grid-template-rows: auto auto minmax(0, 1fr);
	grid-template-areas:
		"scenario stage"
		"layers   stage"
		"legend   stage";
}

.lneg-biometano-map__scenario,
.lneg-biometano-map__layers,
.lneg-biometano-map__legend {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	background: var(--lneg-map-panel, #f5f7f6);
	border-right: 1px solid var(--lneg-map-border, #c8d1cf);
}

.lneg-biometano-map__scenario {
	grid-area: scenario;
	padding: 20px 20px 0;
}

.lneg-biometano-map__layers {
	grid-area: layers;
	padding: 20px 20px 0;
}

.lneg-biometano-map__legend {
	grid-area: legend;
	min-height: 0;
	overflow: auto;
	padding: 20px;
}

.lneg-biometano-map__stage {
	grid-area: stage;
	position: relative;
	min-width: 0;
	min-height: var(--lneg-map-canvas-height, 640px);
	overflow: hidden;
	background: var(--lneg-map-stage, #eef2f0);
}

.lneg-biometano-map__label {
	display: block;
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__fieldset {
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.lneg-biometano-map__options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lneg-biometano-map__option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: var(--lneg-map-radius-control, 6px);
	background: #fff;
	font-size: 13.5px;
	font-weight: 400;
	/* The names wrap rather than truncate: that is the whole point of the
	   radio group. */
	line-height: 1.3;
	color: var(--lneg-map-text, #232323);
	cursor: pointer;
}

.lneg-biometano-map .lneg-biometano-map__option input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	/* The theme sets a bare `input { min-height: 40px }`, and a min-height
	   beats a height: without this reset the dot renders as an ellipse. */
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.lneg-biometano-map .lneg-biometano-map__option input[type="radio"]:checked {
	border-color: var(--lneg-map-green, #3ab880);
	background: var(--lneg-map-green, #3ab880);
	box-shadow: inset 0 0 0 3px #fff;
}

.lneg-biometano-map__option input[type="radio"]:focus-visible {
	outline: 3px solid var(--lneg-map-green, #3ab880);
	outline-offset: 2px;
}

.lneg-biometano-map__option > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.lneg-biometano-map__option.is-selected,
.lneg-biometano-map__option:has(input:checked) {
	border-color: var(--lneg-map-green, #3ab880);
	background: var(--lneg-map-green-tint, #e6f5ee);
}

.lneg-biometano-map__toggles {
	display: grid;
	grid-auto-rows: 1fr;
	gap: 6px;
}

.lneg-biometano-map__toggle {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: var(--lneg-map-radius-control, 6px);
	background: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--lneg-map-text, #232323);
	cursor: pointer;
}

.lneg-biometano-map__toggle input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.lneg-biometano-map__toggle-text {
	flex: 1 1 auto;
	min-width: 0;
}

.lneg-biometano-map__switch {
	position: relative;
	flex: 0 0 auto;
	display: block;
	width: 36px;
	height: 20px;
	border-radius: 999px;
	background: var(--lneg-map-border, #c8d1cf);
	transition: background-color 0.15s ease;
}

.lneg-biometano-map__switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}

.lneg-biometano-map__toggle.is-on .lneg-biometano-map__switch,
.lneg-biometano-map__toggle:has(input:checked) .lneg-biometano-map__switch {
	background: var(--lneg-map-green, #3ab880);
}

.lneg-biometano-map__toggle.is-on .lneg-biometano-map__switch::after,
.lneg-biometano-map__toggle:has(input:checked) .lneg-biometano-map__switch::after {
	transform: translateX(16px);
}

.lneg-biometano-map__toggle input:focus-visible ~ .lneg-biometano-map__switch {
	outline: 3px solid var(--lneg-map-green, #3ab880);
	outline-offset: 2px;
}

.lneg-biometano-map .lneg-biometano-map__legend-toggle,
.lneg-biometano-map .lneg-biometano-map__legend-toggle:hover,
.lneg-biometano-map .lneg-biometano-map__legend-toggle:focus,
.lneg-biometano-map .lneg-biometano-map__legend-toggle:active {
	background: none;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map__legend-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.lneg-biometano-map__legend-heading {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__legend-strip,
.lneg-biometano-map__legend-toggle::after {
	display: none;
}

.lneg-biometano-map__legend-toggle:focus-visible {
	outline: 3px solid var(--lneg-map-green, #3ab880);
	outline-offset: 2px;
}

.lneg-biometano-map__legend-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lneg-biometano-map__legend-toggle[aria-expanded="false"] + .lneg-biometano-map__legend-body {
	display: none;
}

.lneg-biometano-map__legend-note {
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__legend-description {
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--lneg-map-muted, #5f6b66);
	overflow-wrap: anywhere;
}

.lneg-biometano-map__legend-scale {
	align-self: flex-start;
	padding: 2px 0px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--lneg-map-green-dark, #006141);
	white-space: nowrap;
}

.lneg-biometano-map__legend-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lneg-biometano-map__legend-group.is-overlays {
	gap: 6px;
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--lneg-map-border, #c8d1cf);
}

.lneg-biometano-map__legend-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 10px;
}

.lneg-biometano-map__legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 12px;
	line-height: 1.3;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map__legend-swatch {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	object-fit: cover;
}

.lneg-biometano-map__legend-label {
	min-width: 0;
	overflow-wrap: anywhere;
}

.lneg-biometano-map__canvas {
	position: absolute;
	inset: 0;
	/* Own stacking context. Without it Leaflet's panes (z 400) and controls
	   (z 800-1000) participate in the stage's context and paint above the
	   loader (5), banner (6) and activate pill (7). */
	z-index: 1;
}

/* Leaflet turns the canvas element *itself* into `.leaflet-container`, so this
   is a compound selector, not a descendant one — and it needs two classes to
   beat Leaflet's own `.leaflet-container { background: #ddd }`, which is
   injected after this file. Transparent so the stage's background (and its
   loading grid) shows through wherever the WMS has nothing to draw. */
.lneg-biometano-map .lneg-biometano-map__canvas {
	background: transparent;
	font-family: inherit;
	font-size: 13px;
}

.lneg-biometano-map[aria-busy="true"] .lneg-biometano-map__stage,
.lneg-biometano-map.is-error .lneg-biometano-map__stage {
	background-image:
		linear-gradient(var(--lneg-map-grid, #e2e8e5) 1px, transparent 1px),
		linear-gradient(90deg, var(--lneg-map-grid, #e2e8e5) 1px, transparent 1px);
	background-size: 24px 24px;
}

.lneg-biometano-map__loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	text-align: center;
	font-size: 13px;
	color: var(--lneg-map-muted, #5f6b66);
	pointer-events: none;
}

.lneg-biometano-map__loader p {
	margin: 0;
}

.lneg-biometano-map__spinner {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 3px solid var(--lneg-map-border, #c8d1cf);
	border-top-color: var(--lneg-map-green, #3ab880);
	animation: lneg-biometano-map-spin 1s linear infinite;
}

@keyframes lneg-biometano-map-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lneg-biometano-map__spinner {
		animation: none;
		border-top-color: var(--lneg-map-border, #c8d1cf);
		border-right-color: var(--lneg-map-green, #3ab880);
	}
}

.lneg-biometano-map [hidden] {
	display: none !important;
}

.lneg-biometano-map__search {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 4;
	width: 280px;
	max-width: calc(100% - 24px);
	font-size: 13px;
	line-height: 1.35;
}

.lneg-biometano-map__search-field {
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: var(--lneg-map-radius-control, 6px);
	background: #fff;
	box-shadow: 0 1px 2px rgba(35, 35, 35, 0.08);
}

.lneg-biometano-map__search-field::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-left: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235f6b66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.4 10.4L14 14'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 16px 16px;
}

.lneg-biometano-map .lneg-biometano-map__search-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 8px 0 10px;
	border: 0;
	border-radius: var(--lneg-map-radius-control, 6px);
	background: none;
	box-shadow: none;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.3;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map .lneg-biometano-map__search-input::placeholder {
	color: var(--lneg-map-muted, #5f6b66);
	opacity: 1;
}

.lneg-biometano-map .lneg-biometano-map__search-input:focus {
	outline: 0;
}

.lneg-biometano-map__search-field:focus-within {
	border-color: var(--lneg-map-green, #3ab880);
	box-shadow: 0 0 0 3px rgba(58, 184, 128, 0.25);
}

.lneg-biometano-map .lneg-biometano-map__search-clear,
.lneg-biometano-map .lneg-biometano-map__search-clear:hover,
.lneg-biometano-map .lneg-biometano-map__search-clear:focus,
.lneg-biometano-map .lneg-biometano-map__search-clear:active {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	margin: 0 5px 0 0;
	padding: 0;
	border: 0;
	border-radius: var(--lneg-map-radius-control, 6px);
	background: none;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: var(--lneg-map-muted, #5f6b66);
	cursor: pointer;
}

.lneg-biometano-map .lneg-biometano-map__search-clear:hover {
	background: var(--lneg-map-panel, #f5f7f6);
}

.lneg-biometano-map__search-clear:focus-visible {
	outline: 3px solid var(--lneg-map-green, #3ab880);
	outline-offset: -3px;
}

.lneg-biometano-map .lneg-biometano-map__search-list {
	max-height: 320px;
	margin: 6px 0 0;
	padding: 4px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: var(--lneg-map-radius-control, 6px);
	background: #fff;
	box-shadow: 0 8px 24px rgba(35, 35, 35, 0.12);
	list-style: none;
}

.lneg-biometano-map .lneg-biometano-map__search-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 36px;
	margin: 0;
	padding: 5px 8px;
	border-radius: 4px;
	list-style: none;
	cursor: pointer;
}

.lneg-biometano-map__search-option:hover,
.lneg-biometano-map__search-option.is-active {
	background: var(--lneg-map-green-tint, #e6f5ee);
}

.lneg-biometano-map__search-name {
	min-width: 0;
	overflow-wrap: anywhere;
}

.lneg-biometano-map__search-tag {
	flex: 0 0 auto;
	font-size: 11px;
	color: var(--lneg-map-muted, #5f6b66);
	white-space: nowrap;
}

.lneg-biometano-map__search-message {
	margin: 6px 0 0;
	padding: 8px 10px;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: var(--lneg-map-radius-control, 6px);
	background: #fff;
	font-size: 12px;
	line-height: 1.35;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__banner {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	z-index: 6;
	display: none;
	pointer-events: none;
}

.lneg-biometano-map__banner.is-visible {
	display: block;
}

.lneg-biometano-map__banner-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-left: 3px solid var(--lneg-map-alert, #d65a3a);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(35, 35, 35, 0.12);
	pointer-events: auto;
}

.lneg-biometano-map__banner-message {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map__banner-message::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16' fill='none' stroke='%23d65a3a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2l6.5 11.5H1.5L8 2zM8 6.5v3M8 12h.01'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 18px 18px;
}

.lneg-biometano-map__banner-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.lneg-biometano-map__banner-retry,
.lneg-biometano-map__banner-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	border-radius: var(--lneg-map-radius-control, 6px);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none !important;
}

.lneg-biometano-map__banner-retry {
	padding: 0 14px;
	border: 1px solid var(--lneg-map-text, #232323);
	background: var(--lneg-map-text, #232323);
	color: #fff !important;
}

.lneg-biometano-map__banner-retry:hover,
.lneg-biometano-map__banner-retry:focus {
	background: #000;
}

.lneg-biometano-map__banner-link {
	padding: 0 10px;
	border: 1px solid transparent;
	background: none;
	color: var(--lneg-map-green-dark, #006141) !important;
}

.lneg-biometano-map__banner-link::after {
	content: "";
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23006141' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3H3v10h10v-3M9 3h4v4M13 3L7 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 14px 14px;
}

.lneg-biometano-map__banner-retry:focus-visible,
.lneg-biometano-map__banner-link:focus-visible {
	outline: 3px solid var(--lneg-map-green, #3ab880);
	outline-offset: 2px;
}

@media (pointer: coarse) {
	.lneg-biometano-map__banner-retry,
	.lneg-biometano-map__banner-link {
		min-height: 44px;
	}
}

.lneg-biometano-map__activate {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 7;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: rgba(35, 35, 35, 0.86);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(35, 35, 35, 0.25);
}

.lneg-biometano-map__activate::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 8V3.5a1.5 1.5 0 013 0V7M9.5 7V6a1.5 1.5 0 013 0v4.5c0 2-1.5 3.5-3.5 3.5h-1c-1.2 0-2.2-.6-2.8-1.6L3.5 9.5a1.2 1.2 0 011.9-1.4L6.5 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 16px 16px;
}

.lneg-biometano-map__activate:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.lneg-biometano-map__cta {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-top: 1px solid var(--lneg-map-border, #c8d1cf);
	background: #fff;
}

.lneg-biometano-map__cta-content {
	flex: 1 1 auto;
	min-width: 0;
}

.lneg-biometano-map__cta-content strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map__cta-content p {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__cta-button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--lneg-map-radius-control, 6px);
	background: var(--lneg-map-green-dark, #006141) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

.lneg-biometano-map__cta-button:hover,
.lneg-biometano-map__cta-button:focus {
	background: var(--lneg-map-green-darker, #00503a) !important;
}

.lneg-biometano-map__cta-button:focus-visible {
	outline: 3px solid var(--lneg-map-green, #3ab880);
	outline-offset: 2px;
}

.lneg-biometano-map__cta-icon {
	flex: 0 0 auto;
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-container img {
	max-width: none;
	margin: 0;
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-container a {
	color: inherit;
}

/* Leaflet stacks the bottom-right corner in DOM order, which would put the
   attribution above the zoom pill; flex ordering restores the design. */
.lneg-biometano-map .lneg-biometano-map__stage .leaflet-bottom.leaflet-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	max-width: 100%;
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom {
	order: 1;
	margin: 0 16px 16px 0;
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: var(--lneg-map-radius-control, 6px);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(35, 35, 35, 0.06);
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom a.leaflet-control-zoom-in,
.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom a.leaflet-control-zoom-out {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 0;
	background: #fff;
	font-size: 18px;
	font-weight: 400;
	line-height: 40px;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom a.leaflet-control-zoom-in {
	border-bottom: 1px solid var(--lneg-map-border, #c8d1cf);
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom a:hover,
.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom a:focus {
	background: var(--lneg-map-panel, #f5f7f6);
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom a:focus-visible {
	outline: 3px solid var(--lneg-map-green, #3ab880);
	outline-offset: -3px;
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-attribution {
	order: 2;
	margin: 0 12px 12px 0;
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	max-width: 100%;
	font-size: 11px;
	line-height: 1.4;
	text-align: right;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-attribution a {
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-bottom.leaflet-left .leaflet-control-scale {
	margin: 0 0 16px 16px;
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-scale-line {
	padding: 0 0 2px;
	border: 1px solid var(--lneg-map-muted, #5f6b66);
	border-top: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: 11px;
	line-height: 1.3;
	color: var(--lneg-map-muted, #5f6b66);
	text-shadow: none;
}

@media (pointer: coarse) {
	.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom a.leaflet-control-zoom-in,
	.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom a.leaflet-control-zoom-out {
		width: 44px;
		height: 44px;
		line-height: 44px;
	}

	.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom {
		margin: 0 12px 12px 0;
	}

	.lneg-biometano-map .lneg-biometano-map__stage .leaflet-bottom.leaflet-left .leaflet-control-scale {
		margin: 0 0 12px 12px;
	}
}

.lneg-biometano-map .lneg-biometano-map__stage .lneg-biometano-map__popup .leaflet-popup-content-wrapper {
	border: 1px solid var(--lneg-map-border, #c8d1cf);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(35, 35, 35, 0.12);
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map .lneg-biometano-map__stage .lneg-biometano-map__popup .leaflet-popup-tip {
	border-right: 1px solid var(--lneg-map-border, #c8d1cf);
	border-bottom: 1px solid var(--lneg-map-border, #c8d1cf);
	background: #fff;
	box-shadow: none;
}

.lneg-biometano-map .lneg-biometano-map__stage .lneg-biometano-map__popup .leaflet-popup-content {
	margin: 14px 16px;
	max-height: 280px;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.4;
}

.lneg-biometano-map .lneg-biometano-map__stage .lneg-biometano-map__popup .leaflet-popup-close-button {
	width: 32px;
	height: 32px;
	padding: 8px 10px 0 0;
	font-size: 18px;
	font-weight: 400;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__popup-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lneg-biometano-map__popup-title {
	padding-right: 20px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map__popup-subtitle {
	margin-top: -8px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__popup-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--lneg-map-border, #c8d1cf);
}

.lneg-biometano-map__popup-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.lneg-biometano-map__popup-label {
	flex: 0 1 auto;
	min-width: 0;
	font-size: 12px;
	line-height: 1.3;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__popup-value {
	flex: 0 1 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-align: right;
	color: var(--lneg-map-text, #232323);
}

.lneg-biometano-map__popup-row.is-stacked {
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.lneg-biometano-map__popup-row.is-stacked .lneg-biometano-map__popup-value {
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 3px;
	text-align: left;
}

.lneg-biometano-map__popup-pair {
	flex: 0 0 auto;
	max-width: 100%;
	font-size: 12px;
	font-weight: 400;
	overflow-wrap: anywhere;
}

.lneg-biometano-map .lneg-biometano-map__stage .leaflet-container img.lneg-biometano-map__popup-swatch {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	object-fit: cover;
}

.lneg-biometano-map__popup-note {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.35;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__popup-empty {
	margin: 0;
	font-size: 13px;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__popup-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	color: var(--lneg-map-muted, #5f6b66);
}

.lneg-biometano-map__popup-loading::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--lneg-map-border, #c8d1cf);
	border-top-color: var(--lneg-map-green, #3ab880);
	animation: lneg-biometano-map-spin 1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.lneg-biometano-map__popup-loading::before {
		animation: none;
		border-top-color: var(--lneg-map-border, #c8d1cf);
		border-right-color: var(--lneg-map-green, #3ab880);
	}

	.lneg-biometano-map__switch,
	.lneg-biometano-map__switch::after {
		transition: none;
	}
}

@media (max-width: 767.98px) {
	.lneg-biometano-map {
		--lneg-map-canvas-height: max(min(var(--lneg-map-height, 640px), 70vh), 320px);
	}

	.lneg-biometano-map__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto auto;
		grid-template-areas:
			"scenario"
			"stage"
			"layers"
			"legend";
	}

	.lneg-biometano-map__scenario {
		gap: 6px;
		padding: 14px 14px 12px;
		border-right: 0;
		border-bottom: 1px solid var(--lneg-map-border, #c8d1cf);
	}

	.lneg-biometano-map__options {
		gap: 6px;
	}

	.lneg-biometano-map__layers,
	.lneg-biometano-map__legend {
		background: #fff;
		border-right: 0;
	}

	.lneg-biometano-map__layers {
		padding: 14px 14px 0;
	}

	.lneg-biometano-map__toggles {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.lneg-biometano-map__layers .lneg-biometano-map__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.lneg-biometano-map__toggle {
		flex: 0 0 auto;
		justify-content: flex-start;
		gap: 8px;
		min-height: 40px;
		/* Chips hug their text again; the equal-height grid is a desktop
		   concern only. */
		padding: 0 12px;
		border-radius: 999px;
		font-size: 13px;
		font-weight: 500;
	}

	.lneg-biometano-map__toggle.is-on,
	.lneg-biometano-map__toggle:has(input:checked) {
		border-color: var(--lneg-map-green, #3ab880);
		background: var(--lneg-map-green-tint, #e6f5ee);
		color: var(--lneg-map-green-dark, #006141);
	}

	.lneg-biometano-map__toggle.is-on::before,
	.lneg-biometano-map__toggle:has(input:checked)::before {
		content: "";
		flex: 0 0 auto;
		width: 14px;
		height: 14px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23006141' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-size: 14px 14px;
	}

	.lneg-biometano-map__toggle .lneg-biometano-map__switch {
		display: none;
	}

	.lneg-biometano-map__toggle input:focus-visible ~ .lneg-biometano-map__toggle-text {
		outline: 3px solid var(--lneg-map-green, #3ab880);
		outline-offset: 4px;
	}

	.lneg-biometano-map__search {
		top: 12px;
		left: 12px;
		width: calc(100% - 24px);
	}

	.lneg-biometano-map .lneg-biometano-map__search-list {
		max-height: 40vh;
	}

	.lneg-biometano-map__legend {
		gap: 0;
		padding: 14px;
	}

	.lneg-biometano-map__legend-toggle {
		justify-content: flex-start;
		min-height: 44px;
		padding: 0 12px;
		border: 1px solid var(--lneg-map-border, #c8d1cf);
		border-radius: var(--lneg-map-radius-control, 6px);
	}

	.lneg-biometano-map .lneg-biometano-map__legend-toggle,
	.lneg-biometano-map .lneg-biometano-map__legend-toggle:hover,
	.lneg-biometano-map .lneg-biometano-map__legend-toggle:focus,
	.lneg-biometano-map .lneg-biometano-map__legend-toggle:active {
		background: #fff;
	}

	.lneg-biometano-map__legend-heading {
		font-size: 14px;
		font-weight: 500;
		letter-spacing: 0;
		text-transform: none;
		color: var(--lneg-map-text, #232323);
	}

	.lneg-biometano-map__legend-strip {
		order: -1;
		display: flex;
		gap: 2px;
	}

	.lneg-biometano-map .lneg-biometano-map__stage .leaflet-container .lneg-biometano-map__legend-strip img,
	.lneg-biometano-map__legend-strip img {
		width: 8px;
		height: 14px;
		max-width: none;
		border-radius: 0;
		object-fit: cover;
	}

	.lneg-biometano-map__legend-toggle::after {
		content: "";
		display: block;
		flex: 0 0 auto;
		width: 16px;
		height: 16px;
		margin-left: auto;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235f6b66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-size: 16px 16px;
		transition: transform 0.15s ease;
	}

	.lneg-biometano-map__legend-toggle[aria-expanded="true"]::after {
		transform: rotate(180deg);
	}

	.lneg-biometano-map__legend-body {
		max-height: 40vh;
		padding-top: 12px;
	}

	.lneg-biometano-map__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 0 14px 14px;
		border-top: 0;
	}

	.lneg-biometano-map__cta-button {
		order: 1;
		justify-content: center;
		min-height: 48px;
		font-size: 15px;
	}

	.lneg-biometano-map__cta-content {
		order: 2;
		text-align: center;
	}

	.lneg-biometano-map__cta-content strong {
		display: none;
	}

	.lneg-biometano-map__cta-content p {
		margin: 0;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lneg-biometano-map__legend-toggle::after {
		transition: none;
	}
}

@media print {
	.lneg-biometano-map {
		box-shadow: none;
		border-color: #999;
	}

	.lneg-biometano-map__loader,
	.lneg-biometano-map__banner,
	.lneg-biometano-map__activate {
		display: none !important;
	}

	.lneg-biometano-map__stage {
		height: 400px !important;
		min-height: 400px !important;
	}

	.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-zoom {
		display: none !important;
	}

	.lneg-biometano-map .lneg-biometano-map__stage .leaflet-control-attribution {
		display: block !important;
	}
}

.lneg-biometano-map .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
	word-break: normal;
}
