/*
 * Hidden Six — map UI.
 * Tokens: cream #FFF8F0, night indigo #1E1A3A, coral #F2735E, lagoon #3CC6C0,
 * butter #F6D66B, lilac #B79CED, raspberry #C2305A (links / rumor),
 * dark teal #0B7A7C (official), light lagoon #DDF0EE, secondary text #5E5873,
 * border #EDE3D6. No gradients, no emoji. Pill buttons, round markers with white ring.
 */

.hs-map {
	--hs-map-height: 70vh;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #FFF8F0;
	color: #1E1A3A;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	border: 1px solid #EDE3D6;
	border-radius: 20px;
	padding: 12px;
	box-sizing: border-box;
}

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

.hs-map--fullscreen {
	position: fixed;
	inset: 0;
	z-index: 100000;
	border-radius: 0;
	--hs-map-height: calc(100dvh - 140px);
}

.hs-map:fullscreen {
	--hs-map-height: calc(100vh - 140px);
}

.hs-mono,
.hs-map__label {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 500;
}

.hs-map__label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5E5873;
	margin: 0 0 4px;
}

.hs-map__banner {
	margin: 0;
	padding: 10px 16px;
	border-radius: 999px;
	background: #F6D66B;
	color: #1E1A3A;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 500;
	font-size: 14px;
	text-align: center;
	border: 2px solid #1E1A3A;
}

.hs-map__notice {
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: #DDF0EE;
	color: #1E1A3A;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 500;
	font-size: 13px;
	text-align: center;
}

.hs-map--illustrated .hs-map__canvas,
.hs-map--illustrated .leaflet-container {
	background: #BFE7E3;
}

.hs-map__shared-banner {
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: #DDF0EE;
	text-align: center;
}

/* Toolbar */
.hs-map__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.hs-map__search {
	flex: 1 1 240px;
	margin: 0;
}

.hs-map__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.hs-map__levels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border: 0;
	margin: 0;
	padding: 0;
}

.hs-map__levels legend {
	width: 100%;
	padding: 0;
}

.hs-input,
.hs-select {
	width: 100%;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid #EDE3D6;
	border-radius: 999px;
	background: #FFFFFF;
	color: #1E1A3A;
	font: inherit;
}

textarea.hs-input {
	border-radius: 16px;
	min-height: 88px;
}

.hs-select {
	width: auto;
	min-width: 180px;
}

/* Pills */
.hs-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid #EDE3D6;
	border-radius: 999px;
	background: #FFFFFF;
	color: #1E1A3A;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.hs-pill:hover {
	border-color: #1E1A3A;
}

.hs-pill--primary {
	background: #1E1A3A;
	border-color: #1E1A3A;
	color: #FFF8F0;
}

.hs-pill--primary:hover {
	background: #0B7A7C;
	border-color: #0B7A7C;
}

.hs-pill--ghost {
	background: transparent;
}

.hs-pill--on {
	background: #DDF0EE;
	border-color: #3CC6C0;
}

.hs-map__levels .hs-pill[aria-pressed="false"] {
	background: transparent;
	color: #5E5873;
	text-decoration: line-through;
}

.hs-pill:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hs-map__fullscreen {
	margin-left: auto;
}

/* Body */
.hs-map .hs-map__body {
	display: grid;
	/* Real two-column layout: the map stage never extends under the panel. */
	grid-template-columns: minmax(0, 1fr) 300px;
	grid-template-areas: "stage panel";
	align-items: start;
	gap: 12px;
	min-height: 0;
	min-width: 0;
}

.hs-map .hs-map__body > .hs-map__stage {
	grid-area: stage;
	position: relative;
	width: auto;
	float: none;
}

.hs-map .hs-map__body > .hs-map__panel {
	grid-area: panel;
	position: relative;
	width: auto;
	float: none;
	inset: auto;
}

/* Grid/flex children must be allowed to shrink below their min-content width. */
.hs-map > *,
.hs-map__body > *,
.hs-map__stage,
.hs-map__canvas,
.hs-map__panel,
.hs-map__panel > *,
.hs-map__personal > *,
.hs-map__list > li {
	min-width: 0;
	max-width: 100%;
}

.hs-map__canvas {
	height: var(--hs-map-height);
	min-height: 320px;
	border-radius: 16px;
	border: 1px solid #EDE3D6;
	background: #DDF0EE;
	overflow: hidden;
	z-index: 0;
}

.hs-map--demo .hs-map__canvas {
	background-color: #DDF0EE;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0V40' fill='none' stroke='%23EDE3D6' stroke-width='1'/%3E%3C/svg%3E");
}

.hs-map--placing .hs-map__canvas,
.hs-map--placing .leaflet-container {
	cursor: crosshair;
}

.hs-map__panel {
	height: var(--hs-map-height);
	min-height: 320px;
	overflow-y: auto;
	padding: 4px 4px 4px 0;
}

.hs-map__heading {
	font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 18px;
	margin: 16px 0 8px;
	color: #1E1A3A;
}

.hs-map__status {
	margin: 0 0 8px;
	color: #5E5873;
	font-size: 14px;
}

.hs-map__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hs-map__item {
	display: grid;
	/* minmax(0, 1fr): the nowrap title must not widen the list (ellipsis instead). */
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #EDE3D6;
	border-radius: 999px;
	background: #FFFFFF;
	color: #1E1A3A;
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.hs-map__item:hover {
	border-color: #1E1A3A;
}

.hs-map__item-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hs-map__item-id {
	font-size: 12px;
	color: #5E5873;
}

.hs-map__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hs-map__progress {
	font-size: 14px;
	color: #0B7A7C;
}

.hs-map__share {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 8px 0;
}

.hs-map__warning {
	margin: 0;
	padding: 8px 12px;
	border-radius: 12px;
	background: #F6D66B;
	font-size: 13px;
}

.hs-map__check {
	font-size: 14px;
	color: #5E5873;
}

.hs-map__disclaimer {
	font-size: 12px;
	color: #5E5873;
	margin-top: 16px;
}

/* Legend and dots */
.hs-legend {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
	font-size: 14px;
}

.hs-legend li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hs-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #FFFFFF;
	box-shadow: 0 0 0 1px #1E1A3A;
	flex: 0 0 auto;
}

.hs-dot--official { background: #0B7A7C; }
.hs-dot--confirmed { background: #3CC6C0; }
.hs-dot--community { background: #B79CED; }
.hs-dot--unverified { background: #C2305A; }
.hs-dot--pin { background: #F2735E; }
.hs-dot--note { background: #F6D66B; }
.hs-dot--found { background: #FFFFFF; box-shadow: 0 0 0 3px #0B7A7C; }

/* Markers: round, white ring. */
.hs-marker {
	background: transparent;
	border: 0;
}

.hs-marker__dot {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px solid #FFFFFF;
	box-shadow: 0 0 0 1px rgba(30, 26, 58, 0.55), 0 2px 6px rgba(30, 26, 58, 0.25);
	background: #C2305A;
}

.hs-marker--official .hs-marker__dot { background: #0B7A7C; }
.hs-marker--confirmed .hs-marker__dot { background: #3CC6C0; }
.hs-marker--community .hs-marker__dot { background: #B79CED; }
.hs-marker--unverified .hs-marker__dot { background: #C2305A; }
.hs-marker--pin .hs-marker__dot { background: #F2735E; }
.hs-marker--note .hs-marker__dot { background: #F6D66B; }

.hs-marker--found .hs-marker__dot {
	box-shadow: 0 0 0 3px #1E1A3A, 0 2px 6px rgba(30, 26, 58, 0.25);
}

.hs-marker--favorite .hs-marker__dot {
	border-color: #F6D66B;
}

.hs-marker:focus-visible {
	outline: 3px solid #1E1A3A;
	outline-offset: 2px;
	border-radius: 50%;
}

.hs-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #1E1A3A;
	color: #FFF8F0;
	border: 3px solid #FFFFFF;
	box-shadow: 0 0 0 1px rgba(30, 26, 58, 0.4);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 500;
	font-size: 13px;
}

/* Popups / cards */
.hs-popup .leaflet-popup-content-wrapper {
	border-radius: 16px;
	background: #FFF8F0;
	color: #1E1A3A;
	border: 1px solid #EDE3D6;
	box-shadow: 0 4px 16px rgba(30, 26, 58, 0.18);
}

.hs-popup .leaflet-popup-tip {
	background: #FFF8F0;
}

.hs-popup .leaflet-popup-content {
	margin: 14px 16px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

.hs-card__id {
	margin: 0 0 2px;
	font-size: 12px;
	color: #5E5873;
}

.hs-card__title {
	margin: 0 0 8px;
	font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
}

.hs-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 8px;
}

.hs-card__text {
	margin: 0 0 8px;
	color: #1E1A3A;
}

.hs-card__link {
	color: #C2305A;
	font-weight: 600;
}

.hs-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.hs-card__actions .hs-pill {
	min-height: 36px;
	padding: 6px 12px;
	font-size: 13px;
}

.hs-pin-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 220px;
}

.hs-badge,
.hs-chip {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 500;
	font-size: 12px;
	line-height: 1.6;
}

.hs-chip {
	background: #FFFFFF;
	border: 1px solid #EDE3D6;
	color: #5E5873;
}

.hs-badge--official { background: #0B7A7C; color: #FFFFFF; }
.hs-badge--confirmed { background: #3CC6C0; color: #1E1A3A; }
.hs-badge--community { background: #B79CED; color: #1E1A3A; }
.hs-badge--unverified { background: #C2305A; color: #FFFFFF; }

/* Dialog */
.hs-dialog {
	width: min(520px, calc(100vw - 32px));
	border: 1px solid #EDE3D6;
	border-radius: 20px;
	padding: 20px;
	background: #FFF8F0;
	color: #1E1A3A;
}

.hs-dialog::backdrop {
	background: rgba(30, 26, 58, 0.55);
}

.hs-dialog__title {
	margin: 0 0 4px;
	font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
	font-size: 22px;
}

.hs-dialog__form label {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.hs-dialog__coords,
.hs-dialog__note {
	font-size: 13px;
	color: #5E5873;
}

.hs-dialog__error {
	padding: 8px 12px;
	border-radius: 12px;
	background: #C2305A;
	color: #FFFFFF;
}

.hs-dialog__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.hs-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hs-map__noscript {
	padding: 16px;
}

/* Leaflet controls in the Hidden Six style */
.hs-map .leaflet-bar {
	border: 1px solid #EDE3D6;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: none;
}

.hs-map .leaflet-bar a {
	width: 40px;
	height: 40px;
	line-height: 40px;
	color: #1E1A3A;
	background: #FFFFFF;
	border-bottom-color: #EDE3D6;
}

.hs-map .leaflet-container {
	font-family: 'Inter', system-ui, sans-serif;
	background: #DDF0EE;
}

/* Filter sheet controls: mobile only. */
.hs-map__filters-toggle,
.hs-map__filters-done {
	display: none;
}

.hs-map__filters-panel {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.hs-map__filters-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #F2735E;
	color: #1E1A3A;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 12px;
	font-weight: 500;
}

.hs-map__filters-count[hidden] {
	display: none;
}

/* Map stage + empty-state overlay card. */
.hs-map__stage {
	position: relative;
	min-width: 0;
}

.hs-map__empty {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 500;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: auto;
	max-width: min(300px, calc(100% - 32px));
	padding: 10px 8px 10px 14px;
	border: 1px solid #EDE3D6;
	border-radius: 14px;
	background: #FFF8F0;
	color: #1E1A3A;
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	box-shadow: 0 4px 16px rgba(30, 26, 58, 0.18);
	pointer-events: none;
}

.hs-map__empty-text {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.hs-map__empty-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -4px -2px -4px 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #1E1A3A;
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	pointer-events: auto;
}

.hs-map__empty-close:hover {
	background: #EDE3D6;
}

.hs-map__empty[hidden] {
	display: none;
}

/* Collapsible legend. */
.hs-map__summary {
	display: flex;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}

.hs-map__summary::-webkit-details-marker {
	display: none;
}

.hs-map__summary::after {
	content: "+";
	margin-left: auto;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	color: #5E5873;
}

.hs-map__legend[open] > .hs-map__summary::after {
	content: "\2212";
}

/* Phones: compact sticky toolbar, map first, filters in a bottom sheet, flowing panel. */
@media (max-width: 767px) {
	.hs-map {
		padding: 8px;
		gap: 8px;
		border-radius: 16px;
	}

	.hs-map__banner,
	.hs-map__notice {
		padding: 6px 12px;
		font-size: 11px;
		border-radius: 12px;
	}

	.hs-map__toolbar {
		position: sticky;
		top: var(--hs-sticky-top, 0px);
		z-index: 1001;
		flex-wrap: nowrap;
		align-items: center;
		gap: 8px;
		padding: 4px 0;
		background: #FFF8F0;
	}

	.hs-map__search {
		flex: 1 1 auto;
		min-width: 0;
	}

	.hs-map__search .hs-map__label {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.hs-map__filters-toggle {
		display: inline-flex;
		flex: 0 0 auto;
		min-height: 44px;
	}

	.hs-map__filters-panel {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100001;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		max-height: 75vh;
		max-height: 75svh;
		overflow-y: auto;
		padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		border-radius: 20px 20px 0 0;
		background: #FFF8F0;
		box-shadow: 0 -8px 24px rgba(30, 26, 58, 0.25);
	}

	.hs-map--filters-open .hs-map__filters-panel {
		display: flex;
	}

	.hs-map--filters-open::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 100000;
		background: rgba(30, 26, 58, 0.45);
	}

	.hs-map__filters,
	.hs-map__levels {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.hs-map__levels {
		display: grid;
	}

	.hs-select {
		width: 100%;
	}

	.hs-pill,
	.hs-card__actions .hs-pill {
		min-height: 44px;
	}

	.hs-map__levels .hs-pill,
	.hs-map__fullscreen,
	.hs-map__filters-done {
		justify-content: center;
	}

	.hs-map__fullscreen {
		margin-left: 0;
	}

	.hs-map__filters-done {
		display: inline-flex;
	}

	/* Map gets priority height: viewport minus site header (~64px) and toolbar. */
	.hs-map__canvas {
		height: max(420px, calc(100vh - var(--hs-header-h, 64px) - 64px));
		height: max(420px, calc(100svh - var(--hs-header-h, 64px) - 64px));
		min-height: 420px;
	}

	.hs-map--fullscreen .hs-map__canvas {
		height: calc(100dvh - 80px);
	}

	.hs-map,
	.hs-map__body,
	.hs-map__stage,
	.hs-map__canvas,
	.hs-map__panel {
		box-sizing: border-box;
		min-width: 0;
		max-width: 100%;
	}

	.hs-map .hs-map__body {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "stage" "panel";
	}

	.hs-map__empty {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}

	.hs-map__empty-close {
		width: 44px;
		height: 44px;
		margin: -10px -6px -10px 0;
	}

	/* Normal flowing section: no inner scroll. */
	.hs-map__panel {
		height: auto;
		max-height: none;
		min-height: 0;
		overflow: visible;
		padding: 0;
	}

	.hs-map__buttons {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.hs-map__buttons > * {
		min-width: 0;
	}

	.hs-map__buttons .hs-pill {
		justify-content: center;
		width: 100%;
		min-width: 0;
		height: auto;
		text-align: center;
		white-space: normal;
		overflow-wrap: anywhere;
		text-wrap: balance;
		line-height: 1.25;
	}

	.hs-map__levels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hs-map__levels .hs-pill,
	.hs-card__actions .hs-pill {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.hs-map__share .hs-input {
		min-width: 0;
		width: 100%;
	}

	.hs-map__item {
		min-height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hs-map .leaflet-zoom-anim .leaflet-zoom-animated,
	.hs-map .leaflet-fade-anim .leaflet-popup {
		transition: none !important;
	}
}

/* ---------- 0.4.0: macro-areas, approximate positions ---------- */

.hs-map--illustrated .hs-map__canvas {
	background: #BFE6E3; /* Same sea as the artwork around an area sketch. */
}

.hs-map path.hs-area {
	cursor: pointer;
	stroke: #1E1A3A;
	stroke-opacity: 0;
	stroke-dasharray: 8 6;
	fill: #FFFFFF;
	fill-opacity: 0;
	transition: fill-opacity 0.15s ease, stroke-opacity 0.15s ease;
}

.hs-map path.hs-area:hover,
.hs-map path.hs-area:focus {
	stroke-opacity: 0.9;
	fill-opacity: 0.16;
	outline: none;
}

.hs-map path.hs-area:focus-visible {
	stroke-width: 5;
	fill-opacity: 0.22;
}

.hs-area-badge {
	background: transparent;
	border: 0;
	display: flex !important;
	align-items: flex-start;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	cursor: pointer;
}

.hs-area-badge span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 28px;
	padding: 0 10px;
	box-sizing: border-box;
	border-radius: 999px;
	border: 2px solid #FFFFFF;
	background: #1E1A3A;
	color: #FFFFFF;
	font: 600 14px/1 "JetBrains Mono", ui-monospace, monospace;
	box-shadow: 0 2px 6px rgba(30, 26, 58, 0.3);
}

.hs-area-badge:focus-visible {
	outline: 3px solid #F2735E;
	outline-offset: 2px;
	border-radius: 999px;
}

.hs-map__areabar {
	position: absolute;
	top: 12px;
	left: 56px; /* Right of the Leaflet zoom buttons. */
	z-index: 600;
	max-width: calc(100% - 68px);
}

.hs-map__areabar[hidden],
.hs-map__area[hidden] {
	display: none;
}

.hs-map__area-back {
	min-height: 44px;
	padding: 0 16px;
	box-shadow: 0 2px 8px rgba(30, 26, 58, 0.25);
}

.hs-map__area {
	min-width: 0;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #EDE3D6;
}

.hs-map__area-intro {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
}

.hs-map__area-group {
	margin: 12px 0 4px;
	font-size: 14px;
	font-weight: 700;
}

.hs-map__area-count {
	display: inline-block;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #EDE3D6;
	font: 600 12px/1.4 "JetBrains Mono", ui-monospace, monospace;
	text-align: center;
}

.hs-map__area-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-map__area-items li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.hs-map__area-items a {
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
	color: inherit;
}

.hs-map__area-empty {
	font-size: 14px;
	color: #5B5675;
}

/* Approximate position: dashed ring around the marker. */
.hs-marker--approximate .hs-marker__dot {
	position: relative;
	overflow: visible;
}

.hs-marker--approximate .hs-marker__dot::after {
	content: "";
	position: absolute;
	inset: -9px;
	border: 2px dashed #1E1A3A;
	border-radius: 50%;
	pointer-events: none;
}

.hs-dot--approximate {
	background: transparent;
	border: 2px dashed #1E1A3A;
	box-sizing: border-box;
}

.hs-chip--approximate {
	border-style: dashed;
}

.hs-card__hint {
	margin: 4px 0;
	font-size: 13px;
	font-style: italic;
}

@media (max-width: 767px) {
	.hs-map__areabar {
		top: 8px;
		left: 52px;
		max-width: calc(100% - 60px);
	}
}

/* Page H1 of the map (0.5.1). */
.hs-map .hs-map__title {
	margin: 0 0 12px;
	color: #1E1A3A;
	font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.01em;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* ---------- 0.6.0: area list, filters, mobile bottom sheet ---------- */

.hs-map__zones {
	margin: 0 0 14px;
	min-width: 0;
}

.hs-map__zones-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-map__zone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	max-width: 100%;
	white-space: normal;
	text-align: left;
	overflow-wrap: anywhere;
}

.hs-map__zone.hs-pill--on {
	background: #1E1A3A;
	color: #FFFFFF;
}

.hs-area-filters {
	display: grid;
	gap: 6px;
	margin: 8px 0 10px;
	min-width: 0;
}

.hs-area-filters__row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}

.hs-area-chip {
	min-height: 44px;
	white-space: nowrap;
}

.hs-area-chip[aria-pressed="true"] {
	background: #1E1A3A;
	color: #FFFFFF;
	border-color: #1E1A3A;
}

.hs-map__area-items .hs-area-item a {
	display: grid;
	gap: 4px;
	padding: 8px 0;
	min-height: 44px;
	line-height: 1.35;
	border-bottom: 1px solid #EDE3D6;
	color: inherit;
	text-decoration: none;
}

.hs-area-item[hidden] {
	display: none;
}

.hs-area-item__title {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.hs-area-item a:hover .hs-area-item__title,
.hs-area-item a:focus-visible .hs-area-item__title {
	text-decoration: underline;
}

.hs-area-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #5B5675;
}

.hs-chip--news { border-color: #F2735E; }
.hs-chip--secret { border-color: #3CC6C0; }
.hs-chip--guide { border-color: #B79CED; }

.hs-map__sheet-toggle {
	display: none;
}

@media (max-width: 767px) {
	/* Area panel as a bottom sheet over the map. */
	.hs-map--area .hs-map__area {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		box-sizing: border-box;
		width: 100%;
		max-height: 50vh;
		max-height: 50dvh;
		margin: 0;
		padding: 8px 16px 16px;
		overflow-y: auto;
		overscroll-behavior: contain;
		border: 1px solid #EDE3D6;
		border-radius: 18px 18px 0 0;
		background: #FFF8F0;
		box-shadow: 0 -6px 24px rgba(30, 26, 58, 0.25);
	}

	.hs-map--area .hs-map__sheet-toggle {
		display: block;
		width: 100%;
		min-height: 44px;
		margin: 0 0 4px;
		border: 0;
		background: transparent;
		color: #1E1A3A;
		font: 600 14px/1 "Inter", system-ui, sans-serif;
		cursor: pointer;
	}

	.hs-map--area .hs-map__sheet-toggle::before {
		content: "";
		display: block;
		width: 44px;
		height: 4px;
		margin: 0 auto 8px;
		border-radius: 2px;
		background: #C9C2B8;
	}

	.hs-map--area .hs-map__area.is-collapsed {
		max-height: none;
		overflow: hidden;
	}

	.hs-map--area .hs-map__area.is-collapsed > :not(.hs-map__sheet-toggle):not(.hs-map__area-name) {
		display: none;
	}
}

.hs-area-chip[aria-pressed="true"] .hs-map__area-count,
.hs-map__zone.hs-pill--on .hs-map__area-count {
	background: #FFF8F0;
	color: #1E1A3A;
}

/* ---------- 0.8.0: map "app" layout (big map + left sidebar) ---------- */

.hs-map--app {
	--hs-app-h: max(560px, calc(100vh - var(--hs-header-h, 80px)));
	--hs-app-side: 320px;
	padding: 0;
	gap: 0;
	overflow: hidden;
	max-width: 100%;
}

.hs-map--app > .hs-map__title {
	margin: 0;
	padding: 14px 18px 10px;
	border-bottom: 1px solid #EDE3D6;
}

.hs-map--app .hs-app {
	display: grid;
	grid-template-columns: var(--hs-app-side) minmax(0, 1fr);
	height: var(--hs-app-h);
	min-height: 560px;
	min-width: 0;
	transition: grid-template-columns 0.25s ease;
}

.hs-map--app.hs-app--collapsed .hs-app {
	grid-template-columns: 0 minmax(0, 1fr);
}

.hs-map--app.hs-app--collapsed .hs-app__sidebar {
	visibility: hidden;
}

.hs-map--app.hs-map--fullscreen .hs-app,
.hs-map--app:fullscreen .hs-app {
	height: 100vh;
	height: 100dvh;
	min-height: 0;
}

.hs-app__sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 14px 14px 18px;
	background: #FFF8F0;
	border-right: 1px solid #EDE3D6;
}

.hs-app__sidebar-head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hs-map--app .hs-map__search {
	flex: 0 0 auto;
}

.hs-map--app .hs-map__search .hs-input {
	width: 100%;
}

.hs-map .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.hs-app__toggles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hs-app__toggles .hs-pill {
	flex: 1 1 auto;
	justify-content: center;
}

.hs-app__done {
	display: none !important;
}

.hs-map--app .hs-map__status:empty {
	display: none;
}

.hs-app__places[hidden] {
	display: none;
}

.hs-app__placelist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hs-app__place {
	width: 100%;
	justify-content: flex-start;
	gap: 8px;
}

.hs-app__place-kind {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #1E1A3A;
	flex: 0 0 auto;
}

.hs-app__place-kind--town { background: #F2735E; }
.hs-app__place-kind--landmark { background: #3CC6C0; }

.hs-app__placechip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 6px 6px 6px 14px;
	border-radius: 999px;
	background: #F6D66B;
	border: 2px solid #1E1A3A;
	font-weight: 600;
	font-size: 14px;
}

.hs-app__placechip-x {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: #1E1A3A;
	color: #FFF8F0;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.hs-app__groups {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hs-app__group {
	border: 1px solid #EDE3D6;
	border-radius: 14px;
	background: #FFFFFF;
	overflow: hidden;
}

.hs-app__group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	background: transparent;
	color: #1E1A3A;
	font: 700 13px/1 'JetBrains Mono', ui-monospace, monospace;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.hs-app__group-head:focus-visible,
.hs-app__cat:focus-within {
	outline: 3px solid #F2735E;
	outline-offset: -3px;
}

.hs-app__chev {
	font-size: 18px;
}

.hs-app__cats {
	list-style: none;
	margin: 0;
	padding: 0 6px 8px;
}

.hs-app__cats[hidden] {
	display: none;
}

.hs-app__cat {
	display: grid;
	grid-template-columns: 20px 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 8px;
	border-radius: 10px;
	cursor: pointer;
}

.hs-app__cat:hover {
	background: #FFF8F0;
}

.hs-app__cat input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #1E1A3A;
}

.hs-app__cat-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

.hs-app__cat input:not(:checked) ~ .hs-app__cat-name {
	color: #8A8499;
	text-decoration: line-through;
}

.hs-app__cat-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #FFFFFF;
	box-shadow: 0 0 0 1px rgba(30, 26, 58, 0.4);
}

.hs-app__cat-icon.hs-dot {
	width: 16px;
	height: 16px;
	justify-self: center;
}

.hs-app__cat-icon--news { background: #F2735E; }
.hs-app__cat-icon--secret { background: #0B7A7C; }
.hs-app__cat-icon--guide { background: #B79CED; }

/* Pin categories (secret type) — one colour each. */
.hs-app__cat-icon--g-star,
.hs-marker--g-star .hs-marker__dot { background: #F2735E; }
.hs-app__cat-icon--g-diamond,
.hs-marker--g-diamond .hs-marker__dot { background: #B79CED; }
.hs-app__cat-icon--g-flag,
.hs-marker--g-flag .hs-marker__dot { background: #0B7A7C; }
.hs-app__cat-icon--g-question,
.hs-marker--g-question .hs-marker__dot { background: #C2305A; }
.hs-app__cat-icon--g-film,
.hs-marker--g-film .hs-marker__dot { background: #3E6FD8; }
.hs-app__cat-icon--g-hand,
.hs-marker--g-hand .hs-marker__dot { background: #D9902B; }
.hs-app__cat-icon--g-bolt,
.hs-marker--g-bolt .hs-marker__dot { background: #3CA05A; }
.hs-app__cat-icon--g-dot,
.hs-marker--g-dot .hs-marker__dot { background: #1E1A3A; }

.hs-marker--app .hs-marker__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	border-width: 2px;
}

.hs-app__zones-li .hs-map__zones {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 2px 2px 4px;
}

.hs-app__zones-li .hs-map__zone {
	width: 100%;
	justify-content: space-between;
}

.hs-app__zone {
	padding: 12px;
	border: 2px solid #1E1A3A;
	border-radius: 14px;
	background: #FFFFFF;
}

.hs-app__zone-head {
	margin-bottom: 8px;
}

.hs-app__zone-count {
	margin: 0 0 6px;
	font: 500 12px/1.3 'JetBrains Mono', ui-monospace, monospace;
	color: #5E5873;
}

.hs-map--app .hs-map__notice {
	border-radius: 12px;
	font-size: 12px;
}

.hs-map--app .hs-map__disclaimer {
	margin: 0;
	font-size: 12px;
	color: #5E5873;
}

.hs-app__stage {
	position: relative;
	min-width: 0;
	height: 100%;
}

.hs-map--app .hs-app__stage .hs-map__canvas,
.hs-map--app .hs-app__stage .leaflet-container {
	height: 100%;
	min-height: 0;
	border-radius: 0;
	border: 0;
}

.hs-app__sidebar-toggle {
	position: absolute;
	top: 12px;
	left: 0;
	z-index: 700;
	width: 28px;
	height: 48px;
	border: 1px solid #EDE3D6;
	border-left: 0;
	border-radius: 0 12px 12px 0;
	background: #FFF8F0;
	color: #1E1A3A;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 2px 2px 8px rgba(30, 26, 58, 0.18);
}

.hs-app--collapsed .hs-app__sidebar-toggle-icon {
	display: inline-block;
	transform: rotate(180deg);
}

.hs-app__sidebar-toggle:focus-visible,
.hs-app-tool:focus-visible {
	outline: 3px solid #F2735E;
	outline-offset: 2px;
}

.hs-map--app .hs-map__areabar {
	left: 40px;
	max-width: calc(100% - 110px);
}

.hs-map--app .hs-app__filters-toggle {
	display: none;
}

/* Leaflet controls top-right: zoom, full screen, reset view. */
.hs-map--app .leaflet-bar {
	border: 1px solid #EDE3D6;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(30, 26, 58, 0.2);
}

.hs-map--app .leaflet-bar a {
	width: 40px;
	height: 40px;
	line-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FFF8F0;
	color: #1E1A3A;
	font: 600 20px/1 'Inter', system-ui, sans-serif;
	border-bottom: 1px solid #EDE3D6;
}

.hs-map--app .leaflet-bar a:hover {
	background: #DDF0EE;
}

.hs-map--app .leaflet-bar a:last-child {
	border-bottom: 0;
}

.hs-map--app .hs-app-tool[aria-pressed="true"] {
	background: #1E1A3A;
	color: #FFF8F0;
}

.hs-map--app .leaflet-control-attribution {
	margin: 0 0 8px 8px !important;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 248, 240, 0.9);
	color: #1E1A3A;
	font: 500 11px/1.4 'JetBrains Mono', ui-monospace, monospace;
}

/* Place labels (HTML, not baked in the art), shown by zoom level. */
.hs-place {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	background: transparent;
	border: 0;
	transform-origin: center;
	white-space: nowrap;
	cursor: pointer;
}

.hs-place .hs-place__text {
	display: inline-block;
	transform: translate(-50%, -50%);
	color: #1E1A3A;
	pointer-events: auto;
}

.hs-place--county .hs-place__text {
	font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
	font-stretch: 75%;
	font-variation-settings: "wdth" 75;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(30, 26, 58, 0.78);
	text-shadow: 0 0 3px #FFF8F0, 0 0 6px #FFF8F0;
}

.hs-place--town .hs-place__text {
	font-family: 'Inter', system-ui, sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-shadow: -1px -1px 0 #FFF8F0, 1px -1px 0 #FFF8F0, -1px 1px 0 #FFF8F0, 1px 1px 0 #FFF8F0, 0 0 4px #FFF8F0;
}

.hs-place--landmark .hs-place__text {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 500;
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 999px;
	background: rgba(255, 248, 240, 0.88);
	border: 1px solid rgba(30, 26, 58, 0.25);
}

.hs-place:hover .hs-place__text,
.hs-place:focus-visible .hs-place__text {
	color: #C2305A;
}

.hs-place:focus-visible {
	outline: none;
}

.hs-place:focus-visible .hs-place__text {
	outline: 3px solid #F2735E;
	outline-offset: 2px;
	border-radius: 4px;
}

.hs-zoom-far .hs-place--town,
.hs-zoom-far .hs-place--landmark,
.hs-zoom-mid .hs-place--landmark,
.hs-zoom-near .hs-place--county {
	display: none;
}

.hs-zoom-mid .hs-place--county .hs-place__text {
	font-size: 18px;
	color: rgba(30, 26, 58, 0.45);
}

/* Popup (app). */
.hs-card--app .hs-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.hs-card__date {
	font: 500 12px/1 'JetBrains Mono', ui-monospace, monospace;
	color: #5E5873;
}

@media (max-width: 767px) {
	.hs-map--app {
		--hs-app-h: max(480px, calc(100svh - var(--hs-header-h, 64px)));
		border-radius: 14px;
	}

	.hs-map--app .hs-app {
		display: block;
		position: relative;
		min-height: 480px;
	}

	.hs-map--app .hs-app__stage {
		height: 100%;
	}

	.hs-map--app .hs-app__sidebar-toggle {
		display: none;
	}

	.hs-map--app .hs-app__filters-toggle {
		display: inline-flex;
		position: absolute;
		left: 12px;
		bottom: 34px;
		z-index: 700;
		min-height: 44px;
		box-shadow: 0 2px 10px rgba(30, 26, 58, 0.3);
	}

	.hs-map--app .hs-map__areabar {
		left: 12px;
		max-width: calc(100% - 72px);
	}

	/* Sidebar becomes a bottom drawer. */
	.hs-map--app .hs-app__sidebar {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100001;
		width: 100%;
		max-height: 80vh;
		max-height: 80svh;
		padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		border-right: 0;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -8px 24px rgba(30, 26, 58, 0.25);
	}

	.hs-map--app.hs-map--filters-open .hs-app__sidebar {
		display: flex;
	}

	.hs-map--app .hs-app__done {
		display: inline-flex !important;
	}

	/* The zone panel lives inside the drawer: no separate sheet. */
	.hs-map--app.hs-map--area .hs-map__area {
		position: static;
		max-height: none;
		box-shadow: none;
		border-radius: 14px;
		border: 2px solid #1E1A3A;
		padding: 12px;
		overflow: visible;
	}

	.hs-map--app .hs-map__sheet-toggle {
		display: none !important;
	}

	.hs-place--county .hs-place__text {
		font-size: 12px;
		letter-spacing: 0.16em;
	}
}
