/* ============================================================
   VECTIS RENTALS — VEHICLES GRID (CATALOGO)
   - Solo clases .vectis-*
   - Responsive
   - Evita "bloques vacíos" (no grid centrado raro)
   ============================================================ */

:root {
  --vx-text: #111827;
  --vx-muted: #6b7280;
  --vx-border: #e5e7eb;
  --vx-soft: #f3f4f6;
  --vx-soft2: #f9fafb;
  --vx-radius: 18px;
  --vx-radius-sm: 14px;
  --vx-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.vectis-grid,
.vectis-grid * {
  box-sizing: border-box;
  font-family: inherit;
}

/* Grid */
.vectis-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 560px) {
  .vectis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 920px) {
  .vectis-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .vectis-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Card */
.vectis-card {
  border: 1px solid var(--vx-border);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--vx-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Link wrapper: IMPORTANT => no grid/center raro */
.vectis-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 0;
}

/* Media */
.vectis-card-link img {
  width: 100%;
  height: 180px; /* ✅ compacta, no gigante */
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: var(--vx-soft);
}

/* Placeholder cuando no hay foto */
.vectis-no-photo {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  border: 1px solid var(--vx-border);
  background: linear-gradient(180deg, var(--vx-soft2), var(--vx-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vx-muted);
  font-weight: 900;
  font-size: 13px;
}

/* Title */
.vectis-card h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--vx-text);
}

/* Meta line */
.vectis-card-meta {
  margin-top: -2px;
  color: var(--vx-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

/* Price */
.vectis-card-price {
  margin-top: 2px;
  font-weight: 950;
  color: var(--vx-text);
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--vx-soft2);
  border: 1px solid var(--vx-border);
  display: inline-flex;
  align-self: flex-start; /* ✅ no se centra raro */
}

/* Actions */
.vectis-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px;
  margin-top: auto; /* ✅ siempre abajo */
}

/* Buttons */
.vectis-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--vx-border);
  background: #fff;
  color: var(--vx-text);
  font-weight: 950;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.05s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.vectis-btn:hover {
  background: var(--vx-soft2);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.vectis-btn:active {
  transform: translateY(1px);
}

.vectis-btn-primary {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.vectis-btn-primary:hover {
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
}

/* Tip */
.vectis-card-tip {
  margin: 0 14px 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed var(--vx-border);
  background: var(--vx-soft2);
  color: var(--vx-text);
  opacity: 0.85;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

.vectis-card-tip code {
  font-family: inherit;
  background: var(--vx-soft);
  border: 1px solid var(--vx-border);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
}

/* Small tweaks mobile */
@media (max-width: 420px) {
  .vectis-card-link {
    padding: 12px 12px 0;
  }
  .vectis-card-actions {
    padding: 12px;
  }
  .vectis-btn {
    flex: 1 1 auto; /* botones más cómodos */
  }
}
