.rental-search-wrap {
  max-width: 98%;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.rental-search-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#rentalSearchInput {
  width: 60%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

#rentalSearchBtn {
  padding: 12px 20px;
  font-size: 16px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.rental-grid-wrapper {
  width: 100%;
}

.rental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  width: 100%;
}

.rental-item {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 20px;
  border-radius: 10px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: white;
}

.rental-info {

  border-radius: 6px;
  width: 100%;
}

.rental-info h3 {
  margin: 0;
  font-size: 18px;
  color: #fff !important;
}

.book-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #ff6600;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.book-btn:hover {
  background: #e05500;
}

.no-results {
  text-align: center;
  font-style: italic;
  color: #555;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .rental-grid {
    grid-template-columns: 1fr;
  }

  .rental-search-box {
    flex-direction: column;
    align-items: center;
  }

  #rentalSearchInput {
    width: 100%;
  }

  #rentalSearchBtn {
    width: 100%;
  }
}
