/* HTM Mixer: floorplan, exhibitor list, sponsorship cards, sponsor strip.
   Builds on sessions.css (.hm-sessions variables, .hm-btn, .hm-sr).
   Image rules are prefixed with .hm-expo so they outrank Elementor's ".elementor img { max-width: 100% }". */

.hm-expo {
	--hm-booth-booked: #8a8a8a;
	--hm-booth-open: #222222;
	--hm-star: #222222;
	--hm-ring: #222222;
	--hm-price: #222222;
	--hm-price-font: inherit;
	--hm-badge-bg: #f4f4f4;
	--hm-badge-fg: #222222;
	--hm-sold-bg: #222222;
	--hm-sold-fg: #ffffff;
	--hm-card-bg: #ffffff;
	--hm-card-border: var(--hm-border);
}
.hm-expo.hm-preset-main {
	--hm-booth-booked: #fab015; --hm-booth-open: #222222; --hm-star: #222222; --hm-ring: #222222;
	--hm-price: #222222; --hm-badge-bg: #f3f0e5; --hm-badge-fg: #222222; --hm-sold-bg: #222222; --hm-sold-fg: #fab015;
}
.hm-expo.hm-preset-midwest {
	--hm-booth-booked: #73bbe3; --hm-booth-open: #d03a53; --hm-star: #d03a53; --hm-ring: #1e2646;
	--hm-price: #d03a53; --hm-price-font: var(--font-display, inherit);
	--hm-badge-bg: #eaf5fc; --hm-badge-fg: #3a4885; --hm-sold-bg: #3a4885; --hm-sold-fg: #ffffff;
}
.hm-expo.hm-preset-nashville {
	--hm-booth-booked: #8fcfd9; --hm-booth-open: #b5450f; --hm-star: #b5450f; --hm-ring: #3b2412;
	--hm-price: #b5450f; --hm-badge-bg: #fff2d2; --hm-badge-fg: #1a5f70; --hm-sold-bg: #1a5f70; --hm-sold-fg: #ffffff;
}
.hm-expo.hm-preset-none {
	--hm-booth-booked: rgba(128, 128, 128, .45); --hm-booth-open: currentColor; --hm-star: currentColor; --hm-ring: currentColor;
	--hm-price: inherit; --hm-badge-bg: rgba(128, 128, 128, .12); --hm-badge-fg: inherit; --hm-sold-bg: currentColor; --hm-sold-fg: #ffffff;
	--hm-card-bg: transparent;
}

.hm-expo .hm-empty {
	margin: 0;
	padding: 1rem 1.25rem;
	background: var(--hm-band);
	border-radius: var(--hm-radius);
	color: var(--hm-text);
}
.hm-expo .hm-empty--admin { margin-top: .5rem; font-size: .875rem; }

/* ---------- floorplan ---------- */

.hm-floorplan__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.25rem;
	margin: 0 0 .75rem;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--hm-text);
}
.hm-key { display: inline-flex; align-items: center; gap: .45rem; }
.hm-key__swatch {
	display: inline-block;
	width: 1.5rem;
	height: 1rem;
	border-radius: 4px;
}
.hm-key--booked .hm-key__swatch { background: var(--hm-booth-booked); }
.hm-key--open .hm-key__swatch { border: 2px dashed var(--hm-booth-open); }
.hm-key__star { width: 1.1rem; height: 1.1rem; fill: var(--hm-star); }
.hm-floorplan__hint { margin-left: auto; font-weight: 400; color: var(--hm-muted); font-size: .875rem; }

.hm-floorplan__map {
	background: #ffffff;
	border: 1px solid var(--hm-border);
	border-radius: var(--hm-radius);
	overflow: hidden;
}
.hm-floorplan__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: .75rem;
}
.hm-expo .hm-floorplan__svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}
.hm-floorplan__scrollhint { display: none; margin: .5rem 0 0; font-size: .875rem; color: var(--hm-muted); }

@container (max-width: 760px) {
	.hm-expo .hm-floorplan__svg { width: 760px; }
	.hm-floorplan__scrollhint { display: block; }
	.hm-floorplan__hint { display: none; }
}

/* Booths (classes added by expo.js) */
.hm-booth { cursor: pointer; outline: none; }
.hm-booth.is-empty { cursor: default; }
.hm-booth__tint {
	pointer-events: all;
	vector-effect: non-scaling-stroke;
	transition: fill-opacity .15s ease, stroke-width .15s ease;
}
.hm-booth.is-booked .hm-booth__tint {
	fill: var(--hm-booth-booked);
	fill-opacity: .5;
	mix-blend-mode: multiply;
	stroke: var(--hm-booth-booked);
	stroke-width: 1.5;
}
.hm-booth.is-open .hm-booth__tint {
	fill: #ffffff;
	fill-opacity: 0;
	stroke: var(--hm-booth-open);
	stroke-opacity: .55;
	stroke-width: 1.5;
	stroke-dasharray: 5 4;
}
.hm-booth:hover .hm-booth__tint,
.hm-booth:focus-visible .hm-booth__tint {
	stroke: var(--hm-ring);
	stroke-opacity: 1;
	stroke-width: 3;
	stroke-dasharray: none;
}
.hm-booth.is-booked:hover .hm-booth__tint,
.hm-booth.is-booked:focus-visible .hm-booth__tint { fill-opacity: .8; }
.hm-booth.is-open:hover .hm-booth__tint,
.hm-booth.is-open:focus-visible .hm-booth__tint { fill: var(--hm-booth-open); fill-opacity: .1; }
.hm-booth.is-highlight .hm-booth__tint {
	stroke: var(--hm-ring);
	stroke-opacity: 1;
	stroke-width: 4;
	stroke-dasharray: none;
	fill-opacity: .85;
	animation: hm-booth-pulse 1s ease-in-out 3;
}
.hm-booth__star {
	fill: var(--hm-star);
	stroke: #ffffff;
	stroke-width: 2;
	paint-order: stroke;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}
@keyframes hm-booth-pulse {
	50% { stroke-width: 8; }
}
@media (prefers-reduced-motion: reduce) {
	.hm-booth.is-highlight .hm-booth__tint { animation: none; }
}

/* ---------- popup ---------- */

.hm-expo-dialog {
	width: min(420px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--hm-radius);
	background: var(--hm-surface, #fff);
	color: var(--hm-text);
	box-shadow: 0 24px 60px rgba(20, 26, 52, .35);
}
.hm-expo-dialog::backdrop { background: rgba(20, 26, 52, .55); }
.hm-expo-dialog__inner { position: relative; padding: 1.5rem; }
.hm-expo .hm-expo-dialog__close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hm-text);
	cursor: pointer;
}
.hm-expo .hm-expo-dialog__close:hover { background: var(--hm-band); }
.hm-expo-dialog__close .hm-icon { width: 22px; height: 22px; }
.hm-expo .hm-expo-dialog__eyebrow {
	margin: 0 0 .75rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hm-muted);
}
.hm-popex + .hm-popex { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--hm-border); }
.hm-expo .hm-popex__logo {
	display: block;
	max-width: 200px;
	max-height: 72px;
	width: auto;
	height: auto;
	margin: 0 0 .75rem;
	object-fit: contain;
}
.hm-expo .hm-popex__name {
	margin: 0 2.5rem .35rem 0;
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hm-heading);
}
.hm-expo .hm-popex__sponsor {
	display: flex;
	align-items: flex-start;
	gap: .4rem;
	margin: 0 0 .75rem;
	font-size: .9375rem;
	color: var(--hm-text);
}
.hm-popex__sponsor svg { flex: none; width: 1rem; height: 1rem; margin-top: .2rem; fill: var(--hm-star); }
.hm-expo .hm-popex__text { margin: 0 0 1rem; color: var(--hm-text); }
.hm-popex .hm-btn { margin-top: .25rem; }

/* ---------- exhibitor list ---------- */

.hm-exlist { margin-top: 2rem; }
.hm-exhibitors .hm-exlist { margin-top: 0; }
.hm-exlist__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	margin: 0 0 .5rem;
}
.hm-expo .hm-exlist__title {
	margin: 0;
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hm-heading);
}
.hm-exlist__search { flex: 0 1 22rem; min-width: 0; }
.hm-expo .hm-exlist__search input {
	width: 100%;
	height: 44px;
	padding: 0 .85rem;
	font: inherit;
	font-size: 1rem;
	color: var(--hm-text);
	background: var(--hm-field-bg);
	border: 1px solid var(--hm-muted);
	border-radius: 8px;
}
.hm-expo .hm-exlist__count { margin: 0 0 1rem; font-size: .875rem; color: var(--hm-muted); }
.hm-exlist__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hm-exlist__item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: .5rem 1rem;
	align-items: center;
	margin: 0;
	padding: .85rem 1rem;
	background: var(--hm-card-bg);
	border: 1px solid var(--hm-card-border);
	border-radius: var(--hm-radius);
}
.hm-exlist__item[hidden] { display: none; }
.hm-exlist__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 52px;
	grid-row: span 2;
}
.hm-expo .hm-exlist__logo img { max-width: 96px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.hm-exlist__initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--hm-avatar-bg);
	color: var(--hm-avatar-fg);
	font-size: .875rem;
	font-weight: 700;
}
.hm-exlist__main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.hm-exlist__name { font-weight: 700; line-height: 1.3; color: var(--hm-heading); overflow-wrap: anywhere; }
.hm-exlist__meta { font-size: .875rem; color: var(--hm-muted); line-height: 1.4; }
.hm-exlist__sponsor { display: inline-flex; align-items: flex-start; gap: .3rem; }
.hm-exlist__sponsor svg { flex: none; width: .9rem; height: .9rem; margin-top: .15rem; fill: var(--hm-star); }
.hm-exlist__actions { display: flex; flex-wrap: wrap; gap: .25rem 1rem; grid-column: 2; }
.hm-expo .hm-exlist__find,
.hm-expo .hm-exlist__web {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0;
	font: inherit;
	font-size: .875rem;
	font-weight: 700;
	color: var(--hm-link);
	text-decoration: underline;
	text-underline-offset: .15em;
	background: none;
	border: 0;
	cursor: pointer;
}
.hm-expo .hm-exlist__find[hidden] { display: none; }
.hm-expo .hm-exlist__find:hover,
.hm-expo .hm-exlist__web:hover { text-decoration-thickness: 2px; }

/* ---------- sponsorship cards ---------- */

.hm-spgrid {
	display: grid;
	grid-template-columns: repeat(var(--hm-cols, 3), minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@container (max-width: 900px) {
	.hm-spgrid { grid-template-columns: repeat(min(var(--hm-cols, 3), 2), minmax(0, 1fr)); }
}
@container (max-width: 560px) {
	.hm-spgrid { grid-template-columns: minmax(0, 1fr); }
}
.hm-spcard {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin: 0;
	padding: 1.5rem;
	background: var(--hm-card-bg);
	border: 1px solid var(--hm-card-border);
	border-radius: var(--hm-radius);
}
.hm-expo .hm-spcard__image {
	display: block;
	width: calc(100% + 3rem);
	max-width: none;
	height: auto;
	aspect-ratio: 4 / 3;
	margin: -1.5rem -1.5rem .25rem;
	object-fit: cover;
	border-radius: var(--hm-radius) var(--hm-radius) 0 0;
}
.hm-spcard__image--none {
	background-color: var(--hm-band);
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, .04) 50%, transparent 50%),
		linear-gradient(0deg, rgba(0, 0, 0, .04) 50%, transparent 50%);
	background-size: 56px 56px;
}
.hm-preset-midwest .hm-spcard__image--none {
	background-color: #73bbe3;
	background-image:
		linear-gradient(90deg, rgba(84, 164, 202, .55) 50%, rgba(84, 164, 202, 0) 50%),
		linear-gradient(0deg, rgba(84, 164, 202, .55) 50%, rgba(84, 164, 202, 0) 50%);
}
.hm-expo .hm-spbadge {
	align-self: flex-start;
	margin: 0;
	padding: .15rem .55rem;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hm-badge-fg);
	background: var(--hm-badge-bg);
	border-radius: 4px;
}
.hm-expo .is-sold .hm-spbadge { color: var(--hm-sold-fg); background: var(--hm-sold-bg); }
.hm-expo .hm-spcard__name {
	margin: 0;
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hm-heading);
}
.hm-expo .hm-spcard__price {
	margin: 0;
	font-family: var(--hm-price-font);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.1;
	color: var(--hm-price);
}
.hm-expo .hm-spcard__price--text { font-family: inherit; font-size: 1.25rem; font-weight: 700; }
.hm-expo .is-sold .hm-spcard__price { color: var(--hm-muted); }
.hm-expo .hm-spcard__desc { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--hm-text); }
.hm-spcard__sponsors {
	margin-top: auto;
	padding-top: .85rem;
	border-top: 1px solid var(--hm-border);
}
.hm-expo .hm-spcard__label {
	margin: 0 0 .5rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hm-muted);
}
.hm-spcard__logos,
.hm-sponsors__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hm-spcard__logos li,
.hm-sponsors__logos li { margin: 0; }
.hm-spcard__logos a,
.hm-sponsors__logos a { display: inline-flex; color: var(--hm-link); }
.hm-expo .hm-sponsor-logo { display: block; max-width: 160px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.hm-sponsor-name { font-weight: 700; color: var(--hm-heading); }
.hm-spcard__cta { margin: auto 0 0; padding-top: .25rem; }
.hm-spcard__sponsors + .hm-spcard__cta { margin-top: 0; }

/* ---------- sponsor strip ---------- */

.hm-sponsors { text-align: center; }
.hm-expo .hm-sponsors__title {
	margin: 0 0 1.5rem;
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hm-heading);
}
.hm-sponsors__logos { justify-content: center; gap: 1.5rem 2.5rem; }
.hm-expo.hm-sponsors .hm-sponsor-logo { max-width: 180px; max-height: 64px; }
