/* ---------- CSS: css/vehicle-archive.css (actualizat pentru design modern) ---------- */

.vehicle-archive-wrapper {
  display: flex;
  gap: 40px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.vehicle-sidebar {
  width: 300px;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.vehicle-filter-form h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.vehicle-filter-form label {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  margin-bottom: 15px;
}

.vehicle-filter-form input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.vehicle-filter-form select {
  margin-top: 5px;
  font-size: 14px;
  color: #323232;
  border-color: #c1c1c1;
}

.vehicle-filter-form button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #f7941d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.vehicle-listing {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.vehicle-card {
  display: flex;
  background: #fff;
  border: 2px solid #ffe2a9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 15px;
  align-items: flex-start;
  gap: 20px;
}

.vehicle-card:hover {
  border-left: 5px solid #f7941d;
}

.vehicle-card-img {
  width: 250px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 0;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  font-weight: bold;
  border-radius: 0 5px 5px 0;
}

.vehicle-card-info {
  flex: 1;
}

.vehicle-card-info h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
  line-height: 1.4;
}

.vehicle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  text-decoration: none;
  list-style: none;
  margin-left: -40px;
}

.vehicle-tags li {
  background: #f1f1f1;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
  color: #333;
  white-space: nowrap;
}

.vehicle-price {
  font-size: 23px;
  font-weight: normal;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0px;
}

.vehicle-price .old-price {
  text-decoration: line-through;
  color: #282828;
  font-weight: normal;
  font-size: 24px;
}

.vehicle-price small {
  font-size: 13px;
  color: #999;
}

.vehicle-card-damage {
  width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  margin-top: 20px;
}

.vehicle-card-damage img {
  width: 100%;
  height: auto;
}

.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.pagination .current {
  background: #f7941d;
  color: white;
}


/* ------------------ Responsive Design ------------------ */

@media (max-width: 1024px) {
  .vehicle-archive-wrapper {
    flex-direction: column;
    padding: 30px 20px;
    gap: 0px;
  }

  .vehicle-sidebar {
    width: 100%;
  }

  .vehicle-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .vehicle-card-img {
    width: 100%;
    height: auto;
  }

  .vehicle-price {
    align-items: flex-start;
    margin-top: 15px;
  }

  .vehicle-card-damage {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .vehicle-filter-form label {
    font-size: 13px;
  }

  .vehicle-filter-form input,
  .vehicle-filter-form select {
    font-size: 13px;
  }

  .vehicle-tags {
    gap: 5px;
    font-size: 12px;
  }

  .vehicle-card-info h2 {
    font-size: 16px;
  }

  .vehicle-price {
    font-size: 20px;
  }

  .vehicle-price .old-price {
    font-size: 18px;
  }

  .vehicle-card-damage {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .vehicle-archive-wrapper {
    padding: 20px 15px;
  }

  .vehicle-sidebar {
    padding: 20px;
    margin-bottom: 20px;
  }

  .vehicle-filter-form h3 {
    font-size: 16px;
  }

  .vehicle-filter-form button {
    font-size: 14px;
  }

  .vehicle-card {
    padding: 12px;
    gap: 15px;
  }

  .vehicle-card-info h2 {
    font-size: 15px;
  }

  .vehicle-price {
    font-size: 18px;
  }

  .vehicle-price .old-price {
    font-size: 16px;
  }

  .vehicle-tags {
    margin-left: 0;
    gap: 4px;
  }

  .vehicle-tags li {
    font-size: 11px;
    padding: 4px 8px;
  }
  
}
/* Filter toggle button styles */
.filter-toggle-wrap {
  display: none;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}
button.filter-toggle {
  width: 100%;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7941d;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-toggle i {
  font-size: 18px;
}

/* Hide sidebar by default only on small screens */
@media (max-width: 768px) {
  .filter-toggle-wrap {
    display: block;
  }

  .vehicle-archive-wrapper {
    flex-direction: column;
  }

  .vehicle-sidebar {
    display: none;
    width: 100%;
    padding: 20px;
    box-shadow: none;
    border: 1px solid #eee;
  }

  .vehicle-listing {
    width: 100%;
  }
}
