/**
 * Animated Location Map — front end styles.
 */

.almap-wrap {
	--almap-height: 520px;
	--almap-accent: #e4572e;
	--almap-surface: #ffffff;
	--almap-on-surface: #1e1e1e;
	--almap-line: rgba(0, 0, 0, 0.14);
	--almap-hover: rgba(0, 0, 0, 0.06);
	--almap-muted: rgba(0, 0, 0, 0.68);
	--almap-radius: 10px;
	display: block;
	position: relative;
}

/* ---------- shell ---------- */

.almap-wrap {
	--almap-panel-width: 36%;
	--almap-list-size: 16px;
	display: grid;
	gap: 0;
	background: var(--almap-surface);
	border: 1px solid var(--almap-line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.almap-stage {
	position: relative;
	min-width: 0;
}

.almap-map {
	height: var(--almap-height);
	min-height: 240px;
	width: 100%;
	background: #e8ecea;
	z-index: 0;
}

.almap-panel {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--almap-surface);
	color: var(--almap-on-surface);
}

.almap-panel-head {
	padding: 20px 20px 12px;
}

.almap-panel-title {
	margin: 0 0 4px;
	font-size: calc(var(--almap-list-size) * 1.3);
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--almap-on-surface);
}

.almap-panel-sub {
	margin: 0;
	font-size: calc(var(--almap-list-size) * 0.85);
	color: var(--almap-muted);
}

/* ---------- layout: list left, map right (default) ---------- */

.almap-layout-split-left {
	grid-template-columns: minmax(0, var(--almap-panel-width, 36%)) minmax(0, 1fr);
}

.almap-layout-split-left .almap-panel {
	order: 1;
	border-right: 1px solid var(--almap-line);
}

.almap-layout-split-left .almap-stage {
	order: 2;
}

/* ---------- layout: map left, list right ---------- */

.almap-layout-split-right {
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--almap-panel-width, 36%));
}

.almap-layout-split-right .almap-panel {
	order: 2;
	border-left: 1px solid var(--almap-line);
}

.almap-layout-split-right .almap-stage {
	order: 1;
}

/* ---------- layout: list floating over the map ---------- */

.almap-layout-overlay {
	position: relative;
	grid-template-columns: minmax(0, 1fr);
}

.almap-layout-overlay .almap-stage {
	grid-area: 1 / 1;
}

.almap-layout-overlay .almap-panel {
	grid-area: 1 / 1;
	position: relative;
	z-index: 500;
	width: min(var(--almap-panel-width, 36%), calc(100% - 28px));
	min-width: 240px;
	margin: 14px;
	max-height: calc(var(--almap-height) - 28px);
	border: 1px solid var(--almap-line);
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	pointer-events: auto;
}

/* ---------- layout: map on top, cards below ---------- */

.almap-layout-stacked {
	grid-template-columns: minmax(0, 1fr);
}

.almap-layout-stacked .almap-stage {
	order: 1;
}

.almap-layout-stacked .almap-panel {
	order: 2;
	border-top: 1px solid var(--almap-line);
}

.almap-layout-stacked .almap-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	padding: 16px;
	max-height: none;
}

.almap-layout-stacked .almap-list-item {
	border: 1px solid var(--almap-line);
	border-radius: 11px;
	overflow: hidden;
}

/* ---------- layout: toggle and map only ---------- */

.almap-layout-toggle,
.almap-layout-map-only {
	grid-template-columns: minmax(0, 1fr);
}

.almap-layout-toggle .almap-stage,
.almap-layout-map-only .almap-stage {
	grid-column: 1;
}

.almap-layout-toggle .almap-panel {
	border-top: 1px solid var(--almap-line);
}

.almap-layout-toggle .almap-list:not([hidden]) {
	animation: almap-panel-in 0.24s ease backwards;
}

@keyframes almap-panel-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- the list ---------- */

.almap-list {
	list-style: none;
	margin: 0;
	padding: 0.35em 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	max-height: var(--almap-height);
	flex: 1 1 auto;
	scrollbar-width: thin;
	scrollbar-color: var(--almap-line) transparent;
}

.almap-list::-webkit-scrollbar {
	width: 8px;
}

.almap-list::-webkit-scrollbar-thumb {
	background: var(--almap-line);
	border-radius: 999px;
}

.almap-list[hidden] {
	display: none;
}

.almap-panel-head + .almap-list {
	max-height: calc(var(--almap-height) - 74px);
}

.almap-list-item {
	margin: 0 0.6em;
	border-radius: 12px;
}

.almap-list-item + .almap-list-item {
	border-top: 1px solid var(--almap-line);
}

.almap-list-item:hover + .almap-list-item,
.almap-list-item:hover {
	border-top-color: transparent;
}

.almap-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75em;
	padding: 0.9em;
	position: relative;
	font-size: var(--almap-list-size);
	border-radius: 12px;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.almap-list-item:hover .almap-row {
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
	transform: translateY(-1px);
}

/* the pin sits in a soft tinted chip */
.almap-row-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.1em;
	height: 2.1em;
	border-radius: 10px;
	background: var(--almap-hover);
	transition: background-color 0.18s ease;
}

.almap-list-item:hover .almap-row-pin {
	background: color-mix(in srgb, var(--almap-accent) 14%, transparent);
}

.almap-row-pin svg {
	width: calc(var(--almap-list-size) * 0.85);
	height: auto;
	display: block;
}

.almap-row-body {
	min-width: 0;
	padding-top: 0.1em;
}

.almap-list-btn {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/*
 * Themes commonly style every button on hover, which put a coloured block
 * behind these rows. The states are pinned back to transparent so only the
 * name tints, and the mobile tap highlight is removed for the same reason.
 */
.almap-list-btn:hover,
.almap-list-btn:focus,
.almap-list-btn:active,
.almap-list-item:hover .almap-list-btn {
	background: none;
	background-color: transparent;
	background-image: none;
	border: 0;
	box-shadow: none;
	color: inherit;
	transform: none;
	filter: none;
}

.almap-list-name {
	display: block;
	font-weight: 700;
	font-size: 1em;
	line-height: 1.3;
	letter-spacing: -0.012em;
	color: var(--almap-on-surface);
	transition: color 0.14s ease;
}

.almap-list-btn:hover .almap-list-name,
.almap-list-btn:focus-visible .almap-list-name {
	color: var(--almap-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

.almap-list-btn:focus-visible {
	outline: 2px solid var(--almap-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.almap-list-addr {
	display: block;
	font-size: 0.8em;
	line-height: 1.5;
	color: var(--almap-muted);
	margin-top: 0.25em;
	white-space: pre-line;
}

.almap-row-hours {
	margin-top: 0.6em;
	padding: 0.6em 0.75em;
	border-radius: 9px;
	background: var(--almap-hover);
	border-left: 3px solid var(--almap-accent);
	font-size: 0.8em;
	line-height: 1.55;
	color: var(--almap-muted);
	white-space: pre-line;
}

.almap-row-hours[hidden] {
	display: none;
}

/* ---------- row actions ---------- */

.almap-row-actions {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-top: 0.75em;
}

.almap-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	padding: 0.45em 0.8em;
	border: 1px solid var(--almap-line);
	border-radius: 8px;
	background: var(--almap-surface);
	color: var(--almap-muted);
	font-family: inherit;
	font-size: 0.72em;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.almap-act-icon {
	flex: 0 0 auto;
	opacity: 0.75;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.almap-act:hover,
.almap-act:focus-visible {
	background: var(--almap-accent);
	background-image: none;
	border-color: var(--almap-accent);
	box-shadow: none;
	color: #fff;
	text-decoration: none;
}

.almap-act:hover .almap-act-icon,
.almap-act:focus-visible .almap-act-icon {
	opacity: 1;
}

.almap-act:active {
	transform: translateY(1px);
}

.almap-act-hours[aria-expanded="true"] {
	background: var(--almap-accent);
	border-color: var(--almap-accent);
	color: #fff;
}

/* secondary: outlined in the accent colour */
.almap-act-book {
	border-color: var(--almap-accent);
	color: var(--almap-accent);
	background: transparent;
}

/* primary: the one action most visitors want */
.almap-act-more {
	background: var(--almap-accent);
	border-color: var(--almap-accent);
	color: #fff;
	padding-right: 0.65em;
}

.almap-act-more:hover,
.almap-act-more:focus-visible {
	filter: brightness(0.92);
}

.almap-act-more:hover .almap-act-icon,
.almap-act-more:focus-visible .almap-act-icon {
	transform: translateX(2px);
}

.almap-empty {
	padding: 14px 16px;
	border: 1px dashed currentColor;
	border-radius: 10px;
	opacity: 0.75;
}

/* ---------- markers ---------- */

.almap-divicon {
	background: none;
	border: 0;
}

.almap-mk {
	position: relative;
	width: 28px;
	height: 38px;
	display: block;
}

.almap-mk-body {
	display: block;
	color: var(--almap-pin, #e4572e);
	transform-origin: 14px 38px;
	will-change: transform;
}

.almap-mk-body svg {
	display: block;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.32));
}

.almap-rings {
	position: absolute;
	left: 50%;
	bottom: -3px;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	pointer-events: none;
}

.almap-rings i {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--almap-pin, #e4572e);
	opacity: 0;
}

/* Entrance: drop */
.almap-a-drop .almap-mk-body {
	animation: almap-drop 0.85s cubic-bezier(0.2, 1.5, 0.4, 1) backwards;
}

@keyframes almap-drop {
	0% {
		transform: translateY(-240px) scaleY(1.25);
		opacity: 0;
	}
	60% {
		opacity: 1;
	}
	100% {
		transform: translateY(0) scaleY(1);
	}
}

/* Entrance: pop */
.almap-a-pop .almap-mk-body {
	animation: almap-pop 0.6s cubic-bezier(0.18, 1.6, 0.4, 1) backwards;
}

@keyframes almap-pop {
	0% {
		transform: scale(0) rotate(-25deg);
	}
	100% {
		transform: scale(1) rotate(0);
	}
}

/* Ambient: ripple */
.almap-a-ripple .almap-rings i {
	animation: almap-ripple 2.4s ease-out infinite;
}

@keyframes almap-ripple {
	0% {
		transform: scale(0.4);
		opacity: 0.75;
	}
	100% {
		transform: scale(3.6);
		opacity: 0;
	}
}

/* Ambient: float */
.almap-a-float .almap-mk-body {
	animation: almap-float 2.6s ease-in-out infinite;
}

@keyframes almap-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-9px);
	}
}

/* Ambient: sway */
.almap-a-sway .almap-mk-body {
	animation: almap-sway 3s ease-in-out infinite;
}

@keyframes almap-sway {
	0%,
	100% {
		transform: rotate(-9deg);
	}
	50% {
		transform: rotate(9deg);
	}
}

/* ---------- details card ---------- */

/*
 * Leaflet and Google each wrap the card in their own shell. Both shells are
 * stripped back to nothing so the card below looks identical on either engine.
 */

.almap-popup .leaflet-popup-content-wrapper {
	background: var(--almap-surface);
	color: var(--almap-on-surface);
	border-radius: 14px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.almap-popup .leaflet-popup-content {
	margin: 0;
	width: 268px !important;
	line-height: 1.4;
}

.almap-popup .leaflet-popup-tip {
	background: var(--almap-surface);
	box-shadow: none;
}

.almap-popup .leaflet-popup-close-button {
	color: var(--almap-surface) !important;
	top: 9px;
	right: 8px;
	width: 22px;
	height: 22px;
	font-size: 19px;
	opacity: 0.75;
	transition: opacity 0.15s ease;
}

.almap-popup .leaflet-popup-close-button:hover {
	opacity: 1;
}

.almap-engine-google .gm-style-iw.gm-style-iw-c {
	padding: 0 !important;
	border-radius: 14px;
	overflow: hidden;
	max-width: 268px !important;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.almap-engine-google .gm-style-iw-d {
	overflow: hidden !important;
	max-height: none !important;
}

.almap-engine-google .gm-style-iw-chr {
	position: absolute;
	top: 2px;
	right: 2px;
	height: 0;
}

.almap-engine-google .gm-style-iw-chr button {
	filter: invert(1) grayscale(1) brightness(2);
	opacity: 0.8;
}

.almap-engine-google .gm-style-iw-tc::after {
	background: var(--almap-surface);
}

/* the card itself */

.almap-pop {
	background: var(--almap-surface);
	color: var(--almap-on-surface);
	width: 268px;
	animation: almap-card-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
}

@keyframes almap-card-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.almap-pop-head {
	background: var(--almap-pin, var(--almap-accent));
	padding: 11px 40px 11px 15px;
	position: relative;
	overflow: hidden;
}

/* a soft sheen that sweeps once as the card opens */
.almap-pop-head::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
	transform: translateX(-100%);
	animation: almap-sheen 0.9s ease-out 0.2s 1 forwards;
}

@keyframes almap-sheen {
	to {
		transform: translateX(100%);
	}
}

.almap-pop-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
	position: relative;
	z-index: 1;
}

.almap-pop-body {
	padding: 11px 15px 12px;
}

.almap-pop-row {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 12.8px;
	animation: almap-row-in 0.3s ease backwards;
}

.almap-pop-row + .almap-pop-row {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--almap-line);
}

.almap-pop-row:nth-child(1) {
	animation-delay: 0.12s;
}

.almap-pop-row:nth-child(2) {
	animation-delay: 0.19s;
}

@keyframes almap-row-in {
	from {
		opacity: 0;
		transform: translateX(-5px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.almap-pop-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	background: var(--almap-hover);
	color: var(--almap-pin, var(--almap-accent));
}

.almap-pop-val {
	white-space: pre-line;
	padding-top: 3px;
	color: var(--almap-muted);
}

.almap-pop-actions {
	display: flex;
	gap: 1px;
	background: var(--almap-line);
	border-top: 1px solid var(--almap-line);
}

.almap-pop-action {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 8px;
	font-size: 12.2px;
	font-weight: 600;
	text-decoration: none;
	background: var(--almap-surface);
	color: var(--almap-on-surface);
	transition: background-color 0.16s ease, color 0.16s ease;
}

.almap-pop-action:hover,
.almap-pop-action:focus-visible {
	background: var(--almap-pin, var(--almap-accent));
	color: #fff;
	text-decoration: none;
}

.almap-pop-action svg {
	flex: 0 0 auto;
	transition: transform 0.16s ease;
}

.almap-pop-action:hover svg {
	transform: scale(1.12);
}

.almap-pop-action-directions:hover svg {
	transform: translateX(2px) scale(1.12);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
	.almap-layout-split-left,
	.almap-layout-split-right {
		grid-template-columns: minmax(0, 1fr);
	}

	.almap-layout-split-left .almap-panel,
	.almap-layout-split-right .almap-panel {
		order: 2;
		border-left: 0;
		border-right: 0;
		border-top: 1px solid var(--almap-line);
	}

	.almap-layout-split-left .almap-stage,
	.almap-layout-split-right .almap-stage {
		order: 1;
	}

	.almap-list,
	.almap-panel-head + .almap-list {
		max-height: 340px;
	}

	.almap-layout-overlay .almap-panel {
		position: static;
		width: auto;
		margin: 0;
		max-height: 320px;
		border: 0;
		border-top: 1px solid var(--almap-line);
		border-radius: 0;
		box-shadow: none;
	}

	.almap-layout-overlay {
		grid-template-columns: minmax(0, 1fr);
	}

	.almap-layout-overlay .almap-stage,
	.almap-layout-overlay .almap-panel {
		grid-area: auto;
	}

	.almap-row-actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 782px) {
	.almap-toggle {
		top: 10px;
		right: 10px;
		font-size: 12.5px;
		padding: 7px 11px;
	}
}

/* ---------- motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
	.almap-mk-body,
	.almap-rings i,
	.almap-pop,
	.almap-pop-row,
	.almap-list {
		animation: none !important;
	}

	.almap-rings {
		display: none !important;
	}
}

/* ---------- hover tooltip ---------- */

.almap-tip.leaflet-tooltip {
	background: var(--almap-on-surface);
	color: var(--almap-surface);
	border: 0;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.almap-tip.leaflet-tooltip-top::before {
	border-top-color: var(--almap-on-surface);
}

.almap-hovertip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translate(-50%, -4px);
	margin-bottom: 4px;
	background: var(--almap-on-surface);
	color: var(--almap-surface);
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.14s ease, transform 0.14s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.almap-mk:hover .almap-hovertip,
.almap-mk:focus-visible .almap-hovertip {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- search ---------- */

.almap-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: stretch;
	margin: 1em 1em 0;
	font-size: var(--almap-list-size);
}

/*
 * A side panel is narrow, so three controls on one line squeezed the input
 * until its placeholder was cut off. The field takes its own line there and
 * the buttons share the one beneath. Full width panels keep all three inline.
 */
.almap-layout-split-left .almap-search-box,
.almap-layout-split-right .almap-search-box,
.almap-layout-overlay .almap-search-box {
	flex: 1 1 100%;
}

.almap-layout-split-left .almap-geo,
.almap-layout-split-right .almap-geo,
.almap-layout-overlay .almap-geo,
.almap-layout-split-left .almap-search-go,
.almap-layout-split-right .almap-search-go,
.almap-layout-overlay .almap-search-go {
	flex: 1 1 0;
	padding: 0.62em 0.9em;
}

.almap-search-box {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	background: var(--almap-surface);
	border: 1.5px solid var(--almap-line);
	border-radius: 12px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.almap-search-box:hover {
	border-color: var(--almap-muted);
}

.almap-search-box:focus-within {
	border-color: var(--almap-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--almap-accent) 16%, transparent);
}

.almap-search-icon {
	display: flex;
	flex: 0 0 auto;
	padding-left: 0.9em;
	color: var(--almap-accent);
	pointer-events: none;
	transition: transform 0.18s ease;
}

.almap-search-box:focus-within .almap-search-icon {
	transform: scale(1.08);
}

.almap-search-input {
	flex: 1 1 auto;
	min-width: 6em;
	text-overflow: ellipsis;
	width: 100%;
	margin: 0;
	padding: 0.78em 0.5em 0.78em 0.6em;
	border: 0;
	background: none;
	color: var(--almap-on-surface);
	font-family: inherit;
	font-size: 0.86em;
	font-weight: 500;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}

.almap-search-input:focus {
	outline: none;
	box-shadow: none;
}

.almap-search-input::placeholder {
	color: var(--almap-muted);
	font-weight: 400;
	opacity: 0.85;
}

/* the browser's own clear control would sit on top of ours */
.almap-search-input::-webkit-search-cancel-button,
.almap-search-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.almap-search-clear {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75em;
	height: 1.75em;
	margin-right: 0.45em;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--almap-hover);
	color: var(--almap-muted);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	animation: almap-fade-in 0.16s ease;
	transition: background-color 0.15s ease, color 0.15s ease;
}

@keyframes almap-fade-in {
	from { opacity: 0; transform: scale(0.8); }
	to   { opacity: 1; transform: scale(1); }
}

.almap-search-clear:hover,
.almap-search-clear:focus-visible {
	background: var(--almap-accent);
	background-image: none;
	box-shadow: none;
	color: #fff;
}

.almap-search-clear[hidden] {
	display: none;
}

.almap-search-go {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	margin: 0;
	padding: 0 1.25em;
	border: 1.5px solid var(--almap-accent);
	border-radius: 12px;
	background: var(--almap-accent);
	color: #fff;
	font-family: inherit;
	font-size: 0.82em;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	box-shadow: 0 2px 8px color-mix(in srgb, var(--almap-accent) 30%, transparent);
	transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.almap-search-go:hover,
.almap-search-go:focus-visible {
	background: var(--almap-accent);
	background-image: none;
	color: #fff;
	filter: brightness(0.93);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--almap-accent) 38%, transparent);
}

.almap-search-go:active {
	transform: translateY(1px);
	box-shadow: none;
}

.almap-search-go-icon {
	display: flex;
}

.almap-search-status {
	display: flex;
	align-items: center;
	gap: 0.4em;
	margin: 0.65em 1em 0;
	font-size: calc(var(--almap-list-size) * 0.75);
	font-weight: 600;
	color: var(--almap-muted);
	min-height: 1.2em;
}

.almap-search-status:not(:empty)::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: var(--almap-accent);
	flex: 0 0 auto;
}

.almap-search-status.is-empty {
	color: var(--almap-accent);
}


.almap-list-item[hidden] {
	display: none;
}

/* the search sits above the list, so the list gets less room */
.almap-search ~ .almap-list {
	max-height: calc(var(--almap-height) - 6em);
}

.almap-layout-stacked .almap-search ~ .almap-list {
	max-height: none;
}

/* color-mix is recent; these fall back to the plain accent colour */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
	.almap-search-box:focus-within {
		box-shadow: 0 0 0 4px var(--almap-hover);
	}

	.almap-search-go,
	.almap-search-go:hover {
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	}

	.almap-list-item:hover .almap-row-pin {
		background: var(--almap-hover);
	}
}

/* ---------- nearby results ---------- */

.almap-list-dist {
	display: inline-flex;
	align-items: center;
	margin-top: 0.3em;
	padding: 0.2em 0.55em;
	border-radius: 999px;
	background: var(--almap-hover);
	color: var(--almap-accent);
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

/* ordering by distance is done with flex order */
.almap-has-distances .almap-list {
	display: flex;
	flex-direction: column;
}

.almap-search-status.is-busy {
	color: var(--almap-muted);
}

.almap-search-status.is-busy::before {
	background: var(--almap-muted);
	animation: almap-pulse 1s ease-in-out infinite;
}

@keyframes almap-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.35; transform: scale(0.7); }
}

.almap-origin {
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

@media (prefers-reduced-motion: reduce) {
	.almap-search-status.is-busy::before {
		animation: none;
	}
}

/* ---------- use my location ---------- */

.almap-geo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	margin: 0;
	padding: 0 0.95em;
	border: 1.5px solid var(--almap-line);
	border-radius: 12px;
	background: var(--almap-surface);
	color: var(--almap-on-surface);
	font-family: inherit;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.almap-geo:hover:not(:disabled),
.almap-geo:focus-visible {
	border-color: var(--almap-accent);
	background: var(--almap-surface);
	background-image: none;
	box-shadow: none;
	color: var(--almap-accent);
}

.almap-geo:disabled {
	opacity: 0.6;
	cursor: progress;
}

.almap-geo-icon {
	display: flex;
	color: var(--almap-accent);
}

/* ---------- browse by area ---------- */

.almap-browse {
	margin: 0.9em 1em 0;
	padding-top: 0.9em;
	border-top: 1px solid var(--almap-line);
}

.almap-browse-title {
	margin: 0 0 0.6em;
	font-size: calc(var(--almap-list-size) * 0.72);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--almap-muted);
}

.almap-browse-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

.almap-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
	padding: 0.4em 0.75em;
	border: 1px solid var(--almap-line);
	border-radius: 999px;
	background: var(--almap-surface);
	color: var(--almap-on-surface);
	font-family: inherit;
	font-size: calc(var(--almap-list-size) * 0.75);
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.almap-chip:hover,
.almap-chip:focus-visible {
	border-color: var(--almap-accent);
	background: var(--almap-surface);
	background-image: none;
	box-shadow: none;
	color: var(--almap-accent);
}

.almap-chip.is-active {
	background: var(--almap-accent);
	border-color: var(--almap-accent);
	color: #fff;
}

.almap-chip-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5em;
	padding: 0.1em 0.4em;
	border-radius: 999px;
	background: var(--almap-hover);
	color: var(--almap-muted);
	font-size: 0.85em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.almap-chip.is-active .almap-chip-count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

/* the search row can wrap on narrow panels */
@media (max-width: 1100px) {
	.almap-search {
		flex-wrap: wrap;
	}

	.almap-search-box {
		flex: 1 1 100%;
	}

	.almap-geo,
	.almap-search-go {
		flex: 1 1 auto;
		padding: 0.6em 0.9em;
	}

}

/* ---------- route to the nearest location ---------- */

.almap-route {
	animation: almap-route-dash 22s linear infinite;
}

@keyframes almap-route-dash {
	to { stroke-dashoffset: -400; }
}

.almap-route-label {
	position: absolute;
	transform: translate(-50%, -50%);
	padding: 0.25em 0.6em;
	border-radius: 999px;
	background: var(--almap-accent, #2563eb);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

/* the closest result gets a quiet marker of its own */
.almap-list-item.is-nearest .almap-row {
	box-shadow: inset 0 0 0 1.5px var(--almap-accent);
}

.almap-list-item.is-nearest .almap-list-dist {
	background: var(--almap-accent);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.almap-route {
		animation: none;
	}
}
