@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&display=swap');

body {
  background-color: #121212;
  color: #f1f1f1;
  margin: 0;
}

header {
  background-color: #1f1f1f;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  z-index: 10;
  justify-content: space-between;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
}

.site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 4px;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #999999;
  white-space: nowrap;
  transition: max-height 0.3s ease;
}

nav a {
  padding: 0 15px;
  color: #999999;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fff;
}

.nav-right {
  display: flex;
  margin-left: auto;
  gap: 10px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle:hover {
  transform: scale(1.1);
  color: #0a7a2f;
}

.bg-white {
  background-color: #1e1e1e !important;
}

.sidebar-title,
label,
select,
option {
  color: #ddd;
}

.form-select,
.btn-primary,
.page-link {
  background-color: #2a2a2a;
  color: #eee;
  border: 1px solid #444;
}

.btn-primary:hover,
.page-link:hover {
  background-color: #333;
  color: #fff;
}

.car-card {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #eee;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  height: 100%;
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  border-bottom: 1px solid #444;
}

.badge {
  background-color: #0a7a2f;
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
    .car-card {
      position: relative;
      cursor: pointer;
      overflow: hidden;
      transition: box-shadow 0.3s, background 0.3s, transform 0.22s;
    }
    .car-card .hover-overlay {
      position: absolute;
      inset: 0;
      background: rgba(91, 179, 167, 0.568);
      color: #fff;
      font-size: 1.45rem;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s;
      font-family: 'Oswald', sans-serif;
      letter-spacing: 2px;
      z-index: 3;
    }
    .car-card:hover,
    .car-card:focus-visible {
      background-color: #171717;
      box-shadow: 0 8px 34px rgba(0,0,0,0.18);
      transform: translateY(-6px) scale(1.03);
    }
    .car-card:hover .hover-overlay,
    .car-card:focus-visible .hover-overlay {
      opacity: 1;
      pointer-events: auto;
    }


/* PAGINACIÓN FUNCIONAL EN MÓVIL */
.pagination-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
}

.pagination .page-item.active .page-link {
  background-color: rgb(58, 197, 162);;
  border-color: rgb(58, 197, 162);;
}

.pagination .page-link {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 18px;
  
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  header {
    height: 60px;
    padding: 0 10px;
  }

  .site-title {
    font-size: 24px;
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  .nav-right {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #1f1f1f;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-right.open {
    max-height: 300px;
    padding: 10px 0;
  }

  #filtroForm {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  #filtroForm .mb-3 {
    flex: 1 1 48%;
    min-width: 140px;
  }

  #filtroForm button {
    flex: 1 1 100%;
  }

  .pagination-wrapper {
    padding: 0 10px;
  }

  .pagination {
    font-size: 13px;
    gap: 4px;
  }

  .pagination .page-link {
    padding: 5px 10px;
  }
}
