/* Visited Places Map – base styles. Colours/radius/typography are overridden by Bricks controls. */
.vpm-wrap {
	--vpm-ink: #1c2420;
	--vpm-muted: #5d6a63;
	--vpm-paper: #ffffff;
	--vpm-line: #d9e0db;
	--vpm-accent: #1f6b4e;
	--vpm-accent-ink: #ffffff;
	color: var(--vpm-ink);
	position: relative;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.vpm-wrap button,
.vpm-wrap select,
.vpm-wrap a,
.vpm-wrap h3,
.vpm-wrap h4,
.vpm-wrap p { font-family: inherit; }
.vpm-btn:focus-visible,
.vpm-more:focus-visible,
.vpm-modal__x:focus-visible,
.vpm-pin:focus-visible {
	outline: 2px solid var(--vpm-accent);
	outline-offset: 2px;
}

/* ---- Map pin: tier + name ---- */
.vpm-pin {
	position: absolute;
	transform: translate(-50%, calc(-100% - 7px));
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 190px;
	margin: 0;
	padding: 4px 10px;
	border: 1px solid rgba(20, 30, 25, 0.22);
	border-radius: 999px;
	background-color: var(--vpm-paper);
	color: var(--vpm-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(10, 20, 15, 0.28);
}
.vpm-pin::after { /* pointer toward the exact spot */
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 8px;
	height: 8px;
	background: inherit;
	border-right: 1px solid rgba(20, 30, 25, 0.22);
	border-bottom: 1px solid rgba(20, 30, 25, 0.22);
	transform: translateX(-50%) rotate(45deg);
}
.vpm-pin:hover,
.vpm-pin:focus-visible { z-index: 10; }
.vpm-pin__tier {
	flex: none;
	font-size: 12px;
	line-height: 1;
	letter-spacing: -1px;
}
.vpm-pin--closed { opacity: 0.5; } /* overridden by the "Closed pin opacity" control */
.vpm-pin--closed .vpm-pin__name { text-decoration: line-through; }
.vpm-pin__name { overflow: hidden; text-overflow: ellipsis; color: inherit; }
.vpm-wrap [data-tier="A"] { --vpm-tier: #a8590b; }
.vpm-wrap [data-tier="B"] { --vpm-tier: #1f6b4e; }
.vpm-pin__tiers { flex: none; display: inline-flex; gap: 3px; }

.vpm-stage {
	position: relative;
	overflow: hidden;
	background: #eef2ef;
}
.vpm-map {
	position: relative;
	z-index: 0; /* contains Google/Leaflet internal z-indexes */
	width: 100%;
	height: 600px; /* overridden by the "Map height" control */
}

.vpm-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.72);
	color: var(--vpm-ink);
}
.vpm-overlay[hidden] { display: none; }
.vpm-overlay--error {
	pointer-events: auto;
	background: #f6f1ee;
	color: #7a1f1f;
}

/* ---- Modal ---- */
.vpm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.vpm-modal[hidden] { display: none; }
.vpm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 25, 20, 0.55);
}
.vpm-modal__dialog {
	position: relative;
	width: min(480px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 28px 28px 24px;
	background: var(--vpm-paper);
	color: var(--vpm-ink);
	border-radius: 14px;
	line-height: 1.55;
	box-shadow: 0 24px 60px rgba(10, 20, 15, 0.35);
}
.vpm-modal__dialog:focus { outline: none; }
.vpm-modal__x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: var(--vpm-muted);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.vpm-modal__x:hover { color: var(--vpm-ink); }
.vpm-modal__title {
	margin: 0 36px 10px 0;
	font-size: 1.4em;
	line-height: 1.25;
}
.vpm-closed-label {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #c62828;
	color: #fff;
	font-size: 0.55em;
	font-weight: 700;
	letter-spacing: 0.04em;
	vertical-align: middle;
}
.vpm-closed-label[hidden] { display: none; }
.vpm-modal__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin: 0 0 12px;
	color: var(--vpm-muted);
}
.vpm-meta-tier,
.vpm-meta-price { display: inline-flex; align-items: center; gap: 6px; }
.vpm-meta-price strong { color: var(--vpm-ink); }
.vpm-modal__meta[hidden],
.vpm-modal__list[hidden],
.vpm-meta-tier[hidden],
.vpm-meta-price[hidden],
.vpm-modal__address[hidden],
.vpm-modal__desc[hidden],
.vpm-modal__more[hidden] { display: none; }
.vpm-badge {
	display: inline-block;
	min-width: 1.9em;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--vpm-tier, var(--vpm-accent));
	color: var(--vpm-accent-ink);
	font-weight: 700;
	text-align: center;
}
.vpm-modal__address,
.vpm-modal__times { margin: 0 0 12px; }
.vpm-modal__times[hidden] { display: none; }
.vpm-label { color: var(--vpm-muted); margin-right: 6px; }
.vpm-modal__desc p { margin: 0 0 0.8em; }
.vpm-modal__desc > :last-child { margin-bottom: 0; }
.vpm-modal__more { margin: 12px 0 0; }
.vpm-more { color: var(--vpm-accent); text-decoration: underline; text-underline-offset: 3px; }

.vpm-modal__list {
	display: flex;
	flex-direction: column;
	margin-top: 4px;
}
.vpm-item {
	padding: 14px 0;
	border-top: 1px solid var(--vpm-line);
}
.vpm-item:first-child { border-top: 0; padding-top: 4px; }
.vpm-item__title { margin: 0 0 6px; font-size: 1.05em; line-height: 1.3; }
.vpm-item__title .vpm-closed-label { font-size: 0.7em; }
.vpm-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 8px;
	color: var(--vpm-muted);
}
.vpm-item__meta .vpm-meta-tier,
.vpm-item__meta .vpm-meta-price { display: inline-flex; align-items: center; gap: 6px; }
.vpm-item__meta strong { color: var(--vpm-ink); }
.vpm-item__times { margin: 0 0 8px; }
.vpm-item__desc p { margin: 0 0 0.7em; }
.vpm-item__desc > :last-child { margin-bottom: 0; }
.vpm-item__more { margin: 8px 0 0; }
.vpm-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}
.vpm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.vpm-btn--primary { background: var(--vpm-accent); color: var(--vpm-accent-ink); }
.vpm-btn--primary:hover { filter: brightness(1.08); }
.vpm-btn[hidden] { display: none; }
.vpm-btn--tiktok { background: #000; color: #fff; }
.vpm-btn--tiktok:hover { background: #222; }
.vpm-btn--ghost { background: transparent; border-color: var(--vpm-line); color: var(--vpm-ink); }
.vpm-btn--ghost:hover { background: #f2f5f3; }

@media (max-width: 480px) {
	.vpm-modal__dialog { padding: 22px 18px 18px; }
	.vpm-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: no-preference) {
	.vpm-modal:not([hidden]) .vpm-modal__dialog { animation: vpm-pop 0.18s ease-out; }
	@keyframes vpm-pop {
		from { opacity: 0; transform: translateY(8px) scale(0.98); }
		to { opacity: 1; transform: none; }
	}
}

/* ---- OpenStreetMap (Leaflet) ---- */
.vpm-stage { isolation: isolate; }
.vpm-overlay { z-index: 1; }
.vpm-wrap .leaflet-container { font-family: inherit; }
.vpm-leaflet-pin { width: 0; height: 0; }
.vpm-leaflet-pin .vpm-pin { left: 0; top: 0; }
.vpm-leaflet-pin:hover,
.vpm-leaflet-pin:focus-within { z-index: 10000 !important; }

/* ---- Floating card ---- */
.vpm-card {
	position: absolute;
	z-index: 2;
	top: 16px;
	left: 16px;
	width: 320px;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 32px);
	overflow: auto;
	padding: 18px;
	background-color: var(--vpm-paper);
	color: var(--vpm-ink);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(10, 20, 15, 0.22);
	line-height: 1.5;
}
.vpm-card__title { margin: 0 0 6px; font-size: 1.25em; line-height: 1.25; }
.vpm-about { margin: 0 0 12px; }
.vpm-card__desc { margin: 0 0 12px; color: var(--vpm-muted); font-size: 0.92em; }
.vpm-card__btn { width: 100%; margin-bottom: 12px; }
.vpm-about .vpm-card__btn { margin: 0; }
.vpm-about > .vpm-card__desc:not(:last-child) { margin-bottom: 12px; }
.vpm-about > .vpm-card__desc:last-child { margin-bottom: 0; }
.vpm-card > :last-child { margin-bottom: 0; }

.vpm-filters { margin: 0 0 12px; border-top: 1px solid var(--vpm-line); padding-top: 10px; }
.vpm-filters > summary,
.vpm-about > summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 0.9em;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.vpm-filters > summary::-webkit-details-marker,
.vpm-about > summary::-webkit-details-marker { display: none; }
.vpm-filters > summary::after,
.vpm-about > summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--vpm-muted);
	border-bottom: 2px solid var(--vpm-muted);
	transform: rotate(45deg);
	transition: transform 0.15s;
}
.vpm-filters[open] > summary::after,
.vpm-about[open] > summary::after { transform: rotate(-135deg); }
.vpm-filters > summary:focus-visible,
.vpm-about > summary:focus-visible { outline: 2px solid var(--vpm-accent); outline-offset: 3px; border-radius: 4px; }
.vpm-filters__body { display: grid; gap: 10px; margin-top: 10px; }
.vpm-filter { display: grid; gap: 4px; font-size: 0.85em; color: var(--vpm-muted); }
.vpm-filter select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--vpm-line);
	border-radius: 8px;
	background-color: var(--vpm-paper);
	color: var(--vpm-ink);
	font: inherit;
	font-size: 14px;
}
.vpm-filter select:focus-visible { outline: 2px solid var(--vpm-accent); outline-offset: 1px; }

.vpm-locate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--vpm-line);
	border-radius: 8px;
	background: transparent;
	color: var(--vpm-ink);
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}
.vpm-locate:hover:not(:disabled) { background: #f2f5f3; }
.vpm-locate:focus-visible { outline: 2px solid var(--vpm-accent); outline-offset: 2px; }
.vpm-locate:disabled { opacity: 0.6; cursor: default; }
.vpm-locate.is-loading svg { animation: vpm-pulse 1s ease-in-out infinite; }
.vpm-locate-msg { margin: 8px 0 0; font-size: 0.85em; color: #7a1f1f; }
.vpm-locate-msg:empty { display: none; }
@keyframes vpm-pulse { 50% { opacity: 0.35; } }

/* desktop: description is always visible, so no toggle row */
@media (min-width: 641px) {
	.vpm-about > summary { display: none; }
}

@media (max-width: 640px) {
	.vpm-card {
		top: 8px;
		left: 8px;
		right: 8px;
		width: auto;
		max-width: none;
		max-height: calc(100% - 16px);
		padding: 14px;
		border-radius: 12px;
	}
	.vpm-card__title { font-size: 1.1em; }
	.vpm-about { margin-bottom: 10px; padding-top: 8px; border-top: 1px solid var(--vpm-line); }
	.vpm-about > summary { display: flex; }
	.vpm-about[open] > .vpm-card__desc { margin-top: 8px; }
	.vpm-about[open] > .vpm-card__desc:not(:last-child) { margin-bottom: 10px; }
	.vpm-card__btn { margin-bottom: 10px; }
}

/* ---- v1.10: SVG stars, social icon buttons, review, clusters, touch ---- */
.vpm-stars { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.vpm-star { width: 12px; height: 12px; fill: currentColor; flex: none; }
.vpm-pin__tier { display: inline-flex; align-items: center; color: #f0a500; font-size: 0; letter-spacing: 0; }
.vpm-badge { display: inline-flex; align-items: center; gap: 5px; }
.vpm-badge .vpm-star { width: 13px; height: 13px; }

.vpm-pin,
.vpm-cluster {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}
.vpm-cluster {
	position: absolute;
	transform: translate(-50%, -50%);
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border: 3px solid rgba(255, 255, 255, 0.92);
	border-radius: 999px;
	background: var(--vpm-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(10, 20, 15, 0.35);
}
.vpm-cluster:hover,
.vpm-cluster:focus-visible { z-index: 10; filter: brightness(1.1); }
.vpm-cluster:focus-visible { outline: 2px solid var(--vpm-accent); outline-offset: 2px; }
.vpm-leaflet-pin .vpm-cluster { left: 0; top: 0; }

/* Icon-only social buttons: shrink to the logo */
.vpm-btn--icon {
	flex: none;
	width: auto;
	padding: 10px;
	line-height: 0;
}
.vpm-btn--icon svg { width: 20px; height: 20px; display: block; }
.vpm-btn--tiktok { background: #000; color: #fff; }
.vpm-btn--tiktok:hover { background: #222; }
.vpm-btn--instagram {
	background: linear-gradient(135deg, #6a11cb 0%, #c13584 55%, #ff4f8b 100%);
	color: #fff;
}
.vpm-btn--instagram:hover { filter: brightness(1.1); }
.vpm-item__social { display: flex; gap: 8px; margin: 10px 0 0; }

/* Review block */
.vpm-modal__review,
.vpm-item__review {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-left: 3px solid var(--vpm-accent);
	border-radius: 0 8px 8px 0;
	background: #f3f6f4;
}
.vpm-modal__review[hidden] { display: none; }
.vpm-modal__review .vpm-label,
.vpm-item__review .vpm-label { display: block; margin: 0 0 4px; font-size: 0.8em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.vpm-review p,
.vpm-item__reviewbody p { margin: 0 0 0.6em; }
.vpm-review > :last-child,
.vpm-item__reviewbody > :last-child { margin-bottom: 0; }
