/* ─── Container ─────────────────────────────────────────────────────────────── */
.fpbm-frontend-container {
	margin: 24px 0;
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ─── Legend ────────────────────────────────────────────────────────────────── */
.fpbm-frontend-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
	align-items: center;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid #e8f0fe;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(15, 74, 138, 0.06);
}
.fpbm-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 14px 5px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	border: 1.5px solid transparent;
	letter-spacing: 0.02em;
}
.fpbm-legend-item::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	flex-shrink: 0;
}
.fpbm-legend-available  { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.fpbm-legend-tentative  { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.fpbm-legend-sponsor    { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.fpbm-legend-confirmed  { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.fpbm-legend-available::before  { background: #10b981; }
.fpbm-legend-tentative::before  { background: #f59e0b; }
.fpbm-legend-sponsor::before    { background: #8b5cf6; }
.fpbm-legend-confirmed::before  { background: #0f4a8a; }

/* ─── Map Wrapper ───────────────────────────────────────────────────────────── */
.fpbm-frontend-map-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(15, 74, 138, 0.10);
	border: 1.5px solid #e0e9f8;
}
.fpbm-frontend-image {
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
}

/* ─── Booths ────────────────────────────────────────────────────────────────── */
.fpbm-frontend-booth {
	position: absolute;
	box-sizing: border-box;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 5px;
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
	            box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
	            filter 0.22s ease;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.fpbm-frontend-booth:hover,
.fpbm-frontend-booth.fpbm-hovered {
	transform: scale(1.06) translateY(-2px);
	z-index: 50;
}

/* Status colours */
.fpbm-fe-available {
	background: rgba(16, 185, 129, 0.82);
	border-color: #059669;
}
.fpbm-fe-available:hover,
.fpbm-fe-available.fpbm-hovered {
	box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}
.fpbm-fe-tentative {
	background: rgba(245, 158, 11, 0.82);
	border-color: #d97706;
}
.fpbm-fe-tentative:hover,
.fpbm-fe-tentative.fpbm-hovered {
	box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}
.fpbm-fe-sponsor {
	background: rgba(139, 92, 246, 0.82);
	border-color: #7c3aed;
}
.fpbm-fe-sponsor:hover,
.fpbm-fe-sponsor.fpbm-hovered {
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}
.fpbm-fe-confirmed {
	background: rgba(15, 74, 138, 0.88);
	border-color: #0c3e76;
}
.fpbm-fe-confirmed:hover,
.fpbm-fe-confirmed.fpbm-hovered {
	box-shadow: 0 6px 20px rgba(15, 74, 138, 0.50);
}

/* Booth label */
.fpbm-frontend-booth-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 11px;
	font-weight: 800;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.55);
	pointer-events: none;
	white-space: nowrap;
	letter-spacing: 0.03em;
	user-select: none;
}

/* ─── Tooltip ───────────────────────────────────────────────────────────────── */
.fpbm-tooltip {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) scale(0.9);
	z-index: 200;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
	transform-origin: bottom center;
	white-space: nowrap;
}
/* Flip below when booth is near top */
.fpbm-tooltip.fpbm-tt-below {
	bottom: auto;
	top: calc(100% + 12px);
	transform-origin: top center;
	transform: translateX(-50%) scale(0.9);
}

.fpbm-frontend-booth:hover .fpbm-tooltip,
.fpbm-frontend-booth.fpbm-hovered .fpbm-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) scale(1);
	pointer-events: auto;
}

/* Invisible bridge to maintain hover between booth and tooltip */
.fpbm-tooltip::before {
	content: '';
	position: absolute;
	top: 100%;
	left: -24px;
	right: -24px;
	height: 16px;
}
.fpbm-tooltip.fpbm-tt-below::before {
	top: auto;
	bottom: 100%;
}

/* Tooltip content */
.fpbm-tooltip-content {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #1e293b;
	padding: 16px 20px;
	border-radius: 14px;
	font-size: 13px;
	line-height: 1.6;
	min-width: 170px;
	text-align: center;
	box-shadow: 0 12px 40px rgba(15, 74, 138, 0.18), 0 0 0 1px rgba(255,255,255,0.3) inset;
}

/* Arrow — above tooltip (pointing down) */
.fpbm-tooltip-content::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 9px solid transparent;
	border-top-color: rgba(255, 255, 255, 0.92);
	filter: drop-shadow(0 2px 2px rgba(15,74,138,0.08));
}
/* Arrow — below tooltip (pointing up) */
.fpbm-tooltip.fpbm-tt-below .fpbm-tooltip-content::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: rgba(255, 255, 255, 0.92);
}

/* Tooltip inner elements */
.fpbm-tt-booth {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 6px;
}
.fpbm-tt-status {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 10px;
}
.fpbm-tt-available { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.fpbm-tt-tentative { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.fpbm-tt-sponsor   { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.fpbm-tt-confirmed { background: #e0f2fe; color: #0f4a8a; border: 1px solid #bae6fd; }

.fpbm-tt-company {
	font-weight: 800;
	color: #1e293b;
	font-size: 14px;
	margin-bottom: 3px;
}
.fpbm-tt-email {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
	word-break: break-all;
}

/* View Profile Button inside tooltip */
.fpbm-tt-profile-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 20px;
	background: linear-gradient(135deg, #0f4a8a, #3b82f6);
	color: #fff !important;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	letter-spacing: 0.02em;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(15, 74, 138, 0.30);
}
.fpbm-tt-profile-btn:hover {
	filter: brightness(1.12);
	transform: translateY(-2px);
	box-shadow: 0 7px 18px rgba(15, 74, 138, 0.42);
	text-decoration: none;
}

/* ─── Error State ───────────────────────────────────────────────────────────── */
.fpbm-frontend-error {
	color: #dc2626;
	padding: 14px 18px;
	background: #fef2f2;
	border-left: 4px solid #dc2626;
	border-radius: 6px;
	font-size: 14px;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.fpbm-frontend-legend {
		padding: 10px 12px;
	}
	.fpbm-legend-item {
		font-size: 11px;
		padding: 4px 10px 4px 8px;
	}
	.fpbm-tooltip-content {
		min-width: 140px;
		padding: 12px 14px;
		font-size: 12px;
	}
}

/* ═══════════════════════════════════════════════════════
   EXHIBITOR DIRECTORY STYLES
   ═══════════════════════════════════════════════════════ */

.fpbm-directory-toggle-wrap {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}
#fpbm-toggle-directory-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	background: linear-gradient(135deg, #0f4a8a 0%, #3b82f6 100%);
	color: #fff;
	box-shadow: 0 4px 20px rgba(15, 74, 138, 0.3);
}
#fpbm-toggle-directory-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(15, 74, 138, 0.45);
	filter: brightness(1.08);
}
#fpbm-toggle-directory-btn.active {
	background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
	box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

.fpbm-directory-drawer {
	margin-top: 30px;
	background: #ffffff;
	border: 1px solid #e8f0fe;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(15, 74, 138, 0.08);
	overflow: hidden;
	animation: fpbmFadeUp 0.35s ease both;
}
.fpbm-directory-inner {
	padding: 30px;
}
.fpbm-directory-header {
	margin-bottom: 24px;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 18px;
}
.fpbm-directory-header h3 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.3px;
}
.fpbm-directory-header p {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

/* Controls (Filters) */
.fpbm-directory-controls {
	display: flex;
	gap: 16px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.fpbm-search-input-wrap {
	position: relative;
	flex: 1;
	min-width: 260px;
	display: flex;
	align-items: center;
}
.fpbm-search-icon {
	position: absolute;
	left: 14px;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}
#fpbm-directory-search {
	width: 100%;
	padding: 12px 14px 12px 42px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	background: #f8fafc;
	color: #1e293b;
	transition: all 0.2s;
}
#fpbm-directory-search:focus {
	outline: none;
	border-color: #3b82f6;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.fpbm-filter-select-wrap {
	min-width: 200px;
}
#fpbm-directory-filter-category {
	width: 100%;
	padding: 12px 34px 12px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	background: #f8fafc;
	color: #1e293b;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
	background-position: right 10px center;
	background-repeat: no-repeat;
	background-size: 20px;
	transition: all 0.2s;
}
#fpbm-directory-filter-category:focus {
	outline: none;
	border-color: #3b82f6;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

/* Directory Grid & Cards */
.fpbm-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.fpbm-directory-card {
	background: #ffffff;
	border: 1px solid #e8f0fe;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 2px 10px rgba(15, 74, 138, 0.04);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	min-height: 180px;
}
.fpbm-directory-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(15, 74, 138, 0.12);
	border-color: #93c5fd;
}
.fpbm-dir-card-header {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
	align-items: flex-start;
}
.fpbm-dir-card-logo {
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	padding: 3px;
	flex-shrink: 0;
}
.fpbm-dir-card-logo-ph {
	width: 52px;
	height: 52px;
	background: #f1f5f9;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
	color: #94a3b8;
}
.fpbm-dir-card-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.fpbm-dir-booth-badge {
	display: inline-flex;
	align-items: center;
	background: #eff6ff;
	color: #0f4a8a;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	border: 1.5px solid #bfdbfe;
	width: fit-content;
}
.fpbm-dir-category-badge {
	display: inline-block;
	background: #f8fafc;
	color: #475569;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	border: 1px solid #e2e8f0;
	width: fit-content;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}
.fpbm-dir-card-body h4 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.4;
}
.fpbm-dir-card-footer {
	border-top: 1.5px solid #f1f5f9;
	padding-top: 14px;
	display: flex;
	justify-content: flex-end;
}
.fpbm-dir-profile-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #3b82f6 !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.2s;
}
.fpbm-dir-profile-link:hover {
	color: #0f4a8a !important;
}
.fpbm-dir-arrow {
	transition: transform 0.2s;
}
.fpbm-dir-profile-link:hover .fpbm-dir-arrow {
	transform: translateX(3px);
}
.fpbm-dir-no-profile {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 600;
	cursor: default;
}
.fpbm-directory-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	color: #64748b;
	font-size: 14px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1.5px dashed #cbd5e1;
}

@media (max-width: 600px) {
	.fpbm-directory-inner {
		padding: 20px;
	}
	.fpbm-directory-controls {
		flex-direction: column;
		gap: 12px;
	}
	.fpbm-search-input-wrap {
		min-width: 100%;
	}
	.fpbm-directory-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
