/* =========================
   CAR DETAILS PAGE
========================= */
.car-details {
  padding: 60px 20px;
  background: #0f172a;
  color: #ffffff;
}

.car-details .container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* GALLERY */
.car-gallery {
  flex: 1 1 320px;
  max-width: 600px;
  position: relative;
}

.main-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.location-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d4af37;
  color: #0f172a;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

/* THUMBNAILS */
.thumbnail-images {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.thumbnail-images img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.thumbnail-images img:hover {
  border: 2px solid #d4af37;
}

/* CAR INFO */
.car-info {
  flex: 1 1 400px;
}

.car-info h2 {
  font-size: 28px;
  color: #d4af37;
  margin-bottom: 10px;
}

.car-category {
  font-size: 16px;
  background: #cbd5e1;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.car-price {
  font-size: 22px;
  margin-bottom: 15px;
}

.car-specs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-bottom: 15px;
}

.car-specs i {
  color: #d4af37;
  margin-right: 4px;
}

.car-features h4 {
  color: #d4af37;
  margin-bottom: 8px;
}

.car-features ul {
  list-style: none;
  padding-left: 0;
}

.car-features li {
  margin-bottom: 5px;
  font-size: 14px;
}

.car-features li i {
  color: #d4af37;
  margin-right: 6px;
}

/* BUTTONS */
.car-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.car-btn {
  padding: 12px 22px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.car-btn-gold {
  background: #d4af37;
  color: #0f172a;
}

.car-btn-gold:hover {
  background: #f5d76e;
}

.car-btn-white {
  background: #ffffff;
  color: #0f172a;
}

.car-btn-white:hover {
  background: #e5e5e5;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .car-details .container {
    flex-direction: column;
    gap: 30px;
  }

  .main-image img {
    height: 300px;
  }

  .thumbnail-images img {
    width: 60px;
    height: 45px;
  }

  .car-info h2 {
    font-size: 24px;
  }

  .car-price {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .main-image img {
    height: 250px;
  }

  .thumbnail-images img {
    width: 50px;
    height: 38px;
  }

  .car-info h2 {
    font-size: 22px;
  }

  .car-price {
    font-size: 18px;
  }
}

/* ===== Submit Review Form ===== */
form.submit-review {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: "Arial", sans-serif;
}

/* Form elements */
form.submit-review input[type="text"],
form.submit-review select,
form.submit-review textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}

form.submit-review input[type="text"]:focus,
form.submit-review select:focus,
form.submit-review textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* Label styling */
form.submit-review label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  font-size: 0.95rem;
}

/* Textarea */
form.submit-review textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit button */
form.submit-review button[type="submit"] {
  background-color: #28a745;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

form.submit-review button[type="submit"]:hover {
  background-color: #218838;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  form.submit-review {
    padding: 15px;
  }

  form.submit-review input[type="text"],
  form.submit-review select,
  form.submit-review textarea {
    padding: 10px 12px;
  }

  form.submit-review button[type="submit"] {
    padding: 10px;
    font-size: 0.95rem;
  }
}
