/* MWAP Walk — map, find-a-walk, form-info styling.
   Brand: #199bd7 (blue), #62a475 (green), #ef6351 (pin coral from SVG).
   Font: GT Walsheim Pro (installed on the WP theme). */

:root {
	/* Pull from the Elementor theme's Global Colors so the plugin follows the site's
	   palette; the hex fallbacks keep admin pages / non-Elementor contexts correct.
	   Map: primary=brand blue, accent=CTA coral, text=body, secondary=green (spare). */
	--mwap-accent:      var(--e-global-color-primary, #199bd7);
	--mwap-pin-coral:   var(--e-global-color-accent, #ef6351);  /* matches Walk location pin.svg fill */
	--mwap-secondary:   var(--e-global-color-secondary, #62a475);
	--mwap-text:        var(--e-global-color-text, #000);
	--mwap-counter-bg:  #fff;
}

/* ================================================================
   SHARED "Join" BUTTON COMPONENT  (.mwap-btn-join)
   Single source of truth for the orange Join pill. Reused by:
     • Find-a-Walk list/card CTA (.mwap-find-card__cta)
     • Map Walk Card popup (.mwap-card__join)
     • Map side-panel cards (.mwap-livemap__join)
   Change it HERE and every Join button updates. Self-contained (no
   dependency on Elementor button classes).
   ================================================================ */
.mwap-btn-join {
	display: inline-block;
	box-sizing: border-box;
	padding: 10px 22px;
	background-color: var(--mwap-pin-coral, #ef6351);
	color: #fff;          /* always white font (all states below keep it white) */
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	border: 0;
	border-radius: 8px;   /* boxy with rounded corners (matches Find list "Join this walk") */
	cursor: pointer;
	transition: background-color .15s ease, transform .12s ease, box-shadow .12s ease;
}
/* Guarantee white text in every state (link visited/active etc.). */
.mwap-btn-join,
.mwap-btn-join:link,
.mwap-btn-join:visited,
.mwap-btn-join:active {
	color: #fff;
}
/* Scoped duplicates with higher specificity so the theme's [type=button]:hover (#c36)
   and Elementor's .elementor-button can't override the brand colours. */
.mwap-btn-join:hover,
.mwap-btn-join:focus-visible,
a.mwap-btn-join:hover,
a.mwap-btn-join:focus-visible {
	background-color: #d94f3a;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(239, 99, 81, .25);
}
/* Small variant for tight spots (map cards). */
.mwap-btn-join--sm {
	padding: 7px 16px;
	font-size: 13px;
}

/* ================================================================
   LIVE MAP LAYOUT  (.mwap-livemap = left walks panel + right map)
   ================================================================ */
.mwap-livemap {
	display: flex;
	height: var(--mwap-map-h, 70vh);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e1e6eb;
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
}

/* ---- Theme override ----
   hello-elementor's reset.css paints a pink (#c36) hover on every button via
   [type=button]:hover (specificity (0,2,0)). The panel's state-label heads and walk
   cards are plain <button type="button">, so that pink leaks onto their hover/focus
   background. Neutralise it here, matching the theme's selectors but scoped under
   .mwap-livemap (→ (0,2,1), beating (0,2,0)); the brand hover rules below are likewise
   scoped so they repaint the correct light-blue tint. */
.mwap-livemap button:hover,
.mwap-livemap button:focus,
.mwap-livemap [type="button"]:hover,
.mwap-livemap [type="button"]:focus {
	background-color: transparent;
	box-shadow: none;
}

/* Left walks panel — its own scroll, fixed proportion of the width. */
.mwap-livemap__panel {
	flex: 0 0 25%;
	min-width: 270px;
	max-width: 340px;
	overflow-y: auto;
	border-right: 1px solid #e1e6eb;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}
.mwap-livemap__loading,
.mwap-livemap__empty {
	padding: 20px 16px;
	color: #6b7680;
	font-size: 14px;
}

/* Summary bar above the state accordion */
.mwap-livemap__summary {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
	border-bottom: 1px solid #eef2f5;
	background: #fff;
}
.mwap-livemap__summary-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 10px;
	font-weight: 700;
	font-size: 15px;
	color: var(--mwap-text, #111);
	white-space: nowrap;
}
.mwap-livemap__summary-icon { width: 22px; height: 22px; color: var(--mwap-pin-coral, #e8562a); flex-shrink: 0; }
.mwap-livemap__summary-icon--img { width: 22px; height: 20px; }
.mwap-livemap__summary-num { font-weight: 800; }
.mwap-livemap__summary-lbl { color: #5b6770; font-weight: 700; }

/* State group + collapsible body */
.mwap-livemap__group { border-bottom: 1px solid #eef2f5; }
.mwap-livemap__group-head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	background: #fff;
	border: 0;
	cursor: pointer;
	font: 700 15px/1.2 'GT Walsheim Pro', -apple-system, sans-serif;
	color: #000;
	text-align: left;
}
/* Scoped under .mwap-livemap so these beat the theme's [type=button]:hover/:focus (0,2,0)
   and our theme-reset block above. */
.mwap-livemap .mwap-livemap__group-head:hover {
	background: #f0f6fc;          /* light blue tint — matches Find sidebar convention */
	color: var(--mwap-accent, #199bd7);
}
/* When a header is active/expanded the theme paints button:focus white-on-pink. Keep our
   header on a white background with black text (Elementor-blue on hover). */
.mwap-livemap .mwap-livemap__group-head:focus,
.mwap-livemap .mwap-livemap__group-head:focus-visible {
	background: #fff;
	color: #000;
	outline: none;
	box-shadow: none;
}
.mwap-livemap .mwap-livemap__group-head:focus:hover,
.mwap-livemap .mwap-livemap__group-head:focus-visible:hover {
	background: #f0f6fc;
	color: var(--mwap-accent, #199bd7);
}
.mwap-livemap__group-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mwap-livemap__group-count { flex: 0 0 auto; color: #6b7680; font-weight: 600; white-space: nowrap; }
.mwap-livemap .mwap-livemap__group-head:hover .mwap-livemap__group-count { color: var(--mwap-accent, #199bd7); }
/* Keep the count grey on focus (theme would turn it white). */
.mwap-livemap .mwap-livemap__group-head:focus .mwap-livemap__group-count,
.mwap-livemap .mwap-livemap__group-head:focus-visible .mwap-livemap__group-count { color: #6b7680; }
.mwap-livemap__chevron {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	transition: transform .2s ease;
}
.mwap-livemap__group-head[aria-expanded="false"] .mwap-livemap__chevron { transform: rotate(-90deg); }

.mwap-livemap__group-body { padding: 4px 8px 8px; }

/* Compact walk card (thumb left, suburb/date middle, walker count right) */
.mwap-livemap__card {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	margin: 4px 0;
	background: #fff;
	border: 1px solid #e1e6eb;
	border-radius: 10px;
	cursor: pointer;
	text-align: left;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.mwap-livemap .mwap-livemap__card:hover {
	background: #f0f6fc;
	border-color: var(--mwap-accent);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.mwap-livemap .mwap-livemap__card:focus-visible {
	outline: none;
	border-color: var(--mwap-accent);
	box-shadow: 0 0 0 3px rgba(25,155,215,.25);
}
.mwap-livemap__card-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #cfd8df center / cover no-repeat;
}
.mwap-livemap__card-body { flex: 1 1 auto; min-width: 0; }
.mwap-livemap__card-loc {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: #000;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Date + Join share one line: date left, Join pushed to the right. */
.mwap-livemap__card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}
.mwap-livemap__card-stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #5b6770;
	min-width: 0;
}
.mwap-livemap__card-stat .mwap-card__svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Right-aligned "Join" pill on the date line — styling from .mwap-btn-join, this only
   pushes it to the right edge of the card meta row. */
.mwap-livemap__join {
	margin-left: auto;
	flex: 0 0 auto;
}

.mwap-livemap__card-people {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.mwap-livemap__card-people-icon { width: 18px !important; height: 16px !important; display: block; max-width: none !important; }
.mwap-livemap__card-people span { font-weight: 700; font-size: 14px; color: #000; }


/* ---- Map container ---- */
.mwap-map {
	flex: 1 1 75%;
	width: 100%;
	height: 100%;
	min-height: 320px;
	background: #e9eef2;
	position: relative;
}
/* Ctrl/Cmd+scroll badge — small corner pill injected by JS, fades out automatically */
.mwap-scroll-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	padding: 6px 12px;
	background: rgba(0,0,0,.65);
	color: #fff;
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	pointer-events: none;
	z-index: 1000;
	opacity: 0;
	transition: opacity .2s ease;
}
.mwap-scroll-badge.is-visible { opacity: 1; }

/* Reset-view (home) control — sits under the Leaflet zoom +/- buttons. */
.mwap-reset-ctl a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: #333;
}
.mwap-reset-ctl a svg {
	width: 18px;
	height: 18px;
	display: block;
}
.mwap-reset-ctl a:hover { color: #000; }

.mwap-map__error {
	padding: 24px;
	text-align: center;
	color: #6b7280;
}

/* ---- Live map: mobile (map on top, single-card carousel below) ----
   The walks panel becomes a horizontal, swipeable carousel showing ONE walk card at a time
   (the next peeks at the right edge). Drag/swipe moves between walks; tapping a card flies +
   zooms the map to it. Scroll-snap makes each swipe land on a single card. */
@media (max-width: 880px) {
	.mwap-livemap {
		flex-direction: column;
		height: auto;
		overflow: visible;        /* let the page scroll past the section */
		border: 0;                /* no outer box around the map + carousel */
		border-radius: 0;
		background: transparent;
	}
	/* Carousel on TOP, map BELOW it (tapping a card zooms the map underneath). */
	.mwap-livemap__panel {
		order: 0;
		flex: 0 0 auto;
		max-width: none;
		min-width: 0;
		max-height: none;
		overflow: visible;
		border: 0;                /* no divider between carousel and map */
		background: transparent;
		padding: 10px 0 12px;
	}
	.mwap-map {
		order: 1;
		flex: 0 0 auto;
		height: 56vh;
		border: 0;                /* map sits flush, no frame */
	}

	/* Horizontal carousel track. */
	.mwap-livemap__carousel {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scroll-padding-left: 14px;
		padding: 2px 14px;        /* edge gutters so first/last card aren't flush */
		scrollbar-width: none;    /* hide scrollbar (Firefox) */
	}
	.mwap-livemap__carousel::-webkit-scrollbar { display: none; } /* hide (WebKit) */

	/* One card per view; the next peeks ~12% at the right edge. */
	.mwap-livemap__carousel .mwap-livemap__card {
		flex: 0 0 88%;
		width: 88%;
		margin: 0;
		scroll-snap-align: start;
	}
}

/* ---- Leaflet icon resets ---- */
.mwap-pin-icon,
.mwap-cluster-icon {
	background: none !important;
	border: 0 !important;
	width: auto !important;
	height: auto !important;
}
.mwap-pin-icon img,
.mwap-cluster-icon img { max-width: none; }

/* ================================================================
   SINGLE-WALK PIN   (.mwap-pin-wrap)
   ================================================================ */

.mwap-pin-wrap {
	display: flex;
	align-items: flex-start;
	gap: 0;
	white-space: nowrap;
	pointer-events: none;
}

.mwap-pin-svg-wrap {
	position: relative;
	flex-shrink: 0;
	transform-origin: bottom center;   /* grow upward from the pin's tip */
	transition: transform .18s ease;
}
.mwap-pin__svg {
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Sidebar Walk Card hover → grow the matching map pin (class set by mwap-map.js). */
.mwap-pin-icon--hover .mwap-pin-svg-wrap {
	transform: scale(1.45);
}

/* (Pram is now baked into Walk location pin.svg — no overlay needed.) */

/* ================================================================
   CLUSTER MARKER   (.mwap-cluster-wrap)
   Structure:
     .mwap-cluster-wrap
       .mwap-cluster__circle    ← circle SVG + count/state overlay
         svg.mwap-cluster__svg
         .mwap-cluster__label
           span.mwap-cluster__count
           span.mwap-cluster__state
       .mwap-pill               ← walkers pill (shared)
   ================================================================ */

.mwap-cluster-wrap {
	display: flex;
	align-items: center;
	gap: 0;
	white-space: nowrap;
	pointer-events: none;
}

.mwap-cluster__circle {
	position: relative;
	flex-shrink: 0;
}
.mwap-cluster__svg {
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.mwap-cluster__label {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	line-height: 1.1;
}
.mwap-cluster__count {
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	font-weight: 800;
	font-size: 22px;
	color: #fff;
	letter-spacing: -0.02em;
}
.mwap-cluster__state {
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: rgba(255,255,255,.85);
	text-transform: uppercase;
	letter-spacing: .05em;
}

/* ================================================================
   WALKERS PILL   (.mwap-pill) — shared by both marker types
   Walkers counter.svg is the background (set inline by JS).
   Pill slides behind the pin/circle via negative margin-left.
   ================================================================ */

.mwap-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	/* Roomy enough for hundreds (3 digits) and the counter SVG background */
	min-width: 80px;
	min-height: 50px;
	padding: 5px 12px 5px 20px;
	margin-top: 0;
	margin-left: -12px;  /* slides behind the pin/circle */
	pointer-events: none;
}
.mwap-pill__icon {
	flex-shrink: 0;
	display: block;
	width: 22px !important;
	height: 20px !important;
	max-width: none !important;
}
.mwap-pill__count {
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--mwap-text);
	line-height: 1;
}


/* ---- Popup ---- */
.mwap-popup {
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}
.mwap-popup__link {
	display: inline-block;
	margin-top: 6px;
	font-weight: 600;
	color: var(--mwap-accent);
	text-decoration: none;
}
.mwap-popup__link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   Walk Card popup (320 × 200 image + white stats section)
   ---------------------------------------------------------------- */

/* Strip Leaflet's default popup chrome so the card is the whole surface.
   overflow:visible lets the external close button sit outside the card. */
.mwap-card-popup .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: 12px;
	overflow: visible;
	box-shadow: 0 8px 28px rgba(0,0,0,.28);
	background: transparent;
}
.mwap-card-popup .leaflet-popup-content {
	margin: 0;
	width: 320px !important;
	overflow: visible;
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
}
.mwap-card-popup .leaflet-popup-tip {
	box-shadow: 0 8px 28px rgba(0,0,0,.18);
}

/* X close button: a floating circle ABOVE the card's top-right corner, clear of the
   walkers counter that sits inside the image. Pushed fully outside the 320px card. */
.mwap-card-popup .leaflet-popup-close-button {
	top: -16px !important;
	right: -16px !important;
	width: 30px;
	height: 30px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0,0,0,.3);
	color: #333;
	font: 700 20px/30px 'GT Walsheim Pro', -apple-system, sans-serif;
	text-align: center;
	padding: 0;
	z-index: 1000;
}
.mwap-card-popup .leaflet-popup-close-button:hover {
	background: #f3f4f6;
	color: #000;
}

.mwap-card {
	width: 320px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

/* Image area (200px tall) with overlays */
.mwap-card__image {
	position: relative;
	height: 200px;
	background-size: cover;
	background-position: center;
	background-color: #cfd8df;
}

/* Top-right overlay stack: walkers counter, then the Join button beneath it.
   align-items:stretch makes the counter + Join share the SAME width (the wider one
   sets it), so they line up as a tidy column. */
.mwap-card__topright {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

/* Walkers counter — top-right overlay on the image */
.mwap-card__counter {
	display: flex;
	align-items: center;
	justify-content: center;   /* centre icon+count now that the box can be wider */
	gap: 5px;
	background: #fff;
	border-radius: 6px;
	padding: 5px 10px 5px 7px;
	box-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.mwap-card__counter-icon { width: 22px !important; height: 20px !important; display: block; max-width: none !important; }
.mwap-card__counter span {
	font-weight: 700;
	font-size: 16px;
	color: #000;
	line-height: 1;
}

/* Suburb, State — bottom-left overlay on the image */
.mwap-card__loc {
	position: absolute;
	left: 14px;
	bottom: 12px;
	right: 14px;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* White stats section below the image — date + time on ONE row */
.mwap-card__stats {
	background: #fff;
	padding: 12px 16px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 18px;
}
.mwap-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 15px;
	color: #1f2933;
	white-space: nowrap;
}
.mwap-card__svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Join button stacked under the walkers counter — styling comes from .mwap-btn-join;
   this only adds a drop shadow so it reads over the photo. */
.mwap-card__join { box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* ---- Mobile: walk card + map adjustments ---- */
@media (max-width: 480px) {
	/* Card fills ~75% of screen width on mobile */
	.mwap-card-popup .leaflet-popup-content {
		width: min(75vw, 280px) !important;
	}
	.mwap-card {
		width: 100%;
	}
	.mwap-card__image {
		height: min(56.25vw, 175px); /* proportional to width (200/320 ≈ 62.5%) */
	}

	/* Map min-height comfortable on phones */
	.mwap-map {
		min-height: 280px;
	}

	/* Larger X tap target on touch */
	.mwap-card-popup .leaflet-popup-close-button {
		width: 36px !important;
		height: 36px !important;
		font-size: 22px !important;
		line-height: 36px !important;
		top: -18px !important;
		right: -10px !important;
	}

	/* Slightly smaller suburb text so it doesn't overflow on narrow cards */
	.mwap-card__loc { font-size: 15px; }

	/* Stats row wraps if needed */
	.mwap-card__stats { gap: 12px; flex-wrap: wrap; }

	/* Cluster and pin markers slightly smaller on small screens */
	.mwap-cluster__count { font-size: 18px; }
	.mwap-cluster__state { font-size: 10px; }
}

/* ================================================================
   PRIVATE-WALK STATE PIN  (.mwap-private-pin)
   A white circle placed at each state's capital city, showing only
   the count of private walks. No individual location is revealed.
   ================================================================ */

/* Private-walk state pin — mirrors .mwap-cluster-wrap / .mwap-cluster__circle
   but rendered in white. No CSS border; the 3-ring SVG provides the visual edge.
   Only shown at zoom >= 10 (once clusters have broken apart). */

/* Private counter.svg is the background-image (set inline in JS).
   Label sits on top via absolute positioning — mirrors .mwap-cluster__label exactly. */

.mwap-private-pin-icon {
	background: transparent !important;
	border: none !important;
}

.mwap-private-pin {
	position: relative;
}

/* SVG in normal flow (not absolute) — same as .mwap-cluster__svg */
.mwap-private-pin__svg {
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Label overlaid absolutely on top — same as .mwap-cluster__label */
.mwap-private-pin__label {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	pointer-events: none;
	line-height: 1.1;
}

.mwap-private-pin__icon {
	width: 22px !important;
	height: 20px !important;
	max-width: none !important;
	flex-shrink: 0;
	display: block !important;
	filter: brightness(0); /* black */
}

.mwap-private-pin__count {
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	font-weight: 700;
	font-size: 16px;   /* matches .mwap-pill__count */
	line-height: 1;
	color: var(--mwap-text, #111);
	letter-spacing: -0.02em;
}

/* ================================================================
   FIND A WALK  — toolbar + responsive card grid
   Visual language flows from the map's Walk Card (photo + overlays +
   white stats), so the list page and the map feel like one product.
   ================================================================ */
.mwap-find {
	--mwap-find-cols: 3;
	margin: 0 0 1.5em;
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	color: var(--mwap-text);
	/* Desktop: sidebar (left) + content (right) in a flex row; mobile: full-width column */
	display: flex;
	flex-direction: row;
	gap: 40px;
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
}
.mwap-find .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ---- Sidebar (states filter, desktop only) ---- */
.mwap-find__sidebar {
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0;
}
/* Sidebar header row: "States" title + a "Show all" clear link on the right. */
.mwap-find__sidebar-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}
.mwap-find__sidebar-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--mwap-text);
}
/* "Show all" — a plain text link, NOT a themed button. Scoped under .mwap-find so the
   theme's [type=button]:hover (#c36) can never colour it. */
.mwap-find__sidebar-clear[hidden] { display: none; }
.mwap-find .mwap-find__sidebar-clear,
.mwap-find .mwap-find__sidebar-clear:hover,
.mwap-find .mwap-find__sidebar-clear:focus {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--mwap-accent, #199bd7);
	cursor: pointer;
	text-decoration: underline;
}
.mwap-find .mwap-find__sidebar-clear:hover { color: #1487bd; }
.mwap-find__sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mwap-find__sidebar-item {
	display: block;
}
.mwap-find__sidebar-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e1e6eb;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: var(--mwap-text);
	cursor: pointer;
	transition: all .15s ease;
}
/* Scoped under .mwap-find so it beats the theme's [type=button]:hover/:focus (#c36, 0,2,0). */
.mwap-find .mwap-find__sidebar-btn:hover,
.mwap-find .mwap-find__sidebar-btn:focus {
	background: #f0f6fc;
	border-color: var(--mwap-accent, #199bd7);
	color: var(--mwap-accent, #199bd7);
	font-weight: 700;
}
/* Active wins over hover/focus too (so the selected state stays solid blue). */
.mwap-find .mwap-find__sidebar-item.is-active .mwap-find__sidebar-btn,
.mwap-find .mwap-find__sidebar-item.is-active .mwap-find__sidebar-btn:hover,
.mwap-find .mwap-find__sidebar-item.is-active .mwap-find__sidebar-btn:focus {
	background: var(--mwap-accent, #199bd7);
	color: #fff;
	border-color: var(--mwap-accent, #199bd7);
}
.mwap-find__sidebar-name {
	font-weight: 600;
}
.mwap-find__sidebar-count {
	font-weight: 700;
	font-size: 14px;
	opacity: 0.8;
}
.mwap-find__sidebar-item.is-active .mwap-find__sidebar-count {
	opacity: 1;
}

/* ---- Main content area ---- */
.mwap-find__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.mwap-find__cta-section {
	margin-top: 40px;
}

/* ---- Toolbar ---- */
.mwap-find__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}
.mwap-find__search {
	position: relative;
	flex: 0 1 340px;   /* doesn't grow to fill everything; shrinks from 340px */
	min-width: 200px;
	display: flex;
	align-items: center;
}
.mwap-find__search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 20px;
	border: 1px solid #e1e6eb;
	border-radius: 999px;
	font: inherit;
	font-size: 16px;
	background: #fff;
	color: var(--mwap-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mwap-find__search-input::placeholder {
	color: #9aa5b1;
}
.mwap-find__search-input:focus {
	outline: none;
	border-color: var(--mwap-accent);
	box-shadow: 0 0 0 3px rgba(25,155,215,.15);
}
/* Remove the browser's default ✕ clear button in Chrome/Edge — the icon already implies search */
.mwap-find__search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.mwap-find__selects {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.mwap-find__select { display: inline-flex; }
.mwap-find__select select {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	min-width: 220px;  /* wide enough for "New South Wales" without truncation */
	padding: 14px 44px 14px 20px;
	border: 1px solid #e1e6eb;
	border-radius: 999px;
	background: #fff
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667' stroke-width='1.8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
		no-repeat right 18px center;
	font: inherit;
	font-size: 16px;
	color: var(--mwap-text);
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mwap-find__select select:focus {
	outline: none;
	border-color: var(--mwap-accent);
	box-shadow: 0 0 0 3px rgba(25,155,215,.15);
}

/* View-mode toggle (grid / list) */
.mwap-find__view-toggle {
	display: inline-flex;
	gap: 2px;
	background: #f0f2f5;
	border-radius: 10px;
	padding: 3px;
	flex-shrink: 0;
}
.mwap-find__view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #7a8694;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.mwap-find__view-btn svg { width: 24px; height: 24px; }
.mwap-find__view-btn:hover { background: #fff; color: #374151; }
.mwap-find__view-btn.is-active { background: #fff; color: var(--mwap-pin-coral); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Count badges (walks + walkers) — mirror the map's counter language */
.mwap-find__counts {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}
.mwap-find__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	font-weight: 700;
	font-size: 15px;
	color: var(--mwap-text);
	white-space: nowrap;
}
.mwap-find__count-icon { width: 22px; height: 22px; color: var(--mwap-pin-coral); flex-shrink: 0; }
.mwap-find__count-icon--img { width: 22px; height: 20px; }
.mwap-find__count-num { font-weight: 800; }
.mwap-find__count-label { color: #5b6770; font-weight: 700; }

/* ---- Card grid ---- */
.mwap-find__grid {
	display: grid;
	grid-template-columns: repeat(var(--mwap-find-cols), 1fr);
	gap: 20px;
	align-items: stretch;
}
.mwap-find-card[hidden] { display: none; }

.mwap-find-card {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eceff2;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, box-shadow .18s ease;
}
a.mwap-find-card:hover,
a.mwap-find-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(0,0,0,.14);
	outline: none;
}

/* Image with overlays — same composition as the map Walk Card */
.mwap-find-card__image {
	position: relative;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center left;
	background-color: #cfd8df;
}
.mwap-find-card__counter {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	border-radius: 6px;
	padding: 5px 10px 5px 7px;
	box-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.mwap-find-card__counter-icon { width: 20px; height: 18px; display: block; max-width: none; }
.mwap-find-card__counter span { font-weight: 700; font-size: 15px; color: #000; line-height: 1; }
.mwap-find-card__loc {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* White body — state pill, date/time, CTA */
.mwap-find-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px 16px;
	flex: 1 1 auto;
}
/* Suburb heading lives in the body, but in GRID view the suburb is already shown on the
   image overlay — so hide it there and only reveal it in list view. */
.mwap-find-card__head { display: contents; }
.mwap-find-card__title { display: none; }
/* Walkers count is its own column in LIST view only; in grid the photo overlay shows it. */
.mwap-find-card__walkers { display: none; }
.mwap-find-card__state {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #fff;
	background: var(--mwap-accent);
	padding: 3px 10px;
	border-radius: 999px;
}
.mwap-find-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}
.mwap-find-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 15px;
	color: #1f2933;
	white-space: nowrap;
}
.mwap-find-card__svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--mwap-accent); }
/* Grid view: keep the CTA as a simple coral text link (override the shared .mwap-btn-join
   pill so the grid card stays compact). */
.mwap-find:not(.mwap-find--list) .mwap-find-card__cta,
.mwap-find:not(.mwap-find--list) .mwap-find-card__cta:hover,
.mwap-find:not(.mwap-find--list) .mwap-find-card__cta:focus-visible {
	margin-top: auto;
	font-weight: 700;
	font-size: 14px;
	color: var(--mwap-pin-coral);
	background: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	width: auto;
	text-align: left;
	display: inline;
	transform: none;
}
.mwap-find:not(.mwap-find--list) a.mwap-find-card:hover .mwap-find-card__cta { text-decoration: underline; }

/* ================================================================
   LIST VIEW — clean editorial rows (bigger image, big suburb heading,
   bigger date, right-aligned "Join this walk" CTA). Hairline dividers.
   ================================================================ */
.mwap-find--list .mwap-find__grid {
	display: flex;
	flex-direction: column;
	gap: 0;
	/* List view: flexes within content area, no explicit width constraint */
}
.mwap-find--list .mwap-find-card {
	flex-direction: row;
	align-items: center;
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid #e9edf1;
	box-shadow: none;
	background: #fff;
	padding: 22px 8px;
	gap: 28px;
	transform: none !important;
	transition: background-color .2s ease;
}
.mwap-find--list .mwap-find-card:first-child { border-top: 1px solid #e9edf1; }
/* Light blue tint on hover */
.mwap-find--list a.mwap-find-card:hover,
.mwap-find--list a.mwap-find-card:focus-visible { background: #f0f6fc; box-shadow: none; }

/* Bigger image */
.mwap-find--list .mwap-find-card__image {
	flex: 0 0 160px;
	width: 160px;
	aspect-ratio: unset;
	height: 120px;
	border-radius: 14px;
	overflow: hidden;
}
/* List view shows the walker count in its own big column, so hide the photo overlay counter. */
.mwap-find--list .mwap-find-card__counter { display: none; }
/* In list view the suburb is the body heading, so drop the image overlay text */
.mwap-find--list .mwap-find-card__loc { display: none; }

/* Body becomes a horizontal row of columns: [suburb] [date/time] [walkers] [CTA] */
.mwap-find--list .mwap-find-card__body {
	flex: 1 1 auto;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
	padding: 0;
	min-width: 0;
}
/* Column 1 — suburb + state, takes the slack so the rest align right */
.mwap-find--list .mwap-find-card__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	flex: 1 1 auto;
	min-width: 0;
}
/* Big suburb heading */
.mwap-find--list .mwap-find-card__title {
	display: block;
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	color: #14202b;
	letter-spacing: -0.01em;
}
.mwap-find--list .mwap-find-card__state {
	align-self: flex-start;
	background: transparent;
	color: #5b6770;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
}

/* Column 2 — date stacked over time. Fixed width so dates align in a column.
   Wide enough for the AU long date ("19 September 2026") at this size without
   overflowing into the walkers column. */
.mwap-find--list .mwap-find-card__meta {
	flex: 0 0 230px;
	width: 230px;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}
/* Date = slightly smaller than the suburb heading so the full date fits (top),
   time = smaller muted (below). */
.mwap-find--list .mwap-find-card__stat {
	max-width: 100%;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
	color: #14202b;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.mwap-find--list .mwap-find-card__stat:last-child { font-size: 15px; color: #6b7680; font-weight: 600; letter-spacing: 0; }
.mwap-find--list .mwap-find-card__svg { width: 20px; height: 20px; }
.mwap-find--list .mwap-find-card__stat:last-child .mwap-find-card__svg { width: 18px; height: 18px; }

/* Column 3 — walkers count, big with icon. Fixed width so counts align in a column. */
.mwap-find--list .mwap-find-card__walkers {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 110px;
	width: 110px;
	justify-content: flex-start;
}
.mwap-find--list .mwap-find-card__walkers-icon { width: 30px; height: 27px; flex-shrink: 0; }
.mwap-find--list .mwap-find-card__walkers-num {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: var(--mwap-text);
	font-variant-numeric: tabular-nums;
}

/* Column 4 — CTA. Layout from us (fixed column + centring); style from Elementor
   Theme Button but with coral brand colour. */
/* List view: the CTA is the shared .mwap-btn-join component — this rule only sets the
   list-row layout (fixed width, centred). Colours/hover come from the component. */
.mwap-find--list .mwap-find-card__cta {
	margin-top: 0;
	flex: 0 0 160px;
	width: 160px;
	align-self: center;
}

.mwap-find__empty {
	color: #6b7280;
	padding: 28px 12px;
	text-align: center;
	font-size: 15px;
}
.mwap-find__empty[hidden] { display: none; }

/* ---- Live counters ([mwap_walkers_count] / [mwap_walks_count]) ---- */
.mwap-count { display: inline-flex; align-items: center; gap: .4em; font-variant-numeric: tabular-nums; }
.mwap-count__num { font-weight: 800; line-height: 1; }
.mwap-count__prefix, .mwap-count__suffix { font-weight: 600; }
.mwap-count__icon {
	width: 1.1em;
	height: 1.1em;
	display: inline-block;
	object-fit: contain;
	flex-shrink: 0;
	/* Scale the icon to roughly the cap-height of the surrounding text */
	align-self: center;
}
/* White style: number + icon recoloured white for dark/coral backgrounds */
.mwap-count--white,
.mwap-count--white .mwap-count__num,
.mwap-count--white .mwap-count__prefix,
.mwap-count--white .mwap-count__suffix { color: #fff; }
.mwap-count--white .mwap-count__icon { filter: brightness(0) invert(1); }

/* ---- Responsive ----
   Ordered widest → narrowest so each narrower breakpoint correctly overrides the wider one
   (equal specificity → source order decides). Desktop first, then tablet, then phone. */

/* Tablet and up (768px+): sidebar visible, state dropdown in toolbar hidden. */
@media (min-width: 768px) {
	.mwap-find__selects > .mwap-find__select:first-child { display: none; }
}

/* Tablet (max 900px): 2-up grid; list-view body columns wrap instead of crushing. */
@media (max-width: 900px) {
	.mwap-find__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

	.mwap-find--list .mwap-find-card__body { flex-wrap: wrap; gap: 12px 20px; }
	.mwap-find--list .mwap-find-card__head { flex: 1 1 100%; }
	.mwap-find--list .mwap-find-card__meta { width: auto; min-width: 0; flex: 1 1 auto; }
	.mwap-find--list .mwap-find-card__walkers { width: auto; min-width: 0; justify-content: flex-start; }
}

/* Below tablet (max 767px): sidebar hidden, state dropdown visible, full-width column layout. */
@media (max-width: 767px) {
	.mwap-find {
		flex-direction: column;
		gap: 0;
		max-width: 100%;
	}
	.mwap-find__sidebar { display: none; }
	.mwap-find__selects > .mwap-find__select:first-child { display: inline-flex; }
}

/* Phone (max 600px): grid only — list view is removed on mobile, toggle hidden. */
@media (max-width: 600px) {
	/* No list view on phones: hide the grid/list toggle entirely. */
	.mwap-find__view-toggle { display: none !important; }

	/* Force grid even if a stale "list" preference / class is present (JS also forces it,
	   this is the no-JS / pre-JS safety net so the list layout never shows on mobile). */
	.mwap-find.mwap-find--list .mwap-find__grid { display: grid; grid-template-columns: 1fr; }
	.mwap-find.mwap-find--list .mwap-find-card { flex-direction: column; border: 1px solid #e1e6eb; border-radius: 14px; }
	.mwap-find.mwap-find--list .mwap-find-card__title { display: none; }
	.mwap-find.mwap-find--list .mwap-find-card__loc { display: block; }
	.mwap-find.mwap-find--list .mwap-find-card__counter { display: inline-flex; }
	.mwap-find.mwap-find--list .mwap-find-card__walkers { display: none; }
	.mwap-find.mwap-find--list .mwap-find-card__image { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
	.mwap-find.mwap-find--list .mwap-find-card__body { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px 14px; }
	.mwap-find.mwap-find--list .mwap-find-card__head { display: contents; }

	/* Toolbar wraps to full width. */
	.mwap-find__grid { grid-template-columns: 1fr; gap: 14px; }
	.mwap-find__toolbar { gap: 10px; }
	.mwap-find__search { flex-basis: 100%; }
	.mwap-find__selects { flex: 1 1 auto; }
	.mwap-find__select { flex: 1 1 0; }
	.mwap-find__select select { width: 100%; }
	.mwap-find__counts { margin-left: 0; flex-wrap: wrap; }
	.mwap-find__count { padding: 6px 8px; }
}

/* ---- Admin dashboard (loaded only on the dashboard screen via inline enqueue) ---- */
.mwap-dash__cards { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 8px; }
.mwap-dash__card {
	flex: 1 1 160px; min-width: 160px;
	background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
	padding: 16px; display: flex; flex-direction: column; gap: 2px;
}
.mwap-dash__card-val { font-size: 30px; font-weight: 800; line-height: 1; color: #111827; }
.mwap-dash__card-label { font-weight: 600; margin-top: 6px; }
.mwap-dash__card-sub { font-size: 12px; color: #6b7280; }
.mwap-dash__bars { max-width: 640px; margin: 8px 0 4px; }
.mwap-dash__bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mwap-dash__bar-label { width: 44px; font-weight: 700; }
.mwap-dash__bar-track { flex: 1 1 auto; background: #eef2f7; border-radius: 999px; height: 18px; overflow: hidden; }
.mwap-dash__bar-fill { display: block; height: 100%; background: var(--mwap-accent, #199bd7); border-radius: 999px; }
.mwap-dash__bar-val { width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.mwap-dash__table { margin-top: 8px; }
.mwap-dash__reset {
	margin-top: 18px; max-width: 640px;
	background: #fff7f7; border: 1px solid #f3c2c2; border-radius: 10px; padding: 16px;
}
.mwap-dash__reset h3 { margin-top: 0; }

/* By-walk tab: filters + detail */
.mwap-dash__filters {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin: 12px 0 14px;
}
.mwap-dash__filters select,
.mwap-dash__filters input[type="search"] { height: 32px; }
.mwap-dash__filter-exports { margin-left: auto; display: inline-flex; gap: 8px; }
.mwap-dash__detail-actions { margin: 8px 0 14px; }
.mwap-dash__hostlink {
	background: #f7f9fb; border: 1px solid #e1e6eb; border-radius: 10px;
	padding: 14px 16px; margin: 0 0 18px; max-width: 760px;
}
.mwap-dash__hostlink label { display: block; margin-bottom: 8px; }
.mwap-dash__hostlink input[type="text"] { padding: 8px 10px; font-family: monospace; }

/* ---- Shared roster report (admin detail + front-end [mwap_walk_report]) ---- */
.mwap-report {
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	max-width: 920px;
}
.mwap-report--error { padding: 28px; text-align: center; color: #6b7280; }
.mwap-report__head {
	position: relative;
	background: #f7f9fb; border: 1px solid #e1e6eb; border-radius: 12px;
	padding: 20px 22px; margin-bottom: 18px;
}
.mwap-report__eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mwap-accent, #199bd7); }
.mwap-report__title { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: #14202b; }
/* Date & time are as prominent as the suburb/state title — it's the key info for the host. */
.mwap-report__meta { margin: 2px 0 0; color: #14202b; font-size: 22px; font-weight: 700; line-height: 1.2; }
.mwap-report__meta .mwap-report__badge { vertical-align: middle; }
.mwap-report__updated { margin: 8px 0 0; color: #8a97a3; font-size: 12px; font-weight: 400; }
.mwap-report__badge {
	display: inline-block; padding: 1px 8px; border-radius: 999px;
	background: #fde8e8; color: #b91c1c; font-size: 12px; font-weight: 700;
}
.mwap-report__total {
	position: absolute; top: 20px; right: 22px; text-align: right;
}
.mwap-report__total-num { font-size: 22px; font-weight: 700; color: #14202b; }
.mwap-report__total-label { font-size: 14px; color: #5b6770; }
.mwap-report__section { font-size: 16px; font-weight: 700; margin: 18px 0 8px; color: #14202b; }
/* Walkers heading row: title left, sort control right. */
.mwap-report__section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mwap-report__section-head .mwap-report__section { margin: 18px 0 8px; }
.mwap-report__sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #5b6770; }
.mwap-report__sort select {
	font: inherit; font-size: 13px; padding: 6px 28px 6px 10px; color: var(--mwap-text, #111);
	background: #fff; border: 1px solid #e1e6eb; border-radius: 8px; cursor: pointer;
}
.mwap-report__sort select:focus { outline: none; border-color: var(--mwap-accent, #199bd7); box-shadow: 0 0 0 3px rgba(25,155,215,.12); }

/* Withdrawn (backed-out) walkers — collapsible, visually muted, not part of the total. */
.mwap-report__withdrawn { margin-top: 18px; }
.mwap-report__withdrawn-summary {
	cursor: pointer; font-size: 15px; font-weight: 700; color: #8a5a00;
	padding: 8px 10px; background: #fff8ec; border: 1px solid #f1e2c4; border-radius: 8px;
	list-style: revert; user-select: none;
}
.mwap-report__withdrawn[open] .mwap-report__withdrawn-summary { margin-bottom: 8px; }
.mwap-report__table--withdrawn td,
.mwap-report__person--withdrawn td { color: #6b7280; }
.mwap-report__person--withdrawn td:first-child { text-decoration: line-through; text-decoration-color: #c4ccd3; }
.mwap-report__table {
	width: 100%; border-collapse: collapse; background: #fff;
	border: 1px solid #e1e6eb; border-radius: 10px; overflow: hidden;
}
.mwap-report__table th, .mwap-report__table td {
	text-align: left; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid #eef2f5;
	vertical-align: top;
}
.mwap-report__table thead th { background: #f7f9fb; font-weight: 700; color: #44515f; }
.mwap-report__table tbody tr:last-child td { border-bottom: 0; }
.mwap-report__table a { color: var(--mwap-accent, #199bd7); }
.mwap-report__empty { color: #6b7280; }
/* Primary registrant row (host/walker) — slightly stronger than family sub-rows. */
.mwap-report__person td { font-weight: 600; }
/* Family members listed as indented sub-rows beneath their registrant. */
.mwap-report__family td { background: #fbfcfd; color: #5b6770; font-size: 13px; padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid #f2f5f8; }
.mwap-report__family-name { padding-left: 22px; }
.mwap-report__family-rel { color: #8a97a3; text-transform: capitalize; }

@media (max-width: 600px) {
	/* Header card: total drops below the title instead of absolute-positioned. */
	.mwap-report__head { padding: 16px; }
	.mwap-report__title { font-size: 20px; }
	.mwap-report__total { position: static; text-align: left; margin-top: 10px; }

	/* Roster: tighten padding + let long emails wrap so the table fits without side-scroll. */
	.mwap-report__table th,
	.mwap-report__table td { padding: 8px 9px; font-size: 13px; }
	.mwap-report__table td { word-break: break-word; overflow-wrap: anywhere; }
	.mwap-report__family-name { padding-left: 14px; }

	/* Action buttons go full-width-ish and stack neatly on small screens. */
	.mwap-report__actions { gap: 6px; }
	.mwap-report__actions .mwap-btn-join { flex: 1 1 auto; text-align: center; }
}

/* Minimal "Go to Main Page" top bar that stands in for the (hidden) site header. */
.mwap-report__topbar { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid #eef2f5; }
.mwap-report__home { color: var(--mwap-text, #111); font-weight: 600; text-decoration: none; }
.mwap-report__home:hover, .mwap-report__home:focus-visible { text-decoration: underline; }

/* Report action buttons (Excel / CSV / Print) — one uniform black button on the report
   page (the white/ghost variant vanished against the white background). Scoped to the report
   actions so the coral Join buttons elsewhere are untouched. High specificity + re-asserted
   in :hover/:focus so the theme's [type=button]:hover (#c36) can't repaint them. */
.mwap-report__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.mwap-report__actions .mwap-btn-join,
.mwap-report__actions a.mwap-btn-join,
.mwap-report__actions button.mwap-btn-join,
.mwap-report__actions .mwap-btn-join--ghost {
	background-color: #111;
	color: #fff;
	border: 1px solid #111;
	cursor: pointer;
}
.mwap-report__actions .mwap-btn-join:hover,
.mwap-report__actions .mwap-btn-join:focus-visible,
.mwap-report__actions a.mwap-btn-join:hover,
.mwap-report__actions a.mwap-btn-join:focus-visible,
.mwap-report__actions button.mwap-btn-join:hover,
.mwap-report__actions button.mwap-btn-join:focus-visible {
	background-color: #000;
	color: #fff;
	border-color: #000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
/* Default ghost (used outside the report) stays as the outline secondary. */
.mwap-btn-join--ghost { background: transparent; color: var(--mwap-accent, #199bd7); border: 1px solid var(--mwap-accent, #199bd7); }

/* Branded print header — hidden on screen, shown only when printing (see @media print). */
.mwap-print-header { display: none; }

/* On the host report page, hide the site header + footer entirely (screen). The report is a
   private, token-gated page — no nav needed. Covers Elementor Theme Builder locations and
   hello-elementor's default header/footer. body.mwap-report-page is added by the shortcode. */
body.mwap-report-page header.site-header,
body.mwap-report-page footer.site-footer,
body.mwap-report-page .site-header,
body.mwap-report-page .site-footer,
body.mwap-report-page .elementor-location-header,
body.mwap-report-page .elementor-location-footer,
body.mwap-report-page > header,
body.mwap-report-page > footer {
	display: none !important;
}
/* Give the report a little breathing room now that the header is gone. */
body.mwap-report-page .elementor-location-single,
body.mwap-report-page .site-main,
body.mwap-report-page main {
	padding-top: 24px;
}

/* ---- Print: compact, presentable, paper-saving attendance sheet ----
   Strips site chrome + buttons, tightens spacing, shrinks the big total, and keeps the
   family sub-rows readable but dense. Goal: fit a full roster on as few pages as possible. */
@media print {
	/* Hide everything except the report wrapper (Elementor header/footer/sidebars, buttons). */
	body * { visibility: hidden; }
	.mwap-report-wrap, .mwap-report-wrap * { visibility: visible; }
	.mwap-report-wrap { position: absolute; left: 0; top: 0; width: 100%; }
	.mwap-no-print, .mwap-report__actions { display: none !important; }

	/* Branded one-line header: brand + site left, tagline right. */
	.mwap-print-header {
		display: flex; justify-content: space-between; align-items: baseline;
		font-size: 11px; padding-bottom: 4px; margin-bottom: 8px;
		border-bottom: 1px solid #000;
	}
	.mwap-print-header__brand { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
	.mwap-print-header__brand img { max-width: 100px; max-height: 40px; height: auto; width: auto; }
	.mwap-print-header__tag { font-style: italic; }

	/* Tight page + base font. */
	@page { margin: 12mm; }
	.mwap-report { font-size: 11px; color: #000; }
	.mwap-report__head { margin: 0 0 8px; padding: 0 0 6px; border-bottom: 1px solid #000; }
	.mwap-report__eyebrow { font-size: 9px; margin: 0 0 1px; color: #000; }
	.mwap-report__title { font-size: 15px; margin: 0; }
	/* Date & time stay prominent on the printed sheet too. */
	.mwap-report__meta { font-size: 14px; font-weight: 700; margin: 2px 0 0; color: #000; }
	.mwap-report__updated { font-size: 9px; margin: 2px 0 0; color: #333; }

	/* Total shrinks from the big on-screen badge to a small inline figure. */
	.mwap-report__total { position: static; text-align: left; margin: 4px 0 0; }
	.mwap-report__total-num { font-size: 14px; font-weight: 700; }
	.mwap-report__total-label { font-size: 10px; }

	/* Section headers + table: dense rows, light rules, no fills (saves ink + paper). */
	.mwap-report__section { font-size: 12px; margin: 10px 0 4px; }
	.mwap-report__table { border: 1px solid #000; border-radius: 0; }
	.mwap-report__table th, .mwap-report__table td { padding: 2px 6px; font-size: 11px; border-bottom: 1px solid #bbb; }
	.mwap-report__table thead th { background: #fff !important; border-bottom: 1px solid #000; }
	.mwap-report__person td { font-weight: 700; }
	.mwap-report__family td { background: #fff !important; color: #000; font-size: 10px; padding: 1px 6px; }
	.mwap-report__family-name { padding-left: 14px; }

	/* Don't split a person + their family across a page break. */
	.mwap-report__table tr { page-break-inside: avoid; }
	/* Keep contact details (email = col 3, phone = col 4) plain/non-bold even though the
	   registrant row is bold — only the name needs emphasis on the printed sheet. */
	.mwap-report__person td:nth-child(3),
	.mwap-report__person td:nth-child(4) { font-weight: 400; }

	/* Withdrawn section: a CLOSED <details> hides its body natively, so it won't print when
	   the host collapsed it. When open, render the heading plainly (no coloured pill). */
	.mwap-report__withdrawn-summary {
		background: none !important; border: 0; padding: 0; color: #000;
		font-size: 12px; margin: 10px 0 4px;
	}
	.mwap-report__person--withdrawn td:first-child { text-decoration: none; }
}

/* ---- Itemised family repeater ---- */
.mwap-fam { margin-top: 8px; }
.mwap-fam__head { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 8px; }
.mwap-fam__row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.mwap-fam__name { flex: 1 1 auto; padding: 8px 10px; }
.mwap-fam__rel { flex: 0 0 auto; padding: 8px 10px; }
.mwap-fam__del {
	flex: 0 0 auto;
	width: 32px; height: 32px;
	border: 0; border-radius: 6px;
	background: #e5e7eb; color: #374151;
	font-size: 18px; line-height: 1; cursor: pointer;
}
.mwap-fam__del:hover { background: #d1d5db; }
.mwap-fam__add {
	border: 1px dashed var(--mwap-accent);
	background: transparent; color: var(--mwap-accent);
	padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.mwap-fam__add:hover { background: rgba(214,51,108,.08); }

/* ---- Walker form info icon + tooltip ---- */
.mwap-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	border-radius: 50%;
	background: var(--mwap-accent);
	color: #fff;
	font-size: 11px;
	font-style: italic;
	font-weight: 700;
	cursor: help;
	position: relative;
	vertical-align: middle;
}
.mwap-info__tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: 240px;
	background: #1f2933;
	color: #fff;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	padding: 8px 10px;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
	z-index: 30;
	box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.mwap-info:hover .mwap-info__tip,
.mwap-info:focus .mwap-info__tip { opacity: 1; }

/* ================================================================
   JOIN DRAWER  (.mwap-drawer) — right-side slide-in hosting the
   embedded [mwap_join_walk_form]. Opened by find-card Join CTAs and
   the homepage map's ?walk_id deep-link.
   ================================================================ */
.mwap-drawer {
	position: fixed;
	inset: 0;
	z-index: 100001;            /* above sticky headers / Elementor chrome + mobile menu (100000) */
}
.mwap-drawer[hidden] { display: none; }

.mwap-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity .3s ease;
}
.mwap-drawer.is-open .mwap-drawer__overlay { opacity: 1; }

.mwap-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 50%;
	min-width: 450px;
	max-width: 600px;
	background: #fff;
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateX(100%);    /* off-screen until opened */
	transition: transform .3s cubic-bezier(.16, 1, .3, 1);
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
}
.mwap-drawer.is-open .mwap-drawer__panel { transform: translateX(0); }

.mwap-drawer__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	border: 0;
	border-radius: 50%;
	color: #333;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background .15s ease;
}
.mwap-drawer .mwap-drawer__close:hover { background: #e5e7eb; color: #000; }

.mwap-drawer__body {
	padding: 56px 28px 40px;     /* top room clears the close button */
}
/* The embedded form is already max-width:600px centred; let it fill the drawer. */
.mwap-drawer__body .mwap-form { max-width: none; }

/* ---- Drawer success confirmation (after an AJAX join, no reload) ---- */
.mwap-drawer__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 32px 8px;
}
.mwap-drawer__success-icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e9f7ef;
	color: #2e9e5b;
}
.mwap-drawer__success-icon svg { width: 34px; height: 34px; }
.mwap-drawer__success-title {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: var(--mwap-text, #000);
}
.mwap-drawer__success-msg {
	margin: 0;
	max-width: 380px;
	font-size: 15px;
	line-height: 1.55;
	color: #5b6770;
}
.mwap-drawer__success .mwap-btn-join {
	margin-top: 8px;
	min-width: 140px;
}

/* Lock background scroll while the drawer is open. */
body.mwap-drawer-lock { overflow: hidden; }

/* Mobile: the drawer becomes a near-full-screen sheet. */
@media (max-width: 600px) {
	.mwap-drawer__panel {
		width: 100%;
		min-width: 0;
		max-width: none;
	}
	.mwap-drawer__body { padding: 56px 18px 32px; }
}
