/* PVCF Vendors: interactive Vendor Hall map. */

.pvcf-hallmap {
	position: relative;
	display: block;
	line-height: normal;
}

/* Vendors page: the full map. The image must fill the wrapper exactly so booth % line up. */
.pvcf-hallmap--full img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 !important;
}

/* Profile close-up: height comes from padding-bottom (set inline); the image is shifted
   and enlarged inside a clipping box so only the hall shows. */
.pvcf-hallmap--crop {
	height: 0;
}

.pvcf-hallmap__clip {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.pvcf-hallmap--crop .pvcf-hallmap__clip img {
	position: absolute;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
}

/* ── Booths ── */

.pvcf-hallmap .pvcf-booth {
	position: absolute;
	z-index: 2;
	display: block;
	box-sizing: border-box;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s, box-shadow 0.15s;
}

.pvcf-hallmap .pvcf-booth:hover,
.pvcf-hallmap .pvcf-booth:focus-visible,
.pvcf-hallmap .pvcf-booth.is-open,
.pvcf-hallmap .pvcf-booth.is-linked {
	z-index: 4;
	background-color: rgba(255, 212, 0, 0.35);
	box-shadow: inset 0 0 0 3px #ffd400;
}

/* This vendor's booth on their profile. */
.pvcf-hallmap .pvcf-booth--here {
	z-index: 3;
	background-color: rgba(255, 212, 0, 0.55);
	box-shadow: inset 0 0 0 4px #ffd400, 0 0 0 3px #222, 0 0 10px 4px rgba(255, 212, 0, 0.9);
	animation: pvcf-booth-pulse 1.8s ease-in-out infinite;
}

@keyframes pvcf-booth-pulse {
	0%, 100% { box-shadow: inset 0 0 0 4px #ffd400, 0 0 0 3px #222, 0 0 6px 2px rgba(255, 212, 0, 0.8); }
	50%      { box-shadow: inset 0 0 0 4px #ffd400, 0 0 0 3px #222, 0 0 18px 9px rgba(255, 212, 0, 0.95); }
}

@media (prefers-reduced-motion: reduce) {
	.pvcf-hallmap .pvcf-booth--here { animation: none; }
}

/* ── Name pop-up ── */

.pvcf-hallmap .pvcf-booth__tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 5;
	display: block;
	padding: 6px 11px;
	border: 2px solid #222;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	color: #222;
	font-family: proximanova-semibold, sans-serif;
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%);
	transition: opacity 0.15s, visibility 0.15s;
	pointer-events: none;
}

/* Invisible bridge so the mouse can move from the booth into a shared booth's pop-up. */
.pvcf-hallmap .pvcf-booth__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 12px;
}

.pvcf-hallmap .pvcf-booth--tip-right .pvcf-booth__tip { left: auto; right: -6px; transform: none; text-align: right; }
.pvcf-hallmap .pvcf-booth--tip-left .pvcf-booth__tip  { left: -6px; transform: none; text-align: left; }

.pvcf-hallmap .pvcf-booth:hover .pvcf-booth__tip,
.pvcf-hallmap .pvcf-booth:focus .pvcf-booth__tip,
.pvcf-hallmap .pvcf-booth:focus-within .pvcf-booth__tip,
.pvcf-hallmap .pvcf-booth.is-open .pvcf-booth__tip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.pvcf-hallmap .pvcf-booth__num {
	display: block;
	color: #7a43c6;
	font-family: proximanova-bold, sans-serif;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pvcf-hallmap .pvcf-booth__name {
	display: block;
	color: #222;
	text-decoration: none;
}

.pvcf-hallmap a.pvcf-booth__name {
	padding: 3px 0;
	text-decoration: underline;
}

.pvcf-hallmap a.pvcf-booth__name:hover,
.pvcf-hallmap a.pvcf-booth__name:focus {
	color: #7a43c6;
}

/* ── Profile block ── */

.pvcf-hallmap-profile {
	clear: both;
	max-width: 360px;
	margin: 44px auto 12px;
	text-align: center;
}

.pvcf-hallmap-profile__title {
	margin: 0 0 4px;
}

.pvcf-hallmap-profile__booth {
	margin: 0 0 16px;
	color: #7a43c6;
	font-family: proximanova-bold, sans-serif;
	font-size: 20px;
}

.pvcf-hallmap-profile__more {
	margin: 16px 0 0;
}

/* ── Phones: the full map is too small to tap a booth, so its booths are switched off
   and a close-up of the hall (added after the map) takes over. ── */

.pvcf-hallmap-mobile {
	display: none;
}

@media (max-width: 767px) {
	.pvcf-hallmap--full .pvcf-booth {
		display: none;
	}

	.pvcf-hallmap-mobile {
		display: block;
		max-width: 360px;
		margin: 20px auto 28px;
		text-align: center;
	}

	.pvcf-hallmap-mobile__hint {
		margin: 0 0 10px;
		font-family: proximanova-semibold, sans-serif;
	}
}
