/*
 * Structural CSS for the vhc-listing package — SHIPPED WITH THE TEMPLATE, brand-free.
 *
 * ⭐ Every colour, font and radius is a CSS custom property with a neutral
 * fallback. The hub never learns a site's palette and the site never edits this
 * file: it sets `--vhc-*` on its own side (Karl, 2026-09-16 — "site custom brand
 * data edited on each site").
 *
 * ⛔ That split is also what keeps the rendered artefact CACHEABLE. Brand-neutral
 * HTML is the same bytes for every site; brand-bearing HTML would be N renders
 * and N cache entries — the uncacheable-shape problem behind the July incidents.
 */
/* ── page frame — the listing container and the space between every block ───────────────────────
   ⚠️ `gap` here is the space between EVERY block (banner, title bar, address bar, sections…). */
/* ── COLOUR IS THE PACKAGE'S (2026-10-01) ─────────────────────────────────────────────────────────────────────────────
   🔴 Found on the hub: a Beaver row with a Text colour writes
      `.fl-builder-content .fl-node-X *:not(input)…:not(h6):not(.fl-menu-mobile-toggle) { color: inherit }` — (0,3,10) —
   plus `a` and `h1–h6` rules of its own. That outranks every scoped rule here, so the whole listing took the row's white:
   brand values printed correctly and lost. ⟹ Every `color` in this file is `!important` (a theme row's colour never is),
   links and headings get the package's colours, and brand TOKENS stay the way to change them. ⛔ A site re-colours
   through the Brand screen, not by out-specifying this file. A selftest keeps every `color:` here important. */
.vhc-listing a { color: var(--vhc-link, #428bca) !important; }
.vhc-listing h1, .vhc-listing h2, .vhc-listing h3, .vhc-listing h4, .vhc-listing h5, .vhc-listing h6 { color: inherit !important; }
/* ⭐ SPACING AND CORNER STEPS (2026-10-05, Karl: "standardise it like we did with the banner text area, and fix radii").
   Every padding / margin / gap in this file is one of six steps on a 4 px grid (Material's), every corner one of three
   radii — each from ONE Brand setting: Spacing unit (default 4px → 4 · 8 · 12 · 16 · 24 · 32) and Corner radius (default
   4px → 4 · 8 · 12). ⚠️ Sub-3px nudges and `em` values (which follow the text size on purpose) are left as written.
   ⛔ Add new spacing as var(--_sN), never a raw rem — a selftest counts raw values. */
.vhc-listing {
	--_u: var(--vhc-space-unit, 4px);
	--_s1: var(--_u); --_s2: calc(var(--_u) * 2); --_s3: calc(var(--_u) * 3);
	--_s4: calc(var(--_u) * 4); --_s5: calc(var(--_u) * 6); --_s6: calc(var(--_u) * 8);
	--_r-sm: var(--vhc-radius, 4px); --_r-md: calc(var(--vhc-radius, 4px) * 2); --_r-lg: calc(var(--vhc-radius, 4px) * 3);
}
.vhc-listing {
	--_accent: var(--vhc-accent, currentColor);
	--_muted: var(--vhc-muted, #666);
	--_radius: var(--vhc-radius, 4px);
	--_gap: var(--vhc-gap, 1rem);
	font-family: var(--vhc-font-body, inherit);
	color: var(--vhc-text, inherit) !important;
	display: flex;
	flex-direction: column;
	gap: var(--_gap);
}
.vhc-listing .vhc-listing__banner-img { display: block; width: 100%; height: auto; }

/* ── image FRAMES — the space is reserved before the bytes arrive (2026-10-01, V3-Template-Parity §5) ─────────────────
   ↩ Every image was `height: auto` with no size, so it was 0 px tall until it loaded and then pushed the page down
   (Karl: *"very much a thing in the banner"*). ⟹ A frame of a known shape, decided by the DESIGN not the photo
   (📏 we store no image dimensions, and do not need them), the image `cover`ing it. v3's own numbers: the banner capped
   at 76vh on desktop, focus 50% 46%; gallery photos 4:3 (`imgAspect`).
   ⭐ Every number is a variable, so a package or a site changes the frame without a Twig edit:
      --vhc-banner-ratio (phone) · --vhc-banner-ratio-md · --vhc-banner-max-h · --vhc-banner-focus · --vhc-photo-ratio
   While loading, the frame shows a neutral tint with a short shimmer. ⛔ It stops after ~4 s (a forever-animating layer
   behind every image is paint work for nothing), and never runs under prefers-reduced-motion. */
.vhc-listing {
	--_frame-bg: var(--vhc-frame-bg, color-mix(in srgb, var(--vhc-secondary, #e9edf1) 70%, #fff));
}
.vhc-listing .vhc-listing__banner:not(.vhc-listing__banner--no-image),
.vhc-listing .vhc-carousel__frame,
.vhc-listing .vhc-service__image {
	background-color: var(--_frame-bg);
	background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
	background-size: 200% 100%;
	background-repeat: no-repeat;
	animation: vhc-shimmer 1.4s ease-in-out 3;
}
@keyframes vhc-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
	.vhc-listing .vhc-listing__banner, .vhc-listing .vhc-carousel__frame, .vhc-listing .vhc-service__image { animation: none; }
}
.vhc-listing .vhc-listing__banner:not(.vhc-listing__banner--no-image) {
	aspect-ratio: var(--vhc-banner-ratio, 4 / 3);
	overflow: hidden;
}
@media (min-width: 768px) {
	.vhc-listing .vhc-listing__banner:not(.vhc-listing__banner--no-image) {
		aspect-ratio: var(--vhc-banner-ratio-md, 16 / 9);
		max-height: var(--vhc-banner-max-h, 76vh);
		width: 100%;
	}
}
/* ── a photo that does not fit, and the blur-up (images.js) ──────────────────────────────────────────────────────
   `is-fit-contain`: cropping would remove > 30 %, so the photo is shown WHOLE over a blurred copy of itself (v3's
   banner_options idea). `is-blur-up`: the blurred thumbnail while the banner's full image is still coming. One layer
   (::before, --vhc-fit-bg) serves both. The badges stay above it. */
.vhc-listing [data-vhc-frame] { position: relative; }
.vhc-listing .is-fit-contain::before,
.vhc-listing .is-blur-up::before {
	content: ''; position: absolute; inset: -24px; z-index: 0;
	background: var(--vhc-fit-bg) center / cover no-repeat;
	filter: blur(18px) saturate(1.1);
}
.vhc-listing .is-fit-contain, .vhc-listing .is-blur-up { animation: none; }
/* ⭐ M1b (2026-10-27): a frame's photo may sit inside <picture> (the WebP copy first) — the wrapper takes no box of its own */
.vhc-listing [data-vhc-frame] > picture { display: contents; }
.vhc-listing [data-vhc-frame] > img[data-vhc-framed], .vhc-listing [data-vhc-frame] > picture > img[data-vhc-framed] { position: relative; z-index: 1; }
.vhc-listing .is-fit-contain > img[data-vhc-framed], .vhc-listing .is-fit-contain > picture > img[data-vhc-framed] { object-fit: contain !important; }
/* `is-cropped`: the editor chose what this place shows (images.js sizes and offsets the photo to that exact crop) */
.vhc-listing .is-cropped img[data-vhc-framed] { position: absolute !important; max-width: none !important; object-fit: fill !important; }
/* `is-fit-natural` (with is-fit-contain): filling the frame would enlarge the photo past --vhc-photo-max-upscale, so it
   is shown at its own size, never larger (`scale-down`), centred over the blurred copy (2026-10-06, Lake Rowan). */
.vhc-listing .is-fit-natural > img[data-vhc-framed], .vhc-listing .is-fit-natural > picture > img[data-vhc-framed] { object-fit: scale-down !important; }
.vhc-listing .vhc-hero-badge, .vhc-listing .vhc-hero-place { z-index: 2; }
/* ⭐ The loading SPINNER (Karl's review, 2026-10-06): centred in the frame until its photo arrives (images.js sets and
   clears `is-loading`). Pure CSS, no layout shift — the frame already has its shape. Respects reduced motion. */
.vhc-listing .is-loading::after {
	content: ''; position: absolute; left: 50%; top: 50%; z-index: 3; width: 2.25rem; height: 2.25rem; translate: -50% -50%;
	/* white on a shadow: it sits over a half-loaded PHOTO, whose colours nobody controls */
	border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55));
	border-radius: 50%; animation: vhc-spin .8s linear infinite;
}
@keyframes vhc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vhc-listing .is-loading::after { animation-duration: 2.4s; } }

.vhc-listing .vhc-listing__banner:not(.vhc-listing__banner--no-image) .vhc-listing__banner-img {
	height: 100%;
	object-fit: cover;
	object-position: var(--vhc-banner-focus, 50% 46%);
}

/* ── layout rows — blocks side by side (layout.json) ─────────────────────────────────────────────
   A row of 2–3 blocks is a grid whose columns are the blocks' shares (`--vhc-cols`, set per row from
   layout.json). ⚠️ Stacks below 48rem — one column on phones. */
/* The body: every row after the head, in one wrapper (layout.json "body_class" adds e.g. Bootstrap's `container`). */
.vhc-listing .vhc-listing__body {
	display: flex; flex-direction: column; gap: var(--_gap);
	box-sizing: border-box; width: 100%; margin-inline: auto;
}
/* Brand → Layout: body max width / side padding. Unset = no limit (the full column), as before.
   ⚠️ NOT on a `container` body (2026-10-01): this rule (0,2,0) used to beat Bootstrap's `.container` (0,1,0), so
   `max-width: none` + `padding: 0` erased the site's container on the hub — 1280 px wide with the class present. With
   `container`, the SITE's container decides the width and the gutters, which is the point of choosing it. */
.vhc-listing .vhc-listing__body:not(.container):not(.vhc-container) {
	max-width: var(--vhc-body-max, none); padding-inline: var(--vhc-body-pad, 0);
}
/* ⭐ OUR container — the built-in's body class (2026-10-01, Karl). ↩ `container` meant the THEME's: 📏 the VHC 2023 skin
   redefines `.container` as `width:1020px; max-width:90%` (+ its own padding per breakpoint), so Bootstrap's widths never
   applied and two sites on one theme came out 1020 px and 1152 px. ⟹ Bootstrap 5's container widths on Beaver Builder's
   breakpoints, under a name no theme styles. Brand → Layout still steers it: Body max width caps it at every width,
   Body side padding is its gutter (unset 20px, VHC's phone gutter). */
.vhc-listing .vhc-listing__body.vhc-container {
	--_cmax: 100%;
	max-width: var(--vhc-body-max, var(--_cmax)); padding-inline: var(--vhc-body-pad, 20px);
}
@media (min-width: 768px) { .vhc-listing .vhc-listing__body.vhc-container { --_cmax: 720px; } }
@media (min-width: 992px) { .vhc-listing .vhc-listing__body.vhc-container { --_cmax: 960px; } }
@media (min-width: 1200px) { .vhc-listing .vhc-listing__body.vhc-container { --_cmax: 1140px; } }
@media (min-width: 1400px) { .vhc-listing .vhc-listing__body.vhc-container { --_cmax: 1320px; } }
.vhc-listing .vhc-row { display: grid; grid-template-columns: var(--vhc-cols, 1fr 1fr); gap: var(--_gap); align-items: start; }
.vhc-listing .vhc-row__cell { min-width: 0; display: flex; flex-direction: column; gap: var(--_gap); }
/* ⟹ 2026-09-30: WHEN a row stacks is the layout vocabulary's job — layout.css (generated), `.vhc-split-<bp>`, default lg
   (Beaver Builder's 992px). @mobile-first moves a cell up while its row is stacked. */

/* ── head — hero, title bar, address bar: ONE block, no gap inside it ─────────────────────────────
   `--vhc-head-gap` (default 0) is the space between the three parts. */
.vhc-listing .vhc-listing__head { display: flex; flex-direction: column; gap: var(--vhc-head-gap, 0); }
/*    ⛔ Brand-free, like the rest of the package: the bands use `currentColor` and a neutral tint so a
   site's own palette decides how they look. A package that shipped VHC's greens would carry them
   onto every other site in the network. */
.vhc-listing .vhc-listing__banner { position: relative; }
/* ⭐ When the site supplies artwork the badge is an image and carries no chrome of its own — the
   logo is already a designed object and a box around it fights the design. */
.vhc-listing .vhc-hero-badge--img { padding: 0; background: none; max-width: 9rem; height: auto; }

.vhc-listing .vhc-hero-badge {
	position: absolute; top: 0; left: 0;
	padding: var(--_s1) var(--_s3); font-size: .72rem; font-weight: 700; line-height: 1.15;
	text-transform: uppercase; letter-spacing: .04em; background: var(--vhc-primary, #18181b); color: var(--vhc-primary-text, #fff) !important; max-width: 9rem;
}
/* ⭐ The site replaces this with the programme's artwork — the package ships the hook, not the brand. */
.vhc-listing .vhc-hero-place {
	position: absolute; left: 0; bottom: 0;
	display: inline-flex; align-items: center; gap: var(--_s1);
	padding: var(--_s1) var(--_head-x); background: var(--vhc-primary, #18181b); color: var(--vhc-primary-text, #fff) !important; font-size: .85rem;
}
.vhc-listing .vhc-hero-place .vhc-icon { width: .95em; height: .95em; color: inherit !important; }
/* ⭐ The head's sub-headings in capitals — the chip (place / next date / address) and the address band (Karl's review,
   2026-10-06). `--vhc-subhead-case: none` turns it off for a brand that wants sentence case. */
.vhc-listing .vhc-hero-place, .vhc-listing .vhc-addressband { text-transform: var(--vhc-subhead-case, uppercase); letter-spacing: .04em; }

/* ⭐ Two WEIGHTS in one heading — the name bold, the town light. 📏 They are two fields, not a split
   of one string: only 7% of titles even end with their township. */
/* ⭐ ONE side padding for the head's three parts — the chip, the title band and the address bar — so they line up at every
   width (Karl, 2026-10-05: VHC uses 2.8rem; only the title band had a phone rule, so the other two stayed wide on a phone).
   Brand → Spacing: Head side padding, and its value under 480px (the title band's existing breakpoint). */
.vhc-listing { --_head-x: var(--vhc-head-pad-x, 1rem); }
@media (max-width: 480px) { .vhc-listing { --_head-x: var(--vhc-head-pad-x-sm, .75rem); } }
.vhc-listing .vhc-titleband { background: var(--vhc-primary, currentColor); margin: 0; padding: var(--_s3) var(--_head-x); }
.vhc-listing .vhc-titleband__title {
	font-family: var(--vhc-font-heading, inherit); margin: 0; line-height: 1.15;
	/* ⚠️ The band paints with `currentColor`, so the text must invert against it. */
	/* ⭐ --vhc-title-case: `none` keeps a title as written (Falls Creek's v3 `cancel_uppercase_override`, 2026-10-01) */
	color: var(--vhc-primary-text, Canvas) !important; text-transform: var(--vhc-title-case, uppercase);
}
/* ⭐ The H1's size follows the SCREEN (Karl, 2026-10-05: long titles took a phone's whole first screen at 36px):
   under 450px · 450–850px · over 850px, each a Brand setting (Fonts → Title size). */
.vhc-listing .vhc-titleband__title { font-size: var(--vhc-title-size-lg, 40px); }
@media (max-width: 849.98px) { .vhc-listing .vhc-titleband__title { font-size: var(--vhc-title-size-md, 36px); } }
@media (max-width: 449.98px) { .vhc-listing .vhc-titleband__title { font-size: var(--vhc-title-size-sm, 26px); } }
.vhc-listing .vhc-titleband__lead { font-weight: 800; }
.vhc-listing .vhc-titleband__rest { font-weight: 300; }

.vhc-listing .vhc-addressband {
	margin: 0; padding: var(--_s2) var(--_head-x);
	background: var(--vhc-secondary, color-mix(in srgb, currentColor 8%, transparent)); color: var(--vhc-address-text, var(--_muted)) !important;
}

@media (max-width: 480px) {
	/* ⚠️ Long names wrap rather than shrink — an unreadable heading is worse than a tall one. */
	.vhc-listing .vhc-titleband { padding: var(--_s2) var(--_head-x); }
}
/* ── trail facts ──────────────────────────────────────────────────────────────────────────────── */
.vhc-listing .vhc-trail__grade-badge {
	display: inline-block; padding: .15em .6em;
	border: 1px solid var(--_accent); border-radius: var(--_r-sm);
	color: var(--_accent) !important;
}
.vhc-listing .vhc-trail__grade-desc { color: var(--_muted) !important; }
.vhc-listing .vhc-trail__facts { display: grid; grid-template-columns: auto 1fr; gap: var(--_s1) var(--_gap); margin: 0; }
.vhc-listing .vhc-trail__facts dt { color: var(--_muted) !important; }
.vhc-listing .vhc-trail__facts dd { margin: 0; }
.vhc-listing .vhc-listing__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--_gap); }
.vhc-listing .vhc-listing__gallery-item { margin: 0; }
.vhc-listing .vhc-listing__gallery-item img { width: 100%; height: auto; border-radius: var(--_r-sm); }

/* ── MORE LIKE THIS — the v5 classification block ───────────────────────────
 * ⛔ Brand-neutral like the rest: the only colour is the one the SITE's icon
 * system sets per term, via the `--vhc-mlt-icon-colour` custom property. The
 * hub never learns a palette.
 * ⚠️ The icon slot is `hidden` until something fills it, so a site without an
 * icon system shows clean labels rather than an empty disc.
 */
.vhc-listing .vhc-listing__mlt { display: flex; flex-direction: column; gap: var(--_s1); }
.vhc-listing .vhc-mlt__hint { color: var(--_muted) !important; margin: 0 0 var(--_s2); font-size: .9em; }
.vhc-listing .vhc-mlt__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--_gap);
}
.vhc-listing .vhc-mlt__item { display: flex; align-items: flex-start; gap: var(--_s2); }
.vhc-listing .vhc-mlt__icon[hidden] { display: none; }
.vhc-listing .vhc-mlt__icon {
	flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--vhc-mlt-icon-colour, var(--_accent)); color: #fff !important;
}
.vhc-listing .vhc-mlt__labels { display: flex; flex-direction: column; min-width: 0; }
.vhc-listing .vhc-mlt__node { font-weight: 600; }
.vhc-listing .vhc-mlt__leaf { color: var(--_muted) !important; border-top: 1px solid var(--vhc-rule, #e0e0e0); padding-top: .15rem; }

/* ── Preview (draft) only — never reaches a visitor ─────────────────────────
 * ⚠️ Deliberately loud. This banner exists so an author never mistakes a
 * work-in-progress page for a live one, and a subtle version would fail at
 * exactly the moment it matters.
 */
.vhc-listing .vhc-listing__preview {
	border: 2px dashed var(--vhc-preview-edge, #b8860b);
	background: var(--vhc-preview-bg, #fffbe6);
	padding: var(--_s3) var(--_s4); border-radius: var(--_r-sm);
}
.vhc-listing .vhc-preview__label { margin: 0; font-weight: 700; }
.vhc-listing .vhc-preview__warnings { margin: var(--_s2) 0 0; padding-left: var(--_s4); }

/* ── Sections (accordion) ───────────────────────────────────────────────────
 * ⭐ Native `<details>`/`<summary>`: no JavaScript, keyboard accessible, and
 * `open` maps straight onto the package's `open_by_default`. The v3 module
 * needed jQuery plus Bootstrap collapse for the same behaviour.
 * ⚠️ The marker is hidden and replaced with our own chevron so the two states
 * read the same on every browser.
 */
.vhc-listing .vhc-section { border-top: 0; padding: var(--_s1) 0; }
/* ⭐ Production's heading (Karl, 2026-10-05): UPPERCASE, light, with the hairline UNDER it — so an open section reads as
   a heading over its content, and a closed one as a row. --vhc-section-case / --vhc-section-weight change it per site. */
.vhc-listing .vhc-section__head {
	font-family: var(--vhc-font-heading, inherit);
	font-size: 1.15rem; font-weight: var(--vhc-section-weight, 300); letter-spacing: .03em; text-transform: var(--vhc-section-case, uppercase);
	padding: var(--_s2) 0; margin: 0 0 var(--_s2); cursor: default; min-height: 2.75rem; box-sizing: border-box;
	border-bottom: 1px solid var(--vhc-rule, #e0e0e0);
	display: flex; align-items: center; justify-content: space-between;
}
.vhc-listing details.vhc-section:not([open]) > .vhc-section__head { margin-bottom: 0; }
/* @expanded (Karl, 2026-10-05): no line above the section — it opens straight under the block before it */
.vhc-listing .vhc-section--expanded { border-top: 0; padding-top: 0; }
.vhc-listing details.vhc-section > .vhc-section__head { cursor: pointer; list-style: none; }
.vhc-listing details.vhc-section > .vhc-section__head::-webkit-details-marker { display: none; }
.vhc-listing details.vhc-section > .vhc-section__head::after {
	content: ""; width: .6rem; height: .6rem; flex: 0 0 auto; margin-left: var(--_s4);
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .15s ease;
}
.vhc-listing details.vhc-section[open] > .vhc-section__head::after { transform: rotate(-135deg); }
.vhc-listing .vhc-section__body { padding-bottom: var(--_s3); }
/* @bare (layout.json): the block's content with no heading and no rule above it — e.g. the gallery beside the actions — AFTER the rules above: same specificity, so order decides */
.vhc-listing .vhc-section--bare { border-top: 0; padding: 0; }

/* ⭐ `highlight_first` — Beaver's *"Highlight the first sentence?"*. A class and
 * `:first-child`, so the MARKUP is identical whether the option is on or off. */
.vhc-listing .vhc-summary--lead > p:first-child { font-size: 1.12em; font-weight: 600; }

/* ── … more / … less — the overview truncate (row 3), with no JavaScript ──────────────────────
   ⭐ A hidden checkbox is the state and a <label> is the control: the same no-JS posture as the
   accordion's <details>. ⛔ The paragraphs are HIDDEN, never removed — the text stays in the DOM for
   a crawler, a reader view and ctrl-F, and if this stylesheet fails to load the whole overview shows,
   which is the safe way round.
   ⚠️ Only paragraphs AFTER the first are hidden; the lead is always visible, which is what makes the
   control meaningful (the view-model renders it only when a second paragraph exists). */
.vhc-listing .vhc-more__state { position: absolute; opacity: 0; pointer-events: none; }
.vhc-listing .vhc-summary--truncated > p:not(:first-child) { display: none; }
.vhc-listing .vhc-more__state:checked ~ .vhc-summary--truncated > p:not(:first-child) { display: revert; }

.vhc-listing .vhc-more { display: block; width: fit-content; margin: var(--_s1) 0 0 auto; cursor: pointer; font-weight: 600; }   /* right-aligned (Karl's review, 2026-10-06) */
.vhc-listing .vhc-more:hover { text-decoration: underline; }
/* the link at the foot of "About the … grades" (2026-10-06): a site's own page explaining its scale */
.vhc-listing .vhc-grades__more { margin: var(--_s2) 0 0; font-weight: 600; }
/* the way back from a sub-listing to its parent (2026-10-06): an outlined button, so it reads as navigation, not prose */
.vhc-listing .vhc-parent { margin: var(--_s3) 0 0; }
.vhc-listing .vhc-parent__link {
	display: inline-flex; align-items: center; gap: var(--_s2); padding: var(--_s2) var(--_s3);
	border: 1px solid currentColor; border-radius: var(--_r-sm); text-decoration: none;
	text-transform: var(--vhc-action-case, uppercase); letter-spacing: .02em; font-weight: 600;
}
.vhc-listing .vhc-parent__link:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
/* ⭐ Focus follows the hidden checkbox onto its label, so the control is visibly reachable by
   keyboard — hiding the input with `display:none` would have removed it from the tab order. */
.vhc-listing .vhc-more__state:focus-visible ~ .vhc-more { outline: 2px solid currentColor; outline-offset: 2px; }
.vhc-listing .vhc-more__hide { display: none; }
.vhc-listing .vhc-more__state:checked ~ .vhc-more .vhc-more__show { display: none; }
.vhc-listing .vhc-more__state:checked ~ .vhc-more .vhc-more__hide { display: inline; }

/* ── the confidence floor, PREVIEW ONLY ───────────────────────────────────────────────────────────
   ⚠️ Deliberately looks like an editor note, not like content: this text never reaches a guest page
   (`{% if preview %}` in `_classification.twig`), and it must not read as part of the listing. */
.vhc-listing .vhc-mlt__floor {
	margin: var(--_s3) 0 0;
	padding: var(--_s2) var(--_s3);
	border-left: 3px solid #c8a200;
	background: #fffbe6;
	color: #5c4a00 !important;
	font-size: .8125rem;
	line-height: 1.45;
}
.vhc-listing .vhc-mlt__floor--empty {
	border-left-color: #b34a00;
	background: #fff2e6;
	color: #6b2d00 !important;
}

/* ── services: rooms · tours · hire · journey legs ────────────────────────────────────────────────
   ⭐ ONE presentation for every type — the only per-type thing is the section title, which comes from
   `ListingContext::SERVICE_TITLES`. ⚠️ Cards, not a table: 📏 a service carries an image, a paragraph
   and up to three meta values, which a table row cannot hold without wrapping badly on a phone. */
.vhc-listing .vhc-services {
	display: grid;
	gap: var(--_s4);
}
.vhc-listing .vhc-service {
	display: grid;
	gap: var(--_s2);
	padding: var(--_s4);
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: var(--_r-md);
	background: #fff;
}
/* ⚠️ `scroll-margin-top` so a future `?focus=svc-{id}` does not land the card under a sticky header —
   set here rather than in the focus script, because it is a property of the target, not of the jump. */
.vhc-listing .vhc-service {
	scroll-margin-top: 5rem;
}
.vhc-listing .vhc-service__name {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.3;
}
.vhc-listing .vhc-service__image {
	width: 100%;
	max-width: 22rem;
	aspect-ratio: var(--vhc-photo-ratio, 4 / 3);
	object-fit: cover;
	height: auto;
	border-radius: var(--_r-sm);
}
.vhc-listing .vhc-service__description {
	margin: 0;
}
.vhc-listing .vhc-service__description p {
	margin: 0 0 var(--_s2);
}
.vhc-listing .vhc-service__description p:last-child {
	margin-bottom: 0;
}
.vhc-listing .vhc-service__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--_s2) var(--_s3);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .875rem;
}
.vhc-listing .vhc-service__meta-item {
	padding: .15rem var(--_s2);
	border-radius: 999px;
	background: rgba(0, 0, 0, .05);
	white-space: nowrap;
}
.vhc-listing .vhc-service__note {
	margin: 0;
	font-size: .8125rem;
	opacity: .8;
}
.vhc-listing .vhc-service__book {
	margin: var(--_s1) 0 0;
}

/* ── services as production shows them: a LIST, and EXPLORE opens one in place (Karl's review, 2026-10-06) ─────────────
   The row: thumbnail · name · one-line excerpt · EXPLORE →, hairline between rows, no card box. Open: the panel below the
   row holds the full service (photo beside description, meta, note, booking) exactly as the card did. */
.vhc-listing .vhc-services { gap: 0; }
.vhc-listing details.vhc-service {
	display: block; padding: 0; border: 0; border-radius: 0; background: none;
	border-bottom: 1px solid var(--vhc-rule, #e0e0e0);
}
.vhc-listing .vhc-service__row {
	display: grid; grid-template-columns: minmax(6rem, 12rem) 1fr; gap: var(--_s3); align-items: stretch;
	padding: var(--_s3) 0; cursor: pointer; list-style: none;
}
.vhc-listing .vhc-service__row::-webkit-details-marker { display: none; }
.vhc-listing .vhc-service__row:not(:has(.vhc-service__thumb)) { grid-template-columns: 1fr; }
.vhc-listing .vhc-service__thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--_r-sm); }
.vhc-listing .vhc-service__head { display: flex; flex-direction: column; gap: var(--_s1); min-width: 0; }
.vhc-listing .vhc-service__row .vhc-service__name { font-size: 1.15rem; font-weight: 400; }
.vhc-listing .vhc-service__excerpt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vhc-listing .vhc-service__explore {
	margin-top: auto; display: inline-flex; align-items: center; gap: var(--_s2);
	text-transform: uppercase; font-weight: 700; letter-spacing: .02em;
}
.vhc-listing .vhc-service__explore-arrow { transition: transform .15s ease; }
.vhc-listing .vhc-service__explore-close { display: none; }
.vhc-listing details.vhc-service[open] .vhc-service__explore-open { display: none; }
.vhc-listing details.vhc-service[open] .vhc-service__explore-close { display: inline; }
.vhc-listing details.vhc-service[open] .vhc-service__explore-arrow { transform: rotate(90deg); }
.vhc-listing details.vhc-service[open] .vhc-service__excerpt { display: none; }   /* the panel says it in full */
/* open: the row becomes a heading — the panel's photo replaces the thumbnail (no picture twice) */
.vhc-listing details.vhc-service[open] .vhc-service__thumb { display: none; }
.vhc-listing details.vhc-service[open] > .vhc-service__row { grid-template-columns: 1fr; }
.vhc-listing .vhc-service__row:hover { background: color-mix(in srgb, var(--vhc-text, currentColor) 3%, transparent); }
.vhc-listing .vhc-service__row:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.vhc-listing .vhc-service__panel { display: grid; gap: var(--_s2); padding: 0 0 var(--_s4); }
@media (max-width: 575.98px) {
	.vhc-listing .vhc-service__row { grid-template-columns: 7rem 1fr; }
	.vhc-listing .vhc-service__excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}


/* ── the actions panel (gap row 1) + opening hours (row 9) ───────────────────────────────────────
   ⭐ Right-hand column on wide screens, a plain stack on a phone. ⛔ No brand colours: the package is
   brand-free by design and a site supplies its own palette. */
.vhc-listing .vhc-actions { display: flex; flex-direction: column; gap: 0; margin: 0 0 var(--_s4); }
/* a FACT row (2026-10-06: a service's guests / route): the same row as a link, but read-only — label left, value right */
/* ⚠️ (0,2,1) with the element: `.vhc-listing .vhc-action { display: block }` comes LATER at the same weight and won */
.vhc-listing p.vhc-action--fact {
	display: flex; justify-content: space-between; align-items: center; gap: var(--_s3); min-height: 2.75rem; margin: 0; padding: var(--_s2) 0;
	text-transform: var(--vhc-action-case, uppercase); letter-spacing: .02em;
}
.vhc-listing p.vhc-action--fact .vhc-action__value { text-transform: none; letter-spacing: 0; text-align: right; }
/* accessibility rows (_access.twig): capability left, level right; the level is words, never colour alone */
.vhc-listing .vhc-access { list-style: none; margin: 0 0 var(--_s2); padding: 0; display: grid; gap: var(--_s1); }
.vhc-listing .vhc-access__item { display: flex; justify-content: space-between; gap: var(--_s3); flex-wrap: wrap; }
.vhc-listing .vhc-access__level { font-size: .9em; opacity: .85; }
.vhc-listing .vhc-access__item--full .vhc-access__level { opacity: 1; font-weight: 600; }
/* a service's actions column sits beside its photos, above its description */
.vhc-listing .vhc-service__side { display: grid; gap: var(--_s3); align-content: start; }
.vhc-listing .vhc-actions--service { margin: 0; }
/* a service's v5 categories (2026-10-06): quiet chips under its actions, the service panel only */
.vhc-listing .vhc-service__terms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--_s1); }
.vhc-listing .vhc-service__term { padding: .15rem var(--_s2); border-radius: 999px; background: color-mix(in srgb, var(--vhc-text, currentColor) 6%, transparent); font-size: .85rem; }
/* ⭐ the socials at the FOOT of the actions column, level with the bottom of the gallery beside it (v3's align-self-end).
   The panel fills its row cell's height, and the socials take the spare space above them. */
.vhc-listing .vhc-row__cell--actions { align-self: stretch; }
.vhc-listing .vhc-row__cell--actions > .vhc-actions { flex: 1 1 auto; margin-bottom: 0; padding: 0rem var(--_s4); font-size: 16px; }   /* font-size: Karl's production edit, brought home 2026-10-20 */
/* ⚠️ 2026-10-05 (Karl's screenshot): the row is a grid with `align-items: start`, so the actions cell was only as tall as
   its content and `height: 100%` filled nothing — the socials sat mid-column, ~440px above the gallery's foot. The CELL
   now stretches to the row (it is a flex column), and the panel grows inside it, so `margin-top: auto` has room. */
.vhc-listing .vhc-actions > .vhc-socials--end { margin-top: auto; padding-top: var(--_s2); }   /* ⚠️ (0,3,0): the later `.vhc-socials { margin-top }` had the same weight and won, so `auto` never applied */
/* ⭐ PRODUCTION'S ROWS (Karl, 2026-10-05, from victoriashighcountry.com.au): no boxes — an icon, an UPPERCASE label, a
   hairline under each row, and on the right an arrow (→) for a link or a chevron for a row that opens. Every row is at
   least 44 px tall, which is also the touch-target rule (Design-Pass-Review §1 #5). Labels take the TEXT colour, not
   the link colour: they are actions, and production shows them dark. --vhc-action-case can turn the capitals off. */
.vhc-listing .vhc-action { display: block; padding: 0; border: 0; border-bottom: 1px solid var(--vhc-rule, #e0e0e0); text-decoration: none; }
.vhc-listing a.vhc-action, .vhc-listing .vhc-action > summary, .vhc-listing .vhc-action__row, .vhc-listing .vhc-action--hours-flat {
	display: flex; justify-content: space-between; align-items: center; gap: var(--_s4); min-height: 2.75rem; padding: calc(var(--_u) * 2.5) var(--_s2);   /* Karl's production 10px · s2 · 10px, as unit steps (= 10px at the 4px default; checked against vhv-2026 2026-11-04) */
	color: var(--vhc-text, inherit) !important; text-decoration: none;
	text-transform: var(--vhc-action-case, uppercase); letter-spacing: .02em; font-weight: 399;   /* 399: Karl's production value, kept as set */
}
.vhc-listing .vhc-action__label { display: inline-flex; align-items: center; min-width: 0; }
.vhc-listing .vhc-action__chev { flex: none; font-size: 1.1em; line-height: 1; display: inline-flex; align-items: center; }
.vhc-listing .vhc-action > summary { cursor: pointer; list-style: none; justify-content: flex-start; gap: 0; }
/* ⚠️ A summary's icon, text and chevron are three flex items: `space-between` floated the text to the MIDDLE. The label
   sits left with its icon, and the chevron alone is pushed right. */
.vhc-listing .vhc-action > summary::-webkit-details-marker { display: none; }
.vhc-listing .vhc-action > summary::after {
	content: ""; flex: none; width: .5rem; height: .5rem; margin-right: var(--_s1); margin-left: auto;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease;
}
.vhc-listing .vhc-action[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.vhc-listing a.vhc-action:hover, .vhc-listing .vhc-action > summary:hover, .vhc-listing .vhc-action__row:hover {
	background: color-mix(in srgb, var(--vhc-text, currentColor) 4%, transparent);
}
/* the rows inside "Get in touch": indented, each its own row (production's CALL NOW / EMAIL NOW) */
.vhc-listing .vhc-action__list { margin: 0 0 var(--_s2); padding-left: var(--_s5); list-style: none; }
.vhc-listing .vhc-action__list--rows .vhc-action__item { border-top: 1px solid var(--vhc-rule, #e0e0e0); }
.vhc-listing .vhc-action__row { width: 100%; }
.vhc-listing .vhc-action__item { margin: 0; }
/* a value (the number / address itself, `actions.reach_labels: values`): ⚠️ a long email must wrap, not run out of the panel */
.vhc-listing .vhc-action__value { overflow-wrap: anywhere; min-width: 0; }
.vhc-listing .vhc-action--hours-flat { margin: 0; }
/* what a row opens onto sits under the row, not inside its padding */
.vhc-listing .vhc-action > .vhc-hours, .vhc-listing .vhc-action > .vhc-dates { margin-top: 0; }
.vhc-listing details.vhc-action > :last-child:not(summary) { margin-bottom: var(--_s2); }
/* what an action row opens onto is inset from the panel's edges (Karl's review, 2026-10-06: padding for now; a pop-up later) */
.vhc-listing details.vhc-action > :not(summary) { padding-inline: var(--vhc-action-detail-pad, var(--_s3)); box-sizing: border-box; }   /* ⚠️ details only: on a link row the last child is the → and this lifted it 5px */

.vhc-listing .vhc-hours { width: 100%; margin: var(--_s2) 0 0; border-collapse: collapse; }
/* event dates (Dates panel) — the dates as a compact list, then one times line when they share it */
.vhc-listing .vhc-dates { list-style: none; margin: var(--_s2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--_s1) var(--_s3); }
.vhc-listing .vhc-dates__item { font-variant-numeric: tabular-nums; }
.vhc-listing .vhc-dates__times { margin: var(--_s2) 0 0; font-weight: 600; }
.vhc-listing .vhc-dates__item .vhc-dates__times { margin: 0; font-weight: 400; opacity: .8; }
.vhc-listing .vhc-hours__range { caption-side: top; text-align: left; font-weight: 600; padding: var(--_s1) 0; }
.vhc-listing .vhc-hours__row > * { padding: var(--_s1) var(--_s2) var(--_s1) 0; text-align: left; font-weight: 400; }
.vhc-listing .vhc-hours__row.is-closed .vhc-hours__time { opacity: .7; }
/* ⭐ `is-today` is added by hours.js at VIEW time — never rendered into the artefact, because a
   cached file cannot know what day it is being read on. */
.vhc-listing .vhc-hours__row.is-today > * { font-weight: 700; }
/* split shifts (2026-10-01): each session on its own line, never broken mid-time; date ranges one per line */
.vhc-listing .vhc-hours__session { display: block; white-space: nowrap; }
.vhc-listing .vhc-hours__time { white-space: nowrap; }
.vhc-listing .vhc-hours__range-item { display: block; font-weight: 600; }
.vhc-listing .vhc-hours + .vhc-hours { margin-top: var(--_s3); }
.vhc-listing .vhc-hours.is-current .vhc-hours__range::after { content: ' · now'; font-weight: 400; opacity: .75; }
.vhc-listing .vhc-hours__note { margin: var(--_s2) 0 0; }

.vhc-listing .vhc-socials { margin-top: var(--_s1); }
.vhc-listing .vhc-socials__label { font-weight: 600; margin-right: var(--_s2); }
.vhc-listing .vhc-socials__list { display: inline-flex; flex-wrap: wrap; gap: var(--_s2); list-style: none; margin: 0; padding: 0; }


/* ── the carousel (gap row 4) — CSS scroll-snap, no JavaScript ───────────────────────────────────
   ⛔ The package ships no Bootstrap JS and no jQuery, so Bootstrap's own carousel is not available
   and is not wanted: a horizontal scroll container with snap points is native, keyboard- and
   touch-scrollable, and degrades to a plain list of every photo when CSS does not load. */
.vhc-listing .vhc-carousel__track {
	display: flex; gap: var(--_s2); overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.vhc-listing .vhc-carousel__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
/* the frame is the IMAGE's box (the caption is laid OVER it), so a caption can never change the photo's shape */
.vhc-listing .vhc-carousel__frame { aspect-ratio: var(--vhc-photo-ratio, 4 / 3); overflow: hidden; }
.vhc-listing .vhc-carousel__img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The caption in the brand's colours (from vhc-2026, Karl 2026-09-30; its `ppadding` typo meant the padding never applied) */
/* ⭐ OVERLAID on the photo's foot (Karl's review, 2026-10-06): a caption under the photo made captioned slides taller than
   uncaptioned ones, so the strip changed height as it scrolled. Now every slide is exactly its frame. The brand colour
   stays, at 85 %, so the photo reads through. */
.vhc-listing .vhc-carousel__caption {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: var(--_s1) var(--_s3); color: var(--vhc-primary-text, #fff) !important;
	background-color: color-mix(in srgb, var(--vhc-primary, #096c67) 85%, transparent);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.vhc-listing .vhc-carousel__thumbs {
	display: flex; gap: var(--_s2); overflow-x: auto; list-style: none; margin: var(--_s2) 0 0; padding: 0; align-items: center;
}
/* Thumbnails CENTRED (from vhc-2026, Karl 2026-09-30). ⚠️ By auto margins, not `justify-content: center`: centring a
   scrolling flex strip pushes its first thumbnails past the left edge, where no scroll can reach them. */
.vhc-listing .vhc-carousel__thumbs > :first-child { margin-left: auto; }
.vhc-listing .vhc-carousel__thumbs > :last-child { margin-right: auto; }
.vhc-listing .vhc-carousel__thumb { display: block; line-height: 0; }
.vhc-listing .vhc-carousel__thumb img { width: 72px; height: 54px; object-fit: cover; }
.vhc-listing .vhc-carousel__thumb:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ⚠️ A reader who has asked for less motion should not get a smooth horizontal glide. */
@media (prefers-reduced-motion: reduce) { .vhc-listing .vhc-carousel__track { scroll-behavior: auto; } }


/* ── video (gap row 8) — a link until the reader asks for a player ───────────────────────────────
   ⛔ No iframe ships in the artefact, so there is nothing here to size until `video.js` inserts one. */
.vhc-listing .vhc-videos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--_s2); }
.vhc-listing .vhc-video__link { display: inline-block; padding: var(--_s2) var(--_s4); border: 1px solid currentColor; border-radius: var(--_r-sm); font-weight: 600; }
.vhc-listing .vhc-video.is-playing { aspect-ratio: 16 / 9; }
.vhc-listing .vhc-video__frame { width: 100%; height: 100%; border: 0; }


/* ── the video poster (deferred — inserted by video.js after `load`) ─────────────────────────────
   ⛔ Nothing here applies until the script has run, because the artefact contains no <img> at all. */
.vhc-listing .vhc-video.has-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--_r-sm); }
.vhc-listing .vhc-video__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
/* ⭐ The link becomes the play affordance ON TOP of the poster — still the same <a>, so with the
   script blocked it is still an ordinary link and nothing about the markup changed. */
.vhc-listing .vhc-video.has-poster .vhc-video__link {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	border: 0; background: rgba(0, 0, 0, .35); color: #fff !important; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
/* ⭐ Over a poster the link is ONLY a play icon (Karl, 2026-10-01: "just a play icon … would be enough"). The words stay in
   the markup, visually hidden, so a screen reader still hears "Watch on YouTube". The icon is a dark rounded tile
   (::before) with a white triangle (::after). ↩ The tile used to be all there was: its clip-path was a rectangle. */
.vhc-listing .vhc-video.has-poster .vhc-video__label {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.vhc-listing .vhc-video.has-poster .vhc-video__link::before {
	content: ''; width: 4.25rem; height: 3rem; border-radius: var(--_r-lg); background: rgba(0, 0, 0, .72);
	transition: background-color .15s;
}
.vhc-listing .vhc-video.has-poster .vhc-video__link::after {
	content: ''; position: absolute; width: 1.25rem; height: 1.4rem; margin-left: var(--_s1); background: #fff;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.vhc-listing .vhc-video.has-poster .vhc-video__link:hover::before,
.vhc-listing .vhc-video.has-poster .vhc-video__link:focus-visible::before { background: var(--vhc-accent, #c4302b); }
.vhc-listing .vhc-video.has-poster .vhc-video__link:hover { background: rgba(0, 0, 0, .2); }
/* ⭐ A video as a GALLERY SLIDE (`carousel.videos: in_gallery`, 2026-10-05): it fills the photo frame (the gallery's
   shape, not 16:9), square corners like the photos; without a poster, a dark tile with the play button. */
.vhc-listing .vhc-carousel__frame.vhc-video { position: relative; aspect-ratio: var(--vhc-photo-ratio, 4 / 3); border-radius: 0; background: #111; }
.vhc-listing .vhc-carousel__frame.vhc-video .vhc-video__link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 0; color: #fff !important; text-decoration: none; }
.vhc-listing .vhc-carousel__frame.vhc-video.is-playing { aspect-ratio: var(--vhc-photo-ratio, 4 / 3); }
.vhc-listing .vhc-carousel__frame.vhc-video .vhc-video__frame { position: absolute; inset: 0; }
.vhc-listing .vhc-carousel__thumb--video { position: relative; }
.vhc-listing .vhc-carousel__thumb--video::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	color: #fff !important; font-size: .9rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.vhc-listing .vhc-carousel__thumb-label { display: flex; align-items: center; justify-content: center; width: 4.5rem; height: 3.4rem; background: #111; color: #fff !important; font-size: .7rem; }

/* ── parts (_ui.twig) — the reusable button / badge / card the macros write ─────────────────────── */
.vhc-listing .vhc-btn { display: inline-block; padding: var(--_s2) var(--_s4); border-radius: var(--_r-sm); text-decoration: none; font-weight: 600; }
.vhc-listing .vhc-btn--primary { background: var(--vhc-primary, #096c67); color: var(--vhc-primary-text, #fff) !important; }
.vhc-listing .vhc-btn--plain { border: 1px solid currentColor; }
.vhc-listing .vhc-badge { display: inline-block; padding: .1rem var(--_s2); border-radius: 999px; font-size: .85em; background: var(--vhc-secondary, #f6f9ff); }
.vhc-listing .vhc-card { display: flex; flex-direction: column; gap: var(--_s2); }
.vhc-listing .vhc-card__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--_r-sm); }
.vhc-listing .vhc-card__title { margin: 0; font-size: 1.05rem; }
.vhc-listing .vhc-card__body { margin: 0; }

/* services: inside the ui.split body (_services.twig) the photo fills its column — the column sets the width, not 22rem */
.vhc-listing .vhc-service__body .vhc-service__image { max-width: none; border-radius: var(--_r-sm); }
.vhc-listing .vhc-service__body > .vhc-service__description > :first-child { margin-top: 0; }

/* ── dialogs (2026-10-01, dialogs.js) — "All seasons" / "All dates" ────────────────────────────────────────────────
   ⭐ A centred card on a wide screen, a full-height sheet on a phone (the map popup's rule). Native <dialog>: the
   backdrop, Esc and focus come with it. */
.vhc-listing .vhc-more-btn { display: inline-block; margin: var(--_s2) 0 0; padding: var(--_s1) var(--_s3); border: 1px solid currentColor;
	border-radius: var(--_r-sm); background: none; color: inherit !important; font: inherit; font-weight: 600; cursor: pointer; }
.vhc-listing .vhc-dialog { width: min(42rem, calc(100vw - 2rem)); max-height: min(85vh, 52rem); padding: 0; border: 0;
	border-radius: var(--_r-lg); color: var(--vhc-text, #18181b) !important; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.vhc-listing .vhc-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.vhc-listing .vhc-dialog__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
	gap: var(--_s4); padding: var(--_s4) var(--_s4); background: inherit; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.vhc-listing .vhc-dialog__title { margin: 0; font-size: 1.1rem; font-family: var(--vhc-font-heading, inherit); }
.vhc-listing .vhc-dialog__close { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06);
	font-size: 1.5rem; line-height: 1; cursor: pointer; color: inherit !important; }
.vhc-listing .vhc-dialog__body { padding: var(--_s4) var(--_s4) var(--_s4); overflow: auto; }
.vhc-listing .vhc-dialog--hours .vhc-dialog__body { display: grid; gap: var(--_s4); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.vhc-listing .vhc-dialog--hours .vhc-hours + .vhc-hours { margin-top: 0; }
@media (max-width: 640px) {
	.vhc-listing .vhc-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
}
/* the month calendar */
.vhc-listing .vhc-cal { display: grid; gap: var(--_s4); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.vhc-listing .vhc-cal__times { margin: 0 0 var(--_s4); font-weight: 600; }
.vhc-listing .vhc-cal__name { margin: 0 0 var(--_s2); font-size: 1rem; }
.vhc-listing .vhc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-variant-numeric: tabular-nums; }
.vhc-listing .vhc-cal__dow { font-size: .72rem; font-weight: 600; opacity: .6; padding-bottom: var(--_s1); }
.vhc-listing .vhc-cal__day { padding: var(--_s1) 0; border-radius: var(--_r-md); font-size: .9rem; opacity: .55; }
.vhc-listing .vhc-cal__day.is-on { opacity: 1; font-weight: 700; color: var(--vhc-primary-text, #fff) !important; background: var(--vhc-primary, #18181b); }
.vhc-listing .vhc-cal__day.is-today { outline: 2px solid var(--vhc-accent, #c4302b); outline-offset: -2px; opacity: 1; }

/* ── icons (2026-10-01, ui.icon → _icon--*.twig; ICONS.md) ───────────────────────────────────────────────────────────
   Inline SVG in currentColor, so an icon takes the colour of the text it sits in. --vhc-icon-colour recolours the
   actions panel's icons; the AS 2156 grade glyphs keep the sign green (--vhc-grade-walk). */
.vhc-listing .vhc-icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.18em; }
.vhc-listing .vhc-icon__svg { width: 100%; height: 100%; display: block; }
.vhc-listing .vhc-icon__svg--grade-walk { fill: var(--vhc-grade-walk, #00703c); }
.vhc-listing .vhc-actions .vhc-icon { color: var(--vhc-icon-colour, currentColor) !important; margin-right: var(--_s3); }
/* the Follow us buttons keep the text colour: they are their own family, not panel actions (2026-10-05) */
.vhc-listing .vhc-actions .vhc-social .vhc-icon { color: inherit !important; }
.vhc-listing .vhc-action__item { display: flex; align-items: center; }
/* social links: a 44 px round button with the network's icon (the touch-target floor) */
.vhc-listing .vhc-social--icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
	border: 1px solid currentColor; border-radius: 50%; color: inherit !important; opacity: .8; }
.vhc-listing .vhc-social--icon:hover, .vhc-listing .vhc-social--icon:focus-visible { opacity: 1; }
.vhc-listing .vhc-social--icon .vhc-icon { width: 1.2rem; height: 1.2rem; margin: 0; }
.vhc-listing .vhc-social--icon .vhc-social__label {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.vhc-listing .vhc-socials__list { align-items: center; }

/* ── gallery controls (gallery.js, 2026-10-01): prev / next over the photo, the thumbnail in view ─────────────────── */
.vhc-listing .vhc-carousel { position: relative; }
.vhc-listing .vhc-carousel__nav {
	position: absolute; z-index: 3; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; padding: 0;
	display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .45); color: #fff !important; font-size: 1.9rem; line-height: 1; cursor: pointer;
	transition: background-color .15s, opacity .15s;
}
.vhc-listing .vhc-carousel__nav span { margin-top: -.15em; }
.vhc-listing .vhc-carousel__nav--prev { left: .6rem; }
.vhc-listing .vhc-carousel__nav--next { right: .6rem; }
.vhc-listing .vhc-carousel__nav:hover, .vhc-listing .vhc-carousel__nav:focus-visible { background: rgba(0, 0, 0, .7); }
.vhc-listing .vhc-carousel__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vhc-listing .vhc-carousel__nav:disabled { opacity: 0; pointer-events: none; }
/* `carousel.arrows` (Karl, 2026-10-05): HOVER = the buttons fade in while the pointer is over the photo (or focus is in
   the carousel); a touch screen has no hover, so there they always show. NONE = no buttons (swipe and thumbnails). */
.vhc-listing .vhc-carousel--arrows-none .vhc-carousel__nav { display: none; }
@media (hover: hover) {
	.vhc-listing .vhc-carousel--arrows-hover .vhc-carousel__nav:not(:disabled) { opacity: 0; }
	.vhc-listing .vhc-carousel--arrows-hover:hover .vhc-carousel__nav:not(:disabled),
	.vhc-listing .vhc-carousel--arrows-hover:has(:focus-visible) .vhc-carousel__nav:not(:disabled) { opacity: 1; }
/* ↩ 2026-10-06 (Karl's review): was `:focus-within` — a mouse CLICK on an arrow focuses it, so the arrows stayed until you
   clicked elsewhere. `:focus-visible` keeps them for keyboard users only. */
}
.vhc-listing .vhc-carousel__thumb { opacity: .65; transition: opacity .15s; }
.vhc-listing .vhc-carousel__thumb:hover, .vhc-listing .vhc-carousel__thumb[aria-current="true"] { opacity: 1; }
.vhc-listing .vhc-carousel__thumb[aria-current="true"] img { outline: 2px solid var(--vhc-primary, #18181b); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .vhc-listing .vhc-carousel__nav, .vhc-listing .vhc-carousel__thumb { transition: none; } }

/* ── the walk/ride strip (2026-10-01, _trail.twig; v3's walkride_table) ───────────────────────────────────────────────
   Icon over value, the facts side by side with a rule between them (v3's shape), wrapping on a phone. */
.vhc-listing .vhc-trail__strip { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 var(--_s3); padding: 0; font-size: 11px; }   /* Karl's production edit (10-20) */
.vhc-listing .vhc-trail__fact { flex: 1 1 6.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--_s1);
	padding: var(--_s2) var(--_s2) var(--_s3); text-align: center; border-left: 1px solid rgba(0, 0, 0, .12); }   /* space-between at every width (Karl 10-20): icons, labels and values line up across the strip */
.vhc-listing .vhc-trail__fact:first-child { border-left: 0; }
.vhc-listing .vhc-trail__fact .vhc-icon, .vhc-listing .vhc-trail__fact .vhc-grade { width: 1.75rem; height: 1.75rem; margin: 0; }
.vhc-listing .vhc-trail__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .65; }
.vhc-listing .vhc-trail__value { font-weight: 600; }
.vhc-listing .vhc-trail__gpx { display: flex; flex-direction: column; align-items: center; gap: var(--_s1); color: inherit !important; text-decoration: none;
	justify-content: space-between; height: 100%; }   /* Karl's production edit: its label and value line up with the other facts' */
.vhc-listing .vhc-trail__gpx:hover .vhc-trail__value { text-decoration: underline; }
.vhc-listing .vhc-trail__grade-desc { margin: 0 0 var(--_s2); }
@media (max-width: 575px) {
	.vhc-listing .vhc-trail__fact { flex-basis: 33%; border-left: 0; justify-content: space-between; }   /* Karl's production edit: tops and values aligned per row */
}
/* ride grades: v3's squares (Karl, 10-01), outlined for White, two rotated squares for Double Black */
.vhc-listing .vhc-grade { position: relative; display: inline-block; flex: 0 0 auto; width: 1.15em; height: 1.15em; vertical-align: -.18em; }
.vhc-listing .vhc-grade::before { content: ''; position: absolute; inset: 12%; border-radius: var(--_r-sm); background: var(--_g, #000); }
.vhc-listing .vhc-grade--white::before  { background: #fff; box-shadow: inset 0 0 0 2px #8a8a8a; }
.vhc-listing .vhc-grade--green  { --_g: var(--vhc-grade-green, #1f9d3a); }
.vhc-listing .vhc-grade--blue   { --_g: var(--vhc-grade-blue, #1462c8); }
.vhc-listing .vhc-grade--black  { --_g: var(--vhc-grade-black, #111); }
.vhc-listing .vhc-grade--double-black { --_g: var(--vhc-grade-black, #111); width: 1.9em; }
.vhc-listing .vhc-grade--double-black::before,
.vhc-listing .vhc-grade--double-black::after {
	content: ''; position: absolute; inset: auto; top: 21%; height: 58%; width: auto; aspect-ratio: 1 / 1;
	background: var(--_g); transform: rotate(45deg); border-radius: 0; box-shadow: none;
}
.vhc-listing .vhc-grade--double-black::before { left: 9%; }
.vhc-listing .vhc-grade--double-black::after { right: 9%; }
.vhc-listing .vhc-trail__fact .vhc-grade--double-black { width: 2.6rem; }
/* the grades legend */
.vhc-listing .vhc-grades { margin-top: var(--_s1); }
.vhc-listing .vhc-grades__head { cursor: pointer; font-weight: 600; }
.vhc-listing .vhc-grades__list { list-style: none; margin: var(--_s2) 0 0; padding: 0; display: grid; gap: var(--_s2); }
.vhc-listing .vhc-grades__rung { display: flex; align-items: flex-start; gap: var(--_s3); padding: var(--_s2) var(--_s2); border-radius: var(--_r-sm); }
.vhc-listing .vhc-grades__rung .vhc-icon, .vhc-listing .vhc-grades__rung .vhc-grade { width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.vhc-listing .vhc-grades__rung .vhc-grade--double-black { width: 2.4rem; }
.vhc-listing .vhc-grades__rung.is-this { background: color-mix(in srgb, var(--vhc-secondary, #e9edf1) 80%, transparent); font-weight: 600; }

/* ── prices in the actions panel (2026-10-01, slice 5) ─────────────────────────────────────────────────────────────── */
.vhc-listing .vhc-action--prices { padding: var(--_s2) 0; }
.vhc-listing .vhc-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--_s2); }
.vhc-listing .vhc-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem var(--_s3); }
.vhc-listing .vhc-price__label { display: inline-flex; align-items: center; text-transform: var(--vhc-action-case, uppercase); letter-spacing: .02em; }
.vhc-listing .vhc-price__value { font-weight: 400;   /* Karl's review 2026-10-06: not bold */ font-variant-numeric: tabular-nums; white-space: nowrap; }
.vhc-listing .vhc-price__note { flex-basis: 100%; font-size: .85rem; }
.vhc-listing .vhc-price__note > summary { cursor: pointer; opacity: .75; }
.vhc-listing .vhc-price__note p { margin: var(--_s1) 0 0; }
/* trail versions + several types (2026-10-20) — Karl's option A: the tabs sit IN the "Trail detail" heading, on the right
   (trail-versions.js moves them there; the strip itself is untouched). The selected tab takes the primary colour; each dot is
   the site's own walk / ride line colour, so the tab matches the map. */
.vhc-listing .vhc-trail-tabs { display: inline-flex; flex-wrap: wrap; margin: 0 0 var(--_s3); border: 1px solid var(--vhc-rule, #e0e0e0); border-radius: var(--_r-sm); overflow: hidden; max-width: 100%; }
.vhc-listing .vhc-section__head .vhc-trail-tabs { margin: 0 0 0 auto; }
.vhc-listing .vhc-trail-tabs__tab { font: inherit; font-family: var(--vhc-font-heading, inherit); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; line-height: 1;
	border: 0; border-left: 1px solid var(--vhc-rule, #e0e0e0); background: transparent; color: inherit !important; padding: var(--_s2) var(--_s3); cursor: pointer; display: inline-flex; gap: var(--_s2); align-items: center; }
.vhc-listing .vhc-trail-tabs__tab:first-child { border-left: 0; }
.vhc-listing .vhc-trail-tabs__tab[aria-selected="true"] { background: var(--vhc-primary, #096c67); color: var(--vhc-primary-text, #fff) !important; }
.vhc-listing .vhc-trail-tabs__tab:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.vhc-listing .vhc-trail-tabs__dot { width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.vhc-listing .vhc-trail-tabs__tab--walk .vhc-trail-tabs__dot { background: var(--vhc-trail-walk, #5b8fd6); }
.vhc-listing .vhc-trail-tabs__tab--ride .vhc-trail-tabs__dot { background: var(--vhc-trail-ride, #e07a4f); }
.vhc-listing .vhc-trail-tabs__tab--run .vhc-trail-tabs__dot { background: var(--vhc-trail-run, #9b7fd4); }
.vhc-listing .vhc-trail__more { font: inherit; font-size: .8em; font-weight: 700; border: 0; border-bottom: 1px dotted currentColor; background: none; padding: 0; margin-left: var(--_s1); color: inherit !important; cursor: pointer; }
.vhc-listing .vhc-trail__links { list-style: none; margin: var(--_s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--_s2) var(--_s4); }
.vhc-listing .vhc-trail__links a { font-weight: 600; }
/* icon-only phone / email (options.actions.reach_icon_only) */
.vhc-listing .vhc-action__list--icons { display: flex; flex-wrap: wrap; gap: var(--_s2); }
.vhc-listing .vhc-action__icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
	border: 1px solid currentColor; border-radius: 50%; color: inherit !important; }
.vhc-listing .vhc-action__icon-btn .vhc-icon { margin: 0; width: 1.2rem; height: 1.2rem; }


/* Build-Brief-LLM-Features §12 — the Nearby list UNDER THE MAP (2026-10-07): the action-row look, one row per place —
   a map-pin toggle (grey off · colour on), the name, and a new-tab link. */
.vhc-listing .vhc-nearby-list { margin-top: var(--_s3); }
.vhc-listing .vhc-nearby-list .vhc-action > summary .vhc-icon { margin-right: var(--_s2); color: var(--vhc-icon-colour, currentColor) !important; }
.vhc-listing .vhc-nearby { margin: 0; padding: 0; list-style: none; }
.vhc-listing .vhc-nearby__item { display: flex; align-items: center; gap: var(--_s2); min-height: 2.5rem; border-top: 1px solid var(--vhc-rule, #e0e0e0); }
.vhc-listing .vhc-nearby__pin, .vhc-listing .vhc-nearby__name {
	background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0; cursor: pointer;
	font: inherit; text-transform: none; letter-spacing: 0; color: var(--vhc-text, inherit) !important; text-align: left;
}
.vhc-listing .vhc-nearby__name { flex: 1 1 auto; min-width: 0; }
.vhc-listing .vhc-nearby__pin { flex: none; display: inline-flex; color: #9ca3af !important; }
.vhc-listing .vhc-nearby__pin[aria-pressed="true"] { color: var(--vhc-icon-colour, #4f46e5) !important; }
/* stage 2 (zoomed to it): the pin gets a ring, so the row says which place the map is showing */
.vhc-listing .vhc-nearby__item[data-stage="zoomed"] .vhc-nearby__pin { border-radius: 50% !important; box-shadow: 0 0 0 2px var(--vhc-icon-colour, #4f46e5) !important; }
.vhc-listing .vhc-nearby__item[data-stage="zoomed"] .vhc-nearby__name { font-weight: 600; }
.vhc-listing .vhc-nearby__open { flex: none; display: inline-flex; color: var(--vhc-link, #428bca) !important; }
.vhc-listing .vhc-nearby__town { color: var(--_muted) !important; font-size: .875em; }
.vhc-listing .vhc-action__count { color: var(--_muted) !important; font-weight: 400; margin-left: .35em; }
