/* ===========================================
   🔍 ESTILOS DE BUSCA E FILTRO - PACOTES
   Animação suave e design elegante
=========================================== */

/* ===== CONTAINER GERAL ===== */
#buscaPacoteContainer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== BOTÕES (LUPA, FILTRO E X) ===== */
#buscaPacoteContainer .btn-transparent {
  background: transparent;
  border: none;
  color: inherit;
  padding: 6px 8px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

#buscaPacoteContainer .btn-transparent:hover {
  opacity: 0.8;
}

/* clique na lupa dá leve efeito */
#btnToggleBuscaPacote:active {
  transform: scale(0.96);
}

/* ===== INPUT DE BUSCA ===== */
#inputBuscaPacote {
  width: 0;
  opacity: 0;
  padding: 6px 10px;
  height: 30px;
  font-size: 0.85rem;
  border: none;
  border-radius: 20px;
  color: #000;
  background-color: rgba(255, 255, 255, 0.92);
  transform: translateX(20px);
  max-width: 260px;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    transform 0.3s ease;
}

/* ===== QUANDO ATIVA ===== */
#buscaPacoteContainer.ativo #inputBuscaPacote {
  width: 220px !important;
  opacity: 1 !important;
  transform: translateX(0);
}

/* ===== ANIMAÇÃO DA LUPA ===== */
#buscaPacoteContainer.ativo #btnToggleBuscaPacote i {
  transform: rotate(90deg) scale(1.15);
  transition: transform 0.3s ease;
}

/* ===== BOTÃO X ===== */
#btnClearBuscaPacote {
  display: none;
  background: transparent;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  color: inherit;
  opacity: 0.9;
}

#buscaPacoteContainer.ativo #btnClearBuscaPacote {
  display: inline-block;
}

/* ===== TEMA CLARO ===== */
#inputBuscaPacote {
  color: var(--texto-escuro);
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

#inputBuscaPacote::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* ===== TEMA ESCURO ===== */
body[data-tema="dark"] #inputBuscaPacote {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-tema="dark"] #inputBuscaPacote::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

[data-tema="dark"] #inputBuscaPacote {
  color: var(--texto-claro);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== GARANTIR VISIBILIDADE DO X ===== */
#btnClearBuscaPacote {
  color: inherit;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  #buscaPacoteContainer.ativo #inputBuscaPacote {
    width: 180px !important;
  }
}

@media (max-width: 576px) {
  #buscaPacoteContainer.ativo #inputBuscaPacote {
    width: 150px !important;
  }
}
