:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#182338;background:#f6f8fc;font-synthesis:none;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;width:100%;touch-action:manipulation;overscroll-behavior-x:none}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #8ba9ff;outline-offset:2px}[hidden]{display:none!important}p,h1,h2{margin:0}
.topbar{height:69px;background:#101827;color:#fff;display:flex;align-items:center;padding:0 max(18px,calc((100vw - 1180px)/2));gap:12px;border-bottom:1px solid #263247}
.brandmark,.auth-icon{display:grid;place-items:center;background:#293b63;border:1px solid #546b99;width:37px;height:37px;border-radius:11px;font-size:23px;color:#fff}.brandtext{display:flex;flex-direction:column;gap:2px;white-space:nowrap}.brandtext strong{font-size:16px;font-weight:760;letter-spacing:-.4px}.brandtext span{color:#a8b5c9;font-size:11px;font-weight:600}.topactions{margin-left:auto;display:flex;align-items:center;gap:11px}.connection{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:#e4e9f4;border:1px solid #39465e;background:#1d2a3f;border-radius:100px;padding:7px 11px}.conn-dot{height:7px;width:7px;border-radius:50%;background:#f59e0b}.connection.cloud .conn-dot{background:#53d3aa}.connection.error .conn-dot{background:#f87171}.icon-button{color:inherit;background:transparent;border:1px solid rgba(255,255,255,.21);border-radius:10px;height:36px;min-width:38px;display:grid;place-items:center;font-size:24px;line-height:1}.icon-button:hover{background:rgba(255,255,255,.09)}
.main{max-width:1180px;margin:0 auto;padding:24px 22px 32px}.heading{display:flex;justify-content:space-between;align-items:end;margin:0 0 19px}.eyebrow{font-size:10px;letter-spacing:1.35px;font-weight:820;color:#597291;margin:0 0 6px}.heading h1{letter-spacing:-.85px;font-size:25px;line-height:1.13;font-weight:790}.heading p{color:#778398;font-size:13px;margin:8px 0 0}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}.stat{background:#fff;border:1px solid #e4e9f0;box-shadow:0 3px 13px #1d355007;border-radius:13px;padding:15px 17px;min-width:0}.stat-label{display:flex;align-items:center;gap:8px;color:#6d7a8f;font-size:11px;font-weight:680;white-space:nowrap}.stat-label i{height:8px;width:8px;border-radius:100%;background:#169c71;flex:none}.stat.held .stat-label i{background:#e5aa2e}.stat.sold .stat-label i{background:#dc6269}.stat b{display:block;font-size:27px;line-height:1.25;letter-spacing:-.6px;margin-top:6px;font-variant-numeric:tabular-nums}.stat.available b{color:#117854}.stat.held b{color:#b17618}.stat.sold b{color:#bd3b45}
.section-tabs{display:flex;gap:8px;overflow:auto;scrollbar-width:none;margin-bottom:12px;padding-bottom:2px}.section-tabs::-webkit-scrollbar{display:none}.section-tabs button{border:1px solid #dfe5ee;background:white;padding:10px 16px;white-space:nowrap;border-radius:9px;font-size:12px;color:#536176;font-weight:680;transition:.15s}.section-tabs button.active{background:#1a2a43;border-color:#1a2a43;color:white;box-shadow:0 3px 9px #152b3d20}.section-tabs button:hover:not(.active){border-color:#8798b6}
.map-card{background:#fff;border:1px solid #e0e6ef;border-radius:15px;overflow:hidden;box-shadow:0 8px 27px #14263c0c}.map-topline{height:54px;display:flex;align-items:center;padding:0 16px;justify-content:space-between;border-bottom:1px solid #e9edf4;gap:8px}.map-title{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:770;color:#273853;white-space:nowrap}.map-title-dot{height:9px;width:9px;background:#6289c9;border-radius:50%}.map-top-actions{display:flex;gap:7px}.soft-button{border:1px solid #dfe6ee;background:#f9fafc;color:#42536e;border-radius:8px;padding:7px 12px;font-size:11px;font-weight:700}.soft-button.active{background:#e1ebff;color:#204f9b;border-color:#9fbeff}.map-viewport{height:min(64vh,690px);min-height:390px;position:relative;overflow:hidden;background:radial-gradient(circle at center,#fff 35%,#f3f5f9);touch-action:none;overscroll-behavior:contain;cursor:grab;user-select:none}.map-viewport.dragging{cursor:grabbing}.map-world{position:absolute;left:0;top:0;width:1295px;height:1154px;transform-origin:0 0;will-change:transform}.map-world img{position:absolute;display:block;width:1295px;height:1154px;top:0;left:0;pointer-events:none;user-select:none}.map-world svg{position:absolute;top:0;left:0;overflow:visible;pointer-events:none}.map-world svg rect{stroke:transparent;stroke-width:1.2;pointer-events:none}.map-world svg .free{fill:transparent}.map-world svg .held{fill:#f5ae35;fill-opacity:.77;stroke:#a65b05;stroke-opacity:.85}.map-world svg .sold{fill:#fa536b;fill-opacity:.82;stroke:#9b152e;stroke-opacity:.92}.map-world svg .selected{stroke:#1671ed;stroke-width:3.2;stroke-opacity:1;filter:drop-shadow(0 0 2px #69b2ff);fill:#277ce4;fill-opacity:.4}.map-world svg .selected.held{fill:#f5ae35;fill-opacity:.85}.map-world svg .selected.sold{fill:#ff536e;fill-opacity:.85}
.map-hint{position:absolute;left:13px;top:12px;max-width:260px;border:1px solid #e4eaf2;color:#748299;background:#ffffffdf;border-radius:7px;padding:7px 10px;font-size:10px;pointer-events:none}.zoom-controls{position:absolute;right:13px;top:13px;display:flex;flex-direction:column;background:#fff;border:1px solid #dfe6f1;box-shadow:0 3px 12px #1b2d451a;border-radius:10px;overflow:hidden}.zoom-controls button{border:none;border-bottom:1px solid #e5eaf1;background:#fff;width:38px;height:38px;color:#263a56;font-size:23px}.zoom-controls button:last-child{border-bottom:none;font-size:20px}.zoom-controls button:hover{background:#eff4ff}.map-lower{position:absolute;bottom:13px;left:13px;right:13px;display:flex;justify-content:space-between;pointer-events:none;color:#485e7b;font-size:10px;font-weight:650}.map-lower span{background:#ffffffed;border:1px solid #e1e8f1;border-radius:7px;padding:7px 9px}.map-bottom{min-height:46px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:23px;padding:11px;border-top:1px solid #e8edf3;color:#687589;font-size:11px;font-weight:650}.map-bottom>span{display:inline-flex;align-items:center;gap:7px}.legend-dot,.choice-dot{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}.free-dot{background:#3fa67e}.held-dot{background:#edb24e}.sold-dot{background:#ed6578}.selected-dot{border:2px solid #3588f7;background:#b7d1f8}.helper{color:#8793a5;font-size:11px;line-height:1.65;margin:12px 2px}
.backdrop{position:fixed;inset:0;background:#0b162b78;z-index:20}.bottom-sheet{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:21;max-width:530px;width:100%;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -15px 55px #0b162b45;padding:0 24px calc(22px + env(safe-area-inset-bottom));max-height:91dvh;overflow:auto}.sheet-pull{margin:9px auto 17px;width:34px;height:4px;background:#dce2eb;border-radius:10px}.sheet-header,.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.sheet-header h2,.drawer-header h2{font-size:21px;letter-spacing:-.6px}.icon-button.close{border:1px solid #e1e7f0;color:#526079;background:#f7f9fc;font-size:27px;min-width:35px;height:35px}.seat-context{color:#79859a;font-size:12px;margin:8px 0 20px}.field-title,.field-label{display:block;color:#37475c;font-size:12px;font-weight:740;margin:14px 0 9px}.field-label small{color:#9aa4b4;font-weight:400}.state-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.state-choice input{position:absolute;opacity:0}.state-choice span{display:flex;align-items:center;justify-content:center;gap:7px;padding:12px 6px;background:#fafbfe;border:1px solid #e0e7ef;border-radius:9px;font-size:12px;font-weight:720;color:#536078;cursor:pointer}.state-choice input:checked+span{border:2px solid #274876;padding:11px 5px;background:#edf4ff;color:#173e78}.state-choice input:focus-visible+span{outline:3px solid #9ab9ee}.bottom-sheet input:not([type=radio]),.drawer input[type=search],.auth-card input{width:100%;border:1px solid #dce4ef;border-radius:9px;padding:12px 13px;background:#fff;color:#21324c;outline:none;font-size:14px}.bottom-sheet input:focus,.drawer input:focus,.auth-card input:focus{border-color:#6c95d9;box-shadow:0 0 0 3px #6c95d921}.sheet-footer{display:flex;align-items:center;justify-content:space-between;margin-top:22px;gap:15px}.danger-link{border:none;background:transparent;color:#b34f5b;text-decoration:underline;font-size:12px;padding:8px 0}.primary-button{background:#1d375a;color:#fff;border:none;border-radius:10px;padding:13px 22px;font-size:13px;font-weight:770;box-shadow:0 3px 10px #0e25421b;min-width:130px}.primary-button:disabled{opacity:.55;cursor:wait}.primary-button:hover{background:#284b78}
.drawer{position:fixed;right:0;top:0;bottom:0;z-index:22;max-width:430px;width:min(100%,430px);background:white;box-shadow:-15px 0 45px #0b162b30;padding:27px 22px;overflow-y:auto}.drawer-header{margin-bottom:24px}.booking-list{display:grid;gap:8px;margin-top:14px}.booking-item{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:13px;border:1px solid #e3e9f0;background:#fcfdff;border-radius:10px;color:#334258;gap:10px;width:100%}.booking-item strong{display:block;font-size:13px}.booking-item small{display:block;font-size:11px;color:#8591a2;margin-top:4px;line-height:1.5}.booking-item em{font-style:normal;font-size:10px;border-radius:6px;padding:6px 8px;font-weight:700;white-space:nowrap}.booking-item em.held{background:#fff2d8;color:#9d6712}.booking-item em.sold{background:#ffe4e7;color:#bb4659}.empty-state{text-align:center;padding:45px 12px;color:#8a97a9;font-size:12px;line-height:1.8}.menu-action{display:block;width:100%;background:#fff;border:1px solid #e0e7ef;border-radius:10px;text-align:left;margin:0 0 9px;padding:15px;color:#324962;font-weight:650;font-size:12px}.menu-action:hover{background:#f3f7fc}.file-action{cursor:pointer}.menu-help{background:#f5f7fb;border-radius:8px;color:#7b899d;font-size:11px;line-height:1.6;padding:12px;margin:10px 0 18px}
.auth-cover{position:fixed;inset:0;z-index:40;display:grid;place-items:center;background:linear-gradient(145deg,#142340,#263a5d);padding:25px}.auth-card{background:white;border-radius:18px;padding:30px;max-width:375px;width:100%;box-shadow:0 15px 60px #0712264d}.auth-icon{margin:0 auto 23px}.auth-card .eyebrow{text-align:center}.auth-card h2{text-align:center;font-size:24px;margin-bottom:9px}.auth-card p{font-size:13px;color:#7b889d;text-align:center;line-height:1.55;margin-bottom:24px}.auth-card label{display:block;font-size:12px;font-weight:700;color:#4c5a70;margin-bottom:8px}.auth-card button{width:100%;margin-top:12px}.form-error{min-height:18px;font-size:11px;color:#ba4d5b;margin-top:10px}.auth-foot{text-align:center;font-size:10px;color:#98a2b0;margin-top:12px}.toast{position:fixed;left:50%;transform:translate(-50%,15px);bottom:max(25px,env(safe-area-inset-bottom));background:#142841;color:white;padding:11px 17px;border-radius:10px;font-size:12px;z-index:70;opacity:0;transition:.22s;pointer-events:none;box-shadow:0 10px 25px #0b1b3240;max-width:calc(100vw - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:720px){.topbar{height:62px;padding:0 13px}.brandmark{height:35px;width:35px}.brandtext strong{font-size:14px}.brandtext span{font-size:10px}.connection{padding:7px 9px;font-size:10px}.main{padding:18px 12px 24px}.heading{margin:0 4px 16px}.heading h1{font-size:20px}.heading p{font-size:11px;line-height:1.4;margin-top:6px}.stats{gap:7px;margin-bottom:14px}.stat{border-radius:10px;padding:12px 10px}.stat-label{font-size:10px;gap:5px}.stat-label i{width:6px;height:6px}.stat b{font-size:23px;margin-top:6px}.section-tabs{margin-bottom:9px}.section-tabs button{padding:10px 13px;border-radius:8px}.map-topline{height:48px;padding:0 12px}.map-title{font-size:11px}.soft-button{padding:7px 8px;font-size:10px}.map-card{border-radius:12px}.map-viewport{height:61dvh;min-height:360px}.map-hint{max-width:220px;font-size:9px}.map-bottom{gap:12px 17px;font-size:10px}.bottom-sheet{padding:0 17px calc(20px + env(safe-area-inset-bottom))}.drawer{padding:22px 18px}.helper{font-size:10px}}
@media(max-width:390px){.stat{padding:12px 7px}.stat-label{font-size:9px}.stat b{font-size:21px}.map-title-dot{display:none}.map-top-actions{gap:5px}.soft-button{padding:7px 6px}.connection #connectionText{max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Gyors, érintésbarát mobilos kiegészítések */
.tool-icon{display:grid;place-items:center;width:34px;height:33px;min-width:34px;border:1px solid #dfe6ee;border-radius:8px;background:#f9fafc;color:#42536e;font-weight:800;font-size:19px}
.tool-icon:hover:not(:disabled){background:#eaf1ff}
.tool-icon:disabled{opacity:.4;cursor:not-allowed}
.fullscreen-tabs{display:none;overflow-x:auto;scrollbar-width:none;gap:6px;padding:9px 12px;background:#fff;border-bottom:1px solid #e8edf3;flex:none}
.fullscreen-tabs button{white-space:nowrap;border:1px solid #dfe5ee;border-radius:8px;background:#fff;padding:9px 12px;color:#536176;font-size:12px;font-weight:700;min-height:37px}
.fullscreen-tabs button.active{background:#1a2a43;border-color:#1a2a43;color:#fff}
.booking-filters{display:flex;gap:7px;margin-top:12px}
.booking-filters button{flex:1;min-height:39px;background:#f6f8fb;color:#5b6b82;border:1px solid #dee6f0;border-radius:9px;font-size:12px;font-weight:700}
.booking-filters button.active{background:#1d375a;color:#fff;border-color:#1d375a}
.booking-result-count{font-size:11px;color:#8290a2;margin-top:13px}
.booking-list{margin-top:8px}
.menu-action:disabled{opacity:.42;cursor:default}
.backup-nudge{position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:70;display:flex;align-items:center;gap:9px;padding:10px 11px;background:#162943;color:white;border-radius:12px;box-shadow:0 6px 28px #09192d55;font-size:11px;line-height:1.4;max-width:520px;margin:auto}
.backup-nudge span{flex:1}.backup-nudge button{border:0;border-radius:7px;background:#dceafc;color:#1b375c;font-size:12px;font-weight:800;padding:9px 10px;white-space:nowrap}
.backup-nudge #dismissNudge{padding:8px 6px;background:transparent;color:#dceafc;font-size:20px;line-height:1}
body.map-expanded{overflow:hidden}
body.map-expanded .map-card{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none;height:100dvh;width:100vw;max-width:none}
body.map-expanded .map-topline{height:auto;min-height:55px;padding:calc(9px + env(safe-area-inset-top)) 12px 10px;flex:none}
body.map-expanded .fullscreen-tabs{display:flex!important}
body.map-expanded .map-viewport{height:auto;min-height:0;flex:1}
body.map-expanded .map-bottom{flex:none;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
body.map-expanded .backdrop{z-index:85}
body.map-expanded .bottom-sheet{z-index:86}
body.map-expanded .drawer{z-index:87}
body.map-expanded .toast,body.map-expanded .backup-nudge{z-index:120}
@media(max-width:720px){
  .topbar{height:58px}.main{padding-top:12px}.heading{margin-bottom:12px}.heading p{margin-top:5px}
  .stats{margin-bottom:10px}.stat{padding:10px 8px}.stat b{margin-top:4px}
  .map-topline{padding:0 9px;gap:5px}.map-top-actions{gap:5px;align-items:center}
  .soft-button{padding:8px 7px;min-height:34px}.tool-icon{min-width:33px;height:34px;width:33px}
  .bottom-sheet input:not([type=radio]),.drawer input[type=search],.auth-card input{font-size:16px}
  .map-hint{max-width:200px}
  .zoom-controls button{min-height:42px;min-width:42px}
  .map-bottom{gap:10px 14px}
}
@media(max-width:360px){
  .map-title{font-size:10px;gap:5px}.map-title-dot{display:none}
  .soft-button{font-size:10px;padding:7px 5px}.tool-icon{min-width:29px;width:29px}
  .map-topline{padding:0 6px}
}

/* Az oldal nem nagyítható dupla koppintással; a térkép saját nagyítása tovább működik. */
.map-viewport{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.bottom-sheet,.drawer{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* v3 – alapból többhelyes kijelölés, kiemelt közös mentéssel. */
.save-selection{background:#1d375a!important;border-color:#1d375a!important;color:#fff!important;font-weight:800;min-width:89px}
.save-selection:disabled{background:#e7edf5!important;border-color:#dce4f0!important;color:#8896aa!important;cursor:default}
.clear-selection{width:32px;min-width:32px;font-size:19px;font-weight:750;padding:6px 5px!important}
.field-help{font-size:11px;color:#8090a4;margin-top:7px;line-height:1.45}
@media(max-width:390px){.map-title{font-size:10px}.save-selection{min-width:75px;padding:8px 6px!important}.map-top-actions{gap:4px!important}.map-topline{gap:5px}}
@media(max-width:355px){.map-title{display:none}.map-topline{justify-content:flex-end}}

/* V4 – név szerint csoportosított jegyek és térképes kiemelés. */
.booking-group{align-items:flex-start;min-height:84px;gap:9px}
.booking-group:hover,.booking-group:focus-visible{background:#f0f6ff;border-color:#94aedb}
.booking-group .group-main{min-width:0;flex:1}
.booking-group .group-main strong{font-size:14px;color:#20324d;line-height:1.35;overflow-wrap:anywhere}
.booking-group .group-main small{line-height:1.45;overflow-wrap:anywhere}
.booking-group .group-seat-ids{max-height:32px;overflow:hidden;color:#9ba6b5;font-size:10px}
.booking-group .group-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.booking-group .ticket-count{font-size:12px;border-radius:8px;color:#21456e;background:#e5effc;padding:7px 10px;white-space:nowrap}
.booking-group .group-view{font-size:10px;color:#5a7b9f;white-space:nowrap}
.group-highlight{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#e5f7f2;color:#11624c;padding:9px 12px;border-bottom:1px solid #b7e6d9;font-size:12px;font-weight:740;line-height:1.4}
.group-highlight span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.group-highlight button{flex:none;border:1px solid #89ccba;background:white;color:#11624c;width:30px;height:30px;border-radius:8px;font-size:20px;line-height:1}
.map-world.highlighting #seatPlan{opacity:.4;filter:grayscale(.4)}
.map-world.highlighting #seatOverlay rect:not(.highlighted){opacity:.10}
.map-world #seatOverlay rect.highlighted{opacity:1;stroke:#0a9b77;stroke-width:4.2;stroke-opacity:1;fill:#35e2af;fill-opacity:.66;filter:drop-shadow(0 0 4px #00ac85)}
.map-world #seatOverlay rect.highlighted.sold{fill:#35e2af;fill-opacity:.83}
.map-world #seatOverlay rect.highlighted.held{fill:#35e2af;fill-opacity:.83}
#hideSeat:disabled{opacity:.45;cursor:wait}
@media(max-width:390px){.booking-group .group-right{gap:6px}.booking-group .ticket-count{padding:6px 8px}}
