/* Local GEO Manager - estilos públicos (isolados por prefixo .lgm-) */

.lgm-map {
	width: 100%;
	margin: 1em 0;
	line-height: 0;
}

.lgm-map iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 8px;
}

.lgm-map-fallback {
	padding: 1em;
	margin: 1em 0;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 0.95em;
}

.lgm-map-fallback a {
	font-weight: 600;
}

.lgm-address {
	margin: 1em 0;
	line-height: 1.5;
}

.lgm-address__name {
	font-weight: 700;
	margin: 0 0 0.25em;
}

.lgm-address__line,
.lgm-address__phone {
	margin: 0 0 0.25em;
}

.lgm-address__cta {
	margin: 0.5em 0 0;
}

/* Botão: herda o padrão do tema por variáveis CSS.
   Se o tema/Elementor define --e-global-color-primary (ou similar), o botão
   usa a cor do site. Sem isso, cai num neutro discreto. Para usar a classe
   de botão do próprio tema, informe-a no atributo "classe_botao" do
   shortcode (ex.: [empresa_endereco classe_botao="elementor-button"]). */
.lgm-btn {
	display: inline-block;
	padding: 0.5em 1.1em;
	background: var( --e-global-color-primary, var( --wp--preset--color--primary, currentColor ) );
	color: var( --e-global-color-secondary, #fff );
	text-decoration: none;
	border-radius: var( --lgm-btn-radius, 6px );
	font-weight: 600;
	line-height: 1.2;
	font-family: inherit;
	font-size: inherit;
}

.lgm-btn:hover,
.lgm-btn:focus {
	filter: brightness( 0.92 );
	color: var( --e-global-color-secondary, #fff );
}

/* Quando o usuário informa a classe de botão do tema, o plugin não interfere. */
.lgm-btn.lgm-btn--theme {
	all: unset;
	cursor: pointer;
}

.lgm-location {
	margin: 1em 0;
}

@media (max-width: 600px) {
	.lgm-map iframe {
		border-radius: 4px;
	}
}

.lgm-local {
	margin: 1em 0;
}

.lgm-local--empty {
	color: #888;
	font-style: italic;
}

.lgm-local-profile > * {
	margin-bottom: 1em;
}
