/* Hermes Vehicle Inventory front end. Colors come from the theme's --hc-* variables, with fallbacks. */
.hi-wrap { max-width: var(--hc-wide, 1180px); margin: 0 auto; padding: 32px 16px 64px; }
.hi-head h1 { margin: 0 0 6px; }
.hi-head p { margin: 0 0 24px; color: var(--hc-muted, #545c66); }

.hi-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 16px; margin-bottom: 20px; background: var(--hc-surface, #fff); border: 1px solid var(--hc-line, #d9e0e8); border-radius: 10px; }
.hi-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--hc-muted, #545c66); }
.hi-filters select { min-width: 150px; padding: 9px 10px; border: 1px solid var(--hc-line, #d9e0e8); border-radius: 6px; background: #fff; font: inherit; font-size: 15px; color: var(--hc-ink, #111418); }
.hi-filters .hi-check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 10px; }
.hi-reset { padding-bottom: 10px; font-size: 14px; }

.hi-btn { display: inline-block; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--hc-accent, #005ca8); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.hi-btn:hover { background: var(--hc-accent-dark, #00427a); }
.hi-btn-alt { background: transparent; color: var(--hc-ink, #111418) !important; box-shadow: inset 0 0 0 2px var(--hc-ink, #111418); }
.hi-btn-alt:hover { background: var(--hc-ink, #111418); color: #fff !important; }

.hi-count { margin: 0 0 12px; color: var(--hc-muted, #545c66); font-size: 14px; }
.hi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.hi-card { background: var(--hc-surface, #fff); border: 1px solid var(--hc-line, #d9e0e8); border-radius: 10px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.hi-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.hi-card-link { display: block; color: inherit; text-decoration: none; }
.hi-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--hc-bg-alt, #e6ecf3); }
.hi-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hi-status-sold .hi-card-media img { filter: grayscale(.8); opacity: .75; }
.hi-card-body { padding: 14px 16px 16px; }
.hi-card-title { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.hi-card-specs { margin: 0 0 10px; font-size: 14px; color: var(--hc-muted, #545c66); }
.hi-card-price { margin: 0; font-size: 20px; font-weight: 800; color: var(--hc-accent, #005ca8); }

.hi-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 180px; color: var(--hc-muted, #545c66); font-size: 14px; }
.hi-flag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 4px; background: var(--hc-ink, #111418); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.hi-empty { padding: 48px 24px; text-align: center; background: var(--hc-surface, #fff); border: 1px dashed var(--hc-line, #d9e0e8); border-radius: 10px; }
.hi-empty h2 { margin-top: 0; }

.hi-back { margin: 0 0 16px; font-size: 14px; }
.hi-single-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.hi-main-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--hc-bg-alt, #e6ecf3); }
.hi-main-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hi-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.hi-thumbs button { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.hi-thumbs button.is-active { border-color: var(--hc-accent, #005ca8); }
.hi-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hi-summary h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.hi-price { margin: 0; font-size: 30px; font-weight: 800; color: var(--hc-accent, #005ca8); }
.hi-miles { margin: 2px 0 0; color: var(--hc-muted, #545c66); }
.hi-cta { display: grid; gap: 10px; margin: 20px 0; }
.hi-sold-note { margin: 20px 0; padding: 12px 14px; background: var(--hc-bg-alt, #e6ecf3); border-radius: 6px; }
.hi-specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.hi-specs th, .hi-specs td { padding: 9px 0; border-bottom: 1px solid var(--hc-line, #d9e0e8); text-align: left; vertical-align: top; }
.hi-specs th { width: 42%; font-weight: 600; color: var(--hc-muted, #545c66); }
.hi-description { max-width: 760px; margin-top: 40px; }

.hi-wrap .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.hi-wrap .page-numbers { padding: 8px 12px; border: 1px solid var(--hc-line, #d9e0e8); border-radius: 6px; text-decoration: none; }
.hi-wrap .page-numbers.current { background: var(--hc-ink, #111418); color: #fff; border-color: transparent; }

@media (max-width: 820px) {
	.hi-single-grid { grid-template-columns: 1fr; gap: 20px; }
	.hi-filters label { flex: 1 1 140px; }
	.hi-filters select { min-width: 0; width: 100%; }
	.hi-filters .hi-btn { flex: 1 1 100%; }
}
.machine-grid .hi-card-body .hi-btn { margin-top: 6px; }
.machine-desc { font-size: 15px; color: var(--hc-muted, #545c66); }
.machine-desc p { margin: 0 0 8px; }
