/* GRAHFEST – javni prikaz. Paleta: prirodna zelena, topla smeđa, krem bijela, crvena. */
.gf-app, .gf-box, .gf-stats, .gf-note {
	--gf-green: #2f6b3f;
	--gf-green-d: #24522f;
	--gf-brown: #8a5a2b;
	--gf-ink: #3b2f24;
	--gf-cream: #fffdf8;
	--gf-sand: #f6f1e7;
	--gf-line: #e5dccb;
	--gf-red: #c62828;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--gf-ink);
	box-sizing: border-box;
}
.gf-app *, .gf-box *, .gf-stats * { box-sizing: border-box; }
.gf-app { position: relative; background: var(--gf-sand); border: 1px solid var(--gf-line); border-radius: 18px; padding: 14px; }
.gf-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 2px 4px 10px; }
.gf-head strong { font-size: 1.25rem; color: var(--gf-green-d); }
.gf-head span { color: #6b5a48; font-size: .95rem; }
.gf-msg, .gf-note { background: #fff6dd; border: 1px solid #ecd9a0; border-radius: 12px; padding: 10px 14px; margin: 0 0 10px; }
.gf-msg[hidden] { display: none; }

.gf-mapbox { position: relative; }
.gf-viewport { position: relative; overflow: hidden; border-radius: 14px; background: var(--gf-cream); border: 1px solid var(--gf-line); touch-action: pan-y; }
.gf-viewport.gf-zoomed { touch-action: none; cursor: grab; }
.gf-stage { position: relative; width: 100%; height: 0; transform-origin: 0 0; will-change: transform; }
.gf-layer { position: absolute; inset: 0; background-size: 100% 100%; background-repeat: no-repeat; }
.gf-t { position: absolute; margin: 0; padding: 0; border: 1px solid rgba(0, 0, 0, .45); border-radius: 18%; color: #fff; font-weight: 700; line-height: 1; cursor: default; display: flex; align-items: center; justify-content: center; text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 0 1px rgba(0, 0, 0, .9); -webkit-appearance: none; appearance: none; min-width: 0; min-height: 0; overflow: hidden; font-family: inherit; }
.gf-t.gf-round { border-radius: 50%; }
.gf-t.gf-free { cursor: pointer; }
.gf-t.gf-free:hover, .gf-t:focus-visible { outline: 2px solid var(--gf-ink); outline-offset: 1px; z-index: 2; filter: brightness(1.12); }
.gf-t.gf-s-held { border-style: dashed; opacity: .85; }
.gf-t.gf-s-unavailable { opacity: .75; }
.gf-lm { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(138, 90, 43, .88); color: #fffdf8; border-radius: 8%; font-weight: 700; line-height: 1.05; overflow: hidden; pointer-events: none; }
.gf-lm-stage { background: rgba(47, 107, 63, .9); }
.gf-lm-water { background: rgba(40, 110, 170, .9); }
.gf-lm-wc { background: rgba(90, 90, 100, .9); }
.gf-lm-entrance { background: rgba(198, 40, 40, .88); }

.gf-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.gf-zoom button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--gf-line); background: var(--gf-cream); color: var(--gf-ink); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(59, 47, 36, .15); padding: 0; line-height: 1; }
.gf-zoom button:hover { background: #fff; }

.gf-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 4px 4px; font-size: .9rem; }
.gf-leg { display: inline-flex; align-items: center; gap: 6px; }
.gf-leg i { width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .35); display: inline-block; }
.gf-info { min-height: 1.4em; margin: 8px 4px 0; font-weight: 600; }
.gf-picker { margin-top: 10px; }
.gf-picklabel { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.gf-picker select, .gf-field input[type="text"], .gf-field input[type="email"], .gf-field input[type="tel"], .gf-field input[type="number"], .gf-field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--gf-ink); background: #fff; border: 1px solid #cfc3ad; border-radius: 12px; padding: 11px 12px; min-height: 46px;
}
.gf-picker select:focus, .gf-field input:focus, .gf-field textarea:focus { outline: 2px solid var(--gf-green); outline-offset: 1px; border-color: var(--gf-green); }

.gf-noscroll { overflow: hidden; }
.gf-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(40, 30, 20, .55); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.gf-dialog { background: var(--gf-cream); border-radius: 20px; width: 100%; max-width: 560px; margin: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.gf-dialog-head { display: flex; align-items: center; justify-content: space-between; background: var(--gf-green); color: var(--gf-cream); padding: 14px 18px; }
.gf-dialog-head h3 { margin: 0; font-size: 1.15rem; color: inherit; }
.gf-x { background: transparent; border: 0; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 6px; }
.gf-form { padding: 16px 18px 18px; }
.gf-success p { padding: 18px; margin: 0; font-size: 1.05rem; }
.gf-success .gf-actions { padding: 0 18px 18px; }
.gf-picked { margin: 0 0 6px; }
.gf-timer { background: #fff6dd; border: 1px solid #ecd9a0; border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-bottom: 12px; }
.gf-field { margin-bottom: 12px; }
.gf-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.gf-field label small { font-weight: 400; color: #7a6a58; }
.gf-field abbr { color: var(--gf-red); text-decoration: none; }
.gf-consent { display: grid; grid-template-columns: 26px 1fr; align-items: start; }
.gf-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gf-green); }
.gf-consent label { font-weight: 400; margin: 0; }
.gf-consent .gf-err { grid-column: 2; }
.gf-err { color: var(--gf-red); font-size: .88rem; font-weight: 600; }
.gf-err:empty { display: none; }
.gf-general { margin: 6px 0; }
.gf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gf-btn { font: inherit; font-weight: 700; border-radius: 12px; padding: 12px 20px; min-height: 46px; border: 1px solid #cfc3ad; background: #fff; color: var(--gf-ink); cursor: pointer; }
.gf-btn-primary { background: var(--gf-green); border-color: var(--gf-green); color: #fff; flex: 1 1 auto; }
.gf-btn-primary:hover { background: var(--gf-green-d); }
.gf-btn[disabled] { opacity: .6; cursor: not-allowed; }

.gf-box { background: var(--gf-cream); border: 1px solid var(--gf-line); border-radius: 16px; padding: 14px; overflow-x: auto; }
.gf-table { width: 100%; border-collapse: collapse; }
.gf-table th { text-align: left; color: var(--gf-brown); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 2px solid var(--gf-line); }
.gf-table td { padding: 10px; border-bottom: 1px solid var(--gf-line); }
.gf-pill { display: inline-block; min-width: 2.2em; text-align: center; background: var(--gf-red); color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.gf-results .gf-rank-1 td { font-weight: 800; font-size: 1.1em; }
.gf-results .gf-rank-1 .gf-pill { background: #b8860b; }
.gf-results .gf-rank-2 .gf-pill { background: #7d7d86; }
.gf-results .gf-rank-3 .gf-pill { background: var(--gf-brown); }
.gf-results .gf-rank-4 .gf-pill { background: var(--gf-green); }
.gf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.gf-stat { background: var(--gf-cream); border: 1px solid var(--gf-line); border-radius: 16px; padding: 16px; text-align: center; }
.gf-stat strong { display: block; font-size: 1.9rem; color: var(--gf-green-d); }
.gf-stat span { color: #6b5a48; font-size: .9rem; }
.gf-rules h3 { color: var(--gf-brown); }

@media (max-width: 600px) {
	.gf-app { padding: 10px; border-radius: 14px; }
	.gf-modal { padding: 0; }
	.gf-dialog { border-radius: 0; min-height: 100%; max-width: none; }
	.gf-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
	.gf-t { transition: filter .15s; }
}
