@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700;800&family=Nunito:wght@600;700;800;900&display=swap');

/* =====================================================================
   Expoverse — Glassmorphism POI modal
   Custom UI layer (NOT part of the minified app bundle or Shapespark
   package). Driven by app/expoverse/poi.js. Safe to delete this file +
   poi.js + their two references in index.php to revert to stock.
   Shared design tokens (fonts, accents) for the whole expoverse layer
   live in :root here.
   ===================================================================== */

:root {
	--expo-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* body / UI */
	--expo-font-display: "Sora", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;       /* headings  */
	--expo-font-menu: "Nunito", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;        /* booth menu */
	--expo-accent-1: #5eead4;   /* teal  */
	--expo-accent-2: #818cf8;   /* indigo */
	--expo-ink: #f4f7ff;
	--expo-ink-dim: rgba(244, 247, 255, .66);
	--expo-glass: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
	--expo-stroke: rgba(255, 255, 255, .22);
	--expo-ease: cubic-bezier(.22, 1, .36, 1);
	--expo-elastic: cubic-bezier(.34, 1.56, .64, 1);   /* overshoot / bounce */
}

/* =====================================================================
   UI reveal gate — custom FABs stay hidden until the scene is actually
   on screen (ui.js adds body.expo-ui-ready), so nothing floats over the
   loading / "Start experience" screen. They then bounce in (staggered).
   ===================================================================== */
@keyframes expo-fab-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes expo-pop-in  { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

body:not(.expo-ui-ready) .expo-nav-fab,
body:not(.expo-ui-ready) .expo-help-fab,
body:not(.expo-ui-ready) .expo-dir-fab {
	opacity: 0 !important;
	transform: scale(.5) !important;
	pointer-events: none !important;
}
body.expo-ui-ready .expo-nav-fab  { animation: expo-fab-in .55s var(--expo-elastic) both; }
body.expo-ui-ready .expo-help-fab { animation: expo-fab-in .55s var(--expo-elastic) .07s both; }
body.expo-ui-ready .expo-dir-fab  { animation: expo-fab-in .55s var(--expo-elastic) .14s both; }

@media (prefers-reduced-motion: reduce) {
	body.expo-ui-ready .expo-nav-fab,
	body.expo-ui-ready .expo-help-fab,
	body.expo-ui-ready .expo-dir-fab { animation-duration: .01s; }
}

/* ---- Backdrop -------------------------------------------------------- */
.expo-poi-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147482000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 3vw, 40px);
	background: radial-gradient(120% 120% at 50% 0%, rgba(20, 24, 45, .35), rgba(6, 8, 16, .62));
	backdrop-filter: blur(9px) saturate(120%);
	-webkit-backdrop-filter: blur(9px) saturate(120%);
	opacity: 0;
	transition: opacity .28s var(--expo-ease);
	font-family: var(--expo-font);
	-webkit-tap-highlight-color: transparent;
}
.expo-poi-backdrop.is-open { opacity: 1; }

/* ---- Card ------------------------------------------------------------ */
.expo-poi-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1080px, 100%);
	max-height: min(880px, 90vh);
	color: var(--expo-ink);
	background: var(--expo-glass);
	border: 1px solid var(--expo-stroke);
	border-radius: 22px;
	box-shadow:
		0 30px 80px rgba(0, 0, 0, .55),
		0 2px 0 rgba(255, 255, 255, .06) inset,
		0 1px 0 rgba(255, 255, 255, .28) inset;
	backdrop-filter: blur(26px) saturate(165%);
	-webkit-backdrop-filter: blur(26px) saturate(165%);
	overflow: hidden;
	transform: translateY(22px) scale(.93);
	opacity: 0;
	transition: transform .44s var(--expo-elastic), opacity .3s var(--expo-ease);
}
.expo-poi-backdrop.is-open .expo-poi-modal { transform: none; opacity: 1; }

/* coloured sheen across the top edge */
.expo-poi-modal::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--expo-accent-1), var(--expo-accent-2));
	opacity: .9;
}

/* compact card for link / text-only content */
.expo-poi-modal[data-type="URL"],
.expo-poi-modal[data-type="CONFIRM"],
.expo-poi-modal[data-type="EMPTY"] { width: min(540px, 100%); }
/* rich-text / HTML content reads better with more width on desktop
   (mobile forces full width below) */
.expo-poi-modal[data-type="HTML"] { width: min(800px, 92vw); }

/* media should stretch tall */
.expo-poi-modal[data-type="VIDEO"],
.expo-poi-modal[data-type="EMBED"],
.expo-poi-modal[data-type="DOCUMENT"],
.expo-poi-modal[data-type="GALLERY"] { width: min(1080px, 100%); height: min(880px, 90vh); }
/* a package is a full interactive/immersive HTML experience — open it as big as
   possible (near-fullscreen), overriding the base card's max-height */
.expo-poi-modal[data-type="PACKAGE"] { width: min(1700px, 96vw); height: 94vh; max-height: 94vh; }

/* ---- Header --------------------------------------------------------- */
.expo-poi-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	flex: 0 0 auto;
}
.expo-poi-title {
	font-family: var(--expo-font-display);
	font-size: clamp(15px, 2vw, 18px);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.25;
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.expo-poi-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.expo-poi-btn {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--expo-ink);
	text-decoration: none;
	background: rgba(255, 255, 255, .1);
	border: 1px solid var(--expo-stroke);
	border-radius: 999px;
	transition: background .18s var(--expo-ease), transform .18s var(--expo-ease), border-color .18s var(--expo-ease);
}
.expo-poi-btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .4); }
.expo-poi-btn:active { transform: scale(.96); }
/* size the inline icon in text buttons (Open / download, Continue, Open in new tab)
   — without this the unsized SVG renders huge */
.expo-poi-btn svg { width: 15px; height: 15px; flex: 0 0 auto; display: block; }
.expo-poi-btn--primary {
	color: #0a1020;
	background: linear-gradient(135deg, var(--expo-accent-1), var(--expo-accent-2));
	border-color: transparent;
}
.expo-poi-btn--primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--expo-accent-1), var(--expo-accent-2)); }

.expo-poi-close {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.expo-poi-close svg { width: 16px; height: 16px; display: block; }

/* ---- Body ----------------------------------------------------------- */
.expo-poi-body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	display: flex;
	flex-direction: column;
}
/* media types: let the frame fill, no scroll padding */
.expo-poi-modal[data-type="VIDEO"] .expo-poi-body,
.expo-poi-modal[data-type="EMBED"] .expo-poi-body,
.expo-poi-modal[data-type="PACKAGE"] .expo-poi-body,
.expo-poi-modal[data-type="DOCUMENT"] .expo-poi-body { overflow: hidden; }

/* iframe-based content fills the body */
.expo-poi-frame {
	border: 0;
	width: 100%;
	height: 100%;
	flex: 1 1 auto;
	background: rgba(0, 0, 0, .25);
	display: block;
}
/* video keeps 16:9 inside the body, centred on a dark mat */
.expo-poi-modal[data-type="VIDEO"] .expo-poi-body {
	align-items: center;
	justify-content: center;
	background: #05070d;
	padding: clamp(8px, 2vw, 20px);
}
.expo-poi-video {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
}
.expo-poi-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* ---- HTML body ------------------------------------------------------ */
.expo-poi-html {
	padding: clamp(18px, 3vw, 28px);
	line-height: 1.6;
	font-size: 15px;
	color: var(--expo-ink);
}
.expo-poi-html :where(h1, h2, h3) { line-height: 1.25; }
.expo-poi-html :where(a) { color: var(--expo-accent-1); }
.expo-poi-html :where(img) { max-width: 100%; height: auto; border-radius: 10px; }

/* ---- URL / link card ------------------------------------------------ */
.expo-poi-url {
	padding: clamp(22px, 4vw, 34px);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.expo-poi-url__icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(94, 234, 212, .25), rgba(129, 140, 248, .25));
	border: 1px solid var(--expo-stroke);
}
.expo-poi-url__icon svg { width: 30px; height: 30px; }
.expo-poi-url__host { font-size: 18px; font-weight: 700; word-break: break-word; }
.expo-poi-url__full { font-size: 13px; color: var(--expo-ink-dim); word-break: break-all; max-width: 100%; }
.expo-poi-url .expo-poi-btn--primary { height: 44px; padding: 0 22px; font-size: 15px; margin-top: 4px; }

/* ---- External-link confirm (interstitial before leaving the site) --- */
.expo-poi-confirm {
	padding: clamp(22px, 4vw, 36px) clamp(20px, 4vw, 34px) clamp(20px, 4vw, 30px);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.expo-poi-confirm__badge {
	width: 96px;
	height: 96px;
	border-radius: 24px;
	display: grid;
	place-items: center;
	color: var(--expo-ink);
	background: linear-gradient(135deg, rgba(94, 234, 212, .22), rgba(129, 140, 248, .22));
	border: 1px solid var(--expo-stroke);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 30px rgba(0, 0, 0, .3);
	margin-bottom: 4px;
}
.expo-poi-confirm__badge svg { width: 40px; height: 40px; opacity: .85; }
/* exhibitor logo sits on a clean white chip so any logo (incl. dark ones) reads */
.expo-poi-confirm__badge.has-logo {
	background: #fff;
	padding: 14px;
}
.expo-poi-confirm__logo { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.expo-poi-confirm__lead {
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--expo-ink-dim);
}
.expo-poi-confirm__name {
	font-family: var(--expo-font-display);
	font-size: clamp(19px, 3vw, 24px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	word-break: break-word;
}
.expo-poi-confirm__msg {
	font-size: 14px;
	line-height: 1.55;
	color: var(--expo-ink-dim);
	max-width: 36ch;
}
.expo-poi-confirm__msg strong { color: var(--expo-ink); font-weight: 700; }
.expo-poi-confirm__go {
	margin-top: 10px;
	height: 48px;
	padding: 0 26px;
	font-size: 15px;
}
.expo-poi-confirm__go svg { width: 18px; height: 18px; }
.expo-poi-confirm__back {
	height: 38px;
	padding: 0 18px;
	background: transparent;
	border-color: transparent;
	color: var(--expo-ink-dim);
}
.expo-poi-confirm__back:hover { background: rgba(255, 255, 255, .1); color: var(--expo-ink); }

/* ---- Gallery -------------------------------------------------------- */
.expo-poi-gallery {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: #05070d;
}
.expo-poi-gallery__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	place-items: center;
	padding: clamp(10px, 2vw, 22px);
}
.expo-poi-gallery__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
}
.expo-poi-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--expo-ink);
	background: rgba(10, 14, 26, .5);
	border: 1px solid var(--expo-stroke);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
	backdrop-filter: blur(10px) saturate(140%);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
}
.expo-poi-gallery__nav svg { width: 22px; height: 22px; display: block; }
.expo-poi-gallery__nav:hover { background: rgba(22, 28, 48, .72); border-color: rgba(255, 255, 255, .42); }
.expo-poi-gallery__nav:active { transform: translateY(-50%) scale(.92); }
.expo-poi-gallery__nav--prev { left: 14px; }
.expo-poi-gallery__nav--next { right: 14px; }
.expo-poi-gallery__count {
	flex: 0 0 auto;
	text-align: center;
	font-size: 13px;
	color: var(--expo-ink-dim);
	padding: 10px;
}

/* ---- Spinner / empty ------------------------------------------------ */
.expo-poi-loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	z-index: 5;
}
.expo-poi-spinner {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .18);
	border-top-color: var(--expo-accent-1);
	animation: expo-spin .8s linear infinite;
}
@keyframes expo-spin { to { transform: rotate(360deg); } }

.expo-poi-empty {
	padding: clamp(26px, 5vw, 40px);
	text-align: center;
	color: var(--expo-ink-dim);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.expo-poi-empty svg { width: 40px; height: 40px; opacity: .6; }

/* ---- Toast (lightweight feedback for POIs with no content) ---------- */
.expo-poi-toast {
	position: fixed;
	left: 50%;
	bottom: 46px;
	transform: translate(-50%, 16px);
	z-index: 2147483000;
	pointer-events: none;
	max-width: 80vw;
	padding: 12px 22px;
	border-radius: 999px;
	font-family: var(--expo-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--expo-ink);
	text-align: center;
	background: var(--expo-glass);
	border: 1px solid var(--expo-stroke);
	box-shadow: 0 14px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	opacity: 0;
	transition: opacity .25s var(--expo-ease), transform .4s var(--expo-elastic);
}
.expo-poi-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- Mobile --------------------------------------------------------- */
@media (max-width: 640px) {
	.expo-poi-backdrop { padding: 0; }
	.expo-poi-modal,
	.expo-poi-modal[data-type] {
		width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}
	.expo-poi-modal::before { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.expo-poi-backdrop,
	.expo-poi-modal { transition: opacity .01s; }
	.expo-poi-modal { transform: none; }
	.expo-poi-spinner { animation-duration: 1.6s; }
}
