/**
 * DeMV Platform - Rental Card CSS
 * Styles for rental cards in the rental listing
 */

/* This file is referenced in rentals.html but was missing */
/* Adding styles to ensure compatibility with the centralized vehicle ID system */

/* Rental card */
.rental-card {
  background-color: rgba(20, 20, 30, 0.8);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rental-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 204, 0.2);
  border-color: rgba(0, 255, 204, 0.6);
}

/* Rental card image */
.rental-card-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.rental-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rental-card:hover .rental-card-image img {
  transform: scale(1.05);
}

/* Rental card content */
.rental-card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rental-card-title {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: #00ffcc;
  font-weight: 600;
}

.rental-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 10px 0;
  color: #ffffff;
}

.rental-card-price span {
  color: #00ffcc;
}

/* Rental card features */
.rental-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.rental-card-feature {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.rental-card-feature i {
  margin-right: 5px;
  color: #00ffcc;
}

/* Rental card actions */
.rental-card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
}

.book-now-btn {
  background-color: #00ffcc;
  color: #121212;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-now-btn:hover {
  background-color: #00e6b8;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 255, 204, 0.3);
}

.view-details-btn {
  background-color: transparent;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-details-btn:hover {
  background-color: rgba(0, 255, 204, 0.1);
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .rental-card-image {
    height: 160px;
  }
}
