/* ==========================================================================
   ENDJOY TRAVEL — RENTAL.HTML PREMIUM CARD (redesign)
   Kartu vertikal ala startup modern: foto proporsional (object-fit:contain),
   whitespace lega, rounded 24px, soft shadow, hover halus. Warna & font
   tetap mengikuti design token dari css/style.css.
   ========================================================================== */

.rental-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.rental-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 46, 116, 0.08);
  border: 1px solid rgba(11, 46, 116, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rental-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(11, 46, 116, 0.16);
}

.rental-card__media {
  position: relative;
  height: 230px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 50% 15%, #EEF3FC 0%, #F7F9FC 60%, #F1F5FB 100%);
  overflow: hidden;
}

.rental-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s ease;
}

.rental-card:hover .rental-card__image {
  transform: scale(1.06);
}

.rental-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.rental-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 14px;
}

.rental-card__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
}

.rental-card__spec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.rental-card__spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--color-bg-light);
  color: var(--color-primary);
  flex-shrink: 0;
}
.rental-card__spec-icon svg { width: 14px; height: 14px; }

.rental-card__price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.rental-card__price-label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.rental-card__price-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-secondary);
}
.rental-card__price-value small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.rental-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 8px 20px rgba(11, 46, 116, 0.18);
}

.rental-card__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(11, 46, 116, 0.24);
}

/* ---------- Responsive grid: 4 / 3 / 2 / 1 ---------- */
@media (max-width: 1200px) {
  .rental-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .rental-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .rental-grid { grid-template-columns: 1fr; }
}
