/* =====================================================================
   Expoverse — Glassmorphism exhibitor directory
   ---------------------------------------------------------------------
   A booth navigator: 2-column grid of the current hall's booths (logo +
   company name, ordered Booth01 top-left onward). Clicking a tile bounces
   the modal out and flies the camera to that booth's view
   (viewer.switchToView('<BoothCallsign>_CAMERA00')).
   Top-level overlay (index.php), not part of the app bundle. Reuses the
   accent vars + spinner from app/expoverse/poi.css.
   ===================================================================== */

/* ---- floating trigger button --------------------------------------- */
.expo-dir-fab {
	position: fixed;
	left: 0; right: 0;
	margin: 0 auto;
	width: max-content;
	max-width: calc(100vw - 24px);
	bottom: 22px;
	z-index: 2147481500;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 44px;
	padding: 0 20px;
	font-family: var(--expo-font);
	font-size: 14px;
	font-weight: 600;
	color: #f4f7ff;
	cursor: pointer;
	background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 999px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.expo-dir-fab:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .42); transform: translateY(-2px); }
.expo-dir-fab:active { transform: scale(.97); }
.expo-dir-fab svg { width: 18px; height: 18px; }

/* ---- backdrop + modal ---------------------------------------------- */
.expo-dir-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));
	-webkit-backdrop-filter: blur(9px) saturate(120%);
	backdrop-filter: blur(9px) saturate(120%);
	opacity: 0;
	transition: opacity .28s cubic-bezier(.22, 1, .36, 1);
	font-family: var(--expo-font);
}
.expo-dir-backdrop.is-open { opacity: 1; }

.expo-dir-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(720px, 100%);
	max-height: min(880px, 90vh);
	color: #f4f7ff;
	background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(26px) saturate(165%);
	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-dir-backdrop.is-open .expo-dir-modal { transform: none; opacity: 1; }
.expo-dir-modal::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--expo-accent-1, #5eead4), var(--expo-accent-2, #818cf8));
	z-index: 2;
}
/* bounce-out when a tile is chosen */
.expo-dir-backdrop.is-leaving { opacity: 0; }
.expo-dir-backdrop.is-leaving .expo-dir-modal { transform: scale(1.06); opacity: 0; transition-duration: .3s; }

/* ---- header --------------------------------------------------------- */
.expo-dir-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-dir-title { margin: 0; font-family: var(--expo-font-display); font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; letter-spacing: -.01em; flex: 1 1 auto; }
.expo-dir-title small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(244, 247, 255, .6); margin-bottom: 2px; }
.expo-dir-close {
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	line-height: 0; color: #f4f7ff; cursor: pointer;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	transition: background .16s ease;
}
.expo-dir-close svg { width: 16px; height: 16px; display: block; }
.expo-dir-close:hover { background: rgba(255, 255, 255, .2); }

/* ---- grid (2 columns, Booth01 top-left onward) --------------------- */
.expo-dir-grid {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 18px;
	scrollbar-width: thin;
}
.expo-dir-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 12px 12px 16px;
	text-align: left;
	cursor: pointer;
	color: #f4f7ff;
	/* subtle tint of the company colour (set per-tile via --c) */
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--c, #5eead4) 16%, rgba(255, 255, 255, .07)),
		color-mix(in srgb, var(--c, #5eead4) 7%, rgba(255, 255, 255, .03)));
	border: 1px solid color-mix(in srgb, var(--c, #ffffff) 26%, rgba(255, 255, 255, .14));
	border-radius: 16px;
	overflow: hidden;
	transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
/* brand accent bar down the left edge */
.expo-dir-tile::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: var(--c, #5eead4);
}
.expo-dir-tile:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--c, #5eead4) 26%, rgba(255, 255, 255, .10)),
		color-mix(in srgb, var(--c, #5eead4) 12%, rgba(255, 255, 255, .05)));
	border-color: color-mix(in srgb, var(--c, #fff) 45%, transparent);
}
.expo-dir-tile:active { transform: scale(.98); }

.expo-dir-tile__logo {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 12px;
	padding: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.expo-dir-tile__logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.expo-dir-tile__placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-size: 24px; font-weight: 700; color: #1a2030;
}
.expo-dir-tile__name { font-size: 15.5px; font-weight: 600; line-height: 1.3; min-width: 0; }
.expo-dir-tile__sub { font-size: 12.5px; color: rgba(244, 247, 255, .62); margin-top: 3px; }

/* ---- states --------------------------------------------------------- */
.expo-dir-loading { grid-column: 1 / -1; display: grid; place-items: center; min-height: 160px; }
.expo-dir-empty { grid-column: 1 / -1; text-align: center; color: rgba(244, 247, 255, .66); padding: 40px 20px; }

/* ---- mobile --------------------------------------------------------- */
@media (max-width: 560px) {
	.expo-dir-grid { grid-template-columns: 1fr; }
	.expo-dir-modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
