/* =========================================================
   Carros Lagarto 10.32.316 — HOME = VEÍCULOS / MAIS FOTO

   - mesma altura e proporção dos cards na Home e em /veiculos/;
   - mais área útil para a foto;
   - menos fundo preto no bloco de informações;
   - câmbio mostra apenas o tipo (Manual, Automático, CVT etc.).
   ========================================================= */

@media (max-width: 740px) {
  /* Um único desenho para Home pública, patrocinados e categoria Veículos. */
  html body.clc-home-v63 .clc-free-cascade-grid > article.clc-home-public-vehicle-card.clc-category-vehicle-card,
  html body.clc-home-premium .clc-sponsored-section--vehicle-top .clc-sponsored-track > article.clc-home-sponsored-vehicle-card.clc-category-vehicle-card,
  html body.clc-category-veiculos .clc-category-grid > article.clc-category-vehicle-card,
  html body.clc-category-veiculos .clc-category-sponsored-track > article.clc-category-vehicle-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #040706 !important;
  }

  /* Foto mais alta: passa a dominar visualmente o card. */
  html body.clc-home-v63 .clc-free-cascade-grid .clc-home-public-vehicle-card .clc-category-vehicle-media,
  html body.clc-home-premium .clc-sponsored-section--vehicle-top .clc-home-sponsored-vehicle-card .clc-category-vehicle-media,
  html body.clc-category-veiculos article.clc-category-vehicle-card .clc-category-vehicle-media {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 6 / 5 !important;
    overflow: hidden !important;
    background: #080c09 !important;
  }

  html body.clc-home-v63 .clc-free-cascade-grid .clc-home-public-vehicle-card .clc-category-vehicle-media img,
  html body.clc-home-premium .clc-sponsored-section--vehicle-top .clc-home-sponsored-vehicle-card .clc-category-vehicle-media img,
  html body.clc-category-veiculos article.clc-category-vehicle-card .clc-category-vehicle-media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* Bloco preto menor, suficiente apenas para nome + câmbio + preço. */
  html body.clc-home-v63 .clc-free-cascade-grid .clc-home-public-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines,
  html body.clc-home-premium .clc-sponsored-section--vehicle-top .clc-home-sponsored-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines,
  html body.clc-category-veiculos article.clc-category-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 72px !important;
    height: auto !important;
    max-height: none !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 7px 6px 8px !important;
    box-sizing: border-box !important;
    background: #040706 !important;
    text-align: center !important;
  }

  html body article.clc-category-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines h3,
  html body article.clc-category-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines h3 a {
    min-height: 0 !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body article.clc-category-vehicle-card .clc-vehicle-transmission {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #c8d0cb !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 750 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Compatibilidade: se algum cache ainda trouxer o prefixo antigo em <b>, oculta. */
  html body article.clc-category-vehicle-card .clc-vehicle-transmission b {
    display: none !important;
  }

  html body article.clc-category-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines > strong {
    margin: 1px 0 0 !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  /* Home e categoria usam a mesma grade e o mesmo espaçamento. */
  html body.clc-home-v63 .clc-free-cascade-grid,
  html body.clc-category-veiculos .clc-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 9px !important;
  }

  /* Patrocinados também recebem exatamente a mesma largura dos cards comuns. */
  html body.clc-home-premium .clc-sponsored-section--vehicle-top .clc-sponsored-track,
  html body.clc-category-veiculos .clc-category-sponsored-track {
    align-items: flex-start !important;
    gap: 8px !important;
  }

  html body.clc-home-premium .clc-sponsored-section--vehicle-top .clc-sponsored-track > article.clc-category-vehicle-card,
  html body.clc-category-veiculos .clc-category-sponsored-track > article.clc-category-vehicle-card {
    flex: 0 0 calc((100% - 8px) / 2) !important;
    width: calc((100% - 8px) / 2) !important;
    max-width: calc((100% - 8px) / 2) !important;
  }
}

@media (max-width: 390px) {
  html body.clc-home-v63 .clc-free-cascade-grid .clc-home-public-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines,
  html body.clc-home-premium .clc-sponsored-section--vehicle-top .clc-home-sponsored-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines,
  html body.clc-category-veiculos article.clc-category-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines {
    min-height: 68px !important;
    gap: 2px !important;
    padding: 6px 5px 7px !important;
  }

  html body article.clc-category-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines h3,
  html body article.clc-category-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines h3 a {
    font-size: 12.8px !important;
  }

  html body article.clc-category-vehicle-card .clc-vehicle-transmission {
    font-size: 9.5px !important;
  }

  html body article.clc-category-vehicle-card .clc-category-vehicle-content.clc-vehicle-card-two-lines > strong {
    font-size: 16px !important;
  }
}
