/*
 * Estilos para el buscador de propiedades de BA Propiedades.
 * Este archivo controla la apariencia de las pestañas, campos y botones.
 */

.ba-search-wrapper {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  font-family: inherit;
}

.ba-search-form {
  margin: 0;
}

.ba-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.ba-tab {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.ba-tab:not(:last-child) {
  border-right: none;
}

.ba-tab.active {
  background: #0e5b6c;
  color: #ffffff;
}

.ba-tab-panel {
  display: none;
}

.ba-tab-panel.active {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ba-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
}

.ba-field label {
  font-size: 14px;
  margin-bottom: 4px;
  color: #334155;
}

.ba-field input,
.ba-field select {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  color: #334155;
}

.ba-field input:focus,
.ba-field select:focus {
  outline: none;
  border-color: #0e5b6c;
  box-shadow: 0 0 0 1px #0e5b6c;
}

.ba-submit-wrapper {
  width: 100%;
  margin-top: 16px;
  text-align: right;
}

.ba-submit-btn {
  background: #0e5b6c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ba-submit-btn:hover {
  background: #0b4a59;
}