/* Mesotica – Nanomatrix térkép (WP Store Locator helyett) */
/* A Vásárlás oldalon a téma 70 px-es morzsasáv-margója és az üres
   (elrejtett) cím 50 px-es margója felesleges üres teret ad. */
body.page-id-1481 .main-container .breadcrumb-container {
	margin-bottom: 0;
}

body.page-id-1481 .main-container .entry-header {
	display: none;
}

body.page-id-1481 .main-container .entry-content {
	padding-top: 26px;
}

body.page-id-1481 .mst-intro {
	margin-bottom: 24px;
}

body.page-id-1481 .mst-map {
	margin: 0 0 20px;
}

body.page-id-1481 .page-content {
	padding-bottom: 20px;
}

/* Az oldal intro szövege (a shortcode felett) */
.mst-intro,
.mst-intro *,
.mst-intro *::before,
.mst-intro *::after {
	box-sizing: border-box;
}

.mst-intro {
	max-width: 820px;
	margin: 0 auto 30px;
	padding: 0 10px;
	text-align: center;
}

.mst-intro p {
	margin: 0;
}

.mst-intro .mst-intro__lead {
	margin: 0;
	color: #323232;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.mst-intro .mst-intro__sub {
	margin: 10px 0 0;
	color: #666;
	font-size: 16px;
	line-height: 1.7;
}

@media (max-width: 767px) {
	.mst-intro {
		margin-bottom: 22px;
	}

	.mst-intro .mst-intro__lead {
		font-size: 19px;
	}

	.mst-intro .mst-intro__sub {
		font-size: 15px;
	}
}

.mst-map,
.mst-map *,
.mst-map *::before,
.mst-map *::after {
	box-sizing: border-box;
}

.mst-map {
	--mst-accent: #815787;
	--mst-accent-dark: #6b4670;
	--mst-ink: #323232;
	--mst-muted: #767676;
	--mst-line: #e6e1e8;
	--mst-panel: #fbfafb;
	display: flex;
	position: relative;
	isolation: isolate;
	margin: 28px 0 32px;
	background: #fff;
	border: 1px solid var(--mst-line);
	border-radius: 10px;
	overflow: hidden;
	color: var(--mst-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
}

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

.mst-map img {
	max-width: none;
}

.mst-map ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mst-map li {
	margin: 0;
	list-style: none;
}

.mst-map a {
	text-decoration: none;
}

.mst-map button,
.mst-map input {
	font-family: inherit;
}

/* ---------- Bal oldali panel ---------- */
.mst-map__panel {
	display: flex;
	flex: 0 0 360px;
	flex-direction: column;
	width: 360px;
	min-height: 560px;
	max-height: 560px;
	background: var(--mst-panel);
	border-right: 1px solid var(--mst-line);
}

.mst-map__search {
	position: relative;
	flex: 0 0 auto;
	padding: 14px;
	background: #fff;
	border-bottom: 1px solid var(--mst-line);
}

.mst-map__input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 86px 0 40px;
	border: 1px solid #d8d2da;
	border-radius: 6px;
	background: #fff;
	color: var(--mst-ink);
	font-size: 14px;
	line-height: 44px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.mst-map__input::-webkit-search-cancel-button {
	display: none;
}

.mst-map__input::placeholder {
	color: #9b939e;
	opacity: 1;
}

.mst-map__input:focus {
	border-color: var(--mst-accent);
	box-shadow: 0 0 0 3px rgba(129, 87, 135, 0.14);
}

.mst-map__search-icon {
	position: absolute;
	top: 50%;
	left: 28px;
	transform: translateY(-50%);
	color: #8d8491;
	pointer-events: none;
}

.mst-map__clear {
	position: absolute;
	top: 50%;
	right: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6f6872;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.mst-map__clear:hover,
.mst-map__clear:focus-visible {
	background: #f1edf3;
	color: var(--mst-ink);
	outline: none;
}

.mst-map__geo {
	position: absolute;
	top: 50%;
	right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6f6872;
	cursor: pointer;
	transform: translateY(-50%);
}

.mst-map__geo:hover,
.mst-map__geo:focus-visible {
	background: #f1edf3;
	color: var(--mst-accent);
	outline: none;
}

.mst-map__geo.is-loading {
	color: var(--mst-accent);
	animation: mst-pulse 1.1s ease-in-out infinite;
}

@keyframes mst-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

.mst-map__meta {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px;
	background: #fff;
	border-bottom: 1px solid var(--mst-line);
	color: var(--mst-muted);
	font-size: 12.5px;
}

.mst-map__count {
	font-weight: 600;
	color: var(--mst-ink);
}

.mst-map__hint {
	flex: 1 1 auto;
	text-align: right;
}

.mst-map__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	background: var(--mst-panel);
}

.mst-map__list {
	flex: 1 1 auto;
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--mst-panel);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #cfc6d2 transparent;
}

.mst-map__list::-webkit-scrollbar {
	width: 8px;
}

.mst-map__list::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: #cfc6d2;
}

.mst-map__list::-webkit-scrollbar-track {
	background: transparent;
}

.mst-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 16px 12px;
	background: var(--mst-panel);
	border-bottom: 1px solid #efeaf1;
	cursor: pointer;
	transition: background 0.14s ease;
}

.mst-row:hover,
.mst-row:focus-visible {
	background: #f4eff6;
	outline: none;
}

.mst-row.is-active {
	background: #f1e9f4;
	box-shadow: inset 3px 0 0 var(--mst-accent);
}

.mst-row__body {
	min-width: 0;
}

.mst-row__line {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.mst-row__name {
	display: block;
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--mst-ink);
	font-size: 14px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mst-row__meta {
	display: block;
	margin-top: 2px;
	overflow: hidden;
	color: var(--mst-muted);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mst-row__dist {
	flex: 0 0 auto;
	color: var(--mst-accent);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.mst-map__detail {
	flex: 1 1 auto;
	padding: 16px;
	overflow-y: auto;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.mst-detail__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.mst-detail__id {
	min-width: 0;
}

.mst-detail__name {
	color: var(--mst-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.mst-detail__place {
	margin-top: 3px;
	color: var(--mst-muted);
	font-size: 12.5px;
}

.mst-detail__back {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1edf3;
	color: #6f6872;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.mst-detail__back:hover,
.mst-detail__back:focus-visible {
	background: #e7dfe9;
	color: var(--mst-ink);
	outline: none;
}

.mst-detail__label {
	margin: 20px 0 8px;
	color: var(--mst-muted);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mst-detail__contacts {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mst-detail__contact {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--mst-ink);
	font-size: 13px;
	line-height: 1.4;
}

.mst-detail__contact svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--mst-accent);
}

.mst-detail__contact:hover,
.mst-detail__contact:focus-visible {
	color: var(--mst-accent);
	outline: none;
}

.mst-detail__route {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding: 11px 16px;
	border-radius: 6px;
	background: var(--mst-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.mst-detail__route svg {
	color: #fff;
}

.mst-detail__route:hover,
.mst-detail__route:focus-visible {
	background: var(--mst-accent-dark);
	color: #fff;
	outline: none;
}

.mst-map__empty {
	padding: 26px 18px;
	background: var(--mst-panel);
	color: var(--mst-muted);
	font-size: 13px;
	text-align: center;
}

/* ---------- Térkép ---------- */
.mst-map__canvas {
	flex: 1 1 auto;
	min-width: 0;
	height: 560px;
	background: #eef0f2;
}

.mst-map .leaflet-container {
	background: #eef0f2;
	font-family: inherit;
	font-size: 13px;
}

.mst-map .leaflet-control-attribution {
	padding: 2px 6px;
	background: rgba(255, 255, 255, 0.85);
	color: #555;
	font-size: 10px;
}

.mst-map .leaflet-control-attribution a {
	color: #555;
}

.mst-map .leaflet-control-zoom a {
	color: var(--mst-ink);
}

/* Marker */
.mst-map .leaflet-div-icon {
	background: transparent;
	border: 0;
}

.mst-pin__dot {
	display: block;
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--mst-accent);
	box-shadow: 0 2px 6px rgba(50, 30, 55, 0.45);
}

.mst-pin__dot:hover {
	background: var(--mst-accent-dark);
}

.mst-user__dot {
	display: block;
	width: 16px;
	height: 16px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #2b7de9;
	box-shadow: 0 0 0 6px rgba(43, 125, 233, 0.2);
}

/* Cluster */
.mst-map .marker-cluster-small,
.mst-map .marker-cluster-medium,
.mst-map .marker-cluster-large {
	background-color: rgba(129, 87, 135, 0.28);
}

.mst-map .marker-cluster-small div,
.mst-map .marker-cluster-medium div,
.mst-map .marker-cluster-large div {
	background-color: var(--mst-accent);
	color: #fff;
	font-family: inherit;
	font-weight: 600;
}

.mst-map .marker-cluster span {
	line-height: 30px;
}

/* Popup */
.mst-map .leaflet-popup-content-wrapper {
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(35, 20, 40, 0.18);
}

.mst-map .leaflet-popup-content {
	margin: 14px 16px;
	color: var(--mst-ink);
	font-size: 13px;
	line-height: 1.5;
}

.mst-popup__name {
	margin-bottom: 3px;
	color: var(--mst-ink);
	font-size: 15px;
	font-weight: 700;
}

.mst-popup__addr {
	color: var(--mst-muted);
	font-size: 12.5px;
}

.mst-popup__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 8px;
	font-size: 12.5px;
}

.mst-popup__tel,
.mst-popup__route {
	color: var(--mst-accent);
	font-weight: 600;
}

.mst-popup__tel:hover,
.mst-popup__route:hover {
	color: var(--mst-accent-dark);
	text-decoration: underline;
}

/* ---------- Reszponzív ---------- */
@media (max-width: 1024px) {
	.mst-map {
		flex-direction: column;
	}

	.mst-map__canvas {
		order: 1;
		height: 320px;
	}

	.mst-map__panel {
		order: 2;
		width: 100%;
		min-height: 0;
		max-height: none;
		border-top: 1px solid var(--mst-line);
		border-right: 0;
	}

	.mst-map__body {
		max-height: 380px;
	}
}

@media (max-width: 767px) {
	/* Telefonon a keresőmező kerüljön a térkép fölé, hogy a hajtás felett
	   látszódjon; a térkép, a számláló és a lista utána jön. */
	.mst-map__panel {
		display: contents;
	}

	.mst-map__search {
		order: 1;
	}

	.mst-map__canvas {
		order: 2;
	}

	.mst-map__meta {
		order: 3;
	}

	.mst-map__body {
		order: 4;
	}
}

@media (max-width: 600px) {
	.mst-map {
		margin: 18px 0 22px;
		border-radius: 8px;
	}

	.mst-map__canvas {
		height: 260px;
	}

	.mst-map__search {
		padding: 10px;
	}

	.mst-map__search-icon {
		left: 24px;
	}

	.mst-map__clear {
		right: 54px;
	}

	.mst-map__geo {
		right: 16px;
	}

	.mst-map__input {
		padding-right: 82px;
	}

	.mst-map__meta {
		padding: 9px 12px;
	}

	.mst-row {
		padding: 10px 12px 11px;
	}

	.mst-map__detail {
		padding: 14px;
	}

	.mst-map__body {
		max-height: 360px;
	}
}
