/* Plan sali spektaklu — wspólny dla recepcji (Tailwind) i strony publicznej (site.css). Kolory z config/brand.yml. */
.seat-map-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.seat-map-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
}

.seat-map-stage { fill: #3d2b5a; stroke: #6f4da4; }
.seat-map-stage-label { fill: #d4b8f0; font: 600 14px "Open Sans", sans-serif; letter-spacing: 0.4em; }
.seat-map-row { fill: #8a74ab; font: 600 13px "Open Sans", sans-serif; }

.seat { cursor: pointer; outline: none; }
.seat rect { fill: #3d2b5a; stroke: #9b6dd7; stroke-width: 1.5; transition: fill 0.12s; }
.seat text { fill: #d4b8f0; font: 600 11px "Open Sans", sans-serif; pointer-events: none; }
.seat:hover rect, .seat:focus-visible rect { fill: #6f4da4; }

/* Strefy cenowe — kolor ramki wolnego miejsca; stany niżej mają pierwszeństwo, bo są dalej w pliku. */
.seat--zone-1 rect { stroke: #4ecdc4; stroke-width: 2; }
.seat--zone-1 text { fill: #4ecdc4; }
.seat--zone-2 rect { stroke: #34d399; stroke-width: 2; }
.seat--zone-2 text { fill: #34d399; }
.seat--zone-3 rect { stroke: #ffffff; stroke-width: 2; }
.seat--zone-3 text { fill: #ffffff; }
.seat--zone-4 rect { stroke: #eecdfc; stroke-width: 2; }
.seat--zone-4 text { fill: #eecdfc; }
.seat--zone-5 rect { stroke: #d4af37; stroke-width: 2; }
.seat--zone-5 text { fill: #d4af37; }

.seat--mine rect { fill: #c9a7f5; stroke: #ffffff; }
.seat--mine text { fill: #1a0e2e; }
.seat--mine:hover rect { fill: #eecdfc; }

.seat--taken { cursor: not-allowed; }
.seat--taken rect, .seat--taken:hover rect { fill: rgba(255, 107, 138, 0.14); stroke: rgba(255, 107, 138, 0.45); }
.seat--taken text { fill: rgba(255, 107, 138, 0.55); }
/* Własne miejsca w koszyku przychodzą z serwera jako zajęte — dalej mają wyglądać na wybrane. */
.seat--taken.seat--mine { cursor: pointer; }
.seat--taken.seat--mine rect, .seat--taken.seat--mine:hover rect { fill: #c9a7f5; stroke: #ffffff; }
.seat--taken.seat--mine text { fill: #1a0e2e; }

/* Sprzedane = wypełnione (jak zapełniona sala); zielone myliło się z wolnym. Jaśniejsze z białą ramką to „wybrane”. */
.seat--sold rect, .seat--sold:hover rect { fill: #8a74ab; stroke: #8a74ab; }
.seat--sold text { fill: #1a0e2e; }
.seat--reserved rect, .seat--reserved:hover rect { fill: #3d2b5a; stroke: #f9d423; stroke-width: 2.5; }
.seat--reserved text { fill: #f9d423; }
.seat--held rect, .seat--held:hover rect { fill: #3d2b5a; stroke: #ff8a5c; stroke-width: 2.5; stroke-dasharray: 4 3; }
.seat--held text { fill: #ff8a5c; }
.seat--blocked rect { fill: rgba(255, 107, 138, 0.18); stroke: #ff6b8a; stroke-width: 2; }
.seat--blocked text { fill: #ff6b8a; }
.seat--blocked.seat--mine rect, .seat--sold.seat--mine rect, .seat--reserved.seat--mine rect { stroke: #ffffff; stroke-width: 3; }

.seat--flash rect { animation: seat-flash 0.9s ease-out 2; }
@keyframes seat-flash { 50% { fill: #ff6b8a; } }

/* Kupujący (recepcja): ramka wokół sąsiednich miejsc, numer łączy rozdzielone kawałki. */
.seat-map-groups { pointer-events: none; }
.seat-map-group rect { fill: none; stroke: currentColor; stroke-width: 2; }
.seat-map-group circle { fill: currentColor; }
.seat-map-group text { fill: #1a0e2e; font: 700 10px "Open Sans", sans-serif; }
.seat-map-group--c1 { color: #4ecdc4; }
.seat-map-group--c2 { color: #eecdfc; }
.seat-map-group--c3 { color: #34d399; }
.seat-map-group--c4 { color: #ffffff; }
.seat, .seat-map-group { transition: opacity 0.12s; }
.seat-map-svg--focus .seat:not(.seat--group-hit),
.seat-map-svg--focus .seat-map-group:not(.seat-map-group--hit) { opacity: 0.35; }

.seat-map-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; list-style: none; margin: 0.75rem 0 0; padding: 0; font-size: 0.85rem; color: #a990c9; }
.seat-map-legend li { display: flex; align-items: center; gap: 0.4rem; }
.seat-map-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: #3d2b5a; border: 1.5px solid #9b6dd7; }
.seat-map-swatch--mine { background: #c9a7f5; border-color: #ffffff; }
.seat-map-swatch--taken { background: rgba(255, 107, 138, 0.14); border-color: rgba(255, 107, 138, 0.45); }
.seat-map-swatch--sold { background: #8a74ab; border-color: #8a74ab; }
.seat-map-swatch--reserved { border-color: #f9d423; }
.seat-map-swatch--held { border-color: #ff8a5c; border-style: dashed; }
.seat-map-swatch--blocked { background: rgba(255, 107, 138, 0.18); border-color: #ff6b8a; }
.seat-map-swatch--zone-1 { border-color: #4ecdc4; border-width: 2px; }
.seat-map-swatch--zone-2 { border-color: #34d399; border-width: 2px; }
.seat-map-swatch--zone-3 { border-color: #ffffff; border-width: 2px; }
.seat-map-swatch--zone-4 { border-color: #eecdfc; border-width: 2px; }
.seat-map-swatch--zone-5 { border-color: #d4af37; border-width: 2px; }
