/* NOVOS ESTILOS VEÍCULOS */

.frota {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #a71930;
  font-weight: 700;
}

.filtros-veiculos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filtro-btn {
  position: relative;
  background: #a71930;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* underline animado */
.filtro-btn::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: width 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Hover ou foco */
.filtro-btn:hover::after,
.filtro-btn:focus::after {
  width: 70%;
}

/* Quando ativo (clicado) → underline sempre visível */
.filtro-btn.active::after {
  width: 70%;
}

.filtro-btn:hover,
.filtro-btn:focus,
.filtro-btn.active {
  background-color: #c40000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  outline: none;
}

.veiculos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.card-veiculo {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s;
}

.card-veiculo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card-veiculo:hover {
  transform: scale(1.05);
}

.card-veiculo h3 {
  padding: 1rem;
  font-size: 1.1rem;
  flex-grow: 1;
}

.card-veiculo .btn-saiba-mais {
  background: #a71930;
  color: #fff;
  border: none;
  width: 100%;
  padding: 0.6rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  border-top: 1px solid #ddd;
}

.card-veiculo .btn-saiba-mais:hover {
  background: #c40000;
}

.btn-ver-mais {
  background: #a71930;
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  margin: 0 auto 2rem auto;
}

.btn-ver-mais:hover {
  background: #c40000;
}

/* MODAL */

.modal-veiculo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-veiculo .modal-conteudo {
  background: #fff;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  padding: 2rem;
  position: relative;
  text-align: center;
}

.modal-fechar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
}

.modal-fechar:hover {
  color: #c40000;
}

.modal-img {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img img.modal-img-principal {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-img .seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 2;
  transition: background 0.2s;
}

.modal-img .seta:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-img .seta.prev {
  left: 10px;
}

.modal-img .seta.next {
  right: 10px;
}

.modal-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-thumbs img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 4px;
}

.modal-thumbs img.active,
.modal-thumbs img:hover {
  border-color: #a71930;
}

.modal-info {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 1rem;
}

.modal-info li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}
