/* =========================================================================
   Raposo — Design System
   Marketplace de veículos + CRM. Tema claro, foco em legibilidade e confiança.
   ========================================================================= */

:root {
  /* Marca — azul-marinho (primária) + verde-limão (acento/CTA) */
  --brand: #112E63;
  --brand-dark: #0c2149;
  --brand-soft: #e7ecf6;
  --accent: #A9CC01;
  --accent-dark: #93b100;
  --accent-soft: #f1f7d4;
  --accent-ink: #1c2600; /* texto escuro sobre o verde-limão */
  --navy: #112E63;
  --navy-2: #0c2149;

  /* Neutros */
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #131722;
  --muted: #6b7280;
  --line: #e6e8ec;

  /* Semânticos */
  --success: #15803d;
  --success-soft: #e7f7ec;
  --warn: #b45309;
  --warn-soft: #fdf3e3;

  /* Formas */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .06);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, .16);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: corpo ocupa a tela toda e empurra o rodapé pro fim */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 32px; }
@media (min-width: 1600px) { .container { max-width: 1560px; } }

/* --------------------------- Header Raposo (contato + menu separados) */
.site-header2 { position: sticky; top: 0; z-index: 50; }

/* Faixa 1 — contato (navy): logo + endereço/telefone + login.
   Colapsa ao rolar, deixando só a barra do menu. */
.header-contact { background: var(--navy); color: #fff; overflow: hidden; transition: height .26s ease; will-change: height; }
.hc-inner { display: flex; align-items: center; gap: 20px; min-height: 80px; padding: 10px 0; flex-wrap: wrap; }
.hc-info { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; color: #c3ccdd; }
.hc-item { display: inline-flex; align-items: center; gap: 8px; }
.hc-item strong { color: #fff; }
.hc-ico { color: var(--accent); }
.header-auth { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #c3ccdd; white-space: nowrap; }
.header-auth .whoami strong { color: #fff; }
.hdr-link { color: #dbe1ee; font-size: 14px; font-weight: 600; }
.hdr-link:hover { color: #fff; }
/* Menu "Entrar" (login separado por produto) */
.auth-menu { position: relative; }
.auth-menu-btn { background: none; border: 0; cursor: pointer; font-family: inherit; }
.auth-menu-pop {
  position: fixed; top: 60px; right: 24px; z-index: 80; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.auth-menu.open .auth-menu-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.auth-menu-pop a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.auth-menu-pop a span { width: 18px; text-align: center; }
.auth-menu-pop a:hover { background: var(--surface-2); color: var(--brand); }

/* Logo: faróis + RAPOSO / AUTO MOTO SHOPPING */
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark2 { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 26px; font-weight: 900; letter-spacing: 3px; }
.brand-sub { background: var(--accent); color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: 2px; padding: 2px 6px; margin-top: 3px; text-align: center; }

/* Faixa 2 — barra do menu (clara), itens quadrados, ativo verde */
.header-nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hn-inner { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--brand); text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  padding: 10px 15px; border-radius: 8px; transition: background .15s, color .15s;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-top:hover { background: var(--surface-2); }
.nav-top.active { background: var(--accent); color: var(--brand); }
.nav-top .caret { font-size: 11px; opacity: .7; }
/* Dropdown */
.nav-sub {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item.has-sub:last-child .nav-sub { left: auto; right: 0; }
.nav-sub a {
  display: block; padding: 9px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 600;
  color: var(--ink); text-transform: none; letter-spacing: 0;
}
.nav-sub a:hover { background: var(--surface-2); color: var(--brand); }
.hn-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hn-cta { display: inline-flex; align-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: var(--r-sm); white-space: nowrap; }
.hn-cta:hover { background: var(--brand-dark); color: #fff; }
/* Hambúrguer (só aparece no mobile) */
.nav-toggle, .hn-menu-label { display: none; }
@media (max-width: 900px) {
  .hc-info { display: none; }
  .brand-text strong { font-size: 22px; }

  /* Barra de navegação vira menu hambúrguer */
  .hn-inner { flex-wrap: wrap; min-height: 54px; }
  .hn-menu-label { display: inline-flex; align-items: center; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 13px; color: var(--brand); }
  .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    margin-left: auto; width: 46px; height: 40px;
    border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--brand); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .header-nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Escondidos até abrir o menu */
  .main-nav, .hn-right { display: none; }
  .header-nav.open .main-nav {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 5;
    gap: 2px; padding: 8px 0 4px; max-height: 70vh; overflow-y: auto;
    border-top: 1px solid var(--line); margin-top: 6px;
  }
  .header-nav.open .hn-right { display: flex; flex-wrap: wrap; width: 100%; order: 6; gap: 8px; padding: 4px 0 12px; }
  .header-nav.open .hn-right .hn-cta { flex: 1; justify-content: center; }
  .hn-cta-ver { display: inline-flex; }

  .main-nav .nav-item { width: 100%; }
  .nav-top { width: 100%; justify-content: flex-start; padding: 12px 8px; font-size: 15px; border-radius: 8px; }
  .nav-item.has-sub .nav-top { justify-content: space-between; }
  .nav-top .caret { margin-left: auto; transition: transform .2s; }
  .nav-item.has-sub.open .nav-top .caret { transform: rotate(180deg); }

  /* Submenus em acordeão (fechados por padrão) */
  .nav-sub {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 6px 16px; min-width: 0;
  }
  .nav-item.has-sub.open > .nav-sub { display: block; }
  .nav-sub a { padding: 11px 12px; font-size: 14.5px; }
}

/* Cards de loja (vitrine) */
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 22px 0; }
.store-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .12s, box-shadow .12s, border-color .12s; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9dce2; color: var(--ink); }
.store-logo { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.store-logo.lg { width: 78px; height: 78px; font-size: 34px; border-radius: 18px; }
.store-body { flex: 1; }
.store-body h3 { margin: 0 0 2px; font-size: 17px; }
.store-count { color: var(--brand); font-weight: 700; font-size: 14px; margin-top: 4px; }
.store-go { color: var(--muted); font-size: 20px; }
.store-header { display: flex; align-items: center; gap: 18px; }

/* --------------------------------------------------------------- Layout */
main.container { padding-top: 40px; padding-bottom: 72px; flex: 1 0 auto; }
h1 { font-size: 38px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 10px; }
h2 { font-size: 26px; font-weight: 700; margin: 36px 0 16px; }
h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 19px; max-width: 75ch; }
.muted { color: var(--muted); }
.section-title { display: flex; align-items: baseline; gap: 12px; }
.section-title .count { color: var(--muted); font-weight: 500; font-size: 16px; }

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 30px; }

/* --------------------------------------------------------------- Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef0f4;
  color: #475467;
  border-radius: var(--pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.brand { background: var(--brand-soft); color: var(--brand-dark); }
.badge.accent { background: var(--accent-soft); color: #5c6f00; }
.badge.special { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* -------------------------------------------------------------- Buttons */
.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform .04s, background .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover, button:hover { background: var(--brand-dark); color: #fff; }
.btn:active, button:active { transform: translateY(1px); }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-outline:hover { background: var(--surface-2); color: var(--ink); border-color: #d3d7de; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn-danger { background: #fff; color: #c0362c; border: 1px solid #ecc6c2; box-shadow: none; }
.btn-danger:hover { background: #c0362c; color: #fff; border-color: #c0362c; }
/* Ações nos cards do estoque (CRM) */
.v-actions { display: flex; gap: 8px; margin-top: 10px; }
.v-actions form { margin: 0; }
.v-actions .btn-sm { padding: 6px 12px; font-size: 12.5px; }
/* Modal de edição */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(9, 20, 45, .55);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 820px; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg, 0 20px 60px rgba(0,0,0,.3));
  padding: 28px; margin: auto;
}
.modal-x {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.modal-x:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.modal-title { margin: 0 40px 18px 0; font-size: 22px; }
.modal-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Fotos na edição (reordenáveis por arrastar) */
.edit-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 6px; }
.ef { position: relative; margin: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); cursor: grab; user-select: none; }
.ef:active { cursor: grabbing; }
.ef img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; pointer-events: none; }
.ef.dragging { opacity: .4; outline: 2px dashed var(--brand); }
.ef-capa { display: none; position: absolute; top: 6px; left: 6px; z-index: 2; background: var(--accent); color: var(--brand); font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 4px; }
.ef.is-capa .ef-capa { display: block; }
.ef-del {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(17, 46, 99, .72); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s, background .15s;
}
.ef:hover .ef-del { opacity: 1; }
.ef-del:hover { background: #c0362c; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
/* Botão de acento (verde-limão) para CTAs de destaque (buscar, anunciar) */
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--accent-ink); }
.btn-whats { background: #25D366; color: #fff; }
.btn-whats:hover { background: #1eb257; color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- Forms */
label { display: block; font-size: 13px; font-weight: 600; color: #3a4252; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #9aa1ad; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(225, 29, 42, .12);
}
input[type="file"] { padding: 8px; background: var(--surface-2); }
input[type="checkbox"] { width: auto; display: inline; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid .fg-full { grid-column: 1 / -1; }

/* Cadastro simplificado: dropzone de fotos + detalhes recolhíveis */
.dz {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border: 2px dashed var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  padding: 16px 18px; margin: 0 0 16px; cursor: pointer; transition: border-color .15s, background .15s;
}
.dz:hover { border-color: var(--brand); }
.dz.has { border-style: solid; border-color: var(--accent); background: #fbfdf0; }
.dz-ico { font-size: 26px; line-height: 1; }
.dz-text { font-weight: 700; color: var(--brand); display: flex; flex-direction: column; }
.dz-sub { font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.more { margin: 6px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.more > summary {
  cursor: pointer; font-weight: 700; color: var(--brand); padding: 6px 0; list-style: none;
  display: flex; align-items: center; gap: 6px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "▸"; font-size: 12px; transition: transform .15s; }
.more[open] > summary::before { transform: rotate(90deg); }
.csv-box { margin-top: 14px; }
.csv-box input[type="file"] { width: 100%; font-size: 13px; }

/* Barra de filtros (busca) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.filters input:not([type="checkbox"]), .filters select { width: auto; flex: 1 1 150px; min-width: 120px; }
.filters button { flex: 0 0 auto; }
.filters input[type="checkbox"] { width: auto; min-width: 0; flex: 0 0 auto; margin: 0; }
.filters label { flex: 0 0 auto; margin: 0; white-space: nowrap; display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }

/* ------------------------------------------------------------- Vehicles */
.grid.vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 22px 0;
}
/* Home: exatamente 4 por linha (evita 5 em telas largas) */
.grid.vehicles.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.vehicles.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid.vehicles.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid.vehicles.cols-4 { grid-template-columns: 1fr; } }
/* Hero de largura total com imagem de fundo (sobe atrás do header transparente) */
.hero-full {
  margin-top: -92px;
  padding: 150px 0 120px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(9, 19, 44, .82) 0%, rgba(9, 19, 44, .5) 55%, rgba(9, 19, 44, .25) 100%),
    url('/img/hero.svg') center / cover no-repeat;
}
.hero-full .hero-inner { max-width: 640px; }
.hero-full h1 { font-size: 56px; line-height: 1.05; color: #fff; letter-spacing: -.03em; margin: 0 0 14px; }
.hero-full p { color: #dbe3f2; font-size: 21px; margin: 0; }
@media (max-width: 820px) {
  .hero-full { margin-top: -84px; padding: 120px 0 90px; }
  .hero-full h1 { font-size: 36px; }
  .hero-full p { font-size: 18px; }
}

/* Faixa "Por que escolher" full-bleed com cor de destaque */
.band { width: 100%; padding: 60px 0; margin: 56px 0; }
.band-brand { background: var(--brand); color: #fff; }
.band-brand h2 { color: #fff; text-align: center; margin: 0 0 8px; }
.band-brand .band-sub { text-align: center; color: #c3ccdd; margin: 0 auto 34px; max-width: 60ch; }
.band-brand .why h3 { color: #fff; }
.band-brand .why p { color: #c3ccdd; }
.band-brand .why .why-ico { background: rgba(255, 255, 255, .1); }
.band-brand .why .why-ico { box-shadow: inset 0 0 0 1px rgba(169, 204, 1, .5); }
.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, border-color .12s;
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9dce2; }
.vehicle-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef1f5, #e3e7ee);
  position: relative;
  overflow: hidden;
}
.vehicle-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card .thumb .no-photo {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #9aa1ad; font-size: 13px; font-weight: 600;
}
.vehicle-card .thumb .cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(14, 22, 38, .82); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: capitalize;
  padding: 4px 10px; border-radius: var(--pill); backdrop-filter: blur(2px);
}
.vehicle-card .v-body { position: relative; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
/* Selo de preço angulado, sobrepondo a foto (à direita) */
.vehicle-card .v-price-badge {
  position: absolute; top: -16px; right: 12px;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 17px;
  padding: 8px 15px;
  transform: skewX(-11deg);
  box-shadow: var(--shadow);
}
.vehicle-card .v-price-badge > span { display: inline-block; transform: skewX(11deg); }
.vehicle-card .v-title {
  font-weight: 700; font-size: 16.5px; color: var(--ink); padding-right: 92px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vehicle-card .v-year { color: var(--muted); font-weight: 400; }
.vehicle-card .v-specs {
  display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
}
.vehicle-card .v-specs .spec { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; white-space: nowrap; }
.vehicle-card .v-specs .spec:first-child { padding-left: 0; }
.vehicle-card .v-specs .divider { width: 1px; height: 15px; background: var(--line); flex: 0 0 auto; }

/* =========================== Inventory / lista de anúncios (estilo dealer) */
.inv-titlebar { margin-bottom: 18px; }
.inv-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
/* Sidebar de filtros */
.inv-filters { position: sticky; top: 100px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); }
.inv-filters-head { background: var(--brand); color: #fff; font-weight: 800; padding: 15px 18px; font-size: 15px; }
.inv-filters-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.inv-filters-body label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.inv-filters-body input, .inv-filters-body select { margin: 0; }
.inv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Toolbar */
.inv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.inv-count { font-size: 15px; color: var(--muted); }
.inv-count strong { color: var(--ink); font-size: 18px; }
.inv-tools { display: flex; align-items: center; gap: 14px; }
.inv-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.inv-sort select { margin: 0; width: auto; padding: 8px 12px; }
.inv-view { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.iv-btn { border: 0; background: #fff; color: var(--muted); width: 38px; height: 36px; cursor: pointer; font-size: 16px; }
.iv-btn + .iv-btn { border-left: 1px solid var(--line); }
.iv-btn.on { background: var(--brand); color: #fff; }
/* Lista de veículos */
.inv-list { display: flex; flex-direction: column; gap: 14px; }
.inv-row {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 18px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  color: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s, transform .1s;
}
.inv-row:hover { box-shadow: var(--shadow); border-color: #d3d7de; }
.inv-thumb { position: relative; background: #0d1b3a; }
.inv-thumb img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; }
.inv-thumb .no-photo { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 150px; color: #9fb0d0; font-size: 13px; }
.inv-cat { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--brand); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 4px; }
.inv-main { padding: 16px 4px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.inv-title { margin: 0; font-size: 19px; color: var(--brand); }
.inv-year { color: var(--muted); font-weight: 600; }
.inv-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.inv-specs .spec { display: inline-flex; align-items: center; gap: 6px; }
.inv-specs .divider { width: 1px; height: 14px; background: var(--line); }
.inv-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-stock { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; }
.inv-store { font-size: 12.5px; color: var(--muted); }
.inv-aside { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; padding: 16px 18px; background: var(--surface-2); border-left: 1px solid var(--line); text-align: right; }
.inv-price { font-size: 22px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.inv-cta { font-size: 13px; font-weight: 700; color: var(--brand); }
/* Modo GRADE */
.inv-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.inv-list.is-grid .inv-row { grid-template-columns: 1fr; }
.inv-list.is-grid .inv-thumb img, .inv-list.is-grid .inv-thumb .no-photo { min-height: 0; aspect-ratio: 16/10; }
.inv-list.is-grid .inv-main { padding: 14px 16px; }
.inv-list.is-grid .inv-aside { flex-direction: row; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); text-align: left; padding: 12px 16px; }
@media (max-width: 900px) {
  .inv-grid { grid-template-columns: 1fr; }
  .inv-filters { position: static; }
  .inv-row { grid-template-columns: 150px 1fr; }
  .inv-aside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
}
@media (max-width: 520px) {
  .inv-row { grid-template-columns: 1fr; }
  .inv-thumb img, .inv-thumb .no-photo { aspect-ratio: 16/10; min-height: 0; }
}

/* Paginação */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pg-nums { display: flex; align-items: center; gap: 6px; }
.pg-num, .pg-nav {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  color: var(--brand); font-weight: 700; font-size: 14px;
}
.pg-num:hover, .pg-nav:hover { background: var(--surface-2); border-color: var(--brand); }
.pg-cur { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg-cur:hover { background: var(--brand); }
.pg-gap { padding: 0 4px; color: var(--muted); }
.pg-off { color: var(--muted); opacity: .5; pointer-events: none; }
@media (max-width: 560px) { .pg-nav { min-width: 0; } .pagination { gap: 6px; } }

/* Detalhe do veículo */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.detail-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.detail-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 22px; }
.ficha .item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ficha .item .k { color: var(--muted); }
.ficha .item .v { font-weight: 600; text-align: right; }
.price-tag { font-size: 32px; font-weight: 800; color: var(--brand); }
/* Selo da loja dona do anúncio */
.loja-tag {
  display: flex; align-items: center; gap: 12px; margin: -4px 0 16px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
.loja-tag:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.loja-ava {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.loja-meta { display: flex; flex-direction: column; line-height: 1.25; }
.loja-meta small { color: var(--muted); font-size: 12px; }
.loja-meta strong { color: var(--ink); font-size: 15px; }
.loja-ver { color: var(--brand); font-size: 12.5px; font-weight: 700; margin-top: 2px; }
@media (max-width: 760px) { .detail-cols { grid-template-columns: 1fr; } }

/* ============================ Listing (detalhe do veículo, estilo dealer) */
.listing-grid { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.listing-main { min-width: 0; }
.listing-title { font-size: 30px; margin: 4px 0 12px; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--brand); background: var(--surface-2); }
.chip svg { color: var(--accent-ink, var(--brand)); }
.chip-static { cursor: default; background: var(--surface-2); }
.chip-static:hover { border-color: var(--line); }

/* Galeria */
.gal { margin-bottom: 22px; }
.gal-main { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; }
.gal-main img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.gal-ribbon {
  position: absolute; top: 20px; left: -46px; transform: rotate(-45deg);
  background: var(--accent); color: var(--brand); font-weight: 800; text-transform: uppercase;
  font-size: 12px; letter-spacing: .06em; padding: 6px 60px; box-shadow: var(--shadow-sm);
}
.gal-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.gal-th { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: none; line-height: 0; }
.gal-th img { width: 100%; aspect-ratio: 4/3; object-fit: cover; opacity: .8; transition: opacity .15s; }
.gal-th:hover img { opacity: 1; }
.gal-th.active { border-color: var(--accent); }
.gal-th.active img { opacity: 1; }
.gal-empty { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); text-align: center; color: var(--muted); padding: 60px; margin-bottom: 22px; }

/* Abas */
.tabs { margin-bottom: 22px; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 2px; background: var(--brand); border-radius: var(--r-sm) var(--r-sm) 0 0; overflow: hidden; }
.tab {
  border: 0; background: none; color: #cdd6ea; font-weight: 700; font-size: 13.5px; text-transform: uppercase;
  letter-spacing: .02em; padding: 15px 18px; cursor: pointer; border-top: 3px solid transparent;
  transition: color .15s, background .15s;
}
.tab:hover { color: #fff; }
.tab.active { color: var(--brand); background: #fff; border-top-color: var(--accent); }
.tab-panes { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); padding: 22px; background: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane h3 { margin: 0 0 12px; }

/* Ficha em grade */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 22px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-weight: 600; text-align: right; }

/* Opcionais com check */
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; }
.feat-list li { position: relative; padding-left: 26px; font-size: 14.5px; }
.feat-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: var(--brand); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Destaques */
.hi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.hi { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; text-align: center; }
.hi-v { display: block; font-weight: 800; color: var(--brand); font-size: 17px; }
.hi-k { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }

/* Localização */
.loc-map { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.loc-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Sidebar */
.listing-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.price-box { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-box-top { background: linear-gradient(135deg, var(--brand), var(--brand-dark, #0c2148)); color: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.pb-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.pb-value { font-size: 30px; font-weight: 800; }
.price-box-sub { background: var(--accent); color: var(--brand); font-weight: 700; font-size: 13px; text-align: center; padding: 8px; }
.side-form, .spec-box { padding: 18px; }
/* Formulário de contato */
.sf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sf-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.lead-form .field { position: relative; display: block; margin: 0 0 10px; }
.lead-form .field .fi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.lead-form .field input { margin: 0; padding-left: 40px; }
.lead-form .field input:focus + .fi, .lead-form .field:focus-within .fi { color: var(--brand); }
.lead-form textarea { margin: 0 0 10px; }
.qmsg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.qm {
  font-size: 12px; font-weight: 600; color: var(--brand); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.qm:hover { border-color: var(--brand); }
.qm.on { background: var(--accent); border-color: var(--accent); color: var(--brand); }
.lead-priv { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.lead-priv svg { flex: 0 0 auto; }

/* Relacionados */
.rel { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.rel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rel-head h2 { margin: 0; font-size: 22px; }
.rel-all { font-weight: 700; color: var(--brand); white-space: nowrap; }

@media (max-width: 980px) {
  .listing-grid { grid-template-columns: 1fr; }
  .listing-side { position: static; }
}
@media (max-width: 560px) {
  .gal-thumbs { grid-template-columns: repeat(4, 1fr); }
  .hi-row { grid-template-columns: repeat(2, 1fr); }
  .tab { padding: 12px 13px; font-size: 12.5px; }
}

/* Painéis: cartões de estatística (4 colunas, 2 no mobile) */
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.pstat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.pstat-k { color: var(--muted); font-size: 13px; }
.pstat-v { font-size: 28px; font-weight: 800; margin-top: 4px; line-height: 1.1; }
@media (max-width: 720px) { .pstats { grid-template-columns: repeat(2, 1fr); } }

/* Minha conta (cliente) — cards iguais aos da home + selo de status */
.conta-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.interesses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 14px; }
.int-status {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--brand); box-shadow: var(--shadow-sm);
}
.int-status.ok { background: var(--success); }
.int-status.warn { background: #8a94a6; }
.int-status.brand { background: var(--brand); }
.int-meta { color: var(--muted); font-size: 12.5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- Leads */
.lead-card { border-left: 4px solid var(--brand); }
.lead-card .lead-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lead-card .lead-name { font-weight: 700; }
.lead-card select { width: auto; padding: 6px 10px; font-size: 13px; }
.lead-aff { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; color: var(--brand); background: var(--brand-soft, #eef2fb); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
/* Abas do painel (CRM): Leads (padrão) / Estoque */
.crm-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 22px 0 18px; overflow-x: auto; }
.crm-tab {
  border: 0; background: none; font-family: inherit; font-weight: 800; font-size: 15px; color: var(--muted);
  padding: 13px 18px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.crm-tab:hover { color: var(--ink); }
.crm-tab.active { color: var(--brand); border-bottom-color: var(--accent); }
.tab-badge { background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.crm-tab.active .tab-badge { background: var(--brand); color: #fff; }
.crm-pane { display: none; }
.crm-pane.active { display: block; }
/* Filtro por etapa */
.lead-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lf { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.lf:hover { border-color: var(--brand); color: var(--brand); }
.lf.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lf b { font-weight: 800; opacity: .85; margin-left: 2px; }
/* Leads em grade (escala melhor com muitos) */
.leads-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.leads-list .lead-card { margin: 0; }

/* Histórico do lead (timeline) */
.lead-hist { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.lead-hist > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--brand); list-style: none; }
.lead-hist > summary::-webkit-details-marker { display: none; }
.lead-hist > summary::before { content: "▸ "; font-size: 11px; }
.lead-hist[open] > summary::before { content: "▾ "; }
.timeline { list-style: none; margin: 12px 0 0; padding: 0 0 0 6px; }
.tl-item { position: relative; display: flex; gap: 12px; padding: 0 0 14px 14px; border-left: 2px solid var(--line); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 2px; }
.tl-dot { position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tl-etapa .tl-dot { background: var(--accent); }
.tl-nota .tl-dot { background: var(--muted); }
.tl-body { flex: 1; }
.tl-text { font-size: 13.5px; }
.tl-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.nota-form { display: flex; gap: 8px; margin-top: 6px; }
.nota-form input { margin: 0; flex: 1; font-size: 13px; }
.btn-sm { padding: 7px 14px; font-size: 13px; white-space: nowrap; }

/* -------------------------------------------------------- Layout helpers */
.two-col { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 100px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  background: radial-gradient(1200px 400px at 15% -10%, rgba(225, 29, 42, .25), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 72px 60px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 54px; line-height: 1.08; color: #fff; letter-spacing: -.035em; }
.hero p { color: #c7cede; font-size: 21px; max-width: 62ch; }
.hero .row { margin-top: 28px; }

/* Grade de módulos (hub) */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 30px 0;
}
.module-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9dce2; color: var(--ink); }
.module-card .m-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px; background: var(--brand-soft);
}
.module-card h3 { font-size: 17px; }
.module-card p { color: var(--muted); font-size: 14px; margin: 0; }
.module-card .m-go { margin-top: 12px; color: var(--brand); font-weight: 600; font-size: 14px; }

/* -------------------------------------------------- Estilo Motors (dealer) */
/* Barra de contato slim acima do header */
.topbar-contact { background: var(--navy-2); color: #c3ccdd; font-size: 13.5px; }
.topbar-contact .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar-contact a { color: #c3ccdd; }
.topbar-contact a:hover { color: #fff; }
.topbar-contact .tc-side { display: flex; gap: 18px; align-items: center; }
.topbar-contact strong { color: var(--accent); }

/* Caixa de busca do hero */
.search-tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.search-tabs a { padding: 8px 18px; border-radius: var(--pill); font-weight: 600; font-size: 14px; color: var(--brand); background: var(--brand-soft); }
.search-tabs a:hover { background: #d6deee; color: var(--brand); }
.search-tabs a.active { background: var(--brand); color: #fff; }
.hero-search { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px; }
.hero-search .hs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.hero-search label { margin: 0 0 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

/* Specs rápidas no card de veículo */
.v-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.v-specs span { display: inline-flex; align-items: center; gap: 5px; }
.vehicle-card .v-price { color: var(--brand); }

/* Seção "por que escolher" */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.why { text-align: center; padding: 10px; }
.why .why-ico { width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--brand-soft); }
.why h3 { margin: 0 0 6px; }
.why p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------------------------------------- Hero banner com selo de oferta */
.hero-banner {
  background:
    linear-gradient(90deg, rgba(9, 19, 44, .88) 0%, rgba(9, 19, 44, .55) 55%, rgba(9, 19, 44, .25) 100%),
    url('/img/hero.svg') center / cover no-repeat;
  color: #fff;
}
.hero-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 460px; padding-top: 56px; padding-bottom: 76px; }
.hb-text { max-width: 580px; }
.hb-eyebrow { display: inline-block; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .09em; font-size: 13px; margin-bottom: 14px; }
.hb-text h1 { color: #fff; font-size: 56px; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 16px; }
.hb-text p { color: #dbe3f2; font-size: 20px; margin: 0; }
.btn-hero-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
/* selo circular de oferta */
.offer-badge {
  flex: 0 0 auto; width: 288px; height: 288px; border-radius: 50%;
  background: var(--brand); color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 24px; box-shadow: var(--shadow-lg); border: 5px solid rgba(169, 204, 1, .45);
  transition: transform .15s;
}
.offer-badge:hover { transform: scale(1.03); color: #fff; }
.offer-badge .ob-top { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); }
.offer-badge .ob-model { font-size: 18px; font-weight: 700; }
.offer-badge .ob-price { font-size: 34px; font-weight: 800; color: #fff; }
.offer-badge .ob-cta { margin-top: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; padding: 8px 18px; border-radius: var(--pill); }
@media (max-width: 900px) {
  .hero-banner-inner { flex-direction: column; text-align: center; align-items: center; min-height: 0; padding: 40px 0 70px; }
  .hb-text h1 { font-size: 36px; }
  .hb-text p { font-size: 17px; }
  .offer-badge { width: 220px; height: 220px; }
}

/* ----------------------------------- Faixa de listagem (mesmo cinza do sistema) */
.listings-band { background: var(--bg); padding: 40px 0 50px; margin-top: 20px; }
.lb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lb-head h2 { color: var(--ink); margin: 0; }
.lb-count { color: var(--muted); font-weight: 500; }
.lb-tabs { display: flex; gap: 6px; margin: 20px 0 8px; flex-wrap: wrap; }
.lb-tabs a { padding: 10px 20px; border-radius: 8px; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; color: var(--brand); background: #fff; box-shadow: var(--shadow-sm); }
.lb-tabs a:hover { background: var(--surface-2); }
.lb-tabs a.active { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

/* --------------------------------------- Why choose (faixa azul) */
.section-head { text-align: center; margin: 0 0 42px; }
.section-head h2 { margin: 0 0 12px; }
.accent-dash { width: 56px; height: 4px; background: var(--accent); border-radius: 2px; margin: 0 auto; }
.why-section { padding: 62px 0; margin-top: 44px; background: var(--brand); color: #fff; }
.why-section .section-head h2 { color: #fff; }
.why-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-ico2 { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(169, 204, 1, .4); }
.why-item h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.why-item p { margin: 0; color: #c3ccdd; font-size: 14px; }

/* Serviços — faixa cinza (cor do sistema), cards brancos por cima */
.servicos-band { background: var(--bg); padding: 62px 0; margin-top: 44px; }
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: stretch; }
.serv2 { height: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.serv2:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.serv2-ico { width: 62px; height: 62px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.serv2 h3 { margin: 0 0 8px; font-size: 20px; color: var(--brand); }
.serv2 p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Nossos parceiros (faixa navy — cor do sistema) */
.parceiros-band { background: var(--brand); color: #fff; padding: 62px 0; margin-top: 44px; }
.parceiros-band .section-head h2 { color: #fff; }
.parceiros-sub { color: rgba(255, 255, 255, .92); margin: 8px auto 0; }
/* Marquee: duas fileiras animadas (topo p/ direita, base p/ esquerda) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.marquee-track.dir-left { animation: marquee-left 45s linear infinite; }
.marquee-track.dir-right { animation: marquee-right 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.parceiro-card { flex: 0 0 auto; width: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; border-radius: 12px; padding: 20px 16px; min-height: 96px; color: var(--brand); box-shadow: var(--shadow-sm); transition: transform .12s; text-align: center; }
.parceiro-card:hover { transform: translateY(-3px); color: var(--brand); }
.parceiro-ini { width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.parceiro-nome { font-weight: 700; font-size: 14px; }

/* Venha nos fazer uma visita (info + mapa) */
.visita { padding: 62px 0; }
.visita-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.visita-info h2 { margin: 0 0 12px; }
.visita-info .lead { margin: 0 0 8px; }
.visita-card { display: flex; align-items: flex-start; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.visita-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.visita-horarios > div { padding: 4px 0; }
.visita-horarios strong { margin-right: 8px; }
.visita-map { display: flex; flex-direction: column; }
.map-head { text-align: right; margin-bottom: 10px; font-weight: 600; }
.visita-map iframe { width: 100%; height: 440px; border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
@media (max-width: 860px) { .visita-cols { grid-template-columns: 1fr; } .visita-map iframe { height: 320px; } }

/* ---------------------------------------------------------------- Alerts */
.alert { border-radius: var(--r); padding: 14px 16px; margin: 14px 0; font-weight: 500; }
.alert.success { background: var(--success-soft); color: var(--success); border: 1px solid #bbe6c8; }
.alert.error { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #f4c7ca; }

/* ------------------------------------------------------------------ Auth */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: start center; padding: 64px 20px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.auth-alt { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }
.auth-alt a { color: var(--brand); font-weight: 600; margin: 0 2px; }
.auth-alt .sep { margin: 0 4px; opacity: .5; }

/* ------------------------------------------------------------------ Admin */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-side {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-sm);
}
.admin-side a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600; font-size: 15px; margin: 2px 0;
}
.admin-side a:hover { background: var(--surface-2); color: var(--ink); }
.admin-side a.active { background: var(--brand-soft); color: var(--brand-dark); }
.admin-side a .ico { width: 22px; text-align: center; font-size: 17px; }
@media (max-width: 900px) {
  .admin-side { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .admin-side a { white-space: nowrap; }
  .admin-side a .label { display: none; }
}

.admin-head { margin-bottom: 20px; }
.admin-head .sub { color: var(--muted); margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
/* Grade para listas do admin (usuários, veículos): 2-3 por linha */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.admin-grid .card { margin: 0; height: 100%; display: flex; flex-direction: column; }

/* Barra com o botão "+ Novo" que abre o modal de cadastro */
.novo-bar { text-align: right; margin: 0 0 18px; }

/* Modal de cadastro (elemento nativo <dialog>) */
dialog.modal {
  border: none; padding: 0; border-radius: var(--r-lg);
  max-width: 760px; width: calc(100% - 40px);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: rgba(14, 22, 38, .55); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: modal-in .16s ease-out; }
@keyframes modal-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-body { padding: 26px; }
.modal-close {
  background: transparent; color: var(--muted); border: none; box-shadow: none;
  font-size: 20px; line-height: 1; padding: 6px 10px; cursor: pointer; border-radius: var(--r-sm);
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }

/* Grade de opcionais (checkboxes) e labels de checkbox */
.opcionais-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; margin: 4px 0; }
.chk { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--ink); cursor: pointer; }
.chk input[type="checkbox"] { width: auto; min-width: 0; margin: 0; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 16px;
  transition: transform .12s, box-shadow .12s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat .s-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--brand-soft); flex-shrink: 0; }
.stat .s-label { color: var(--muted); font-size: 14px; }
.stat .s-value { font-size: 28px; font-weight: 800; line-height: 1.12; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: #99a2b5; padding: 28px 0; font-size: 14px; flex-shrink: 0; margin-top: auto; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: #c7cede; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 820px) {
  .container { padding: 0 20px; }
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .main-nav { order: 3; width: 100%; }
  h1 { font-size: 30px; }
  .hero { padding: 40px 26px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 18px; }
}
