/* Search4Auto home page blocks (0.29.0) */
.s4a-hsb{max-width:1180px;margin:0 auto;padding:18px;background:#fff;border-radius:18px;box-shadow:0 18px 50px #10182722;color:#101827;box-sizing:border-box}
.s4a-hsb *{box-sizing:border-box}
.s4a-hsb-title{margin:0 0 12px;font-size:22px}
.s4a-hsb-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:10px;align-items:end}
.s4a-hsb label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#475569}
.s4a-hsb select,.s4a-hsb input{width:100%;min-height:46px;border:1px solid #d8dee7;border-radius:10px;padding:10px 12px;font:inherit;font-size:15px;background:#fff;color:#101827}
.s4a-hsb button{min-height:46px;border:0;border-radius:10px;padding:0 22px;background:var(--s4a-hsb-accent,#e85d35);color:var(--s4a-hsb-accent-ink,#fff);font:inherit;font-weight:800;font-size:15px;cursor:pointer;white-space:nowrap}
.s4a-hsb button:hover{filter:brightness(.95)}
.s4a-hsb-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0 0;font-size:13px}
.s4a-hsb-links a{color:var(--s4a-hsb-link,#2563eb);font-weight:700;text-decoration:none}
.s4a-latest{max-width:1180px;margin:32px auto;padding:0 16px;color:#101827}
.s4a-latest-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.s4a-latest-head h2{margin:0;font-size:24px}
.s4a-latest-head a{font-weight:750;color:#2563eb;text-decoration:none}
.s4a-latest-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.s4a-latest-card{background:#fff;border:1px solid #e7ebf1;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.s4a-latest-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px #10182714}
.s4a-latest-card.is-featured{border-color:#f3d27a}
.s4a-latest-card .img{position:relative;display:block;aspect-ratio:16/10;background:#eef1f5}
.s4a-latest-card .img img{width:100%;height:100%;object-fit:cover;display:block}
.s4a-latest-card .img span{position:absolute;inset:0;display:grid;place-items:center;color:#94a3b8;font-size:13px}
.s4a-latest-card .img em{position:absolute;left:10px;top:10px;background:#fff7e0;color:#7a5200;border-radius:99px;padding:3px 9px;font-size:11px;font-weight:800;font-style:normal}
.s4a-latest-card .body{padding:12px 14px 14px;display:grid;gap:4px}
.s4a-latest-card .price{font-size:20px;letter-spacing:-.02em}
.s4a-latest-card h3{margin:0;font-size:15px;line-height:1.3}
.s4a-latest-card h3 a{color:inherit;text-decoration:none}
.s4a-latest-card .meta,.s4a-latest-card .loc{margin:0;font-size:12px;color:#697586}
.s4a-latest-card .scores{display:flex;gap:6px;margin:2px 0;flex-wrap:wrap}
.s4a-latest-card .scores span{font-size:11px;font-weight:700;background:#f2f5f8;border-radius:99px;padding:3px 8px;color:#334155}
.s4a-latest-card .scores b{color:#16a36f}.s4a-latest-card .scores .band-fair b{color:#d99a1e}.s4a-latest-card .scores .band-low b{color:#e34f55}
.s4a-latest-card .badge{display:inline-block;margin-left:4px;font-weight:750;color:#7a5200}
.s4a-latest-empty{padding:24px;border:1px dashed #cbd5e1;border-radius:14px;text-align:center;color:#697586}
@media(max-width:980px){.s4a-hsb-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.s4a-hsb button{grid-column:1/-1}}
@media(max-width:560px){.s4a-hsb{padding:14px;border-radius:14px}.s4a-hsb-fields{grid-template-columns:1fr 1fr}.s4a-hsb-fields label:nth-child(2){grid-column:span 1}}
@media(max-width:560px){.s4a-latest-grid{grid-template-columns:1fr 1fr;gap:10px}.s4a-latest-card .body{padding:9px 10px 11px}.s4a-latest-card .price{font-size:16px}.s4a-latest-card h3{font-size:13px}.s4a-latest-card .scores span{font-size:10px;padding:2px 6px}}

/* Inside a theme's own search panel: no second card. Stacked = sidebar filters. */
.s4a-hsb.is-plain{padding:0;background:none;box-shadow:none;border-radius:0;max-width:none}
.s4a-hsb.is-stacked .s4a-hsb-fields{grid-template-columns:1fr}
