/* [VIBE] Mászótermek. Layout only: buttons (mv-btn) and links (mv-link) come from the Mászóverseny
   design system in the theme's components.css. Tokens with fallbacks, scoped to .vmt. */
.vmt {
	display: grid;
	gap: var(--space-5, 24px);
	max-width: var(--max-w-wide, 1200px);
	margin-inline: auto;
	font-family: var(--font-notes, sans-serif);
	color: var(--ink, #2b1d14);
}
.vmt *, .vmt *::before, .vmt *::after { box-sizing: border-box; }
.vmt :focus-visible { outline: 2px solid var(--focus, #2b1d14); outline-offset: 2px; }

.vmt-lead { margin: 0 auto; max-width: 62ch; text-align: center; font-family: var(--font-body, Georgia, serif); font-size: 18px; line-height: 28px; color: var(--ink-2, #4e3b2e); text-wrap: pretty; }

/* Controls */
.vmt-controls { display: grid; gap: var(--space-3, 12px); }
.vmt-filter { display: flex; flex-wrap: wrap; gap: var(--space-2, 8px); }
.vmt-cities { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-display, sans-serif); font-size: 14px; line-height: 22px; }
.vmt-cities a { color: var(--ink-2, #4e3b2e); text-decoration: none; }
.vmt-cities a:hover { color: var(--ink, #2b1d14); text-decoration: underline; text-underline-offset: 3px; }
.vmt-cities span { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: var(--muted, #735f4d); }

/* List + sticky map */
.vmt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6, 32px); align-items: start; }
.vmt-map { order: 2; position: sticky; top: calc(var(--nav-height, 52px) + var(--space-4, 16px)); height: calc(100vh - var(--nav-height, 52px) - var(--space-7, 48px)); min-height: 420px; border-radius: var(--radius-lg, 10px); background: var(--surface-alt, #f5eee6); z-index: 0; }
.admin-bar .vmt-map { top: calc(var(--nav-height, 52px) + 32px + var(--space-4, 16px)); }
.vmt-list { order: 1; display: grid; gap: var(--space-7, 48px); min-width: 0; }

.vmt-city { scroll-margin-top: calc(var(--nav-height, 52px) + var(--space-5, 24px)); }
.vmt-city[hidden] { display: none; }
.vmt-city__title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3, 12px); margin: 0; padding-bottom: var(--space-3, 12px); border-bottom: 1px solid var(--ink, #2b1d14); font-family: var(--font-display, sans-serif); font-size: 24px; line-height: 30px; font-weight: 600; }
.vmt-city__title span { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; font-weight: 400; color: var(--muted, #735f4d); }

.vmt-gym { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4, 16px); padding: var(--space-4, 16px) var(--space-2, 8px); border-bottom: 1px solid var(--hairline, #e8ddd1); scroll-margin-top: calc(var(--nav-height, 52px) + var(--space-5, 24px)); transition: background-color var(--dur-fast, 120ms) var(--ease-standard, ease); }
.vmt-gym[hidden] { display: none; }
.vmt-gym.is-active { background: var(--surface-alt, #f5eee6); }
.vmt-gym__main { display: grid; gap: 2px; min-width: 0; }
.vmt-gym__main p { margin: 0; }
.vmt-gym__kind { font-family: var(--font-display, sans-serif); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .02em; color: var(--brand-ink, #b34508); }
.vmt-gym__name { margin: 0; font-family: var(--font-display, sans-serif); font-size: 20px; line-height: 26px; font-weight: 600; }
.vmt-gym__addr { font-size: 16px; line-height: 24px; color: var(--ink-2, #4e3b2e); }
.vmt-gym__facts { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; line-height: 20px; color: var(--ink-2, #4e3b2e); font-variant-numeric: tabular-nums; }
.vmt-gym__note { font-size: 15px; line-height: 22px; color: var(--muted, #735f4d); }
.vmt-gym__side { display: grid; justify-items: end; align-content: start; gap: 6px; text-align: right; font-size: 15px; }
.vmt-gym__state { padding: 2px 10px; border-radius: var(--radius-pill, 999px); background: var(--flash, #ffc21a); color: var(--on-flash, #2b1d14); font-family: var(--font-display, sans-serif); font-size: 13px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.vmt-gym__locate { padding: 0; border: 0; background: none; color: var(--ink-2, #4e3b2e); font-family: var(--font-display, sans-serif); font-size: 15px; font-weight: 500; cursor: pointer; }
.vmt-gym__locate:hover { color: var(--ink, #2b1d14); text-decoration: underline; text-underline-offset: 3px; }

/* Leaflet popup */
.vmt .leaflet-container { font-family: var(--font-notes, sans-serif); font-size: 14px; }
.vmt .leaflet-popup-content-wrapper { border-radius: var(--radius-lg, 10px); box-shadow: var(--shadow-3, 0 12px 32px rgba(43, 29, 20, .12)); }
.vmt .leaflet-popup-content { margin: var(--space-3, 12px) var(--space-5, 24px) var(--space-3, 12px) var(--space-4, 16px); line-height: 1.4; }
.vmt-pop p { margin: 0 0 4px; }
.vmt-pop__name { font-family: var(--font-display, sans-serif); font-size: 16px; font-weight: 600; }
.vmt-pop__kind { color: var(--brand-ink, #b34508); font-family: var(--font-display, sans-serif); font-size: 12px; font-weight: 600; }
.vmt-pop a { font-family: var(--font-display, sans-serif); font-weight: 500; color: var(--brand-ink, #b34508); text-decoration: none; }

.vmt-foot { display: grid; gap: var(--space-2, 8px); padding-top: var(--space-5, 24px); border-top: 1px solid var(--hairline, #e8ddd1); font-size: 15px; line-height: 22px; color: var(--muted, #735f4d); }
.vmt-foot p { margin: 0; max-width: var(--max-w-prose, 720px); }
.vmt-foot a { color: var(--brand-ink, #b34508); }
.vmt-foot__meta { font-size: 13px; }
.vmt-empty { margin: 0; padding: var(--space-6, 32px); border-radius: var(--radius-lg, 10px); background: var(--surface-alt, #f5eee6); text-align: center; color: var(--ink-2, #4e3b2e); }
.vmt-empty[hidden] { display: none; }

@media (max-width: 900px) {
	.vmt-grid { grid-template-columns: minmax(0, 1fr); }
	.vmt-map { order: 0; position: relative; top: 0; height: 360px; min-height: 0; }
	.admin-bar .vmt-map { top: 0; }
}
@media (max-width: 520px) {
	.vmt-gym { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
	.vmt-gym__side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: var(--space-4, 16px); }
	.vmt-gym__state { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .vmt-gym { transition: none; } }
