/* ================================
   RESET E COMPORTAMENTO GLOBAL
================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

:root {
  color-scheme: light only;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}


/* ================================
   LINKS E ÂNCORAS
================================== */
a {
  text-decoration: none;
  color: inherit;
}

a:visited,
a:active,
a:hover {
  color: inherit;
}


/* ================================
   FONTES CUSTOMIZADAS
================================== */
@font-face {
  font-family: 'Spectral';
  src: url('/static/fonts/spectral/Spectral-ExtraLight.woff2') format('woff2'),
    url('/static/fonts/spectral/Spectral-ExtraLight.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Spectral';
  src: url('/static/fonts/spectral/Spectral-Regular.woff2') format('woff2'),
    url('/static/fonts/spectral/Spectral-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Spectral';
  src: url('/static/fonts/spectral/Spectral-Bold.woff2') format('woff2'),
    url('/static/fonts/spectral/Spectral-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}


/* ================================
   TELA DE CARREGAMENTO
================================== */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1d1d1d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.logo-animate {
  width: 100px;
  height: auto;
}

.logo-animate path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}



/* ================================
   CONTAINER PRINCIPAL
================================== */
.conteudo-pesquisa {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}


/* ================================
   FILTROS (mobile-first)
================================== */
.filtros {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-align: center;
  margin-right: 4vw;
  margin-left: 4vw;

}

.btn-toggle-filtros {
  background-color: #1d1d1d;
  color: white;
  display: block;
  padding: 3vw 17vw;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 auto;
}

.filtros-conteudo {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.filtros.ativo .filtros-conteudo {
  display: flex;
}

.filtros h3 {
  font-size: 1.2rem;
  font-weight: 700;
}


/* ================================
   CAMPOS DE FILTRO
================================== */
.campo {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.campo label {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  text-align: left;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.campo input,
.campo select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}


/* ================================
   PREÇO DINÂMICO
================================== */
.campo-preco-dinamico {
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.6rem;
  background: white;
  width: 100%;
  font-size: 0.95rem;
  color: #333;
}

.preco-digitavel {
  outline: none;
  white-space: nowrap;
}

.preco-digitavel:empty::before {
  content: attr(data-placeholder);
  color: #999;
  pointer-events: none;
}


/* ================================
   BOTÕES DE FORMULÁRIO
================================== */
.grupo-botoes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-filtrar {
  width: 100%;
  padding: 0.75rem;
  background-color: #1d1d1d;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.btn-filtrar:hover {
  background-color: #333;
}

.btn-limpar {
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  background: #eaeaea;
  border: none;
  text-align: center;
  text-decoration: none;
  color: #333;
  cursor: pointer;
}

.btn-limpar:hover {
  background-color: #ddd;
}


.contador-imoveis {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  text-align: left;
  padding: 1vw 9vw;
  margin-bottom: 1vw
}

/* ================================
   RESULTADOS (IMÓVEIS)
================================== */
.resultados {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

}


/* ================================
   MENSAGEM - NENHUM IMÓVEL
================================== */
.nenhum-encontrado {
  font-size: 1.2rem;
  color: #888;
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}



/* ================================
   TABLET
================================== */
@media (min-width: 768px) {
  .conteudo-pesquisa {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0vw;
    padding: 2vw 2vw 2vw 2vw;
    /* top right bottom left */
    max-width: 100vw;
    margin: 0 auto;
  }

  .filtros {
    position: sticky;
    top: 2rem;
    width: 270px;
    flex-shrink: 0;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    height: fit-content;
    margin: 0;
  }

  .btn-toggle-filtros {
    display: none !important;
  }

  .filtros-conteudo {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
  }


  /* ================================
   CAMPOS DE FILTRO
================================== */
  .campo {
    margin-bottom: 0.5vw;
  }

  .campo label {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .campo input,
  .campo select {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
  }

  .contador-imoveis {
    font-size: 1vw;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding: 0;
    text-align: left;
    line-height: 1;
  }

  .area-resultados {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .resultados {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0 0vw;
  }

  .resultados>* {
    width: auto !important;
    margin: 0 !important;
  }
}




/* ================================
   DESKTOP
================================== */
@media (min-width: 1024px) {
  .conteudo-pesquisa {
    gap: 0vw;
    padding: 2vw 0vw 2vw 2vw;
    /* top right bottom left */
    max-width: 100vw;
    margin: 0 auto;
  }

  .filtros {
    top: 2rem;
    width: 15vw;
    flex-shrink: 0;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin: 0;
  }

  .filtros h3 {
    font-size: 1.2vw;
    font-weight: 700;
  }

  .filtros-conteudo {
    gap: 1vw;
  }


  /* ================================
   CAMPOS DE FILTRO
================================== */
  .campo {
    margin-bottom: 0.5vw;
  }

  .campo label {
    font-weight: 500;
    font-size: 0.95vw;
    margin-bottom: 0.25rem;
  }

  .campo input,
  .campo select {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95vw;
  }

  .contador-imoveis {
    font-size: 1vw;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0;
    line-height: 1;
  }

  .area-resultados {
    flex-grow: 1;
    padding-left: 2vw;
  }

  .resultados {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
    gap: 1vw;
    padding: 0 0vw;
  }

  .resultados>* {
    width: auto !important;
    margin: 0 !important;
  }

}