/*
 * Comparador (templates/comparar.tpl). Mesma linguagem da ficha e da página do modelo (css/modelo.css): cartões
 * brancos, rótulos pequenos, números grandes. Cada carro tem uma cor (--cor) e as tabelas têm uma coluna de rótulos
 * (--rot) seguida de uma coluna por carro (--nc), alinhadas com os cartões dos carros no topo.
 */
.cp { --rot: 210px; --cp-verde: #13824a; --cp-verde-fundo: #e9f7ef; --cp-vermelho: #d4483f; --cp-linha: #f0f0f0; }
.cp .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-secao { scroll-margin-top: calc(var(--gc-cab-altura, 64px) + 130px); }

/* ------------------------------------------------------------- título */
.cp-cabeca { padding: 8px 0 22px; }
.cp-cabeca h1 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: #1f1f1f; margin: 10px 0 8px; }
.cp-cabeca h1 span { color: #1f1f1f; background: linear-gradient(transparent 72%, color-mix(in srgb, var(--cor) 28%, transparent) 72%); padding: 0 2px; }
.cp-cabeca h1 em { font-style: normal; font-weight: 600; color: var(--gc-texto-3, #9a9a9a); font-size: .7em; margin: 0 4px; }
.cp-cabeca p { font-size: 16px; color: var(--gc-texto-2, #6b6b6b); margin: 0; max-width: 720px; line-height: 1.5; }

/* ------------------------------------------------------------- carros no topo */
.cp-carros { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.cp--tabela .cp-carros { grid-template-columns: var(--rot) repeat(var(--nc), minmax(0, 1fr)); }
.cp-lado { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 0 8px 4px 0; }
.cp-lado-dica { font-size: 12.5px; line-height: 1.9; color: var(--gc-texto-2, #6b6b6b); margin: 0 0 6px; }
.cp-ponto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.cp-ponto--melhor { background: var(--cp-verde); box-shadow: 0 0 0 3px var(--cp-verde-fundo); }
.cp-ponto--pior { background: var(--cp-vermelho); border-radius: 2px; }
.cp-lado-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 0; background: var(--gc-laranja-2, #f15921); color: #fff; font: 600 14px/1 inherit; cursor: pointer; transition: background var(--gc-trans);
}
.cp-lado-botao:hover { background: var(--gc-laranja, #ff5a00); }
.cp-lado-botao span { font-size: 19px; font-weight: 500; margin-top: -2px; }
.cp-lado-botao--sec { background: #fff; color: #333; border: 1px solid var(--gc-borda, #ececec); }
.cp-lado-botao--sec:hover { background: #f6f6f6; }

.cp-carro { position: relative; display: flex; flex-direction: column; padding: 12px 12px 14px; border-top: 4px solid var(--cor); border-radius: 16px; min-width: 0; }
.cp-carro-foto { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #f4f4f5; }
.cp-carro-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cp-carro-foto--mini { background: #fff; }
.cp-carro-foto--mini img, .cp-coringa { object-fit: contain; padding: 6% 4%; }
.cp-carro-foto:hover img { transform: scale(1.04); }
.cp-carro-info { display: flex; flex-direction: column; flex: 1; padding: 12px 2px 0; min-width: 0; }
.cp-carro-marca { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gc-texto-3, #9a9a9a); }
.cp-carro-nome { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.02em; margin: 2px 0 0 !important; line-height: 1.15 !important; }
.cp-carro-nome a { color: #1f1f1f; }
.cp-carro-nome a:hover { color: var(--cor); }
.cp-carro-versao { font-size: 14px; color: var(--gc-texto-2, #6b6b6b); margin: 3px 0 0; line-height: 1.35; }
.cp-carro-preco { font-size: 19px; font-weight: 800; color: #1f1f1f; margin: 10px 0 0; letter-spacing: -.01em; }
.cp-carro-preco span { font-size: 13px; font-weight: 500; color: var(--gc-texto-3, #9a9a9a); }
.cp-trocar { display: flex; gap: 6px; margin-top: 12px; }
.cp-trocar label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-trocar-versao { flex: 1; }
.cp-trocar span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gc-texto-3, #9a9a9a); }
.cp-trocar select {
  width: 100%; height: 34px; padding: 0 26px 0 10px; border: 1px solid var(--gc-borda, #ececec); border-radius: 10px; background: #fafafa;
  font: 500 13px/1 inherit; color: #333; cursor: pointer; appearance: none; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 14px;
}
.cp-trocar select:hover { border-color: #d8d8d8; background-color: #fff; }
.cp-carro-ficha { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--gc-texto-2, #6b6b6b) !important; }
.cp-carro-ficha:hover { color: var(--cor) !important; }
.cp-tirar {
  position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #444; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: background var(--gc-trans), color var(--gc-trans);
}
.cp-tirar:hover { background: #1f1f1f; color: #fff; }
.cp-tirar svg { width: 15px; height: 15px; }
.cp-medalha {
  position: absolute; top: 18px; left: 18px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 13px; font-weight: 800; color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .18), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.cp-medalha--1 { background: linear-gradient(145deg, #ffd86a, #e9a400); color: #5b3c00; }
.cp-medalha--2 { background: linear-gradient(145deg, #eef1f4, #a9b2bc); color: #3a4048; }
.cp-medalha--3 { background: linear-gradient(145deg, #f0b98e, #b86b37); color: #4b2410; }
.cp-medalha--4 { background: #d9d9d9; color: #555; }

.cp-vazio {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 300px; padding: 20px;
  border: 2px dashed #dcdcdc; border-radius: 16px; background: rgba(255, 255, 255, .6); color: var(--gc-texto-2, #6b6b6b);
  font: inherit; cursor: pointer; transition: border-color var(--gc-trans), background var(--gc-trans), transform var(--gc-trans);
}
.cp-vazio:hover { border-color: var(--gc-laranja-3, #ff7b33); background: #fff; transform: translateY(-2px); }
.cp-vazio .cp-vazio-mais { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gc-laranja-suave, #fff4ee); color: var(--gc-laranja-2, #f15921); font-size: 30px; line-height: 1; margin-bottom: 6px; }
.cp-vazio strong { font-size: 17px; color: #262626; }
.cp-vazio span { font-size: 13.5px; }

/* ------------------------------------------------------------- barra fixa ao rolar e navegação */
.cp-fixo {
  position: fixed; left: 0; right: 0; top: var(--gc-cab-altura, 64px); z-index: 90; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(170%) blur(12px); -webkit-backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .35);
  transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .28s cubic-bezier(.2, .7, .2, 1), opacity .2s;
}
.cp-fixo.ativo { transform: none; opacity: 1; pointer-events: auto; }
.cp-fixo-carros { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: grid; grid-template-columns: var(--rot) repeat(var(--nc), minmax(0, 1fr)); gap: 14px; }
.cp-fixo-lado { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gc-texto-3, #9a9a9a); }
.cp-fixo-carro { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 8px 4px 4px; border-radius: 10px; color: #262626 !important; box-shadow: inset 3px 0 0 var(--cor); }
.cp-fixo-carro:hover { background: #f6f6f6; }
.cp-fixo-carro img { width: 54px; height: 36px; object-fit: cover; border-radius: 7px; background: #f4f4f5; flex: none; }
.cp-fixo-carro span { display: flex; flex-direction: column; min-width: 0; }
.cp-fixo-carro b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-fixo-carro small { font-size: 12.5px; color: var(--gc-texto-2, #6b6b6b); font-weight: 600; }

.cp-nav {
  position: sticky; top: calc(var(--gc-cab-altura, 64px) + var(--cp-fixo-h, 0px)); z-index: 80; display: flex; align-items: center; gap: 12px;
  margin: 26px -16px 0; padding: 10px 16px; background: rgba(247, 247, 248, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: top .28s cubic-bezier(.2, .7, .2, 1);
}
.cp-nav-trilho { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.cp-nav-trilho::-webkit-scrollbar { display: none; }
.cp-nav-trilho a {
  flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--gc-borda, #ececec); font-size: 13.5px; font-weight: 600;
  color: #3b3b3b !important; white-space: nowrap;
}
.cp-nav-trilho a:hover { border-color: #d6d6d6; }
.cp-nav-trilho a.ativo { background: #1f1f1f; border-color: #1f1f1f; color: #fff !important; }
.cp-so-dif { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #333; cursor: pointer; user-select: none; }
.cp-so-dif input { position: absolute; opacity: 0; pointer-events: none; }
.cp-chave { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #d4d4d8; transition: background .2s; flex: none; }
.cp-chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.cp-so-dif input:checked + .cp-chave { background: var(--gc-laranja-2, #f15921); }
.cp-so-dif input:checked + .cp-chave::after { transform: translateX(16px); }
.cp-so-dif input:focus-visible + .cp-chave { box-shadow: var(--gc-anel); }

/* ------------------------------------------------------------- veredito */
.cp-veredito { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.cp-cartoes { grid-column: 1 / -1; order: -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cp-cartao { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 15px; overflow: hidden; }
.cp-cartao::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cor); }
.cp-cartao-topo { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gc-texto-3, #9a9a9a); margin-bottom: 8px; }
.cp-cartao-topo .fc-icone-caixa { width: 28px; height: 28px; border-radius: 8px; }
.cp-cartao-quem { font-size: 20px; font-weight: 800; letter-spacing: -.015em; color: #1f1f1f; line-height: 1.2; }
.cp-cartao-valor { font-size: 14px; color: var(--gc-texto-2, #6b6b6b); font-weight: 600; }
.cp-cartao-dif { align-self: flex-start; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--cp-verde-fundo); color: var(--cp-verde); font-size: 12.5px; font-weight: 700; }

.cp-placar { padding: 20px; }
.cp-placar h3, .cp-radar h3, .cp-fipe h3, .cp-tam h3 { font-size: 16px; font-weight: 700; color: #262626; margin: 0; }
.cp-placar-lista { list-style: none; margin: 14px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-placar-lista li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fafafa; box-shadow: inset 4px 0 0 var(--cor); }
.cp-placar-pos { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 800; flex: none; }
.cp-placar-nome { flex: 1; font-weight: 700; font-size: 15.5px; color: #262626; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-placar-pts { font-size: 13px; color: var(--gc-texto-2, #6b6b6b); white-space: nowrap; }
.cp-placar-pts b { font-size: 18px; color: #1f1f1f; }
.cp-placar-grupos { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cp-placar-grupos th { text-align: left; font-weight: 600; padding: 7px 0; border-top: 1px solid var(--cp-linha); }
.cp-placar-grupos th a { color: #3b3b3b; }
.cp-placar-grupos th a:hover { color: var(--gc-laranja-2, #f15921); }
.cp-placar-grupos td { text-align: center; padding: 7px 2px; border-top: 1px solid var(--cp-linha); width: 44px; }
.cp-pts { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: #f2f2f3; color: #888; font-weight: 700; font-size: 13px; }
.cp-pts--lider { background: var(--cor); color: #fff; }

.cp-radar { margin: 0; padding: 20px; display: flex; flex-direction: column; }
.cp-radar figcaption p, .cp-fipe figcaption p, .cp-tam figcaption p { font-size: 13px; color: var(--gc-texto-3, #9a9a9a); margin: 3px 0 0; }
.cp-radar-svg { width: 100%; max-width: 420px; margin: 6px auto 0; display: block; overflow: visible; }
.cp-radar-svg .grade { fill: none; stroke: #ececec; }
.cp-radar-svg .eixo { stroke: #efefef; }
.cp-radar-svg text { font-size: 12.5px; font-weight: 600; fill: #6b6b6b; }
.cp-radar-svg .carro { fill: var(--cor); fill-opacity: .07; stroke: var(--cor); stroke-width: 2.4; stroke-linejoin: round; transition: fill-opacity .2s, stroke-width .2s; }
.cp-radar-svg .carro.foco { fill-opacity: .28; stroke-width: 3.2; }
.cp-radar-svg .carro.apagado { fill-opacity: .03; stroke-opacity: .25; }
.cp-legenda { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.cp-legenda li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #444; cursor: default; }
.cp-legenda li::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--cor); }

/* ------------------------------------------------------------- grupos e linhas */
.cp-grupo { padding: 6px 20px 14px; }
.cp-grupo-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 12px; }
.cp-grupo-topo h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin: 0; }
.cp-grupo-placar { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.cp-grupo-placar li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 4px 4px 11px; border-radius: 999px; background: #f6f6f7; font-size: 12.5px; font-weight: 600; color: #555; }
.cp-grupo-placar li span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-grupo-placar b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--cor); color: #fff; font-size: 12.5px; }

.cp-linhas { display: flex; flex-direction: column; }
.cp-linha { display: grid; grid-template-columns: var(--rot) repeat(var(--nc), minmax(0, 1fr)); gap: 14px; align-items: start; padding: 13px 0; border-top: 1px solid var(--cp-linha); }
.cp-linha--cab { padding: 6px 0 8px; border-top: 0; }
.cp-rot { font-size: 14px; font-weight: 500; color: var(--gc-texto-2, #6b6b6b); line-height: 1.4; padding-top: 1px; }
.cp-cel { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding-left: 12px; }
.cp-cel--cab { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cor); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cp-val { position: relative; font-size: 16px; font-weight: 650; color: #262626; line-height: 1.35; overflow-wrap: anywhere; }
.cp-cel--melhor .cp-val, .cp-cel--pior .cp-val { padding-left: 17px; margin-left: -17px; }
.cp-cel--melhor .cp-val::before, .cp-cel--pior .cp-val::before { content: ""; position: absolute; left: 0; top: .48em; width: 9px; height: 9px; border-radius: 50%; }
.cp-cel--melhor .cp-val { color: var(--cp-verde); font-weight: 800; }
.cp-cel--melhor .cp-val::before { background: var(--cp-verde); box-shadow: 0 0 0 3px var(--cp-verde-fundo); }
.cp-cel--pior .cp-val::before { background: var(--cp-vermelho); border-radius: 2px; }
.cp-sub { font-size: 12px; color: var(--gc-texto-3, #9a9a9a); line-height: 1.35; }
.cp-sem { color: #c8c8c8; font-weight: 500; }
.cp-barra { display: block; width: 100%; max-width: 180px; height: 5px; border-radius: 999px; background: #f1f1f2; overflow: hidden; margin-top: 3px; }
.cp-barra i { display: block; height: 100%; border-radius: inherit; background: var(--cor); opacity: .75; transform-origin: left; animation: cp-barra .9s cubic-bezier(.2, .7, .2, 1) both; }
.cp-cel--melhor .cp-barra i { opacity: 1; }
@keyframes cp-barra { from { transform: scaleX(0); } }
.cp-dif { margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: var(--cp-verde-fundo); color: var(--cp-verde); font-size: 12px; font-weight: 700; white-space: nowrap; }
.cp-ajuda {
  display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 3px; padding: 0; border: 1px solid #ddd; border-radius: 50%;
  background: #fff; color: #999; font: 700 10.5px/1 inherit; cursor: help; vertical-align: 1px;
}
.cp-ajuda:hover, .cp-ajuda:focus-visible { border-color: var(--gc-laranja-3, #ff7b33); color: var(--gc-laranja-2, #f15921); outline: none; }
.cp.so-dif .cp-linha--igual { display: none; }

/* gráficos dentro dos grupos */
.cp-fipe, .cp-tam { margin: 14px 0 6px; padding: 18px 0 0; border-top: 1px solid var(--cp-linha); }
.cp-fipe-svg { width: 100%; height: auto; display: block; margin-top: 10px; }
.cp-fipe-svg .grade { stroke: #f0f0f0; }
.cp-fipe-svg text { font-size: 11.5px; fill: #9a9a9a; }
.cp-fipe-svg .linha { fill: none; stroke: var(--cor); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.cp-fipe-svg .ponto { fill: var(--cor); stroke: #fff; stroke-width: 2; }
.cp-tam-svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.cp-tam-svg .chao { stroke: #e2e2e2; stroke-width: 2; }
.cp-tam-carro .corpo { fill: var(--cor); fill-opacity: .05; stroke: var(--cor); stroke-width: 2.4; stroke-linejoin: round; transition: fill-opacity .2s; }
.cp-tam-carro .vidro { fill: none; stroke: var(--cor); stroke-opacity: .45; stroke-width: 1.6; }
.cp-tam-carro circle { fill: #fff; fill-opacity: .6; stroke: var(--cor); stroke-width: 2; }
.cp-tam-carro.foco .corpo { fill-opacity: .16; }
.cp-tam-carro.apagado { opacity: .25; }

/* ------------------------------------------------------------- equipamentos */
.cp-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 2px 0 10px; }
.cp-so:empty { display: none; }
.cp-so-carro { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--cor) 6%, #fff); border: 1px solid color-mix(in srgb, var(--cor) 18%, #fff); }
.cp-so-carro h3 { font-size: 14px; font-weight: 800; color: var(--cor); margin: 0 0 8px; }
.cp-so-carro ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.cp-so-carro li { font-size: 13.5px; color: #333; padding-left: 16px; position: relative; line-height: 1.4; }
.cp-so-carro li::before { content: "+"; position: absolute; left: 0; color: var(--cor); font-weight: 800; }
.cp-eq-grupo { border-top: 1px solid var(--cp-linha); }
.cp-eq-grupo:first-of-type { border-top: 0; }
.cp-eq-grupo summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 16px; font-weight: 700; color: #262626; cursor: pointer; list-style: none; }
.cp-eq-grupo summary::-webkit-details-marker { display: none; }
.cp-eq-grupo summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #999; border-bottom: 2px solid #999; transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
.cp-eq-grupo[open] summary::after { transform: rotate(-135deg); }
.cp-eq-grupo summary small { font-size: 13px; font-weight: 500; color: var(--gc-texto-3, #9a9a9a); }
.cp-eq-grupo summary .fc-icone-caixa { width: 30px; height: 30px; border-radius: 9px; }
.cp-eq-grupo .cp-linhas { padding-bottom: 8px; }
.cp-linha--eq { padding: 9px 0; }
.cp-linha--eq .cp-rot { font-size: 14px; color: #3b3b3b; }
.cp-tem, .cp-nao { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.cp-tem { background: var(--cp-verde-fundo); }
.cp-tem svg { width: 15px; height: 15px; fill: none; stroke: var(--cp-verde); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cp-nao { background: #f4f4f5; }
.cp-nao svg { width: 12px; height: 12px; fill: none; stroke: #c4c4c8; stroke-width: 2.6; stroke-linecap: round; }

/* ------------------------------------------------------------- fotos */
.cp-fotos { display: flex; flex-direction: column; gap: 22px; margin-top: 16px; }
.cp-fotos-linha h3 { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gc-texto-3, #9a9a9a); margin: 0 0 8px; }
.cp-fotos-grade { display: grid; grid-template-columns: repeat(var(--nc), minmax(0, 1fr)); gap: 8px; }
.cp-foto { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #ececee; }
.cp-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cp-foto:hover img { transform: scale(1.05); }
.cp-foto span {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px 4px 9px; border-radius: 999px; background: rgba(20, 20, 20, .62); color: #fff;
  font-size: 12.5px; font-weight: 700; backdrop-filter: blur(6px); box-shadow: inset 3px 0 0 var(--cor);
}
.cp-foto--sem { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: repeating-linear-gradient(135deg, #f6f6f7 0 10px, #f1f1f3 10px 20px); border: 1px dashed #dedede; }
.cp-foto--sem span { position: static; background: none; color: #777; box-shadow: none; backdrop-filter: none; padding: 0; }
.cp-foto--sem small { font-size: 12px; color: #aaa; }

/* ------------------------------------------------------------- sugestões e populares */
.cp-sugestoes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cp-sugestao { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; color: #262626 !important; transition: transform var(--gc-trans), box-shadow var(--gc-trans); }
.cp-sugestao:hover { transform: translateY(-2px); box-shadow: var(--gc-sombra-m); }
.cp-sugestao img { width: 84px; height: 52px; object-fit: contain; flex: none; }
.cp-sugestao span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cp-sugestao b { font-size: 14.5px; line-height: 1.3; }
.cp-sugestao small { font-size: 13px; color: var(--gc-texto-2, #6b6b6b); font-weight: 600; margin-top: 2px; }
.cp-sugestao i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gc-laranja-suave, #fff4ee); color: var(--gc-laranja-2, #f15921); font-style: normal; font-size: 20px; flex: none; }
.cp-populares { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.cp-popular { display: flex; align-items: center; gap: 8px; padding: 16px; color: #262626 !important; transition: transform var(--gc-trans), box-shadow var(--gc-trans); }
.cp-popular:hover { transform: translateY(-2px); box-shadow: var(--gc-sombra-m); }
.cp-popular-carro { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.cp-popular-carro img { width: 120px; height: 70px; object-fit: contain; margin-bottom: 6px; }
.cp-popular-carro b { font-size: 14.5px; }
.cp-popular-carro small { font-size: 12.5px; color: var(--gc-texto-2, #6b6b6b); font-weight: 600; }
.cp-popular-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1f1f1f; color: #fff; font-weight: 800; font-size: 13px; flex: none; }

/* ------------------------------------------------------------- busca (diálogo) */
.cp-busca { width: min(600px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 48px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); color: var(--gc-texto, #3b3b3b); }
.cp-busca::backdrop { background: rgba(20, 20, 22, .45); backdrop-filter: blur(3px); }
.cp-busca[open] { animation: cp-surge .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes cp-surge { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.cp-busca-caixa { display: flex; flex-direction: column; max-height: inherit; }
.cp-busca-topo { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.cp-busca-topo h2 { font-size: 19px; font-weight: 800; margin: 0; color: #1f1f1f; }
.cp-busca .cp-busca-fechar { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f3f3f4; cursor: pointer; box-shadow: none; }
.cp-busca .cp-busca-fechar:hover { background: #e9e9eb; }
.cp-busca-fechar svg { width: 16px; height: 16px; fill: none; stroke: #444; stroke-width: 2.2; stroke-linecap: round; }
.cp-busca-campo { display: flex; align-items: center; gap: 10px; margin: 8px 20px 10px; padding: 0 14px; height: 50px; border: 2px solid var(--gc-borda, #ececec); border-radius: 14px; transition: border-color .2s; }
.cp-busca-campo:focus-within { border-color: var(--gc-laranja-3, #ff7b33); }
.cp-busca-campo svg { width: 20px; height: 20px; fill: none; stroke: #999; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.cp-busca-campo input { flex: 1; border: 0; outline: 0; font: 500 16.5px/1 inherit; color: #1f1f1f; background: transparent; min-width: 0; box-shadow: none !important; }
.cp-busca-res { overflow-y: auto; padding: 0 12px 16px; min-height: 120px; }
.cp-busca-dica { font-size: 13px; color: var(--gc-texto-3, #9a9a9a); margin: 8px 8px 6px; font-weight: 600; }
.cp-busca-grupo { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gc-texto-3, #9a9a9a); margin: 14px 8px 4px; display: flex; align-items: center; gap: 8px; }
.cp-busca-grupo img { width: 44px; height: 26px; object-fit: contain; }
.cp-busca-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: #262626 !important; }
.cp-busca-item:hover, .cp-busca-item.foco { background: var(--gc-laranja-suave, #fff4ee); }
.cp-busca-item img { width: 64px; height: 40px; object-fit: contain; flex: none; }
.cp-busca-item span:not(.cp-busca-ano) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cp-busca-item b { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.cp-busca-item small { font-size: 12.5px; color: var(--gc-texto-2, #6b6b6b); }
.cp-busca-item em { font-style: normal; font-size: 13px; font-weight: 700; color: #333; white-space: nowrap; }
.cp-busca-ano { flex: none; padding: 3px 8px; border-radius: 7px; background: #f2f2f3; font-size: 12.5px; font-weight: 700; color: #444; }

.cp-dica-flutuante {
  position: absolute; z-index: 200; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #1f1f1f; color: #fff;
  font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); pointer-events: none;
}

/* ------------------------------------------------------------- telas menores */
@media (max-width: 980px) {
  .cp { --rot: 150px; }
  .cp-veredito { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cp-cabeca h1 { font-size: 26px; }
  .cp-cabeca p { font-size: 15px; }
  .cp-carros, .cp--tabela .cp-carros { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
  .cp--tabela .cp-carros { grid-template-columns: repeat(var(--nc), minmax(0, 1fr)); }
  .cp-lado { grid-column: 1 / -1; order: 9; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 4px 0 0; }
  .cp-lado-dica { display: none; }
  .cp-lado-botao { flex: 1; }
  .cp-carro { padding: 8px 8px 10px; border-radius: 14px; }
  .cp-carro-foto { border-radius: 9px; }
  .cp-carro-nome { font-size: 17px !important; }
  .cp-carro-versao { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cp-carro-preco { font-size: 15.5px; margin-top: 6px; }
  .cp-trocar { flex-direction: column; margin-top: 8px; }
  .cp-trocar select { height: 32px; font-size: 12.5px; padding-left: 8px; }
  .cp-carro-ficha { display: none; }
  .cp-tirar { top: 12px; right: 12px; width: 26px; height: 26px; }
  .cp-medalha { top: 12px; left: 12px; width: 28px; height: 28px; font-size: 11.5px; }
  .cp-vazio { min-height: 220px; }
  .cp-fixo-carros { grid-template-columns: repeat(var(--nc), minmax(0, 1fr)); gap: 6px; padding: 6px 10px; }
  .cp-fixo-lado { display: none; }
  .cp-fixo-carro { padding: 3px 4px 3px 7px; gap: 6px; }
  .cp-fixo-carro img { display: none; }
  .cp-fixo-carro b { font-size: 13px; }
  .cp-fixo-carro small { font-size: 11.5px; }
  .cp-nav { flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .cp-so-dif { order: -1; width: 100%; justify-content: flex-end; font-size: 13px; }
  .cp-cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cp-cartao { padding: 13px 13px 12px; }
  .cp-cartao-quem { font-size: 17px; }
  .cp-grupo { padding: 4px 14px 10px; }
  .cp-grupo-topo h2 { font-size: 19px; }
  .cp-linha { grid-template-columns: repeat(var(--nc), minmax(0, 1fr)); gap: 4px 8px; padding: 11px 0; }
  .cp-rot { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gc-texto-3, #9a9a9a); }
  .cp-linha--cab .cp-rot { display: none; }
  .cp-linha--eq .cp-rot { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; color: #3b3b3b; }
  .cp-cel { padding-left: 8px; border-left: 3px solid color-mix(in srgb, var(--cor) 70%, transparent); }
  .cp-cel--cab { border-left: 0; padding-left: 0; font-size: 11px; }
  .cp-val { font-size: 15px; }
  .cp-cel--melhor .cp-val, .cp-cel--pior .cp-val { margin-left: 0; padding-left: 15px; }
  .cp-dif { white-space: normal; font-size: 11.5px; }
  .cp-fotos-grade { gap: 5px; }
  .cp-foto { border-radius: 10px; }
  .cp-foto span { left: 6px; bottom: 6px; font-size: 11px; padding: 3px 8px; }
  .cp-populares { grid-template-columns: 1fr; }
  .cp-busca { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-barra i, .cp-busca[open] { animation: none; }
  .cp-carro-foto img, .cp-foto img { transition: none; }
}
