/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

:root {
  color-scheme: light;
  --ink: #162a2b;
  --muted: #667575;
  --brand: #0c3b3a;
  --brand-2: #0f5b57;
  --aqua: #49c1b3;
  --paper: #f5f7f6;
  --line: #dce3e1;
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(18, 49, 48, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { min-width: 320px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(105deg, #092f2f 0%, #0e4946 65%, #12605a 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  position: relative;
  z-index: 10;
}
.brand-mark { width: 38px; height: 38px; display: grid; gap: 4px; transform: rotate(-8deg); }
.brand-mark span { display:block; height: 7px; border-radius: 8px; background: var(--aqua); }
.brand-mark span:nth-child(2) { width: 78%; margin-left: 7px; }
.brand-mark span:nth-child(3) { width: 55%; margin-left: 15px; }
.title-group { min-width: 0; }
.title-group h1 { margin: 0; font-size: 1.23rem; line-height: 1.2; letter-spacing: -.02em; }
.title-group p { margin: 4px 0 0; font-size: .82rem; color: #c2e1dd; }
.download-btn {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: white;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 650;
}
.download-btn:hover { background: rgba(255,255,255,.16); }

.analysis-panel { overflow-y: auto; background: #f4f7f6; border-left: 1px solid #d5dfdc; padding: 14px; scrollbar-width: auto; scrollbar-color: #78918d #edf2f1; }
.analysis-card { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 14px; box-shadow: 0 4px 16px rgba(17,45,44,.045); }
.analysis-card + .analysis-card { margin-top: 11px; }
.analysis-card h2 { font-size: 1.02rem; }
.analysis-card h3 { margin: 0; color: var(--ink); font-size: .94rem; line-height: 1.35; }
.analysis-intro { margin: 7px 0 13px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.analysis-card label { font-size: .82rem; }
.overlay-switch { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin-top: 11px; padding: 8px 9px; border-radius: 7px; background: #eef7f5; color: #244b48; }
.overlay-switch input { width: 17px; height: 17px; accent-color: var(--brand-2); }
.aforo-switch { background: #f0eef9; color: #493773; }
.aforo-switch input { accent-color: #5b3f99; }
.aforo-action { width: 100%; min-height: 42px; margin-top: 9px; border: 1px solid #6b51a6; border-radius: 8px; background: #5b3f99; color: #fff; font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.aforo-action:hover { background: #47317b; }
.aforo-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.aforo-kpis div { display: grid; gap: 5px; padding: 9px 10px; border: 1px solid #ded8ed; border-radius: 8px; background: #f5f3fa; }
.aforo-kpis span { color: #675b7f; font-size: .72rem; line-height: 1.2; }
.aforo-kpis strong { color: #4b337f; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.aforo-key { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: #615873; font-size: .72rem; line-height: 1.4; }
.aforo-key i { width: 42px; height: 8px; flex: 0 0 auto; margin-top: 4px; border: 2px solid #fff; border-radius: 5px; background: linear-gradient(90deg,#cbbcf1,#7557b4,#26094f); box-shadow: 0 0 0 1px #7557b4; }
.process-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.process-kpis div { min-height: 66px; padding: 9px 10px; display: grid; align-content: space-between; background: #f4f7f6; border: 1px solid #e0e7e5; border-radius: 8px; }
.process-kpis span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.process-kpis strong { color: var(--brand); font-size: 1.12rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.process-scope { margin: 10px 0 0; color: #506562; font-size: .74rem; line-height: 1.4; }
.process-bars { display: grid; gap: 9px; margin-top: 12px; }
.process-bar { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; display: grid; gap: 4px; }
.process-bar > span { display: flex; justify-content: space-between; gap: 8px; color: #344b48; font-size: .77rem; line-height: 1.25; }
.process-bar > span b { flex: 0 0 auto; color: var(--ink); font-size: .78rem; }
.process-bar > i { display: block; height: 8px; overflow: hidden; border-radius: 5px; background: #e7edeb; }
.process-bar > i > b { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--bar); }
.process-bar:hover > span, .process-bar.active > span { color: var(--brand); font-weight: 800; }
.process-bar.active > i { outline: 2px solid rgba(12,59,58,.22); outline-offset: 2px; }
.process-note { margin: 11px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.process-chart { height: 118px; margin-top: 8px; }
.process-chart svg { width: 100%; height: 100%; overflow: visible; }
.process-chart text { font-family: inherit; fill: #586b68; font-size: 11px; font-weight: 600; }
.process-sector { margin-top: 11px; }
.process-sector .bar-row > div { font-size: .77rem; }
.process-sector .bar-row > i { height: 7px; }
.process-method { font-size: .76rem; line-height: 1.45; color: #596966; }
.process-method summary { color: var(--brand); font-weight: 800; cursor: pointer; }
.photo-action { width: 100%; margin-top: 9px; min-height: 42px; border: 1px solid #1d837a; border-radius: 8px; background: #0c5551; color: white; font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.photo-action:hover { background: #083f3c; }
.photo-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 11px; }
.photo-kpis div { min-width: 0; padding: 8px; display: grid; gap: 5px; border: 1px solid #e0e7e5; border-radius: 7px; background: #f4f7f6; }
.photo-kpis span { color: var(--muted); font-size: .72rem; line-height: 1.2; }
.photo-kpis strong { color: var(--brand); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.photo-type-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.photo-type-item { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #d6e1df; border-radius: 16px; background: #fff; color: #405653; font: inherit; font-size: .75rem; cursor: pointer; }
.photo-type-item:hover { border-color: #63a9a1; background: #f0f8f6; }
.photo-type-item.active { border-color: #0c625d; background: #e5f3f0; color: #073c3a; font-weight: 800; box-shadow: inset 0 0 0 1px #0c625d; }
.photo-type-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px white, 0 0 0 3px color-mix(in srgb,var(--c) 55%,transparent); }
.photo-viewer { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(4,24,23,.66); backdrop-filter: blur(2px); }
.photo-viewer-card { position: relative; width: min(680px,calc(100% - 20px)); max-height: calc(100% - 20px); overflow: auto; padding: 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 13px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.34); }
.photo-viewer-close { position: absolute; top: 9px; right: 10px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #e8f1ef; color: #123f3c; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.photo-viewer-close:hover { background: #d4e7e3; }
.photo-viewer-meta { margin: 0 46px 3px 0; color: #60716f; font-size: .82rem; line-height: 1.4; }
.photo-viewer-card h2 { margin: 0 46px 13px 0; color: #0c3b3a; font-size: 1.18rem; }
.photo-viewer-media { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 9px; background: #142422; }
.photo-viewer-media img { display: block; width: 100%; max-height: 62vh; min-height: 260px; object-fit: contain; }
.photo-viewer-empty { width: 100%; margin: 0; padding: 70px 24px; text-align: center; background: #f7eee9; color: #8b4e38; font-size: .9rem; }
.photo-viewer-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 42px; height: 52px; border: 1px solid rgba(255,255,255,.58); border-radius: 8px; background: rgba(7,31,30,.78); color: white; font-size: 2rem; line-height: 1; cursor: pointer; }
.photo-viewer-nav:hover { background: rgba(7,31,30,.95); }
.photo-viewer-nav.prev { left: 10px; }
.photo-viewer-nav.next { right: 10px; }
.photo-viewer-count { min-height: 18px; margin: 9px 0 0; text-align: center; color: #60716f; font-size: .78rem; font-weight: 700; }
.land-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.land-action { width: 100%; min-height: 42px; margin-top: 9px; border: 1px solid #a76a10; border-radius: 8px; background: #8a5208; color: white; font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.land-action:hover { background: #6f4005; }
.land-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 11px; }
.land-kpis div { min-width: 0; padding: 8px; display: grid; gap: 5px; border: 1px solid #e7dfd1; border-radius: 7px; background: #fbf7ef; }
.land-kpis span { color: #766754; font-size: .72rem; line-height: 1.2; }
.land-kpis strong { color: #70430b; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.land-key-dot { width: 10px; height: 10px; display: inline-block; margin-right: 3px; transform: rotate(45deg); border: 1px solid #6f4005; background: #f2ad2f; }
.land-viewer { position: absolute; inset: 0; z-index: 11; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(28,22,12,.68); backdrop-filter: blur(2px); }
.land-viewer-card { position: relative; width: min(830px,calc(100% - 20px)); max-height: calc(100% - 20px); overflow: auto; display: grid; grid-template-columns: minmax(280px,.92fr) minmax(320px,1.08fr); border: 1px solid rgba(255,255,255,.45); border-radius: 13px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.34); }
.land-viewer-card.without-photo { width: min(560px,calc(100% - 20px)); grid-template-columns: minmax(0,1fr); }
.land-viewer-media { min-height: 390px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px 0 0 12px; background: #252117; }
.land-viewer-media[hidden] { display: none; }
.land-viewer-media img { display: block; width: 100%; height: 100%; min-height: 390px; max-height: 72vh; object-fit: contain; }
.land-viewer-content { padding: 24px 24px 22px; }
.land-viewer-content h2 { margin: 0 42px 5px 0; color: #35260f; font-size: 1.2rem; line-height: 1.35; }
.land-location { margin: 0 0 14px; color: #6b6257; font-size: .84rem; line-height: 1.45; }
.land-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.land-detail-grid div { display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #e7dfd1; border-radius: 8px; background: #fbf7ef; }
.land-detail-grid span { color: #786c5e; font-size: .72rem; }
.land-detail-grid strong { color: #563308; font-size: .92rem; }
.land-description { margin: 14px 0; color: #4e4a43; font-size: .84rem; line-height: 1.55; }
.land-source-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border-radius: 8px; background: #8a5208; color: #fff; font-size: .86rem; font-weight: 800; text-decoration: none; }
.land-source-link:hover { background: #6f4005; }


.workspace { height: calc(100vh - 74px); display: grid; grid-template-columns: 360px minmax(0, 1fr) 330px; overflow: hidden; }
.side-panel { overflow-y: auto; background: #f8faf9; border-right: 1px solid #d5dfdc; padding: 17px; scrollbar-width: auto; scrollbar-color: #78918d #edf2f1; }
.panel-section, .method-note { background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 16px; box-shadow: 0 4px 16px rgba(17, 45, 44, .045); }
.panel-section + .panel-section, .panel-section + .method-note, .kpi-grid + .panel-section { margin-top: 12px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-heading.compact { margin-bottom: 4px; }
.eyebrow { margin: 0 0 5px; color: var(--brand-2); text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; }
h2 { font-size: 1.08rem; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.icon-btn { border: 1px solid var(--line); border-radius: 7px; width: 34px; height: 34px; background: #f5f8f7; color: var(--brand); font-weight: 800; }
.icon-btn:hover { border-color: #9abeb9; background: #edf6f4; }

label { color: #526261; font-size: .88rem; font-weight: 700; display: grid; gap: 6px; }
.year-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 11px; }
.compare-section > label + label { margin-top: 10px; }
select, input[type="search"] { width: 100%; border: 1px solid #cbd7d4; border-radius: 7px; background: white; color: var(--ink); min-height: 43px; padding: 8px 11px; outline: none; font-size: .92rem; }
select:focus, input[type="search"]:focus { border-color: #2e8f86; box-shadow: 0 0 0 3px rgba(73,193,179,.18); }
.gap-note { margin: 10px 0 0; font-size: .82rem; line-height: 1.45; color: #7b6660; background: #fff7ee; border-left: 3px solid #e6a44b; padding: 8px 10px; border-radius: 3px; }
.scope-note { margin: 10px 0 0; font-size: .84rem; line-height: 1.45; color: #244b48; background: #eaf5f3; border-left: 3px solid #16877e; padding: 9px 10px; border-radius: 3px; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.kpi { min-height: 76px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; display: grid; align-content: space-between; }
.kpi span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.kpi strong { font-size: 1.42rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi.accent { background: var(--brand); border-color: var(--brand); color: white; }
.kpi.accent span { color: #b7d8d3; }

.chart { height: 150px; width: 100%; margin-top: 5px; }
.chart svg, .mini-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart text, .mini-chart text { font-family: inherit; fill: #586b68; font-size: 12px; font-weight: 600; }
.selected-section h2 { overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 6px 0 0; }
.selected-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.selected-numbers div { background: #f4f7f6; border-radius: 7px; padding: 8px; display: grid; gap: 3px; }
.selected-numbers span { font-size: .76rem; color: var(--muted); }
.selected-numbers strong { font-size: 1.05rem; }
.mini-chart { height: 67px; margin-top: 9px; }
.mini-chart.block-chart { height: 122px; margin-top: 13px; }
.year-value-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.year-value-grid[hidden] { display: none; }
.year-value-item { min-width: 0; padding: 6px 5px; border: 1px solid #dfe7e5; border-radius: 7px; background: #f7f9f8; text-align: center; }
.year-value-item span { display: block; color: #637572; font-size: .7rem; line-height: 1.1; }
.year-value-item strong { display: block; margin-top: 3px; color: #123f3c; font-size: .9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.year-value-item.missing { background: #fff8ef; border-style: dashed; }
.year-value-item.missing strong { color: #a56e27; font-size: .7rem; }
.stats-section h3 { margin: 18px 0 10px; color: var(--ink); font-size: .96rem; }
.bar-list { display: grid; gap: 11px; margin-top: 12px; }
.bar-row { display: grid; gap: 4px; }
.bar-row > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .84rem; line-height: 1.35; color: #344b48; }
.bar-row > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row > div strong { flex: 0 0 auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-row > i { display: block; height: 8px; overflow: hidden; border-radius: 4px; background: #e7edeb; }
.bar-row > i > b { display: block; height: 100%; min-width: 2px; border-radius: inherit; }
.compact-bars .bar-row > div { font-size: .82rem; }
.compact-bars .bar-row > i { height: 7px; }
.stats-scope { margin: 10px 0 14px; padding: 9px 10px; color: #36524e; font-size: .8rem; line-height: 1.5; background: #eef7f5; border-left: 3px solid #16877e; border-radius: 4px; }
.stats-scope strong { color: var(--brand); }
.stat-total { display: grid; gap: 3px; padding: 13px 14px; border-radius: 8px; background: #f2f7f6; border: 1px solid #dce8e5; }
.stat-total span { color: #506562; font-size: .82rem; }
.stat-total strong { color: var(--brand); font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.empty-stat { margin: 0; color: var(--muted); font-size: .84rem; }
.method-note { font-size: .86rem; line-height: 1.55; color: #596966; margin-top: 12px; }
.method-note summary { color: var(--brand); font-weight: 800; cursor: pointer; }
.method-note p:last-child { margin-bottom: 0; }

.map-panel { position: relative; min-width: 0; overflow: hidden; background: #edf1ef; }
#baseMap, #mapCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#baseMap { z-index: 1; background: #edf1ef; }
#mapCanvas { z-index: 2; display: block; pointer-events: none; }
#baseMap .leaflet-tile-pane { opacity: .86; filter: saturate(.76) contrast(.97) brightness(1.03); }
#baseMap .leaflet-control-attribution { font-size: 10px; color: #536461; background: rgba(255,255,255,.88); }
#baseMap .leaflet-control-attribution a { color: #176d67; }
.map-search { position: absolute; z-index: 4; left: 18px; top: 18px; width: min(350px, calc(100% - 160px)); display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(22,55,53,.15); border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.map-search span { font-size: 1.35rem; color: #3c625e; }
.map-search input { border: 0; box-shadow: none; background: transparent; min-height: 45px; padding-left: 0; font-size: .96rem; }
.map-mode { position: absolute; z-index: 4; left: 18px; top: 74px; display: flex; flex-wrap: wrap; max-width: calc(100% - 92px); padding: 3px; border: 1px solid rgba(22,55,53,.14); border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: 0 6px 20px rgba(18,49,48,.1); }
.map-mode button { border: 0; border-radius: 6px; padding: 9px 13px; background: transparent; color: #435754; font-size: .86rem; font-weight: 750; }
.map-mode button.active { background: var(--brand); color: white; }
.map-tools { position: absolute; z-index: 4; right: 18px; top: 18px; display: grid; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.map-tools button { width: 42px; height: 38px; border: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); color: var(--brand); font-size: 1.18rem; font-weight: 750; }
.map-tools button:last-child { border-bottom: 0; font-size: 1rem; }
.map-tools button:hover { background: #eaf5f2; }
.legend { position: absolute; z-index: 4; right: 18px; bottom: 42px; width: 306px; padding: 16px 17px; background: rgba(255,255,255,.97); border: 1px solid rgba(22,55,53,.14); border-radius: 11px; box-shadow: var(--shadow); }
.legend h2 { font-size: 1.02rem; margin-bottom: 12px; }
.legend-row { display: flex; gap: 10px; align-items: center; margin: 8px 0; color: #344b48; font-size: .88rem; line-height: 1.35; }
.legend i { width: 34px; height: 8px; flex: 0 0 auto; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 1px rgba(7,60,58,.12); }
.legend i.point-key { width: 11px; height: 11px; margin-left: 7px; margin-right: 11px; border-radius: 50%; box-shadow: 0 0 0 2px white, 0 0 0 3px rgba(7,60,58,.15); }
.legend-row.emphasis i { width: 32px; height: 7px; }
.legend-note { margin: 11px 0 0; color: #526663; font-size: .8rem; line-height: 1.45; }
.heat-key { height: 12px; border-radius: 6px; background: linear-gradient(90deg,#2aa799 0%,#43b86e 28%,#f6d245 53%,#ec842d 76%,#9d1830 100%); }
.heat-labels { display: flex; justify-content: space-between; margin-top: 5px; color: #526663; font-size: .78rem; }
.map-status { position: absolute; left: 18px; bottom: 15px; z-index: 4; color: #4b615e; background: rgba(246,249,248,.94); border-radius: 6px; padding: 6px 9px; font-size: .78rem; }
.map-tooltip { position: absolute; z-index: 6; pointer-events: none; max-width: 280px; padding: 11px 13px; border-radius: 8px; background: #102f2e; color: white; box-shadow: var(--shadow); font-size: .84rem; line-height: 1.45; }
.map-tooltip strong { display: block; margin-bottom: 3px; }
.map-tooltip.series-tooltip { width: 335px; max-width: calc(100% - 22px); padding: 13px 14px; }
.map-tooltip.series-tooltip > span { display: block; color: #d9e7e5; }
.block-tooltip-summary { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 8px; }
.block-tooltip-summary span { color: #fff; white-space: nowrap; }
.block-tooltip-summary b { font-variant-numeric: tabular-nums; }
.block-housing { margin: 7px 0 0; color: #d9e7e5; line-height: 1.35; }
.block-housing b { color: #fff; }
.block-tooltip-chart { height: 138px; margin-top: 9px; padding: 7px 8px 4px; border-radius: 7px; background: #fff; color: #304c49; }
.block-tooltip-chart small { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 700; }
.block-tooltip-chart svg { width: 100%; height: 112px; }
.block-tooltip-chart svg text { font-family: inherit; font-size: 11px; font-weight: 600; }
.map-tooltip.block-tooltip .block-tooltip-chart { height: 96px; margin-top: 8px; padding-top: 6px; }
.map-tooltip.block-tooltip .block-tooltip-chart svg { height: 72px; }
.housing-highlight { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin-top: 9px; padding: 8px 10px; border-left: 4px solid #f2c14e; border-radius: 7px; background: #f8efd8; color: #273f3c; }
.housing-highlight > b { color: #7a4b00; font-size: 1.72rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.housing-highlight > span { font-size: .76rem; font-weight: 750; line-height: 1.25; }
.housing-highlight small { display: block; margin-top: 2px; color: #725f3c; font-size: .69rem; font-weight: 650; }
.map-tooltip.aforo-tooltip { width: 310px; max-width: calc(100% - 22px); padding: 13px 14px; background: #251c3d; }
.aforo-tooltip-kicker { margin: 0 0 4px; color: #cfc3ee; text-transform: uppercase; letter-spacing: .07em; font-size: .68rem; font-weight: 800; }
.map-tooltip.aforo-tooltip > strong { margin: 0; font-size: 1.02rem; }
.map-tooltip.aforo-tooltip > span { display: block; color: #e4dff1; font-size: .78rem; }
.aforo-total { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: #f3effb; color: #332354; }
.aforo-total b { font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.aforo-total small { font-size: .72rem; font-weight: 750; }
.aforo-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.aforo-detail span { display: grid; gap: 1px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: #cfc8df; font-size: .67rem; }
.aforo-detail b { color: #fff; font-size: .86rem; font-variant-numeric: tabular-nums; }
.loading-card { position: absolute; z-index: 8; inset: 0; display: flex; align-items: center; justify-content: center; gap: 13px; background: #eef3f1; color: var(--brand); }
.compact-loader { inset: 128px auto auto 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 36px); padding: 13px 17px; border: 1px solid rgba(22,55,53,.14); border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.map-empty { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(360px,calc(100% - 48px)); padding: 18px 20px; text-align: center; border: 1px solid rgba(22,55,53,.15); border-radius: 11px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.map-empty strong { display: block; margin-bottom: 5px; color: var(--brand); font-size: 1rem; }
.map-empty span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
[hidden] { display: none !important; }
.loading-card div:last-child { display: grid; gap: 3px; }
.loading-card span { color: var(--muted); font-size: .78rem; }
.spinner { width: 28px; height: 28px; border: 3px solid #bad7d2; border-top-color: var(--brand-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

@media (max-width: 900px) {
  .workspace { height: auto; min-height: calc(100vh - 74px); grid-template-columns: 1fr; overflow: visible; }
  .side-panel { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .side-panel > * { margin: 0 !important; }
  .analysis-panel { border-left: 0; border-top: 1px solid var(--line); overflow: visible; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .analysis-panel > * { margin: 0 !important; }
  .compare-section, .kpi-grid { grid-column: span 2; }
  .map-panel { height: 68vh; min-height: 520px; }
}
@media (max-width: 620px) {
  .topbar { height: auto; min-height: 72px; padding: 12px 14px; }
  .brand-mark { width: 30px; height: 32px; }
  .title-group h1 { font-size: 1rem; }
  .download-btn { width: 42px; overflow: hidden; white-space: nowrap; padding: 8px 12px; }
  .download-btn span { margin-right: 20px; }
  .workspace { min-height: calc(100vh - 72px); }
  .side-panel { grid-template-columns: 1fr; padding: 11px; }
  .analysis-panel { grid-template-columns: 1fr; padding: 11px; }
  .compare-section, .kpi-grid { grid-column: auto; }
  .map-panel { height: 72vh; min-height: 480px; }
  .legend { left: 12px; right: auto; bottom: 40px; width: min(306px, calc(100% - 24px)); }
  .map-search { left: 12px; top: 12px; width: calc(100% - 74px); }
  .photo-viewer { padding: 8px; }
  .photo-viewer-card { width: 100%; max-height: calc(100% - 8px); padding: 13px; }
  .photo-viewer-media { min-height: 220px; }
  .photo-viewer-media img { min-height: 220px; max-height: 56vh; }
  .land-filter-grid { grid-template-columns: 1fr; }
  .land-viewer { padding: 8px; }
  .land-viewer-card { width: 100%; max-height: calc(100% - 8px); grid-template-columns: 1fr; }
  .land-viewer-media { min-height: 220px; max-height: 34vh; border-radius: 12px 12px 0 0; }
  .land-viewer-media img { min-height: 220px; max-height: 34vh; }
  .land-viewer-content { padding: 16px; }
  .map-mode { left: 12px; top: 66px; }
  .map-tools { right: 12px; top: 12px; }
  .map-status { display: none; }
}
@media (max-width: 620px) {
  .map-mode { right: 12px; max-width: none; display: grid; grid-template-columns: 1fr 1fr; }
  .map-mode button { padding: 7px 9px; }
  .compact-loader { top: 142px; }
}


/* Leyendas compactas para la revisión en pantalla */
.legend { right: 18px; left: auto; bottom: 42px; width: min(860px, calc(100% - 36px)); padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; }
.legend h2 { margin: 0; font-size: .86rem; white-space: nowrap; }
.legend-items.legend-linear { display: grid; grid-template-columns: repeat(8,minmax(62px,1fr)); gap: 8px; }
.legend-items.legend-linear .legend-row { display: grid; gap: 4px; margin: 0; min-width: 0; text-align: center; font-size: .68rem; line-height: 1.15; }
.legend-items.legend-linear .legend-row i, .legend-items.legend-linear .legend-row.emphasis i { width: 100%; height: 6px; }
.legend-items.legend-points { display: grid; grid-template-columns: repeat(5,minmax(90px,1fr)); gap: 6px 10px; }
.legend-items.legend-points .legend-row { margin: 0; font-size: .72rem; }
.legend-items.legend-points .legend-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: .7rem; }
.legend-items.legend-heat { min-width: 360px; }
.legend-items.legend-heat .legend-note { margin: 4px 0 0; font-size: .7rem; }
.process-legend { position: absolute; z-index: 4; right: 18px; bottom: 108px; width: min(860px, calc(100% - 36px)); padding: 9px 12px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; background: rgba(255,255,255,.97); border: 1px solid rgba(22,55,53,.14); border-radius: 10px; box-shadow: var(--shadow); }
.process-legend h2 { margin: 0; font-size: .84rem; white-space: nowrap; }
.process-legend-items { display: grid; grid-template-columns: repeat(9,minmax(58px,1fr)); gap: 7px; }
.process-legend-item { display: grid; gap: 4px; min-width: 0; text-align: center; color: #344b48; font-size: .67rem; line-height: 1.12; }
.process-legend-item i { display: block; width: 100%; height: 10px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(7,60,58,.16); }
.process-legend-item.dimmed { opacity: .3; }
.process-legend-item.active { color: var(--brand); font-weight: 800; }
.process-legend-item.active i { box-shadow: inset 0 0 0 2px #073c3a; }
.aforo-map-legend { position: absolute; z-index: 5; right: 18px; top: 146px; width: 188px; padding: 11px 12px; border: 1px solid rgba(46,25,82,.2); border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.aforo-map-legend h2 { margin: 0 0 9px; color: #342454; font-size: .82rem; }
.aforo-legend-row { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 9px; min-height: 25px; color: #4e465d; font-size: .72rem; font-weight: 700; }
.aforo-legend-row i { display: block; width: 46px; border: 2px solid white; border-radius: 5px; box-shadow: 0 0 0 1px rgba(48,22,89,.25); }
.aforo-class-1 { height: 4px; background: #cbbcf1; }
.aforo-class-2 { height: 5px; background: #9d85d5; }
.aforo-class-3 { height: 6px; background: #7557b4; }
.aforo-class-4 { height: 7px; background: #4f2f91; }
.aforo-class-5 { height: 9px; background: #26094f; }
@media (max-width: 1100px) {
  .legend-items.legend-linear { grid-template-columns: repeat(4,minmax(70px,1fr)); }
  .process-legend { bottom: 132px; }
  .process-legend-items { grid-template-columns: repeat(5,minmax(72px,1fr)); }
}
@media (max-width: 620px) {
  .legend { display: block; left: 12px; right: auto; bottom: 40px; width: min(420px,calc(100% - 24px)); padding: 10px; }
  .legend h2, .process-legend h2 { margin-bottom: 8px; }
  .legend-items.legend-linear { grid-template-columns: repeat(4,1fr); }
  .legend-items.legend-points { grid-template-columns: repeat(2,1fr); }
  .process-legend { display: block; left: 12px; right: auto; bottom: 170px; width: min(420px,calc(100% - 24px)); padding: 10px; }
  .process-legend-items { grid-template-columns: repeat(3,1fr); }
  .aforo-map-legend { right: 12px; top: 154px; width: 172px; }
}

#baseMap { background: #eef2f1; }
#baseMap .leaflet-control-container { display: none; }
#mapCanvas { background: transparent; }
.offline-badge { display:inline-flex; margin-left:8px; padding:2px 7px; border-radius:999px;
  background:#d8efeb; color:#074d48; font-size:.68rem; font-weight:800; vertical-align:middle; letter-spacing:.03em; }
