body {
  margin: 0;
  padding: 24px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b0f17;
  color: #e5e7eb;
}

/* headings */
h1 {
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

h2 {
  margin-top: 30px;
  font-weight: 500;
  border-left: 3px solid #4f46e5;
  padding-left: 10px;
  opacity: 0.9;
}

/* top sections */
div {
  margin-bottom: 12px;
}

/* inputs + dropdown */
input, select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  margin: 6px;
  border-radius: 10px;
  color: #e5e7eb;
  outline: none;
  width: 180px;
  transition: 0.2s ease;
}

input:focus, select:focus {
  border-color: #4f46e5;
  background: rgba(255, 255, 255, 0.09);
}

input::placeholder {
  color: rgba(229, 231, 235, 0.5);
}

/* buttons */
button {
  background: rgba(79, 70, 229, 0.9);
  border: none;
  padding: 10px 14px;
  margin: 6px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 1);
}

/* layout rows */
div:nth-of-type(1),
div:nth-of-type(2) {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* form box */
#form {
  max-width: 900px;
  margin: 20px auto;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* listings + favorites grid */
#listings, #favorites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

/* cards (use this class in JS) */
.car-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  transition: 0.2s ease;
}

.car-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.4);
}

.car-card h3 {
  margin: 0 0 6px 0;
  font-weight: 500;
}

.car-card p {
  margin: 4px 0;
  opacity: 0.8;
  font-size: 14px;
}
.car-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card {
  background: #1f2937;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: 0.2s;
  max-width: 300px;
}

.card {
  background: #1f2937;
  border-radius: 14px;
  padding: 20px;
  width: 235px;
  min-height: 420px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}