/*
 * Holiday House Lights map.
 *
 * Colours come from the theme's --hhl-* custom properties; fallbacks keep it usable
 * with any theme.
 */

.hhl-map {
	--hhl-map-bg: var(--hhl-surface, #17231d);
	--hhl-map-panel: var(--color-bg, #0d1411);
	--hhl-map-text: var(--color-text, #fff);
	--hhl-map-muted: var(--hhl-muted, #b8c5be);
	--hhl-map-border: var(--color-border, rgba(255, 255, 255, 0.18));
	--hhl-map-primary: var(--hhl-primary, #0b9444);
	--hhl-map-accent: var(--hhl-accent, #ec1d38);
	--hhl-map-focus: var(--hhl-focus, #ffcb08);
	/* Selected and featured bulbs: brand gold in both modes (focus rings use --hhl-map-focus). */
	--hhl-map-gold: #ffcb08;
	--hhl-map-radius: var(--hhl-radius, 0.75rem);
	--hhl-map-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.45);

	position: relative;
	height: 70svh;
	min-height: 420px;
	overflow: hidden;
	background: var(--hhl-map-bg);
	color: var(--hhl-map-text);
	font-size: 1rem;
	line-height: 1.45;
}

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

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

.hhl-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hhl-map :focus-visible {
	outline: 3px solid var(--hhl-map-focus);
	outline-offset: 2px;
}

.hhl-map__canvas {
	position: absolute;
	inset: 0;
}

.hhl-map__loading {
	display: grid;
	place-items: center;
	height: 100%;
	margin: 0;
	color: var(--hhl-map-muted);
	font-weight: 700;
}

/* ---------- Floating panels ---------- */

.hhl-map__intro,
.hhl-map__toolbar,
.hhl-map__list,
.hhl-sheet,
.hhl-map__fallback {
	position: absolute;
	z-index: 5;
	border-radius: var(--hhl-map-radius);
	background: var(--hhl-map-panel);
	box-shadow: var(--hhl-map-shadow);
}

.hhl-map__intro {
	top: 0.75rem;
	left: 0.75rem;
	right: 0.75rem;
	max-width: 30rem;
	padding: 0.9rem 3.25rem 0.9rem 1.1rem;
}

.hhl-map__heading {
	margin: 0 0 0.25rem;
	font-family: var(--hhl-heading-font, inherit);
	font-size: clamp(1.35rem, 1rem + 2vw, 2rem);
	line-height: 1.2;
}

.hhl-map__text {
	margin: 0;
	color: var(--hhl-map-muted);
}

.hhl-map__intro-close,
.hhl-map__icon-button {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.hhl-map__intro-close {
	position: absolute;
	top: 0.25rem;
	right: 0.25rem;
}

.hhl-map__intro-close:hover,
.hhl-map__icon-button:hover {
	background: var(--hhl-map-bg);
}

.hhl-map__fallback {
	top: 50%;
	left: 0.75rem;
	right: 0.75rem;
	max-width: 30rem;
	margin: 0 auto;
	padding: 1rem 1.25rem;
	border-left: 6px solid var(--hhl-map-focus);
	font-weight: 700;
	transform: translateY(-50%);
}

.hhl-map.is-map-failed .hhl-map__fallback {
	top: 0.75rem;
	transform: none;
}

.hhl-map.is-map-failed .hhl-map__intro {
	display: none;
}

/* ---------- Bottom dock: route card + toolbar ---------- */

.hhl-map__dock {
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 5;
	display: grid;
	gap: 0.5rem;
	max-width: 34rem;
}

.hhl-map__dock .hhl-map__toolbar,
.hhl-map__dock .hhl-route {
	position: static;
}

/* ---------- Toolbar ---------- */

.hhl-map__toolbar {
	display: grid;
	gap: 0.5rem;
	padding: 0.5rem;
}

/* ---------- Featured route card ---------- */

.hhl-route {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem 0.75rem;
	align-items: center;
	padding: 0.6rem 0.75rem;
	border-top: 4px solid var(--hhl-map-focus);
	border-radius: var(--hhl-map-radius);
	background: var(--hhl-map-panel);
	box-shadow: var(--hhl-map-shadow);
}

.hhl-route__expand {
	min-height: 3rem;
	padding: 0.5rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--hhl-map-primary);
	color: var(--hhl-on-primary, #fff);
	font: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
}

.hhl-route__details {
	display: none;
	grid-column: 1 / -1;
	gap: 0.5rem;
}

.hhl-route.is-open .hhl-route__details {
	display: grid;
}

.hhl-route.is-open .hhl-route__expand {
	background: transparent;
	color: inherit;
	text-decoration: underline;
}

.hhl-route__head {
	display: grid;
	gap: 0.1rem;
}

.hhl-route__title {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	margin: 0;
	font-family: var(--hhl-heading-font, inherit);
	font-size: 1.1rem;
	line-height: 1.2;
}

.hhl-route__badge {
	color: var(--hhl-map-focus);
}

.hhl-route__summary {
	margin: 0;
	color: var(--hhl-map-muted);
	font-weight: 700;
}

.hhl-route__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.hhl-route__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.5rem 0.75rem;
	border: 2px solid var(--hhl-map-border);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.hhl-route__button--primary {
	border-color: var(--hhl-map-primary);
	background: var(--hhl-map-primary);
	color: var(--hhl-on-primary, #fff);
	font-size: 1.05rem;
}

.hhl-route__button--quiet {
	border-color: transparent;
	text-decoration: underline;
}

.hhl-route__note {
	margin: 0;
	color: var(--hhl-map-muted);
	font-size: 0.85rem;
}

/* Route hidden: only the "Show the Featured route" control remains. */
.hhl-route.is-collapsed .hhl-route__summary,
.hhl-route.is-collapsed .hhl-route__note,
.hhl-route.is-collapsed .hhl-route__button:not([data-hhl-route-toggle]) {
	display: none;
}

.hhl-route.is-collapsed .hhl-route__actions {
	grid-template-columns: 1fr;
}

.hhl-route.is-collapsed .hhl-route__details {
	display: none;
}

.hhl-route__summary {
	font-size: 0.9rem;
}

/* Phones: a compact intro card. */
@media (max-width: 37.5em) {
	.hhl-map__intro {
		padding: 0.6rem 3rem 0.6rem 0.9rem;
	}

	.hhl-map__heading {
		font-size: 1.2rem;
	}

	.hhl-map__text {
		font-size: 0.9rem;
		line-height: 1.35;
	}
}

.hhl-map__city select {
	width: 100%;
	min-height: 3rem;
	padding: 0.5rem 2.5rem 0.5rem 0.9rem;
	border: 2px solid var(--hhl-map-border);
	border-radius: var(--hhl-map-radius);
	background: var(--hhl-map-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b8c5be' stroke-width='2.5'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
	color: inherit;
	font: inherit;
	font-weight: 700;
	appearance: none;
}

.hhl-map__actions {
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	gap: 0.5rem;
}

.hhl-map__action {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	padding: 0.35rem 0.5rem;
	border: 2px solid var(--hhl-map-border);
	border-radius: var(--hhl-map-radius);
	background: var(--hhl-map-bg);
	color: inherit;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.hhl-map__action:hover {
	border-color: var(--hhl-map-text);
}

.hhl-map__action[aria-expanded="true"] {
	border-color: var(--hhl-map-primary);
}

.hhl-map__action[aria-busy="true"] svg {
	animation: hhl-map-spin 1s linear infinite;
}

.hhl-map__action svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@keyframes hhl-map-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Pins ---------- */

.hhl-pin {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	cursor: pointer;
}

.hhl-pin__bulb {
	width: 18px;
	height: 26px;
	border: 2px solid rgba(0, 0, 0, 0.55);
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--hhl-map-accent) 45%);
	box-shadow: 0 0 10px 3px color-mix(in srgb, var(--hhl-map-accent) 70%, transparent);
	transform: rotate(180deg);
}

.hhl-pin__cap {
	position: absolute;
	top: 5px;
	width: 10px;
	height: 6px;
	border-radius: 2px;
	background: #6b7570;
}

.hhl-pin--commercial .hhl-pin__bulb {
	background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--hhl-map-primary) 45%);
	box-shadow: 0 0 10px 3px color-mix(in srgb, var(--hhl-map-primary) 70%, transparent);
}

.hhl-pin.is-selected .hhl-pin__bulb {
	background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--hhl-map-gold) 45%);
	box-shadow: 0 0 16px 6px color-mix(in srgb, var(--hhl-map-gold) 75%, transparent);
	transform: rotate(180deg) scale(1.35);
}

.hhl-pin--featured .hhl-pin__bulb {
	width: 22px;
	height: 30px;
	background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--hhl-map-gold) 45%);
	box-shadow: 0 0 14px 5px color-mix(in srgb, var(--hhl-map-gold) 70%, transparent);
}

.hhl-pin__num {
	position: absolute;
	top: -4px;
	right: -2px;
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--hhl-map-accent);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
}

.hhl-cluster {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.6rem;
	border: 3px solid #fff;
	border-radius: 999px;
	background: var(--hhl-map-accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	box-shadow: 0 0 14px 4px color-mix(in srgb, var(--hhl-map-accent) 60%, transparent);
	cursor: pointer;
}

.hhl-cluster--big {
	min-width: 54px;
	height: 54px;
	font-size: 1.1rem;
}

.hhl-you {
	width: 20px;
	height: 20px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #1a73e8;
	box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.3);
}

@media (prefers-reduced-motion: no-preference) {
	.hhl-pin__bulb {
		transition: transform 0.15s ease;
	}

	.hhl-you {
		animation: hhl-you-pulse 2s ease-out infinite;
	}

	@keyframes hhl-you-pulse {
		0% {
			box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.45);
		}

		100% {
			box-shadow: 0 0 0 14px rgba(26, 115, 232, 0);
		}
	}
}

/* ---------- Details sheet ---------- */

.hhl-sheet {
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 8;
	display: flex;
	flex-direction: column;
	max-height: 62%;
	border-radius: var(--hhl-map-radius) var(--hhl-map-radius) 0 0;
}

.hhl-sheet.is-expanded {
	max-height: 94%;
}

.hhl-sheet__handle-row {
	display: flex;
	flex: none;
	align-items: center;
	padding: 0.25rem 0.5rem 0 3.5rem;
	touch-action: none;
}

.hhl-sheet__handle {
	display: grid;
	flex: 1;
	place-items: center;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: grab;
}

.hhl-sheet__grip {
	width: 3rem;
	height: 0.35rem;
	border-radius: 999px;
	background: var(--hhl-map-muted);
}

.hhl-sheet__scroll {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 1rem 1.25rem;
}

.hhl-sheet__media {
	margin: 0 0 0.75rem;
	overflow: hidden;
	border-radius: var(--hhl-map-radius);
	background: #000;
}

.hhl-sheet__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 30vh;
	object-fit: cover;
}

.hhl-sheet.is-expanded .hhl-sheet__media img {
	max-height: 60vh;
	object-fit: contain;
}

.hhl-sheet__stop {
	display: inline-block;
	margin: 0 0 0.35rem;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hhl-map-focus) 22%, transparent);
	color: var(--hhl-map-text);
	font-size: 0.9rem;
	font-weight: 700;
}

.hhl-sheet__meta {
	margin: 0 0 0.25rem;
	color: var(--hhl-map-muted);
	font-weight: 700;
}

.hhl-sheet__title {
	margin: 0 0 0.25rem;
	font-family: var(--hhl-heading-font, inherit);
	font-size: 1.5rem;
	line-height: 1.2;
}

.hhl-sheet__title:focus {
	outline: none;
}

.hhl-sheet__address {
	margin: 0 0 0.75rem;
	font-weight: 700;
}

.hhl-sheet__directions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.hhl-sheet__directions-label {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--hhl-map-muted);
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hhl-sheet__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.6rem 1rem;
	border: 2px solid currentColor;
	border-radius: 999px;
	color: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
}

.hhl-sheet__button--primary {
	border-color: var(--hhl-map-primary);
	background: var(--hhl-map-primary);
	color: var(--hhl-on-primary, #fff);
	font-size: 1.15rem;
}

.hhl-sheet__description {
	margin: 0 0 1rem;
}

.hhl-sheet__links {
	display: grid;
	gap: 0.5rem;
	justify-items: start;
}

.hhl-sheet__link {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	color: var(--color-link, inherit);
}

/* ---------- List panel ---------- */

.hhl-map__list {
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 7;
	display: flex;
	flex-direction: column;
	max-height: 70%;
	border-radius: var(--hhl-map-radius) var(--hhl-map-radius) 0 0;
}

.hhl-map__panel-head {
	display: flex;
	flex: none;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.5rem 0.5rem 1rem;
	border-bottom: 1px solid var(--hhl-map-border);
}

.hhl-map__panel-title {
	margin: 0;
	font-family: var(--hhl-heading-font, inherit);
	font-size: 1.25rem;
}

.hhl-map__panel-title:focus {
	outline: none;
}

.hhl-map__list-items {
	flex: 1;
	margin: 0;
	padding: 0.5rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.hhl-map__list-item {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	width: 100%;
	min-height: 3.5rem;
	padding: 0.5rem;
	border: 0;
	border-radius: var(--hhl-map-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.hhl-map__list-item:hover {
	background: var(--hhl-map-bg);
}

.hhl-map__list-num {
	display: grid;
	flex: none;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--hhl-map-accent);
	color: #fff;
	font-weight: 700;
}

.hhl-map__list-item img {
	flex: none;
	width: 72px;
	height: 54px;
	border-radius: 0.4rem;
	object-fit: cover;
}

.hhl-map__list-item span {
	display: grid;
}

.hhl-map__list-item span span {
	color: var(--hhl-map-muted);
	font-size: 0.9rem;
}

.hhl-map__list-empty {
	padding: 1rem;
	color: var(--hhl-map-muted);
}

/* ---------- Wide screens: side panels ---------- */

@media (min-width: 56.25em) {
	.hhl-map__dock {
		left: auto;
		right: 4.5rem;
		width: 30rem;
	}

	/* Wide screens: the route card is always fully open. */
	.hhl-route__expand {
		display: none;
	}

	.hhl-route__details,
	.hhl-route.is-open .hhl-route__details {
		display: grid;
	}

	.hhl-route.is-collapsed .hhl-route__details {
		display: grid;
	}

	.hhl-sheet,
	.hhl-map__list {
		top: 0.75rem;
		left: 0.75rem;
		right: auto;
		bottom: 0.75rem;
		width: 26rem;
		max-height: none;
		border-radius: var(--hhl-map-radius);
	}

	.hhl-sheet.is-expanded {
		max-height: none;
	}

	.hhl-sheet__handle-row {
		justify-content: flex-end;
		padding-left: 0.5rem;
	}

	.hhl-sheet__handle {
		display: none;
	}

	.hhl-map__intro {
		left: 0.75rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hhl-sheet:not([hidden]),
	.hhl-map__list:not([hidden]) {
		animation: hhl-sheet-in 0.22s ease-out;
	}

	@keyframes hhl-sheet-in {
		from {
			transform: translateY(24px);
			opacity: 0;
		}

		to {
			transform: none;
			opacity: 1;
		}
	}
}

.hhl-map__gmap {
	position: absolute;
	inset: 0;
}

/* ---------- Featured / My route switch ---------- */

.hhl-route__modes {
	display: flex;
	grid-column: 1 / -1;
	gap: 0.25rem;
	padding: 0.2rem;
	border-radius: 999px;
	background: var(--hhl-map-bg);
}

.hhl-route__mode {
	display: inline-flex;
	flex: 1;
	gap: 0.35rem;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.35rem 0.75rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
}

.hhl-route__mode[aria-pressed="true"] {
	background: var(--hhl-map-panel);
	box-shadow: inset 0 0 0 2px var(--hhl-map-focus);
}

.hhl-route__count {
	display: inline-grid;
	place-items: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--hhl-map-accent);
	color: #fff;
	font-size: 0.8rem;
}

.hhl-route__mine {
	display: grid;
	gap: 0.5rem;
}

.hhl-route__empty,
.hhl-route__order-note {
	margin: 0;
	color: var(--hhl-map-muted);
}

.hhl-route__legs {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hhl-route__leg-label {
	margin: 0 0 0.25rem;
	font-size: 0.9rem;
	font-weight: 700;
}

.hhl-route__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.hhl-route__tools .hhl-route__button {
	flex: 1 1 auto;
	min-height: 2.75rem;
	font-size: 0.9rem;
}

.hhl-route__button[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.hhl-route__button[aria-busy="true"] {
	cursor: progress;
}

/* ---------- Sheet: add to my route ---------- */

.hhl-sheet__add {
	width: 100%;
	margin-bottom: 0.5rem;
	border-color: var(--hhl-map-focus);
}

.hhl-sheet__add.is-added {
	border-style: dashed;
}

.hhl-sheet__add[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.hhl-sheet__add-note {
	margin: 0 0 0.75rem;
	color: var(--hhl-map-muted);
	font-size: 0.9rem;
}

/* ---------- Editable "My route" list ---------- */

.hhl-map__list-edit {
	display: flex;
	gap: 0.25rem;
	align-items: center;
	border-bottom: 1px solid var(--hhl-map-border);
}

.hhl-map__list-edit .hhl-map__list-item {
	flex: 1;
	min-width: 0;
}

.hhl-map__list-controls {
	display: flex;
	flex: none;
}

.hhl-map__list-control {
	font-size: 1.1rem;
}

.hhl-map__list-control[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

/* The dock never grows past the map: a tall route card scrolls inside itself. */
.hhl-map__dock {
	max-height: calc(100% - 1.5rem);
	grid-template-rows: minmax(0, auto) auto;
}

/* Fixed rows, so the toolbar doesn't jump when the route card appears above it. */
.hhl-map__dock .hhl-route {
	grid-row: 1;
}

.hhl-map__dock .hhl-map__toolbar {
	grid-row: 2;
}

.hhl-map__dock .hhl-route {
	max-height: 60vh;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

@media (max-width: 56.24em) {
	/* Leave room for the toolbar under an open route card. */
	.hhl-map__dock .hhl-route {
		max-height: 42vh;
	}
}

.hhl-sheet__like {
	margin: 0.25rem 0 1rem;
}

/* ---------- Start a route ---------- */

.hhl-map__action--route {
	border-color: var(--hhl-map-primary);
}

.hhl-route__button--primary-outline {
	border-color: var(--hhl-map-primary);
}

/* "Add displays to your route" list: the row opens the display, the toggle adds it. */
.hhl-map__list-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.hhl-map__list-row .hhl-map__list-item {
	flex: 1;
	min-width: 0;
}

.hhl-map__pick {
	flex: none;
	min-width: 6rem;
	min-height: 48px;
	padding: 0.4rem 0.75rem;
	border: 2px solid var(--hhl-map-primary);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.hhl-map__pick.is-added {
	background: var(--hhl-map-primary);
	color: var(--hhl-on-primary, #fff);
}

.hhl-map__pick:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.hhl-map__pick:focus-visible {
	outline: 3px solid var(--hhl-map-focus);
	outline-offset: 2px;
}

/* ---------- Sponsor tags on the map (nothing like the light bulbs) ---------- */

/* Same 44px touch area as a light pin; the visible tag is about the bulb's size. */
.hhl-spin {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	cursor: pointer;
}

.hhl-spin__card {
	position: relative;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	overflow: hidden;
	border: 2px solid var(--hhl-map-gold);
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	color: #15201a;
	font-family: var(--hhl-heading-font, inherit);
	font-size: 0.8rem;
	font-weight: 700;
}

.hhl-spin__card img {
	width: 100%;
	height: 100%;
	padding: 2px;
	object-fit: contain;
}

/* The pointer under the tag. */
.hhl-spin::after {
	content: "";
	position: absolute;
	bottom: 4px;
	left: 50%;
	width: 7px;
	height: 7px;
	background: var(--hhl-map-gold);
	transform: translateX(-50%) rotate(45deg);
	z-index: -1;
}

.hhl-spin__badge {
	position: absolute;
	top: 3px;
	right: 3px;
	display: grid;
	place-items: center;
	width: 14px;
	height: 14px;
	border: 1.5px solid #fff;
	border-radius: 50%;
	background: var(--hhl-map-accent);
}

.hhl-spin__badge svg {
	width: 8px;
	height: 8px;
	fill: none;
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hhl-spin.is-selected .hhl-spin__card {
	box-shadow: 0 0 0 3px rgba(255, 203, 8, 0.5), 0 2px 8px rgba(0, 0, 0, 0.5);
	transform: scale(1.3);
}

@media (prefers-reduced-motion: no-preference) {
	.hhl-spin__card {
		transition: transform 0.15s ease;
	}
}

/* ---------- Sponsor panel ---------- */

.hhl-sponsor-sheet__kicker {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	margin: 0 0 0.5rem;
	color: var(--hhl-map-muted);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hhl-sponsor-sheet__kicker svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: none;
	stroke: var(--hhl-map-accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hhl-sponsor-sheet__head {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.hhl-sponsor-sheet__logo {
	flex: none;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border: 3px solid var(--hhl-map-gold);
	border-radius: 14px;
	background: #fff;
}

.hhl-sponsor-sheet__logo[hidden] {
	display: none;
}

.hhl-sponsor-sheet__logo img {
	width: 100%;
	height: 100%;
	padding: 4px;
	object-fit: contain;
}

.hhl-sponsor-sheet__head .hhl-sheet__title,
.hhl-sponsor-sheet__head .hhl-sheet__address {
	margin: 0;
}

.hhl-sponsor-sheet__offer-box {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 1rem;
	border: 2px dashed var(--hhl-map-gold);
	border-radius: var(--hhl-map-radius);
}

.hhl-sponsor-sheet__offer-box[hidden] {
	display: none;
}

.hhl-sponsor-sheet__offer {
	margin: 0;
	color: var(--hhl-map-focus);
	font-family: var(--hhl-heading-font, inherit);
	font-size: 1.3rem;
	font-weight: 700;
}

.hhl-sponsor-sheet__details,
.hhl-sponsor-sheet__ends {
	margin: 0;
}

.hhl-sponsor-sheet__ends {
	color: var(--hhl-map-muted);
	font-weight: 700;
}

/* A dismissed intro keeps its heading for screen readers (the page's h1). */
.hhl-map__intro.is-dismissed {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Dark text on green, like the site's selected pills (white on green is under 4.5:1). */
.hhl-map__pick.is-added {
	color: var(--hhl-map-panel);
}

.hhl-route__button[hidden] {
	display: none;
}

/* Short phone screens: the welcome card keeps just its heading, so it clears the route card. */
@media (max-width: 37.5em) and (max-height: 720px) {
	.hhl-map__intro .hhl-map__text {
		display: none;
	}
}

/* "Lit in 2026 ✓" in the details sheet. */
.hhl-lit {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.05rem 0.55rem;
	border: 1px solid color-mix(in srgb, var(--hhl-map-primary) 60%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--hhl-map-primary) 16%, transparent);
	color: var(--hhl-map-text);
	font-size: 0.85em;
	white-space: nowrap;
}

.hhl-lit[hidden] {
	display: none;
}
