@charset "UTF-8";

.mapa-home {
	background: linear-gradient(to bottom, #eaf5f9 0%, #f3fafc 50%, #f9f9f9 100%);
	padding: 130px 0 40px 0;
	min-height: 100vh;
}
.mapa-home-linha {
	display: flex;
  	flex-direction: row;	
  	justify-content: left;	
  	align-items: center;
	gap: 20px;	
}

.mapa-home-topo {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.mapa-home-kicker {
	font-family: inter-bold;
	font-size: 10pt;
	color: white;
	background-color: #1503eb;
	border-radius: 5px;
	padding: 6px 8px;
	display: inline-block;
	margin: 0 0 14px 0;
}

.mapa-home-titulo {
	font-family: inter-bold;
	margin: 0 0 12px 0;
	font-size: 34pt;
	color: #001F3F;
	line-height: 1.1;
}

.mapa-home-subtitulo {
	font-family: inter-regular;
	margin: 0;
	font-size: 14pt;
	color: #001F3F;
	line-height: 1.5;
	max-width: 760px;
}

.mapa-home-btn {
	border: 0;
	background: #1503eb;
	color: #ffffff;
	border-radius: 10px;
	padding: 12px 16px;
	font-family: inter-bold;
	font-size: 10pt;
	cursor: pointer;
	display: none;
	flex-shrink: 0;
}

.mapa-home-btn.is-visible {
	display: inline-block;
}

.mapa-home-box {
	background: white;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
	padding: 16px;
	width: 100%;
}

#map-brasil-home {
	width: 100%;
	height: 380px;
	border-radius: 14px;
	overflow: hidden;
	background-color: #eaf5f9;
}

.mapa-marker-estado {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: #ffffff;
	font-family: inter-bold, Arial, sans-serif;
	font-weight: 700;
	text-align: center;
	border: 3px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	line-height: 1;
	cursor: pointer;
}

.mapa-marker-estado span {
	display: block;
}

.mapa-pico-popup-link {
	color: #1503eb;
	font-weight: 700;
	text-decoration: none;
}

.mapa-pico-popup-link:hover {
	text-decoration: underline;
}

.mapa-popup {
	min-width: 180px;
}

.mapa-popup-titulo {
	font-weight: 700;
	color: #001F3F;
	margin-bottom: 4px;
}

.mapa-popup-texto {
	color: #4b5563;
	margin-bottom: 6px;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
	background-color: transparent !important;
	background: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
	border: 0 !important;
	box-shadow: none !important;
}

.mapa-marker-wrapper {
	background: transparent;
	border: 0;
}

.mapa-marker-com-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.mapa-marker-label {
	font-family: inter-bold, Arial, sans-serif;
	font-size: 10px;
	line-height: 1.1;
	color: #001F3F;
	background: rgba(255, 255, 255, 0.92);
	padding: 3px 6px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	white-space: nowrap;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}

.mapa-marker-label-top {
	order: 0;
}

.mapa-marker-label-bottom {
	order: 2;
}

.mapa-lista {
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
	padding: 18px;
	height: 412px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mapa-box-titulo {
	font-family: inter-bold;
	font-size: 18pt;
	line-height: 1.2;
	color: #001F3F;
	margin-bottom: 8px;
	flex-shrink: 0;
}

.mapa-box-subtitulo {
	font-family: inter-regular;
	font-size: 11pt;
	line-height: 1.5;
	color: #4b5563;
	margin-bottom: 18px;
	flex-shrink: 0;
}

#listaDinamica {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding-right: 6px;
}

.mapa-home-footer {
	margin-top: 16px;
	padding-top: 14px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-shrink: 0;
}

.mapa-lista-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.mapa-lista-item:last-child {
	border-bottom: 0;
}

.mapa-lista-estado {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mapa-lista-estado-nome {
	margin: 0;
	font-family: inter-bold;
	font-size: 11pt;
	color: #001F3F;
}

.mapa-lista-estado-uf {
	margin: 2px 0 0 0;
	font-family: inter-regular;
	font-size: 10pt;
	color: #6b7280;
}

.mapa-lista-total {
	font-family: inter-bold;
	font-size: 10pt;
	color: #1503eb;
	white-space: nowrap;
	flex-shrink: 0;
}

.mapa-lista-item.is-clickable {
	cursor: pointer;
}

.mapa-lista-item.is-clickable:hover {
	background: #f8fbff;
	border-radius: 10px;
	padding-left: 10px;
	padding-right: 10px;
	margin-left: -10px;
	margin-right: -10px;
}

.mapa-lista-item-pico {
	align-items: center;
}

.mapa-lista-pico-thumb {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #eef4f7;
	box-shadow: inset 0 0 0 1px rgba(0, 31, 63, 0.06);
}

.mapa-lista-pico-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mapa-lista-estado-pico {
	flex: 1;
	min-width: 0;
}


/* =========================
   MOBILE - MAPA HOME
========================= */

.mapa-home-mobile-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;    
}

/* Container do mapa */
.mapa-home-mobile-box {
    width: 100%;
    height: 380px; /* pode ajustar: 320–450 */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #eaf5f9;
}

/* Div do mapa */
#map-brasil-home-mobile {
    width: 100%;
    height: 100%;
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

#map-brasil-home-mobile.leaflet-container {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

/* Botão voltar (flutuante) */
.mapa-home-mobile-topo {
    position: relative;
}

/* reaproveita seu botão existente */
#btnVoltarNivelHomeMobile {
    position: absolute;

    bottom: 14px;
    left: 14px;

    z-index: 1000;

    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: none;

    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* esconder botão quando não necessário */
#btnVoltarNivelHomeMobile:not(.is-visible) {
    display: none;
}

@media (max-width: 991.98px) {
	.mapa-home {
		padding: 120px 0 30px 0;
	}

	.mapa-home-titulo {
		font-size: 28pt;
	}

	.mapa-home-subtitulo {
		font-size: 12pt;
	}

	#map-brasil-home {
		height: 560px;
	}
	.mapa-home-mobile-box {
        touch-action: pan-y !important;
    }

    .mapa-home-mobile-box .leaflet-container {
        touch-action: pan-y !important;
    }
}

@media (max-width: 575.98px) {
	.mapa-home {
		padding: 110px 0 24px 0;
	}

	.mapa-home-topo {
		flex-direction: column;
		align-items: stretch;
	}

	.mapa-home-titulo {
		font-size: 22pt;
	}

	.mapa-home-subtitulo {
		font-size: 11pt;
	}

	.mapa-home-box {
		padding: 12px;
		border-radius: 14px;
	}

	#map-brasil-home {
		height: 420px;
		border-radius: 10px;
	}
}