/* frontend.css - complemento: mantiene consistencia global y variables */
.portal-inmo-search-root,
.elementor-shortcode .portal-inmo-search-root,
.elementor-widget-shortcode .portal-inmo-search-root {
  --inmo-btn-primary: #212529;
  --inmo-btn-text: #ffffff;
  --inmo-border-color: #212529;
  --inmo-btn-secondary-bg: #ffffff;
  --inmo-btn-secondary-text: #212529;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

/* Estructura básica (se complementa con el inline style del fallback) */
.portal-inmo-search-root .search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

/* Selects e inputs */
.portal-inmo-search-root .filter-select,
.portal-inmo-search-root .input-text {
  height: var(--inmo-input-height, 44px);
  font-size: 14px;
  padding: 0 12px;
  border-radius: var(--inmo-border-radius, 8px);
  border: 1px solid var(--inmo-border-color);
  background: #fff;
  color: var(--inmo-btn-secondary-text);
  box-sizing: border-box;
}

/* Botones genéricos */
.portal-inmo-search-root .btn {
  height: var(--inmo-btn-height, 44px);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--inmo-btn-padding-x, 12px);
  border-radius: var(--inmo-border-radius, 8px);
  box-sizing: border-box;
  cursor: pointer;
}

/* Primario */
.portal-inmo-search-root .btn-primary {
  background: var(--inmo-btn-primary);
  color: var(--inmo-btn-text);
  border: 1px solid var(--inmo-border-color);
  font-weight: 600;
}

/* Secundario */
.portal-inmo-search-root .btn-secondary {
  background: var(--inmo-btn-secondary-bg);
  color: var(--inmo-btn-secondary-text);
  border: 1px solid var(--inmo-border-color);
}

/* Responsive */
@media (max-width: 880px) {
  .portal-inmo-search-root .search-bar { flex-wrap: wrap; }
  .portal-inmo-search-root .filter-select,
  .portal-inmo-search-root .input-text { flex: 1 1 100%; min-width: 0; }
  .portal-inmo-search-root .controls-right { margin-left: 0; width: 100%; justify-content: flex-start; }
}