/*
 * Map points on the map page (Kart og sted, delprosjekt 4, 1A–5A 23.11.2026).
 *
 * «Show only» pills, the point markers, the numbered bubbles and the point rows.
 * Enqueued only on the map page (Place_Map_Page::enqueue_assets()), after ut-pv.css.
 * Colour follows the site: the theme's link colour, else ui-core's interactive
 * colour; text and lines use the .ut-ui semantic roles only.
 */

.ut-pv-mapp-page,
.ut-map {
	--ut-pv-pt: var(--ut-link, var(--ut-interactive, #2b6cb0));
}

/* «+ Propose a point» */
.ut-pv-mapp-propose {
	margin: 0 0 0.75rem;
}

/* «See on the map» in a practical topic */
.ut-pv-front__topic-map {
	margin: 0.5rem 0 0;
	font-weight: 600;
}

/* «Show only» */
.ut-pv-mapp-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0 0 1rem;
}

.ut-pv-mapp-chips__label {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ut-content-muted);
}

.ut-pv-mapp-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ut-pv-mapp-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 2.75rem;
	padding: 0 0.875rem;
	border: 1px solid var(--ut-border-strong, var(--ut-border));
	border-radius: 999px;
	background: var(--ut-surface, #fff);
	color: var(--ut-content);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.ut-pv-mapp-chip:hover {
	border-color: var(--ut-pv-pt);
}

.ut-pv-mapp-chip:focus-visible {
	outline: 2px solid var(--ut-pv-pt);
	outline-offset: 2px;
}

.ut-pv-mapp-chip.is-on {
	border: 2px solid var(--ut-pv-pt);
	padding: 0 calc(0.875rem - 1px);
}

.ut-pv-mapp-chip small {
	font-weight: 400;
	color: var(--ut-content-muted);
}

.ut-pv-mapp-chip__icon {
	width: 1.125rem;
	height: 1.125rem;
	flex: none;
	fill: none;
	stroke: var(--ut-pv-pt);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Point markers on the map */
.ut-pv-mapp-pt__wrap,
.ut-pv-mapp-bubble__wrap {
	background: none;
	border: 0;
}

.ut-pv-mapp-pt {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	box-sizing: border-box;
	border: 2px solid #fff;
	border-radius: 8px;
	background: var(--ut-pv-pt);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
	cursor: pointer;
}

.ut-pv-mapp-pt__svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ut-pv-mapp-pt__wrap.is-selected .ut-pv-mapp-pt {
	outline: 3px solid var(--ut-content, #1d1d1b);
	outline-offset: 2px;
}

.ut-pv-mapp-pt__wrap:focus-visible .ut-pv-mapp-pt,
.ut-pv-mapp-bubble__wrap:focus-visible .ut-pv-mapp-bubble {
	outline: 3px solid var(--ut-content, #1d1d1b);
	outline-offset: 2px;
}

.ut-pv-mapp-bubble {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	box-sizing: border-box;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--ut-pv-pt);
	color: #fff;
	font-weight: 700;
	font-size: 0.875rem;
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
	cursor: pointer;
}

/* The chosen type's rows */
.ut-pv-mapp-prow {
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	gap: 0.625rem;
	align-items: start;
}

.ut-pv-mapp-prow__icon {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.125rem;
	fill: none;
	stroke: var(--ut-pv-pt);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* On a phone the pills are one row that slides sideways, so the map stays near the top. */
@media (max-width: 600px) {
	.ut-pv-mapp-chips {
		display: block;
	}

	.ut-pv-mapp-chips__label {
		margin-bottom: 0.375rem;
	}

	.ut-pv-mapp-chips ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 0 -1rem;
		padding: 0 1rem 0.25rem;
		scroll-padding-inline: 1rem;
	}

	.ut-pv-mapp-chips ul::-webkit-scrollbar {
		display: none;
	}

	.ut-pv-mapp-chips li {
		flex: none;
	}
}

/* «Travel to {place}»: the parking points on a small map and as a list */
.ut-pv-reise__map {
	height: 260px;
	min-height: 220px;
	margin: 0 0 0.75rem;
}

.ut-pv-reise__parking {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.ut-pv-reise__parking p {
	margin: 0.125rem 0 0;
	color: var(--ut-content-muted);
	font-size: 0.9375rem;
}
