/* Additions on top of the designer's site.css for the dynamic build. */
.county-mini-map { width: 100%; aspect-ratio: 640 / 420; background: #e8f1f6; }
.county-map-preview .leaflet-container { font: inherit; }
.star.empty { color: #cbd2ce; }
.difficulty-icon.easy i:nth-child(n + 2) { background: var(--line); }
.difficulty-icon.moderate i:nth-child(3) { background: var(--line); }
.walk-intro { margin: 8px 0 22px; }
.walk-intro .hub-intro { margin: 0; max-width: 900px; }
.review-route { font-weight: 700; font-size: 13px; color: var(--muted); }
.refreshments .info-card a { color: inherit; text-decoration: none; }
.refreshments .info-card small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.map-filter-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; min-width: 220px; }
select.filter-button { appearance: auto; font: inherit; }
.map-empty-message { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); background: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); z-index: 500; }
/* Map dialog: the two store badges together span the Print map button's width, with a small gap. */
.map-store-badges { gap: 12px; margin-top: 22px; grid-template-columns: 499fr 564fr; } /* badge widths → equal heights */
.map-store-badges a { display: flex; align-items: center; }
.map-store-badges img { max-height: none; width: 100%; height: auto; object-position: center; }
/* Legacy 1 walk template: "More <County> Walks…" as a compact grid of 15 (photo + title + distance). */
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.more-walk { display: grid; grid-template-rows: 120px auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel, #fff); color: inherit; text-decoration: none; }
.more-walk img { width: 100%; height: 120px; object-fit: cover; display: block; }
.more-walk-copy { padding: 10px 12px 12px; display: grid; gap: 2px; }
.more-walk-copy strong { font-size: 15px; line-height: 1.3; }
.more-walk-copy small { color: var(--muted); font-size: 12.5px; }
.more-walk:hover strong { color: var(--accent, #0877ad); }
.walk-legacy1 .walk-intro { margin: 6px 0 22px; }

/* Route description clamp + Read more (Legacy 1 side-by-side cards) */
.route-text.is-clamped { position: relative; max-height: calc(var(--clamp, 7) * 1.7em + 12px); overflow: hidden; }
.route-text.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--card-bg, #fff)); pointer-events: none; }
.read-more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--accent, #0877ad); font: inherit; font-weight: 700; cursor: pointer; }
.read-more:hover { text-decoration: underline; }
.read-more:focus-visible { outline: 3px solid rgba(8,119,173,.32); outline-offset: 3px; border-radius: 4px; }
/* Legacy 1 cards: the card is as tall as its text (minimum 300px); the map fills that height and never
   dictates it (absolutely positioned, so a tall portrait tile can't stretch the card). */
.walk-legacy1 .hub-route-card { height: auto; align-items: stretch; min-height: 300px; }
.walk-legacy1 .hub-route-image { position: relative; aspect-ratio: auto; height: auto; min-height: 300px; align-self: stretch; overflow: hidden; }
.walk-legacy1 .hub-route-image .route-map-trigger { position: absolute; inset: 0; width: 100%; height: 100%; }
.walk-legacy1 .hub-route-image img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; transform: none; }
@media (max-width: 999px) { .walk-legacy1 .hub-route-image { min-height: 260px; } }

/* Legacy 1: intro text and the walk photo side by side on wide screens (photo never wider than ~460px,
   so a 640px Geograph image stays sharp); stacked on narrow screens. */
.legacy-intro-grid { display: grid; gap: 22px; margin: 6px 0 28px; }
.legacy-intro-grid .walk-intro { margin: 0; }
.legacy-hero { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.legacy-hero img { display: block; width: 100%; height: auto; aspect-ratio: auto; max-height: none; }
@media (min-width: 1000px) {
  .legacy-intro-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 40px; align-items: start; }
  .legacy-intro-grid .walk-intro { max-width: 68ch; }
}
.legacy-hero figcaption { position: absolute; left: 12px; bottom: 12px; margin: 0; }
/* Legacy 1 photo: the figure is exactly the image (no inherited min-height/aspect), all four corners rounded, credit pill on the image. */
.walk-legacy1 .legacy-hero { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 18px; overflow: hidden; line-height: 0; align-self: start; }
.walk-legacy1 .legacy-hero img { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: unset; border-radius: 18px; }
.walk-legacy1 .legacy-hero figcaption { position: absolute; left: 12px; bottom: 12px; top: auto; margin: 0; line-height: 1.4; }
/* Legacy 1 intro grid: the photo sits right after the text (no dead space), flexing 300–460px wide. */
@media (min-width: 1000px) {
  .walk-legacy1 .legacy-intro-grid { grid-template-columns: fit-content(68ch) minmax(300px, 460px); justify-content: start; gap: 36px; }
}
/* Legacy 1 intro grid, final: text fills the left, photo is flush with the right edge (like the cards below). */
@media (min-width: 1000px) {
  .walk-legacy1 .legacy-intro-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); justify-content: stretch; gap: 40px; }
  .walk-legacy1 .legacy-intro-grid .walk-intro { max-width: none; }
}
/* Legacy 1 intro grid: the photo takes up to 48% of the width, capped at its native 640px so it never goes soft. */
@media (min-width: 1000px) {
  .walk-legacy1 .legacy-intro-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, min(48%, 640px)); }
}
.legacy-hero figcaption:has(.credit-pill) { padding: 0; }
.legacy-hero .credit-pill { display: block; padding: 6px 12px; color: inherit; text-decoration: none; border-radius: inherit; }
.legacy-hero figcaption:has(.credit-pill):hover { filter: brightness(1.15); }
/* Header logo: the square Local Walks mark, a touch larger than the designer's wide-logo slot. */
.site-header .brand img { width: auto; height: 72px; }
/* One content box for header and page: 1360px max with 18/28/40px side padding at the page-shell breakpoints,
   so the logo, nav and every page's content share the same left and right edges. */
.site-header .header-inner { max-width: 1360px; padding-left: 18px; padding-right: 18px; }
.county-home-shell { max-width: 1360px; padding-left: 18px; padding-right: 18px; box-sizing: border-box; }
@media (min-width: 620px) {
  .site-header .header-inner, .county-home-shell { padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 1000px) {
  .site-header .header-inner, .county-home-shell { padding-left: 40px; padding-right: 40px; }
}
/* …and the same outer width as the header/page-shell on every page type (some designer rules set 1320px). */
@media (min-width: 1000px) {
  main.county-home-shell, .county-landing .county-home-shell, .counties-home .county-home-shell, .static-map .county-home-shell { max-width: 1360px; }
}
@media (min-width: 1000px) {
  main.county-home-shell, .county-landing .county-home-shell, .counties-home .county-home-shell, .static-map .county-home-shell { width: min(1360px, 100%); }
}
/* County walk listing (the old blog-index URL) */
.listing-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.listing-sort { display: flex; align-items: center; gap: 18px; font-weight: 700; }
.listing-sort a { color: var(--muted); text-decoration: none; }
.listing-sort a[aria-current="true"] { color: var(--ink); border-bottom: 2px solid var(--accent, #0877ad); }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 26px; }
.listing-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel, #fff); }
.listing-card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.listing-image { position: relative; aspect-ratio: 16 / 10; background: var(--soft); }
.listing-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-image span { position: absolute; left: 12px; bottom: 12px; background: rgba(7, 91, 134, .88); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.listing-copy { padding: 14px 16px 16px; display: grid; gap: 8px; }
.listing-copy h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.listing-copy p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.listing-card:hover h2 { color: var(--accent, #0877ad); }

/* Loading spinner on map thumbnails until the image arrives */
.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(8,119,173,.18); border-top-color: var(--accent, #0877ad); border-radius: 50%; animation: lw-spin .8s linear infinite; pointer-events: none; }
.is-loading img { opacity: 0; }
.hub-route-image img { transition: opacity .25s ease; }
@keyframes lw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-loading::after { animation: none; } }
/* "More <County> Walks…": never more than 5 across, so 15 makes three tidy rows on wide screens. */
.nearby-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (min-width: 1000px) { .nearby-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 620px) and (max-width: 999px) { .nearby-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 619px) { .nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* App panel on phones/tablets: tighter top, centred badges, less air around the phone image. */
@media (max-width: 999px) {
  .app-panel .app-copy { padding: 22px 22px 6px; }
  .app-panel .app-copy .eyebrow { margin-top: 0; }
  .app-panel .store-badges { justify-content: center; margin-top: 18px; }
  .app-panel .app-visual { padding: 4px 18px 0; }
  .app-panel .app-features { padding-top: 16px; }
}
/* Breadcrumb sits at the same distance below the header on every page type. */
.county-landing .county-home-shell, .page-shell { padding-top: 0; }
.breadcrumb { padding: 22px 0 8px; }

/* Standard 1: link from a route block to its own page */
.hub-route-title h3 a { color: inherit; text-decoration: none; }
.hub-route-title h3 a:hover { color: var(--accent, #0877ad); }
.route-page-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; color: var(--accent, #0877ad); text-decoration: none; }
.route-page-link:hover { text-decoration: underline; }
/* Collection ("group") pages */
.collection-list { display: grid; gap: 22px; margin: 26px 0 40px; }
.collection-item { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel, #fff); }
@media (min-width: 700px) { .collection-item { grid-template-columns: minmax(240px, 34%) minmax(0, 1fr); } }
.collection-image { position: relative; display: block; min-height: 200px; background: var(--soft); }
.collection-image img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.collection-number { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent, #0877ad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.collection-body { padding: 18px 22px 20px; }
.collection-body h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.2; }
.collection-body h2 a { color: inherit; text-decoration: none; }
.collection-body h2 a:hover { color: var(--accent, #0877ad); }
.collection-meta { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.collection-meta a { color: inherit; }
.collection-body p { margin: 0 0 10px; }
.collection-more { margin: 30px 0 0; }

/* Group pages: optional photo beside the intro (same look as the Legacy 1 walk photo); no photo = text runs full width. */
.collection-page .legacy-intro-grid { grid-template-columns: minmax(0, 1fr); }
.collection-page .legacy-hero { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 18px; overflow: hidden; line-height: 0; align-self: start; }
.collection-page .legacy-hero img { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: unset; border-radius: 18px; }
@media (min-width: 1000px) {
  .collection-page .legacy-intro-grid.has-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, min(48%, 640px)); justify-content: stretch; gap: 40px; }
  .collection-page .legacy-intro-grid.has-hero .walk-intro { max-width: none; }
}

/* ONE body-copy style everywhere: page intro, walk-card route text, route page description and group-page cards
   all use the intro's colour, size and 1.7 line-height, with the same gap between paragraphs. */
.walk-intro .hub-intro, .route-text p, .collection-body p, .description-copy p {
  color: #405560; font-size: 16px; line-height: 1.7; margin: 0 0 12px;
}
.walk-intro .hub-intro:last-child, .route-text p:last-child, .collection-body p:last-child, .description-copy p:last-child { margin-bottom: 0; }
@media (min-width: 1000px) {
  .walk-intro .hub-intro, .route-text p, .collection-body p, .description-copy p { font-size: 17px; }
}

/* Group page text-only entries (no walk to link to yet): number inline with the heading, copy runs the full card width. */
.collection-item.is-text { grid-template-columns: minmax(0, 1fr); }
.collection-item.is-text .collection-body h2 { display: flex; align-items: center; gap: 12px; }
.collection-number-inline { position: static; width: 34px; height: 34px; font-size: 15px; flex: none; }

/* Group cards: the photo is a fixed-height panel pinned to the top of the card (it no longer stretches with long copy);
   long copy is clamped to 7 lines with a Read more toggle that only grows the text. Full text is in the HTML for SEO. */
@media (min-width: 700px) {
  /* The photo fills the card's (collapsed) height, cropping left/right; Read more locks it at that height (see page.js). */
  .collection-item:not(.is-text) .collection-image { min-height: 240px; overflow: hidden; }
  .collection-item.is-open .collection-image { align-self: start; border-bottom-right-radius: 18px; }
}
.collection-text.is-clamped { position: relative; display: block; -webkit-line-clamp: unset; max-height: calc(var(--clamp, 7) * 1.7em + 12px); overflow: hidden; }
.collection-text.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--panel, #fff)); pointer-events: none; }
.collection-body .read-more { display: block; margin: 2px 0 0; }
.collection-body .read-more[hidden] { display: none; } /* display:block above would otherwise defeat the hidden attribute */
.collection-link { margin: 0 0 12px; }
/* Group page photo: only when it can sit beside the intro; on phones/tablets (stacked layout) it is hidden. */
@media (max-width: 999px) { .collection-page .legacy-hero { display: none; } }
/* Homepage / county shell: same box as the header at EVERY width (the designer's calc(100% - 28px) width plus our
   18px padding pushed mobile content 14px inside the logo/menu edges). */
.county-home-shell { width: 100%; max-width: 1360px; }
/* County mini-map: whole zoom levels only (no tile seams); the map layer is scaled up to fill the panel and the
   pins are counter-scaled so they stay the same size (county-map.js sets --map-scale). */
.county-map-preview > a { position: relative; display: block; aspect-ratio: 640 / 420; overflow: hidden; background: #e8f1f6; }
/* The mini-map is ONE canvas (all tiles drawn at a whole zoom level, then the single bitmap scaled to the panel):
   no per-tile edges, so no hairline seams. Pins are DOM elements placed over it. */
#county-mini-map { position: absolute; inset: 0; }
#county-mini-map canvas { display: block; width: 100%; height: 100%; }
#county-mini-map .walk-marker-wrap { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
/* County page: tighter gap between the app hero and the "Search <county> walks" map panel (was 64px). */
.county-landing-hero.county-app-hero { margin-bottom: 24px; }
.county-map-panel { margin-top: 24px; }

/* Route page: description text and the location photo side by side on desktop (photo right, pinned to the top,
   all corners rounded, credit pill on the image); stacked with the photo below on smaller screens. */
.route-description-grid { display: grid; gap: 22px; }
.route-description-grid .description-text { min-width: 0; }
.route-description-grid .description-text p:last-child { margin-bottom: 0; }
.route-photo { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 18px; overflow: hidden; line-height: 0; align-self: start; margin: 0; position: relative; }
.route-photo img { display: block; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: unset; border-radius: 18px; }
.route-photo figcaption { position: absolute; left: 12px; bottom: 12px; top: auto; margin: 0; line-height: 1.4; }
@media (min-width: 1000px) {
  .route-description-grid.has-hero { grid-template-columns: minmax(0, 1fr) 450px; gap: 32px; align-items: start; }
}
/* Route description box: breathing room between the title / distance pill row and the copy. */
.description-copy .description-title-row { margin-bottom: 16px; }
/* Route description box, desktop: the photo fills the row height (crops left/right when the copy is taller), so the
   gap above and below it always equals the box padding. */
@media (min-width: 1000px) {
  /* !important: the designer's hero-image rules otherwise pin the figure to its natural height and it never stretches */
  .route-description-grid.has-hero .route-photo { align-self: stretch; height: auto !important; max-height: none !important; aspect-ratio: auto !important; }
  .route-description-grid.has-hero .route-photo img { height: auto; min-height: 100%; object-fit: cover; } /* natural height, or the row's if taller */
}
/* Walk/route pages: the county map panel follows the Nearby walks scroller. */
.walk-map-heading { margin-top: 40px; }
.walk-map-heading + .walk-map-panel { margin-top: 0; }
.county-map-panel .walk-map-panel-title { margin: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }

/* Card rows: no scrollbar (drag, swipe or trackpad instead); grab cursor on desktop; no text/image selection or
   scroll-snap while dragging. */
.nearby-scroll { scrollbar-width: none; cursor: grab; }
.nearby-scroll::-webkit-scrollbar { display: none; }
.nearby-scroll.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; scroll-snap-type: none; scroll-behavior: auto; }
.nearby-scroll.is-dragging a { pointer-events: none; }
.nearby-scroll img { -webkit-user-drag: none; user-select: none; }
@media (hover: none) { .nearby-scroll { cursor: auto; } }
/* Sliding-list cards: equal heights across the row, tighter copy area, text block vertically centred in it,
   star / score / count on one baseline. */
.nearby-card { display: flex; }
.nearby-card > a { display: flex; flex-direction: column; width: 100%; }
.nearby-card .nearby-image { flex: none; }
.nearby-card-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 13px 16px 14px; }
.nearby-rating { margin-top: 6px; align-items: baseline; line-height: 1.2; }
/* Map block heading matches the Nearby walks heading (the county-browse rule is scoped to that section). */
.walk-map-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
/* Hub routes heading ("<Walk> walks and route maps") sized like the other section titles (Nearby walks etc). */
.hub-routes .hub-section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
/* Route / single pages: section titles all at the standard size; the explanatory sentence sits under the grid. */
.route-page .community-heading h2, .route-page .reviews-heading h2, .route-page .nearby-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.section-note { max-width: 610px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
/* ONE size for every section title (Nearby walks, Popular walks, <County> walks map, <Walk> walks and route maps,
   Other <walk> walks, Community feedback, User reviews, Pubs and cafés): a step smaller than the designer's 2.5rem cap. */
.gallery-heading h2, .county-browse h2, .walk-map-heading h2, .hub-routes .hub-section-heading h2, .app-section-heading h2, .route-info-heading h2, .route-description-heading h2,
.route-page .community-heading h2, .route-page .reviews-heading h2, .route-page .nearby-heading h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

/* STORE BADGES, one rule everywhere: side by side = the same HEIGHT (columns in the badges' aspect ratios:
   Apple 499x167, Google 564x168); stacked (narrow container) = the same WIDTH. The wrapper is a size container
   so the switch happens per spot, not per screen. */
.badges-wrap { container-type: inline-size; display: flex !important; width: 100%; grid-template-columns: none; }
.badges-grid { display: grid; grid-template-columns: 2988fr 3357fr; gap: 12px; align-items: center; width: 100%; max-width: 330px; }
.badges-grid a { display: block; width: auto !important; max-width: none !important; min-width: 0; line-height: 0; }
.badges-grid img { display: block; width: 100%; height: auto !important; max-height: none !important; object-fit: unset; }
.map-store-badges .badges-grid { max-width: none; width: 100%; }
@container (max-width: 259px) { .badges-grid { grid-template-columns: 1fr; max-width: 220px; } }
/* Centred spots keep centring the block */
.app-panel .store-badges, .county-store-badges { justify-content: center; }
.river-map-store-badges { justify-content: flex-start; } /* under the map: left-aligned with the strip's text */
@media (min-width: 1000px) { .app-panel .store-badges { justify-content: flex-start; } .county-store-badges { justify-content: flex-start; } }
/* Route page: the "download the app" strip under the map fills its grid cell, so the badges get the full width
   (it was shrink-wrapping to one badge on phones). */
.river-map-download { width: 100%; justify-self: stretch; }

/* Hub route cards: link under the title, copy clamped to 7 lines with Read more at the bottom (the map keeps its
   height while the text expands - page.js). */
.hub-route-link, .hub-route-title .hub-route-link { grid-column: 1 / -1; justify-self: start; white-space: nowrap; } /* same pill as the "Search <county> walks" button (.home-app-intro-link) */
.hub-route-body { --card-bg: #e7f1f6; } /* the card's light blue */
.hub-route-body .read-more { display: block; margin: 4px 0 0; }
@media (min-width: 1000px) { .hub-route-body .read-more[hidden] { display: block; visibility: hidden; } } /* keep the row so all cards match */
@media (max-width: 999px) { .hub-route-body .read-more[hidden] { display: none; } }
/* Hub route cards: the copy area is always at least the clamp height, so every card in the list is the same height. */
@media (min-width: 1000px) { .hub-route-text { min-height: calc(7 * 1.7em + 12px); } }
@media (max-width: 619px) { .hub-route-title .hub-route-link { justify-self: stretch; justify-content: center; } }
/* Hub route cards: tighter space around the details link (was 19px above / 14px below). */
.hub-route-title { row-gap: 0; }
.hub-route-title .hub-route-link { margin-top: 10px; }
.hub-route-link + * , .hub-route-title + .hub-route-facts { margin-top: 12px; }
/* App panel: standard kicker + title above the blue box. */
.app-section-heading { margin-top: 40px; }
.app-section-heading h2 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; }
.app-section-heading + .app-section { margin-top: 24px !important; padding-top: 0 !important; } /* same 24px title-to-box gap as the other sections */
/* Hub page: the routes section sits 40px under the intro like every other section title (was 96px). */
.walk-legacy1 .hub-routes { padding-top: 12px !important; margin-top: 0; }
/* App box heading ("Follow the … with GPS guidance" / "Download the … app"): a size down from the designer's 3rem. */
.app-copy h2, .app-panel .app-copy h2, .app-copy .app-download-title { font-size: clamp(1.35rem, 2.3vw, 2rem) !important; line-height: 1.12; }
/* App box: small title above the store badges. */
.app-copy .app-download-title { margin: 26px 0 0; font-weight: 750; letter-spacing: -0.035em; color: inherit; }
.app-copy .app-download-title + .store-badges { margin-top: 17px !important; } /* same gap as under the box heading */
/* App box on phones: pull the phone image in a little (the PNG has ~40px of transparent space top and bottom). */
@media (max-width: 999px) { .app-panel .app-visual { margin-top: -22px; margin-bottom: -26px; } }
/* Hub route cards: while Read more is open the map stays its height, so round its exposed bottom-right corner. */
.hub-route-card.is-open .hub-route-image { border-bottom-right-radius: 18px; overflow: hidden; }

/* Hub route cards: the map is a rounded SQUARE inset inside the card (not bled to the edge). */
.walk-legacy1 .hub-route-image { position: relative; margin: 24px 0 24px 24px; aspect-ratio: 1 / 1; height: auto; min-height: 0; align-self: start; border-radius: 18px; overflow: hidden; }
.walk-legacy1 .hub-route-image img { border-radius: 18px; }
.walk-legacy1 .hub-route-card.is-open .hub-route-image { border-bottom-right-radius: 18px; }
@media (max-width: 999px) { .walk-legacy1 .hub-route-image { margin: 16px 16px 0; aspect-ratio: 4 / 3; min-height: 0; } }
/* EXPERIMENT: hub card map as a phone - tall rounded rectangle with a thick black bezel (the zoom-on-start makes it read like the app screen). */
.walk-legacy1 .hub-route-image { aspect-ratio: 9 / 17; max-width: 230px; margin: 24px 0 24px 24px; border: 7px solid #111; border-radius: 30px; background: #111; box-shadow: 0 12px 30px rgba(19, 45, 61, .22); }
.walk-legacy1 .hub-route-image img { border-radius: 24px; }
.walk-legacy1 .hub-route-image .route-map-trigger { border-radius: 24px; overflow: hidden; }
.walk-legacy1 .hub-route-card.is-open .hub-route-image { border-bottom-right-radius: 34px; }
@media (min-width: 1000px) { .walk-legacy1 .hub-route-card { grid-template-columns: 254px minmax(0, 1fr); } }
@media (max-width: 999px) { .walk-legacy1 .hub-route-image { aspect-ratio: 9 / 16; max-width: 230px; margin: 16px auto 0; } }
/* Hub route cards: a little air between the facts row and the description. */
.hub-route-body .hub-route-text { margin-top: 14px; }
/* Hub route facts (distance / time / route type): values at body-text size, labels a little larger than before. */
.hub-route-facts dt { font-size: 12px; }
.hub-route-facts dd { font-size: 16px !important; line-height: 1.3; }
@media (min-width: 1000px) { .hub-route-facts dd { font-size: 17px !important; } }

/* Hub route cards, final layout: the card is ONE column; inside the body the phone map sits in a left column on
   desktop (spanning every row) and, on phones, between the title and the facts. The details pill is last. */
.walk-legacy1 .hub-route-card { display: block !important; }
.walk-legacy1 .hub-route-body { padding: 24px 28px 24px 24px; }
@media (min-width: 1000px) {
  .walk-legacy1 .hub-route-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 28px; align-items: start; padding: 24px 32px 24px 24px; }
  .walk-legacy1 .hub-route-body > * { grid-column: 2; }
  .walk-legacy1 .hub-route-body > .hub-route-image { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
}
@media (max-width: 999px) {
  .walk-legacy1 .hub-route-image { margin: 14px auto 18px; }
}
.walk-legacy1 .hub-route-link { margin-top: 18px; justify-self: start; }
/* no Read more on hub cards now (short descriptions instead) */
.walk-legacy1 .hub-route-text { min-height: 0 !important; }
.walk-legacy1 .hub-route-body .read-more { display: none !important; }
/* Hub route cards, map as a SQUARE flush to the card's edge (replaces the phone bezel). */
.walk-legacy1 .hub-route-image { aspect-ratio: 1 / 1 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--soft); max-width: none !important; }
.walk-legacy1 .hub-route-image img, .walk-legacy1 .hub-route-image .route-map-trigger { border-radius: 0 !important; }
.walk-legacy1 .hub-route-card.is-open .hub-route-image { border-radius: 0 !important; }
@media (min-width: 1000px) {
  .walk-legacy1 .hub-route-body { grid-template-columns: 300px minmax(0, 1fr); column-gap: 28px; padding: 24px 32px 24px 0 !important; }
  .walk-legacy1 .hub-route-body > .hub-route-image { margin: -24px 0 0 !important; width: 300px; align-self: start; }
}
@media (max-width: 999px) {
  .walk-legacy1 .hub-route-image { width: calc(100% + 52px); margin: 14px -28px 18px -24px !important; }
}
@media (min-width: 1000px) {
  /* bottom padding on the text column only, so the square map reaches the card's bottom edge */
  .walk-legacy1 .hub-route-body { padding-bottom: 0 !important; }
  .walk-legacy1 .hub-route-body > :not(.hub-route-image):last-child { margin-bottom: 8px; }
}
@media (min-width: 1000px) {
  /* square when the text is shorter; when the text is taller the map stretches to the card's bottom edge */
  .walk-legacy1 .hub-route-body > .hub-route-image { aspect-ratio: auto !important; min-height: 300px; align-self: stretch; }
}
/* Hub route cards: map inset 24px so it lines up with the text (title top / pill bottom), rounded corners. */
@media (min-width: 1000px) {
  .walk-legacy1 .hub-route-body { padding: 24px 32px 24px 24px !important; }
  .walk-legacy1 .hub-route-body > .hub-route-image { margin: 0 !important; align-self: stretch; min-height: 300px; border-radius: 16px !important; }
  .walk-legacy1 .hub-route-image img, .walk-legacy1 .hub-route-image .route-map-trigger { border-radius: 16px !important; }
  .walk-legacy1 .hub-route-body > :not(.hub-route-image):last-child { margin-bottom: 0; }
}
@media (max-width: 999px) {
  .walk-legacy1 .hub-route-image { width: 100%; margin: 14px 0 18px !important; border-radius: 16px !important; }
  .walk-legacy1 .hub-route-image img, .walk-legacy1 .hub-route-image .route-map-trigger { border-radius: 16px !important; }
}

/* Hub route cards: always a SQUARE map; the blurb is capped at 4 lines with an ellipsis (the pill leads to the full text). */
@media (min-width: 1000px) {
  .walk-legacy1 .hub-route-body > .hub-route-image { aspect-ratio: 1 / 1 !important; align-self: start !important; min-height: 0 !important; height: auto !important; }
}
.hub-route-excerpt { margin: 0 !important; }
@media (min-width: 1000px) { .hub-route-excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } } /* desktop only; phones show it all */
/* Hub route cards: hairline grey border around the map. */
.walk-legacy1 .hub-route-image { border: 1px solid #c9d6dd !important; box-sizing: border-box; }
/* Hub route cards on phones: the details pill sits centred. */
@media (max-width: 999px) { .walk-legacy1 .hub-route-link { display: flex; width: fit-content; max-width: 100%; margin-left: auto !important; margin-right: auto !important; justify-content: center; } }

/* Hub page intro: bold app line + store badges under the intro text (same size/colour as the intro copy). */
.hub-intro-app { margin-top: 16px !important; }
.hub-intro-app strong { font-weight: 750; color: inherit; }
.walk-intro .hub-intro-badges { margin-top: 14px; justify-content: center; }
/* Hub route cards, desktop: the square map is flush to the card's top/left/bottom edges, no border, 340px. Phones unchanged (inset, bordered). */
@media (min-width: 1000px) {
  .walk-legacy1 .hub-route-body { grid-template-columns: 372px minmax(0, 1fr); padding: 24px 32px 24px 0 !important; }
  .walk-legacy1 .hub-route-body > .hub-route-image { margin: -24px 0 -24px 0 !important; width: 372px; border: 0 !important; border-radius: 0 !important; }
  .walk-legacy1 .hub-route-image img, .walk-legacy1 .hub-route-image .route-map-trigger { border-radius: 0 !important; }
  .walk-legacy1 .hub-route-card { min-height: 372px; }
}
/* Route page (Standard - Multi route pages + Single): the route map beside "Route information" a size smaller. */
@media (min-width: 1000px) { .river-map-information { grid-template-columns: 400px minmax(0, 1fr) !important; } }

/* Route page: "Route map" title above the map, same style as Route information / Route description. */
.map-section-heading { margin: 0 0 12px; }
.river-map-information .map-section-heading h2 { margin: 0; font-weight: 750; }
/* Route page on phones/tablets: one column - Route map (full width), then Route information, then the strip with
   the badges; the description follows after. */
@media (max-width: 999px) {
  .river-map-information { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; row-gap: 20px; }
  .river-map-column, .river-map-information .walk-information, .river-map-download { grid-column: 1 !important; grid-row: auto !important; width: 100%; }
  .river-map-information .route-map, .river-map-information .route-map img { width: 100%; }
}
/* Route page on phones: the app strip (text + badges) sits above the map, straight after the rating row. */
@media (max-width: 999px) { .river-map-download { order: -1; margin-bottom: 4px; } }
/* Route page on phones: less space between the rating row and the app strip (was 51px). */
@media (max-width: 999px) { .route-page .river-map-information { margin-top: 4px !important; } }

/* Route page v2: description as intro copy (+ photo), bold app line + badges, then one hub-style card with the
   square map and the facts list beside it. */
.route-v2 .route-intro-grid { margin: 6px 0 28px; }
.route-v2 .route-info-card { padding-top: 0 !important; }
.route-v2 .route-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 14px 0 0; }
.route-v2 .route-facts > div { border-bottom: 1px solid rgba(19, 45, 61, .08); padding-bottom: 12px; }
.route-v2 .route-facts dt { margin: 0 0 2px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.route-v2 .route-facts dd { margin: 0; font-size: 16px; font-weight: 750; color: var(--ink); }
.route-v2 .route-facts dd small { display: inline; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.route-v2 .route-facts > div > small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
@media (min-width: 1000px) { .route-v2 .route-facts dd { font-size: 17px; } }
@media (max-width: 999px) { .route-v2 .route-facts { grid-template-columns: 1fr; } }
/* Route page: equal, slightly tighter space above and below the rating/difficulty row (18px each). */
.route-v2 .title-block .walk-meta { margin-top: 8px !important; }
.route-v2 .title-block { padding-bottom: 12px !important; }
.route-v2 .route-intro-grid { margin-top: 6px !important; }

/* Route page v2: the map + information card gets the standard section heading above it; bigger map so the card is flush. */
.route-info-heading { margin: 0 0 18px; }
.route-info-heading h2 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; }
.route-v2 .route-info-card { margin-top: 40px; }
.route-v2 .route-info-card .hub-route-list { margin-top: 0; }
@media (min-width: 1000px) {
  .route-v2 .route-info-card .hub-route-body { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
  .route-v2 .route-info-card .hub-route-body > .hub-route-image { width: 380px; min-height: 380px; }
  .route-v2 .route-info-card .hub-route-card { min-height: 380px; }
  .route-v2 .route-facts { margin-top: 0; }
}
/* Route page v2 card: the facts list fills the map's height (rows spread evenly), so the card is always flush. */
@media (min-width: 1000px) {
  .route-v2 .route-info-card .hub-route-body { align-items: stretch; grid-template-rows: auto 1fr; }
  .route-v2 .route-info-card .hub-route-body > .hub-route-image { grid-row: 1 / span 2 !important; }
  .route-v2 .route-info-card .hub-route-body > .route-info-heading { grid-column: 2; grid-row: 1; }
  .route-v2 .route-info-card .hub-route-body > .route-facts { grid-column: 2; grid-row: 2; }
  .route-v2 .route-facts { height: auto; align-self: stretch; box-sizing: border-box; align-content: space-between; grid-auto-rows: auto; padding: 4px 0 0; }
  .route-v2 .route-facts > div:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}

/* Standard - Single: route description as plain copy under a standard heading, after the map card. */
.route-description-heading { margin: 40px 0 18px; }
.route-description-heading h2 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; }
.route-description-copy .walk-intro { margin: 0; max-width: 900px; }
.route-description-copy .walk-intro .hub-intro { margin: 0 0 12px; }
/* Route / single pages: 40px section spacing like everywhere else (the designer's 68px section padding removed). */
.route-v2 .route-description-copy { padding-top: 0 !important; }
.route-v2 .route-description-copy .walk-intro .hub-intro:last-child { margin-bottom: 0; }
.route-v2 .community, .route-v2 .reviews { padding-top: 40px !important; }
/* Intro badges (hub / route / single pages): centred on phones, left-aligned with the text on desktop. */
@media (min-width: 1000px) { .walk-intro .hub-intro-badges { justify-content: flex-start; } }
/* Legacy hub pages: the location's grid reference line under the route cards. */
.hub-grid-ref { margin: 18px 0 0 !important; }
/* Legacy hub pages: the app name in the bold intro line links to the county page. */
.hub-intro-app-link { color: var(--accent, #0877ad); text-decoration: none; }
.hub-intro-app-link:hover { text-decoration: underline; }
/* Group pages: items use the hub-page route cards. Text-only items (no walk yet) keep a single column. */
.collection-page .hub-routes.collection-list { padding-top: 0 !important; margin: 4px 0 40px; }
.collection-page .hub-route-card.is-text .hub-route-body { display: block; padding: 24px 32px 24px 24px !important; }
.collection-page .hub-route-card.is-text .hub-route-text { margin-top: 14px; }
.collection-page .hub-route-card.is-text .hub-route-link { margin-top: 18px; }
/* Group page card showing the walk photo instead of the route map */
.hub-route-image.is-photo .hub-route-photo { position: absolute; inset: 0; display: block; }
.hub-route-image.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Group pages: the card text is never clamped (the card grows instead). When the text column makes the card
   taller than the flush square map, JS adds .is-taller and the map's bottom-right corner is rounded. */
.collection-page .hub-route-excerpt { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
@media (min-width: 1000px) {
  .walk-legacy1 .hub-route-card.is-taller .hub-route-image,
  .walk-legacy1 .hub-route-card.is-taller .hub-route-image img,
  .walk-legacy1 .hub-route-card.is-taller .hub-route-image .route-map-trigger { border-bottom-right-radius: 18px !important; }
}
/* Group card text: each line break in the admin text is a paragraph */
.collection-page .hub-route-text .hub-route-excerpt + .hub-route-excerpt { margin-top: 12px !important; }
/* Group cards: text clamps to 4 lines with a Read more / Show less toggle (collapsed by default). */
.collection-page .hub-route-body .read-more { display: block !important; margin: 6px 0 0; }
.collection-page .hub-route-body .read-more[hidden] { display: none !important; }
.collection-page .hub-route-body .read-more + .hub-route-link { margin-top: 14px; }
.collection-page .hub-route-body .read-more { justify-self: start; width: auto; text-align: left; }
/* Group cards on phones/tablets: full text, no Read more (the clamp + toggle are desktop only). */
@media (max-width: 999px) {
  .collection-page .route-text.is-clamped { max-height: none !important; overflow: visible !important; }
  .collection-page .route-text.is-clamped::after { display: none; }
  .collection-page .hub-route-body .read-more { display: none !important; }
}
/* Hero photo (hub, route, single and group pages): always a 4:3 landscape, cropped to the centre like the app.
   Stops a portrait photo running tall (Woodchester Park) or a panorama going short and thin. */
.legacy-hero, .walk-legacy1 .legacy-hero, .collection-page .legacy-hero { aspect-ratio: 4 / 3 !important; height: auto; max-height: none; }
.legacy-hero img, .walk-legacy1 .legacy-hero img, .collection-page .legacy-hero img { width: 100%; height: 100% !important; aspect-ratio: auto; object-fit: cover !important; object-position: center; }
/* Photo credit pill on group-card photos (same look as the hero caption) */
.hub-route-image.is-photo .photo-credit { position: absolute; left: 12px; bottom: 12px; z-index: 2; border-radius: 999px; padding: 6px 11px; background: rgba(20, 46, 37, 0.82); color: #fff; font-size: 11px; line-height: 1.4; text-decoration: none; backdrop-filter: blur(8px); }
.hub-route-image.is-photo a.photo-credit:hover { filter: brightness(1.15); }
/* Hub pages (Legacy / Standard - Multi) get the same desktop-only 4-line clamp + Read more as group pages. */
.walk-legacy1 .hub-route-excerpt { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
.walk-legacy1 .hub-route-body .read-more { display: block !important; margin: 6px 0 0; justify-self: start; width: auto; text-align: left; }
.walk-legacy1 .hub-route-body .read-more[hidden] { display: none !important; }
.walk-legacy1 .hub-route-body .read-more + .hub-route-link { margin-top: 14px; }
@media (max-width: 999px) {
  .walk-legacy1 .route-text.is-clamped { max-height: none !important; overflow: visible !important; }
  .walk-legacy1 .route-text.is-clamped::after { display: none; }
  .walk-legacy1 .hub-route-body .read-more { display: none !important; }
}
/* Hub cards: 5 lines before the fade, and a shorter fade so the last visible line stays readable */
.walk-legacy1 .hub-route-text.is-clamped::after { height: 1.5em; }
/* Legacy - No Detail: a single hairline where the distance / time / type bar would be */
.hub-route-rule { border: 0; border-top: 1px solid var(--line); margin: 12px 0 0; height: 0; }
.hub-route-rule + .hub-route-text { margin-top: 14px; }
/* Hub card text: each line break in the description is a paragraph (same as group cards) */
.walk-legacy1 .hub-route-text .hub-route-excerpt + .hub-route-excerpt { margin-top: 12px !important; }
/* Blog sections (web_page_block) under the intro: text + optional photo. Phones: photo above the text. */
.page-blocks { display: grid; gap: 28px; margin: 4px 0 32px; }
.page-block { display: grid; gap: 18px; }
.page-block-text h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.page-block-text .hub-intro { color: #405560; font-size: 16px; line-height: 1.7; margin: 0 0 12px; }
.page-block-text .hub-intro:last-child { margin-bottom: 0; }
.page-block-image { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; line-height: 0; }
.page-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 999px) { .page-block.has-image .page-block-image { order: -1; } }
@media (min-width: 1000px) {
  .page-block-text .hub-intro { font-size: 17px; }
  .page-block.has-image { grid-template-columns: minmax(0, 1fr) minmax(320px, min(44%, 560px)); gap: 40px; align-items: start; }
  .page-block.has-image.image-left { grid-template-columns: minmax(320px, min(44%, 560px)) minmax(0, 1fr); }
  .page-block.has-image.image-left .page-block-image { order: -1; }
}
/* Blog sections: a hairline + breathing space between the summary block and the first section (only when there are sections) */
.page-blocks { margin-top: 8px; padding-top: 32px; border-top: 1px solid var(--line); }
/* Blog section text spans the full width when there is no photo (the base .hub-intro has an 850px cap) */
.page-block-text .hub-intro, .page-block-text h2 { max-width: none; }
/* Blog section photo credit pill (same as the hero caption) */
.page-block-image { position: relative; }
.page-block-image figcaption { position: absolute; left: 12px; bottom: 12px; top: auto; margin: 0; line-height: 1.4; }
.page-block-image figcaption:has(.credit-pill) { padding: 0; }
.page-block-image .credit-pill { display: block; padding: 6px 12px; color: inherit; text-decoration: none; border-radius: inherit; }
.page-block-image figcaption:has(.credit-pill):hover { filter: brightness(1.15); }
/* Photo gallery (web_page_gallery): square tiles, 4 across on desktop, 2 on phones; click = lightbox */
.page-gallery { margin: 8px 0 34px; }
.page-blocks + .page-gallery { margin-top: 0; }
.page-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .page-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.page-gallery-item { display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.page-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.page-gallery-item:hover img { transform: scale(1.04); }
.page-gallery-item:focus-visible { outline: 3px solid rgba(8,119,173,.5); outline-offset: 2px; }
.gallery-dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.gallery-dialog::backdrop { background: rgba(10, 22, 30, .9); }
.gallery-dialog[open] { display: grid; place-items: center; }
.gallery-full { max-width: min(92vw, 1200px); max-height: 86vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.gallery-close, .gallery-nav { position: fixed; border: 0; border-radius: 999px; width: 46px; height: 46px; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.gallery-close:hover, .gallery-nav:hover { background: rgba(255,255,255,.28); }
.gallery-close { top: 16px; right: 16px; }
.gallery-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.gallery-next { right: 14px; top: 50%; transform: translateY(-50%); }
.gallery-count { position: fixed; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; }
/* Intro block (main text + main photo). The photo now comes FIRST in the HTML:
   - phones/tablets: photo above the text (natural order);
   - desktop: the photo floats right and the text wraps it, so copy longer than the photo carries on full width underneath. */
@media (min-width: 1000px) {
  .legacy-intro-grid, .walk-legacy1 .legacy-intro-grid, .collection-page .legacy-intro-grid, .collection-page .legacy-intro-grid.has-hero { display: block !important; }
  .legacy-intro-grid::after { content: ""; display: block; clear: both; }
  .legacy-intro-grid > .legacy-hero { float: right; width: min(48%, 640px); min-width: 320px; margin: 0 0 24px 40px; }
  .legacy-intro-grid .walk-intro, .walk-legacy1 .legacy-intro-grid .walk-intro { max-width: none !important; margin-top: 0; }
  .legacy-intro-grid .walk-intro .hub-intro { max-width: none; }
  .legacy-intro-grid .walk-intro .badges-wrap { width: 330px; max-width: 100%; } /* a full-width flex box would drop below the floated photo */
}
/* Gallery now sits under the blue route boxes */
.hub-routes + .page-gallery, .hub-grid-ref + .page-gallery { margin-top: 28px; }
/* Inline formatting in editor text (lw_rich): links, bold, <big> */
.text-link { color: var(--accent, #0877ad); text-decoration: underline; text-underline-offset: 2px; }
.text-link:hover { text-decoration-thickness: 2px; }
.hub-intro strong, .hub-route-excerpt strong, .route-text strong, .page-block-text strong { font-weight: 750; color: inherit; }
.text-big { font-size: 1.3em; line-height: 1.3; }
/* Map pins: the white dot is sized and centred as a share of the pin, so it grows with the pin when selected
   (it used to be fixed pixels: 6px -> 8px while the pin went 24px -> 34px, and sat off-centre). */
.walk-pin:after, .walk-pin.selected:after { left: 0; top: 0; right: 0; bottom: 0; margin: auto; width: 40%; height: 40%; }
/* Gallery heading: the standard kicker + section title */
.gallery-heading { margin: 0 0 16px; }
.gallery-heading h2 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; }

/* ---------- Standard - Multi: per-route "Ratings, reviews and pubs" panel - a white card under each route box (a collapsed <details>) */
.hub-route-more { margin: -6px 0 6px; border: 1px solid var(--line, #e3e8ee); border-radius: 18px; background: #fff; }
.hub-route-more > summary, .hub-route-more-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 22px; color: var(--ink, #1b2733); font-weight: 600; }
.hub-route-more > summary::-webkit-details-marker { display: none; }
.hub-route-more-title { font-weight: 700; white-space: nowrap; }
.hub-route-more-title::after { content: ''; display: inline-block; width: 1px; height: 1em; background: var(--line, #d5dde5); margin: 0 6px 0 14px; vertical-align: -0.15em; }
.hub-route-more-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.hub-route-more-label .stars { font-size: 0.95em; }
.hub-route-more-meta { color: var(--muted, #5c6b7a); font-weight: 400; font-size: 0.92em; }
.hub-route-more-chevron { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex: none; }
.hub-route-more[open] > summary .hub-route-more-chevron { transform: rotate(-135deg); }
.hub-route-more[open] > summary { border-bottom: 1px solid var(--line, #e3e8ee); }
.hub-route-more-body { padding: 18px 22px 22px; }
.hub-route-more-body .community, .hub-route-more-body .reviews { margin: 0; padding: 0; }
.hub-route-more-body .community + .reviews, .hub-route-more-body .reviews + .refreshments, .hub-route-more-body .community + .refreshments { margin-top: 28px; }
.hub-route-more-body .section-heading { margin: 0 0 14px; }
.hub-route-more-body .section-heading h4 { margin: 0; font-size: 1.15rem; }
.hub-route-more-body .community-grid, .hub-route-more-body .reviews-grid { gap: 12px; }
.hub-route-more-body .section-note { margin: 12px 0 0; }
@media (min-width: 1000px) { .hub-route-more > summary, .hub-route-more-summary { padding: 18px 28px; } .hub-route-more-body { padding: 20px 28px 26px; } }
@media (max-width: 619px) { .hub-route-more > summary, .hub-route-more-summary { flex-wrap: wrap; } .hub-route-more-title { flex-basis: calc(100% - 30px); white-space: normal; } .hub-route-more-title::after { display: none; } .hub-route-more-meta { flex-basis: 100%; } }
.hub-route-more.is-empty .hub-route-more-summary { cursor: default; }
.hub-route-more.is-empty .hub-route-more-label { color: var(--muted, #5c6b7a); }
.hub-route-more .stars .star.empty { color: #cfd6de; }
.hub-route-more-meta .hub-intro-app-link { font-weight: 600; }

/* ---------- Print map button hidden site-wide (route/walk/collection pages) — Paul, 2026-09-23 */
.print-map-button { display: none !important; }

/* ---------- Header simplified to a single blue "Home" button (nav menu removed) — Paul, 2026-09-23 */
.header-inner .home-button {
  margin-left: auto;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--blue, #0877ad);
  color: #fff;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.header-inner .home-button:hover { background: var(--dark, #075b86); }

/* ---------- static text pages (terms / privacy) */
.static-page { max-width: 820px; }
.static-page h2 { margin: 34px 0 10px; font-size: 1.5rem; }
.static-page h3 { margin: 26px 0 8px; font-size: 1.15rem; }
.static-page p, .static-page li { line-height: 1.65; }
.static-page ul, .static-page ol { padding-left: 22px; }
