.main-pesquisa{
    padding-top: 50px;
}

.pesquisa-input{
    width: 75%;
    outline: none;
    margin: 0;
    padding: 5px;
    padding-left: 0px;
    border: none;
    border: 1px solid black;
    border-left: none;
    border-right: none;
    max-width: 600px;
}

.inputCont{max-width: 700px;}

.pesquisa-btn{
    background-color: transparent;
    margin: 0;
    padding-bottom: 5px;
    color: white;
    border: none;
    border: 1px solid black;
    border-left: none;
    width: 60px;
}

.resultados-main{
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 500px;
    height: auto;
}

.ferramentas{
    position: relative;
    color: black;
    height: auto;
    max-height: 100vh;
    overflow: hidden;
}

.ferramentas-movel{
    color: black;
    max-width: 400px;
    background-color: white;
    transform: translateX(0%);
    transition: 0.5s;
    z-index: 1055;
    height: 100%;
}

.ferramenta-pesq{
    position: relative;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #495057;
}

/* Largura da barra de scroll */
.ferramenta-pesq::-webkit-scrollbar {
  width: 2px; /* Largura da barra vertical */
  height: 2px; /* Altura da barra horizontal (opcional) */
}

/* Cor de preenchimento da barra */
.ferramenta-pesq::-webkit-scrollbar-thumb {
  background-color: #336699; /* Cinza médio */
  border-radius: 0px;
}

/* Cor de hover da barra */
.ferramenta-pesq::-webkit-scrollbar-thumb:hover {
  background-color: #336699; /* Cinza mais escuro */
}

.ferramenta-pesq-movel{
    height: 90%;
    position: relative;
    scrollbar-width: none;
    overflow-y: auto;
}

.search-filter{
    outline: none;
    padding: 10px;
    padding-left: 10px;
    width: 100%;
    font-size: 20px;
    border: 1px solid black;
    margin-bottom: 10px;
}

.filter-result-table{
    list-style-type: none;
}

.resultados-lista{
    position: relative;
    padding: 5px;
    padding-top: 8px;
    text-align: center;
    font-size: 15px;
    transition: 0.3s;
    cursor: pointer;
}

.resultados-lista:hover{
    background-color: #455769;
    color: white;
}

.filtro-label {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}

/* --- Estilos para Botões de Ícone (Tipo de Imóvel/Transação) --- */
.radio-tipo {
    border: 2px solid transparent;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px; /* Largura fixa para alinhamento */
    height: 100px; /* Altura fixa */
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

.radio-tipo .icon-container {
    position: relative;
    width: 40px;
    height: 40px;
    margin-bottom: 0.25rem;
}

.radio-tipo .img-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.radio-tipo .img-icon-frente {
    opacity: 1;
}

.radio-tipo:hover .img-icon-frente {
    opacity: 0; /* Esconde a imagem da frente no hover */
}

.radio-tipo .p-tipo {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    transition: color 0.3s ease;
}

.radio-tipo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #4f94da; 
}

.radio-tipo:hover .p-tipo {
    color: #fff;
}

/* ESTADO SELECIONADO para os botões de ícone */
.radio-tipo.selecionado {
    background-color: #336699;
    border-color: #336699;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-tipo.selecionado .p-tipo {
    color: #fff;
    font-weight: 600;
}

.radio-tipo.selecionado .img-icon-frente {
    opacity: 0;
}

/* --- Estilos para Filtros de Número (Quartos/Banheiros) --- */
.quartos-filtro, .banheiros-filtro {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #e9ecef;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quartos-filtro:hover, .banheiros-filtro:hover {
    background-color: #4f94da; /* Ciano do Bootstrap */
    color: #fff;
    transform: scale(1.1);
}

/* ESTADO SELECIONADO para Quartos/Banheiros */
.quartos-filtro.selecionado, .banheiros-filtro.selecionado {
    background-color: #336699;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Estilos para Inputs de Faixa (Preço/Área) --- */
.faixa-search.form-control {
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faixa-search.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- Estilos para Filtros Expansíveis (Lazer/Segurança) --- */
.expnd-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.expnd-btn:hover {
    background-color: #e9ecef;
}

.expnd-btn .icone-seta {
    transition: transform 0.4s ease;
}

/* Rotação da seta quando expandido - Adicione a classe 'ativo' no JS */
.expnd-btn.ativo .icone-seta {
    transform: rotate(180deg);
}

.expandivel {
    display: none; /* Começa escondido */
    padding: 0.5rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lazer-item {
    padding: 0.5rem 1rem;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lazer-item:hover {
    background-color: #0dcaf0;
    color: #fff;
}

/* ESTADO SELECIONADO para itens de lazer/segurança */
.lazer-item.selecionado {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 500;
}

.result-identificador{
    display: none;
    position: absolute;
    font-size: 11px;
    left: 5px;
    top: 0;
}

.resultcontainer{
    position: absolute;
    z-index: 1;
    background-color: white;
    max-height: 200px;
    overflow-y: scroll;
}



/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.abrir{
    height: 150px;
    overflow-y: auto;
}

.icone-seta{
    width: 40px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    right: 0;
    transition: 0.5s;
}

.gira{transform: translateY(-50%) rotate(-90deg);}
.pers{opacity: 1 !important;}

.resultados-imoveis{
    position: relative;
    width: 70%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
    gap: 10px; /* Espaço entre itens */
}

/* Ou usando media query para controle mais preciso */
@media (max-width: 800px) {
    .flex-item {
      flex: 0 0 100%;
    }
  }

.ferramentas-off{
    position: fixed;
    top: 0;
    z-index: 1020;
    width: 100%;
    height: 100%;
    scrollbar-width: none;
    transform: translateX(0%);
    opacity: 1;
    transition: 0.5s;
    display: none;
}

.zona-morta{
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    width: 100%;
    height: 100%;
}

.desaparecer{opacity: 0;}

.tiraTela{
    transform: translateX(-100%);
}

.fecha-filtro{
    position: absolute;
    right: 20px;
    top: 20px;
}

.on-filtro{
    padding-left: 5px;
    background-color: transparent;
    border: 1px solid black;
    border-right: none;
}

.linha{
    border: 1px solid black;
    border-left: none;
    height: 60%;
    margin-left: 5px;
}

.off-filtro{
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    cursor: pointer;
}

.result-item{
    position: relative;
    flex: 1 0 calc(20% - 10px); /* 4 itens por linha com gap */
    min-width: 350px; /* Quebra quando não couber 200px */
    max-width: 800px;
    height: fit-content;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 2rem;
    transition: 0.3s ease-in-out;
}

.result-item:hover{
    box-shadow: var(--bs-box-shadow);
}


.tagsGeral{
    position: relative;
    height: 35px;
    overflow-x: scroll;
    scrollbar-width: none;
    gap: 5px;
    &::-webkit-scrollbar {
        display: none;
    }
}

.proxIten{
    position:absolute ;
    padding: 5px;
    font-size: 22px;
    right: 0px;
    width: 70px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: #ffffff;
background: linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 80%);
}

.itensDisp{
    
}

.itenGeral{
    position: relative;
    width: fit-content;
    padding: 5px;
    text-wrap: nowrap;
    background-color: #336699;
    color: white;
   
}

.modelo{display: none !important;}

.miniatura-conteudo{
    position: relative;
    border-left: none;
    height: auto;
}

.miniatura-imovel{
    position: relative;
    width: 50%;
    height: 250px;
    overflow: hidden;
    border-right: none;
    border-left: none;
}

.miniatura-container{
    position: relative;
    width: 100%;
    height: 100%;
}

.miniatura-img{
    position: relative;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.miniatura-infos{
    position: relative;
    width: 60%;
    height: 100%;
    margin-top: 1rem;
}

.miniatura-tags{
   display: flex;
  
}

.tags{
    height: fit-content;
    margin: 5px;
}

.miniatura-valores{
    
}

.valor{
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
}

.valor-anuncio{
    margin: 0;
    font-size: 1.4rem !important;
    font-weight: bold;
    margin-left: 10px;
}

.valor-tipo{
    position: relative;
    width: fit-content;
    background-color: #198754;
    color: white;
    padding: 5px;
    font-size: 18px;
}

.titulo-movel{
    display: none;
}
.titulo-desktop{display: none;}

.miniatura-desc, .miniatura-titulo{
    position: relative;
    height: fit-content;
    max-height: 90px;
    display: -webkit-box;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Número de linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slideBtns {
    position: absolute;
    top: 0%;
    color:  #fff;
    border: none;
    padding: 8px;
    cursor: pointer;
    height: 100%;
    font-size: 38px;
    transition: 0.3s;
    width: 80px;
    background: transparent;
}

.residencia{
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 2px;
    padding-left: 4px;
    padding-right: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    font-size: 1rem;
}

.favorite-btn {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 0% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.favorite-btn-box{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 0% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.pages, .paginacao-main {gap: 5px !important;}

.pageItem{
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(49, 49, 49);
    font-size: 18px;
    align-content: center;
    text-align: center;
    transition: 0.3s;
}

.pageItem:hover{background-color: #666666;color: white;}
.pageItem.selec{background-color: #64809C;color: white;}

.resultadosInfo{
    position: absolute;
    left: 0;
    top: 0;
    color: #666666;
    font-style: italic;
}

.sumir{display:none}

.localBtn{
  background-color: white;
  text-wrap: nowrap;
  border: none;
  transition: 0.3s;
}

.localBtn:hover:not(.activeLocal){
  background-color: #8a8a8a;
  color: white;
}

.activeLocal{
  background-color: #4f94da;
  color: white;
}

  .loadScreen{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    top: 0;
    left: 0;
    z-index: 999;
  }

  .loadAniHolder{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
  }

  .contBtn{
    background-color: white;
    width: 55px;
    height: 55px;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px !important;
    transition: 0.2s ease-in-out;
  }

  .dir{transform: translateX(150%);}
  .esq{transform: translateX(-150%);}

  .slideBtns:hover{
    width: 70px;
}

.slide.indo-left {
  animation: slideOutLeft 0.5s forwards;
}

.slide.indo-right {
  animation: slideOutRight 0.5s forwards;
}

/* Animações de entrada */
.slide.vindo-right {
  animation: slideInRight 0.5s forwards;
}

.slide.vindo-left {
  animation: slideInLeft 0.5s forwards;
}

@keyframes slideOutLeft {
  to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideOutRight {
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.result-item:hover .contBtn{transform: translateX(0%);}

.mini-slideshow{
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: pan-y; /* Permite scroll vertical mas bloqueia horizontal */
    user-select: none; /* Previne seleção de texto durante swipe */
}

.slide{
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.5s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}


.property-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bs-box-shadow);
}

.property-image-container {
    height: 250px;
    background-color: #f8f9fa;
    position: relative;
    flex-shrink: 0;
}

.property-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Conteúdo dos Cards */
.property-details {
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-details h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.badge {
    font-weight: 500;
}

/* Descrição e Interação */
.description {
    flex-grow: 1;
    margin: 1rem 0;
    line-height: 1.5;
    overflow: hidden;
    position: relative;
    max-height: 100px;
    transition: max-height 0.3s ease;
}

.description.expanded {
    max-height: none;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    cursor: pointer;
    color: #0d6efd;
    font-weight: 500;
}

/* Botões de Controle */
.control-buttons {
    margin-top: auto;
    padding-top: 1.5rem;
}

.btn-group {
    gap: 0.5rem;
}

.btnA {
    flex: 1;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 500px) {
    .anuncios-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .property-image-container {
        height: 200px;
    }
    
    .btnA {
        padding: 0.5rem;
    }
}

@media (min-width: 501px) and (max-width: 1023px) {
    .anuncios-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

@media (min-width: 1024px) {
    .anuncios-grid {
        grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    }
    
    .property-image-container {
        height: 300px;
    }
}

/* Ajustes para telas muito grandes */
@media (min-width: 1600px) {
    .anuncios-grid {
        grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    }
}

  .contBtn{
    background-color: white;
    width: 55px;
    height: 55px;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px !important;
    transition: 0.2s ease-in-out;
    box-shadow: var(--bs-box-shadow);
  }

  .dir{transform: translateX(150%);}
  .esq{transform: translateX(-150%);}


.slide.indo-left {
  animation: slideOutLeft 0.5s forwards;
}

.slide.indo-right {
  animation: slideOutRight 0.5s forwards;
}

/* Animações de entrada */
.slide.vindo-right {
  animation: slideInRight 0.5s forwards;
}

.slide.vindo-left {
  animation: slideInLeft 0.5s forwards;
}

@keyframes slideOutLeft {
  to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideOutRight {
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.property-card:hover .contBtn{transform: translateX(0%);}

.mini-slideshow{
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: pan-y; /* Permite scroll vertical mas bloqueia horizontal */
    user-select: none; /* Previne seleção de texto durante swipe */
}

.slide{
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.5s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slideBtns {
    position: absolute;
    top: 0%;
    color:  #fff;
    border: none;
    padding: 8px;
    cursor: pointer;
    height: 100%;
    font-size: 38px;
    transition: 0.3s;
    width: 80px;
    background: transparent;
}

@keyframes delIten {
    0%{transform: translateX(0%); opacity: 1;}
    50%{transform: translateX(-20%); opacity: 1;}
    100%{transform: translateX(100%);opacity: 0;}
}

.delAni{
    transform: translateX(0%);
    opacity: 1;
    animation-name: delIten;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.mini-engaj-inf{
    position: absolute;
    right: 0;
    top: 0;
    width: fit-content;
}

.anuncios-grid {
    display: grid;
    gap: 2rem;
    
    max-width: 1600px;
    margin: 0 auto;
}

.badge{border-radius: 0px;}

.anuncios-list{
    height: fit-content;
    position: relative;
    width: 100%;
}

.badge{
    border-radius: 0px !important;
    color: white !important;
    align-content: center;
}

.itensBtn{
    padding: 0 !important;

}

.shareBtn{
    display: flex;
    position: absolute;
    align-items: center;
    right: 0;
    top: -10px;
    border-radius: 0;
}

.shareBtn:hover{
    background-color: #8a8a8a;
    color: white;
}

.btn{border-radius: 0 !important;}
.modal-content{border-radius: 0 !important;}
.btnShare{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    width: 60px;
    height: 60px;
}

 /* Elemento principal da sidebar */
#offcanvasSidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%; /* Largura padrão para mobile */
    max-width: 500px; /* Largura máxima */
    transform: translateX(-100%);
    z-index: 1050;
    background-color: white;
    box-shadow: 3px 0 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    overflow-y: scroll;
}

/* Classe para quando estiver aberta */
#offcanvasSidebar.show {
    transform: translateX(0);
}

/* Overlay para fundo quando sidebar aberta */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease; /* Duração deve corresponder ao JS */
}

/* Área sensível ao arraste na borda da tela */
.drag-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px; /* Largura da área sensível */
    height: 100%;
    z-index: 1000;
}

@media (min-width: 768px) {
    /* Em desktop escondemos a área de arraste */
    .drag-area {
        display: none;
    }
}

.aba-lateral::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}

.aba-lateral {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  overflow-y: hidden;
}