/* =========================================================
   MPM Interactive Store Map — front-end styles
   Mirrors the approved MPM design system (Version B side panel).
   All custom props are scoped so they won't leak into the theme.
   ========================================================= */

.mpm-store {
	--mpm-navy:       #222e84;
	--mpm-navy-tint:  #eceefb;
	--mpm-line:       #e2e4ee;
	--mpm-ink:        #15171f;
	--mpm-ink-2:      #3a3d4a;
	--mpm-ink-3:      #6b6f7e;
	--mpm-mist:       #f4f5f9;
	--mpm-paper:      #ffffff;
	--mpm-radius-lg:  32px;
	--mpm-shadow:     0 18px 40px -18px rgba(20,28,82,.28), 0 4px 12px -6px rgba(20,28,82,.12);
	--mpm-shadow-lg:  0 40px 80px -30px rgba(20,28,82,.40);
	--mpm-display:    'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;

	color: var(--mpm-ink);
}

/* ---------- heading ---------- */
.mpm-store-head {
	text-align: center;
	max-width: 760px;
	margin: 0 auto clamp(28px, 4vw, 48px);
}
.mpm-eyebrow {
	font-family: var(--mpm-display);
	font-weight: 700;
	font-size: .84rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mpm-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	margin: 0 0 1rem;
}
.mpm-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--mpm-navy);
	display: inline-block;
}
.mpm-store-h2 {
	font-family: var(--mpm-display);
	font-weight: 700;
	line-height: 1.08;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	margin: .4rem 0 0;
	color: var(--mpm-ink);
}
.mpm-store-sub {
	margin: 1rem 0 0;
	color: var(--mpm-ink-2);
	font-size: 1.02rem;
	line-height: 1.5;
}

/* ---------- stage / frame ---------- */
.mpm-store-stage {
	position: relative;
	max-width: 1180px;
	margin-inline: auto;
	border-radius: var(--mpm-radius-lg);
	background: var(--mpm-paper);
	border: 1px solid var(--mpm-line);
	box-shadow: var(--mpm-shadow);
	padding: clamp(10px, 1.4vw, 18px);
}
.mpm-store-frame {
	position: relative;
	border-radius: calc(var(--mpm-radius-lg) - 10px);
	overflow: hidden;
	background: var(--mpm-mist);
}
.mpm-store-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mpm-store-dim {
	position: absolute;
	inset: 0;
	background: rgba(20,28,82,0);
	transition: background .3s ease;
	pointer-events: none;
	z-index: 2;
}

/* ---------- department pins + label pills (rendered over the graphic) ---------- */
/* Reset is scoped + !important so theme/Elementor default <button> styles
   (navy background, padding, borders) can't bleed into the hotspots. */
.mpm-store .mpm-hot {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 3;
	-webkit-appearance: none;
	appearance: none;
	border: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	height: auto !important;
	border-radius: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	font-family: var(--mpm-display);
	line-height: 1;
	transition: transform .2s ease, opacity .25s ease;
}
.mpm-hot.mpm-flip { flex-direction: column-reverse; }
.mpm-hot:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 5px;
	border-radius: 10px;
}
.mpm-pin {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--mpm-navy);
	border: 3px solid #fff;
	box-shadow: 0 3px 10px rgba(20,28,82,.5);
	position: relative;
}
.mpm-pin::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.9);
	animation: mpm-ping 2.6s ease-out infinite;
	opacity: 0;
}
@keyframes mpm-ping {
	0%   { transform: scale(.55); opacity: .9; }
	70%  { opacity: 0; }
	100% { transform: scale(1.5); opacity: 0; }
}
.mpm-pin-label {
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .01em;
	line-height: 1;
	background: #fff;
	color: var(--mpm-navy);
	padding: .42em .72em;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(20,28,82,.28);
	white-space: nowrap;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
.mpm-hot:hover { z-index: 20; transform: translate(-50%, -50%) scale(1.05); }
.mpm-hot:hover .mpm-pin {
	background: #fff;
	box-shadow: 0 0 0 4px rgba(255,255,255,.5), 0 6px 16px rgba(20,28,82,.5);
}
.mpm-hot:hover .mpm-pin-label,
.mpm-hot.is-active .mpm-pin-label { background: var(--mpm-navy); color: #fff; }
.mpm-hot.is-active { z-index: 20; }
.mpm-hot.is-muted { opacity: .34; }

/* alignment helper — toggled from the Style tab (kept for fine-tuning) */
.mpm-show-outlines .mpm-pin { outline: 2px dashed rgba(34,46,132,.7); outline-offset: 3px; }

/* ---------- docked side panel (Version B) ---------- */
.mpm-store-card {
	position: absolute;
	z-index: 30;
	top: 0;
	right: 0;
	bottom: 0;
	width: clamp(280px, 33%, 372px);
	background: var(--mpm-paper);
	box-shadow: -24px 0 60px -34px rgba(20,28,82,.6);
	padding: clamp(1.4rem, 2.6vw, 2.2rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	transform: translateX(101%);
	opacity: 0;
	pointer-events: none;
	transition: transform .34s cubic-bezier(.22,.61,.36,1), opacity .34s ease;
}
.mpm-store-card.is-show {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}
.mpm-store-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--mpm-navy);
}
.mpm-sc-eyebrow {
	font-family: var(--mpm-display);
	font-weight: 700;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mpm-navy);
}
.mpm-sc-title {
	font-family: var(--mpm-display);
	font-weight: 800;
	font-size: 1.7rem;
	line-height: 1.02;
	margin: .5rem 0 .8rem;
	color: var(--mpm-ink);
}
.mpm-sc-desc {
	font-size: 1rem;
	line-height: 1.55;
	color: var(--mpm-ink-2);
	margin: 0 0 1.4rem;
}
.mpm-sc-link {
	font-family: var(--mpm-display);
	font-weight: 700;
	color: var(--mpm-navy);
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-size: 1.02rem;
	text-decoration: none;
}
.mpm-sc-link:hover { text-decoration: none; }
.mpm-arr { transition: transform .2s ease; }
.mpm-sc-link:hover .mpm-arr { transform: translateX(4px); }

/* engaged state dims the photo + mutes other hotspots */
.mpm-store-frame.is-engaged .mpm-store-dim { background: rgba(20,28,82,.34); }
.mpm-store-frame.is-engaged .mpm-hot.is-muted { opacity: .42; }

/* ---------- hint ---------- */
.mpm-store-hint {
	text-align: center;
	margin: 1.4rem 0 0;
	font-size: .92rem;
	color: var(--mpm-ink-3);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
}
.mpm-store-hint svg { color: var(--mpm-navy); flex: 0 0 auto; }

/* ---------- label buttons ---------- */
.mpm-dept-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	justify-content: center;
	margin: 1.6rem auto 0;
	max-width: 900px;
}
.mpm-dept-chip {
	font-family: var(--mpm-display);
	font-weight: 600;
	font-size: .92rem;
	background: var(--mpm-paper);
	border: 1px solid var(--mpm-line);
	border-radius: 999px;
	padding: .5em 1em;
	color: var(--mpm-ink-2);
	transition: all .15s ease;
	display: inline-flex;
	align-items: center;
	gap: .45em;
	text-decoration: none;
}
.mpm-dept-chip:hover {
	border-color: var(--mpm-navy);
	color: var(--mpm-navy);
	background: var(--mpm-navy-tint);
}
.mpm-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mpm-navy);
	display: inline-block;
}

/* ---------- mobile: panel docks to the bottom of the frame ---------- */
@media (max-width: 860px) {
	.mpm-store-card {
		width: auto;
		left: 0;
		top: auto;
		right: 0;
		bottom: 0;
		height: auto;
		transform: translateY(101%);
	}
	.mpm-store-card.is-show { transform: translateY(0); }
	.mpm-sc-title { font-size: 1.4rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.mpm-store-card,
	.mpm-store-dim,
	.mpm-pin-label,
	.mpm-hot,
	.mpm-arr { transition: none; }
	.mpm-pin::after { animation: none; }
}
