/**
 * Nascentes da Crise — Motor de mapa único (CSS unificado).
 *
 * Consolida marcador/popup/painel do mapa da etapa e do mapa da home.
 * Classe base: .ndc-map. Aliases mantidos p/ transição: .ndc-map-home e
 * .ndc-etapa-map-canvas (esta última também estilizada em etapa.css).
 * Escopado para não vazar estilo.
 */

/* ---- Canvas base -------------------------------------------------------- */
.ndc-map {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	z-index: 0;
	background: #e9eef2;
}
.ndc-map .leaflet-container { font: inherit; }

/* Popup base do motor (título Sora + subtítulo Inter). */
.ndc-map .leaflet-popup-content-wrapper {
	border-radius: 14px;
	box-shadow: 0 12px 24px -8px rgba( 0, 0, 0, 0.25 );
}
.ndc-map .leaflet-popup-content {
	margin: 14px 16px;
	font-family: 'Inter', sans-serif;
	line-height: 1.4;
}
.ndc-map .leaflet-popup-tip { box-shadow: none; }

/* ---- Seção "O mapa da expedição" (home) ------------------------------- */
.ndc-map-home-section {
	background: #F8F9FA;
	padding: 96px 24px;
}
.ndc-map-home-inner {
	max-width: 1200px;
	margin: 0 auto;
}
.ndc-map-home-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}
.ndc-map-home-eyebrow {
	color: #2E7D6E;
	font-weight: 600;
	letter-spacing: 0.2em;
	font-size: 12px;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.ndc-map-home-title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 28px;
	color: #1E293B;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
	line-height: 1.15;
}
.ndc-map-home-subtitle {
	color: #64748B;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}
.ndc-map-home-panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 28px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
	padding: 12px;
}

/* Alias de dimensão do canvas da home. */
.ndc-map-home {
	height: 420px;
	border-radius: 20px;
	background: #dde7e4;
}

/* ---- Legenda / chips clicáveis ----------------------------------------- */
.ndc-map-home-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 28px;
}
.ndc-map-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 9999px;
	border: 1px solid #e5e7eb;
	background: #F8F9FA;
	font-size: 12px;
	font-weight: 600;
	color: #1E293B;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	line-height: 1.2;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ndc-map-chip:hover,
.ndc-map-chip:focus-visible {
	border-color: #2E7D6E;
	color: #2E7D6E;
	background: #fff;
	outline: none;
}
.ndc-map-chip-dot {
	width: 7px;
	height: 7px;
	border-radius: 9999px;
	background: #2E7D6E;
	flex: none;
}

/* ---- Fallback / etapa --------------------------------------------------- */
.ndc-etapa-map-fallback { color: #666; font-style: italic; }

@media ( max-width: 1024px ) {
	.ndc-map-home { height: 380px; }
}

@media ( max-width: 767px ) {
	.ndc-map-home-section { padding: 64px 16px; }
	.ndc-map-home { height: 300px; }
}
