.search-form-sticky {
  position: sticky;
  top: 80px;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 10px 15px 15px;
  transition: all 0.3s ease;
}

.search-form-sticky.scrolled {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

/* GRID DE FILTROS */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 0px;
  max-height: calc(88vh - 80px);
  overflow-y: auto;
  padding: 5px 10px 5px 5px;
}

/* ESTILIZAÇÃO DO DROPDOWN */
.filter-dropdown {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.filter-dropdown:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ltn__widget-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding: 12px 16px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* BOTÃO DO DROPDOWN */
.filter-dropbtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #495057;
  font-size: 14px;
}

.filter-dropbtn:hover {
  background: #fff;
  border-color: var(--cor-site-1);
}

.filter-dropdown.active .filter-dropbtn {
  background: #fff;
  border-color: var(--cor-site-1);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.filter-dropbtn span {
  flex: 1;
  text-align: left;
}

/* SETA DO DROPDOWN */
.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #495057;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.filter-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* CONTEÚDO DO DROPDOWN */
.filter-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--cor-site-1);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.filter-dropdown.active .filter-dropdown-content {
  max-height: 350px;
  overflow-y: auto;
  opacity: 1;
}

/* LISTA DE CAIXAS DE SELEÇÃO */
.checkbox-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkbox-list li {
  border-bottom: 1px solid #f1f3f5;
}

.checkbox-list li:last-child {
  border-bottom: none;
}

/* OPÇÕES DO DROPDOWN */
.dropdown-option,
.busca-dropdown-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
  padding-left: 40px;
  margin: 0;
  user-select: none;
  font-size: 14px;
}

.dropdown-option:hover,
.busca-dropdown-option:hover {
  background: #f8f9fa;
}

.dropdown-option input,
.busca-dropdown-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* CHECKBOX PERSONALIZADO */
.dropdown-checkmark,
.busca-dropdown-checkmark {
  position: absolute;
  left: 16px;
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dropdown-option:hover .dropdown-checkmark,
.busca-dropdown-option:hover .busca-dropdown-checkmark {
  border-color: var(--cor-site-1);
}

.dropdown-option input:checked ~ .dropdown-checkmark,
.busca-dropdown-option input:checked ~ .busca-dropdown-checkmark {
  background-color: var(--cor-site-1);
  border-color: var(--cor-site-1);
}

/* ÍCONE DE MARCAÇÃO */
.dropdown-checkmark:after,
.busca-dropdown-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  top: 1.26px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dropdown-option input:checked ~ .dropdown-checkmark:after,
.busca-dropdown-option input:checked ~ .busca-dropdown-checkmark:after {
  display: block;
}

.search-by-code {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-by-code:focus {
  outline: none;
  border-color: var(--cor-site-1);
}

.botao-submit {
  padding: 10px 16px;
  background: var(--cor-site-1);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.botao-submit:hover {
  background: #0056b3;
}

.botao-submit svg {
  width: 20px;
  height: 20px;
}

/* CAMPOS DE VALOR */
.money-mask {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  margin: 0 16px 12px;
  max-width: calc(100%);
}

.money-mask:focus {
  outline: none;
  border-color: var(--cor-site-1);
}

/* BARRA DE ROLAGEM PERSONALIZADA */
.filter-dropdown-content::-webkit-scrollbar {
  width: 8px;
}

.filter-dropdown-content::-webkit-scrollbar-track {
  background: #f1f3f5;
  border-radius: 0 0 6px 0;
}

.filter-dropdown-content::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}

.filter-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* BADGE DE SELEÇÃO */
.filter-dropbtn .selection-badge {
  display: inline-block;
  background: var(--cor-site-1);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.caracteristicas-section .ltn__widget-title {
  color: var(--cor-site-1);
  border-bottom: 2px solid var(--cor-site-1);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.caracteristica-group {
  background: #fff;
  padding: 0px 0px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.caracteristica-group .ltn__widget-title {
  font-size: 13px;
  padding: 0 0 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
  color: #495057;
}

.caracteristica-group .checkbox-list li {
  border: none;
}

.caracteristica-group .busca-dropdown-option {
  padding: 8px 8px 8px 32px;
  font-size: 13px;
}

.caracteristica-group .busca-dropdown-checkmark {
  left: 8px;
  width: 16px;
  height: 16px;
}

/* CONTADOR DE CARACTERÍSTICAS */
.carac-count {
  color: #6c757d;
  font-size: 12px;
  font-weight: normal;
}

/* BOTÕES DE AÇÃO */
.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #e9ecef;
}

.clear-filters-btn,
.submit-filters-btn {
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.clear-filters-btn {
  background: var(--cor-site-0);
  color: white;
}

.clear-filters-btn:hover {
  background: var(--cor-site-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-filters-btn {
  background: #28a745;
  color: white;
}

.submit-filters-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* TOGGLE PARA CARACTERÍSTICAS */
.toggle-caracteristicas {
  text-align: center;
  padding: 15px;
  background: #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.toggle-caracteristicas:hover {
  background: #dee2e6;
}

.toggle-caracteristicas i {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.toggle-caracteristicas.active i {
  transform: rotate(180deg);
}

.caracteristicas-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.caracteristicas-content.show {
  max-height: 100%;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .search-form-sticky {
    position: relative;
    top: 0;
  }

  .filters-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .caracteristicas-grid {
    grid-template-columns: 1fr;
  }

  .filter-dropdown-content {
    top: auto;
    max-height: 50vh;
  }

  .action-buttons {
    flex-direction: column;
  }

  .clear-filters-btn,
  .submit-filters-btn {
    width: 100%;
  }
}

/*ESTILIZAÇÃO PARA OS FILTROS DE BUSCA VERSÃO MOBILE*/

.popover-header {
  margin-right: 0.25rem;
  color: white !important;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  font-size: 1rem;
  background-color: var(--cor-site-1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.popover-header {
  margin-right: 0.25rem;
  color: white !important;
  padding: 2% 5%;
  margin-bottom: 10px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
  width: 111%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

button.close {
  margin-right: 15px;
  font-size: 20px;
  width: 30px;
  border-radius: 7px;
}

.busca-mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--cor-site-1);
  border-radius: 15px 15px 0 0;
  height: 65px;
  box-shadow: 0 0 20px rgb(0 0 0 / 25%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 5;
  padding: 0 4px;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  pointer-events: auto;
}

.footer-btn {
  width: 45%;
  height: 45px;
  background: linear-gradient(to right, #f2f2f2, #fafafa, #f2f2f2);
  color: var(--cor-site-5);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.filtro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: background 0.2s, opacity 0.2s;
}
.filtro-overlay.active {
  background: rgba(0, 0, 0, 0.34);
  opacity: 1;
  pointer-events: auto;
}

.busca-dropdown {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  z-index: 4;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  border-radius: 15px 15px 0px 0px;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.busca-dropdown.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.busca-dropdown.closing {
  opacity: 0;
  pointer-events: none;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0s;
}

.busca-dropdown .dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 0 16px;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
}

.dropdown-header > span {
  align-items: center;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  color: var(--cor-site-5);
}

.busca-dropdown .close-dropdown {
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--cor-site-1);
  cursor: pointer;
  max-height: 50px;
  transform: translateY(-18px);
}
.busca-dropdown .dropdown-content {
  padding: 16px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.dropdown-menu.show {
  overflow-y: auto;
  box-shadow: 0px 0px 10px #0000002e;
  border-radius: 18px;
}

.busca-mobile-footer {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
}

.busca-mobile-footer.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.footer-btn {
  width: 45%;
  height: 45px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.ltn__header-area {
  z-index: 3 !important;
}

.ltn__utilize.ltn__utilize-mobile-menu.ltn__utilize-open {
  z-index: 99999999 !important;
}

#btnShowBusca {
  right: 10px !important;
  width: 55px !important;
  height: 55px !important;
}

#btnBackToTop {
  right: 21px;
  bottom: 95px;
  width: 55px !important;
  height: 55px !important;
}

.wts-button {
  width: 55px !important;
  height: 55px !important;
}

.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
  position: absolute;
  display: inline-block;
  right: 15px !important;
  top: 7px !important;
}

/*ESTILIZAÇÃO PARA O DROPDOWN DA BUSCA MOBILE*/

#btnShowBusca {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 16px;
  width: 60px;
  height: 60px;
  bottom: 15px;
  z-index: 9999;
  background: var(--cor-site-1);
  color: var(--cor-site-4);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  padding: 12px;
  cursor: pointer;
  outline: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s,
    border 0.2s, box-shadow 0.2s;
}

#btnShowBusca.visible {
  opacity: 1;
  pointer-events: auto;
}

.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#btnShowBusca:hover,
#btnShowBusca:focus {
  box-shadow: 0 6px 18px rgba(25, 118, 210, 0.12);
}

#btnShowBusca svg {
  display: block;
  margin: auto;
  color: var(--cor-site-4);
  width: 28px;
  height: 28px;
}

#btnShowBusca:active {
  border-color: var(--cor-site-4);
}

#btnBackToTop {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  width: 55px !important;
  height: 55px !important;
  z-index: 3;
  background: #f4f4f4;
  color: var(--cor-site-1);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  border: 2px solid var(--cor-site-1) !important;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

#btnBackToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

#btnBackToTop:hover,
#btnBackToTop:focus {
  background: var(--cor-site-1);
  color: var(--cor-site-4);
}

#buscaDropdown {
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.23s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  pointer-events: none;
}

#buscaDropdown.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#buscaDropdown.closing {
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
}

/*ESTILIZAÇÃO DA NOVA BUSCA PARA DESKTOP*/

.widget:last-child {
  margin-bottom: 0;
  padding: 20px 19px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background-color: #fff;
  border: none !important;
  overflow-y: auto;
  max-height: 98vh;
}

.widget.ltn__menu-widget {
  display: flex;
  flex-direction: column;
  height: 97vh;
}

.busca-fixa {
  position: sticky;
  top: 10px;
  align-self: flex-start;
  padding-right: 11px;
  z-index: 10;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.posicao-fixada {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: #fff;
  padding: 16px 0 0 0;
}

.busca-para-desktop {
  position: sticky;
  top: 0;
}

/*NOVA ESTILIZAÇÃO PARA OS BOTÕES DE COMPARTILHAR E REINICIAR BUSCA*/

.btn {
  margin-right: 3px !important;
}
.widget.ltn__menu-widget {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background-color: #fff;
  border: none !important;
  overflow: hidden;
}
.busca-fixa {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: unset;
}
.posicao-fixada {
  flex: 0 0 auto;
  padding-top: 0 !important;
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: #fff;
  padding: 8px 0 4px 0;
  margin-bottom: 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.03);
}
.posicao-fixada .btns-row {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.posicao-fixada .btns-row .btn {
  min-width: 135px;
  width: max-content;
  border-radius: 4px;
  padding: 11px 5px;
  color: white;
  background: var(--cor-site-2);
}
.posicao-fixada .btns-row .btn:hover {
  background: var(--cor-site-3);
}

/*AJUSTE DO BOTÃO BACK TO TOP PARA NÃO SOBREPOR O BOTÃO DE BUSCA MOBILE*/
@media (max-width: 768px) {
  .back-to-top {
    bottom: 130px;
  }
  .whatsapp-container {
    bottom: 70px;
    right: 10px;
  }
}

input#valorMinimoDesktop,
input#valorMaximoDesktop,
input#valorMinimoMobile,
input#valorMaximoMobile {
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  background-color: #fff;
  padding: 12px 16px !important;
  color: #333 !important;
  margin-bottom: 0px !important;
  margin: auto 0px;
  box-shadow: none;
}
