body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.rental-container {
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}

.rental-header h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.rental-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rental-image img {
  width: 100%;
  max-height: 400px; /* Adjust this value based on the desired maximum height */
  object-fit: contain; /* Ensure the entire image is visible within the designated space */
  border-radius: 5px;
  background-color: #f0f0f0; /* Optional: sets a background color for empty space */
}


.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
}

.owl-carousel .owl-nav button.owl-prev {
  left: 10px;
}

.owl-carousel .owl-nav button.owl-next {
  right: 10px;
}

.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 10px;
}

.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
}

.owl-carousel .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px;
  background: #D6D6D6;
  display: block;
  transition: opacity 200ms ease 0s;
  border-radius: 50%;
}

.owl-carousel .owl-dots .owl-dot.active span,
.owl-carousel .owl-dots .owl-dot:hover span {
  background: #869791;
}

.rental-info {
  margin-top: 20px;
}

.rental-info h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.rating {
  color: gold;
}

.rental-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.date-time-field {
  flex: 1 1 45%;
}

.date-time-field label {
  display: block;
  margin-bottom: 5px;
}

.date-time-field input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.rental-description, .rental-features {
  margin-bottom: 20px;
}

.rental-description h3, .rental-features h3, .customer-reviews h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.rental-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rental-promo label {
  font-size: 16px;
}

.rental-promo input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 200px;
}

.apply-button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  background-color: #007bff;
}

.total-price-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.total-price-container label {
  display: block;
  margin-bottom: 5px;
  flex: 1;
}

.total-price-container input {
  flex: 1;
  padding: 10px;
  
  border-radius: 5px;
  font-size: 16px;
}

.book-button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  background-color: #ffc107;
  flex: 1;
}

.customer-reviews {
  margin-top: 20px;
}

.review {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.review-text {
  display: flex;
  flex-direction: column;
}

.review-text h4 {
  margin: 0;
}

@media (max-width: 768px) {
  .rental-dates {
    flex-direction: column;
  }

  .date-time-field {
    width: 100%;
  }

  .rental-image img {
    width: 100%;
  }

  .total-price-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-button {
    width: 60%;
  }
}

@media (max-width: 480px) {
  .nav-button {
    font-size: 18px;
    padding: 5px;
  }

  .rental-promo input {
    max-width: 100px;
  }
}
