.mener-mapa-wrap {
	padding: 0 1rem 2rem;
}

.mener-mapa-app {
	display: grid;
	grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.mener-mapa-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.9rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	background: #fff;
	max-height: 720px;
	position: sticky;
	top: 1rem;
}

.mener-mapa-search,
.mener-mapa-select,
.mener-mapa-year {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	font-size: 0.875rem;
}

.mener-mapa-sidebar__filters {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.mener-mapa-sidebar__filters label {
	font-size: 0.75rem;
	font-weight: 700;
	color: #6b7280;
}

.mener-mapa-year-range {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.35rem;
	align-items: center;
}

.mener-mapa-check {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8125rem;
	color: #374151;
}

.mener-mapa-sidebar__count {
	margin: 0;
	font-size: 0.75rem;
	color: #6b7280;
}

.mener-mapa-catalog {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: auto;
	flex: 1;
	min-height: 180px;
}

.mener-mapa-catalog__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 0;
	border-bottom: 1px solid #f3f4f6;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.mener-mapa-catalog__item:hover,
.mener-mapa-catalog__item.is-active {
	background: #f0fdf4;
}

.mener-mapa-catalog__title {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #111827;
}

.mener-mapa-catalog__type {
	font-size: 0.6875rem;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mener-mapa-stage {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
}

.mener-mapa-stage:fullscreen {
	padding: 0.75rem;
	background: #fff;
}

.mener-mapa-stage:fullscreen #mener-mapa {
	min-height: calc(100vh - 140px);
}

.mener-mapa-stage.is-measuring #mener-mapa {
	cursor: crosshair;
}

.mener-mapa-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.mener-mapa-tool {
	padding: 0.4rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	color: #374151;
	cursor: pointer;
}

.mener-mapa-tool:hover,
.mener-mapa-tool.is-active,
.mener-mapa-tool[data-active="true"] {
	border-color: rgb(61 154 110 / 0.45);
	background: #f0fdf4;
	color: #166534;
}

.mener-mapa-measure-readout {
	margin-left: 0.35rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 0.75rem;
	font-weight: 700;
}

@media (max-width: 960px) {
	.mener-mapa-app {
		grid-template-columns: 1fr;
	}

	.mener-mapa-sidebar {
		position: static;
		max-height: none;
	}
}

.mener-mapa-stats {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--mener-texto-suave, #5f6368);
}

#mener-mapa {
	width: 100%;
	min-height: 520px;
	border-radius: 12px;
	z-index: 1;
	border: 1px solid #e0e0e0;
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.06);
}

.mener-mapa-layers {
	margin-top: 0.85rem;
	padding: 0.9rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	background: rgb(255 255 255 / 0.95);
}

.mener-mapa-layers__title {
	margin: 0 0 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
}

.mener-mapa-layers__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mener-mapa-layer {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f9fafb;
	font-size: 0.75rem;
	color: #6b7280;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
	user-select: none;
}

.mener-mapa-layer.is-active {
	border-color: rgb(61 154 110 / 0.35);
	background: #fff;
	color: #1f2937;
}

.mener-mapa-layer:not(.is-active) {
	opacity: 0.55;
}

.mener-mapa-layer__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mener-mapa-layer__marker {
	display: inline-block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.mener-mapa-layer__marker--project {
	border-radius: 50%;
	background: #2474c8;
}

.mener-mapa-layer__marker--protected_area {
	border-radius: 2px;
	background: #0d47a1;
}

.mener-mapa-layer__marker--institution {
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	background: #0f2b4a;
}

.mener-mapa-layer__marker--substation {
	transform: rotate(45deg);
	border-radius: 2px;
	background: #5ba3e0;
}

.mener-mapa-layer__marker--renewable {
	border-radius: 50%;
	background: #fff;
	border: 3px solid #d4a843;
	box-sizing: border-box;
}

.mener-mapa-layer__marker--grid {
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: #2474c8;
}

.mener-mapa-layer__marker--minigrid {
	clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
	background: #0f2b4a;
}

.mener-mapa-layer__marker--electrification {
	clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
	background: #5ba3e0;
}

.mener-mapa-layer__marker--efficiency {
	border-radius: 50% 50% 50% 0;
	transform: rotate(45deg);
	background: #d4a843;
}

/* Legado — camadas MAAC */
.mener-mapa-layer__marker--monitoring_air {
	transform: rotate(45deg);
	border-radius: 2px;
	background: #ef6c00;
}

.mener-mapa-layer__marker--monitoring_water {
	border-radius: 50%;
	background: #fff;
	border: 3px solid #0288d1;
	box-sizing: border-box;
}

.mener-mapa-layer__marker--wetland {
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: #00838f;
}

.mener-mapa-layer__marker--forest {
	clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
	background: #388e3c;
}

.mener-mapa-layer__marker--coastal {
	clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
	background: #5e35b1;
}

.mener-mapa-layer__marker--biodiversity {
	border-radius: 50% 50% 50% 0;
	transform: rotate(45deg);
	background: #7cb342;
}

.mener-mapa-layer__marker--route {
	width: 18px;
	height: 0;
	border-top: 3px dashed #3d9a6e;
	background: transparent;
}

.mener-mapa-layer__label {
	font-weight: 600;
}

/* Legado — manter estilos antigos caso existam */
.mener-mapa-legend {
	display: none;
}

/* Marcadores Leaflet */
.mener-map-marker {
	background: transparent;
	border: 0;
}

.mener-map-marker__core {
	display: block;
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.28);
}

.mener-map-marker--circle .mener-map-marker__core {
	border-radius: 50%;
}

.mener-map-marker--square .mener-map-marker__core {
	border-radius: 3px;
}

.mener-map-marker--star .mener-map-marker__core {
	width: 20px;
	height: 20px;
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.mener-map-marker--diamond .mener-map-marker__core {
	width: 16px;
	height: 16px;
	transform: rotate(45deg);
	border-radius: 2px;
}

.mener-map-marker--ring .mener-map-marker__core {
	border-radius: 50%;
	background: #fff !important;
	border: 3px solid currentColor;
	box-sizing: border-box;
}

.mener-map-marker--droplet .mener-map-marker__core {
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
}

.mener-map-marker--triangle .mener-map-marker__triangle {
	display: block;
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 16px solid #388e3c;
	filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.25));
}

.mener-map-marker__core--ring {
	background: #fff !important;
	border: 3px solid #0288d1;
	box-sizing: border-box;
	border-radius: 50%;
}

.mener-map-marker--triangle .mener-map-marker__core {
	display: none;
}

.mener-map-marker--hex .mener-map-marker__core {
	width: 18px;
	height: 18px;
	clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.mener-map-marker--pin .mener-map-marker__core {
	border-radius: 50% 50% 50% 0;
	transform: rotate(45deg);
}

.mener-map-route-label {
	background: transparent;
	border: 0;
}

.mener-map-route-label span {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.95);
	border: 1px solid rgb(61 154 110 / 0.35);
	box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
	font-size: 0.6875rem;
	font-weight: 700;
	color: #1f2937;
	white-space: nowrap;
}

/* Tooltip — legenda ao passar o rato */
.mener-map-tooltip {
	background: rgb(255 255 255 / 0.97) !important;
	border: 1px solid rgb(61 154 110 / 0.35) !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.12) !important;
	padding: 0.4rem 0.65rem !important;
	color: #1f2937 !important;
	pointer-events: none;
}

.leaflet-tooltip-top.mener-map-tooltip::before {
	border-top-color: rgb(61 154 110 / 0.35) !important;
}

.mener-map-tooltip__title {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
}

.mener-map-tooltip__type {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b7280;
}

/* Popup — detalhes ao clicar */
.mener-map-popup-wrap .leaflet-popup-content-wrapper {
	border-radius: 10px;
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.14);
}

.mener-map-popup-wrap .leaflet-popup-content {
	margin: 0.85rem 1rem;
	line-height: 1.45;
}

.mener-map-popup__heading {
	display: block;
	font-size: 0.9375rem;
	color: #111827;
}

.mener-map-popup__type {
	display: inline-block;
	margin-top: 0.2rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.mener-map-popup__meta {
	margin: 0.45rem 0 0;
	font-size: 0.8125rem;
	color: #374151;
}

.mener-map-popup__summary {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #374151;
}

.mener-map-popup__link {
	margin: 0.65rem 0 0;
	font-size: 0.8125rem;
}

.mener-map-popup__link a {
	color: var(--mener-verde, #21a0a0);
	font-weight: 700;
	text-decoration: none;
}

.mener-map-popup__link a:hover {
	text-decoration: underline;
}

.mener-projetos-destaque {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

/* Documentos — abas */
.mener-doc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 0.75rem;
}

.mener-doc-tabs button {
	border: 1px solid #e0e0e0;
	background: #fff;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	color: #424242;
}

.mener-doc-tabs button.is-active {
	background: var(--mener-verde, #3d9a6e);
	border-color: var(--mener-verde, #3d9a6e);
	color: #fff;
}

.mener-doc-panel {
	display: none;
}

.mener-doc-panel.is-active {
	display: block;
}

.mener-doc-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mener-doc-card {
	border: 1px solid #e0e0e0;
	background: #fff;
	padding: 1.25rem;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	min-height: 200px;
	display: flex;
	flex-direction: column;
}

.mener-doc-card h3 {
	margin: 0.75rem 0 0.5rem;
	font-size: 1.05rem;
	color: #212121;
}

.mener-doc-card p {
	flex: 1;
	font-size: 0.9rem;
	color: #5f6368;
	margin: 0 0 1rem;
}

.mener-doc-card a.mener-doc-link {
	color: var(--mener-azul, #046865);
	font-weight: 600;
	text-decoration: none;
}

.mener-doc-card a.mener-doc-link:hover {
	text-decoration: underline;
}

/* Concursos */
.mener-concurso-card {
	border: 1px solid #e0e0e0;
	background: #fff;
	border-radius: 8px;
	padding: 1.25rem;
	margin-bottom: 1rem;
}

.mener-concurso-card h2 {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.mener-concurso-card h2 a {
	color: var(--mener-azul, #046865);
	text-decoration: none;
}

.mener-badge--aberto { background: #e8f5e9; color: #2e7d32; }
.mener-badge--encerrado { background: #fce4ec; color: #c62828; }
.mener-badge--adjudicado { background: #e3f2fd; color: #1565c0; }
