.eufu-unidades-widget {
	--eufu-preto: #181818;
	--eufu-verde: #03f387;
	--eufu-cinza-borda: #e2e4e9;
	--eufu-cinza-pill: #f1f2f3;
	--eufu-texto-pill-inativo: #737d78;
	font-family: inherit;
}

.eufu-cidades-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	margin-bottom: 24px;
}

.eufu-cidade-pill {
	display: inline-flex;
	align-items: center;
	background: var(--eufu-cinza-pill);
	border: none;
	border-radius: 999px;
	padding: 15px 35px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	color: var(--eufu-texto-pill-inativo);
	transition: background .15s ease, color .15s ease;
}

.eufu-unidades-widget .eufu-cidade-icone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 10px;
	height: 16px;
	min-width: 10px;
	max-width: 10px;
	margin-right: 8px;
	color: var(--eufu-preto);
	flex: 0 0 10px;
	overflow: hidden;
}
.eufu-unidades-widget .eufu-cidade-icone svg {
	width: 10px !important;
	height: 16px !important;
	max-width: 10px !important;
	max-height: 16px !important;
	display: block;
}

.eufu-cidade-pill.is-ativa,
.eufu-cidade-pill:hover,
.eufu-cidade-pill:focus {
	background: var(--eufu-verde);
	border-color: var(--eufu-verde);
	color: var(--eufu-preto);
}

.eufu-cidade-painel { display: none; }
.eufu-cidade-painel.is-ativo { display: block; }

.eufu-bairro-acordeao {
	border: 1px solid var(--eufu-cinza-borda);
	border-radius: 8px;
	margin-bottom: 10px;
	overflow: hidden;
}

.eufu-bairro-cabecalho {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	border: none;
	padding: 16px 20px;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	color: var(--eufu-preto);
}

.eufu-bairro-acordeao.is-aberto .eufu-bairro-cabecalho {
	background: var(--eufu-preto);
	color: #fff;
}

.eufu-bairro-cabecalho:hover,
.eufu-bairro-cabecalho:focus {
	background: var(--eufu-preto);
	color: #fff;
}

.eufu-tag-em-breve {
	margin-left: 10px;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	color: var(--eufu-verde);
}

.eufu-bairro-icone {
	position: relative;
	width: 14px;
	height: 14px;
	flex: none;
}
.eufu-bairro-icone::before, .eufu-bairro-icone::after {
	content: "";
	position: absolute;
	background: currentColor;
	top: 50%;
	left: 0;
}
.eufu-bairro-icone::before { width: 14px; height: 2px; transform: translateY(-50%); }
.eufu-bairro-icone::after  { width: 2px; height: 14px; left: 6px; transform: translateY(-50%); transition: opacity .15s ease; }
.eufu-bairro-acordeao.is-aberto .eufu-bairro-icone::after { opacity: 0; }

.eufu-bairro-conteudo {
	display: none;
	padding: 18px 20px;
	background: #fafafa;
}
.eufu-bairro-acordeao.is-aberto .eufu-bairro-conteudo { display: block; }

.eufu-bairro-endereco { margin: 0 0 14px; color: #444; }

.eufu-bairro-mapa { position: relative; padding-bottom: 45%; height: 0; overflow: hidden; border-radius: 6px; }
.eufu-bairro-mapa iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	border: 0;
	filter: grayscale(1);
	transition: filter .3s ease;
}
.eufu-bairro-mapa:hover iframe {
	filter: grayscale(0);
}

@media (max-width: 600px) {
	.eufu-bairro-mapa { padding-bottom: 70%; }
}

/*
 * No mobile, reproduz o comportamento do widget "Abas" do Elementor:
 * cada cidade fica listada uma abaixo da outra (botao + seu proprio
 * acordeao de bairros), em vez de trocar qual cidade fica visivel.
 * Usamos "order" para intercalar pill/painel na ordem visual, sem
 * precisar mudar a estrutura HTML.
 */
@media (max-width: 768px) {
	.eufu-unidades-widget {
		display: flex;
		flex-direction: column;
	}

	.eufu-cidades-filtros {
		display: contents;
	}

	.eufu-cidade-pill {
		order: var(--eufu-ordem-mobile, 0);
		width: 100%;
		justify-content: center;
		margin-bottom: 10px;
	}

	.eufu-cidade-painel {
		order: var(--eufu-ordem-mobile, 0);
		margin-bottom: 20px;
	}
}
