/* Rendezvény-modul (F3): esemény-lista, esemény-oldal, jelentkezési űrlap, jegyoldal.
   Csak az evt- előtagú osztályok — a meglévő web.css-hez nem nyúl. */

.evt-lead { max-width: 640px; }
.evt-empty, .evt-closed { padding: 18px 20px; border-radius: 12px; background: #f5f7f6; color: #445; }
.evt-closed { font-weight: 600; }
.evt-small { font-size: .88em; color: #667; }
.evt-h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.evt-h3 { font-size: 1rem; margin: 14px 0 6px; color: #556; }
.evt-past-h { margin-top: 40px; }

/* Kártyák */
.evt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 18px; }
.evt-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.07);
            color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.evt-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.11); }
.evt-card__img { position: relative; aspect-ratio: 16/9; background: #dfe8e3 center/cover no-repeat; }
.evt-card__img .evt-chip { position: absolute; left: 12px; top: 12px; }
.evt-card__body { padding: 14px 16px 18px; }
.evt-card__date { font-weight: 600; color: var(--primary, #2f6f4f); font-size: .92rem; }
.evt-card__title { font-size: 1.15rem; margin: 6px 0 4px; }
.evt-card__sub { margin: 0 0 6px; color: #556; font-size: .94rem; }
.evt-card__venue { font-size: .88rem; color: #667; }
.evt-cards--past .evt-card { opacity: .85; }

.evt-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eee; color: #333; }
.evt-chip--ok { background: #dff3e7; color: #1d6b40; }
.evt-chip--mid { background: #fff1d6; color: #8a5a00; }
.evt-chip--bad { background: #fde2e1; color: #a32620; }
.evt-chip--mute { background: #eceff1; color: #556; }

/* Sávok az oldal tetején */
.evt-bar { padding: 10px 16px; text-align: center; font-size: .95rem; }
.evt-bar--preview { background: #fff1d6; color: #6b4600; }
.evt-bar--invite { background: #efe7fb; color: #4b2a86; }

/* Fejléc */
.evt-hero { background: linear-gradient(135deg, #1f4d38, #3d8a63); color: #fff; }
.evt-hero--img { background-size: cover; background-position: center; position: relative; }
.evt-hero--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18)); }
.evt-hero__in { position: relative; padding: 56px 16px 48px; }
.evt-hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 10px 0 8px; color: #fff; }
.evt-hero__sub { font-size: 1.15rem; max-width: 640px; margin: 0 0 14px; opacity: .95; }
.evt-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px; font-weight: 600; }
.evt-hero__cta { font-size: 1.05rem; }

/* Elrendezés */
.evt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.evt-side { position: sticky; top: 84px; }
@media (max-width: 960px) { .evt-layout { grid-template-columns: 1fr; } .evt-side { position: static; } }
.evt-desc { line-height: 1.65; }
.evt-days-list, .evt-docs { padding-left: 18px; }
.evt-program { list-style: none; padding: 0; margin: 0; }
.evt-program li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid #eef0f0; }
.evt-program__time { min-width: 90px; font-weight: 700; color: var(--primary, #2f6f4f); }
.evt-exhibits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.evt-exhibit { border: 1px solid #e6eaea; border-radius: 12px; overflow: hidden; background: #fff; }
.evt-exhibit__img { aspect-ratio: 4/3; background: #eef2f0 center/cover no-repeat; }
.evt-exhibit__body { padding: 10px 12px 12px; }
.evt-exhibit__body p { margin: 4px 0; }
.evt-sitemap { position: relative; border-radius: 12px; overflow: hidden; }
.evt-sitemap img { display: block; width: 100%; }
.evt-pin { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
           background: var(--primary, #2f6f4f); color: #fff; font: 700 12px/26px sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

/* Űrlap */
.evt-form { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 22px rgba(0,0,0,.08); }
.evt-form__h { font-size: 1.3rem; margin: 0 0 12px; }
.evt-daychips, .evt-interests, .evt-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.evt-inline label { font-weight: 400; }
.evt-chipbox { position: relative; cursor: pointer; }
.evt-chipbox input { position: absolute; opacity: 0; pointer-events: none; }
.evt-chipbox span { display: inline-block; padding: 7px 12px; border: 1.5px solid #cfd8d4; border-radius: 999px; font-size: .92rem; background: #fff; }
.evt-chipbox input:checked + span { border-color: var(--primary, #2f6f4f); background: #e7f3ec; font-weight: 700; }
.evt-chipbox input:focus-visible + span { outline: 2px solid var(--primary, #2f6f4f); outline-offset: 2px; }
.evt-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.evt-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 1.5px solid #cfd8d4; border-radius: 10px;
            background: #fff; cursor: pointer; font-size: .78rem; color: #556; }
.evt-slot b { font-size: 1rem; color: #223; }
.evt-slot.is-full { background: #fafafa; color: #a06a00; }
.evt-slot.is-sel { border-color: var(--primary, #2f6f4f); background: #e7f3ec; box-shadow: inset 0 0 0 1px var(--primary, #2f6f4f); }
.evt-suggest { margin-top: 4px; font-size: .9rem; color: #8a5a00; }
.evt-zip { display: flex; align-items: center; gap: 10px; }
.evt-zip input { max-width: 110px; }
.evt-zip__out { font-weight: 600; color: #1d6b40; }
.ff-err { color: #b3261e; font-size: .88rem; margin-top: 4px; }
.evt-submit { width: 100%; margin-top: 8px; font-size: 1.05rem; }
.evt-ok { padding: 10px 12px; border-radius: 10px; background: #dff3e7; color: #1d6b40; margin-bottom: 10px; }
.evt-decline { margin-top: 12px; text-align: center; }

/* Jegyoldal */
.evt-ticket-wrap { max-width: 560px; }
.evt-ticket { background: #fff; border-radius: 18px; padding: 24px 22px; box-shadow: 0 6px 28px rgba(0,0,0,.10); text-align: center; border-top: 6px solid var(--primary, #2f6f4f); }
.evt-ticket--varolista { border-top-color: #e0a100; }
.evt-ticket--lemondta { border-top-color: #b0b6b9; }
.evt-ticket__event { font-weight: 600; color: #667; }
.evt-ticket__hello { font-size: 1.6rem; margin: 6px 0 16px; }
.evt-qr { display: flex; justify-content: center; align-items: center; min-height: 220px; margin: 8px auto 10px; }
.evt-qr img, .evt-qr canvas { border: 10px solid #fff; }
.evt-code { font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 4px; }
.evt-code strong { font-family: ui-monospace, monospace; font-size: 1.5rem; }
.evt-state { font-size: 1.3rem; font-weight: 700; margin: 12px 0 6px; }
.evt-state--wait { color: #a06a00; }
.evt-state--off { color: #778; }
.evt-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; text-align: left; margin: 18px 0 8px; }
.evt-facts dt { color: #667; }
.evt-facts dd { margin: 0; font-weight: 600; }
.evt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.evt-box { background: #fff; border-radius: 14px; padding: 12px 16px; margin-top: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.evt-box summary { cursor: pointer; font-weight: 600; }
.evt-box[open] summary { margin-bottom: 10px; }
.evt-flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.evt-flash--success { background: #dff3e7; color: #1d6b40; }
.evt-flash--info { background: #e5f0fb; color: #1e4f86; }
.evt-flash--warning { background: #fff1d6; color: #6b4600; }
.evt-flash--danger { background: #fde2e1; color: #a32620; }
.evt-back { margin-top: 18px; text-align: center; }
.evt-msg { max-width: 640px; }

/* Önbeléptetés (F4) — telefonra */
.evt-arrive { max-width: 520px; }
.evt-arrive__card { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 4px 20px rgba(0,0,0,.08); margin: 12px 0; }
.evt-arrive__big { width: 100%; font-size: 1.15rem; padding: 14px; margin-top: 8px; }
.evt-arrive__who { font-size: 1.3rem; font-weight: 700; margin: 4px 0; }
.evt-arrive__two .evt-box { margin-top: 12px; }
.evt-arrive__btn { font-size: 1.1rem; padding: 6px 0; }
.evt-arrive__ok { text-align: center; background: #dff3e7; border: 3px solid #1d6b40; border-radius: 20px; padding: 28px 16px; margin: 16px 0; color: #14502f; }
.evt-arrive__ok.is-again { background: #e5f0fb; border-color: #1e4f86; color: #1e4f86; }
.evt-arrive__ok h1 { font-size: 2rem; margin: 6px 0; }
.evt-arrive__check { font-size: 4rem; line-height: 1; }
.evt-photo { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #d6dcd9; }

/* Helyszín-kártya, helyszíni menü, visszajelzés (F6) */
.evt-exhibit-page { max-width: 760px; }
.evt-xh1 { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.evt-plate { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; background: #2f6f4f; color: #fff; font-weight: 800; }
.evt-lead { font-size: 1.1rem; color: #444; }
.evt-actions--left { justify-content: flex-start; }
.evt-actions form { margin: 0; }
.evt-consent .btn { margin-top: 8px; }
.evt-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px 0; }
.evt-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; scroll-snap-align: start; }
.evt-desc { margin-top: 12px; }
.evt-hunt { margin: 10px 0; font-size: .95rem; }
.evt-hunt__bar { height: 10px; background: #e6ebe8; border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.evt-hunt__bar span { display: block; height: 100%; background: linear-gradient(90deg, #2f6f4f, #5bb385); }
.evt-crowd { list-style: none; padding: 0; margin: 10px 0; }
.evt-crowd li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #eef1ef; }
.evt-crowd__n { flex: 1; }
.evt-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.evt-dot--lo, .evt-pin--lo { background: #2e9e5b; }
.evt-dot--mid, .evt-pin--mid { background: #e0a106; }
.evt-dot--hi, .evt-pin--hi { background: #d0342c; }
.evt-pin.is-seen { outline: 3px solid #fff; box-shadow: 0 0 0 5px #2f6f4f; }
.evt-nps { display: flex; flex-wrap: wrap; gap: 4px; }
.evt-nps__b input { position: absolute; opacity: 0; pointer-events: none; }
.evt-nps__b span { display: inline-block; width: 38px; padding: 8px 0; text-align: center; border-radius: 8px; font-weight: 700; color: #fff; cursor: pointer; opacity: .55; }
.evt-nps__b--lo span { background: #c0392b; } .evt-nps__b--mid span { background: #d68910; } .evt-nps__b--hi span { background: #1e8449; }
.evt-nps__b input:checked + span { opacity: 1; outline: 3px solid #222; }

/* Tombola (F7) */
.evt-chip { display: inline-block; font-size: .8rem; background: #fff1d6; color: #6b4600; border-radius: 99px; padding: 2px 10px; vertical-align: middle; }
.evt-stubs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.evt-stub { position: relative; display: inline-block; padding: 6px 12px 6px 16px; background: #fbbf24; color: #3b2a00; font-weight: 800;
            border-radius: 6px; font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.evt-stub::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; border-left: 2px dashed rgba(59,42,0,.35); }
.evt-stub.is-new { animation: evtStub .9s ease-out both; }
.evt-stub.is-void { background: #ddd; color: #888; text-decoration: line-through; }
.evt-stub.is-won { background: #1e8449; color: #fff; }
@keyframes evtStub { 0% { transform: translateY(-14px) rotate(-8deg) scale(.6); opacity: 0; } 60% { transform: translateY(2px) rotate(3deg) scale(1.08); opacity: 1; } 100% { transform: none; } }
.evt-inline { display: flex; gap: 8px; margin-top: 8px; } .evt-inline input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #cfd6d2; border-radius: 8px; }
.evt-refer { margin-top: 12px; padding: 10px 12px; background: #eef7f1; border-radius: 10px; }
.evt-raffle { max-width: 900px; }
.evt-raffle__status { font-weight: 700; margin: 8px 0; } .evt-raffle__status.is-live { color: #c0392b; }
.evt-raffle__count { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.evt-prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.evt-prize { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.evt-prize img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.evt-prize__b { padding: 10px 12px; } .evt-prize__w { margin-top: 6px; }
.evt-hash code { word-break: break-all; font-size: .75rem; }

/* Stílusválasztó és élő szalag (F9) */
.sty { max-width: 960px; }
.sty-modes { display: flex; gap: 8px; margin: 10px 0; }
.sty-board { display: flex; gap: 8px; overflow-x: auto; padding: 8px; background: #fff; border-radius: 12px; min-height: 70px; align-items: center; box-shadow: 0 2px 12px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 5; }
.sty-board--big { flex-wrap: wrap; position: static; }
.sty-tile { flex: none; width: 110px; font-size: .78rem; text-align: center; }
.sty-board--big .sty-tile { width: 160px; }
.sty-tile img, .sty-tile .sty-sw { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
.sty-sw { display: inline-block; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(0,0,0,.08); }
.sty-sw--big { width: 100%; height: 280px; display: block; border-radius: 16px 16px 0 0; }
.sty-swipe { max-width: 420px; margin: 14px auto; text-align: center; }
.sty-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.1); min-height: 200px; touch-action: pan-y; }
.sty-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.sty-card__b { padding: 12px 14px; text-align: left; }
.sty-done { padding: 60px 20px; font-weight: 700; }
.sty-actions { display: flex; justify-content: center; gap: 24px; margin: 12px 0 6px; }
.sty-actions .btn { width: 70px; height: 70px; border-radius: 50%; font-size: 1.6rem; }
.sty-group { margin: 12px 0 18px; } .sty-group h3 { font-size: 1.05rem; margin-bottom: 6px; }
.sty-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sty-opts--minta { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.sty-opts--lista { grid-template-columns: 1fr; }
.sty-opt { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; padding: 6px; background: #fff; border: 2px solid #e6ebe8; border-radius: 12px; cursor: pointer; }
.sty-opt img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.sty-opt .sty-sw { width: 100%; height: 60px; }
.sty-opt.is-on { border-color: #2f6f4f; box-shadow: 0 0 0 3px rgba(47,111,79,.25); }
.sty-opt__n em { font-style: normal; font-size: .7rem; background: #fff1d6; padding: 1px 6px; border-radius: 99px; }
.evt-live { position: sticky; top: 0; z-index: 6; background: #1e3a8a; color: #fff; padding: 8px 12px; border-radius: 10px; margin: 8px 0; }
.evt-live .btn { margin-left: 8px; padding: 2px 10px; color: #fff; border-color: #fff; }

@media print {
    header, footer, nav, .evt-actions, .evt-box, .evt-back, .evt-flash { display: none !important; }
    .evt-ticket { box-shadow: none; border: 1px solid #ccc; }
}
