/* ========================================
   VEHICLES.CSS (Redesigned v2)
   ======================================== */

.header-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
  overflow-x: auto;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(255,107,44,0.26);
}

/* ---- Sort Bar ---- */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.sort-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.sort-select {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  font-family: var(--font-body);
}
.sort-select:focus { border-color: var(--primary); }

/* ================================================
   VEHICLES LIST — Mobile: card-style list
                   Desktop: 2/3/4 col grid
   ================================================ */
.vehicles-list {
  display: grid;
  grid-template-columns: 1fr 1fr;        /* Mobile: 2 col grid */
  gap: 12px;
}

@media (min-width: 600px) {
  .vehicles-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .vehicles-list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ---- Vehicle Card (same as home) ---- */
.vehicle-row {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  height: 100%;
}
.vehicle-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.vehicle-row:active { transform: scale(0.97); }

/* ---- Image: fixed height, always fills frame ---- */
.row-img-wrap {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef0f5, #e4e6ee);
  flex-shrink: 0;
}
.row-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}
.vehicle-row:hover .row-img-wrap img { transform: scale(1.07); }

/* Availability badge on image */
.row-avail-tag {
  position: absolute;
  bottom: 8px; left: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.row-avail-tag.available { background: rgba(22,163,74,0.88); color: #fff; }
.row-avail-tag.booked    { background: rgba(220,38,38,0.88);  color: #fff; }

/* Badge from JS (badge-success / badge-danger) on image */
.row-img-wrap .badge {
  position: absolute;
  bottom: 8px; left: 8px;
}

/* ---- Card Info ---- */
.row-info {
  flex: 1;
  padding: 11px 11px 13px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
}
.row-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
/* Inline badge (Available/Booked) */
.row-info .badge {
  font-size: 0.62rem;
  padding: 2px 7px;
  flex-shrink: 0;
}
.row-type {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.row-rating {
  font-size: 0.74rem;
  color: var(--warning);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.row-rating span { color: var(--text-muted); }

/* Price + arrow row */
.row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.row-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.row-price span {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.row-book-btn {
  width: 26px; height: 26px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(255,107,44,0.28);
  transition: transform var(--transition-bounce);
  flex-shrink: 0;
}
.row-book-btn svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.5; fill: none; }
.vehicle-row:hover .row-book-btn { transform: scale(1.12) rotate(5deg); }

/* Desktop image taller */
@media (min-width: 768px) {
  .row-img-wrap { height: 160px; }
}


.login-icon-img{
   width:26px;
   height:26px;
   object-fit:contain;
}