/* The floor plan uses the source drawing's coordinates and theme-aware vectors. */
.exhibition {
  --ex-bg: #f1f7f8; --ex-card: #ffffff; --ex-chip: #ffffff; --ex-line: #d6e6e8; --ex-track: #dcebed;
  --plan-bg: #f4f9fa; --plan-floor: #ffffff; --plan-room: #e3eef0;
  --plan-wall: #8aa7b0; --plan-wall-strong: #4d7280; --plan-ink: #0b1f27;
  --plan-accent: #0e7f7b; --booked-red: #f43f5e; --booked-ink: #e11d48; --live-green: #059669;
  --selected-ring: #0b1f27; --tier-tint: 16%; --map-scale: 1;
  margin: 0 0 32px; padding: 28px;
  border: 1px solid var(--ex-line); border-radius: 24px;
  background: var(--ex-bg); scroll-margin-top: 100px;
}
:root[data-theme="dark"] .exhibition {
  --ex-bg: #091a20; --ex-card: #0e242b; --ex-chip: #0a1b21; --ex-line: #1d414c; --ex-track: #1a3a44;
  --plan-bg: #10292f; --plan-floor: #133039; --plan-room: #1b3d47;
  --plan-wall: #5f8c99; --plan-wall-strong: #8fb8c3; --plan-ink: #0b1f27;
  --plan-accent: #5eead4; --booked-red: #f43f5e; --booked-ink: #fb7185; --live-green: #34d399;
  --selected-ring: #ffffff; --tier-tint: 9%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .exhibition {
    --ex-bg: #091a20; --ex-card: #0e242b; --ex-chip: #0a1b21; --ex-line: #1d414c; --ex-track: #1a3a44;
    --plan-bg: #10292f; --plan-floor: #133039; --plan-room: #1b3d47;
    --plan-wall: #5f8c99; --plan-wall-strong: #8fb8c3; --plan-ink: #0b1f27;
    --plan-accent: #5eead4; --booked-red: #f43f5e; --booked-ink: #fb7185; --live-green: #34d399;
    --selected-ring: #ffffff; --tier-tint: 9%;
  }
}
.tier-platinum { --tier-color: #5eead4; }.tier-gold { --tier-color: #fbbf24; }.tier-silver { --tier-color: #a5b4fc; }.tier-bronze { --tier-color: #fb923c; }

/* Header */
.exhibition-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.exhibition-head > div { max-width: 720px; }
.exhibition-kicker { gap: 8px; margin-bottom: 4px; color: var(--plan-accent); }
.exhibition-kicker svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.exhibition-head h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 4px 0 10px; }
.exhibition-head p:not(.section-kicker) { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 65ch; }
.exhibition-live { display: inline-flex; align-items: center; gap: 9px; flex: none; max-width: 300px; margin-top: 4px; padding: 8px 16px; border: 1px solid var(--ex-line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; background: var(--ex-card); }
.exhibition-live::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; }
.exhibition-live.is-live { color: var(--live-green); border-color: color-mix(in srgb, var(--live-green) 35%, var(--ex-line)); background: color-mix(in srgb, var(--live-green) 7%, var(--ex-card)); }
.exhibition-live.is-live::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--live-green) 18%, transparent); animation: exhibitionPulse 2s ease-in-out infinite; }
.exhibition-live.is-unavailable { color: var(--booked-ink); }
@keyframes exhibitionPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--live-green) 4%, transparent); } }

/* Counts */
.exhibition-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 18px; }
.exhibition-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 10px; padding: 18px 20px; border: 1px solid var(--ex-line); border-radius: 16px; background: var(--ex-card); }
.exhibition-stat > span { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.exhibition-stat > span svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.exhibition-stat strong { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-available > span svg, .stat-available strong { color: var(--live-green); }
.stat-booked > span svg, .stat-booked strong { color: var(--booked-ink); }
.exhibition-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 6px; background: var(--ex-track); overflow: hidden; }
.exhibition-bar b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--live-green); transition: width .5s ease; }
.stat-booked .exhibition-bar b { background: var(--booked-red); }

/* Legend */
.exhibition-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 18px; font-size: 13px; font-weight: 700; }
.exhibition-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.exhibition-legend > span:last-child { margin-inline-start: auto; }
.exhibition-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--tier-color); }
.exhibition-legend .tier-booked { background: var(--booked-red); }

/* The two cards */
.exhibition-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; align-items: start; direction: ltr; }
.exhibition-map-panel, .exhibition-table-panel { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ex-line); border-radius: 18px; overflow: hidden; background: var(--ex-card); direction: ltr; }
html[dir="rtl"] :is(.exhibition-map-panel, .exhibition-table-panel) { direction: rtl; }
.exhibition-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 14px; }
.exhibition-panel-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.exhibition-panel-head h3 { font-size: 17px; font-weight: 800; line-height: 1.35; letter-spacing: -.015em; margin: 0 0 3px; }
.exhibition-hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.exhibition-view-switch { display: none; }
.exhibition-view-switch button { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 9px 14px; font: 700 13px var(--font); cursor: pointer; }
.exhibition-view-switch button[aria-pressed="true"] { background: var(--plan-accent); color: var(--ex-chip); }
.exhibition-view-switch button:focus-visible { outline: 2px solid var(--plan-accent); outline-offset: 2px; }
.exhibition-eyebrow { display: none; }
.exhibition-zoom { display: flex; flex: none; direction: ltr; border: 1px solid var(--ex-line); border-radius: 12px; overflow: hidden; background: var(--ex-card); }
.exhibition-zoom button { display: grid; place-items: center; min-width: 38px; height: 36px; padding: 0 8px; border: 0; background: transparent; color: var(--text); font: 700 12px var(--font); cursor: pointer; }
.exhibition-zoom button:hover:enabled { background: color-mix(in srgb, var(--plan-accent) 10%, transparent); }.exhibition-zoom button:disabled { opacity: .35; cursor: default; }
.exhibition-zoom button:focus-visible { outline: 2px solid var(--plan-accent); outline-offset: -3px; }
.exhibition-zoom svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.exhibition-map-scroll { flex: 1; min-height: 0; overflow: auto; max-height: 480px; background: var(--plan-bg); direction: ltr; border-block: 1px solid var(--ex-line); scrollbar-color: var(--plan-wall) var(--plan-bg); scrollbar-width: thin; overscroll-behavior: contain; }
.exhibition-map-scroll:focus-visible, .exhibition-table-scroll:focus-visible { outline: 2px solid var(--plan-accent); outline-offset: -2px; }

/* The drawing (the homepage Program map shares these plan-* classes) */
.booth-map-svg { display: block; width: calc(100% * var(--map-scale)); height: auto; }
.plan-background { fill: var(--plan-bg); }.plan-dot { fill: var(--plan-wall); opacity: .12; }
.plan-floor { fill: var(--plan-floor); stroke: var(--plan-wall-strong); stroke-width: 2.5; stroke-linejoin: round; }
.plan-room { fill: var(--plan-room); stroke: var(--plan-wall); stroke-width: 1.8; stroke-linejoin: round; }
.plan-wall { fill: none; stroke: var(--plan-wall); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan-door { fill: none; stroke: var(--plan-wall); stroke-width: 1.1; opacity: .7; }
.plan-route { fill: none; stroke: var(--plan-wall); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .3; }
.plan-label { font: 600 14px var(--font); fill: var(--plan-wall-strong); text-anchor: middle; }
.plan-brand { font: 700 32px var(--font); fill: var(--plan-wall-strong); text-anchor: middle; letter-spacing: -1px; opacity: .5; }
.plan-gate-label { font: 700 16px var(--font); fill: var(--plan-accent); text-anchor: middle; }
.plan-gate-arrow { fill: none; stroke: var(--plan-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.exhibition .plan-gate-pill-in { fill: #5eead4; }.exhibition .plan-gate-pill-out { fill: #fb7185; }
.exhibition .plan-gate-label { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; fill: #0b1f27; dominant-baseline: central; }
html[dir="rtl"] .exhibition .plan-gate-label { letter-spacing: 0; }
.exhibition .plan-gate-in { stroke: #14b8a6; }.exhibition .plan-gate-out { stroke: #fb7185; }
.map-booth { cursor: pointer; outline: none; }
.map-booth polygon { fill: var(--booth-color); stroke: var(--plan-floor); stroke-width: 2.4; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.map-booth text { font: 800 18px var(--font); fill: var(--plan-ink); pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.map-booth .booth-outline { fill: none; stroke: transparent; stroke-width: 3.5; stroke-linejoin: round; pointer-events: none; }
.map-booth.is-booked polygon { fill: var(--booked-red); }.map-booth.is-booked text { fill: #fff; }
.map-booth:hover polygon { stroke: var(--plan-accent); stroke-width: 3; }
.exhibition .map-booth:hover polygon { stroke: var(--plan-floor); stroke-width: 2.4; fill: color-mix(in srgb, var(--booth-color) 78%, #fff); }
.exhibition .map-booth.is-booked:hover polygon { fill: color-mix(in srgb, var(--booked-red) 85%, #fff); }
.map-booth:is(:focus-visible, .is-selected) .booth-outline { stroke: var(--selected-ring); }

/* Selected booth */
.exhibition-selected { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; font-size: 13px; line-height: 1.5; background: var(--ex-card); }
.exhibition-selected[hidden] { display: none; }
.booth-detail-copy { flex: 1; min-width: 0; }.booth-detail-copy strong { display: block; font-size: 15px; font-weight: 800; }.booth-detail-copy small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.booth-detail-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--booth-color); color: #0b1f27; font-size: 17px; font-weight: 800; }
.booth-detail-number.is-booked { color: #fff; background: var(--booked-red); }
.booth-detail-status { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 1.5px solid var(--ex-line); padding: 6px 13px; border-radius: 999px; color: var(--muted); background: var(--ex-card); font-size: 12px; font-weight: 700; }
.booth-detail-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.booth-detail-status.is-available { color: var(--live-green); border-color: var(--live-green); }
.booth-detail-status.is-booked { color: var(--booked-ink); border-color: var(--booked-red); background: color-mix(in srgb, var(--booked-red) 8%, var(--ex-card)); }

/* Numbers & sizes: one tinted group per tier */
.exhibition-table-scroll { overflow: auto; border-top: 1px solid var(--ex-line); scrollbar-width: thin; scrollbar-color: var(--plan-wall) var(--ex-card); overscroll-behavior: contain; }
.booth-group { padding: 14px 16px 16px; background: color-mix(in srgb, var(--tier-color) var(--tier-tint), var(--ex-card)); }
.booth-group + .booth-group { border-top: 1px solid var(--ex-line); }
.booth-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.booth-group-head i { width: 12px; height: 12px; flex: none; border-radius: 3px; background: var(--tier-color); }
.booth-group-head strong { font-size: 15px; font-weight: 800; }
.booth-group-head small { color: var(--muted); font-size: 12px; }
.booth-group-state { margin-inline-start: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.booth-group-state.is-booked { color: var(--booked-ink); text-transform: lowercase; }
.booth-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 0; }
.booth-size { flex: none; padding-top: 5px; color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.booth-numbers { display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; }
.booth-number { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border: 1px solid var(--ex-line); border-radius: 8px; background: var(--ex-chip); color: var(--text); font: 800 12px var(--font); cursor: pointer; line-height: 1; transition: background .18s, border-color .18s, transform .18s; font-variant-numeric: tabular-nums; }
.booth-number:hover { border-color: var(--tier-color); transform: translateY(-1px); }
.booth-number:is(:focus-visible, .is-selected) { outline: 2px solid var(--selected-ring); outline-offset: 2px; }
.booth-number.is-booked { background: var(--booked-red); border-color: var(--booked-red); color: #fff; }
.booth-number.is-booked:hover { background: color-mix(in srgb, var(--booked-red) 85%, #000); }
.exhibition-table-footer { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; border-top: 1px solid var(--ex-line); background: var(--ex-card); }
.exhibition-footnote { flex: 1; font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0; }
.exhibition-privacy { display: flex; align-items: flex-start; gap: 8px; }.exhibition-privacy svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.exhibition .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 900px) {
  .exhibition { padding: 18px; }.exhibition-head { gap: 14px; }
  .exhibition-overview { margin: 16px 0 14px; gap: 10px; }.exhibition-stat { padding: 14px; }.exhibition-stat strong { font-size: 26px; }
  .exhibition-layout { grid-template-columns: minmax(0, 1fr); }
  .exhibition-view-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--ex-line); border-radius: 12px; background: var(--ex-card); }
  .exhibition[data-view="map"] .exhibition-table-panel, .exhibition[data-view="table"] .exhibition-map-panel { display: none; }
  .exhibition-map-scroll { flex: none; height: auto; aspect-ratio: 1020 / 590; max-height: none; box-sizing: content-box; }
  .booth-number { min-width: 36px; height: 34px; font-size: 13px; }
}
@media (max-width: 620px) {
  .exhibition { padding: 16px 12px 12px; border-radius: 18px; margin-bottom: 26px; }
  .exhibition-head { flex-direction: column; gap: 10px; padding-inline: 3px; }.exhibition-head h2 { font-size: 25px; }.exhibition-head p:not(.section-kicker) { font-size: 13px; }.exhibition-live { max-width: none; margin: 0; }
  .exhibition-overview { gap: 8px; }.exhibition-stat { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 10px; }
  .exhibition-stat > span { font-size: 11px; gap: 5px; }.exhibition-stat > span svg { width: 14px; height: 14px; }.exhibition-stat strong { font-size: 24px; }
  .exhibition-legend { gap: 8px 14px; font-size: 12px; padding-inline: 3px; margin-bottom: 14px; }.exhibition-legend i { width: 12px; height: 12px; }.exhibition-legend > span:last-child { margin-inline-start: 0; }
  .exhibition-panel-head { gap: 10px; padding: 12px; }.exhibition-panel-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.exhibition-panel-head h3 { font-size: 15px; }
  .exhibition-selected { padding: 12px; gap: 10px; flex-wrap: wrap; }.booth-detail-status { margin-inline-start: auto; }
  .exhibition-table-scroll { max-height: none; }.booth-group { padding: 12px; }.exhibition-table-footer { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .map-booth polygon, .booth-number, .exhibition-bar b { transition: none; } .exhibition-live.is-live::before { animation: none; } }

/* Only sponsorship requests use the floor plan. */
.exhibition[hidden] { display: none; }
