/* PPMA Show 2026 stand tours: shared styles. Colours are taken from the show logo. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root {
  --navy: #002240; --navy-2: #0b3157; --blue: #1d71b8; --red: #d50b52; --purple: #951b81;
  --ink: #0b1c33; --muted: #5b6b82; --line: #dbe2ec; --paper: #ffffff; --wash: #f2f5fa;
  --ok: #1a7f4e; --warn: #b45309;
  --shadow: 0 10px 30px rgba(0, 20, 45, .28); --radius: 16px;
  --grad: linear-gradient(90deg, var(--red), var(--purple) 50%, var(--blue));
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--navy); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7fc0ff; outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; background: var(--navy); color: #fff; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); } .btn--red:hover { background: #b90947; }
.btn--blue { background: var(--blue); } .btn--blue:hover { background: #175f9c; }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); } .btn--ghost:hover { background: var(--wash); }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow); } .btn--light:hover { background: #f1f5fb; }
.btn--sm { padding: 7px 13px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.dots { display: inline-flex; gap: 5px; vertical-align: middle; } .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); } .dots i:nth-child(2) { background: var(--blue); } .dots i:nth-child(3) { background: var(--purple); }
.gradbar { height: 5px; background: var(--grad); }

/* ---------- stand tour ---------- */
#pano { position: fixed; inset: 0; background: #0a1626; touch-action: none; }
.placing #pano { cursor: crosshair; }
.topbar { position: fixed; z-index: 30; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 8px 14px; box-shadow: var(--shadow); text-decoration: none; }
.brand img { height: 40px; display: block; }
.spacer { flex: 1; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.iconbtn:hover { background: #eef3fa; }

.summary { position: fixed; z-index: 25; left: 14px; top: 84px; width: min(360px, calc(100vw - 28px)); max-height: calc(100vh - 84px - 150px); display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.summary__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--navy); color: #fff; cursor: pointer; border: 0; width: 100%; text-align: left; }
.summary__head .pill { background: #fff; color: var(--navy); }
.summary__head strong { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.summary__head .icon { transition: transform .2s; }
.summary.is-collapsed .summary__head .icon { transform: rotate(180deg); }
.summary.is-collapsed .summary__body, .summary.is-collapsed .gradbar { display: none; }
.summary__body { padding: 14px 16px 16px; overflow: auto; }
.summary__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.summary__tabs button { border: 0; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; background: var(--wash); color: var(--navy); }
.summary__tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.summary__logo { display: block; max-width: 170px; max-height: 76px; margin: 0 0 12px; object-fit: contain; }
.summary h1 { font-size: 20px; line-height: 1.2; margin: 0 0 8px; color: var(--navy); letter-spacing: -.01em; }
.summary__bio { margin: 0 0 12px; color: #2b3b52; font-size: 14px; white-space: pre-line; }
.summary__bio.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.summary__more { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; margin: -6px 0 12px; }
.summary__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.scenes { position: fixed; z-index: 24; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; padding: 8px; background: rgba(0, 34, 64, .82); border-radius: 18px; backdrop-filter: blur(6px); max-width: calc(100vw - 28px); overflow-x: auto; }
.scenes button { position: relative; border: 3px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; background: #123; width: 118px; height: 74px; flex: none; }
.scenes button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scenes button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 20, 45, .85)); }
.scenes button[aria-current="true"] { border-color: #fff; }
.scenes button:hover { border-color: #9fc9f0; }

/* hotspot markers */
.hs { position: absolute; width: 0; height: 0; }
.hs__btn { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0; border: 0; padding: 0; background: none; color: #fff; }
.hs__dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); transition: transform .15s; position: relative; }
.hs__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); animation: hs-pulse 2.2s ease-out infinite; }
.hs--image .hs__dot { background: var(--purple); } .hs--video .hs__dot { background: var(--blue); } .hs--nav .hs__dot { background: var(--navy); }
.hs__btn:hover .hs__dot { transform: scale(1.1); }
.hs__label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 8px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0, 34, 64, .9); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.hs.is-hidden .hs__dot { background: #7a8698; } .hs.is-draft .hs__dot { background: #fff; color: var(--red); border-color: var(--red); }
.hs.is-draft .hs__dot::after { border-color: var(--red); }
@keyframes hs-pulse { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hs__dot::after { animation: none; opacity: .5; } }

/* hotspot card */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 20, 45, .45); display: grid; place-items: center; padding: 16px; }
.hcard { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow); position: relative; }
.hcard__media img { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #0a1626; }
.hcard__video { position: relative; padding-top: 56.25%; background: #000; } .hcard__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hcard__body { padding: 18px 20px 20px; }
.hcard h2 { margin: 0 44px 8px 0; font-size: 20px; line-height: 1.25; color: var(--navy); }
.hcard p { margin: 0 0 14px; white-space: pre-line; overflow-wrap: anywhere; }
.hcard__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--navy); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.hcard__admin { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; background: var(--wash); border-top: 1px solid var(--line); }

/* edit mode */
.editbar { position: fixed; z-index: 28; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); max-width: calc(100vw - 200px); }
.editbar b { font-size: 13px; color: var(--navy); white-space: nowrap; }
.hint { position: fixed; z-index: 29; left: 50%; top: 76px; transform: translateX(-50%); background: var(--red); color: #fff; font-weight: 700; padding: 9px 18px; border-radius: 999px; box-shadow: var(--shadow); text-align: center; }
.drawer { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; box-shadow: -12px 0 30px rgba(0, 20, 45, .3); display: flex; flex-direction: column; }
.drawer__head { background: var(--navy); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 10px; } .drawer__head h2 { margin: 0; font-size: 18px; flex: 1; }
.drawer__body { padding: 18px 20px; overflow: auto; flex: 1; } .drawer__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.field { margin-bottom: 16px; } .field label, .field .label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--navy); }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.field input[type=text], .field input[type=url], .field textarea, .field select { width: 100%; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--wash); padding: 5px; border-radius: 12px; }
.seg button { border: 0; border-radius: 9px; padding: 9px 6px; background: transparent; font-weight: 700; font-size: 13px; color: var(--navy); }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 5px rgba(0, 20, 45, .2); color: var(--red); }
.preview { margin-top: 10px; border-radius: 10px; overflow: hidden; background: var(--wash); } .preview img { display: block; width: 100%; max-height: 220px; object-fit: contain; }
.error { color: var(--red); font-weight: 700; font-size: 13.5px; margin: 0 0 12px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 112px; transform: translateX(-50%); background: var(--navy); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: 999px; box-shadow: var(--shadow); max-width: calc(100vw - 28px); text-align: center; }
.toast--bad { background: var(--red); }
.loading { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; color: #fff; font-weight: 700; text-align: center; padding: 20px; }

@media (max-width: 720px) {
  .brand img { height: 30px; } .brand { padding: 7px 10px; }
  .summary { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62vh; }
  .summary.is-collapsed { bottom: 8px; } .summary__head .icon { transform: rotate(180deg); } .summary.is-collapsed .summary__head .icon { transform: none; }
  .has-scenes .summary { bottom: 112px; } .scenes { bottom: 8px; }
  .scenes button { width: 92px; height: 58px; }
  .editbar { top: auto; bottom: 8px; max-width: calc(100vw - 16px); } .is-editing .summary { bottom: 64px; } .is-editing.has-scenes .summary { bottom: 168px; } .is-editing .scenes { bottom: 62px; }
  .hint { top: 70px; width: calc(100vw - 28px); border-radius: 14px; }
  .toast { bottom: 50%; }
}
