/* wwh/accommodation-archive — the list and the map side by side
   (GitLab #354, option 1 of ACCOM_LIST_MOCKS.pdf). */

.wwh-accom-archive {
	--wwh-accom-ink: var(--wp--preset--color--ink-primary, #1A1613);
	--wwh-accom-cap: var(--wp--preset--color--ink-caption, #5A544D);
	--wwh-accom-brand: var(--wp--preset--color--brand-text, #8F632F);
	--wwh-accom-dark: var(--wp--preset--color--warm-obsidian, #18140F);
	--wwh-accom-gold: var(--wp--preset--color--gold, #D9B25C);
	--wwh-accom-river: var(--wp--preset--color--river, #1F4E5A);
	--wwh-accom-line: #d9d1c4;
	--wwh-accom-ui: var(--wp--preset--font-family--ui, 'Montserrat', Arial, sans-serif);
	--wwh-accom-display: var(--wp--preset--font-family--display, Georgia, serif);
	--wwh-accom-top: var(--wwh-pinned-header, 0px);
	width: 100%;
	position: relative;
}

/* ---------- Filter row ---------- */
.wwh-accom-archive__bar {
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--wwh-accom-line);
}

.wwh-accom-archive__count {
	margin: 0 0 0.85rem;
	font-family: var(--wwh-accom-ui);
	font-size: 0.875rem;
	color: var(--wwh-accom-cap);
}

.wwh-accom-archive__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.wwh-accom-archive__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wwh-accom-archive__chip,
.wwh-accom-archive__select {
	appearance: none;
	min-height: 44px;
	border: 1px solid #b9ae9c;
	background: #fff;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	font-family: var(--wwh-accom-ui);
	font-size: 0.8125rem;
	line-height: 1.2;
	color: var(--wwh-accom-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	white-space: nowrap;
}

.wwh-accom-archive__select {
	padding-right: 2.1rem;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231A1613' stroke-width='1.6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 10px 7px;
}

.wwh-accom-archive__sort {
	margin-left: auto;
}

.wwh-accom-archive__chip:hover,
.wwh-accom-archive__select:hover {
	border-color: var(--wwh-accom-ink);
}

.wwh-accom-archive__chip:focus-visible,
.wwh-accom-archive__select:focus-visible,
.wwh-accom-archive__view:focus-visible,
.wwh-accom-archive__clear:focus-visible {
	outline: 2px solid var(--wwh-accom-ink);
	outline-offset: 2px;
}

.wwh-accom-archive__n {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wwh-accom-cap);
}

.wwh-accom-archive__chip.is-active {
	background: var(--wwh-accom-dark);
	border-color: var(--wwh-accom-dark);
	color: #fff;
}

.wwh-accom-archive__chip.is-active .wwh-accom-archive__n {
	color: #e3d8c4;
}

.wwh-accom-archive__chip--tool {
	border-color: var(--wwh-accom-ink);
	font-weight: 600;
}

.wwh-accom-archive__chip svg,
.wwh-accom-archive__view svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

/* Filters panel (the features). */
.wwh-accom-archive__panel {
	margin-top: 0.85rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--wwh-accom-line);
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.wwh-accom-archive__panel[hidden] {
	display: none;
}

.wwh-accom-archive__panel fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.wwh-accom-archive__panel legend {
	padding: 0;
	margin-bottom: 0.5rem;
	font-family: var(--wwh-accom-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wwh-accom-brand);
}

.wwh-accom-archive__checks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: 0.15rem 1.5rem;
}

.wwh-accom-archive__checks label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 40px;
	font-size: 1.0625rem;
	cursor: pointer;
}

.wwh-accom-archive__checks input {
	width: 20px;
	height: 20px;
	accent-color: var(--wwh-accom-dark);
	margin: 0;
	flex: none;
}

.wwh-accom-archive__clear {
	appearance: none;
	background: none;
	border: 0;
	padding: 0.5rem 0;
	min-height: 44px;
	font-family: var(--wwh-accom-ui);
	font-size: 0.8125rem;
	color: var(--wwh-accom-ink);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- List + map ---------- */
.wwh-accom-archive__split {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	align-items: start;
}

.wwh-accom-archive__split.has-no-map {
	grid-template-columns: minmax(0, 1fr);
	max-width: 52rem;
}

.wwh-accom-archive__cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wwh-accom-archive__mapcol {
	position: sticky;
	top: calc(var(--wwh-accom-top) + 1rem);
}

.wwh-accom-archive__map {
	position: relative;
	margin: 0;
}

.wwh-accommodation-map__canvas {
	width: 100%;
	height: calc(100vh - var(--wwh-accom-top) - 2rem);
	min-height: 420px;
	max-height: 900px;
	border-radius: 14px;
	overflow: hidden;
	background: #e8e1d4;
	position: relative;
}

.wwh-accommodation-map__noscript,
.wwh-accommodation-map__error {
	padding: 1.5rem;
	text-align: center;
	color: var(--wwh-accom-cap);
	font-style: italic;
}

.wwh-accommodation-map__error { color: #b32d2e; }

/* Top-left of the map: the What's on switch, then the "not on the map" note. */
.wwh-accom-archive__mapbar {
	position: absolute;
	left: 12px;
	top: 12px;
	right: 72px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	pointer-events: none;
}

.wwh-accom-archive__mapbar > * {
	pointer-events: auto;
}

.wwh-accom-archive__events {
	appearance: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.95rem;
	border: 1px solid rgba(24, 20, 15, 0.25);
	border-radius: 999px;
	background: #fff;
	color: var(--wwh-accom-ink);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	font-family: var(--wwh-accom-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}

.wwh-accom-archive__events svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wwh-accom-archive__events:hover {
	border-color: var(--wwh-accom-ink);
}

.wwh-accom-archive__events.is-active {
	background: var(--wwh-accom-river);
	border-color: var(--wwh-accom-river);
	color: #fff;
}

.wwh-accom-archive__events.is-active .wwh-accom-archive__n {
	color: #d6e6ea;
}

.wwh-accom-archive__events:focus-visible {
	outline: 2px solid var(--wwh-accom-ink);
	outline-offset: 2px;
}

.wwh-accom-archive__mapnote {
	margin: 0;
	padding: 0.45rem 0.75rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	font-family: var(--wwh-accom-ui);
	font-size: 0.75rem;
	color: var(--wwh-accom-ink);
}

.wwh-accom-archive__mapnote[hidden] {
	display: none;
}

/* ---------- Card ---------- */
.wwh-accom-card {
	position: relative;
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 1.25rem;
	padding: 10px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(24, 20, 15, 0.06);
	transition: box-shadow 0.15s ease;
}

.wwh-accom-card[hidden],
.wwh-accom-card[data-more-hidden] {
	display: none;
}

.wwh-accom-card:hover,
.wwh-accom-card.is-active {
	box-shadow: 0 0 0 1px rgba(24, 20, 15, 0.12), 0 8px 22px rgba(24, 20, 15, 0.1);
}

.wwh-accom-card.is-featured {
	box-shadow: 0 0 0 2px var(--wwh-accom-dark);
}

.wwh-accom-card:focus-within {
	outline: 2px solid var(--wwh-accom-ink);
	outline-offset: 3px;
}

.wwh-accom-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: 9px;
	overflow: hidden;
	background: var(--wp--preset--color--warm-cream-2, #E9E4DB);
	align-self: start;
}

.wwh-accom-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wwh-accom-card__nophoto {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	color: var(--wwh-accom-cap);
	font-family: var(--wwh-accom-ui);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
}

.wwh-accom-card__house {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wwh-accom-card__badge {
	position: absolute;
	left: 8px;
	top: 8px;
	margin: 0;
	padding: 0.3rem 0.55rem;
	border-radius: 5px;
	background: var(--wwh-accom-gold);
	color: var(--wwh-accom-dark);
	font-family: var(--wwh-accom-ui);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wwh-accom-card__body {
	padding: 0.35rem 0.5rem 0.35rem 0;
	min-width: 0;
}

.wwh-accom-card__kicker {
	margin: 0 0 0.2rem;
	font-family: var(--wwh-accom-ui);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wwh-accom-brand);
}

.wwh-accom-card__name {
	margin: 0 0 0.2rem;
	font-family: var(--wwh-accom-display);
	font-size: 1.5rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.15;
}

.wwh-accom-card__name a {
	color: var(--wwh-accom-ink);
	text-decoration: none;
}

/* The whole card is the link; the name is its accessible text. */
.wwh-accom-card__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
}

.wwh-accom-card__name a:focus-visible {
	outline: none;
}

.wwh-accom-card:hover .wwh-accom-card__name a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.wwh-accom-card__meta {
	margin: 0 0 0.35rem;
	font-family: var(--wwh-accom-ui);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wwh-accom-ink);
}

.wwh-accom-card__excerpt {
	margin: 0 0 0.3rem;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--wwh-accom-cap);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wwh-accom-card__features {
	margin: 0;
	font-family: var(--wwh-accom-ui);
	font-size: 0.75rem;
	color: var(--wwh-accom-cap);
}

/* The card's "show on the map" button, above the card-wide link. */
.wwh-accom-card__locate {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #cfc6b6;
	border-radius: 50%;
	background: #fff;
	color: var(--wwh-accom-ink);
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.wwh-accom-card__locate svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wwh-accom-card__locate:hover {
	background: var(--wwh-accom-dark);
	border-color: var(--wwh-accom-dark);
	color: #fff;
}

.wwh-accom-card__locate:focus-visible {
	outline: 2px solid var(--wwh-accom-ink);
	outline-offset: 2px;
}

/* Room for the button so text never runs under it. */
.wwh-accom-card:has(.wwh-accom-card__locate) .wwh-accom-card__body {
	padding-right: 3.5rem;
}

/* ---------- Map markers ---------- */
.wwh-accom-pin {
	position: relative;
	margin-bottom: 7px;
	padding: 0.25rem 0.6rem;
	min-width: 30px;
	min-height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: var(--wwh-accom-ink);
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
	font-family: var(--wp--preset--font-family--ui, Arial, sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.wwh-accom-pin::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -6px;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: #fff;
	border-bottom: 0;
}

.wwh-accom-pin svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wwh-accom-pin:hover,
.maplibregl-marker.is-active .wwh-accom-pin,
.wwh-accom-pin.is-active {
	background: var(--wwh-accom-dark, #18140F);
	color: #fff;
}

.wwh-accom-pin:hover::after,
.maplibregl-marker.is-active .wwh-accom-pin::after,
.wwh-accom-pin.is-active::after {
	border-top-color: var(--wwh-accom-dark, #18140F);
}

/* MapLibre's wrapper is the marker element we toggle `is-active` on. */
.wwh-accom-pin.is-active,
.maplibregl-marker.wwh-accom-pin.is-active {
	z-index: 5;
}

/* What's on pins: river blue with a calendar, so they never read as a place. */
.wwh-accom-pin--event {
	gap: 0.3rem;
	background: var(--wwh-accom-river, #1F4E5A);
	color: #fff;
}

.wwh-accom-pin--event::after {
	border-top-color: var(--wwh-accom-river, #1F4E5A);
}

.wwh-accom-pin--event svg {
	width: 15px;
	height: 15px;
}

.wwh-accom-pin--event:hover {
	background: var(--wwh-accom-dark, #18140F);
}

.wwh-accom-cluster.wwh-accom-cluster--event {
	background: var(--wwh-accom-river, #1F4E5A);
	box-shadow: 0 0 0 5px rgba(31, 78, 90, 0.22), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Pins that would overlap become one numbered circle (view.js recluster()). */
.wwh-accom-cluster {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--warm-obsidian, #18140F);
	color: #fff;
	border: 3px solid #fff;
	box-shadow: 0 0 0 5px rgba(24, 20, 15, 0.18), 0 2px 8px rgba(0, 0, 0, 0.3);
	font-family: var(--wp--preset--font-family--ui, Arial, sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.12s ease;
}

.wwh-accom-cluster:hover,
.wwh-accom-cluster.is-active {
	background: var(--wp--preset--color--gold, #D9B25C);
	color: var(--wp--preset--color--warm-obsidian, #18140F);
}

.wwh-accom-pop__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wp--preset--font-family--ui, Arial, sans-serif);
	font-size: 0.8125rem;
}

.wwh-accom-pop__list li {
	padding: 0.35rem 1.5rem 0.35rem 0;
	border-bottom: 1px solid #eee5d6;
}

.wwh-accom-pop__list li:last-child {
	border-bottom: 0;
}

.wwh-accom-pop__list a {
	color: var(--wwh-accom-ink);
	font-weight: 600;
}

.wwh-accom-pop__list span {
	color: var(--wwh-accom-cap);
}

.wwh-accom-site {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	pointer-events: none;
}

.wwh-accom-site__dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold, #D9B25C);
	border: 3px solid #fff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
}

.wwh-accom-site__dot svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--wp--preset--color--warm-obsidian, #18140F);
	stroke-width: 1.6;
}

.wwh-accom-site__label {
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.92);
	font-family: var(--wp--preset--font-family--ui, Arial, sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--warm-obsidian, #18140F);
	white-space: nowrap;
}

/* Popup: a small card, above the What's on switch and the note. */
.wwh-accom-archive .maplibregl-popup {
	z-index: 3;
}

.wwh-accom-archive .maplibregl-popup-content {
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wwh-accom-archive .maplibregl-popup-close-button {
	width: 32px;
	height: 32px;
	font-size: 20px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 0 12px 0 8px;
}

.wwh-accom-pop__img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.wwh-accom-pop__body {
	padding: 0.7rem 0.9rem 0.85rem;
}

.wwh-accom-pop__kicker {
	margin: 0 0 0.15rem;
	font-family: var(--wp--preset--font-family--ui, Arial, sans-serif);
	font-size: 0.625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wwh-accom-brand);
}

.wwh-accom-pop__name {
	margin: 0 0 0.15rem;
	font-style: normal;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--wwh-accom-ink);
}

.wwh-accom-pop__meta {
	margin: 0 0 0.45rem;
	font-family: var(--wp--preset--font-family--ui, Arial, sans-serif);
	font-size: 0.75rem;
	color: var(--wwh-accom-ink);
}

.wwh-accom-pop__link {
	font-family: var(--wp--preset--font-family--ui, Arial, sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wwh-accom-ink);
}

/* ---------- Show more (phones) ---------- */
.wwh-accom-archive__more {
	margin: 1.5rem 0 0;
	text-align: center;
}

.wwh-accom-archive__more[hidden] {
	display: none;
}

.wwh-accom-archive__more-note {
	margin: 0 0 0.6rem;
	font-family: var(--wwh-accom-ui);
	font-size: 0.8125rem;
	color: var(--wwh-accom-cap);
}

.wwh-accom-archive__more-btn {
	appearance: none;
	min-height: 48px;
	padding: 0.75rem 1.6rem;
	border: 1.5px solid var(--wwh-accom-ink);
	border-radius: 999px;
	background: #fff;
	color: var(--wwh-accom-ink);
	font-family: var(--wwh-accom-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.wwh-accom-archive__more-btn:hover {
	background: var(--wwh-accom-dark);
	color: #fff;
}

.wwh-accom-archive__more-btn:focus-visible {
	outline: 2px solid var(--wwh-accom-ink);
	outline-offset: 3px;
}

/* ---------- Provider box, empty ---------- */
.wwh-accom-archive__join {
	margin: 2rem 0 0;
	padding: 1.25rem 1.5rem;
	text-align: center;
	background: var(--wp--preset--color--warm-cream-2, #E9E4DB);
	border-radius: 12px;
}

.wwh-accom-archive__join p {
	margin: 0 0 0.5rem;
}

.wwh-accom-archive__join p:last-child {
	margin: 0;
}

.wwh-accom-archive__empty {
	text-align: center;
	padding: 2rem 1rem;
	font-style: italic;
	color: var(--wwh-accom-cap);
}

/* ---------- Phone: list or map ---------- */
.wwh-accom-archive__view {
	display: none;
}

@media (max-width: 899px) {
	.wwh-accom-archive__split {
		grid-template-columns: minmax(0, 1fr);
	}

	.wwh-accom-archive__mapcol {
		display: none;
		position: static;
	}

	.wwh-accom-archive.is-map-view .wwh-accom-archive__mapcol {
		display: block;
	}

	.wwh-accom-archive.is-map-view .wwh-accom-archive__list {
		display: none;
	}

	.wwh-accommodation-map__canvas {
		height: calc(100svh - var(--wwh-accom-top) - 15rem);
		min-height: 380px;
	}

	.wwh-accom-archive__view {
		position: sticky;
		bottom: 1rem;
		z-index: 6;
		display: flex;
		align-items: center;
		gap: 0.5rem;
		width: max-content;
		min-height: 48px;
		margin: 1.5rem auto 0;
		padding: 0.75rem 1.4rem;
		border: 0;
		border-radius: 999px;
		background: var(--wwh-accom-dark);
		color: #fff;
		font-family: var(--wwh-accom-ui);
		font-size: 0.9375rem;
		font-weight: 600;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
		cursor: pointer;
	}

	.wwh-accom-archive__view:focus-visible {
		outline-color: var(--wwh-accom-gold);
		outline-offset: 3px;
	}

	/* One scrolling row of controls instead of four wrapped rows. */
	.wwh-accom-archive__tools {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 -1rem;
		padding: 2px 1rem 4px;
		scrollbar-width: none;
	}

	.wwh-accom-archive__tools::-webkit-scrollbar {
		display: none;
	}

	.wwh-accom-archive__chips {
		flex-wrap: nowrap;
	}

	.wwh-accom-archive__sort {
		margin-left: 0;
	}

	.wwh-accom-archive__chip--tool {
		order: -1;
	}
}

@media (max-width: 599px) {
	.wwh-accom-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}

	.wwh-accom-card__body {
		padding: 0 0.35rem 0.35rem;
	}

	/* Stacked card: the button sits on the photo's top-right corner. */
	.wwh-accom-card__locate {
		top: 20px;
		right: 20px;
		transform: none;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	}

	.wwh-accom-card:has(.wwh-accom-card__locate) .wwh-accom-card__body {
		padding-right: 0.35rem;
	}

	.wwh-accom-card__name {
		font-size: 1.375rem;
	}
}

/* ---------- MapLibre controls ---------- */

/* Keyboard focus ring for map markers. The focusable element is MapLibre's
   marker wrapper (role=button + tabindex), so the ring targets the wrapper.
   `outline` only: THEME_STANDARDS forbids layout shift on focus. */
.maplibregl-marker:focus-visible {
	outline: 2px solid var( --wp--preset--color--ink-primary, #1A1613 );
	outline-offset: 2px;
	border-radius: 999px;
}

/* MapLibre's own attribution links are colour-only, which axe flags as
   link-in-text-block (WCAG 1.4.1). Underline them. */
.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner a,
.maplibregl-ctrl-attrib a {
	text-decoration: underline;
}

/* MapLibre ships 29x29 zoom controls, under the 44x44 target size; same fix
   as geo-map-vector/style.css. */
.wwh-accom-archive .maplibregl-ctrl-group button {
	width: 44px;
	height: 44px;
}

.wwh-accom-archive .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
	background-size: 22px 22px;
}
