/* ============================================================
   BR8 Garagem — app.css
   Paleta: Verde BR8 (#1a6b28) | Mobile First | Dark/Light Mode
   ============================================================ */

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens de cor — DARK MODE (padrão) ─────────────────────── */
:root {
  /* Marca */
  --brand-green:      #1a6b28;
  --brand-green-mid:  #228b35;
  --brand-green-lite: #2daa42;
  --brand-white:      #ffffff;

  /* Superfícies dark */
  --color-bg:        #0d0d0d;
  --color-surface:   #141a15;
  --color-surface-2: #1c251d;
  --color-border:    #2a3a2b;

  /* Primária (verde) */
  --color-primary:    var(--brand-green-mid);
  --color-primary-dk: var(--brand-green);
  --color-primary-lt: var(--brand-green-lite);

  /* Texto */
  --color-text:   #eef2ee;
  --color-muted:  #7a9e7c;
  --color-invert: #0d0d0d;   /* texto sobre botão primário */

  /* Semânticas */
  --color-danger:  #e53935;
  --color-success: #43a047;
  --color-warning: #f9a825;
  --color-info:    #1565c0;

  /* Tipografia */
  --font-base: 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Espaçamentos */
  --gap-xs: 4px;  --gap-sm: 8px;  --gap-md: 16px;
  --gap-lg: 24px; --gap-xl: 40px;

  /* Raios */
  --radius-sm: 6px;  --radius-md: 10px;
  --radius-lg: 16px; --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.45);
  --shadow-md: 0 4px 14px rgba(0,0,0,.55);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.65);

  /* Layout */
  --max-width: 1200px;
  --header-h:  62px;

  /* Transição de tema */
  --theme-transition: background .25s, color .25s, border-color .25s;
}

/* ── LIGHT MODE ──────────────────────────────────────────────── */
[data-theme="light"] {
  --color-bg:        #f2f7f3;
  --color-surface:   #ffffff;
  --color-surface-2: #e6f0e8;
  --color-border:    #c0d8c4;

  --color-primary:    var(--brand-green);
  --color-primary-dk: #145220;
  --color-primary-lt: var(--brand-green-mid);

  --color-text:   #111a12;
  --color-muted:  #4e6e52;
  --color-invert: #ffffff;

  --shadow-sm: 0 1px 4px rgba(0,80,20,.12);
  --shadow-md: 0 4px 14px rgba(0,80,20,.15);
  --shadow-lg: 0 8px 32px rgba(0,80,20,.18);
}

/* ── Base global ─────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: var(--theme-transition);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--color-primary-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 2px solid var(--brand-green);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.logo-sub {
  font-size: .8rem;
  color: var(--color-muted);
  font-weight: 500;
  display: none;
}
@media (min-width: 480px) { .logo-sub { display: block; } }

/* ── Hamburger ───────────────────────────────────────────────── */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--gap-sm);
  margin-left: auto;
  border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: var(--color-surface-2); }
.menu-toggle .bar {
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── Nav (mobile drawer) ─────────────────────────────────────── */
.nav-main {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-surface);
  flex-direction: column;
  padding: var(--gap-lg);
  overflow-y: auto;
  z-index: 99;
  border-top: 1px solid var(--color-border);
}
.nav-main.open { display: flex; }

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}
.nav-list a {
  display: block;
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  transition: background .15s;
}
.nav-list a:hover {
  background: var(--color-surface-2);
  color: var(--color-primary-lt);
  text-decoration: none;
}

.nav-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--color-border);
}
.nav-nome { font-weight: 600; font-size: .9rem; }

/* ── Desktop Nav ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-main {
    display: flex !important;
    position: static;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--gap-md);
    overflow: visible;
    margin-left: auto;
    border-top: none;
  }
  .nav-list { flex-direction: row; gap: 2px; }
  .nav-list a { padding: var(--gap-xs) var(--gap-sm); font-size: .88rem; }
  .nav-user { margin-top: 0; padding-top: 0; border-top: none; }
}

/* ── BOTÃO TEMA ──────────────────────────────────────────────── */
.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
  color: var(--color-text);
}
.btn-theme:hover { background: var(--color-primary); color: var(--brand-white); transform: scale(1.08); }
.btn-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* No modo escuro → mostra sol (clicar ativa modo claro) */
/* No modo claro  → mostra lua (clicar ativa modo escuro) */
.icon-sol  { display: block; }
.icon-lua  { display: none; }
[data-theme="light"] .icon-sol { display: none;  }
[data-theme="light"] .icon-lua { display: block; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-gerente  { background: #1a3a70; color: #fff; }
.badge-vendedor { background: var(--brand-green); color: #fff; }
.badge-sold     { background: var(--color-danger);  color: #fff; }
.badge-reserved { background: var(--color-warning); color: #000; }

/* ── Botões ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--color-primary);
  color: var(--brand-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-lt);
  border-color: var(--color-primary-lt);
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(34,139,53,.25);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-border); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover { color: var(--color-text); background: var(--color-surface-2); text-decoration: none; }

.btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-sm   { padding: .35rem .85rem; font-size: .82rem; }
.btn-full { width: 100%; }

/* Botão inline dentro de label (ex: "↺ buscar FIPE") */
.btn-link-inline {
  background: none; border: none; padding: 0;
  color: var(--color-primary); font-size: .8rem; font-weight: 500;
  cursor: pointer; margin-left: .5rem; text-decoration: underline;
  vertical-align: middle;
}
.btn-link-inline:hover { color: var(--color-primary-dark, var(--color-primary)); opacity: .8; }
.btn-link-inline:disabled { opacity: .5; cursor: not-allowed; }

/* ── Formulários ────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--gap-xs); }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--color-muted); }
.required { color: var(--color-danger); }

.form-control {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  padding: .65rem .9rem;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(34,139,53,.2);
}
.form-control[readonly] { opacity: .6; cursor: default; }
.form-hint { font-size: .8rem; color: var(--color-muted); }

.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap-md); }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-group--full { grid-column: 1 / -1; }
  .form-group--2x   { grid-column: span 2; }
}

.form-section {
  padding: var(--gap-lg) 0;
  border-bottom: 1px solid var(--color-border);
}
.form-section:last-child { border-bottom: none; }
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-lt);
  margin-bottom: var(--gap-md);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}
.form-section-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 1em;
  background: var(--color-primary);
  border-radius: 2px;
}
.form-actions {
  display: flex;
  gap: var(--gap-md);
  justify-content: flex-end;
  padding: var(--gap-lg) 0;
}
.form-details summary {
  cursor: pointer;
  color: var(--color-muted);
  font-size: .9rem;
  margin-bottom: var(--gap-md);
}

/* Input senha */
.input-password { position: relative; }
.input-password .form-control { padding-right: 2.8rem; }
.toggle-senha {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--color-muted); cursor: pointer;
}

/* Radio e Checkbox */
.radio-group, .checkbox-grid { display: flex; flex-wrap: wrap; gap: var(--gap-sm); }
.checkbox-grid { gap: var(--gap-xs) var(--gap-md); }
.radio-item, .checkbox-item {
  display: flex; align-items: center; gap: var(--gap-xs);
  font-size: .9rem; cursor: pointer;
}
.radio-item input, .checkbox-item input { accent-color: var(--color-primary); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: var(--gap-md);
  border-left: 3px solid;
}
.alert-danger  {
  background: rgba(229,57,53,.1);
  border-color: var(--color-danger);
  color: #ff8a80;
}
[data-theme="light"] .alert-danger { color: #c62828; }

.alert-success {
  background: rgba(34,139,53,.1);
  border-color: var(--color-success);
  color: #a5d6a7;
}
[data-theme="light"] .alert-success { color: #1b5e20; }

/* ── AUTH PAGE ───────────────────────────────────────────────── */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-xl) var(--gap-md);
  background: var(--color-bg);
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl) var(--gap-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--gap-xl);
}
.auth-logo {
  display: block;
  height: 64px;
  width: auto;
}
.auth-logo-text { line-height: 1.2; }
.auth-logo-text strong {
  display: block;
  font-size: 1.3rem;
  color: var(--color-primary-lt);
}
.auth-logo-text span {
  font-size: .85rem;
  color: var(--color-muted);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--gap-lg);
  color: var(--color-text);
}

/* ── PAGE CONTENT ────────────────────────────────────────────── */
.page-content { flex: 1; padding: var(--gap-lg) 0; }
.page-header  { margin-bottom: var(--gap-lg); }
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}
.page-header h1::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1.2em;
  background: var(--brand-green);
  border-radius: 2px;
}

/* ── ANÚNCIO PÚBLICO ─────────────────────────────────────────── */
.anuncio-page { flex: 1; }

/* Galeria */
.galeria { position: relative; background: #000; overflow: hidden; }
.galeria-principal { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.galeria-img-principal {
  width: 100%; height: 100%; object-fit: cover; transition: opacity .3s;
}
.galeria-counter {
  position: absolute; bottom: var(--gap-sm); right: var(--gap-sm);
  background: rgba(0,0,0,.7); color: #fff; font-size: .75rem;
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.galeria-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff; border: none;
  font-size: 1.8rem; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  transition: background .15s;
}
.galeria-btn:hover { background: var(--brand-green); }
.galeria-btn--prev { left: var(--gap-sm); }
.galeria-btn--next { right: var(--gap-sm); }

.galeria-thumbs {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px;
  background: #000; scrollbar-width: thin;
}
.galeria-thumb {
  width: 72px; height: 48px; object-fit: cover;
  border: 2px solid transparent; border-radius: 4px;
  cursor: pointer; flex-shrink: 0; opacity: .65;
  transition: opacity .15s, border-color .15s;
}
.galeria-thumb.active, .galeria-thumb:hover {
  opacity: 1; border-color: var(--brand-green);
}

.anuncio-container { padding-top: var(--gap-lg); padding-bottom: calc(var(--gap-xl) * 2); }
.anuncio-titulo { font-size: 1.6rem; font-weight: 800; }
.anuncio-titulo small { font-size: .88rem; color: var(--color-muted); font-weight: 400; }
.anuncio-ano { color: var(--color-muted); margin-bottom: var(--gap-md); }

.preco-principal { font-size: 1.8rem; font-weight: 900; color: var(--color-primary-lt); }
.preco-fipe      { font-size: .85rem; color: var(--color-muted); display: block; }
.preco-abaixo    { color: var(--color-success); font-size: .82rem; }
.preco-acima     { color: var(--color-danger);  font-size: .82rem; }

.section-title {
  font-size: .9rem; font-weight: 700; color: var(--color-muted);
  margin: var(--gap-lg) 0 var(--gap-sm);
  text-transform: uppercase; letter-spacing: .07em;
  border-left: 3px solid var(--brand-green); padding-left: var(--gap-sm);
}

/* Specs */
.specs-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--color-border);
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--color-border);
}
@media (min-width: 480px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }
.spec-item  { background: var(--color-surface-2); padding: var(--gap-sm) var(--gap-md); }
.spec-label { font-size: .72rem; color: var(--color-muted); display: block; text-transform: uppercase; }
.spec-valor { font-size: .95rem; font-weight: 600; }

/* Opcionais */
.opcionais-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--gap-xs) var(--gap-md); }
.opcional-item  { display: flex; align-items: center; gap: var(--gap-xs); font-size: .9rem; }
.opcional-item svg { color: var(--color-success); flex-shrink: 0; }

/* CTA WhatsApp fixo */
.cta-whatsapp-container {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex; gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  z-index: 50;
}
@media (min-width: 768px) {
  .cta-whatsapp-container {
    position: static;
    margin-top: var(--gap-lg);
    background: transparent;
    border: none; padding: 0;
  }
}
.btn-whatsapp {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: var(--gap-sm);
  background: #25d366; color: #000;
  font-weight: 700; font-size: 1rem;
  padding: .9rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: background .15s;
}
.btn-whatsapp:hover { background: #1db854; text-decoration: none; }
.btn-share {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-2); color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: .9rem 1rem;
  cursor: pointer; transition: background .15s;
}

/* Interesse comprador */
.anuncio-interesse {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  margin-top: var(--gap-xl);
  background: var(--color-surface);
}

/* ── UPLOAD DE IMAGENS ───────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg); text-align: center;
  transition: border-color .15s;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--brand-green);
}
.upload-input { display: none; }
.upload-label {
  display: inline-flex; flex-direction: column;
  align-items: center; gap: var(--gap-sm);
  cursor: pointer; color: var(--color-muted);
}
.upload-label:hover { color: var(--color-primary-lt); }
.preview-grid { display: flex; flex-wrap: wrap; gap: var(--gap-sm); margin-top: var(--gap-md); }
.preview-grid img {
  width: 80px; height: 60px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
}
.preview-grid img:first-child { border-color: var(--brand-green); }

/* ── PLACA LOOKUP ────────────────────────────────────────────── */
.placa-lookup {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; gap: var(--gap-md);
}
.form-group--placa { flex: 1; min-width: 150px; }
.placa-status { font-size: .85rem; color: var(--color-muted); width: 100%; }
.placa-status--success { color: var(--color-success); }
.placa-status--error   { color: var(--color-danger); }
.placa-status--loading { color: var(--color-primary-lt); }

/* ── FIPE BADGE ──────────────────────────────────────────────── */
.fipe-badge {
  padding: var(--gap-sm) var(--gap-md);
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  font-size: .9rem; margin-top: var(--gap-sm);
  border-left: 3px solid var(--brand-green);
}

/* ── COMISSÃO PREVIEW ────────────────────────────────────────── */
.comissao-preview {
  display: flex; align-items: center; gap: var(--gap-md);
  padding: var(--gap-sm) var(--gap-md);
  background: rgba(26,107,40,.1);
  border: 1px solid rgba(26,107,40,.3);
  border-radius: var(--radius-sm);
  margin-top: var(--gap-sm);
}
.comissao-label { color: var(--color-muted); font-size: .9rem; }
.comissao-valor { font-size: 1.2rem; font-weight: 800; color: var(--color-primary-lt); }
.comissao-pct   { font-size: .8rem; color: var(--color-muted); }

/* ── AVALIAÇÃO — Estrelas ─────────────────────────────────────── */
.avaliacao-page {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: var(--gap-xl) var(--gap-md);
}
.avaliacao-container { width: 100%; max-width: 540px; }
.avaliacao-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl) var(--gap-lg);
  box-shadow: var(--shadow-lg);
}
.avaliacao-brand {
  display: flex; align-items: center; gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
}
.avaliacao-brand img { height: 36px; }
.avaliacao-icon { font-size: 3rem; margin-bottom: var(--gap-md); }
.avaliacao-icon.success { color: var(--color-success); }

/* Estrelas CSS-puro (RTL flip) */
.estrelas-input {
  display: flex; flex-direction: row-reverse;
  gap: 4px; width: fit-content;
}
.estrelas-input input { display: none; }
.estrelas-input label {
  font-size: 2.2rem; color: var(--color-border);
  cursor: pointer; transition: color .1s;
}
.estrelas-input input:checked ~ label,
.estrelas-input label:hover,
.estrelas-input label:hover ~ label {
  color: #f9a825;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 2px solid var(--brand-green);
  padding: var(--gap-lg) 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}
.footer-brand { display: flex; align-items: center; gap: var(--gap-sm); }
.footer-brand img { height: 28px; }
.footer-brand strong { color: var(--color-primary-lt); }
.footer-tagline { font-size: .82rem; color: var(--color-muted); }

/* ── ERRO ────────────────────────────────────────────────────── */
.error-page { flex: 1; display: flex; align-items: center; justify-content: center; }
.error-container { text-align: center; padding: var(--gap-xl); }
.error-code {
  font-size: 7rem; font-weight: 900; line-height: 1;
  color: var(--brand-green); text-shadow: 0 0 60px rgba(26,107,40,.4);
}
.error-msg  { font-size: 1.1rem; color: var(--color-muted); margin: var(--gap-md) 0 var(--gap-lg); }

/* ── UTILITIES ───────────────────────────────────────────────── */
.text-muted  { color: var(--color-muted); font-size: .9rem; }
.text-center { text-align: center; }
[hidden]     { display: none !important; }

/* ──────────────────────────────────────────────────────────────
   PUBLIC NAV EXTRAS
────────────────────────────────────────────────────────────── */
.btn-outline-green {
  background: transparent;
  color: var(--color-primary-lt);
  border: 1.5px solid var(--color-primary);
}
.btn-outline-green:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.nav-active { color: var(--color-primary-lt) !important; }

/* ──────────────────────────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #050d06 0%, #0c1a0e 40%, #0f2211 100%);
  overflow: hidden;
  padding-bottom: 80px; /* espaço para a barra de busca */
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 70% 50%, rgba(34,139,53,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand-green-lite);
  margin-bottom: var(--gap-md);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--brand-green-lite);
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: var(--gap-lg);
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: var(--gap-xl);
  max-width: 480px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}
.btn-hero-primary {
  background: var(--brand-green-mid);
  color: #fff;
  border: 2px solid var(--brand-green-mid);
  padding: .85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  font-weight: 700;
  transition: background .15s, transform .1s;
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: var(--brand-green-lite);
  border-color: var(--brand-green-lite);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-hero-ghost {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 2px solid rgba(255,255,255,.2);
  padding: .85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: border-color .15s, color .15s;
  text-decoration: none;
}
.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,.6);
  color: #fff;
  text-decoration: none;
}

/* Barra de busca flutuante */
.hero-search-bar {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  margin-bottom: var(--gap-lg);
}
.hero-search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md) var(--gap-lg);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) {
  .hero-search-form { grid-template-columns: 2fr 1.5fr 1.5fr auto; align-items: end; }
}
.hero-search-field { display: flex; flex-direction: column; gap: 4px; }
.hero-search-field label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-search-btn {
  border-radius: var(--radius-sm);
  padding: .68rem 1.4rem;
  align-self: end;
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────
   STATS SECTION
────────────────────────────────────────────────────────────── */
.stats-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--gap-lg) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  background: var(--color-surface);
  padding: var(--gap-md) var(--gap-lg);
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary-lt);
  line-height: 1;
}
.stat-label { font-size: .78rem; color: var(--color-muted); text-align: center; }

/* ──────────────────────────────────────────────────────────────
   SECTION HEADINGS
────────────────────────────────────────────────────────────── */
.catalogo-section { padding: var(--gap-xl) 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
}
.section-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  position: relative;
  padding-left: var(--gap-md);
}
.section-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 4px;
  background: var(--brand-green-mid);
  border-radius: 2px;
}
.section-heading--center { text-align: center; padding-left: 0; margin-bottom: var(--gap-xl); }
.section-heading--center::before { display: none; }
.section-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary-lt);
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────
   CARD VEÍCULO — estilo CarDealer
────────────────────────────────────────────────────────────── */
.catalogo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 480px) { .catalogo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .catalogo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px){ .catalogo-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); } }

.card-veiculo {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card-veiculo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-veiculo--destaque {
  border-color: var(--brand-green-mid);
}

/* Link overlay invisível sobre todo o card */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Foto */
.card-foto {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0a0f0b;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card-veiculo:hover .card-img { transform: scale(1.04); }

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(5,12,6,.85) 100%
  );
  pointer-events: none;
}

/* Badge destaque */
.card-badge--top {
  position: absolute;
  top: var(--gap-sm); left: var(--gap-sm);
  background: var(--brand-green-mid);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

/* FIPE tag */
.card-fipe-tag {
  position: absolute;
  top: var(--gap-sm); right: var(--gap-sm);
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.fipe-abaixo { background: rgba(67,160,71,.85);  color: #fff; }
.fipe-acima  { background: rgba(229,57,53,.75); color: #fff; }

/* Preço sobreposto na foto */
.card-preco-overlay {
  position: absolute;
  bottom: var(--gap-sm); left: var(--gap-sm);
  z-index: 2;
}
.card-preco {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* Body do card */
.card-body {
  padding: var(--gap-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}
.card-titulo-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-sm);
}
.card-titulo {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}
.card-titulo a {
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.card-titulo a:hover { color: var(--color-primary-lt); }
.card-ano {
  font-size: .78rem;
  color: var(--color-muted);
  white-space: nowrap;
  font-weight: 600;
}
.card-versao {
  font-size: .78rem;
  color: var(--color-muted);
}
.card-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs) var(--gap-sm);
  margin-top: var(--gap-xs);
}
.card-spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: var(--color-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.card-spec svg { flex-shrink: 0; opacity: .7; }

/* CTA abaixo do grid */
.catalogo-cta {
  text-align: center;
  margin-top: var(--gap-xl);
}
.catalogo-vazio {
  text-align: center;
  padding: var(--gap-xl);
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}
.catalogo-vazio svg { opacity: .3; }

/* ──────────────────────────────────────────────────────────────
   DIFERENCIAIS SECTION
────────────────────────────────────────────────────────────── */
.diferenciais-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--gap-xl) 0 calc(var(--gap-xl) * 1.5);
}
.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 480px) { .diferenciais-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .diferenciais-grid { grid-template-columns: repeat(4, 1fr); } }
.diferencial-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.diferencial-icon {
  width: 52px; height: 52px;
  background: rgba(34,139,53,.12);
  border: 1px solid rgba(34,139,53,.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-lt);
}
.diferencial-card h3 {
  font-size: .95rem;
  font-weight: 700;
}
.diferencial-card p {
  font-size: .85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────
   FOOTER PÚBLICO
────────────────────────────────────────────────────────────── */
.site-footer--public {
  background: var(--color-surface);
  border-top: 2px solid var(--brand-green);
  padding: var(--gap-xl) 0 var(--gap-lg);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer-col--brand .footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: var(--gap-md);
}
.footer-desc {
  font-size: .88rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--gap-md);
}
.btn-whatsapp--footer {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  background: #25d366;
  color: #000;
  font-weight: 700;
  font-size: .9rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background .15s;
}
.btn-whatsapp--footer:hover { background: #1db854; text-decoration: none; }

.footer-col-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--gap-md);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.footer-links a {
  font-size: .88rem;
  color: var(--color-text);
  opacity: .75;
  transition: opacity .15s;
}
.footer-links a:hover { opacity: 1; text-decoration: none; color: var(--color-primary-lt); }
.footer-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.footer-trust li {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: .85rem;
  color: var(--color-muted);
}
.footer-trust svg { color: var(--color-success); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--gap-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  font-size: .8rem;
  color: var(--color-muted);
}
.footer-bottom a { color: var(--color-muted); }
.footer-bottom a:hover { color: var(--color-primary-lt); }

/* ──────────────────────────────────────────────────────────────
   CATÁLOGO PAGE
────────────────────────────────────────────────────────────── */
.catalogo-hero {
  background: linear-gradient(135deg, #050d06 0%, #0c1a0e 100%);
  padding: var(--gap-xl) 0 var(--gap-lg);
}
.catalogo-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--gap-xs);
}
.catalogo-hero-sub { color: rgba(255,255,255,.55); font-size: .95rem; }

.catalogo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}
@media (min-width: 900px) {
  .catalogo-layout { grid-template-columns: 260px 1fr; align-items: start; }
}

/* Sidebar filtros */
.filtros-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  display: none;
}
@media (min-width: 900px) { .filtros-sidebar { display: block; position: sticky; top: 80px; } }
.filtros-sidebar--open { display: block; }

.filtros-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-lg);
}
.filtros-titulo {
  font-size: 1rem;
  font-weight: 700;
}
.filtros-limpar {
  font-size: .8rem;
  color: var(--color-danger);
}
.filtros-limpar:hover { text-decoration: underline; }
.filtro-grupo {
  margin-bottom: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}
.filtro-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.filtro-range {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}
.filtro-range .form-control { font-size: .85rem; padding: .5rem .7rem; }
.filtro-range-sep { color: var(--color-muted); font-size: .85rem; flex-shrink: 0; }

/* Toolbar */
.catalogo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--color-border);
}
.filtros-toggle-mobile {
  display: flex;
}
@media (min-width: 900px) { .filtros-toggle-mobile { display: none; } }
.catalogo-contagem {
  font-size: .85rem;
  color: var(--color-muted);
}

/* Paginação */
.paginacao {
  display: flex;
  justify-content: center;
  gap: var(--gap-xs);
  margin-top: var(--gap-xl);
  flex-wrap: wrap;
}
.pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 var(--gap-sm);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pag-btn:hover { background: var(--color-surface-2); text-decoration: none; }
.pag-btn--ativo {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────────
   ANÚNCIO v2 — Detalhes do veículo
────────────────────────────────────────────────────────────── */
.anuncio-page--v2 { flex: 1; }

/* Galeria v2 */
.galeria-v2 {
  background: #000;
  position: relative;
}
.galeria-stage {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 560px;
  overflow: hidden;
  cursor: zoom-in;
}
@media (min-width: 900px) { .galeria-stage { aspect-ratio: 16/7; } }

.galeria-img-main {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .25s;
}
.galeria-status-tag {
  position: absolute;
  top: var(--gap-md); left: var(--gap-md);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.galeria-status-tag--vendido  { background: var(--color-danger); color: #fff; }
.galeria-status-tag--reservado{ background: var(--color-warning); color: #000; }

.galeria-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 3;
}
.galeria-nav:hover { background: var(--brand-green-mid); }
.galeria-nav--prev { left: var(--gap-md); }
.galeria-nav--next { right: var(--gap-md); }

.galeria-counter-v2 {
  position: absolute; bottom: var(--gap-md); left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.65); color: #fff;
  font-size: .75rem; padding: 4px 12px;
  border-radius: var(--radius-pill); z-index: 2;
}
.galeria-btn-ampliar {
  position: absolute; bottom: var(--gap-md); right: var(--gap-md);
  width: 38px; height: 38px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; transition: background .15s;
}
.galeria-btn-ampliar:hover { background: var(--brand-green-mid); }

.galeria-thumbs-v2 {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #000;
  overflow-x: auto;
  scrollbar-width: thin;
}
.galeria-thumb-btn {
  flex-shrink: 0;
  width: 80px; height: 54px;
  padding: 0; border: 2px solid transparent;
  background: none; cursor: pointer;
  border-radius: 4px; overflow: hidden;
  opacity: .6; transition: opacity .15s, border-color .15s;
}
.galeria-thumb-btn.active,
.galeria-thumb-btn:hover { opacity: 1; border-color: var(--brand-green-mid); }
.galeria-thumb-btn img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.galeria-sem-foto {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 280px;
  color: var(--color-muted); gap: var(--gap-md);
}
.galeria-sem-foto svg { opacity: .3; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 9999;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none !important; }
.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: var(--gap-md); right: var(--gap-md);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10000; transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.lightbox-nav:hover { background: var(--brand-green-mid); }
.lightbox-nav--prev { left: var(--gap-md); }
.lightbox-nav--next { right: var(--gap-md); }
.lightbox-counter {
  position: absolute; bottom: var(--gap-md); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .85rem;
}

/* Layout do anúncio */
.anuncio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}
@media (min-width: 960px) {
  .anuncio-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

/* Anúncio main */
.anuncio-header-v2 { margin-bottom: var(--gap-lg); }
.anuncio-id {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: var(--gap-xs);
}
.anuncio-titulo-v2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--gap-xs);
}
.anuncio-versao {
  display: block;
  font-size: .9rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-top: 4px;
}
.anuncio-ano-v2 { color: var(--color-muted); font-size: .95rem; }

/* Badges de specs */
.anuncio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  margin-bottom: var(--gap-lg);
}
.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text);
}
.spec-badge svg { opacity: .65; }

/* DETRAN box */
.detran-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--brand-green-mid);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  margin-bottom: var(--gap-lg);
}
.detran-box-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: .85rem;
  color: var(--color-primary-lt);
  margin-bottom: var(--gap-md);
}
.detran-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
@media (min-width: 480px) { .detran-grid { grid-template-columns: repeat(3, 1fr); } }
.detran-item {
  background: var(--color-surface-2);
  padding: var(--gap-sm) var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detran-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--color-muted); }
.detran-valor { font-size: .9rem; font-weight: 600; }

/* Seções do anúncio */
.anuncio-secao { margin-bottom: var(--gap-xl); }
.anuncio-secao-titulo {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
  border-left: 3px solid var(--brand-green);
  padding-left: var(--gap-sm);
  margin-bottom: var(--gap-md);
}
.anuncio-descricao {
  font-size: .95rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Sidebar anúncio */
.anuncio-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
@media (min-width: 960px) {
  .anuncio-sidebar { position: sticky; top: 80px; }
}

.sidebar-preco-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.sidebar-preco-principal {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary-lt);
  line-height: 1;
}
.sidebar-fipe {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--gap-sm) var(--gap-md);
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-border);
}
.sidebar-fipe-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--color-muted); }
.sidebar-fipe-val   { font-size: 1rem; font-weight: 700; }
.sidebar-fipe-diff  { font-size: .8rem; font-weight: 700; }
.sidebar-fipe-cod   { font-size: .7rem; color: var(--color-muted); }

.btn-whatsapp--sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  background: #25d366; color: #000;
  font-weight: 800; font-size: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s;
  width: 100%;
}
.btn-whatsapp--sidebar:hover { background: #1db854; text-decoration: none; }

.sidebar-status-tag {
  text-align: center;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-sm);
}
.sidebar-status-tag--vendido  { background: rgba(229,57,53,.15); color: var(--color-danger); border: 1px solid var(--color-danger); }
.sidebar-status-tag--reservado{ background: rgba(249,168,37,.1);  color: var(--color-warning); border: 1px solid var(--color-warning); }

.sidebar-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--color-muted);
}

.sidebar-interesse-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
}
.sidebar-card-titulo {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
  border-left: 3px solid var(--brand-green);
  padding-left: var(--gap-sm);
  margin-bottom: var(--gap-md);
}

/* Sidebar interesse sempre visível (mobile: stacks below preco card) */

/* ──────────────────────────────────────────────────────────────
   LIGHT MODE overrides para páginas públicas
────────────────────────────────────────────────────────────── */
/* ──────────────────────────────────────────────────────────────
   DETRAN RESULT BOX — formulário interno
────────────────────────────────────────────────────────────── */
.detran-result-box {
  margin-top: var(--gap-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--brand-green-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.detran-result-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  background: var(--color-surface-2);
  font-size: .85rem;
  border-bottom: 1px solid var(--color-border);
}
.detran-fonte-tag {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.detran-fonte-tag--full  { background: rgba(34,139,53,.15); color: var(--color-primary-lt); }
.detran-fonte-tag--basic { background: rgba(249,168,37,.15); color: var(--color-warning); }

.detran-situacao { padding: var(--gap-sm) var(--gap-md); }
.detran-alerta {
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
}
.detran-alerta--ok     { background: rgba(67,160,71,.1);  color: #66bb6a; border: 1px solid rgba(67,160,71,.3); }
.detran-alerta--info   { background: rgba(21,101,192,.1); color: #90caf9; border: 1px solid rgba(21,101,192,.3); }
.detran-alerta--aviso  { background: rgba(249,168,37,.1); color: #ffd54f; border: 1px solid rgba(249,168,37,.3); }
.detran-alerta--perigo { background: rgba(229,57,53,.12); color: #ef9a9a; border: 1px solid rgba(229,57,53,.3);  }

[data-theme="light"] .detran-alerta--ok     { color: #2e7d32; }
[data-theme="light"] .detran-alerta--aviso  { color: #e65100; }
[data-theme="light"] .detran-alerta--perigo { color: #b71c1c; }

.detran-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  margin: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
@media (min-width: 480px) { .detran-result-grid { grid-template-columns: repeat(3, 1fr); } }
.detran-result-item {
  background: var(--color-surface-2);
  padding: var(--gap-sm) var(--gap-md);
  display: flex; flex-direction: column; gap: 2px;
}
.detran-result-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--color-muted); }
.detran-result-val   { font-size: .88rem; font-weight: 600; }

/* Dados sensíveis — gerente */
.detran-sensivel {
  margin: 0 var(--gap-md) var(--gap-md);
  border: 1px dashed rgba(229,57,53,.4);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.detran-sensivel-header {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: var(--gap-xs) var(--gap-sm);
  background: rgba(229,57,53,.07);
  font-size: .72rem;
  color: var(--color-danger);
  font-weight: 600;
}
.detran-restricoes {
  padding: var(--gap-sm) var(--gap-md);
  font-size: .82rem;
  color: var(--color-muted);
}
.detran-restricoes ul { margin-top: var(--gap-xs); padding-left: var(--gap-md); }
.detran-restricoes li { margin-bottom: 2px; }

/* DETRAN box — página pública do anúncio */
.detran-nota {
  padding: var(--gap-xs) var(--gap-md) var(--gap-sm);
  font-size: .72rem;
  color: var(--color-muted);
}

/* Situação pública (anúncio) */
.detran-situacao-pub {
  margin: var(--gap-sm) var(--gap-md);
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
}
.detran-situacao-pub--ok     { background: rgba(67,160,71,.1);  color: #66bb6a; border: 1px solid rgba(67,160,71,.3); }
.detran-situacao-pub--aviso  { background: rgba(249,168,37,.1); color: #ffd54f; border: 1px solid rgba(249,168,37,.3); }
.detran-situacao-pub--perigo { background: rgba(229,57,53,.12); color: #ef9a9a; border: 1px solid rgba(229,57,53,.3);  }

[data-theme="light"] .detran-situacao-pub--ok     { color: #2e7d32; }
[data-theme="light"] .detran-situacao-pub--aviso  { color: #e65100; }
[data-theme="light"] .detran-situacao-pub--perigo { color: #b71c1c; }

/* ──────────────────────────────────────────────────────────────
   LIGHT MODE overrides para páginas públicas
────────────────────────────────────────────────────────────── */
[data-theme="light"] .hero-section {
  background: linear-gradient(135deg, #0a1a0b 0%, #0d2410 100%);
}
[data-theme="light"] .catalogo-hero {
  background: linear-gradient(135deg, #0a1a0b 0%, #0d2410 100%);
}
[data-theme="light"] .card-veiculo { border-color: #c0d8c4; }
[data-theme="light"] .sidebar-fipe { background: #e6f0e8; }
