/**
 * Willi Food Store Locator — front end styles.
 *
 * An app in a box: the map fills it, the search floats on top, and the points
 * of sale sit in a bottom sheet (phones) or a side panel (960px and up).
 * The design follows willi-food.co.il: its Elementor kit colours (red #E4051F,
 * blue #1065AF, text #181B1E), its font (POLIN, loaded by the theme), pill
 * buttons and fields with the #DFDFDF line, 20–30px corners, and the red
 * title tab of "המוצרים שלנו". Override any token from the theme, e.g.
 * .willi-map { --wm-red: #c00; }. RTL by default (logical properties).
 */
.willi-map {
	--wm-red: #e4051f;            /* Elementor "secondary" — the logo red */
	--wm-red-dark: #b8031a;
	--wm-red-soft: #fdecee;
	--wm-blue: #1065af;           /* Elementor "primary" */
	--wm-blue-dark: #0b4f8a;
	--wm-blue-soft: #e8f1fa;
	--wm-text: #181b1e;           /* Elementor "text" */
	--wm-muted: #5b6168;          /* 6.3:1 on white */
	--wm-line: #dfdfdf;           /* the site's field border */
	--wm-bg: #f2f5f9;             /* a cool grey that sits with the brand blue */
	--wm-surface: #fff;
	--wm-warn: #8a5300;
	--wm-radius: 20px;
	--wm-radius-sm: 14px;
	--wm-pill: 50px;
	--wm-shadow: 0 1px 3px rgba(24, 27, 30, 0.08), 0 6px 20px rgba(24, 27, 30, 0.1);
	--wm-shadow-up: 0 -4px 24px rgba(24, 27, 30, 0.14);
	--wm-font: "POLIN", "Assistant", "Heebo", "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--wm-panel: 420px;
	--wm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

	position: relative;
	box-sizing: border-box;
	direction: rtl;
	/* A full screen under the site's header (--wm-top is measured by the script), full width. */
	width: var(--wm-vw, 100vw);
	max-width: none;
	height: calc(100vh - var(--wm-top, 0px));
	height: calc(100dvh - var(--wm-top, 0px));
	min-height: 520px;
	margin: 0;
	margin-inline-start: calc(50% - var(--wm-vw, 100vw) / 2);
	overflow: hidden;
	background: var(--wm-bg);
	color: var(--wm-text);
	font-family: var(--wm-font);
	font-size: 16px;
	line-height: 1.45;
	text-align: start;
	-webkit-tap-highlight-color: transparent;
}

/*
 * The app page: edge to edge whatever column the theme puts it in. Themes centre
 * their content with `margin: auto !important` (block themes) or a max-width
 * (Hello Elementor), so this one rule has to insist.
 */
.willi-map:not(.wm-fixed):not([data-bleed="0"]) {
	max-width: none !important;
	width: var(--wm-vw, 100vw) !important;
	margin-inline-start: calc(50% - var(--wm-vw, 100vw) / 2) !important;
	margin-inline-end: 0 !important;
}

/* Embedded in a page (height="…") or told not to bleed: a box in the content column. */
.willi-map.wm-fixed,
.willi-map[data-bleed="0"] {
	width: auto;
	margin-inline: 0;
}

.willi-map.wm-fixed {
	height: var(--wm-h);
	min-height: 420px;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
}

.willi-map *,
.willi-map *::before,
.willi-map *::after {
	box-sizing: inherit;
}

.willi-map :focus-visible {
	outline: 3px solid var(--wm-blue);
	outline-offset: 2px;
}

.willi-map [hidden] {
	display: none !important;
}

.willi-map button,
.willi-map select,
.willi-map input {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
}

/* The page that hosts the app: no theme title above it (Hello Elementor). */
body.willi-map-page .page-header {
	display: none;
}

/* ---------- Map ---------- */

.willi-map .wm-map-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.willi-map .wm-map {
	width: 100%;
	height: 100%;
	background: #f8f4f0; /* The map's own land colour, while it loads. */
	font-family: var(--wm-font);
	direction: ltr; /* Leaflet panes expect LTR; popups switch back below */
}

/* Phones: the map credit sits in the top corner, above the search. */
.willi-map .leaflet-top .leaflet-control-attribution {
	margin: 0;
}

.willi-map .leaflet-control-attribution {
	padding: 1px 6px;
	border-radius: 0 0 8px 0;
	background: rgba(255, 255, 255, 0.78);
	font-size: 10px;
}

.willi-map .leaflet-bar {
	overflow: hidden;
	border: 0;
	border-radius: var(--wm-radius-sm);
	box-shadow: var(--wm-shadow);
}

.willi-map .leaflet-bar a {
	width: 40px;
	height: 40px;
	color: var(--wm-text);
	font: 600 20px/40px var(--wm-font);
}

/* ---------- Floating top: search + chips ---------- */

.willi-map .wm-panel {
	display: contents;
}

.willi-map .wm-top {
	position: absolute;
	z-index: 1000;
	top: 20px; /* room for the map credit above it */
	inset-inline: 12px;
}

.willi-map .wm-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 54px;
	padding-inline: 18px 6px;
	border: 1.5px solid var(--wm-line);
	border-radius: var(--wm-pill);
	background: var(--wm-surface);
	box-shadow: var(--wm-shadow);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.willi-map .wm-search:focus-within {
	border-color: var(--wm-blue);
	box-shadow: 0 0 0 3px rgba(16, 101, 175, 0.2), var(--wm-shadow);
}

.willi-map .wm-input {
	flex: 1;
	min-width: 0;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: var(--wm-text);
	font-size: 16px; /* 16px or more: iOS does not zoom in on focus */
	-webkit-appearance: none;
	appearance: none;
}

.willi-map .wm-input::placeholder {
	color: #767c83;
	opacity: 1;
}

.willi-map .wm-input::-webkit-search-cancel-button,
.willi-map .wm-input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.willi-map .wm-input:focus,
.willi-map .wm-input:focus-visible {
	outline: none;
}

.willi-map .wm-go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wm-blue);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.willi-map .wm-go:hover {
	background: var(--wm-blue-dark);
}

.willi-map .wm-input[aria-busy="true"] ~ .wm-go .wm-icon {
	animation: wm-pulse 0.5s ease-in-out infinite alternate;
}

.willi-map .wm-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f0f1f3;
	color: var(--wm-muted);
	cursor: pointer;
}

.willi-map .wm-clear .wm-icon {
	width: 16px;
	height: 16px;
}

.willi-map .wm-listbox {
	position: absolute;
	z-index: 1001;
	inset-inline: 0;
	top: calc(100% + 8px);
	max-height: min(380px, 55vh);
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: var(--wm-surface);
	list-style: none;
	box-shadow: 0 12px 32px rgba(24, 27, 30, 0.18);
}

.willi-map .wm-option {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
	min-height: 52px;
	margin: 0;
	padding: 8px 14px;
	border-radius: var(--wm-radius-sm);
	cursor: pointer;
}

.willi-map .wm-option:hover,
.willi-map .wm-option.is-highlighted {
	background: var(--wm-blue-soft);
}

.willi-map .wm-option-name {
	font-weight: 600;
}

.willi-map .wm-option-meta {
	color: var(--wm-muted);
	font-size: 0.85rem;
}

.willi-map .wm-option--empty {
	color: var(--wm-muted);
	cursor: default;
}

.willi-map .wm-option--empty:hover {
	background: none;
}

.willi-map .wm-chipbar {
	position: relative;
	margin-block-start: 10px;
}

/*
 * One row, no sideways scroll. Each pill is as wide as its text and never
 * stretches; "My location", "Pick a city" and "All chains" always show in
 * full. Only a picked city or chain shrinks, to "…", when the row is short.
 * The sizes follow the row's own width (the page may wrap it in margins).
 */
.willi-map .wm-chips {
	display: flex;
	justify-content: center;
	gap: 6px;
	container-type: inline-size;
}

.willi-map .wm-chips > .wm-chip {
	flex: none;
}

.willi-map .wm-chips > .wm-chip.is-picked {
	flex: 0 1 auto;
	min-width: 5.5em;
}

.willi-map .wm-chips > .wm-chip.is-picked > .wm-chip-text {
	max-width: 8em;
}

.willi-map .wm-chip {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	justify-content: center;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0 10px;
	border: 1.5px solid var(--wm-line);
	border-radius: var(--wm-pill);
	background: var(--wm-surface);
	box-shadow: 0 1px 2px rgba(24, 27, 30, 0.06), 0 3px 10px rgba(24, 27, 30, 0.08);
	color: var(--wm-text);
	font-size: 0.875em; /* of the locator's 16px, whatever the site's root size */
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.willi-map .wm-chip > span:not(.wm-icon) {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Hello Elementor paints every focused or hovered button pink: not these. */
.willi-map button.wm-chip:hover,
.willi-map button.wm-chip:focus {
	border-color: var(--wm-blue);
	background: var(--wm-surface);
	color: var(--wm-text);
}

.willi-map button.wm-chip:focus-visible {
	outline: 3px solid var(--wm-blue);
	outline-offset: 2px;
}

.willi-map button.wm-chip.is-quiet:focus-visible {
	outline: none;
}

.willi-map .wm-chip[aria-expanded="true"] {
	border-color: var(--wm-blue);
	box-shadow: 0 0 0 3px rgba(16, 101, 175, 0.16);
}

.willi-map .wm-chip.is-on,
.willi-map button.wm-chip.is-on:hover,
.willi-map button.wm-chip.is-on:focus {
	border-color: var(--wm-blue);
	background: var(--wm-blue);
	color: #fff;
}

.willi-map .wm-chip .wm-icon {
	width: 16px;
	height: 16px;
}

.willi-map .wm-locate .wm-icon {
	color: var(--wm-red);
}

.willi-map .wm-chip.is-on .wm-icon {
	color: #fff;
}

.willi-map .wm-locate.is-busy .wm-icon {
	animation: wm-pulse 0.8s ease-in-out infinite alternate;
}

.willi-map .wm-chip--select {
	padding-inline-end: 8px;
}

.willi-map .wm-chip .wm-icon--chevron {
	width: 11px;
	height: 11px;
	transition: transform 0.2s var(--wm-ease);
}

.willi-map .wm-chip[aria-expanded="true"] .wm-icon--chevron {
	transform: rotate(180deg);
}

/* ---------- Picker: city, chain. Wide, under the row of pills ---------- */

.willi-map .wm-pop {
	position: absolute;
	z-index: 1002;
	top: calc(100% + 8px);
	inset-inline: 0;
	display: flex;
	flex-direction: column;
	max-height: min(62vh, 470px);
	overflow: hidden;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: var(--wm-surface);
	box-shadow: 0 2px 6px rgba(24, 27, 30, 0.08), 0 18px 48px rgba(16, 40, 70, 0.22);
	opacity: 0;
	transform: translateY(-6px) scale(0.985);
	transform-origin: 50% 0;
	transition: opacity 0.16s ease, transform 0.22s var(--wm-ease);
}

.willi-map .wm-pop[hidden] {
	display: none;
}

.willi-map .wm-pop.is-open {
	opacity: 1;
	transform: none;
}

.willi-map .wm-pop-search {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	margin: 12px 12px 2px;
	padding-inline: 14px;
	border: 1.5px solid var(--wm-line);
	border-radius: var(--wm-pill);
	background: var(--wm-bg);
	color: var(--wm-muted);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.willi-map .wm-pop-search:focus-within {
	border-color: var(--wm-blue);
	background: var(--wm-surface);
	box-shadow: 0 0 0 3px rgba(16, 101, 175, 0.16);
}

.willi-map .wm-pop-search .wm-icon {
	width: 18px;
	height: 18px;
}

.willi-map .wm-pop-input,
.willi-map .wm-pop-input:focus {
	flex: 1;
	width: auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: var(--wm-text);
	font-family: inherit;
	font-size: 16px; /* 16px or more: iOS does not zoom in on focus */
	-webkit-appearance: none;
	appearance: none;
}

.willi-map .wm-pop-input::placeholder {
	color: #767c83;
	opacity: 1;
}

.willi-map .wm-pop-body {
	padding: 6px 12px 12px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.willi-map .wm-pop-title {
	margin: 12px 4px 8px;
	color: var(--wm-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

.willi-map .wm-pop-empty {
	margin: 18px 4px;
	color: var(--wm-muted);
	text-align: center;
}

/* Loading: a small ring, in a pill in place of its arrow and in the picker. */
.willi-map .wm-spin {
	display: none;
	flex: none;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	opacity: 0.7;
	animation: wm-spin 0.8s linear infinite;
}

.willi-map .wm-chip.is-loading .wm-spin,
.willi-map .wm-pop-loading .wm-spin {
	display: inline-block;
}

.willi-map .wm-chip.is-loading .wm-icon--chevron {
	display: none;
}

.willi-map .wm-pop-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 18px 4px;
	color: var(--wm-muted);
}

.willi-map .wm-opt-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}


.willi-map .wm-opt-grid--wide {
	grid-template-columns: minmax(0, 1fr);
	margin-block: 6px 2px;
}

.willi-map button.wm-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
	min-height: 46px;
	margin: 0;
	padding: 8px 12px;
	border: 1.5px solid transparent;
	border-radius: var(--wm-radius-sm);
	background: var(--wm-bg);
	color: var(--wm-text);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: start;
	white-space: normal;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.willi-map button.wm-opt:hover,
.willi-map button.wm-opt:focus {
	background: var(--wm-blue-soft);
	color: var(--wm-text);
}

.willi-map button.wm-opt:focus-visible {
	border-color: var(--wm-blue);
	outline: none;
}

.willi-map button.wm-opt[aria-pressed="true"] {
	border-color: var(--wm-blue);
	background: var(--wm-blue);
	color: #fff;
}

.willi-map .wm-opt-name {
	min-width: 0;
	overflow-wrap: break-word;
}

.willi-map .wm-opt-count {
	flex: none;
	min-width: 28px;
	padding: 2px 8px;
	border-radius: var(--wm-pill);
	background: var(--wm-surface);
	color: var(--wm-blue);
	font-size: 0.8rem;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.willi-map button.wm-opt[aria-pressed="true"] .wm-opt-count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* The cities with the most points of sale: the brand red marks them. */
.willi-map button.wm-opt--quick {
	border-color: var(--wm-line);
	background: var(--wm-surface);
}

.willi-map .wm-opt--quick .wm-opt-count {
	background: var(--wm-red-soft);
	color: var(--wm-red-dark);
}

.willi-map button.wm-opt--clear {
	justify-content: center;
	border-color: var(--wm-line);
	background: var(--wm-surface);
	color: var(--wm-blue);
}

.willi-map .wm-notice {
	margin: 10px 0 0;
	padding: 10px 14px;
	border-radius: var(--wm-radius-sm);
	background: #fff8ec;
	box-shadow: var(--wm-shadow);
	color: var(--wm-warn);
	font-size: 0.9rem;
	font-weight: 600;
}

/* A short row (small phones, or margins around the locator): tighter, still one row. */
@container (max-width: 329px) {
	.willi-map .wm-chips > .wm-chip {
		gap: 3px;
		padding: 0 7px;
		font-size: 0.8em;
	}

	.willi-map .wm-chips > .wm-chip--select {
		padding-inline-end: 6px;
	}

	.willi-map .wm-chips > .wm-chip .wm-icon {
		width: 14px;
		height: 14px;
	}

	.willi-map .wm-chips > .wm-chip .wm-icon--chevron {
		width: 10px;
		height: 10px;
	}
}

/* Very short: every pill may give way rather than leave the screen. */
@container (max-width: 279px) {
	.willi-map .wm-chips > .wm-chip {
		flex-shrink: 1;
	}
}

/* ---------- Sheet (phones) ---------- */

.willi-map .wm-sheet {
	position: absolute;
	z-index: 900;
	bottom: 0;
	inset-inline: 0;
	display: flex;
	flex-direction: column;
	height: 60%;
	border-radius: 24px 24px 0 0;
	background: var(--wm-surface);
	box-shadow: var(--wm-shadow-up);
	transform: translate3d(0, 40%, 0);
	transition: transform 0.3s var(--wm-ease);
	will-change: transform;
}

.willi-map .wm-sheet.is-dragging {
	transition: none;
}

.willi-map .wm-sheet-head {
	flex: none;
	padding: 0 20px 10px;
	cursor: grab;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.willi-map .wm-sheet.is-dragging .wm-sheet-head {
	cursor: grabbing;
}

.willi-map .wm-grip {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 26px;
	margin: 0;
	padding: 10px 0 8px;
	border: 0;
	background: none;
	cursor: inherit;
}

.willi-map .wm-grip-bar {
	width: 44px;
	height: 5px;
	border-radius: 3px;
	background: #c9cdd2;
}

.willi-map .wm-summary:empty {
	display: none;
}

.willi-map .wm-summary p {
	margin: 0;
}

.willi-map .wm-summary-title {
	color: var(--wm-blue);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.willi-map .wm-summary-meta {
	margin-block-start: 2px !important;
	color: var(--wm-muted);
	font-size: 0.9rem;
}

.willi-map .wm-summary-meta strong {
	color: var(--wm-text);
	font-weight: 700;
}

.willi-map .wm-dot {
	margin-inline: 6px;
}

/* Back to the product on the site. */
.willi-map .wm-product-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-block-start: 6px;
	padding-block: 4px;
	color: var(--wm-blue);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.willi-map .wm-product-link:hover,
.willi-map .wm-product-link:focus-visible {
	color: var(--wm-blue-dark);
}

.willi-map .wm-product-link .wm-icon {
	width: 14px;
	height: 14px;
}

.willi-map .wm-scroll {
	position: relative;
	flex: 1;
	min-height: 0;
	padding: 4px 16px calc(20px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

/* ---------- Title + intro ---------- */

.willi-map .wm-head {
	margin-block-end: 16px;
}

.willi-map:not([data-view="intro"]) .wm-scroll > .wm-head {
	display: none;
}

/* The red tab of the site's section titles ("המוצרים שלנו"): flush with the edge, round on the far side. */
.willi-map .wm-title {
	display: inline-block;
	margin: 0;
	margin-inline-start: -16px;
	padding: 10px 26px 10px 22px;
	border-start-end-radius: 30px;
	border-end-end-radius: 30px;
	background: var(--wm-red);
	color: #fff;
	font-family: inherit;
	font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.7rem);
	font-weight: 600;
	line-height: 1.2;
}

.willi-map .wm-intro {
	max-width: 36ch;
	margin: 12px 0 0;
	color: var(--wm-muted);
	font-size: 1rem;
}

/* ---------- Messages: intro / loading / empty / error ---------- */

.willi-map .wm-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px 8px;
	color: var(--wm-muted);
	text-align: center;
}

.willi-map .wm-message:empty {
	display: none;
}

.willi-map .wm-message p {
	max-width: 34ch;
	margin: 0;
	font-size: 1.02rem;
}

.willi-map .wm-message--intro,
.willi-map .wm-message--loading {
	align-items: stretch;
	padding: 0;
	text-align: start;
}

.willi-map .wm-message--loading {
	gap: 10px;
}

.willi-map .wm-popular-label {
	color: var(--wm-text);
	font-size: 0.95rem !important;
	font-weight: 700;
}

.willi-map .wm-popular {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.willi-map .wm-pick {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	max-width: 100%;
	margin: 0;
	padding: 9px 16px;
	border: 1.5px solid var(--wm-line);
	border-radius: var(--wm-radius-sm);
	background: var(--wm-surface);
	color: var(--wm-text);
	text-align: start;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.willi-map .wm-pick:hover {
	border-color: var(--wm-blue);
	background: var(--wm-blue-soft);
}

.willi-map .wm-pick-name {
	font-weight: 600;
	line-height: 1.3;
}

.willi-map .wm-pick-meta {
	color: var(--wm-muted);
	font-size: 0.8rem;
}

.willi-map .wm-message--error {
	color: var(--wm-text);
}

.willi-map .wm-skeleton {
	display: grid;
	gap: 10px;
	padding: 16px;
	border: 1.5px solid var(--wm-line);
	border-radius: var(--wm-radius);
}

.willi-map .wm-skeleton span {
	display: block;
	height: 14px;
	border-radius: 7px;
	background: linear-gradient(90deg, #eceef0 0%, #f6f7f8 50%, #eceef0 100%);
	background-size: 200% 100%;
	animation: wm-shimmer 1.2s linear infinite;
}

.willi-map .wm-skeleton span:first-child {
	width: 60%;
	height: 18px;
}

/* ---------- Points of sale ---------- */

.willi-map .wm-stores {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.willi-map .wm-store {
	margin: 0;
	padding: 14px 16px 12px;
	border: 1.5px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: var(--wm-surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.willi-map .wm-store:hover {
	border-color: #c4c8cd;
}

.willi-map .wm-store.is-active {
	border-color: var(--wm-red);
	box-shadow: 0 0 0 3px var(--wm-red-soft);
}

.willi-map .wm-store.is-flash {
	animation: wm-flash 1.4s var(--wm-ease);
}

@keyframes wm-flash {
	0% {
		background: var(--wm-red-soft);
		box-shadow: 0 0 0 0 rgba(228, 5, 31, 0.45);
	}

	55% {
		background: var(--wm-red-soft);
		box-shadow: 0 0 0 10px rgba(228, 5, 31, 0);
	}

	100% {
		background: var(--wm-surface);
		box-shadow: 0 0 0 3px var(--wm-red-soft);
	}
}

.willi-map .wm-store-main {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-align: start;
}

.willi-map button.wm-store-main {
	white-space: normal; /* Hello Elementor sets nowrap on every button. */
	cursor: pointer;
}

/* The first card when sorted by distance. */
.willi-map .wm-nearest {
	display: inline-block;
	margin-block-end: 4px;
	padding: 2px 10px;
	border-radius: var(--wm-pill);
	background: var(--wm-red-soft);
	color: var(--wm-red-dark);
	font-size: 0.8rem;
	font-weight: 700;
}

.willi-map .wm-store-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.willi-map .wm-store-name {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.willi-map .wm-dist {
	flex: none;
	padding: 3px 10px;
	border-radius: var(--wm-pill);
	background: var(--wm-blue-soft);
	color: var(--wm-blue);
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.willi-map .wm-store-sub {
	display: block;
	margin-block-start: 4px;
	overflow-wrap: anywhere;
	color: var(--wm-muted);
	font-size: 0.92rem;
}

.willi-map .wm-store-branch {
	color: var(--wm-text);
	font-weight: 600;
}

.willi-map .wm-store-branch::after {
	margin-inline: 6px;
	color: var(--wm-muted);
	font-weight: 400;
	content: "·";
}

.willi-map .wm-approx {
	display: inline-block;
	margin-inline-start: 6px;
	color: var(--wm-warn);
	font-size: 0.8rem;
}

.willi-map .wm-nav-row {
	display: flex;
	gap: 8px;
	margin-block-start: 12px;
}

.willi-map .wm-nav {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--wm-blue);
	border-radius: var(--wm-pill);
	background: var(--wm-surface);
	color: var(--wm-blue);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.willi-map .wm-nav:hover,
.willi-map .wm-nav:focus-visible {
	background: var(--wm-blue-soft);
	color: var(--wm-blue-dark);
}

.willi-map .wm-nav .wm-icon {
	width: 20px;
	height: 20px;
}

/* ---------- Buttons ---------- */

.willi-map .wm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 10px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--wm-pill);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.willi-map .wm-btn--primary {
	background: var(--wm-blue);
	color: #fff;
}

.willi-map .wm-btn--primary:hover {
	background: var(--wm-blue-dark);
}

.willi-map .wm-btn--ghost {
	border-color: var(--wm-blue);
	background: var(--wm-surface);
	color: var(--wm-blue);
}

.willi-map .wm-btn--ghost:hover {
	background: var(--wm-blue-soft);
}

.willi-map .wm-more {
	display: flex;
	width: 100%;
	margin-block-start: 12px;
}

/* ---------- Icons (inline SVG masks — no icon font) ---------- */

.willi-map .wm-icon {
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--wm-i) center / contain no-repeat;
	mask: var(--wm-i) center / contain no-repeat;
}

.willi-map .wm-icon--pin {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E");
}

.willi-map .wm-icon--search {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m19 19-4-4'/%3E%3C/svg%3E");
	width: 22px;
	height: 22px;
}

.willi-map .wm-icon--close {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.willi-map .wm-icon--chevron {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.willi-map .wm-icon--waze,
.willi-map .wm-icon--gmaps {
	background: var(--wm-i) center / contain no-repeat;
	-webkit-mask: none;
	mask: none;
}

/* Waze: the Wazer on its cyan (Simple Icons, CC0). */
.willi-map .wm-icon--waze {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2333CCFF'/%3E%3Cg transform='translate(4.4 4.6) scale(.64)'%3E%3Cpath fill='%23fff' d='M13.218 0C9.915 0 6.835 1.49 4.723 4.148c-1.515 1.913-2.31 4.272-2.31 6.706v1.739c0 .894-.62 1.738-1.862 1.813-.298.025-.547.224-.547.522-.05.82.82 2.31 2.012 3.502.82.844 1.788 1.515 2.832 2.036a3 3 0 0 0 2.955 3.528 2.966 2.966 0 0 0 2.931-2.385h2.509c.323 1.689 2.086 2.856 3.974 2.21 1.64-.546 2.36-2.409 1.763-3.924a12.84 12.84 0 0 0 1.838-1.465 10.73 10.73 0 0 0 3.18-7.65c0-2.882-1.118-5.589-3.155-7.625A10.899 10.899 0 0 0 13.218 0z'/%3E%3Cpath fill='%230B1E2D' d='M13.218 0C9.915 0 6.835 1.49 4.723 4.148c-1.515 1.913-2.31 4.272-2.31 6.706v1.739c0 .894-.62 1.738-1.862 1.813-.298.025-.547.224-.547.522-.05.82.82 2.31 2.012 3.502.82.844 1.788 1.515 2.832 2.036a3 3 0 0 0 2.955 3.528 2.966 2.966 0 0 0 2.931-2.385h2.509c.323 1.689 2.086 2.856 3.974 2.21 1.64-.546 2.36-2.409 1.763-3.924a12.84 12.84 0 0 0 1.838-1.465 10.73 10.73 0 0 0 3.18-7.65c0-2.882-1.118-5.589-3.155-7.625A10.899 10.899 0 0 0 13.218 0zm0 1.217c2.558 0 4.967.994 6.78 2.807a9.525 9.525 0 0 1 2.807 6.78A9.526 9.526 0 0 1 20 17.585a9.647 9.647 0 0 1-6.78 2.807h-2.46a3.008 3.008 0 0 0-2.93-2.41 3.03 3.03 0 0 0-2.534 1.367v.024a8.945 8.945 0 0 1-2.41-1.788c-.844-.844-1.316-1.614-1.515-2.11a2.858 2.858 0 0 0 1.441-.846 2.959 2.959 0 0 0 .795-2.036v-1.789c0-2.11.696-4.197 2.012-5.861 1.863-2.385 4.62-3.726 7.6-3.726zm-2.41 5.986a1.192 1.192 0 0 0-1.191 1.192 1.192 1.192 0 0 0 1.192 1.193A1.192 1.192 0 0 0 12 8.395a1.192 1.192 0 0 0-1.192-1.192zm7.204 0a1.192 1.192 0 0 0-1.192 1.192 1.192 1.192 0 0 0 1.192 1.193 1.192 1.192 0 0 0 1.192-1.193 1.192 1.192 0 0 0-1.192-1.192zm-7.377 4.769a.596.596 0 0 0-.546.845 4.813 4.813 0 0 0 4.346 2.757 4.77 4.77 0 0 0 4.347-2.757.596.596 0 0 0-.547-.845h-.025a.561.561 0 0 0-.521.348 3.59 3.59 0 0 1-3.254 2.061 3.591 3.591 0 0 1-3.254-2.061.64.64 0 0 0-.546-.348z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Google Maps: the 2020 pin, in Google's colours. */
.willi-map .wm-icon--gmaps {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92.3 132.3'%3E%3Cpath fill='%231a73e8' d='M60.2 2.2C55.8.8 51 0 46.1 0 32 0 19.3 6.4 10.8 16.5l21.8 18.3L60.2 2.2z'/%3E%3Cpath fill='%23ea4335' d='M10.8 16.5C4.1 24.5 0 34.9 0 46.1c0 8.7 1.7 15.7 4.6 22l28-33.3-21.8-18.3z'/%3E%3Cpath fill='%234285f4' d='M46.2 28.5c9.8 0 17.7 7.9 17.7 17.7 0 4.3-1.6 8.3-4.2 11.4 0 0 13.9-16.6 27.5-32.7-5.6-10.8-15.3-19-27-22.7L32.6 34.8c3.3-3.8 8.1-6.3 13.6-6.3'/%3E%3Cpath fill='%23fbbc04' d='M46.2 63.8c-9.8 0-17.7-7.9-17.7-17.7 0-4.3 1.5-8.3 4.1-11.3l-28 33.3c4.8 10.6 12.8 19.2 21 29.9l34.1-40.5c-3.3 3.9-8.1 6.3-13.5 6.3'/%3E%3Cpath fill='%2334a853' d='M59.1 109.2c15.4-24.1 33.3-35 33.3-63 0-7.7-1.9-14.9-5.2-21.3L25.6 98c2.6 3.4 5.3 7.3 7.9 11.3 9.4 14.5 6.8 23.1 12.8 23.1s3.4-8.7 12.8-23.2'/%3E%3C/svg%3E");
}

.willi-map .wm-icon--back {
	/* Points left: forward in RTL. */
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E");
}

.willi-map .wm-icon--empty {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 15.5s1.2-1.5 3.5-1.5 3.5 1.5 3.5 1.5M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E");
	width: 44px;
	height: 44px;
	color: var(--wm-muted);
}

/* ---------- Desktop: side panel on the right (RTL start), map on the rest ---------- */

@media (min-width: 960px) {
	.willi-map {
		display: grid;
		grid-template-columns: var(--wm-panel) minmax(0, 1fr);
	}

	.willi-map .wm-map-wrap {
		position: relative;
		grid-row: 1;
		grid-column: 2;
	}

	.willi-map .leaflet-control-attribution {
		border-radius: 0 8px 0 0;
	}

	.willi-map .wm-panel {
		position: relative;
		z-index: 2;
		display: flex;
		flex-direction: column;
		grid-row: 1;
		grid-column: 1;
		min-height: 0;
		background: var(--wm-surface);
		box-shadow: 4px 0 24px rgba(24, 27, 30, 0.08);
	}

	.willi-map .wm-panel > .wm-head {
		margin: 0;
		padding: 24px 24px 4px;
	}

	.willi-map .wm-title {
		margin-inline-start: -24px;
	}

	.willi-map .wm-top {
		position: static;
		padding: 16px 24px 4px;
	}

	.willi-map .wm-pop {
		inset-inline-end: auto;
		width: 560px;
		max-height: min(70vh, 560px);
	}

	.willi-map .wm-opt-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.willi-map .wm-opt-grid--wide {
		grid-template-columns: minmax(0, 1fr);
	}

	.willi-map .wm-search {
		box-shadow: none;
	}

	.willi-map .wm-chip {
		box-shadow: none;
	}

	.willi-map .wm-sheet {
		position: static;
		flex: 1;
		min-height: 0;
		height: auto !important;
		border-radius: 0;
		box-shadow: none;
		transform: none !important;
		transition: none;
	}

	.willi-map .wm-sheet-head {
		margin-block-start: 12px;
		padding: 14px 24px 12px;
		border-block-start: 1px solid var(--wm-line);
		cursor: default;
		touch-action: auto;
	}

	.willi-map .wm-grip {
		display: none;
	}

	.willi-map[data-view="intro"] .wm-sheet-head {
		display: none;
	}

	.willi-map .wm-scroll {
		padding: 4px 24px 24px;
	}

	.willi-map[data-view="intro"] .wm-scroll {
		padding-block-start: 16px;
	}

	.willi-map .wm-store {
		cursor: default;
	}

	.willi-map .wm-message {
		padding-block: 32px;
	}
}

@media (min-width: 1400px) {
	.willi-map {
		--wm-panel: 460px;
	}
}

/* ---------- Leaflet bits ---------- */

.willi-map .wm-marker {
	border: 0;
	background: none;
}

.willi-map .wm-pin {
	display: block;
	width: 100%;
	height: 100%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath d='M16 1.5C8 1.5 1.5 7.8 1.5 15.6 1.5 26.4 16 38.5 16 38.5S30.5 26.4 30.5 15.6C30.5 7.8 24 1.5 16 1.5Z' fill='%23E4051F' stroke='white' stroke-width='2.2'/%3E%3Ccircle cx='16' cy='15.5' r='5.2' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
	transition: transform 0.15s var(--wm-ease);
	transform-origin: 50% 100%;
}

.willi-map .wm-marker--active .wm-pin {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath d='M16 1.5C8 1.5 1.5 7.8 1.5 15.6 1.5 26.4 16 38.5 16 38.5S30.5 26.4 30.5 15.6C30.5 7.8 24 1.5 16 1.5Z' fill='%231065AF' stroke='white' stroke-width='2.2'/%3E%3Ccircle cx='16' cy='15.5' r='5.2' fill='white'/%3E%3C/svg%3E");
}

.willi-map .wm-marker:hover .wm-pin {
	transform: scale(1.08);
}

.willi-map .leaflet-marker-icon:focus-visible {
	outline: 3px solid var(--wm-blue);
	outline-offset: 2px;
}

.willi-map .wm-cluster {
	border: 0;
	background: none;
}

.willi-map .wm-cluster span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--wm-red);
	box-shadow: 0 0 0 5px rgba(228, 5, 31, 0.2), 0 2px 6px rgba(0, 0, 0, 0.25);
	color: #fff;
	font-family: var(--wm-font);
	font-size: 15px;
	font-weight: 700;
}

.willi-map .wm-me {
	border: 0;
	background: none;
}

.willi-map .wm-me span {
	position: relative;
	display: block;
	width: 22px;
	height: 22px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--wm-blue);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.willi-map .wm-me span::after {
	position: absolute;
	inset: -9px;
	border-radius: 50%;
	background: rgba(16, 101, 175, 0.22);
	content: "";
	animation: wm-ring 2s ease-out infinite;
}

.willi-map .leaflet-popup-content-wrapper {
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(24, 27, 30, 0.2);
	direction: rtl;
	text-align: right;
}

.willi-map .leaflet-popup-content {
	margin: 16px 18px 14px;
	font-family: var(--wm-font);
	font-size: 0.95rem;
	line-height: 1.4;
}

.willi-map .leaflet-container a.leaflet-popup-close-button {
	right: auto;
	left: 4px;
	top: 4px;
	width: 28px;
	height: 28px;
	color: var(--wm-muted);
	font: 22px/28px Arial, sans-serif;
}

.willi-map .wm-popup {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 210px;
	padding-inline-end: 18px;
}

.willi-map .wm-popup-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}

.willi-map .wm-popup-addr {
	color: var(--wm-muted);
}

.willi-map .wm-popup-dist {
	color: var(--wm-blue);
	font-weight: 700;
}

.willi-map .wm-popup .wm-nav-row {
	margin-block-start: 10px;
}

.willi-map .wm-popup .wm-nav {
	min-height: 38px;
	padding: 0 10px;
	font-size: 0.85rem;
}

.willi-map .leaflet-container a.wm-nav {
	color: var(--wm-blue);
}

.willi-map .leaflet-container a.wm-nav:hover {
	color: #fff;
}

/* ---------- Utilities & motion ---------- */

.willi-map .wm-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

.willi-map .wm-noscript {
	margin: 24px;
	padding: 16px;
	border-radius: var(--wm-radius);
	background: var(--wm-surface);
}

@keyframes wm-shimmer {
	from {
		background-position: 200% 0;
	}
	to {
		background-position: -200% 0;
	}
}

@keyframes wm-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes wm-pulse {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-3px);
	}
}

@keyframes wm-ring {
	from {
		opacity: 1;
		transform: scale(0.6);
	}
	to {
		opacity: 0;
		transform: scale(1.6);
	}
}

@media (prefers-reduced-motion: reduce) {
	.willi-map *,
	.willi-map *::before,
	.willi-map *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
