/*
Theme Name: Baianai
Template: hello-elementor
Version: 1.0.0
Description: Baianai is a child theme of Hello Elementor.
Author: baianai
Author URI: https://www.baianai.es/
Text Domain: baianai
*/

/* General */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2 !important;
}

.noseve {
	display: none;
}

.enlace a {
    color: var(--e-global-color-primary);
}

.enlace a:hover {
    color: var(--e-global-color-secondary);
}

.sinmar p {
    margin-block-end: 0rem;
}

/* Cookies */
.cky-audit-table-element h3 {
    font-family: var( --e-global-typography-text-font-family ), Sans-serif;
    font-size: var( --e-global-typography-text-font-size );
    font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2 !important;
}
/* PIENSO QUE PUEDE FUNCIONAR SIN TODO ESTO*/
/* Evitar scroll horizontal global */
html,
body {
    overflow-x: hidden;
}

/* El mapa: caja fija de 600px de alto que NO deja salir nada */
#mapa-asociados {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 600px;        /* misma altura que usas en el inline */
    margin: 0 auto;
    overflow: hidden;     /* clave: nada se ve fuera del mapa */
}

/* El canvas ocupa exactamente la caja del mapa */
#mapa-asociados .mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: 12px;
}

/* Asegurar que marcadores y popups se ven por encima del canvas */
#mapa-asociados .mapboxgl-marker,
#mapa-asociados .mapboxgl-popup {
    z-index: 10 !important;
}
/* PIENSO QUE PUEDE FUNCIONAR SIN TODO ESTO*/

/* CONTENEDOR GENERAL */
.map-filters-container {
  width: 100%;
  margin: 0 auto 20px auto;
}

/* BARRA PRINCIPAL */
.map-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* LADO IZQUIERDO (ICONO + TEXTOS) */
.map-filters-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;          /* ocupa solo lo necesario */
}

.map-filters-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8cbf3f, #4c8b2b);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.map-filters-logo-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.map-filters-text {
  display: flex;
  flex-direction: column;
}

.map-filters-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2f3b1f;
}

.map-filters-subtitle {
  font-size: 0.8rem;
  color: #7a8a5f;
}

/* LADO DERECHO (FILTROS + BOTÓN) */
.map-filters-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;        /* coge todo el espacio restante */
  justify-content: flex-end;
}

.map-filter-group {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centra etiqueta + select verticalmente */
  gap: 3px;
  min-width: 170px;
  max-width: 260px;
}

.map-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6c7a52;
}

.map-filter-select {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border-radius: 999px;
  border: 1px solid #d4ddc4;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23808f6b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 12px center / 10px 6px,
    #f9fbf5;
  font-size: 0.85rem;
  color: #374026;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.map-filter-select:focus {
  outline: none;
  border-color: #8cbf3f;
  box-shadow: 0 0 0 2px rgba(140, 191, 63, 0.25);
  background-color: #ffffff;
}

/* BOTÓN */
.map-filter-button {
  border: none;
  border-radius: 999px!important;
  height: 40px;                         /* misma altura visual que los selects */
  padding: 0 24px;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8cbf3f, #4c8b2b);
  color: white!important;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(76, 139, 43, 0.35);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.map-filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(76, 139, 43, 0.4);
}

/* =============== RESPONSIVE =============== */

/* Tablet y móvil: card vertical, PERO SELECTORES EN UNA FILA */
@media (max-width: 900px) {
  .map-filters-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    padding: 14px 14px 16px;
    gap: 14px;
  }

  .map-filters-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* selectores en una fila */
    gap: 10px;
    width: 100%;
    align-items: flex-end;
  }

  .map-filter-group {
    min-width: 0;
    max-width: none;
  }

  .map-filter-select {
    min-width: 0;
    width: 100%;
  }

  .map-filter-button {
    grid-column: 1 / -1;   /* botón ocupa toda la fila inferior */
    width: 100%;
    text-align: center;
  }
}

/* Móvil pequeño: ajustar tipografías */
@media (max-width: 480px) {
  .map-filters-title {
    font-size: 0.9rem;
  }

  .map-filters-subtitle {
    display: none;
  }
}

.elementor-widget-image img, .redondo{
    border-radius: 12px!important;
}

#mapa-asociado {
    min-height: 350px;
}
a.elementor-button:not([href]) {
    display: none !important;
}
.mapboxgl-popup-content{
      padding: 25px 25px 25px!important;
}
.mapboxgl-popup-content a:hover{
  color: black!important;
}

#cuadrado img{
  border-radius: 0px!important;
}

