/* Buscador de proyectos: 2 selectores en cascada + botón ([buscador_proyectos]). */
.bp-buscador {
  --bp-bg: #fff;
  --bp-opcion-bg: #eef0ee;
  --bp-texto: #1a1a1a;
  --bp-placeholder: #6b7280;
  --bp-acento: #0b844b;

  background: var(--bp-bg);
  border-radius: 24px;
  padding: 26px 20px;
  box-sizing: border-box;
  width: min(442px, 100%);
  max-width: 442px;
}

.elementor .elementor-widget.elementor-widget-lares_buscador_proyectos {
  width: min(442px, 100%);
  min-width: min(442px, 100%);
  flex-shrink: 0;
}

.elementor .elementor-widget.elementor-widget-lares_buscador_proyectos .bp-buscador {
  width: 100%;
  max-width: 100%;
}

.bp-campo {
  margin-bottom: 20px;
  position: relative;
}

.bp-label {
  display: block;
  font-family: "Proxima Nova SemiBold", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #232323;
  margin-bottom: 5px;
}

.bp-select {
  width: 100%;
  appearance: none;
  border: 0;
  background: #f6f6f6;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-size: 15px;
  color: var(--bp-placeholder);
  cursor: pointer;
  text-align: left;
  .bp-select__valor {
    color: var(--efc8, #6b6b6b);
    font-family: "Proxima Nova Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%; /* 17.6px */
  }
  &:focus {
    background: #f6f6f6;
  }
  &:hover {
    background: #f6f6f6;
  }
}

.bp-select[data-tiene-valor="1"] .bp-select__valor {
  font-size: 16px;
  line-height: 16px;
  color: #0b844b;
  font-weight: 600;
}

.bp-select__chevron {
  flex-shrink: 0;
  margin-inline-start: 12px;
  transition: transform 0.2s ease;
}

.bp-select[aria-expanded="true"] .bp-select__chevron {
  transform: rotate(180deg);
}

.bp-opciones {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  position: relative;
  z-index: 5;
}

/* En popups de Elementor (móvil) el overflow corta el desplegable. */
.elementor-popup-modal .dialog-widget-content,
.elementor-popup-modal .dialog-message,
.elementor-popup-modal .elementor-container,
.elementor-popup-modal .e-con,
.elementor-popup-modal .elementor-widget-lares_buscador_proyectos,
.elementor-location-popup .elementor-widget-lares_buscador_proyectos {
  overflow: visible !important;
}

.elementor-popup-modal .bp-buscador,
.elementor-location-popup .bp-buscador {
  position: relative;
  z-index: 2;
}

.bp-opciones[hidden] {
  display: none;
}

.bp-opcion {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 8px;
  font-size: 16px;
  color: #232323;
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-family: "Proxima Nova Regular";
}

.bp-opcion:last-child {
  margin-bottom: 0;
}

.bp-opcion::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 12px;
  margin-inline-end: 6px;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12' fill='none'%3E%3Cpath d='M13.3355 6.02328L8.27297 11.0858C8.16742 11.1913 8.02427 11.2506 7.875 11.2506C7.72573 11.2506 7.58258 11.1913 7.47703 11.0858C7.37148 10.9802 7.31219 10.8371 7.31219 10.6878C7.31219 10.5385 7.37148 10.3954 7.47703 10.2898L11.5798 6.18781H0.5625C0.413316 6.18781 0.270242 6.12855 0.164753 6.02306C0.0592633 5.91757 0 5.7745 0 5.62531C0 5.47613 0.0592633 5.33305 0.164753 5.22757C0.270242 5.12208 0.413316 5.06281 0.5625 5.06281H11.5798L7.47703 0.960781C7.37148 0.855234 7.31219 0.71208 7.31219 0.562813C7.31219 0.413546 7.37148 0.270392 7.47703 0.164844C7.58258 0.0592961 7.72573 0 7.875 0C8.02427 0 8.16742 0.0592961 8.27297 0.164844L13.3355 5.22734C13.3878 5.27958 13.4293 5.34162 13.4576 5.40991C13.4859 5.4782 13.5004 5.55139 13.5004 5.62531C13.5004 5.69923 13.4859 5.77243 13.4576 5.84072C13.4293 5.909 13.3878 5.97104 13.3355 6.02328Z' fill='%230B844B'/%3E%3C/svg%3E")
    no-repeat center / contain;
  opacity: 0;
}

.bp-opcion[aria-selected="true"] {
  font-weight: 600;
}

.bp-opcion[aria-selected="true"]::before,
.bp-opcion:not(.is-disabled):hover::before {
  opacity: 1;
}

.bp-opcion.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.bp-buscar {
  width: fit-content;
  appearance: none;
  border: 0;
  border-radius: 100px;
  background: #0b844b;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  margin-top: 4px;
  font-family: "Proxima Nova Semibold";
	transition: all 0.3s ease-in-out;
	border: 1px solid #0b844b;
  &:hover {
    border: 1px solid var(--Verde, #0b844b);
    background: transparent;
		color: #232323;
  }
}
