/**
 * Nézőtér – a Nemzeti Lovas Színház arculata szerint.
 * Ugyanez a stílus fut a pénztárban, a szerkesztő előnézetében és a vásárlói oldalon.
 */

.nlsz-map-panel {
	--gold: #c99a45;
	--gold-light: #f2d694;
	--red: #74121a;
	--cream: #f6f0e7;
	--cream-dark: #e9dfd0;
	--ink: #251d17;
	--muted: #756b61;
	--sold: #181818;
	--held: #8a8178;
	--blocked: #cfc6b9;

	position: relative;
	padding: 20px 22px 16px;
	color: var(--ink);
	background: var(--cream);
	border: 1px solid var(--cream-dark);
	border-radius: 4px;
}

.nlsz-map-panel * { box-sizing: border-box; }

/* Eszközsor */
.nlsz-map-tools { display: flex; gap: 7px; align-items: center; justify-content: flex-end; margin-bottom: 14px; display: none; }
.nlsz-map-tool {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; min-height: 36px; padding: 6px 11px;
	color: var(--ink); background: #fff; border: 1px solid #d8cec0;
	border-radius: 3px; cursor: pointer; font-size: 15px; line-height: 1;
	transition: .15s;
}
.nlsz-map-tool:hover { color: var(--red); border-color: var(--gold); }
.nlsz-map-zoom { min-width: 62px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Jelmagyarázat */
.nlsz-map-legend {
	display: flex; flex-wrap: wrap; gap: 9px 18px; margin-bottom: 16px;
	padding: 12px 15px; background: rgba(255,255,255,.62); border: 1px solid #ded3c5; border-radius: 3px;
}
.nlsz-map-legend-item { display: inline-flex; align-items: center; gap: 8px; color: #625950; font-size: 12px; font-weight: 600; }
.nlsz-map-dot {
	width: 14px; height: 14px; border-radius: 4px 4px 2px 2px;
	box-shadow: inset 0 -3px 0 rgba(0,0,0,.14);
}
.nlsz-map-dot.is-selected { outline: 3px solid rgba(116,18,26,.2); }

/* Görgethető vászon */
.nlsz-map-scroll {
	position: relative; overflow: auto; padding: 4px;
	/* Fix nézőke: a nagyítás ezen belül történik, a panel magassága nem változik. */
	height: clamp(320px, 56vh, 720px);
	scrollbar-color: var(--gold) #ddd3c5; scrollbar-width: thin;
	cursor: grab; overscroll-behavior: contain;
	background: rgba(255,255,255,.35);
	border: 1px solid #e4dacb;
	border-radius: 3px;
}
.nlsz-map-scroll.is-panning { cursor: grabbing; }
.nlsz-map-scroll::-webkit-scrollbar { height: 10px; width: 10px; }
.nlsz-map-scroll::-webkit-scrollbar-track { background: #ddd3c5; border-radius: 5px; }
.nlsz-map-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 5px; }

.nlsz-map { position: relative; transform-origin: 0 0; transition: transform .18s; width: max-content; }
.nlsz-map-sizer { position: relative; margin: 0 auto; }

/* Színpad */
.nlsz-stage-wrap { margin: 0 auto 18px; text-align: center; }
.nlsz-stage {
	display: flex; align-items: center; justify-content: center;
	height: 72px; color: #fff; background: #b6b6b6; border: 3px solid #c7c7c7;
	font: 700 22px/1 Cinzel, Georgia, serif; letter-spacing: 9px; text-transform: uppercase;
}

.nlsz-auditorium { position: relative; padding: 2px 0 8px; }
.nlsz-block-title {
	margin: 0 0 14px; text-align: center; color: #897b6e;
	font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}

/* Szektorok */
.nlsz-sectors { display: flex; gap: 34px; align-items: flex-start; justify-content: center; }
.nlsz-sector { display: flex; flex-direction: column; gap: 5px; }
.nlsz-sector-name {
	margin-bottom: 6px; text-align: center; color: #897b6e;
	font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
}
.nlsz-seat-row { display: flex; align-items: center; gap: 4px; }
.nlsz-row-label {
	width: 20px; flex: none; text-align: center; color: #9a8d7f;
	font-size: 11px; font-weight: 700;
}

/* Székek */
.nlsz-seat {
	position: relative; width: 32px; height: 30px; flex: none; padding: 0;
	border: 2px solid rgba(255,255,255,.38); border-radius: 8px 8px 4px 4px;
	box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), 0 2px 5px rgba(0,0,0,.13);
	color: #fff; font: 700 11px/1 "Open Sans", Arial, sans-serif; cursor: pointer;
	/* A szám a széken aranyszínű háttéren ül: árnyék nélkül elmosódna. */
	text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
	letter-spacing: -.2px;
	/* A jelölés azonnal látsszon: az átmenet a mozgásra való, nem a színre. */
	transition: transform .12s, box-shadow .12s;
	display: flex; align-items: center; justify-content: center;
}
.nlsz-seat:hover { transform: translateY(-2px); box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), 0 5px 12px rgba(0,0,0,.2); }
.nlsz-seat.is-own { background: var(--red) !important; outline: 3px solid rgba(116,18,26,.2); }
.nlsz-seat.is-sold { background: var(--sold) !important; cursor: not-allowed; }
.nlsz-seat.is-held { background: var(--held) !important; cursor: not-allowed; }
.nlsz-seat.is-blocked { background: var(--blocked) !important; color: #6b6156; text-shadow: none; cursor: not-allowed; }
.nlsz-seat.is-own { text-shadow: none; }
.nlsz-seat.is-sold:hover, .nlsz-seat.is-held:hover, .nlsz-seat.is-blocked:hover { transform: none; box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), 0 2px 5px rgba(0,0,0,.13); }
.nlsz-gap { width: 32px; height: 30px; flex: none; }

/* Feliratok */
.nlsz-map-label {
	position: absolute; padding: 6px 9px; color: #1b1b1b; background: #ffd9a1;
	font: 800 11px/1 "Open Sans", Arial, sans-serif; letter-spacing: .8px; text-transform: uppercase;
	border-radius: 2px; white-space: nowrap;
}
.nlsz-map-label.is-draggable { cursor: grab; }

/*
 * Sima felirat: a nézőtér magyarázó szövege (például a korlátozott látást
 * biztosító helyeké). Nincs tábla körülötte, több sorba tördelhet, és a
 * szöveg színe a saját színe — így nem keveredik össze a Bejárat-szerű
 * kiemelt táblákkal.
 */
.nlsz-map-label.is-plain {
	padding: 0; background: none; border-radius: 0;
	font: 700 12px/1.35 "Open Sans", Arial, sans-serif;
	letter-spacing: 0; text-transform: none; text-align: center;
	white-space: normal; max-width: 180px;
}

.nlsz-map-note { margin-top: 10px; text-align: center; color: var(--red); font-size: 12px; font-weight: 700; }

@media (max-width: 782px) {
	.nlsz-map-panel { padding: 0px; }
	.nlsz-map-scroll { height: clamp(260px, 50vh, 460px); }
	.nlsz-stage { height: 56px; font-size: 16px; letter-spacing: 5px; }
	.nlsz-sectors { gap: 20px; }
}

.nlsz-map-scroll { touch-action: pan-x pan-y; }
.nlsz-map-hint { margin: 8px 0 0; color: #897b6e; font-size: 11px; text-align: right; display: none;}

/* Szinpadkep: a nezoteren beallitott fotо a szurke sav helyett. */
.nlsz-stage.has-image {
	height: 800px;
	background-color: #17110e;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border: 3px solid rgba(201, 154, 69, .45);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
