/* ═══════════════════════════════════════════════════════════════
   vehicles.css — Listagem de Veículos (estoque)
   Melhorado: fotos maiores, hover premium, cards mais generosos
   ═══════════════════════════════════════════════════════════════ */

:root {
  --muted:  #71717a;
  --border: #e4e4e7;
  --light:  #f4f4f5;
  --green:  #16a34a;
}

.vp * { font-family: 'Barlow', sans-serif; }

/* ── Page header ─────────────────────────────────────────────── */
.vp-eyebrow {
  font-family: 'Barlow Condensed', sans-serif; font-size: .75rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem;
  animation: fadeSlideUp .6s ease both;
}
.vp-eyebrow::before { content: ''; display: block; width: 1.5rem; height: 2px; background: var(--accent); }
.vp-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  text-transform: uppercase; line-height: 1; color: var(--brand);
  animation: fadeSlideUp .7s .08s ease both;
}
.vp-subtitle { font-size: .9rem; color: var(--muted); margin-top: .45rem; animation: fadeSlideUp .7s .16s ease both; }
.vp-subtitle strong { color: var(--brand); }

/* ── Filters ─────────────────────────────────────────────────── */
.vp-filters { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; margin: 1.75rem 0; }
.vp-filters-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto; gap: .75rem; align-items: end; }
@media (max-width: 960px) { .vp-filters-row { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px)  { .vp-filters-row { grid-template-columns: 1fr 1fr; } }

.vp-flabel {
  font-family: 'Barlow Condensed', sans-serif; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  display: block; margin-bottom: .35rem;
}
.vp-ctrl {
  width: 100%; padding: .56rem .85rem;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-family: 'Barlow', sans-serif; font-size: .85rem; color: var(--brand);
  background: white; outline: none; transition: border-color .15s; box-sizing: border-box;
  -moz-appearance: textfield;
}
.vp-ctrl::-webkit-outer-spin-button,
.vp-ctrl::-webkit-inner-spin-button { -webkit-appearance: none; }
.vp-ctrl:focus { border-color: var(--brand); }

.vp-go {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .56rem 1.5rem; background: var(--brand); color: white;
  border: none; border-radius: 6px; cursor: pointer; white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif; font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; transition: background .15s;
}
.vp-go:hover { background: #0f0f1e; }

.vp-tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.vp-tag-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.vp-tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--light); border: 1px solid var(--border); padding: .22rem .65rem; border-radius: 100px; font-size: .72rem; font-weight: 600; color: var(--brand); }
.vp-clear { margin-left: auto; font-size: .72rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; transition: color .15s; }
.vp-clear:hover { color: var(--accent); }

/* ── Grid ────────────────────────────────────────────────────── */
.vp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 1200px) { .vp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .vp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .vp-grid { grid-template-columns: 1fr; } }

/* ── Card ────────────────────────────────────────────────────── */
.vp-card {
  background: white; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  cursor: pointer;
}
.vp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.08);
}

/* Foto maior — 170px → 185px */
.vp-photo { height: 185px; overflow: hidden; position: relative; background: var(--light); flex-shrink: 0; }
.vp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.vp-card:hover .vp-photo img { transform: scale(1.07); }
.vp-photo-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--border); font-size: 3rem; }

.vp-badge-wrap { position: absolute; top: 0; left: 0; display: flex; gap: 2px; flex-direction: column; }
.vp-badge { font-family: 'Barlow Condensed', sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .26rem .7rem; display: inline-block; }
.vp-badge-promo { background: var(--accent); color: white; }
.vp-badge-feat  { background: var(--brand);  color: white; }

.vp-body { padding: .85rem 1rem .65rem; flex: 1; display: flex; flex-direction: column; }
.vp-make { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .18rem; }
.vp-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 800; text-transform: uppercase; color: var(--brand); line-height: 1.1; margin-bottom: .4rem; }
.vp-name span { font-weight: 500; opacity: .45; font-size: .88rem; }

.vp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .4rem; margin-bottom: .55rem; }
.vp-spec { display: flex; align-items: center; gap: .35rem; font-size: .73rem; color: var(--muted); }
.vp-spec i { font-size: .58rem; width: .9rem; text-align: center; flex-shrink: 0; }

.vp-price-block { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--border); }
.vp-price-old  { font-size: .73rem; color: var(--muted); text-decoration: line-through; margin-bottom: .1rem; }
.vp-price-main { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 900; color: var(--brand); line-height: 1; }
.vp-price-inst { font-size: .7rem; color: var(--muted); margin-top: .2rem; }

.vp-foot { padding: .65rem 1rem; border-top: 1px solid var(--border); display: flex; gap: .4rem; }
.vp-det {
  flex: 1; text-align: center; padding: .55rem;
  font-family: 'Barlow Condensed', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid var(--brand); color: var(--brand);
  border-radius: 6px; transition: all .2s ease; background: transparent;
}
.vp-card:hover .vp-det { background: var(--brand); color: white; }

.vp-wa {
  padding: .55rem .9rem; border: 1.5px solid var(--green); color: var(--green);
  border-radius: 6px; text-decoration: none;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: all .15s;
}
.vp-wa:hover { background: var(--green); color: white; }
.vp-share {
  padding: .55rem .9rem; border: 1.5px solid rgba(99,102,241,.4); color: #a5b4fc;
  border-radius: 6px; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: all .15s;
}
.vp-share:hover { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.6); }

/* ── Paginação ───────────────────────────────────────────────── */
.vp-pagination { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 1.5rem 0 2rem; flex-wrap: wrap; }
.vp-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 7px; font-size: .82rem; font-weight: 600; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em; border: 1.5px solid var(--border); background: white; color: var(--muted); cursor: pointer; transition: all .15s; text-decoration: none; }
.vp-page-btn:hover { border-color: var(--brand); color: var(--brand); }
.vp-page-btn.active { background: var(--brand); border-color: var(--brand); color: white; }
.vp-page-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.vp-page-info { font-size: .8rem; color: var(--muted); padding: 0 6px; }

/* ── Empty state ─────────────────────────────────────────────── */
.vp-empty { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 5rem 2rem; text-align: center; color: var(--muted); margin-bottom: 2rem; }
.vp-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; color: var(--border); }
.vp-empty p { font-size: .92rem; margin-bottom: 1.25rem; }

/* ── CTA strip ───────────────────────────────────────────────── */
.vp-cta { background: var(--brand); border-radius: 10px; padding: 3rem 2rem; text-align: center; }
.vp-cta-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; text-transform: uppercase; color: white; margin-bottom: .5rem; }
.vp-cta-sub { font-size: .88rem; color: rgba(255,255,255,.38); margin-bottom: 1.5rem; }
.vp-cta-btn { display: inline-flex; align-items: center; gap: .55rem; background: #16a34a; color: white; padding: .85rem 2rem; border-radius: 4px; font-family: 'Barlow Condensed', sans-serif; font-size: .92rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .15s; }
.vp-cta-btn:hover { background: #15803d; }

/* ── Features filter ────────────────────────────────────────── */
.vp-features-wrap {
    margin-top: 12px;
    position: relative;
}
.vp-features-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 16px;
    font-size: .82rem; font-weight: 600; color: var(--brand);
    cursor: pointer; transition: all .15s;
    font-family: 'Outfit', sans-serif;
}
.vp-features-toggle:hover { border-color: var(--brand); background: rgba(0,0,0,.01); }
.vp-feat-count {
    background: var(--brand); color: white;
    font-size: .65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.vp-feat-arrow { font-size: .6rem; transition: transform .2s; }
.vp-features-wrap.open .vp-feat-arrow { transform: rotate(180deg); }

.vp-features-panel {
    display: none;
    background: white; border: 1px solid var(--border);
    border-radius: 10px; padding: 16px;
    margin-top: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.vp-features-wrap.open .vp-features-panel { display: block; }

.vp-features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
@media (max-width: 900px) { .vp-features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .vp-features-grid { grid-template-columns: repeat(2, 1fr); } }

.vp-feat-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 6px;
    cursor: pointer; transition: background .1s;
    font-size: .78rem; color: #374151;
    user-select: none;
}
.vp-feat-item:hover { background: #f3f4f6; }
.vp-feat-item input[type="checkbox"] {
    width: 14px; height: 14px; accent-color: var(--brand);
    cursor: pointer; flex-shrink: 0; margin: 0;
}
.vp-feat-item input[type="checkbox"]:checked + span {
    font-weight: 600; color: var(--brand);
}