/* ============================================================
   ناوگانِ خودرو (js/car-picker.js) — کارت‌های عکس‌دار + اجاره
   عمداً فایلِ جداست: redesign.css را ایجنت‌های دیگر هم‌زمان می‌نویسند
   و این‌جا نباید با آن برخورد کند. فقط متغیرهای موجودِ سایت.
   ============================================================ */

.kg-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-block: 8px 4px;
}

.kg-car {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--line, #e4dcc4);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.kg-car:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -18px rgba(11, 61, 46, .35);
}

.kg-car-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  background: linear-gradient(160deg, #f4f7f4, #eef3ee);
}

.kg-car-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kg-car-ico { width: 64px; height: 64px; opacity: .8; }

.kg-car-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}

.kg-car-name { margin: 0; font-size: 17px; font-weight: 800; color: var(--green-deep, #8a6d16); }
.kg-car-meta { margin: 0; font-size: 12.5px; color: var(--muted, #6b6459); font-weight: 600; }
.kg-car-note { margin: 0; font-size: 13px; line-height: 1.9; color: #3d463f; }

.kg-car-price {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--green-deep, #8a6d16);
}
.kg-car-price b { font-size: 18px; }
.kg-car-price small { color: var(--muted, #6b6459); font-size: 12px; }

.kg-car-btn {
  margin-top: auto;
  border: none;
  border-radius: 11px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  color: #1b211d;
  background: linear-gradient(135deg, var(--gold, #c9a227), var(--gold-soft, #e6c866));
  transition: transform .15s ease, box-shadow .15s ease;
}
.kg-car-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(201, 162, 39, .55); }
.kg-car-btn:focus-visible { outline: 2px solid var(--gold, #c9a227); outline-offset: 2px; }

/* ── اجاره: شمارندهٔ روز و جمعِ زنده ── */
.kg-rent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line, #e4dcc4);
}
.kg-rent-lbl { font-size: 12.5px; font-weight: 700; color: var(--muted, #6b6459); display: flex; align-items: center; gap: 8px; }
.kg-rent-ctl { display: inline-flex; align-items: center; gap: 4px; }
.kg-rent-step {
  width: 30px; height: 30px;
  border: 1.5px solid var(--line, #e4dcc4);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--green-deep, #8a6d16);
  line-height: 1;
}
.kg-rent-step:hover { border-color: var(--gold, #c9a227); }
.kg-rent-days {
  width: 46px;
  text-align: center;
  padding: 6px 4px;
  border: 1.5px solid var(--line, #e4dcc4);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}
.kg-rent-sum { font-size: 13px; color: var(--muted, #6b6459); font-weight: 700; }
.kg-rent-total { font-size: 17px; color: var(--green-deep, #8a6d16); }

.kg-cars-terms {
  margin-top: 16px;
  padding: 14px 18px;
  background: #fdfaf0;
  border: 1px dashed var(--gold, #c9a227);
  border-radius: 12px;
  font-size: 13px;
  line-height: 2;
  color: #3d463f;
}

.kg-cars-empty, .kg-cars-err {
  padding: 22px;
  text-align: center;
  color: var(--muted, #6b6459);
  background: #faf8f1;
  border: 1px dashed var(--line, #e4dcc4);
  border-radius: 12px;
}
.kg-cars-live { min-height: 20px; text-align: center; font-weight: 700; color: var(--green-deep, #8a6d16); }

@media (prefers-reduced-motion: reduce) {
  .kg-car, .kg-car-btn { transition: none; }
  .kg-car:hover { transform: none; }
}
