/* ===================================
   FILTRO MELHORADO - ESTILOS PERSONALIZADOS
   =================================== */

/* Container principal do filtro */
.advance__search--inner.two {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  gap: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Botões de opção Comprar/Alugar */
.opcao-toggle {
  display: flex;
  gap: 10px;
}
.opcao-btn {
  padding: 10px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  background: #fff;
  color: #6c757d;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.opcao-btn:hover {
  border-color: var(--color-hover);
  color: var(--color-hover);
}
.opcao-btn.active {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  border-color: var(--color-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 169, 83, 0.25);
}

/* Responsividade para os botões de opção */
@media (max-width: 767.98px) {
  .opcao-toggle { width: 100%; }
  .opcao-btn { flex: 1; text-align: center; }
}

.advance__search--inner.two::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-hover), #e67e22, var(--color-hover));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.advance__search--inner.two:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Botões de navegação do filtro */
.advance__tab--btn__field {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 8px;
  color: #6c757d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 180px;
  white-space: nowrap;
  text-align: center;
}

.advance__tab--btn__field::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.advance__tab--btn__field:hover::before {
  left: 100%;
}

.advance__tab--btn__field:hover {
  border-color: var(--color-hover);
  color: var(--color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 169, 83, 0.2);
}

.advance__tab--btn__field.active {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  border-color: var(--color-hover);
  color: white;
  box-shadow: 0 4px 16px rgba(245, 169, 83, 0.3);
  transform: translateY(-2px);
}

/* Itens do filtro */
.advance__two--search__items {
  position: relative;
  transition: all 0.3s ease;
}

.advance__two--search__items:hover {
  transform: translateY(-1px);
}

/* Labels dos campos */
.advance__search--label {
  font-weight: 600;
  font-size: 13px;
  color: #495057;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 12px;
}

.advance__search--label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-hover);
  border-radius: 50%;
}

/* Campos de input */
.advance__search--input {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.advance__search--input:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.advance__search--input:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Campos de select */
.advance__search--select {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #495057 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linecap='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  opacity: 1 !important;
}

/* Sobrescrever a opacidade problemática do style.css com maior especificidade */
.advance__search--select,
.advance__search--select option {
  opacity: 1 !important;
  color: #495057 !important;
}

/* Garantir que as opções do select também tenham contraste adequado */
.advance__search--select option {
  color: #495057 !important;
  background-color: #ffffff !important;
}

.advance__search--select option:hover {
  background-color: #f8f9fa !important;
}

.advance__search--select option:checked {
  background-color: #e9ecef !important;
  color: #495057 !important;
}

/* Especificidade adicional para garantir que o override funcione */
.advance__two--search__items .advance__search--select {
  opacity: 1 !important;
  color: #495057 !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Campos select específicos do filtro */
.advance__search--select[name="tipo"],
.advance__search--select[name="dormitorio"],
.advance__search--select[name="bairro"] {
  opacity: 1 !important;
  color: #495057 !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.advance__search--select:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.advance__search--select:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Botão de busca */
.advance__search--btn__style2 {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 14px;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(245, 169, 83, 0.3);
  position: relative;
  overflow: hidden;
}

.advance__search--btn__style2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.advance__search--btn__style2:hover::before {
  left: 100%;
}

.advance__search--btn__style2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 169, 83, 0.4);
  background: linear-gradient(135deg, #e67e22 0%, var(--color-hover) 100%);
}

.advance__search--btn__style2:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 169, 83, 0.3);
}

/* Ícone do botão */
.advance__search--btn__style2 svg {
  transition: transform 0.3s ease;
}

.advance__search--btn__style2:hover svg {
  transform: scale(1.1);
}

/* Separadores entre campos */
.advance__two--search__items::before {
  background: linear-gradient(180deg, transparent, #e9ecef, transparent);
  width: 1px;
  height: 60%;
  opacity: 0.6;
}

/* Responsividade melhorada */
@media only screen and (max-width: 767px) {
  .advance__search--inner.two {
    padding: 2rem;
    border-radius: 16px;
    gap: 1.5rem;
  }
  
  .advance__tab--btn__field {
    padding: 10px 16px;
    font-size: 12px;
    border-radius: 10px;
  }
  
  .advance__search--input,
  .advance__search--select {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
  }
  
  .advance__search--btn__style2 {
    padding: 12px 24px;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Melhorias adicionais para o filtro */
.advance__search--inner.two {
  animation: fadeInUp 0.8s ease-out;
}

.advance__two--search__items:focus-within {
  transform: translateY(-2px);
}

.advance__two--search__items:focus-within .advance__search--label {
  color: var(--color-hover);
  transform: translateY(-2px);
}

/* Estilos para Select2 */
.select2-container--default .select2-selection--single {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  height: 44px;
  transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: 16px;
  color: #495057;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 12px;
}

.select2-dropdown {
  border: 2px solid var(--color-hover);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  color: white;
}

/* Loading animation para botão */
.advance__search--btn__style2.loading {
  pointer-events: none;
  position: relative;
}

.advance__search--btn__style2.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Estilos para campos de preço */
.advance__search--price {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.advance__search--price:hover {
  transform: translateY(-1px);
}

.advance__search--price span {
  color: var(--color-hover);
  font-weight: 600;
}

/* Validação visual */
.advance__search--input:not(:placeholder-shown),
.advance__search--select:not([value=""]),
.advance__search--price:not(:empty) {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Efeitos de hover para itens do filtro */
.advance__two--search__items {
  position: relative;
  transition: all 0.3s ease;
}

.advance__two--search__items::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-hover);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.advance__two--search__items:hover::after {
  width: 100%;
}

/* Estilos para o combo box mobile */
#mobileTabSelect {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

#mobileTabSelect:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
}

/* Efeito de sucesso */
.advance__search--inner.two.success {
  animation: bounceIn 0.6s ease;
}

.advance__search--inner.two.success::before {
  background: linear-gradient(90deg, #28a745, #20c997, #28a745);
  animation: shimmer 1s ease-in-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Melhorias para campos específicos */
.account__form--input__field {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.account__form--input__field:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.account__form--input__field:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Estilos para labels de formulário */
.account__form--input__label {
  font-weight: 600;
  font-size: 13px;
  color: #495057;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 12px;
}

.account__form--input__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-hover);
  border-radius: 50%;
}

/* Melhorias para o combo box mobile */
#mobileTabSelect {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linecap='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

#mobileTabSelect:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
}

/* Efeitos de hover para o combo box */
#mobileTabSelect:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Melhorias para botões de navegação */
.advance__tab--btn__tree {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.advance__tab--btn__list {
  list-style: none;
}

/* Efeitos de transição suaves */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Melhorias para campos de preço */
.advance__search--price {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.advance__search--price:hover {
  transform: translateY(-1px);
}

.advance__search--price span {
  color: var(--color-hover);
  font-weight: 600;
}

/* Validação visual */
.advance__search--input:not(:placeholder-shown),
.advance__search--select:not([value=""]),
.advance__search--price:not(:empty) {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Efeitos de hover para itens do filtro */
.advance__two--search__items {
  position: relative;
  transition: all 0.3s ease;
}

.advance__two--search__items::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-hover);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.advance__two--search__items:hover::after {
  width: 100%;
}

/* Estilos para o combo box mobile */
#mobileTabSelect {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

#mobileTabSelect:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
}

/* Efeito de sucesso */
.advance__search--inner.two.success {
  animation: bounceIn 0.6s ease;
}

.advance__search--inner.two.success::before {
  background: linear-gradient(90deg, #28a745, #20c997, #28a745);
  animation: shimmer 1s ease-in-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Melhorias para Select2 */
.select2-container--default .select2-selection--single {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  height: 44px;
  transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: 16px;
  color: #495057;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 12px;
}

/* Estilos específicos para Select2 múltipla seleção */
.select2-container--default .select2-selection--multiple {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  min-height: 44px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.select2-container--default .select2-selection--multiple:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  margin: 2px 4px 2px 0;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: white;
  margin-right: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #f8f9fa;
  transform: scale(1.1);
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0;
  margin: 0;
  line-height: 1.4;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #6c757d;
  font-size: 14px;
  line-height: 28px;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #495057;
  background: transparent;
  border: none;
  outline: none;
  min-width: 120px;
}

.select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
  color: #6c757d;
  opacity: 0.7;
}

/* Dropdown do Select2 */
.select2-dropdown {
  border: 2px solid var(--color-hover);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: white;
  overflow: hidden;
}

.select2-container--default .select2-results__option {
  padding: 10px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  color: white;
  font-weight: 600;
}

.select2-container--default .select2-results__option:hover {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  color: white;
}

/* Responsividade para Select2 */
@media only screen and (max-width: 767px) {
  .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 10px;
  }
  
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 3px 6px;
    font-size: 11px;
  }
  
  .select2-container--default .select2-selection--multiple .select2-search__field {
    min-width: 80px;
    font-size: 13px;
  }
}

/* Melhorias para o container do Select2 */
.select2-container {
  width: 100% !important;
}

.select2-container--default.select2-container--open .select2-dropdown {
  animation: fadeInUp 0.3s ease;
}

/* Efeito de foco para o container */
.advance__two--search__items:has(.select2-container--default.select2-container--focus) {
  transform: translateY(-2px);
}

.advance__two--search__items:has(.select2-container--default.select2-container--focus) .advance__search--label {
  color: var(--color-hover);
  transform: translateY(-2px);
}

/* Estilos adicionais para integração perfeita */
.filter-select2-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-select2-container:hover {
  transform: translateY(-1px);
}

/* Garantir que os campos Select2 tenham a mesma altura dos outros campos */
.advance__two--search__items .select2-container--default .select2-selection--multiple {
  min-height: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Ajustar espaçamento interno para alinhar com outros campos */
.advance__two--search__items .select2-container--default .select2-selection--multiple {
  padding: 8px 12px;
}

/* Melhorar a aparência das tags selecionadas */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
}

/* Ajustar o campo de busca dentro do Select2 */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-search__field {
  margin: 2px 0;
  padding: 2px 0;
  min-width: 100px;
  height: 28px;
  line-height: 28px;
}

/* Garantir que o placeholder seja visível */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #6c757d;
  font-size: 14px;
  line-height: 28px;
  margin: 0;
  padding: 0;
}

/* Melhorar a responsividade */
@media only screen and (max-width: 767px) {
  .advance__two--search__items .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    padding: 10px 14px;
  }
  
  .advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 1px 2px 1px 0;
    padding: 3px 6px;
    font-size: 11px;
  }
  
  .advance__two--search__items .select2-container--default .select2-selection--multiple .select2-search__field {
    min-width: 80px;
    font-size: 13px;
  }
}

/* Efeito de validação para campos Select2 */
.advance__two--search__items .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
  transform: translateY(-1px);
}

/* Hover effect para campos Select2 */
.advance__two--search__items .select2-container--default .select2-selection--multiple:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Garantir que o container tenha largura correta */
.advance__two--search__items .select2-container {
  width: 100% !important;
  max-width: 100%;
}

/* Ajustar z-index para garantir que o dropdown apareça acima de outros elementos */
.select2-dropdown {
  z-index: 9999;
  animation: fadeInUp 0.3s ease;
  transform-origin: top center;
}

/* Melhorar a aparência das opções no dropdown */
.select2-container--default .select2-results__option {
  padding: 10px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f8f9fa;
}

.select2-container--default .select2-results__option:last-child {
  border-bottom: none;
}

.select2-container--default .select2-results__option:hover {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  color: white;
}

/* Estilo para opções já selecionadas */
.select2-container--default .select2-results__option[aria-selected=true] {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  color: white;
  font-weight: 600;
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
  background: linear-gradient(135deg, #e67e22 0%, var(--color-hover) 100%);
  color: white;
}

/* Melhorar a aparência do botão de limpar */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  color: #dc3545;
  font-weight: bold;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
  color: #c82333;
  transform: scale(1.1);
}

/* Melhorar a aparência do scroll no dropdown */
.select2-results__options {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-hover) #f8f9fa;
}

.select2-results__options::-webkit-scrollbar {
  width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background: var(--color-hover);
  border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #e67e22;
}

/* Garantir que o dropdown tenha o mesmo estilo dos campos */
.select2-dropdown {
  border: 2px solid var(--color-hover);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: white;
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: linear-gradient(135deg, var(--color-hover) 0%, #e67e22 100%);
  color: white;
}

/* Responsividade para alinhamento */
@media only screen and (max-width: 767px) {
  .advance__two--search__items .advance__search--input,
  .advance__two--search__items .advance__search--select,
  .advance__two--search__items .select2-container--default .select2-selection--multiple,
  .advance__two--search__items .account__form--input__field {
    min-height: 40px;
    padding: 10px 14px;
  }
  
  .advance__two--search__items .select2-container--default .select2-selection--multiple {
    padding: 8px 14px;
  }
  
  .advance__two--search__items .advance__search--label,
  .advance__two--search__items .account__form--input__label,
  .advance__two--search__items label[class*="label"] {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .advance__two--search__items .select2-container--default .select2-selection--multiple .select2-search__field {
    min-width: 80px;
    font-size: 13px;
  }
}

/* Alinhamento uniforme dos labels */
.advance__two--search__items .advance__search--label {
  font-weight: 600;
  font-size: 13px;
  color: #495057;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 12px;
  display: block;
  line-height: 1.2;
}

.advance__two--search__items .advance__search--label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-hover);
  border-radius: 50%;
}

/* Alinhamento uniforme para labels da classe account__form--input__label */
.advance__two--search__items .account__form--input__label {
  font-weight: 600;
  font-size: 13px;
  color: #495057;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 12px;
  display: block;
  line-height: 1.2;
}

.advance__two--search__items .account__form--input__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-hover);
  border-radius: 50%;
}

/* Remover margens extras dos containers account__form--input */
.advance__two--search__items .account__form--input {
  margin-bottom: 0 !important;
}

.advance__two--search__items .account__form--input__label {
  margin-bottom: 8px !important;
}

/* Remover classes mb-6 que podem estar causando desalinhamento */
.advance__two--search__items .mb-6 {
  margin-bottom: 8px !important;
}

/* Garantir que todos os campos tenham a mesma altura */
.advance__two--search__items .advance__search--input,
.advance__two--search__items .advance__search--select,
.advance__two--search__items .select2-container--default .select2-selection--multiple,
.advance__two--search__items .account__form--input__field {
  min-height: 48px;
  box-sizing: border-box;
}

/* Alinhamento vertical dos campos */
.advance__two--search__items {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

/* Espaçamento consistente entre label e campo */
.advance__two--search__items .advance__search--label,
.advance__two--search__items .account__form--input__label {
  margin-bottom: 8px;
}

/* Garantir que os campos tenham o mesmo padding */
.advance__two--search__items .advance__search--input,
.advance__two--search__items .advance__search--select,
.advance__two--search__items .account__form--input__field {
  padding: 12px 16px;
}

/* Ajustar o padding do Select2 para alinhar com outros campos */
.advance__two--search__items .select2-container--default .select2-selection--multiple {
  padding: 12px 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* Melhorar o alinhamento das tags dentro do Select2 */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0;
  line-height: 1.4;
  min-height: 24px;
}

/* Ajustar o campo de busca para ficar alinhado */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-search__field {
  margin: 0;
  padding: 0;
  min-width: 120px;
  height: 24px;
  line-height: 24px;
  font-size: 14px;
  color: #495057;
  background: transparent;
  border: none;
  outline: none;
}

/* Placeholder do Select2 */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #6c757d;
  font-size: 14px;
  line-height: 24px;
  margin: 0;
  padding: 0;
  opacity: 0.7;
}

/* Responsividade para alinhamento */
@media only screen and (max-width: 767px) {
  .advance__two--search__items .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    padding: 10px 14px;
  }
  
  .advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 1px 2px 1px 0;
    padding: 3px 6px;
    font-size: 11px;
  }
  
  .advance__two--search__items .select2-container--default .select2-selection--multiple .select2-search__field {
    min-width: 80px;
    font-size: 13px;
  }
}

/* Garantir que todos os labels tenham exatamente o mesmo alinhamento */
.advance__two--search__items label[class*="label"] {
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #495057 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
  padding-left: 12px !important;
  display: block !important;
  line-height: 1.2 !important;
}

.advance__two--search__items label[class*="label"]::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  background: var(--color-hover) !important;
  border-radius: 50% !important;
}

/* Remover margens extras dos containers account__form--input */
.advance__two--search__items .account__form--input {
  margin-bottom: 0 !important;
}

.advance__two--search__items .account__form--input__label {
  margin-bottom: 8px !important;
}

/* Remover classes mb-6 que podem estar causando desalinhamento */
.advance__two--search__items .mb-6 {
  margin-bottom: 8px !important;
}

/* Garantir que todos os campos tenham a mesma altura */
.advance__two--search__items .advance__search--input,
.advance__two--search__items .advance__search--select,
.advance__two--search__items .select2-container--default .select2-selection--multiple,
.advance__two--search__items .account__form--input__field {
  min-height: 48px;
  box-sizing: border-box;
}

/* Alinhamento vertical dos campos */
.advance__two--search__items {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

/* Espaçamento consistente entre label e campo */
.advance__two--search__items .advance__search--label,
.advance__two--search__items .account__form--input__label {
  margin-bottom: 8px;
}

/* Garantir que os campos tenham o mesmo padding */
.advance__two--search__items .advance__search--input,
.advance__two--search__items .advance__search--select,
.advance__two--search__items .account__form--input__field {
  padding: 12px 16px;
}

/* Melhorar a aparência dos campos select */
.advance__two--search__items .advance__search--select {
  line-height: 1.4;
  font-size: 14px;
  padding: 12px 40px 12px 16px;
  background-position: right 16px center;
  background-size: 16px;
  height: 48px;
  display: flex;
  align-items: center;
}

/* Ajustar o padding do Select2 para alinhar com outros campos */
.advance__two--search__items .select2-container--default .select2-selection--multiple {
  padding: 12px 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* Garantir que todos os campos tenham a mesma altura */
.advance__two--search__items .advance__search--input,
.advance__two--search__items .advance__search--select,
.advance__two--search__items .select2-container--default .select2-selection--multiple,
.advance__two--search__items .account__form--input__field {
  min-height: 48px;
  box-sizing: border-box;
}

/* Melhorar o alinhamento das tags dentro do Select2 */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0;
  line-height: 1.4;
  min-height: 24px;
}

/* Ajustar o campo de busca para ficar alinhado */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-search__field {
  margin: 0;
  padding: 0;
  min-width: 120px;
  height: 24px;
  line-height: 24px;
  font-size: 14px;
  color: #495057;
  background: transparent;
  border: none;
  outline: none;
}

/* Placeholder do Select2 */
.advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #6c757d;
  font-size: 14px;
  line-height: 24px;
  margin: 0;
  padding: 0;
  opacity: 0.7;
}

/* Responsividade para alinhamento */
@media only screen and (max-width: 767px) {
  .advance__two--search__items .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    padding: 10px 14px;
  }
  
  .advance__two--search__items .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 1px 2px 1px 0;
    padding: 3px 6px;
    font-size: 11px;
  }
  
  .advance__two--search__items .select2-container--default .select2-selection--multiple .select2-search__field {
    min-width: 80px;
    font-size: 13px;
  }
}

/* Estilos específicos para campos select dentro dos containers de filtro */
.advance__two--search__items .advance__search--select {
  opacity: 1 !important;
  color: #495057 !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linecap='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.advance__two--search__items .advance__search--select:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.advance__two--search__items .advance__search--select:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.advance__search--select:focus {
  border-color: var(--color-hover);
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1);
  outline: none;
  transform: translateY(-1px);
}

/* ===== CORREÇÃO DE CONTRASTE PARA CAMPOS SELECT ===== */
/* Sobrescrever a opacidade problemática do style.css */
.advance__search--select {
  opacity: 1 !important;
  color: #495057 !important;
}

.advance__two--search__items .advance__search--select {
  opacity: 1 !important;
  color: #495057 !important;
}

.advance__search--select option {
  opacity: 1 !important;
  color: #495057 !important;
  background-color: #ffffff !important;
}

.advance__search--select option:hover {
  background-color: #f8f9fa !important;
}

.advance__search--select option:checked {
  background-color: #e9ecef !important;
  color: #495057 !important;
}

.advance__search--select[name="tipo"],
.advance__search--select[name="dormitorio"],
.advance__search--select[name="bairro"] {
  opacity: 1 !important;
  color: #495057 !important;
}

.advance__search--select,
.advance__search--select option,
.advance__search--select optgroup {
  color: #495057 !important;
  background-color: #ffffff !important;
}

.advance__search--select:not([value=""]),
.advance__search--select:not([value="0"]) {
  color: #495057 !important;
  font-weight: 500 !important;
}

/* Garantir que todos os campos select tenham contraste adequado */
.advance__search--select {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border: 2px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #495057 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  cursor: pointer !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linecap='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  padding-right: 40px !important;
  opacity: 1 !important;
}

.advance__search--select:focus {
  border-color: var(--color-hover) !important;
  box-shadow: 0 0 0 3px rgba(245, 169, 83, 0.1) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.advance__search--select:hover {
  border-color: #ced4da !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
} 

/* Estilos específicos para os selects de tipos e bairros - correção de cor */
#tipoSelect, #bairroSelect {
  color: #495057 !important;
  background-color: #ffffff !important;
}

/* Container do Select2 para tipos e bairros */
.select2-container--default .select2-selection--multiple {
  background-color: #ffffff !important;
  border: 2px solid #e9ecef !important;
  border-radius: 12px !important;
  color: #495057 !important;
}

/* Texto renderizado no Select2 */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: #495057 !important;
}

/* Placeholder do Select2 */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #6c757d !important;
}

/* Campo de busca do Select2 */
.select2-container--default .select2-selection--multiple .select2-search__field {
  color: #495057 !important;
  background-color: transparent !important;
}

/* Opções do dropdown do Select2 */
.select2-container--default .select2-results__option {
  color: #495057 !important;
  background-color: #ffffff !important;
}

/* Opção destacada no dropdown */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #f8f9fa !important;
  color: #495057 !important;
}

/* Opção selecionada no dropdown */
.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #e9ecef !important;
  color: #495057 !important;
}

/* Dropdown do Select2 */
.select2-dropdown {
  background-color: #ffffff !important;
  border: 2px solid #e9ecef !important;
  color: #495057 !important;
}

/* Garantir que as opções tenham cor preta */
.select2-container--default .select2-results__option {
  color: #495057 !important;
}

.select2-container--default .select2-results__option:hover {
  background-color: #f8f9fa !important;
  color: #495057 !important;
}

/* Responsividade para os selects */
@media only screen and (max-width: 767px) {
  #tipoSelect, #bairroSelect {
    font-size: 13px !important;
  }
  
  .select2-container--default .select2-selection--multiple {
    font-size: 13px !important;
  }
  
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 11px !important;
    padding: 3px 6px !important;
  }
}

/* ESTILOS ESPECÍFICOS PARA AS TAGS/CHOICES SELECIONADAS */
/* Tags individuais que aparecem na caixa após seleção */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 6px !important;
  color: #495057 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 4px 8px !important;
  margin: 2px 4px 2px 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

/* Hover nas tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
  background-color: #e9ecef !important;
  color: #495057 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Botão de remover (X) nas tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #6c757d !important;
  margin-right: 6px !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
}

/* Hover no botão de remover */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #dc3545 !important;
  transform: scale(1.1) !important;
}

/* Texto dentro das tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice span {
  color: #495057 !important;
}

/* Garantir que o texto das tags seja sempre preto */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  color: #495057 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice * {
  color: #495057 !important;
}