/* LOT420 interactive map: world view, Canada zoom with provinces, product window.
   Built on the designer's v9 map (pills, flower boxes, pulsing dots, connector
   lines, orange "coming soon" badges). Everything is scoped to .lot420-wm. */

.lot420-wm {
	--wm-ink: #231f20;
	--wm-land: #c2c0c5;
	--wm-market: #a9a6ad;
	--wm-soon: #d6c9c4;
	--wm-hot: #e74400;
	--wm-soon-hot: #f0a27c;
	--wm-dot: #a0522d;
	position: relative;
	width: 100%;
	margin: 0 auto;
	font-family: 'Roboto Mono', monospace;
	color: var(--wm-ink);
	-webkit-tap-highlight-color: transparent;
}
.lot420-wm *, .lot420-wm *::before, .lot420-wm *::after { box-sizing: border-box; }
@media (max-width: 1024px) { .lot420-wm { overflow-x: clip; } }

/* ---------- filter pills (unchanged look) ---------- */
.lot420-wm .wm-filters { display: flex; justify-content: center; padding: 0 16px 100px; }
.lot420-wm .wm-pills {
	display: inline-flex; background: #f0f0f0; border-radius: 100px; padding: 4px; gap: 2px;
}
.lot420-wm button.wm-pill {
	padding: 8px 24px !important; border: 0 !important; background: transparent !important;
	color: #aaa !important; font: 400 11px/1.4 'Roboto Mono', monospace !important;
	letter-spacing: 2px !important; text-transform: uppercase !important; cursor: pointer;
	border-radius: 100px !important; transition: all .3s ease; box-shadow: none !important; margin: 0 !important;
	min-height: 0 !important;
}
.lot420-wm button.wm-pill:hover { color: var(--wm-ink) !important; background: rgba(0,0,0,.04) !important; }
.lot420-wm button.wm-pill.is-on { background: var(--wm-ink) !important; color: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,.15) !important; }

/* ---------- stage ---------- */
.lot420-wm .wm-scroll { position: relative; width: 100%; }
.lot420-wm .wm-stage { position: relative; width: 100%; aspect-ratio: 1143.69 / 568.27; }
.lot420-wm .wm-view { position: absolute; inset: 0; transition: opacity .45s ease, transform .45s ease; }
.lot420-wm .wm-view[hidden] { display: block !important; opacity: 0; pointer-events: none; visibility: hidden; }
.lot420-wm .wm-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lot420-wm .wm-svg svg { display: block; width: 100%; height: 100%; overflow: visible; }

.lot420-wm .country, .lot420-wm .province {
	fill: var(--wm-land); stroke: #fff; stroke-width: .5; stroke-linejoin: round;
	vector-effect: non-scaling-stroke; transition: fill .2s ease;
}
.lot420-wm .province { stroke-width: 1; }
.lot420-wm .lakes { fill: #fff; pointer-events: none; }
.lot420-wm .is-market { fill: var(--wm-market); cursor: pointer; }
.lot420-wm .is-soon { fill: var(--wm-soon); }
.lot420-wm .country:hover, .lot420-wm .province:hover, .lot420-wm .is-hover { fill: #b3b0b7; }
.lot420-wm .is-market:hover, .lot420-wm .is-market.is-hover { fill: var(--wm-hot); }
.lot420-wm .is-soon:hover, .lot420-wm .is-soon.is-hover { fill: var(--wm-soon-hot); }
.lot420-wm.is-filter-soon .is-market { fill: var(--wm-land); cursor: default; }
.lot420-wm.is-filter-product .is-soon { fill: var(--wm-land); }

/* connector lines share the map's viewBox */
.lot420-wm .wm-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.lot420-wm .wm-line {
	stroke: rgba(0,0,0,.4); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke;
	stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: opacity .4s;
}
.lot420-wm.is-ready .wm-line { animation: wmLine 1.5s ease forwards; }

.lot420-wm .wm-dot {
	position: absolute; width: 7px; height: 7px; margin: 0; border-radius: 50%;
	background: var(--wm-dot); transform: translate(-50%, -50%); z-index: 2; pointer-events: none;
	opacity: 0; transition: opacity .4s;
}
.lot420-wm.is-ready .wm-dot { opacity: 1; animation: wmPulse 2.5s ease-in-out infinite; }

/* ---------- markers ---------- */
.lot420-wm .wm-icon {
	position: absolute; z-index: 3; display: flex; align-items: center; gap: 2px;
	margin: 0; padding: 0; border: 0; background: none; text-decoration: none; color: inherit;
	opacity: 0; transition: opacity .4s, transform .2s;
}
.lot420-wm.is-ready .wm-icon { opacity: 1; animation: wmFade .6s ease both; }
.lot420-wm a.wm-icon, .lot420-wm button.wm-icon { cursor: pointer; }
.lot420-wm button.wm-icon {
	background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important;
	min-height: 0 !important; border-radius: 0 !important;
}
.lot420-wm .wm-flower { display: block; width: 36px; height: 31px; }
.lot420-wm .wm-flower svg { display: block; width: 100%; height: 100%; }
.lot420-wm .wm-badge { display: block; width: 110px; height: auto; max-width: none; }

.lot420-wm .wm-icon[data-place="above"] { transform: translate(-50%, calc(-100% - 4px)); }
.lot420-wm .wm-icon[data-place="below"] { transform: translate(-50%, 4px); }
.lot420-wm .wm-icon[data-place="left"]  { transform: translate(calc(-100% - 4px), -50%); }
.lot420-wm .wm-icon[data-place="right"] { transform: translate(4px, -50%); }
.lot420-wm .wm-icon[data-place="above"]:hover, .lot420-wm .wm-icon[data-place="above"].is-hover { transform: translate(-50%, calc(-100% - 4px)) scale(1.08); }
.lot420-wm .wm-icon[data-place="below"]:hover, .lot420-wm .wm-icon[data-place="below"].is-hover { transform: translate(-50%, 4px) scale(1.08); }
.lot420-wm .wm-icon[data-place="left"]:hover, .lot420-wm .wm-icon[data-place="left"].is-hover   { transform: translate(calc(-100% - 4px), -50%) scale(1.04); }
.lot420-wm .wm-icon[data-place="right"]:hover, .lot420-wm .wm-icon[data-place="right"].is-hover { transform: translate(4px, -50%) scale(1.04); }

/* filters */
.lot420-wm.is-filter-product :is(.wm-icon, .wm-dot, .wm-line, .wm-pin)[data-type="soon"],
.lot420-wm.is-filter-soon :is(.wm-icon, .wm-dot, .wm-line, .wm-pin)[data-type="product"] { opacity: 0 !important; pointer-events: none !important; animation: none !important; }

/* ---------- Canada view ---------- */
.lot420-wm .wm-canada { display: flex; align-items: stretch; justify-content: center; }
.lot420-wm .wm-ca-box { position: relative; height: 100%; aspect-ratio: 1200 / 1040; }
.lot420-wm .wm-canada .wm-svg svg { overflow: visible; }
.lot420-wm .wm-canada[hidden] { transform: scale(.96); }

.lot420-wm .wm-pin {
	position: absolute; z-index: 3; width: 0; height: 0; margin: 0; padding: 0; border: 0; background: none;
	cursor: pointer; text-decoration: none; color: inherit;
}
.lot420-wm button.wm-pin { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; min-height: 0 !important; }
.lot420-wm .wm-pin .wm-dot { opacity: 1; left: 0; top: 0; animation: wmPulse 2.5s ease-in-out infinite; }
.lot420-wm .wm-pin .wm-stem {
	position: absolute; left: -0.75px; bottom: 4px; width: 1.5px; height: 26px; background: rgba(0,0,0,.4);
}
.lot420-wm .wm-pin .wm-flower { position: absolute; left: -18px; bottom: 30px; transition: transform .2s; transform-origin: 50% 100%; }
.lot420-wm .wm-pin:hover .wm-flower, .lot420-wm .wm-pin.is-hover .wm-flower { transform: scale(1.1); }
.lot420-wm .wm-pin .wm-label {
	position: absolute; left: 0; top: 9px; transform: translateX(-50%); white-space: nowrap;
	font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--wm-ink);
	background: rgba(255,255,255,.85); padding: 2px 6px; line-height: 1.4;
}

.lot420-wm .wm-ca-head { position: absolute; left: 0; top: 0; z-index: 5; max-width: 260px; }
.lot420-wm button.wm-back {
	display: inline-flex !important; align-items: center; gap: 8px; margin: 0 0 18px !important;
	padding: 8px 16px !important; border: 1px solid var(--wm-ink) !important; border-radius: 100px !important;
	background: #fff !important; color: var(--wm-ink) !important; cursor: pointer; box-shadow: none !important;
	font: 400 11px/1.4 'Roboto Mono', monospace !important; letter-spacing: 2px !important; text-transform: uppercase !important;
	transition: background .2s, color .2s; min-height: 0 !important;
}
@media (hover: hover) { .lot420-wm button.wm-back:hover { background: var(--wm-ink) !important; color: #fff !important; } }
.lot420-wm .wm-ca-title { margin: 0 0 4px; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; line-height: 1.2; color: var(--wm-ink); font-weight: 400; }
.lot420-wm .wm-ca-sub { margin: 0 0 14px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #999; }
.lot420-wm .wm-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lot420-wm button.wm-chip {
	display: inline-flex !important; align-items: center; gap: 8px; padding: 6px 12px !important; margin: 0 !important;
	border: 0 !important; border-radius: 100px !important; background: #f0f0f0 !important; color: var(--wm-ink) !important;
	font: 400 10px/1.4 'Roboto Mono', monospace !important; letter-spacing: 2px !important; text-transform: uppercase !important;
	cursor: pointer; box-shadow: none !important; transition: background .2s, color .2s; min-height: 0 !important;
}
.lot420-wm button.wm-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--wm-dot); }
.lot420-wm button.wm-chip:hover, .lot420-wm button.wm-chip.is-hover { background: var(--wm-ink) !important; color: #fff !important; }

/* ---------- hover name overlay ---------- */
.lot420-wm .wm-tip {
	position: absolute; z-index: 20; left: 0; top: 0; pointer-events: none;
	background: var(--wm-ink); color: #fff; padding: 10px 14px; text-align: center; white-space: nowrap;
	opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .15s ease;
}
.lot420-wm .wm-tip.is-on { opacity: 1; }
.lot420-wm .wm-tip::after {
	content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	border: 6px solid transparent; border-top-color: var(--wm-ink);
}
.lot420-wm .wm-tip-name { display: block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.lot420-wm .wm-tip-act { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wm-hot); }
.lot420-wm .wm-tip-act:empty { display: none; }
.lot420-wm .wm-tip-sub { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #999; }
.lot420-wm .wm-tip-sub:empty { display: none; }
.lot420-wm .wm-tip-mail { display: block; margin-top: 6px; font-size: 10px; letter-spacing: 0; text-transform: none; color: #fff; }
.lot420-wm .wm-tip-mail:empty { display: none; }
.lot420-wm .wm-tip-mail b { color: #e04501; font-weight: 400; }

/* ---------- loader ---------- */
.lot420-wm .wm-loader {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 50;
	display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .3s;
}
.lot420-wm.is-ready .wm-loader { opacity: 0; pointer-events: none; }
.lot420-wm .wm-spin { width: 32px; height: 32px; border: 2px solid #e0e0e0; border-top-color: var(--wm-ink); border-radius: 50%; animation: wmSpin .8s linear infinite; }
.lot420-wm .wm-loader span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #999; }

.lot420-wm .wm-hint { display: none; margin: 0; padding: 0 16px 14px; text-align: center; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #999; }

/* ---------- product window (same frame as the Elementor popups) ---------- */
.lot420-wm-modal {
	position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
	padding: 16px; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s ease;
}
.lot420-wm-modal.is-on { opacity: 1; }
.lot420-wm-modal[hidden] { display: none; }
.lot420-wm-modal .wm-box {
	position: relative; width: 850px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; box-shadow: 2px 8px 23px 3px rgba(0,0,0,.2); transform: translateY(12px); transition: transform .25s ease;
	-webkit-overflow-scrolling: touch;
}
.lot420-wm-modal.is-on .wm-box { transform: none; }
.lot420-wm-modal button.wm-close {
	position: absolute; top: 10px; right: 10px; z-index: 3; width: 28px; height: 28px; padding: 4px !important;
	border: 0 !important; background: transparent !important; color: #e74400 !important; cursor: pointer;
	box-shadow: none !important; min-height: 0 !important; border-radius: 0 !important; line-height: 0;
}
.lot420-wm-modal button.wm-close svg { width: 20px; height: 20px; display: block; }
.lot420-wm-modal .wm-wait { padding: 80px 20px; display: flex; justify-content: center; }
.lot420-wm-modal .wm-spin { width: 32px; height: 32px; border: 2px solid #e0e0e0; border-top-color: #231f20; border-radius: 50%; animation: wmSpin .8s linear infinite; }
.lot420-wm-modal .wm-err { padding: 60px 24px; text-align: center; font: 400 12px/1.6 'Roboto Mono', monospace; letter-spacing: 1px; color: #6b6969; }
html.lot420-wm-lock, html.lot420-wm-lock body { overflow: hidden !important; }

@keyframes wmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wmPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(160,82,45,.4); } 50% { box-shadow: 0 0 0 4px rgba(160,82,45,0); } }
@keyframes wmLine { to { stroke-dashoffset: 0; } }
@keyframes wmSpin { to { transform: rotate(360deg); } }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
	.lot420-wm .wm-filters { padding-bottom: 80px; }
	/* Canada view stacks: heading first, then the provinces map */
	.lot420-wm.is-canada .wm-stage { aspect-ratio: auto; height: auto; }
	.lot420-wm.is-canada .wm-world { position: absolute; }
	.lot420-wm.is-canada .wm-canada { position: relative; inset: auto; flex-direction: column; align-items: center; }
	.lot420-wm.is-canada .wm-ca-box { width: 100%; max-width: 640px; height: auto; margin-top: 8px; }
	.lot420-wm .wm-ca-head { position: relative; max-width: none; width: 100%; text-align: center; }
	.lot420-wm .wm-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; }
	.lot420-wm .wm-ca-title { font-size: 18px; }
	/* the hidden world layer must not widen the page while Canada is shown */
	.lot420-wm.is-canada .wm-world { display: none !important; }
}

/* ---------- mobile: same features, the world map scrolls sideways ---------- */
@media (max-width: 767px) {
	.lot420-wm .wm-filters { padding: 0 16px 16px; }
	.lot420-wm button.wm-pill { padding: 8px 14px !important; font-size: 10px !important; letter-spacing: 1.5px !important; }
	.lot420-wm .wm-hint { display: block; }
	.lot420-wm .wm-scroll {
		overflow: auto; -webkit-overflow-scrolling: touch; padding: 70px 0 16px; touch-action: pan-x pan-y;
		scrollbar-width: thin; scrollbar-color: #e04501 transparent;
	}
	.lot420-wm .wm-scroll::-webkit-scrollbar { height: 4px; }
	.lot420-wm .wm-scroll::-webkit-scrollbar-thumb { background: #e04501; border-radius: 2px; }
	.lot420-wm .wm-stage { width: 1000px; margin: 0 20px; }

	.lot420-wm.is-canada .wm-scroll { overflow: visible; padding-top: 0; }
	.lot420-wm.is-canada .wm-stage { width: auto; margin: 0; }
	.lot420-wm.is-canada .wm-hint { visibility: hidden; }
	.lot420-wm button.wm-back { margin-bottom: 12px !important; }
	.lot420-wm .wm-pin .wm-flower { width: 28px; height: 24px; left: -14px; bottom: 24px; }
	.lot420-wm .wm-pin .wm-stem { height: 20px; }
	.lot420-wm .wm-pin .wm-label { display: none; }
	.lot420-wm .wm-tip { padding: 8px 12px; }
	.lot420-wm-modal { padding: 0; align-items: flex-end; }
	.lot420-wm-modal .wm-box { max-height: 92vh; }
}

@media (prefers-reduced-motion: reduce) {
	.lot420-wm *, .lot420-wm-modal * { animation: none !important; transition: none !important; }
	.lot420-wm.is-ready .wm-line { stroke-dashoffset: 0; }
}

/* ---------- zoom choreography ---------- */
.lot420-wm .wm-view { visibility: visible; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.lot420-wm .wm-view[hidden] { transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.lot420-wm .wm-world.is-zoom .wm-icon,
.lot420-wm .wm-world.is-zoom .wm-dot,
.lot420-wm .wm-world.is-zoom .wm-lines { opacity: 0 !important; animation: none !important; pointer-events: none; transition: opacity .25s; }
.lot420-wm .wm-world .country { transition: fill .2s ease, opacity .5s ease; }
.lot420-wm .wm-world.is-zoom .country:not(#CAN) { opacity: .25; }
.lot420-wm .wm-world.is-zoom #CAN { fill: var(--wm-market); }

/* keyboard focus without the browser's box around whole countries */
.lot420-wm .country:focus, .lot420-wm .province:focus { outline: none; }
.lot420-wm .is-market:focus-visible { fill: var(--wm-hot); }
.lot420-wm .wm-icon:focus-visible, .lot420-wm .wm-pin:focus-visible .wm-flower,
.lot420-wm button.wm-chip:focus-visible, .lot420-wm button.wm-back:focus-visible, .lot420-wm button.wm-pill:focus-visible { outline: 2px solid var(--wm-hot); outline-offset: 2px; }

/* short pill labels on phones, as on the previous mobile map */
.lot420-wm .wm-pill .s { display: none; }
@media (max-width: 767px) {
	.lot420-wm .wm-pill .l { display: none; }
	.lot420-wm .wm-pill .s { display: inline; }
}

/* ---------- mobile zoom buttons ---------- */
.lot420-wm .wm-zoom { display: none; }
@media (max-width: 767px) {
	.lot420-wm .wm-zoom {
		display: flex; flex-direction: column; position: absolute; right: 12px; bottom: 28px; z-index: 6;
		background: #fff; border: 1px solid var(--wm-ink); box-shadow: 0 2px 8px rgba(0,0,0,.12);
	}
	.lot420-wm .wm-zoom button {
		width: 38px !important; height: 38px !important; padding: 0 !important; margin: 0 !important; border: 0 !important;
		border-radius: 0 !important; background: #fff !important; color: var(--wm-ink) !important; box-shadow: none !important;
		font: 400 20px/1 'Roboto Mono', monospace !important; cursor: pointer; min-height: 0 !important;
	}
	.lot420-wm .wm-zoom button + button { border-top: 1px solid #e0e0e0 !important; }
	.lot420-wm .wm-zoom button:active { background: #f0f0f0 !important; }
	.lot420-wm.is-canada .wm-zoom { display: none; }
	.lot420-wm.is-canada .wm-scroll { height: auto !important; }
	.lot420-wm .wm-stage { transition: none; will-change: transform; }
}

/* ---------- Canada: province boxes with their name ---------- */
.lot420-wm .wm-prov { flex-direction: column; gap: 4px; }
.lot420-wm .wm-prov .wm-label {
	display: block; white-space: nowrap; font: 400 10px/1.4 'Roboto Mono', monospace; letter-spacing: 2px;
	text-transform: uppercase; color: var(--wm-ink); background: rgba(255,255,255,.9); padding: 2px 6px;
}
.lot420-wm .wm-prov:hover .wm-label, .lot420-wm .wm-prov.is-hover .wm-label { color: var(--wm-hot); }
@media (max-width: 767px) {
	.lot420-wm .wm-prov { gap: 2px; }
	.lot420-wm .wm-prov .wm-flower { width: 28px; height: 24px; }
	.lot420-wm .wm-prov .wm-label { font-size: 8px; letter-spacing: 1px; padding: 1px 3px; }
	/* zoomed out: dots only */
	.lot420-wm.is-mini .wm-world .wm-icon,
	.lot420-wm.is-mini .wm-world .wm-lines { opacity: 0 !important; pointer-events: none !important; animation: none !important; }
	.lot420-wm.is-mini .wm-scroll { padding-top: 16px; }
}
