
/* Page shell. Card styles live in ak-places-card-premium.php — not repeated. */
.akpa {
	font-family: 'Manrope', sans-serif;
	color: #0B1324;
	background: #fff;
}
.akpa *, .akpa *::before, .akpa *::after { box-sizing: border-box; }
.akpa a { text-decoration: none; }
.akpa-wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* ── band ─────────────────────────────────────────────────────────────── */
.akpa-band {
	background: linear-gradient(180deg, #f2f8f9 0%, #ffffff 100%);
	border-bottom: 1px solid rgba(190, 201, 195, 0.3);
	padding: 40px 0 30px;
}
.akpa-eyebrow {
	font-family: 'Caveat', cursive;
	font-size: 22px;
	font-weight: 700;
	color: #C83D3D;
	margin: 0 0 2px;
	line-height: 1.1;
}
.akpa-h1 {
	font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(28px, 4.4vw, 42px);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.01em;
	color: #0B1324;
	margin: 0 0 10px;
	max-width: 26ch;
}
.akpa-sub {
	font-size: 15.5px;
	line-height: 1.55;
	color: #56635e;
	margin: 0 0 20px;
	max-width: 62ch;
}

/* search */
.akpa-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1.5px solid #dcedef;
	border-radius: 9999px;
	padding: 6px 6px 6px 16px;
	max-width: 620px;
	box-shadow: 0 4px 18px rgba(11, 19, 36, 0.06);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.akpa-search:focus-within {
	border-color: #2A7780;
	box-shadow: 0 6px 24px rgba(42, 119, 128, 0.18);
}
.akpa-search-ic { color: #2A7780; font-size: 22px; flex: 0 0 auto; }
.akpa-search-in {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	color: #0B1324;
	padding: 10px 2px;
	-webkit-appearance: none;
	appearance: none;
}
.akpa-search-in::placeholder { color: #93a29c; }
.akpa-search-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.akpa-search-go {
	flex: 0 0 auto;
	border: 0;
	cursor: pointer;
	background: #2A7780;
	color: #fff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	padding: 11px 22px;
	border-radius: 9999px;
	transition: background .18s ease, transform .18s ease;
}
.akpa-search-go:hover { background: #1D5B62; transform: translateY(-1px); }

/* the count line, and beside it the pills for whatever is switched on */
.akpa-countrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 16px;
}
.akpa-count {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #56635e;
	font-family: 'Plus Jakarta Sans', sans-serif;
	flex: 0 0 auto;
}
.akpa-count strong { color: #0B1324; font-weight: 800; }
.akpa-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #35c07a;
	box-shadow: 0 0 0 4px rgba(53, 192, 122, 0.18);
	flex: 0 0 auto;
}
.akpa-pills {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	min-width: 0;
}
.akpa-pills:focus { outline: none; }
.akpa-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	border: 1.5px solid #dcedef;
	color: #1D5B62;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 8px 4px 11px;
	border-radius: 9999px;
	max-width: 100%;
	white-space: nowrap;
	transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.akpa-pill > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.akpa-pill .ak-ico { width: 15px; height: 15px; opacity: .75; }
.akpa-pill:hover { background: #FBEAEA; border-color: #C83D3D; color: #C83D3D; }
.akpa-pill:hover .ak-ico { opacity: 1; }
.akpa-clear-inline {
	background: transparent;
	padding: 4px 6px;
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.akpa-clear-inline:hover { background: transparent; color: #9d2b2b; }

/* ── filters ──────────────────────────────────────────────────────────── */
.akpa-filters {
	background: #fff;
	border-bottom: 1px solid rgba(190, 201, 195, 0.3);
	padding: 16px 0 14px;
}

/* ── the quick bar: one row, six controls ─────────────────────────────── */
.akpa-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}
.akpa-quick {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.akpa-quick::-webkit-scrollbar { display: none; }
.akpa-bar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }

/* the button that owns everything else */
.akpa-more {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	background: #fff;
	border: 1.5px solid #dcedef;
	color: #0B1324;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12.5px;
	font-weight: 800;
	padding: 8px 14px;
	border-radius: 9999px;
	white-space: nowrap;
	transition: border-color .16s ease, background .16s ease;
}
.akpa-more .ak-ico { width: 17px; height: 17px; color: #2A7780; }
.akpa-more:hover { border-color: #2A7780; background: #f2f8f9; }
.akpa-more.is-on { border-color: #C83D3D; }
.akpa-badge {
	background: #C83D3D;
	color: #fff;
	border-radius: 9999px;
	min-width: 18px;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	padding: 1px 6px;
	line-height: 1.6;
}
/* no script, nothing to open — the rack below is already on the page */
.akpa-more { display: none; }
.ak-js .akpa-more { display: inline-flex; }

.akpa-townform {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	border: 1.5px solid #dcedef;
	border-radius: 9999px;
	padding: 4px 6px 4px 13px;
	min-width: 0;
	transition: border-color .16s ease;
}
.akpa-townform:focus-within, .akpa-townform.is-on { border-color: #2A7780; }
.akpa-town-ic { color: #2A7780; font-size: 19px; flex: 0 0 auto; }
.akpa-townform select {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #33474a;
	/* a <select> sizes itself to its WIDEST option, and the town list holds
	   some long ones — cap it so one control cannot eat the bar */
	max-width: 190px;
	text-overflow: ellipsis;
	background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2356635e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center;
	border: 0;
	outline: 0;
	padding: 7px 26px 7px 0;
	max-width: 100%;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.akpa-town-go, .akpa-sort-go {
	margin-left: 6px;
	border: 0; cursor: pointer;
	background: #2A7780; color: #fff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700; font-size: 12.5px;
	padding: 8px 14px; border-radius: 9999px;
}

.akpa-n {
	background: rgba(11, 19, 36, 0.07);
	color: #56635e;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 800;
	padding: 1px 7px;
	line-height: 1.6;
}

/* the chip sets inside the drawer always wrap — there is no horizontal room to
   scroll in a 380px panel, and a hidden chip in a filter drawer is a dead one */
.akpa-dchips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}
/* ── C2 quick-filter row ── */
.akpa-barlabel {
	font: 800 11.5px/1 'Plus Jakarta Sans', sans-serif;
	letter-spacing: .1em; text-transform: uppercase; color: #5b6478;
	flex: 0 0 auto; align-self: center; padding-right: 2px;
}
.akpa-agerow {
	display: flex; align-items: center; gap: 12px;
	padding: 0 0 4px; margin-top: 10px; min-width: 0;
}
.akpa-agechips {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch; padding-bottom: 2px; min-width: 0;
}
.akpa-agechips::-webkit-scrollbar { display: none; }
.akpa-chip-quick { flex: 0 0 auto; }
@media (max-width: 720px) {
	.akpa-barlabel { display: none; }
	.akpa-agerow { margin-top: 8px; }
}
.akpa-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f2f8f9;
	border: 1.5px solid transparent;
	color: #33474a;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 15px;
	border-radius: 9999px;
	white-space: nowrap;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.akpa-chip .ak-ico { width: 17px; height: 17px; }
.akpa-chip:hover { background: #dcedef; color: #0B1324; }
.akpa-chip.is-on { background: #0B1324; color: #fff; border-color: #0B1324; }
.akpa-chip.is-on .akpa-n { background: rgba(255,255,255,0.2); color: #fff; }
/* the facility chips are a multi-select, so they read as toggles rather than as
   a one-of-these rack: outlined when off, brand teal when on */
.akpa-chip-fac { background: #fff; border-color: #dcedef; }
.akpa-chip-fac:hover { background: #f2f8f9; border-color: #8bbcc2; }
.akpa-chip-fac.is-on { background: #dcedef; border-color: #2A7780; color: #1D5B62; }
.akpa-chip-fac.is-on .akpa-n { background: rgba(42, 119, 128, 0.18); color: #1D5B62; }

.akpa-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1.5px solid #dcedef;
	background: #fff;
	color: #33474a;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 9999px;
	white-space: nowrap;
	transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.akpa-toggle .ak-ico { width: 17px; height: 17px; }
.akpa-toggle:hover { border-color: #2A7780; color: #1D5B62; }
/* This used to be a free-entry-only control, so only the free-entry variant had
   an on-state. The bar now hangs facility toggles off the same class, and a
   pressed filter that looks unpressed is the worst thing a filter bar can do. */
.akpa-toggle.is-on { background: #dcedef; border-color: #2A7780; color: #1D5B62; }
.akpa-toggle.is-on .akpa-n { background: rgba(42, 119, 128, 0.18); color: #1D5B62; }
.akpa-toggle-free.is-on { background: #E6F7EE; border-color: #35c07a; color: #17794b; }
.akpa-toggle-free.is-on .akpa-n { background: rgba(23, 121, 75, 0.15); color: #17794b; }

/* ── the filter drawer ────────────────────────────────────────────────── */
/*
 * TWO LAYOUTS OUT OF ONE MARKUP.
 *
 * The default rules below are the NO-SCRIPT layout: the drawer is a plain
 * grouped block sitting under the control row — roughly the rack this page
 * used to carry — with its dialog chrome (scrim, close, "Show N places")
 * hidden, because with no script none of it can do anything. The `.ak-js`
 * rules then lift the same markup into a right slide-over on desktop and a
 * bottom sheet on a phone. One DOM, no duplicated chips, no filter that is
 * only reachable with JavaScript.
 */
.akpa-scrim { display: none; }
.akpa-drawer {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed rgba(190, 201, 195, 0.45);
}
.akpa-grab, .akpa-drawer-x, .akpa-drawer-done { display: none; }
.akpa-drawer-head { margin-bottom: 10px; }
.akpa-drawer-h {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 15px;
	font-weight: 800;
	color: #0B1324;
	margin: 0;
}
.akpa-sec { margin-bottom: 14px; }
.akpa-sec:last-child { margin-bottom: 0; }
.akpa-sec-h {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #93a29c;
	margin: 0 0 8px;
}
.akpa-drawer-foot { margin-top: 14px; }
.akpa-clear.is-off { display: none; }

.ak-js .akpa-scrim {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(11, 19, 36, 0.42);
	opacity: 0;
	visibility: hidden;
	transition: opacity .24s ease, visibility 0s linear .24s;
}
.ak-js body.akpa-open .akpa-scrim {
	opacity: 1;
	visibility: visible;
	transition: opacity .24s ease, visibility 0s;
}
.ak-js .akpa-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	width: 380px;
	max-width: 92vw;
	margin: 0;
	padding: 0;
	border-top: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -18px 0 48px rgba(11, 19, 36, 0.18);
	transform: translateX(102%);
	visibility: hidden;
	transition: transform .26s cubic-bezier(.22,.61,.36,1), visibility 0s linear .26s;
}
.ak-js body.akpa-open .akpa-drawer {
	transform: none;
	visibility: visible;
	transition: transform .26s cubic-bezier(.22,.61,.36,1), visibility 0s;
}
.ak-js .akpa-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 0 0 auto;
	margin: 0;
	padding: 16px 18px 12px;
	border-bottom: 1px solid rgba(190, 201, 195, 0.35);
}
.ak-js .akpa-drawer-h { font-size: 17px; }
.ak-js .akpa-drawer-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1.5px solid #dcedef;
	border-radius: 50%;
	background: #fff;
	color: #33474a;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.ak-js .akpa-drawer-x:hover { background: #0B1324; border-color: #0B1324; color: #fff; }
.ak-js .akpa-drawer-x .ak-ico { width: 19px; height: 19px; }
.ak-js .akpa-drawer-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px 18px 20px;
	scrollbar-width: thin;
}
.ak-js .akpa-sec { margin-bottom: 20px; }
.ak-js .akpa-drawer-body .akpa-townform { width: 100%; }
.ak-js .akpa-drawer-body .akpa-townform select { max-width: none; flex: 1 1 auto; }
.ak-js .akpa-drawer-foot {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 12px 18px;
	background: #fff;
	border-top: 1px solid rgba(190, 201, 195, 0.35);
	box-shadow: 0 -6px 18px rgba(11, 19, 36, 0.05);
}
.ak-js .akpa-drawer-done {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	border: 0;
	cursor: pointer;
	background: #C83D3D;
	color: #fff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	padding: 12px 18px;
	border-radius: 9999px;
	transition: background .16s ease;
}
.ak-js .akpa-drawer-done:hover { background: #a92f2f; }
.ak-js .akpa-clear.is-off { display: inline-flex; opacity: .4; pointer-events: none; }

/* ── list / map switch ────────────────────────────────────────────────── */
.akpa-view {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: #f2f8f9;
	border: 1.5px solid #dcedef;
	border-radius: 9999px;
	padding: 3px;
	flex: 0 0 auto;
}
.akpa-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	color: #56635e;
	background: transparent;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12.5px;
	font-weight: 800;
	padding: 7px 15px;
	border-radius: 9999px;
	white-space: nowrap;
	transition: background .16s ease, color .16s ease;
}
.akpa-view-btn .ak-ico { width: 17px; height: 17px; }
.akpa-view-btn:hover { color: #1D5B62; }
.akpa-view-btn.is-on {
	background: #2A7780;
	color: #fff;
	box-shadow: 0 2px 8px rgba(42, 119, 128, 0.28);
}
.akpa-view-btn.is-on:hover { color: #fff; }
.akpa-sort select {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	color: #33474a;
	background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2356635e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1.5px solid #dcedef;
	border-radius: 9999px;
	padding: 8px 32px 8px 14px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	max-width: 100%;
}
.akpa-sort select:focus { border-color: #2A7780; }
.akpa-clear {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #C83D3D;
	background: #FBEAEA;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12.5px;
	font-weight: 800;
	padding: 8px 14px;
	border-radius: 9999px;
	white-space: nowrap;
	transition: background .16s ease, color .16s ease;
}
.akpa-clear .ak-ico { width: 16px; height: 16px; }
.akpa-clear:hover { background: #C83D3D; color: #fff; }

/* ── results ──────────────────────────────────────────────────────────── */
.akpa-body { padding: 28px 20px 64px; }
.akpa-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/*
 * The unclaimed-venue line under a card. Low contrast at rest and only teal on
 * hover — it is addressed to the one visitor in a hundred who owns the place,
 * and must read as a footnote to every other visitor. The parent .ts-preview
 * keeps its own height because this sits under the fixed-ratio photo link.
 */
.akpv-claim {
	display: inline-flex; align-items: center; gap: 6px; margin: 7px 2px 0;
	font-size: 12px; font-weight: 600; line-height: 1.3; color: #93A0AE;
	text-decoration: none; transition: color .18s ease;
}
.akpv-claim:hover, .akpv-claim:focus-visible { color: #2A7780; }
.akpv-claim .ak-ico { width: 14px; height: 14px; flex: none; }
/* Map popups rebuild the card in JS and never emit this; belt and braces. */
.akpa-pop .akpv-claim { display: none; }
@media (prefers-reduced-motion: reduce) { .akpv-claim { transition: none; } }

/* ── map view ─────────────────────────────────────────────────────────── */
/*
 * SCOPED AROUND THE ARCHIVE MAP HIDE-RULES.
 * archive-premium-styles.php prints, unconditionally under 768px:
 *     body.post-type-archive-places .ts-map { display: none !important }
 * and ak-mobile-polish.php hides `.ts-map`, `.leaflet-container` and
 * `.ts-post-feed-map` on the same breakpoint. All of them name classes this
 * canvas does not carry, so none can select it. The `!important`s below are belt
 * and braces for anything that later reaches wider.
 */
.akpa-mapview { margin-bottom: 4px; }
.akpa-map {
	position: relative;
	height: 68vh;
	min-height: 460px;
	max-height: 780px;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(190, 201, 195, 0.4);
	background: #eef3f2;
	box-shadow: 0 4px 22px rgba(11, 19, 36, 0.07);
}
.akpa .akpa-map-canvas {
	display: block !important;
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
}
/* the boot shim sits under the tiles and is removed once the map draws */
.akpa-map-boot {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	color: #56635e;
	background: #eef3f2;
	pointer-events: none;
}
.akpa-map-boot.is-done { opacity: 0; visibility: hidden; transition: opacity .25s ease; }

/* AJAX in flight: the region dims and stops taking clicks, so a second click
   cannot race the first, and screen readers are told with aria-busy */
#akpa-results.is-loading, #akpa-map-shell.is-loading {
	opacity: .42;
	pointer-events: none;
	transition: opacity .18s ease;
}
#akpa-map-shell[hidden] { display: none; }
.akpa-map-spin {
	width: 17px; height: 17px;
	border-radius: 50%;
	border: 2.5px solid #cfe0e2;
	border-top-color: #2A7780;
	animation: akpa-spin .8s linear infinite;
}
@keyframes akpa-spin { to { transform: rotate(360deg); } }

.akpa-map-note {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 12px 0 0;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.55;
	color: #93a29c;
}
.akpa-map-note .ak-ico { width: 16px; height: 16px; color: #8bbcc2; flex: 0 0 auto; margin-top: 1px; }
.akpa-map-note strong { color: #33474a; font-weight: 800; }
.akpa-map-note a { color: #2A7780; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

/* the popup: Voxel's InfoWindow chrome is already stripped by vx:map.css
   (.ts-marker .gm-style-iw-c { padding:0; background:transparent;
   pointer-events:none }), so the card has to claim pointer events back —
   vx:map.css only grants them to `.ts-preview-popup > .elementor`. */
.akpa-pop {
	position: relative;
	width: 290px;
	max-width: 78vw;
	pointer-events: all;
}
/* a 4:4.7 portrait card is a tower inside an InfoWindow; square it off so the
   whole card is on screen next to its pin */
.akpa-pop .akpv-link { aspect-ratio: 4 / 3.6; box-shadow: 0 14px 38px rgba(11, 19, 36, 0.28); }
/* no hover lift inside a popup — the card would slide out from under the arrow */
.akpa-pop .ts-preview.akpv:hover .akpv-link { transform: none; }
.akpa-pop .ts-preview.akpv:hover .akpv-link > img { transform: none; }
/* inside the card, not hanging off it: the InfoWindow's own .gm-style-iw-d is
   `overflow: hidden !important` and would clip anything that overhangs. The save
   heart already owns the top-right corner, so the close button takes the left. */
.akpa-pop-x {
	position: absolute;
	top: 9px;
	left: 9px;
	z-index: 4;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(11, 19, 36, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 10px rgba(11, 19, 36, 0.22);
	transition: background .16s ease;
}
.akpa-pop-x:hover { background: #0B1324; }
.akpa-pop-x .ak-ico { width: 17px; height: 17px; }
/* the type chip would sit under the close button; slide it clear */
.akpa-pop .akpv-type { left: 44px; max-width: calc(100% - 92px); }
.akpa-pop .akpv-price { left: 44px; }

/* a cluster that cannot split any further (several places on one address) opens
   as a short stack rather than throwing away all but one of them */
.akpa-bundle {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 290px;
	max-width: 78vw;
	max-height: 60vh;
	overflow-y: auto;
	padding: 2px;
	pointer-events: all;
	scrollbar-width: thin;
}
.akpa-bundle .akpa-pop { width: 100%; max-width: none; }
.akpa-bundle .akpa-pop-x { display: none; }

/* Voxel's marker sits on its coordinate via .marker-wrapper; make it reachable
   by keyboard as well as by tap */
.akpa-map .map-marker:focus-visible {
	outline: 3px solid #2A7780;
	outline-offset: 3px;
	border-radius: 6px;
}

/* ── pagination ───────────────────────────────────────────────────────── */
.akpa-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 40px;
}
.akpa-pg {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-width: 40px;
	height: 40px;
	padding: 0 13px;
	justify-content: center;
	border-radius: 12px;
	border: 1.5px solid #dcedef;
	background: #fff;
	color: #33474a;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.akpa-pg:hover { border-color: #2A7780; color: #1D5B62; background: #f2f8f9; }
.akpa-pg.is-on { background: #0B1324; border-color: #0B1324; color: #fff; }
.akpa-pg .ak-ico { width: 18px; height: 18px; }
.akpa-pg-gap { color: #93a29c; padding: 0 2px; font-weight: 700; }

/* ── empty ────────────────────────────────────────────────────────────── */
.akpa-empty {
	text-align: center;
	padding: 60px 20px 70px;
	background: #f2f8f9;
	border: 1.5px dashed #dcedef;
	border-radius: 24px;
}
.akpa-empty-ic { font-size: 46px; color: #8bbcc2; }
.akpa-empty-h {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 21px;
	font-weight: 800;
	color: #0B1324;
	margin: 12px 0 8px;
}
.akpa-empty-p {
	font-size: 14.5px;
	line-height: 1.6;
	color: #56635e;
	margin: 0 auto 22px;
	max-width: 46ch;
}
.akpa-empty-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #2A7780;
	color: #fff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	padding: 12px 22px;
	border-radius: 9999px;
	transition: background .18s ease, transform .18s ease;
}
.akpa-empty-btn .ak-ico { width: 18px; height: 18px; }
.akpa-empty-btn:hover { background: #1D5B62; transform: translateY(-1px); }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
	.akpa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
	.akpa-band { padding: 28px 0 24px; }
	.akpa-h1 { max-width: none; }
	.akpa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.akpa-bar-right { margin-left: 0; }
	.akpa-townform select { min-width: 0; background-position: right 2px center; }
}
@media (max-width: 640px) {
	.akpa-wrap { padding: 0 16px; }
	.akpa-band { padding: 22px 0 20px; }
	.akpa-eyebrow { font-size: 20px; }
	.akpa-sub { font-size: 14.5px; margin-bottom: 16px; }
	.akpa-search { padding: 5px 5px 5px 13px; gap: 6px; }
	.akpa-search-in { font-size: 15px; padding: 9px 2px; }   /* 15px+ = no iOS zoom */
	.akpa-search-go { padding: 10px 16px; font-size: 13px; }
	.akpa-townform { width: 100%; }
	/* 15px+ = no iOS zoom */
	.akpa-townform select { font-size: 15px; max-width: none; flex: 1 1 auto; }
	/* the quick chips bleed to the screen edge so they read as swipeable */
	.akpa-quick {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		width: 100%;
		margin-left: -16px;
		margin-right: -16px;
		padding-left: 16px;
		padding-right: 16px;
	}
	.akpa-more { flex: 1 1 auto; justify-content: center; padding: 10px 14px; font-size: 13px; }
	.akpa-bar-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }
	/* the view switch gets its own full-width line, thumb-sized — it is the
	   control most likely to be reached for on a phone */
	.akpa-view { order: -1; width: 100%; }
	.akpa-view-btn { flex: 1 1 0; padding: 9px 12px; font-size: 13px; }
	.akpa-sort { flex: 1 1 auto; min-width: 0; }
	.akpa-sort select { width: 100%; }
	.akpa-map { height: 62vh; min-height: 400px; border-radius: 16px; }
	.akpa-pop, .akpa-bundle { width: 260px; max-width: 74vw; }
	.akpa-body { padding: 22px 16px 48px; }
	.akpa-pg-word { display: none; }
	.akpa-pg { min-width: 38px; height: 38px; padding: 0 10px; }
	.akpa-empty { padding: 44px 18px 50px; border-radius: 20px; }

	/* ── the drawer becomes a bottom sheet ────────────────────────────── */
	.ak-js .akpa-drawer {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
		max-height: 75vh;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -14px 44px rgba(11, 19, 36, 0.24);
		transform: translateY(102%);
	}
	.ak-js body.akpa-open .akpa-drawer { transform: none; }
	.ak-js .akpa-grab {
		display: block;
		flex: 0 0 auto;
		width: 42px;
		height: 4px;
		margin: 9px auto 0;
		border-radius: 9999px;
		background: rgba(11, 19, 36, 0.16);
	}
	.ak-js .akpa-drawer-head { padding: 10px 18px 12px; }
	.ak-js .akpa-drawer-body { padding: 14px 18px 18px; }
	/* thumb-sized inside a sheet */
	.ak-js .akpa-drawer-body .akpa-chip { padding: 10px 15px; font-size: 13px; }
}
@media (max-width: 480px) {
	.akpa-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.akpa-search-go, .akpa-empty-btn, .akpa-chip, .akpa-toggle, .akpa-pg, .akpa-clear,
	.akpa-view-btn, .akpa-pop-x, .akpa-more, .akpa-pill, .akpa-drawer-x,
	.akpa-drawer-done { transition: none !important; }
	.akpa-map-spin { animation: none !important; }
	.ak-js .akpa-drawer, .ak-js .akpa-scrim,
	.ak-js body.akpa-open .akpa-drawer, .ak-js body.akpa-open .akpa-scrim { transition: none !important; }
	#akpa-results.is-loading, #akpa-map-shell.is-loading, .akpa-map-boot.is-done { transition: none !important; }
	.akpa-catchip, .akpa-cat-card, .akpa-cat-all { transition: none !important; }
}

/* ══ CATEGORY PAGES — /places/<slug>/ ══════════════════════════════════════
 *
 * Everything below only renders on a category route, so none of it costs the
 * bare archive a byte of layout. The band grows a breadcrumb, an icon beside
 * the H1 and a written intro; the rail, the FAQs and the sibling strip are new
 * blocks. Colours are the page's own — teal #2A7780, ink #0B1324 — so a
 * category page is recognisably the same site as /places/, not a lookalike.
 */

.akpa-band.is-cat { padding-top: 26px; }

/* breadcrumb */
.akpa-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #7c8a84;
	margin: 0 0 14px;
}
.akpa-crumbs a { color: #2A7780; font-weight: 600; }
.akpa-crumbs a:hover { text-decoration: underline; }
.akpa-crumbs span[aria-hidden] { color: #b7c4bf; }
.akpa-crumbs [aria-current] { color: #56635e; font-weight: 600; }

/* H1 + category glyph */
.akpa-cathead { display: flex; align-items: flex-start; gap: 14px; }
.akpa-cat-ic {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 20px;
	background: #fff;
	border: 1.5px solid #dcedef;
	color: #2A7780;
	box-shadow: 0 6px 18px rgba(11, 19, 36, 0.06);
	margin-top: 4px;
}
.akpa-band.is-cat .akpa-h1 { margin-bottom: 0; max-width: 22ch; }

.akpa-intro {
	font-size: 15.5px;
	line-height: 1.66;
	color: #46524d;
	margin: 14px 0 20px;
	max-width: 74ch;
}

/* ── the category rail ──────────────────────────────────────────────────── */
.akpa-rail {
	display: flex;
	gap: 8px;
	margin: 18px -20px 0;
	padding: 2px 20px 4px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.akpa-rail::-webkit-scrollbar { display: none; }
.akpa-catchip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 9999px;
	border: 1.5px solid #dcedef;
	background: #fff;
	color: #35433d;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.akpa-catchip .ak-ico { color: #2A7780; flex: 0 0 auto; }
.akpa-catchip:hover { border-color: #8bbcc2; color: #0B1324; }
.akpa-catchip.is-on {
	background: #2A7780;
	border-color: #2A7780;
	color: #fff;
}
.akpa-catchip.is-on .ak-ico { color: #fff; }

/* ── FAQs ───────────────────────────────────────────────────────────────── */
.akpa-faq { padding: 10px 0 4px; }
.akpa-faq-h,
.akpa-more-cats-h {
	font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(21px, 2.6vw, 27px);
	font-weight: 600;
	color: #0B1324;
	margin: 0 0 16px;
}
.akpa-faq-list {
	display: grid;
	gap: 10px;
	max-width: 860px;
}
.akpa-faq-item {
	border: 1.5px solid #dcedef;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}
.akpa-faq-item[open] { border-color: #8bbcc2; background: #f8fcfc; }
.akpa-faq-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 15px 18px;
	cursor: pointer;
	list-style: none;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 15.5px;
	font-weight: 700;
	color: #0B1324;
}
.akpa-faq-item > summary::-webkit-details-marker { display: none; }
.akpa-faq-cv { color: #2A7780; flex: 0 0 auto; transition: transform .18s ease; }
.akpa-faq-item[open] .akpa-faq-cv { transform: rotate(180deg); }
.akpa-faq-item > p {
	margin: 0;
	padding: 0 18px 18px;
	font-size: 14.8px;
	line-height: 1.68;
	color: #46524d;
}

/* ── browse-by-category tiles (on /places/ itself) ──────────────────────── */
.akpa-browse {
	margin: 0 0 30px;
	padding-bottom: 28px;
	border-bottom: 1px dashed rgba(190, 201, 195, 0.5);
}
.akpa-browse-h {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
	margin: 0 0 16px;
	font-family: 'Fredoka', sans-serif;
	font-size: 21px;
	font-weight: 600;
	color: #0B1324;
}
.akpa-browse-h .ak-ico { width: 21px; height: 21px; color: #2A7780; }
.akpa-browse-note {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #7c8a84;
}
.akpa-tiles {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}
.akpa-tile {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(190, 201, 195, 0.45);
	border-radius: 18px;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.akpa-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(29, 91, 98, .13);
	border-color: rgba(42, 119, 128, .45);
}
.akpa-tile-art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
}
.akpa-tile-art .ak-ico { width: 32px; height: 32px; opacity: .85; }
/* the count badge wears the category's own colour, on a white plate so it
   stays readable whatever the tile ground is doing behind it */
.akpa-tile-n {
	position: absolute;
	top: 8px;
	right: 8px;
	min-width: 26px;
	padding: 3px 8px;
	border-radius: 999px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .92);
}
.akpa-tile-b {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 13px 14px;
}
.akpa-tile-h {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	font-weight: 800;
	color: #0B1324;
	letter-spacing: -0.01em;
	line-height: 1.25;
}
.akpa-tile-d {
	font-size: 12.5px;
	line-height: 1.45;
	color: #7b8a84;
}

/* ── sibling categories ─────────────────────────────────────────────────── */
.akpa-more-cats {
	margin-top: 34px;
	padding: 34px 0 48px;
	background: #f2f8f9;
	border-top: 1px solid rgba(190, 201, 195, 0.3);
}
.akpa-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}
.akpa-cat-card {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 16px 16px 15px;
	border-radius: 18px;
	background: #fff;
	border: 1.5px solid #dcedef;
	transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.akpa-cat-card:hover {
	transform: translateY(-2px);
	border-color: #8bbcc2;
	box-shadow: 0 10px 24px rgba(11, 19, 36, 0.07);
}
.akpa-cat-card-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #eaf5f6;
	color: #2A7780;
	margin-bottom: 7px;
}
.akpa-cat-card-t {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #0B1324;
	line-height: 1.3;
}
.akpa-cat-card-n { font-size: 13px; color: #7c8a84; }
.akpa-cat-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 11px 20px;
	border-radius: 9999px;
	background: #2A7780;
	color: #fff;
	font-size: 14.5px;
	font-weight: 700;
	transition: background .16s ease;
}
.akpa-cat-all:hover { background: #21606a; }

@media (max-width: 1180px) {
	.akpa-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
	.akpa-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.akpa-cat-ic { width: 50px; height: 50px; border-radius: 16px; }
	.akpa-cat-ic svg { width: 27px; height: 27px; }
	.akpa-intro { font-size: 15px; }
	.akpa-cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	/* 2-up on a phone: a tile is an icon and two short lines, it survives */
	.akpa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.akpa-browse-h { font-size: 19px; }
	.akpa-tile-h { font-size: 13.5px; }
	.akpa-tile-d { font-size: 12px; }
}

