/* ===================================================================
   NOVA BARRA DE PESQUISA RESPONSIVA - DESIGN COMPLETAMENTE NOVO
   =================================================================== */

/* Container principal da área de pesquisa */
.new-search-area {
  position: relative;
  z-index: 100;
  margin-top: -120px;
  padding: 0;
  background: transparent;
}

/* Wrapper da barra de pesquisa */
.new-search-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Container dos filtros */
.new-filters-container {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 16px;
  box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(203, 205, 48, 0.2);
  min-height: 110px;
}

/* Item individual de filtro */
.new-filter-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Labels dos filtros */
.new-filter-item label {
  display: block;
  color: #030e0f;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 12px;
  white-space: nowrap;
}

/* Remover qualquer pseudo-elemento que adicione setas */
.new-select::after,
.new-select::before {
  display: none !important;
  content: none !important;
}

/* Estilos dos selects */
.new-select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: #f0f1f1;
  color: #030e0f;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Remove setas nativas do navegador */
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  /* Adiciona seta customizada preta */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 12px !important;
  padding-right: 36px !important;
}

.new-select:hover {
  background-color: #e8e9e9;
  /* Manter a seta no hover */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 12px !important;
}

.new-select:focus {
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(203, 205, 48, 0.3);
  /* Manter a seta no focus */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 12px !important;
}

/* Estilos do input */
.new-input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: #f0f1f1;
  color: #030e0f;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.new-input::placeholder {
  color: #7a7a7a;
  opacity: 1;
}

.new-input:hover {
  background-color: #e8e9e9;
}

.new-input:focus {
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(203, 205, 48, 0.3);
}

/* Wrapper do botão de pesquisa */
.new-search-button-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Espaço invisível para alinhar com outros elementos */
.new-search-button-wrapper::before {
  content: '';
  height: 28px;
  display: block;
}

/* Botão de pesquisa */
.new-search-submit {
  height: 48px;
  padding: 0 20px;
  min-width: 130px;
  border: none;
  border-radius: 8px;
  background: #cbcd30;
  color: #030e0f;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.new-search-submit:hover {
  background: #073b3a;
  color: #ffffff;
}

.new-search-submit:hover .new-search-icon {
  color: #ffffff;
}

/* Ícone de pesquisa */
.new-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Estilos do botão de busca */
.new-submit-btn {
  display: flex;
  align-items: flex-end;
}

.new-btn-search {
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: #cbcd30;
  color: #030e0f;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  min-width: 120px;
  justify-content: center;
}

.new-btn-search:hover {
  background: #b8bb2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(203, 205, 48, 0.3);
}

.new-btn-search:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(203, 205, 48, 0.2);
}

.new-btn-search i {
  font-size: 14px;
}

/* ===================================================================
   RESPONSIVIDADE
   =================================================================== */

/* Tablet grande (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .new-search-area {
    margin-top: -100px;
  }

  .new-filters-container {
    gap: 16px;
    padding: 20px 24px;
  }

  .new-filter-item label {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .new-search-submit {
    min-width: 120px;
    font-size: 13px;
  }
}

/* Tablet médio (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .new-search-area {
    margin-top: -90px;
  }

  .new-filters-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
  }

  .new-search-button-wrapper {
    grid-column: 1 / -1;
    justify-content: center;
    align-items: center;
  }

  .new-search-button-wrapper::before {
    display: none;
  }

  .new-search-submit {
    width: 200px;
    margin-top: 10px;
  }
}

/* Tablet pequeno e mobile (max 767px) */
@media (max-width: 767px) {
  .new-search-area {
    margin-top: 10px;
  }

  .new-search-wrapper {
    padding: 0 12px;
  }

  .new-filters-container {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    min-height: auto;
  }

  .new-filter-item {
    width: 100%;
  }

  .new-filter-item label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .new-select,
  .new-input {
    height: 50px;
    font-size: 15px;
  }

  .new-search-button-wrapper {
    width: 100%;
    margin-top: 4px;
  }

  .new-search-button-wrapper::before {
    display: none;
  }

  .new-search-submit {
    width: 100%;
    height: 50px;
    font-size: 16px;
  }
}

/* Mobile pequeno (max 575px) */
@media (max-width: 575px) {
  .new-search-area {
    margin-top: 10px;
  }

  .new-filters-container {
    padding: 16px;
    border-radius: 12px;
  }

  .new-search-text {
    font-size: 15px;
  }
}

/* Mobile muito pequeno (max 360px) */
@media (max-width: 360px) {
  .new-search-wrapper {
    padding: 0 8px;
  }

  .new-filters-container {
    padding: 14px;
    gap: 14px;
  }

  .new-select,
  .new-input {
    padding: 0 10px;
    padding-right: 32px;
  }
}

/* ===================================================================
   ANIMAÇÕES E ESTADOS
   =================================================================== */

/* Animação ao focar nos campos */
.new-filter-item.focused .new-select,
.new-filter-item.focused .new-input {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Animação do botão ao clicar */
.new-search-submit.searching {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Transição suave para todos os elementos interativos */
.new-select,
.new-input,
.new-search-submit {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado desabilitado */
.new-select:disabled,
.new-input:disabled,
.new-search-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5 !important;
}

/* Estado de carregamento para selects */
.new-select:disabled {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2V6M10 14V18M18 10H14M6 10H2M15.657 4.343L13.536 6.464M6.464 13.536L4.343 15.657M15.657 15.657L13.536 13.536M6.464 6.464L4.343 4.343' stroke='%23666666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===================================================================
   AJUSTES PARA SEÇÃO SEGUINTE
   =================================================================== */

.properties1-section-area.sp2 {
  padding-top: 140px !important;
}

@media (min-width: 1200px) {
  .properties1-section-area.sp2 {
    padding-top: 160px !important;
  }
}

@media (max-width: 991px) {
  .properties1-section-area.sp2 {
    padding-top: 120px !important;
  }
}

@media (max-width: 767px) {
  .properties1-section-area.sp2 {
    padding-top: 560px !important;
  }
}

@media (max-width: 575px) {
  .properties1-section-area.sp2 {
    padding-top: 600px !important;
  }
}
