.container-filtros-veiculos {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding: 20px;
}

/* ====================== */
/* FILTROS - DESKTOP */
/* ====================== */
.filtros {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  height: max-content;
}

.filtros h3 {
  color: #fff;
  margin-bottom: 10px;
  padding: 10px;
}

.filtros label {
  color: #ccc;
  display: block;
  margin-top: 10px;
}

.filtros select,
.filtros input {
  width: 95%;
  padding: 8px;
  margin-top: 5px;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
}

.filtros button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #ffd000;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.filtros button:hover {
  background: #ffcc00;
}

/* ====================== */
/* LISTA DE VEÍCULOS */
/* ====================== */
.lista-veiculos {
  flex-grow: 1;
}

.header-lista {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-veiculo {
  display: flex;
  background: #1a1a1a;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.img-veiculo img {
  width: 250px;
  height: 180px;
  object-fit: cover;
}

.info-veiculo {
  padding: 15px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.info-veiculo h2 {
  margin: 0;
  font-size: 1.4rem;
}

.preco {
  color: #ffd000;
  font-size: 1.2rem;
  margin: 10px 0;
}

.detalhes span {
  margin-right: 10px;
  font-size: 0.9rem;
}

.botao-detalhes {
  background: #ffd000;
  color: #000;
  padding: 8px 15px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  border-radius: 5px;
}

.botao-detalhes:hover {
  background: #ffcc00;
}

/* ====================== */
/* BOTÃO FILTROS MOBILE */
/* ====================== */
#botao-filtros {
  display: none;
  background: #ffd000;
  color: #000;
  padding: 10px 15px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  margin-bottom: 15px;
  cursor: pointer;
}

/* ====================== */
/* RESPONSIVIDADE */
/* ====================== */
@media (max-width: 992px) {
  .container-filtros-veiculos {
    flex-direction: column;
  }

  /* Formulário agora fica no topo como buscador */
  .filtros {
    position: relative; /* Não mais fixed */
    top: auto;
    left: auto;
    width: 90%;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px; /* Espaço entre form e carros */
  }

  #botao-filtros {
    display: none; /* Não precisamos do botão para abrir/fechar */
  }

  .card-veiculo {
    flex-direction: column;
  }

  .img-veiculo img {
    width: 100%;
    height: 220px;
  }
}

/* ====================== */
/* RESPONSIVIDADE */
/* ====================== */
@media (max-width: 600px) {
  .img-veiculo img {
    height: 180px;
  }

}