:root {
  --card: #111820;
  --border: #2a2a2a;
  --bg3: #242424;
  --red: #e63946;
  --text: #f3f4f6;
  --text2: #d1d5db;
  --muted: #a1a1aa;
  --font-serif: Georgia, 'Times New Roman', serif;
  --display: 'Arial Black', Arial, sans-serif;
}

/* ===== GRID DE CARDS (feed) ===== */
.grid,
ul.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  padding: 10px 0 30px;
  margin: 0;
}

/* Tablet: 3 colunas */
@media (min-width: 768px) {
  .grid,
  ul.cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PC: 4 colunas */
@media (min-width: 1024px) {
  .grid,
  ul.cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== CARD ===== */
.card {
  background: #1A1A1A;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.car-card {
  flex: 0 0 280px;
  width: 280px;
  min-width: 250px;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-image img,
.card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

ul.cards > li {
  break-inside: avoid;
  margin-bottom: 0;
  min-width: 0;
}

.card-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-card .card-content {
  padding: 10px 12px;
}

.card-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-categoria {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 4px;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-data {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Autor do post (feed de usuários) */
.card-autor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}

.card-autor-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff5e62);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.card-autor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-autor-nome {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.icone-social {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s ease;
  font-size: 0.8rem;
}

.icone-social:hover {
  background: var(--bg3);
  color: var(--text);
}

.icone-social svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  display: block;
  flex-shrink: 0;
}

.icone-social.ativo,
.icone-curtir.ativo {
  color: var(--red);
}

.icone-social.ativo svg,
.icone-curtir.ativo svg {
  fill: var(--red);
  stroke: var(--red);
}

.icone-excluir {
  margin-left: auto;
}

.icone-excluir:hover {
  color: #f87171;
}

.social-contador {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 12px;
  line-height: 1;
}

.btn-dots {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-dots:hover {
  background: var(--bg3);
  color: var(--red);
  transform: scale(1.06);
}

.estado-vazio,
.estado-erro {
  list-style: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
  font-size: 0.85rem;
  line-height: 1.5;
}

.wrap-carregar-mais {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
  list-style: none;
}

.btn-carregar-mais {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-radius: 25px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-carregar-mais:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ===== VCARD (anúncios de imóveis / veículos) ===== */
.vcard {
  break-inside: avoid;
  display: block;
  text-decoration: none;
  background: #1A1A1A;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  contain: layout;
  color: var(--text);
}

.vcard:active {
  transform: scale(0.97);
}

.vcard-img {
  width: 100%;
  height: 14rem;
  background: var(--bg3);
  overflow: hidden;
}

.vcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vcard-body {
  padding: 9px 10px 11px;
}

.vcard-nome {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 5px;
}

.vcard-motor {
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  padding: 5px 0;
  gap: 4px;
}

.pill {
  font-size: 0.85rem;
  background: var(--bg3);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--text2);
}

.no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
}

.vcard-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-right: -10px;
}

.vcard-price .btn-fav-wrap {
  padding: 5px;
}

.vcard-city {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}

.vcard-endereco {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 3px;
}

.empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Variante Filtros (Glassmorphism leve) */
.mu-sheet--filters {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-opt-grid,
.modal-ano-faixas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}

.modal-opt-btn {
  background: #111820;
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  cursor: pointer;
}

.modal-opt-btn:hover {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.08);
}

.modal-opt-btn.on {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: none;
}

.modal-btn-limpar,
.btn-filter-all {
  flex: 1;
  padding: 12px;
  border-radius: 25px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-btn-limpar {
  background: var(--bg3);
  color: var(--text2);
}

.btn-filter-all {
  background: var(--red);
  color: #fff;
}

.modal-btn-limpar:hover,
.btn-filter-all:hover {
  opacity: 0.9;
}

/* Específico da página de veículos */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-gray, #949292);
  margin: 0.3rem 0;
}

.results-bar {
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #949292;
  max-width: 1000px;
  margin: 0 auto;
}

.results-count,
.results-count b {
  font-size: 0.72rem;
  color: #949292;
}

.sort-sel {
  border-radius: 15px;
  padding: 3px 10px;
  color: #949292;
}

.card-sem-imagem {
  font-size: 2.5rem;
}
.search-input {width:100%;}
/* Textos do card (dentro da foto) */
.vei-info,
.vei-preco {
  margin: 0;
  padding: 0 4px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.vei-info {
  font-size: 0.72rem;
}

.vei-preco {
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-ver-mais {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid #fff;
  border-radius: 14px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.btn-fav-wrap button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.zoom-info .vei-info {
  font-size: 0.85rem;
}

.zoom-info .vei-preco {
  font-size: 1.3rem;
  margin: 2px 0 8px;
}

.zoom-info .btn-ver-mais,
#modal-viewer .btn-ver-mais {
  font-size: 0.8rem;
  padding: 5px 14px;
}

/* Viewer */
#modal-viewer .viewer-actions {
  display: none;
}

#modal-viewer .viewer-autor > div:first-child {
  display: none;
}

#modal-viewer .viewer-autor {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
}

#modal-viewer .viewer-desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-line;
}

#modal-viewer .card-rodape-linha {
  border-top: 0;
  padding: 0;
}

#modal-viewer .card-rodape-cidade {
  color: #fff;
  font-weight: 700;
}

/* Modal de filtros */
.f-label {
  margin: 14px 0 6px;
  font-size: 0.8rem;
  color: var(--text2);
}

#modal-filtros .modal-sheet {
  padding-top: 58px;
}

#modal-filtros .modal-footer {
  padding: 0;
}