/* =========================================================
   Página inicial (tpl/inicial.html)
   Destaques em cards, no mesmo padrão do resultado-busca
   (css/resultadoBusca.css): foto 4:3 com selo em texto,
   ano em etiqueta verde, preço e "Ver detalhes".
   Desktop: 4 por linha · Celular: 2 por linha
   ========================================================= */

body#home .hmDestaques{
	--hm-verde:#5cb800;
	--hm-verde-escuro:#4a9600;
	--hm-borda:#e3e3e3;
	--hm-texto:#333;
	clear:both;
	margin:20px 0 30px;
}
body#home .hmLinha{
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:14px;
	margin:0 0 14px;
}
body#home .hmLinha:empty{display:none}

/* card inteiro é o link */
body#home .hmCard{
	display:flex;flex-direction:column;
	min-width:0;
	background:#fff;
	border:1px solid var(--hm-borda);
	border-radius:8px;
	overflow:hidden;
	color:var(--hm-texto);
	text-decoration:none !important;
	transition:border-color .15s, box-shadow .15s, transform .15s;
}
body#home .hmCard:hover{
	border-color:var(--hm-verde);
	box-shadow:0 4px 14px rgba(0,0,0,.1);
	transform:translateY(-2px);
}

/* foto 4:3 com o selo no canto */
body#home .hmFoto{
	position:relative;
	display:block;
	width:100%;
	aspect-ratio:4/3;
	background-color:#f2f2f2;
	background-repeat:no-repeat;
	background-position:center;
	background-size:cover;
}
/* o PHP manda display:block / display:none no style de cada selo */
body#home .hmSelo{
	position:absolute;
	top:8px;left:8px;
	padding:3px 8px;
	border-radius:4px;
	color:#fff;
	font-size:10px;font-weight:700;letter-spacing:.3px;line-height:1.2;
	white-space:nowrap;
	box-shadow:0 1px 3px rgba(0,0,0,.25);
	pointer-events:none;
}
body#home .hmSeloDestaque{background:#4a9600}
body#home .hmSeloOferta  {background:#e53935}
body#home .hmSeloRepasse {background:#2e9e2e}

/* dados */
body#home .hmDados{
	display:flex;flex-direction:column;align-items:flex-start;gap:6px;
	flex:1;
	padding:10px 12px 12px;
}
body#home .hmNome{
	width:100%;
	font-size:13px;font-weight:700;line-height:1.3;
	text-transform:uppercase;
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body#home .hmAno{
	padding:2px 10px;
	border-radius:5px;
	background:var(--hm-verde);
	color:#fff;
	font-size:13px;font-weight:700;line-height:1.3;
}
body#home .hmValor{
	font-size:18px;font-weight:700;
	color:var(--hm-verde-escuro);
	white-space:nowrap;
}
body#home .hmVer{
	align-self:stretch;
	margin-top:auto;
	padding:7px 0;
	border-radius:5px;
	background:#363636;
	color:#fff;
	font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;
	text-align:center;
	transition:background .15s;
}
body#home .hmCard:hover .hmVer{background:var(--hm-verde)}

/* ---------- celular ---------- */
@media only screen and (max-width:768px){
	body#home .hmDestaques{margin:16px 0 20px}
	body#home .hmLinha{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
	body#home .hmCard:hover{transform:none}
	body#home .hmSelo{top:6px;left:6px;padding:2px 6px;font-size:9px}
	body#home .hmDados{gap:5px;padding:8px 9px 10px}
	body#home .hmNome{font-size:12px}
	body#home .hmAno{font-size:12px;padding:1px 8px}
	body#home .hmValor{font-size:16px}
	body#home .hmVer{padding:6px 0;font-size:10px}

	/* botões de atalho (Recentes, Fipe...) com cantos arredondados */
	body section.container article.content .lst-links-home-mobile li a{border-radius:6px}
}
