/* [VIBE] Hol a Szikla. Layout only: buttons (mv-btn), lamps (mv-lamp) and the day strip (mv-days)
   come from the Mászóverseny design system in the theme's components.css. Scoped to .vhsz. */
.vhsz {
	--vhsz-h: clamp(420px, calc(100vh - 300px), 680px);
	display: grid;
	gap: var(--space-4, 16px);
	max-width: var(--max-w-wide, 1200px);
	margin-inline: auto;
	font-family: var(--font-notes, sans-serif);
	color: var(--ink, #2b1d14);
}
.vhsz *, .vhsz *::before, .vhsz *::after { box-sizing: border-box; }

/* Head: one short line plus today's counts */
.vhsz-head { display: grid; justify-items: center; gap: var(--space-2, 8px); text-align: center; }
.vhsz-lead { margin: 0; max-width: 60ch; font-size: 16px; line-height: 24px; color: var(--muted, #735f4d); text-wrap: pretty; }
.vhsz-summary { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2, 8px) var(--space-5, 24px); }
.vhsz-summary b { font-weight: 600; font-variant-numeric: tabular-nums; }
.vhsz-summary-day { font-size: 14px; color: var(--muted, #735f4d); }

/* Controls: design system Button, mv-btn--sm, ghost / ink */
.vhsz-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3, 12px) var(--space-6, 32px); }
.vhsz-tabs, .vhsz-filter { display: flex; flex-wrap: wrap; gap: var(--space-2, 8px); }
.vhsz-tabs small { font-family: var(--font-notes, sans-serif); font-size: 13px; font-weight: 400; opacity: .75; }

/* Map + ranked list */
.vhsz-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-5, 24px); align-items: start; }
.vhsz-map { height: var(--vhsz-h); border-radius: var(--radius-lg, 10px); background: var(--surface-alt, #f5eee6); z-index: 0; }
.vhsz-list { list-style: none; margin: 0; padding: 0; max-height: var(--vhsz-h); overflow-y: auto; counter-reset: vhsz; border-top: 1px solid var(--ink, #2b1d14); }

.vhsz-item { counter-increment: vhsz; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--space-3, 12px); align-items: start; padding: var(--space-4, 16px) var(--space-2, 8px); border-bottom: 1px solid var(--hairline, #e8ddd1); cursor: pointer; transition: background-color var(--dur-fast, 120ms) var(--ease-standard, ease); }
.vhsz-item:hover { background: var(--surface-alt, #f5eee6); }
.vhsz-item:hover .vhsz-name { text-decoration: underline; text-underline-offset: 3px; }
.vhsz-item:focus-visible { outline: 2px solid var(--focus, #2b1d14); outline-offset: -2px; }
/* Rank: ResultsTable numerals */
.vhsz-item::before { content: counter(vhsz); font-family: var(--font-poster, "Arial Narrow", sans-serif); font-stretch: 62%; font-weight: 800; font-size: 28px; line-height: 1; color: var(--ink-2, #4e3b2e); font-variant-numeric: tabular-nums; }
.vhsz-item.is-green::before { color: var(--brand-ink, #b34508); }

.vhsz-item-main { display: grid; gap: 2px; min-width: 0; }
.vhsz-name { font-family: var(--font-display, sans-serif); font-size: 18px; line-height: 24px; font-weight: 600; }
.vhsz-sub { font-size: 15px; line-height: 22px; color: var(--muted, #735f4d); }
.vhsz-why { font-size: 14px; line-height: 20px; color: var(--ink-2, #4e3b2e); }
.vhsz-item-side { display: grid; justify-items: end; gap: 6px; text-align: right; }
.vhsz-nums { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; line-height: 1.35; color: var(--ink-2, #4e3b2e); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 4-day mini strip: StatusLamp dots with the word hidden (the row's own lamp carries the word) */
.vhsz-strip { display: inline-flex; gap: 6px; }
.vhsz-strip .mv-lamp { font-size: 0; gap: 0; }
.vhsz-strip .mv-lamp::before { width: 10px; height: 10px; }
.vhsz-strip .mv-lamp.is-current::before { box-shadow: 0 0 0 2px var(--surface, #fffcf8), 0 0 0 3.5px var(--ink, #2b1d14); }

/* Leaflet popup */
.vhsz .leaflet-container { font-family: var(--font-notes, sans-serif); font-size: 14px; }
.vhsz .leaflet-popup-content-wrapper { border-radius: var(--radius-lg, 10px); box-shadow: var(--shadow-3, 0 12px 32px rgba(43, 29, 20, .12)); }
.vhsz .leaflet-popup-content { margin: var(--space-4, 16px) var(--space-5, 24px) var(--space-4, 16px) var(--space-4, 16px); line-height: 1.4; }
.vhsz-pop { display: grid; gap: var(--space-2, 8px); min-width: 240px; }
.vhsz-pop p { margin: 0; }
.vhsz-pop-name { font-family: var(--font-display, sans-serif); font-size: 17px; line-height: 22px; font-weight: 600; }
.vhsz-pop-sub { color: var(--muted, #735f4d); }
.vhsz-pop .mv-lamp { white-space: normal; }
.vhsz-pop .mv-days li { padding: var(--space-2, 8px) 2px; }
.vhsz-pop .mv-days li.is-current { box-shadow: inset 0 0 0 1px var(--ink, #2b1d14); }
.vhsz .vhsz-pop a { font-family: var(--font-display, sans-serif); font-weight: 500; color: var(--brand-ink, #b34508); text-decoration: none; }
.vhsz .vhsz-pop a:hover { text-decoration: underline; }

/* Footer */
.vhsz-foot { display: grid; gap: var(--space-4, 16px); margin-top: var(--space-4, 16px); padding-top: var(--space-5, 24px); border-top: 1px solid var(--hairline, #e8ddd1); font-size: 16px; line-height: 24px; color: var(--ink-2, #4e3b2e); }
.vhsz-legend { display: flex; flex-wrap: wrap; gap: var(--space-3, 12px) var(--space-6, 32px); }
.vhsz-legend .mv-lamp { white-space: normal; }
.vhsz-how { max-width: var(--max-w-prose, 720px); }
.vhsz-how summary { cursor: pointer; font-family: var(--font-display, sans-serif); font-size: 17px; font-weight: 600; color: var(--ink, #2b1d14); }
.vhsz-how[open] summary { margin-bottom: var(--space-3, 12px); }
.vhsz-how p { margin: 0 0 var(--space-3, 12px); }
.vhsz-how code { padding: 1px 6px; border-radius: var(--radius-sm, 4px); background: var(--surface-alt, #f5eee6); font-family: var(--font-mono, ui-monospace, monospace); font-size: .85em; white-space: normal; }
.vhsz-meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted, #735f4d); }
.vhsz-meta a { color: var(--brand-ink, #b34508); }
.vhsz-updated { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; font-variant-numeric: tabular-nums; }
.vhsz-updated.is-stale { color: var(--brand-ink, #b34508); font-weight: 600; }
.vhsz-empty { margin: 0; padding: var(--space-7, 48px) var(--space-4, 16px); border-radius: var(--radius-lg, 10px); background: var(--surface-alt, #f5eee6); text-align: center; font-size: 18px; color: var(--ink-2, #4e3b2e); }

@media (max-width: 900px) {
	.vhsz-grid { grid-template-columns: minmax(0, 1fr); }
	.vhsz-map { height: 400px; }
	.vhsz-list { max-height: none; }
}
@media (max-width: 520px) {
	.vhsz-item { grid-template-columns: 32px minmax(0, 1fr); padding-inline: 0; }
	.vhsz-item-side { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; gap: var(--space-3, 12px); }
	.vhsz-item:hover { background: none; }
}
@media (prefers-reduced-motion: reduce) { .vhsz-item { transition: none; } }
