/* =====================================================================
   Mapa das instalações (Leaflet + CARTO Voyager).
   Ficheiro próprio, não colide com o resto do tema.
   ===================================================================== */

.ec-mapa {
  --ec-mapa-cor: #c05e2d;
  --ec-mapa-cor-2: #4eb1b6;
  overflow: hidden;
  border-radius: 20px;
  background: #eef0f1;
  box-shadow: 0 10px 30px rgba(52, 40, 32, .08);
}

.ec-mapa__tela {
  width: 100%;
  height: 380px;
  background: #eef0f1;
}

/* Marcador */
.ec-mapa__marcador svg {
  width: 42px;
  height: 52px;
  filter: drop-shadow(0 6px 10px rgba(52, 40, 32, .35));
}

/* Barra por baixo do mapa */
.ec-mapa__barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border-top: 1px solid #eceae7;
}

.ec-mapa__local {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-width: 0;
}

.ec-mapa__pin {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--ec-mapa-cor);
}
.ec-mapa__pin svg { width: 100%; height: 100%; }

.ec-mapa__local strong {
  display: block;
  font-size: .98rem;
  color: #23201e;
}

.ec-mapa__morada {
  display: block;
  font-size: .88rem;
  line-height: 1.45;
  color: #6f665f;
}

.ec-mapa__navegar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.ec-mapa__navegar-rotulo {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8a827b;
  margin-right: .25rem;
}

.ec-mapa__app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid #e2ddd8;
  border-radius: 999px;
  background: #fff;
  color: #3a342f;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.ec-mapa__app-icone {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--ec-mapa-cor);
  transition: color .15s ease;
}
.ec-mapa__app-icone svg { width: 100%; height: 100%; }
.ec-mapa__app:hover .ec-mapa__app-icone { color: #fff; }

.ec-mapa__app:hover {
  border-color: var(--ec-mapa-cor);
  background: var(--ec-mapa-cor);
  color: #fff;
}

.ec-mapa__app:focus-visible {
  outline: 3px solid var(--ec-mapa-cor-2);
  outline-offset: 2px;
}

/* Controlos do MapLibre, alinhados com a marca */
.ec-mapa .maplibregl-ctrl-group { border-radius: 10px; overflow: hidden; }
.ec-mapa .maplibregl-ctrl-group button:hover { background: #f7ece5; }
.ec-mapa .maplibregl-ctrl-attrib { font-size: .68rem; }
.ec-mapa .maplibregl-ctrl-attrib a { color: #6f665f; }

/* Aviso de dois dedos no telemóvel */
.ec-mapa .maplibregl-cooperative-gesture-screen { font-family: inherit; }

@media (max-width: 700px) {
  .ec-mapa { border-radius: 16px; }
  .ec-mapa__tela { height: 300px; }
  .ec-mapa__barra { padding: 1rem; }
  .ec-mapa__navegar { width: 100%; }
  .ec-mapa__navegar-rotulo { width: 100%; margin-bottom: .15rem; }
  .ec-mapa__app { flex: 1 1 auto; }
}
