/* ─────────────────────────────────────────
   EB Search Bar – Pesquisa de eventos
   templates/ut_sombra/css/eb-search.css
───────────────────────────────────────── */

.eb-search-form {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Contentor principal ── */
.eb-sb {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 7px;
  display: flex;
  align-items: stretch;
  gap: 0;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* ── Cada campo ── */
.eb-sb-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 23px;
  position: relative;
  min-width: 0;
}

/* Separador entre campos */
.eb-sb-field + .eb-sb-field::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 1px;
  background: #e5e7eb;
}

/* ── Ícone ── */
.eb-sb-icon {
  color: #6b7280;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ── Inputs de texto e calendário ── */
.eb-sb-input,
.eb-sb .form-control,
.eb-sb .field-calendar input {
  flex: 1 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  width: 100%;
  min-width: 0;
  border-radius: 0 !important;
}

.eb-sb-input::placeholder,
.eb-sb .form-control::placeholder,
.eb-sb .field-calendar input::placeholder {
  color: #9ca3af !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

/* ── Wrapper do calendário Joomla ── */
.eb-sb .field-calendar {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 4px;
}
.eb-sb .field-calendar .btn,
.eb-sb .field-calendar button {
  display: none !important;
}

/* ── Campo com select (Categoria / Município) ── */
.eb-sb-field--select {
  display: flex;
  align-items: center;
}

.eb-sb-field--select select,
.eb-sb select.form-control,
.eb-sb select.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 1 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: auto !important;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  line-height: 1.4 !important;
  border-radius: 0 !important;
}

/* Chevron (seta) dos selects */
.eb-sb-chevron {
  color: #9ca3af;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  margin-left: 2px;
}

/* ── Botão Pesquisar ── */
.eb-sb-btn {
  background: linear-gradient(135deg, #E9A42D 0%, #d4921a 100%);
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(233, 164, 45, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eb-sb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(233, 164, 45, 0.55);
}
.eb-sb-btn:active {
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   Responsivo
───────────────────────────────────────── */
@media (max-width: 991px) {
  .eb-sb {
    flex-direction: column;
    border-radius: 16px;
    padding: 10px;
    gap: 0;
  }

  .eb-sb-field {
    flex: none;
    padding: 12px 14px;
  }

  /* Separadores horizontais em mobile */
  .eb-sb-field + .eb-sb-field::before {
    top: 0;
    left: 14px;
    right: 14px;
    width: auto;
    height: 1px;
    transform: none;
  }

  .eb-sb-btn {
    align-self: auto;
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    margin-top: 6px;
  }
}

@media (max-width: 575px) {
  .eb-sb-field {
    padding: 11px 12px;
  }
}
