.floor-map-scroll{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:12px}
.floor-map-scroll::-webkit-scrollbar,#booking-dialog::-webkit-scrollbar{display:none}
#booking-dialog{scrollbar-width:none}
.floor-map{position:relative;aspect-ratio:1602/982;min-width:900px;background:#e9e1d6 url("cafe-floor-realistic.png") center/100% 100% no-repeat;border-radius:12px}
.floor-map .map-place{position:absolute;left:var(--x);top:var(--y);width:var(--width);height:var(--height);translate:-50% -50%}
.map-furniture{display:block;width:100%;height:100%;border:0;background:transparent;padding:0;border-radius:40%;color:#fff;cursor:pointer}
.map-furniture[aria-pressed="true"]{outline:1px solid #e4c58bbb;outline-offset:-1px;background:#e3b1580d;box-shadow:none}
.map-furniture:focus-visible{outline:3px solid #fff;outline-offset:3px}
.map-place[data-state="busy"] .map-furniture{background:#b9b9b97a;box-shadow:inset 0 0 20px #d1d1d177}
.map-place[data-shape="booth"] .map-furniture,.map-place[data-shape="bar"] .map-furniture{border-radius:15%}
.map-state{position:absolute;left:var(--x);top:var(--y);translate:-50% -50%;width:var(--badge-width);min-height:1.9em;display:grid;place-items:center;text-align:center;white-space:nowrap;border:1px solid #c9b393;border-radius:99px;padding:.12em .3em;font-size:clamp(8px,.74vw,12px);line-height:1.25;font-weight:650;background:#fff3dc;color:#30251c;box-shadow:0 1px 4px #20160e2e;pointer-events:none}
.map-state[data-state="free"],.map-state[data-state="unknown"]{background:#2e2116;color:#ffe4b3;border-color:#c7964c}
.map-state[data-state="busy"]{background:#6e6b67;color:#fff;border-color:#a6a29a}
.map-state[data-state="held"]{background:#6c5022;color:#fff1c6}
.map-state[data-state="reserved"]{background:#244c39;color:#e6ffef}
.map-state[data-state="occupied"]{background:#763c32;color:#fff}
.map-state[data-selected="true"]{background:#e7ba6d;color:#2c1c0c}
.floor-map .table-photo-button{position:absolute;left:0;top:40%;width:28px;height:28px;min-height:0;padding:0;background:#fff0d5;color:#3c2d1f;border:1px solid #9b7851;border-radius:50%;font-size:16px}
.map-mobile-hint{display:none}
.floor-title,.map-legend{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:780px){.map-mobile-hint{display:block;font-size:.78rem;color:var(--dim);margin:.4rem 0}.map-state{font-size:9px}}
@media(min-width:781px){#booking-dialog{width:95vw;max-width:95vw}}
.floor-map .table-photo-button{left:-5px;top:44%;width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#fff9ec,#e6d2ae);border:1px solid #b49a73;box-shadow:0 2px 6px #30231640;color:#57432e;transition:background .15s,box-shadow .15s}
.floor-map .table-photo-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.floor-map .table-photo-button:hover,.floor-map .table-photo-button:focus-visible{background:#fffaf0;box-shadow:0 0 0 3px #d9b77b88,0 3px 8px #30231640}

/* Czytelne ceny i wyróżniona galeria, również na telefonach. */
.map-state{min-height:27px;padding:4px 9px;font-size:clamp(11px,1vw,15px);font-weight:700;line-height:1.2;border-width:1px;box-shadow:0 2px 5px #20160e24}
.map-state[data-state="free"],.map-state[data-state="unknown"]{background:#352619;color:#ffe2a5;border-color:#ba955d}
.floor-map .table-photo-button{background:linear-gradient(140deg,#f4cc76,#d38d42);color:#322214;border-color:#fff0bf;box-shadow:0 2px 7px #30231666}
.floor-map .table-photo-button:hover,.floor-map .table-photo-button:focus-visible{background:linear-gradient(140deg,#ffe8a8,#e5a452);box-shadow:0 0 0 3px #fff0bd66,0 3px 8px #30231655}
@media(max-width:780px){.map-state{font-size:12px;min-height:28px;padding:4px 6px}.floor-map .table-photo-button{width:36px;height:36px}}
.map-state{min-width:100px}
/* Jednolite etykiety mieszczące pełną treść, niezależnie od rozmiaru ekranu. */
.floor-map{container-type:inline-size}
.floor-map .map-state{width:var(--badge-width);min-width:0;min-height:27px;padding:4px 5px;font-size:clamp(10px,.94cqw,14px);white-space:normal;overflow-wrap:normal;line-height:1.15}
.floor-map .map-state[data-selected="true"]{background:#e7ba6d;color:#492b16;border-color:#f4d391}
.floor-map .map-furniture[aria-pressed="true"]{outline:0;background:transparent;box-shadow:none}
.map-furniture[aria-pressed="true"]::after{content:"";position:absolute;left:25%;top:25%;width:50%;height:50%;border-radius:50%;background:#48251070;mix-blend-mode:multiply;pointer-events:none}
.map-place[data-shape="booth"] .map-furniture[aria-pressed="true"]::after{left:19%;top:30%;width:62%;height:40%;border-radius:9%}
.map-place[data-shape="bar"] .map-furniture[aria-pressed="true"]::after{left:7%;top:30%;width:86%;height:44%;border-radius:3%}
.floor-map .table-photo-button{width:24px;height:24px;border-radius:6px}
.floor-map .table-photo-button svg{width:15px;height:15px}
.floor-map::before{content:"";position:absolute;inset:0;background:inherit;filter:blur(4px);clip-path:inset(7.2% 3% 88.8% 3%);pointer-events:none}
@media(max-width:780px){.floor-map .table-photo-button{width:25px;height:25px}.floor-map .map-state{font-size:10px;min-height:27px;padding:4px 5px}}
/* Kolor blatu wynika z aktualnej konfiguracji, a nie z tła obrazka. */
.map-tabletop-tint{position:absolute;left:25%;top:25%;width:50%;height:50%;border-radius:50%;pointer-events:none}
.map-place[data-shape="booth"] .map-tabletop-tint{left:19%;top:30%;width:62%;height:40%;border-radius:9%}
.map-place[data-shape="bar"] .map-tabletop-tint{left:7%;top:30%;width:86%;height:44%;border-radius:3%}
.map-place[data-online="true"][data-native-wood="light"] .map-tabletop-tint{background:#76371025;backdrop-filter:sepia(1) saturate(1.9) brightness(.72);-webkit-backdrop-filter:sepia(1) saturate(1.9) brightness(.72)}
.map-place[data-online="false"][data-native-wood="brown"] .map-tabletop-tint{background:#d6cabe22;backdrop-filter:saturate(.25) brightness(1.55);-webkit-backdrop-filter:saturate(.25) brightness(1.55)}
.floor-map .map-tabletop-tint,.floor-map .map-furniture[aria-pressed="true"]::after{left:50%;top:var(--top-y,50%);width:var(--top-width,50%);height:var(--top-height,50%);transform:translate(-50%,-50%)}
.floor-map .map-place .map-tabletop-tint,.floor-map .map-place .map-furniture[aria-pressed="true"]::after{left:50%;top:var(--top-y,50%);width:var(--top-width,50%);height:var(--top-height,50%);transform:translate(-50%,-50%)}
.floor-map .map-tabletop-tint{display:none;overflow:hidden;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.floor-map .map-tabletop-tint svg{display:block;width:100%;height:100%;pointer-events:none}
.floor-map .map-place[data-online="true"][data-native-wood="light"] .map-tabletop-tint,.floor-map .map-place[data-online="false"][data-native-wood="brown"] .map-tabletop-tint{display:block}
/* Dwie sale i precyzyjne maski zaakceptowanych blatów. */
.floor-map[data-room="39"]{min-width:1000px;background-color:#eee3db}
.floor-map[data-room="39"]::before{display:none}
.floor-map .map-place[data-tint="grey"] .map-tabletop-tint,.floor-map .map-place[data-tint="brown"] .map-tabletop-tint{display:block}
.floor-map .map-place[data-tint="none"] .map-tabletop-tint{display:none}
.floor-map .map-place[data-shape="bar"] .map-tabletop-tint,.floor-map .map-place[data-shape="square"] .map-tabletop-tint{border-radius:2%}
.floor-map .map-place[data-shape="square"] .map-furniture[aria-pressed="true"]::after{border-radius:2%}
.floor-map .map-place[data-shape="booth"] .map-tabletop-tint{border-radius:8%}
.floor-map .map-furniture[aria-pressed="true"]::after{border:1px solid #f6cf88}
.room-switch-label{display:block;max-width:350px;margin:12px 0}.room-switch-label select{margin-top:6px}
.event-booking-buttons{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:10px}.event-booking-buttons:empty{display:none}.event-booking-button{max-width:100%;white-space:normal}
.event-room-group{display:grid;gap:8px;width:100%;min-width:0;margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:8px}.event-table-line{display:grid;grid-template-columns:minmax(160px,1fr) minmax(110px,.45fr);gap:12px;align-items:center}.event-table-line label{margin:0}.event-table-line .check{font-size:.85rem}.event-room-group[aria-disabled="true"]{opacity:.55}
@media(max-width:550px){.event-table-line{grid-template-columns:minmax(135px,1fr) minmax(95px,.65fr);gap:7px}}

.floor-map[data-room="39"] .map-state{min-height:18px;padding:2px 4px;font-size:clamp(9px,.8cqw,11px)}
/* Rozdzielone działy kawiarni i wydarzeń. */
.console-group-title{padding:16px 10px 3px;color:var(--gold,#e8bc79);font-size:.7rem;text-transform:uppercase;letter-spacing:.14em;margin:0}
.department-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.department-tabs [aria-pressed="true"]{background:#e8bc79;color:#24190f}
.dashboard-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;margin:18px 0}.dashboard-card{background:#ffffff06;border:1px solid var(--line,#574332);padding:16px;border-radius:10px;display:grid;gap:12px}.dashboard-card span{font-size:.85rem;color:#cfc0af}.dashboard-card strong{font-size:1.65rem;color:#edc98b}
.dashboard-chart{display:flex;align-items:center;gap:28px;padding:20px 0}.dashboard-ring{--progress:0%;width:160px;height:160px;flex-shrink:0;border-radius:50%;background:conic-gradient(#dfaf65 var(--progress),#514236 0);position:relative;display:grid;place-items:center}.dashboard-ring:before{content:"";position:absolute;inset:15px;border-radius:50%;background:#241b15}.dashboard-ring strong{position:relative;font-size:1.65rem;color:#edc98b}
.dashboard-bars{display:grid;gap:8px}.dashboard-bars>div{display:grid;grid-template-columns:100px 1fr 60px;align-items:center;gap:12px}.dashboard-bars progress{width:100%;height:12px;accent-color:#dfaf65}.dashboard-table{overflow:auto}.dashboard-table table{min-width:650px;width:100%;border-collapse:collapse}.dashboard-table th,.dashboard-table td{padding:10px;text-align:left;border-bottom:1px solid var(--line,#574332)}
#reservation-workspace .reservation-kind{display:none}#reservation-workspace[data-mode="cafe"] .room-switch-label{display:none}
#reservation-workspace[data-mode="event"]>.calendar-controls,#reservation-workspace[data-mode="event"]>#staff-week,#reservation-workspace[data-mode="event"]>[aria-label="Zakres rezerwacji"] [data-staff-days]{display:none}
#reservation-workspace[data-mode="event"][data-event-view="reservations"]>.floor-map-scroll,#reservation-workspace[data-mode="event"][data-event-view="reservations"]>.map-mobile-hint{display:none}
#reservation-workspace[data-mode="event"][data-event-view="map"]>.reservation-filters,#reservation-workspace[data-mode="event"][data-event-view="map"]>#reservation-count{display:none}
#event-workspace-host{margin-top:20px}#event-workspace-host>#reservation-workspace{border-top:1px solid var(--line,#574332);padding-top:16px}
@media(max-width:550px){.dashboard-chart{gap:16px;align-items:flex-start}.dashboard-ring{width:115px;height:115px}.dashboard-ring strong{font-size:1.2rem}.dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-card{padding:12px}.dashboard-card strong{font-size:1.25rem}}

/* Ostre numery i jednolita paleta, bez filtrów zmieniających kolor cyfr. */
.floor-map .map-place[data-tint="wood"] .map-tabletop-tint{display:block!important;border-radius:0!important;overflow:visible;filter:drop-shadow(0 1px 1px #24190e55)}
.floor-map .map-furniture{position:relative;background:transparent!important;box-shadow:none!important;padding:0;border:0;min-height:0}
.floor-map .map-furniture[aria-pressed="true"]::after{display:none!important}
.floor-map .map-tabletop-tint svg text{text-rendering:geometricPrecision;paint-order:stroke fill;stroke:#39271755;stroke-width:.3px}
.map-state[data-state="reserved"],.map-state[data-state="busy"]{background:#817467;color:#fff4e1;border-color:#b49d82}
.map-legend-live{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;padding:12px;font-size:12px;color:var(--dim)}.map-legend-live span:before{content:"";display:inline-block;width:13px;height:13px;border-radius:50%;margin-right:7px;border:1px solid #dbb873;vertical-align:middle;background:linear-gradient(135deg,#3d2a1c,#63452c,#2e2017)}.map-legend-live span:nth-child(2):before{background:linear-gradient(135deg,#aa9784,#c4b39f,#8c7968)}.map-legend-live span:nth-child(3):before{background:linear-gradient(135deg,#80766b,#a39787,#6d6258)}
.floor-map[data-room="38"]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:12%;background:#eadbd0;border-radius:0 0 12px 12px;pointer-events:none}.floor-map .map-place{z-index:1}.floor-map .map-state{z-index:2}
#reservation-workspace[data-mode="event"] .map-legend-live span:nth-child(2){font-size:0}#reservation-workspace[data-mode="event"] .map-legend-live span:nth-child(2):after{content:"Zarezerwowany — konfiguracja";font-size:12px}

.map-legend-live span:nth-child(4):before{background:linear-gradient(135deg,#2a1d14,#46301e,#20160f)}
.map-legend-live[data-mode="event"] span:nth-child(2):before{background:linear-gradient(135deg,#80766b,#a39787,#6d6258)}

/* Public event floor selector: visible choices on desktop and phone. */
.booking-room-switch{margin:16px 0 20px;max-width:520px}
.booking-room-switch[hidden]{display:none}
.booking-room-caption{margin:0 0 8px;font-weight:600}
.booking-room-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.booking-room-buttons .booking-room-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:64px;margin:0;padding:10px 12px;border:1px solid #80694c;border-radius:7px;background:#2b211b;color:#eadbc5;cursor:pointer;font:inherit;transition:background .15s,color .15s,border-color .15s}
.booking-room-buttons .booking-room-button strong{font-size:18px;line-height:1.25}
.booking-room-buttons .booking-room-button span{font-size:13px;line-height:1.3}
.booking-room-buttons .booking-room-button[aria-pressed="true"]{background:#ebc17c;border-color:#f5d99e;color:#24180e;box-shadow:inset 0 0 0 1px #f5d99e}
.booking-room-buttons .booking-room-button:hover:not(:disabled){border-color:#f5d99e}
.booking-room-buttons .booking-room-button:focus-visible{outline:2px solid #f5d99e;outline-offset:3px}
.booking-room-buttons .booking-room-button:disabled{opacity:.65;cursor:wait}
.booking-room-buttons .booking-room-button[hidden]{display:none}
@media(max-width:480px){.booking-room-buttons{gap:8px}.booking-room-buttons .booking-room-button{min-height:60px;padding:10px 6px}.booking-room-buttons .booking-room-button strong{font-size:17px}}

.booking-room-buttons:has(.ticket-open-button:not([hidden])){grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}
.booking-room-buttons .ticket-open-button{border-color:#d9ad62;background:#654622;color:#fff0ca}
.ticket-dialog{width:min(95vw,850px);max-height:92dvh;overflow:auto;padding:22px;background:#211713;color:#f6ebdb;border:1px solid #8c7250;border-radius:12px}
.ticket-dialog::backdrop{background:#000b}
@media(max-width:480px){.ticket-dialog{padding:14px}.booking-room-buttons:has(.ticket-open-button:not([hidden])) .booking-room-button strong{font-size:15px}.booking-room-buttons .ticket-open-button span{font-size:11px}}
