:root {
  --blue: #0877ad;
  --dark: #075b86;
  --ink: #102d3d;
  --muted: #607580;
  --soft: #e7f1f6;
  --line: #d6e4eb;
  --gold: #efa31b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
.shell {
  width: min(1360px, calc(100% - 36px));
  margin: auto;
}
.site-header {
  background: #fff;
}
.header-inner {
  min-height: 74px;
  max-width: 1440px;
  margin: auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand img {
  display: block;
  width: 112px;
  height: 48px;
  object-fit: contain;
}
.nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 650;
}
.nav .app {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}
.menu {
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
  width: 44px;
  height: 44px;
  font-size: 21px;
}
.breadcrumb {
  padding-top: 18px;
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
}
.button:hover {
  background: var(--dark);
}
/* homepage */
.hero {
  position: relative;
  min-height: calc(100vh - 94px);
  margin: 12px 14px 14px;
  overflow: hidden;
  border-radius: 24px;
  background: #315d6c;
  display: flex;
  align-items: center;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 32, 44, 0.84),
    rgba(8, 32, 44, 0.58) 52%,
    rgba(8, 32, 44, 0.2)
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(740px, 100%);
  padding: 60px 22px 80px;
  color: #fff;
}
.hero .eyebrow {
  color: #fff;
}
.hero h1 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(2.5rem, 9vw, 5.3rem);
  line-height: 0.96;
}
.hero-lead {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.55;
}
.place-form {
  margin-top: 30px;
}
.place-box {
  min-height: 62px;
  padding: 7px 7px 7px 18px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}
.place-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 8px;
  color: var(--ink);
  font-size: 15px;
}
.place-box button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.place-status {
  margin: 12px 0 0;
  color: #fff;
  font-size: 12px;
}
.place-results {
  margin-top: 8px;
  padding: 7px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}
.place-results:empty {
  display: none;
}
.place-result {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  text-align: left;
  cursor: pointer;
}
.place-result:hover {
  background: var(--soft);
}
.place-result strong,
.place-result small {
  display: block;
}
.place-result small {
  margin-top: 3px;
  color: var(--muted);
}
.place-result > span:last-child {
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}
.use-location {
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
/* map */
.map-title {
  padding: 28px 0 23px;
}
.map-title p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.map-wrap {
  position: relative;
  height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  border-radius: 24px;
  background: #dceaf1;
}
.map {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.map-tools {
  position: absolute;
  z-index: 500;
  top: 14px;
  left: 58px;
  display: flex;
  gap: 8px;
}
.map-tools button {
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  box-shadow: 0 5px 18px rgba(19, 45, 61, 0.15);
}
.walk-card {
  position: absolute;
  z-index: 500;
  left: 13px;
  right: 13px;
  bottom: 13px;
  padding: 19px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 38px rgba(19, 45, 61, 0.2);
}
.card-top {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rating {
  color: #d88f0a;
}
.walk-card h2 {
  margin: 8px 0 0;
  font-size: 1.45rem;
}
.walk-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.walk-card .button {
  width: 100%;
  margin-top: 15px;
  justify-content: space-between;
}
.searched-pin {
  background: #fff;
  border: 3px solid var(--blue);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  box-shadow: 0 2px 9px rgba(19, 45, 61, 0.4);
}
.walk-pin {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(19, 45, 61, 0.35);
}
.walk-pin:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 5px;
  top: 5px;
  border-radius: 50%;
  background: #fff;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(8, 119, 173, 0.28);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--blue);
  color: #fff;
}
.leaflet-control-zoom {
  border: 0 !important;
  border-radius: 11px !important;
  overflow: hidden;
}
.map-explainer {
  margin: 20px 0 60px;
  padding: 25px;
  border-radius: 20px;
  background: var(--soft);
  line-height: 1.7;
  color: #405560;
}
.map-explainer h2 {
  margin: 0 0 8px;
  color: var(--ink);
}
/* content pages */
.page-title {
  padding: 28px 0 25px;
}
.page-title > p:last-child {
  max-width: 850px;
  color: #405560;
  line-height: 1.7;
}
.media-grid {
  display: grid;
  gap: 13px;
}
.media-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--soft);
}
.media-grid figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo {
  height: 360px;
}
.map-photo {
  aspect-ratio: 1/1;
}
.facts {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  background: var(--soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.facts dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.facts dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 800;
}
.section {
  padding-top: 54px;
}
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}
.copy-card,
.community-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--soft);
  color: #405560;
  line-height: 1.7;
}
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rating-card {
  padding: 18px;
  border-radius: 17px;
  background: var(--soft);
}
.rating-card span {
  color: var(--muted);
  font-size: 11px;
}
.rating-card strong {
  display: block;
  margin-top: 9px;
  color: var(--blue);
  font-size: 17px;
}
.routes {
  display: grid;
  gap: 18px;
}
.route-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--soft);
}
.route-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.route-body {
  padding: 24px;
}
.route-body h3 {
  margin: 0;
  font-size: 1.6rem;
}
.route-body p {
  color: #405560;
  line-height: 1.65;
}
.route-facts {
  display: flex;
  gap: 22px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.route-facts strong {
  color: var(--ink);
}
.footer {
  margin-top: 70px;
  padding: 35px 18px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 12px;
}
@media (min-width: 600px) {
  .place-box {
    grid-template-columns: minmax(0, 1fr) 130px;
    border-radius: 999px;
  }
  .place-box button {
    border-radius: 999px;
  }
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ratings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .media-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
    align-items: stretch;
  }
  .hero-photo {
    height: auto;
  }
  .routes .route-card {
    display: grid;
    grid-template-columns: 320px 1fr;
  }
  .route-card img {
    height: 100%;
  }
  .walk-card {
    left: 22px;
    right: auto;
    bottom: 22px;
    width: 360px;
  }
  .map-explainer {
    padding: 32px;
  }
}
@media (min-width: 900px) {
  .header-inner {
    padding: 10px 40px;
  }
  .nav {
    display: flex;
  }
  .menu {
    display: none;
  }
  .shell {
    width: min(1360px, calc(100% - 80px));
  }
  .hero {
    margin: 12px 30px 30px;
    border-radius: 30px;
  }
  .hero-content {
    padding-left: clamp(70px, 8vw, 130px);
  }
  .media-grid {
    gap: 18px;
  }
  .facts {
    padding: 28px 34px;
  }
}
.hero:after {
  background: linear-gradient(
    90deg,
    rgba(8, 32, 44, 0.62),
    rgba(8, 32, 44, 0.4) 52%,
    rgba(8, 32, 44, 0.1)
  );
}
.walk-marker-wrap {
  background: transparent;
  border: 0;
}
.walk-pin {
  position: relative;
  display: block;
  transition: transform 0.2s ease;
}
.walk-pin.selected {
  width: 34px;
  height: 34px;
  border-width: 6px;
}
.walk-pin.selected:after {
  left: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
}
.walk-card {
  display: block;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + 32px));
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease,
    transform 0.32s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.walk-card.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.walk-card-media {
  display: none;
  height: 135px;
  min-height: 0;
  overflow: hidden;
  border: 5px solid #fff;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 4px;
  background: #fff;
}
.walk-card-media.visible {
  display: grid;
}
.walk-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.walk-card-copy {
  position: relative;
  padding: 19px;
  background: #fff;
}

/* Final Birdlip and Symonds Yat page styles */
:root {
  --ink: #183329;
  --muted: #65736d;
  --green: #26684d;
  --green-dark: #174c37;
  --lime: #bed83d;
  --line: #dfe6e2;
  --soft: #f4f7f5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.header-inner {
  min-height: 74px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  width: 112px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.search {
  order: 3;
  width: 100%;
  height: 44px;
  border: 1px solid #cfd9d3;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 10px;
  background: var(--soft);
}
.search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(38, 104, 77, 0.12);
  background: #fff;
}
.search svg {
  width: 19px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.search input::placeholder {
  color: #75827c;
}
.desktop-nav {
  display: none;
}
.menu-button {
  margin-left: auto;
  border: 0;
  background: var(--soft);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
}
.menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

@media (max-width: 999px) {
  .site-header .header-inner {
    flex-wrap: wrap;
  }
  .site-header .menu-button {
    display: grid;
    margin-left: auto;
    cursor: pointer;
  }
  .site-header .desktop-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    order: 4;
    flex-basis: 100%;
    margin: -16px 0 0;
    padding: 0 8px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: #f0f5f1;
    border-radius: 14px;
    transition:
      max-height 240ms ease,
      padding 240ms ease,
      margin 240ms ease,
      opacity 180ms ease,
      visibility 240ms;
  }
  .site-header .desktop-nav.is-open {
    max-height: var(--mobile-nav-height, 280px);
    margin-top: 0;
    padding: 8px;
    visibility: visible;
    opacity: 1;
  }
  .site-header .desktop-nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 650;
  }
  .site-header .desktop-nav a:hover {
    background: var(--soft);
  }
  .site-header .desktop-nav .app-link {
    background: var(--green);
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .desktop-nav {
    transition: none;
  }
}

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 18px 50px;
}
.breadcrumb {
  display: flex;
  gap: 7px;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  padding: 17px 0 8px;
  color: #748079;
  font-size: 12px;
  scrollbar-width: none;
}
.breadcrumb::-webkit-scrollbar {
  display: none;
}
.breadcrumb a:hover {
  color: var(--green);
}
.breadcrumb span:last-child {
  color: #43544c;
}
.title-block {
  padding: 20px 0 23px;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
h1 {
  max-width: 1050px;
  margin: 0;
  color: #142e25;
  font-size: clamp(2rem, 7.8vw, 4.35rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
  font-weight: 760;
}
.walk-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stars {
  display: flex;
  gap: 1px;
  color: #f0a51d;
  font-size: 18px;
  line-height: 1;
}
.star.partial {
  background: linear-gradient(90deg, #f0a51d 60%, #cbd2ce 60%);
  color: transparent;
  background-clip: text;
}
.rating strong {
  font-size: 15px;
}
.rating-count {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}
.meta-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.difficulty {
  display: flex;
  align-items: center;
  gap: 9px;
}
.difficulty-icon {
  height: 25px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.difficulty-icon i {
  display: block;
  width: 5px;
  background: var(--green);
  border-radius: 3px;
}
.difficulty-icon i:nth-child(1) {
  height: 9px;
}
.difficulty-icon i:nth-child(2) {
  height: 16px;
}
.difficulty-icon i:nth-child(3) {
  height: 24px;
  background: var(--lime);
}
.difficulty span:last-child {
  display: grid;
  gap: 1px;
}
.difficulty small {
  color: var(--muted);
  font-size: 11px;
}
.difficulty strong {
  font-size: 14px;
}
.media-grid {
  display: grid;
  gap: 13px;
}
.media-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft);
}
.media-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image,
.route-map {
  aspect-ratio: 4/3;
}
.hero-image figcaption {
  position: absolute;
  left: 13px;
  bottom: 13px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(20, 46, 37, 0.82);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.route-map {
  border: 1px solid var(--line);
}
.route-map figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  box-shadow: 0 5px 20px rgba(20, 46, 37, 0.12);
  backdrop-filter: blur(9px);
}
.route-map figcaption span {
  color: var(--muted);
}
@media (min-width: 620px) {
  .header-inner {
    flex-wrap: nowrap;
  }
  .search {
    order: initial;
    max-width: 330px;
    margin-left: auto;
  }
  .menu-button {
    margin-left: 0;
  }
  .page-shell {
    padding-left: 28px;
    padding-right: 28px;
  }
  .media-grid {
    grid-template-columns: minmax(0, 1.72fr) minmax(250px, 1fr);
  }
  .hero-image,
  .route-map {
    aspect-ratio: auto;
    height: clamp(350px, 50vw, 610px);
  }
  .title-block {
    padding-top: 28px;
  }
}
@media (min-width: 1000px) {
  .header-inner {
    padding: 12px 36px;
    gap: 28px;
  }
  .brand img {
    width: 136px;
    height: 55px;
  }
  .search {
    max-width: 350px;
    margin-left: 12px;
  }
  .desktop-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 25px;
    color: #354a40;
    font-size: 14px;
    font-weight: 650;
  }
  .desktop-nav a:hover {
    color: var(--green);
  }
  .desktop-nav .app-link {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
  }
  .desktop-nav .app-link:hover {
    background: var(--green-dark);
  }
  .menu-button {
    display: none;
  }
  .page-shell {
    padding-left: 40px;
    padding-right: 40px;
  }
  .breadcrumb {
    padding-top: 22px;
    font-size: 13px;
  }
  .title-block {
    padding: 36px 0 31px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .walk-meta {
    margin-top: 24px;
  }
  .media-grid {
    gap: 18px;
    grid-template-columns: minmax(0, 1.9fr) minmax(315px, 1fr);
  }
  .media-grid figure {
    border-radius: 24px;
  }
}
@media (min-width: 1400px) {
  .media-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Refined walk page proportions and information sections */
.site-header {
  border-bottom: 0;
}
.search {
  border: 0;
}
.search:focus-within {
  border-color: transparent;
}
h1 {
  font-size: clamp(1.85rem, 6.5vw, 3.55rem);
}
.walk-information,
.community {
  padding: 52px 0 0;
}
.section-heading {
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.facts-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.facts-grid > div {
  min-height: 108px;
  padding: 19px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-grid dt,
.card-label,
.rating-card > span,
.condition-cards span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.facts-grid dd {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}
.facts-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.yes-value {
  color: var(--green);
}
.community-heading {
  display: grid;
  gap: 8px;
}
.community-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.community-grid {
  display: grid;
  gap: 12px;
}
.community-grid article {
  border-radius: 18px;
}
.overall-card {
  min-height: 190px;
  padding: 22px;
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.overall-card > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
}
.overall-card .card-label {
  color: rgba(255, 255, 255, 0.72);
}
.overall-card strong {
  grid-row: 1/3;
  grid-column: 2;
  font-size: 52px;
  line-height: 1;
}
.overall-card .stars {
  font-size: 17px;
}
.overall-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.rating-card {
  padding: 19px;
  background: var(--soft);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
}
.rating-card strong {
  font-size: 20px;
}
.rating-card strong small {
  color: var(--muted);
  font-size: 11px;
}
.score-track {
  grid-column: 1/-1;
  height: 6px;
  margin: 13px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4df;
}
.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.score-track.low i {
  background: #d4a94d;
}
.rating-card p {
  grid-column: 1/-1;
  margin: 0;
  color: #526159;
  font-size: 12px;
}
.condition-cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.condition-cards article {
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  gap: 7px;
}
.condition-cards strong {
  font-size: 14px;
  line-height: 1.35;
}
@media (min-width: 620px) {
  .hero-image,
  .route-map {
    height: auto;
  }
  .hero-image {
    aspect-ratio: auto;
    height: min(34vw, 460px);
  }
  .route-map {
    aspect-ratio: 1/1;
    align-self: start;
  }
  .facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overall-card {
    grid-row: span 2;
  }
  .condition-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .community-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .community-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .overall-card {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 100%;
  }
  .walk-information,
  .community {
    padding-top: 68px;
  }
}

/* Blue Local Walks palette and compact facts strip */
:root {
  --ink: #132d3d;
  --muted: #63727b;
  --green: #0877ad;
  --green-dark: #075b86;
  --lime: #52a9d3;
  --line: #dce5ea;
  --soft: #f2f7fa;
}
.search:focus-within {
  box-shadow: 0 0 0 3px rgba(8, 119, 173, 0.12);
}
.hero-image figcaption {
  background: rgba(7, 91, 134, 0.84);
}
.score-track.low i {
  background: #7bbad8;
}
.walk-information {
  padding-top: 38px;
}
.walk-information .section-heading {
  margin-bottom: 12px;
}
.walk-information .section-heading .eyebrow {
  display: none;
}
.walk-information .section-heading h2 {
  font-size: 1.35rem;
}
.facts-grid {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  gap: 0;
}
.facts-grid > div {
  min-height: 76px;
  padding: 13px 12px;
  border: 0;
  border-right: 1px solid var(--line);
}
.facts-grid > div:nth-child(2n) {
  border-right: 0;
}
.facts-grid dt {
  font-size: 10px;
}
.facts-grid dd {
  margin: 5px 0 0;
  font-size: 14px;
}
.facts-grid .primary-fact {
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.facts-grid .primary-fact dd {
  order: 1;
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.facts-grid .primary-fact dd small {
  display: inline;
  color: inherit;
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0;
}
.facts-grid .primary-fact dt {
  order: 2;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.route-symbol {
  font-size: 2.8rem !important;
  line-height: 0.75 !important;
}
.overall-card {
  min-height: 145px;
  padding: 18px;
}
.overall-card strong {
  font-size: 42px;
}
.overall-card p {
  font-size: 14px;
}
@media (min-width: 620px) {
  .facts-grid > div {
    border-right: 1px solid var(--line);
  }
  .facts-grid > div:nth-child(4n) {
    border-right: 0;
  }
  .facts-grid .primary-fact {
    min-height: 120px;
  }
  .community-grid .overall-card {
    grid-row: auto;
  }
  .overall-card {
    min-height: 145px;
  }
}
@media (min-width: 1000px) {
  .community-grid .overall-card {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 145px;
  }
  .walk-information {
    padding-top: 44px;
  }
  .facts-grid .primary-fact {
    min-height: 125px;
  }
  .facts-grid > div {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Consistent information hierarchy and three-by-four community grid */
.facts-grid .primary-fact dt {
  order: 1;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.facts-grid .primary-fact dd {
  order: 2;
}
.route-value {
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-symbol {
  font-size: 1.35em !important;
  line-height: 0.7 !important;
}
.rating-card {
  min-height: 122px;
  padding: 15px 17px;
}
.score-track {
  margin: 9px 0 7px;
  height: 5px;
}
.overall-card {
  min-height: 122px;
  padding: 15px 17px;
}
.overall-card strong {
  font-size: 38px;
}
.overall-card p {
  font-size: 13px;
}
.info-card {
  min-height: 122px;
  padding: 15px 17px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.info-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.info-card strong {
  max-width: 210px;
  font-size: 15px;
  line-height: 1.35;
}
.condition-cards {
  display: none;
}
@media (min-width: 620px) {
  .media-grid {
    align-items: stretch;
  }
  .hero-image {
    height: auto;
    align-self: stretch;
  }
  .route-map {
    align-self: stretch;
  }
  .rating-card,
  .overall-card,
  .info-card {
    min-height: 122px;
  }
}
@media (min-width: 1000px) {
  .community-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .community-grid .overall-card {
    min-height: 122px;
  }
  .hero-image {
    height: auto;
  }
}

/* Shorter media row, normalised facts and route description */
.facts-grid dt,
.facts-grid .primary-fact dt {
  order: initial;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.facts-grid dd,
.facts-grid .primary-fact dd {
  order: initial;
  margin: 0;
}
.facts-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.facts-grid > div > small {
  margin-top: 5px;
}
.walk-description {
  padding: 52px 0 0;
  display: grid;
  gap: 20px;
}
.description-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.description-copy {
  padding: 23px;
  border-radius: 18px;
  background: var(--soft);
}
.description-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.description-title-row h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: -0.02em;
}
.description-title-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}
.description-copy p {
  max-width: 900px;
  margin: 15px 0 0;
  color: #405560;
  font-size: 15px;
  line-height: 1.75;
}
@media (min-width: 620px) {
  .media-grid {
    grid-template-columns: minmax(0, 2.25fr) minmax(225px, 1fr);
  }
  .walk-description {
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.7fr);
    align-items: start;
    padding-top: 62px;
  }
}
@media (min-width: 1000px) {
  .media-grid {
    grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  }
  .walk-description {
    padding-top: 72px;
  }
  .description-copy {
    padding: 28px 30px;
  }
}
@media (min-width: 1400px) {
  .media-grid {
    grid-template-columns: 2.5fr 1fr;
  }
}

/* Fixed compact media height: map width and height remain equal */
@media (min-width: 620px) {
  .media-grid {
    grid-template-columns: minmax(0, 1fr) clamp(225px, 26vw, 340px);
    align-items: start;
  }
  .hero-image,
  .route-map {
    width: 100%;
    height: clamp(225px, 26vw, 340px);
    aspect-ratio: auto;
    align-self: start;
  }
}
@media (min-width: 1000px) {
  .media-grid {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 340px);
  }
  .hero-image,
  .route-map {
    height: clamp(280px, 24vw, 340px);
  }
}

/* Slightly taller, borderless media panels */
.media-grid figure,
.route-map {
  border: 0;
  outline: 0;
  box-shadow: none;
}
@media (min-width: 620px) {
  .media-grid {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 28vw, 380px);
  }
  .hero-image,
  .route-map {
    height: clamp(240px, 28vw, 380px);
  }
}
@media (min-width: 1000px) {
  .media-grid {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 380px);
  }
  .hero-image,
  .route-map {
    height: clamp(300px, 26vw, 380px);
  }
}

/* Unified section headings and description below the page title */
.walk-description {
  padding: 8px 0 34px;
  display: block;
}
.walk-description .section-heading,
.walk-information .section-heading,
.community .section-heading {
  margin-bottom: 14px;
}
.walk-description .section-heading h2,
.walk-information .section-heading h2,
.community .section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 750;
}
.description-copy {
  padding: 22px 23px;
}
.community-heading {
  align-items: start;
}
.community-heading .eyebrow {
  margin-bottom: 6px;
}
@media (min-width: 620px) {
  .walk-description {
    padding: 8px 0 38px;
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.7fr);
    gap: 20px;
    align-items: start;
  }
  .walk-description .section-heading {
    margin: 0;
  }
}
@media (min-width: 1000px) {
  .walk-description {
    padding: 10px 0 44px;
  }
}

/* Walk description returned below facts with card beneath heading */
.walk-description {
  padding: 52px 0 0;
  display: block;
}
.walk-description .section-heading {
  margin: 0 0 14px;
}
.walk-description .description-copy {
  width: 100%;
}
@media (min-width: 620px) {
  .walk-description {
    padding: 62px 0 0;
    display: block;
  }
  .walk-description .section-heading {
    margin-bottom: 14px;
  }
}
@media (min-width: 1000px) {
  .walk-description {
    padding: 68px 0 0;
  }
}

/* Tighter vertical rhythm for walk facts */
.walk-information {
  padding-top: 28px;
}
.walk-information .section-heading {
  margin-bottom: 8px;
}
.facts-grid > div {
  min-height: 60px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.facts-grid .primary-fact {
  height: 88px;
  min-height: 88px;
}
.facts-grid dt,
.facts-grid .primary-fact dt {
  margin-bottom: 6px;
}
@media (min-width: 620px) {
  .walk-information {
    padding-top: 32px;
  }
  .facts-grid .primary-fact {
    height: 94px;
    min-height: 94px;
  }
}
@media (min-width: 1000px) {
  .walk-information {
    padding-top: 34px;
  }
  .facts-grid .primary-fact {
    height: 98px;
    min-height: 98px;
  }
}
@media (min-width: 620px) {
  .facts-grid > div:nth-child(2n) {
    border-right: 1px solid var(--line);
  }
  .facts-grid > div:nth-child(4n) {
    border-right: 0;
  }
}

/* User reviews and Gloucestershire Walks app */
.reviews,
.app-section {
  padding-top: 52px;
}
.reviews-heading {
  display: grid;
  gap: 7px;
}
.reviews-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.reviews-grid {
  display: grid;
  gap: 12px;
}
.review-card {
  min-height: 150px;
  padding: 18px;
  border-radius: 18px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-stars {
  color: #f0a51d;
  font-size: 16px;
  letter-spacing: 1px;
}
.review-top time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.review-card p {
  margin: 17px 0 0;
  color: #405560;
  font-size: 14px;
  line-height: 1.65;
}
.app-panel {
  overflow: hidden;
  border-radius: 22px;
  background: var(--green);
  color: #fff;
  display: grid;
}
.app-copy,
.app-features {
  padding: 25px;
}
.app-copy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.app-copy h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.app-copy > p {
  max-width: 720px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
}
.store-badges {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.store-badges a {
  display: block;
  line-height: 0;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}
.store-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.store-badges a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 8px;
}
.store-badges img {
  width: auto;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}
.app-visual {
  margin: 0;
  padding: 18px;
  background: transparent;
  display: grid;
  place-items: center;
}
.app-visual img {
  width: 100%;
  max-width: 320px;
  max-height: 560px;
  object-fit: contain;
}
.app-features {
  background: rgba(0, 0, 0, 0.09);
}
.app-pointer {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 25px;
  transform: rotate(-35deg);
}
.app-features h3 {
  margin: 17px 0 12px;
  font-size: 1.2rem;
}
.app-features ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.app-features li {
  position: relative;
  padding-left: 25px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.4;
}
.app-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: 900;
}
@media (min-width: 620px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.75fr);
  }
  .app-copy,
  .app-features {
    padding: 34px;
  }
  .app-features {
    grid-column: 1/-1;
  }
  .app-visual {
    padding: 22px;
  }
}
@media (min-width: 1000px) {
  .reviews,
  .app-section {
    padding-top: 68px;
  }
  .reviews-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .review-card:first-child {
    grid-column: span 2;
  }
  .app-panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.72fr) minmax(280px, 0.8fr);
  }
  .app-copy,
  .app-features {
    padding: 42px;
  }
  .app-features {
    grid-column: auto;
  }
  .app-visual {
    padding: 24px;
  }
}

/* Expandable route map */
.route-map-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: block;
  cursor: zoom-in;
  text-align: left;
}
.route-map-trigger:focus-visible {
  outline: 4px solid rgba(8, 119, 173, 0.45);
  outline-offset: -4px;
}
.expand-map-icon {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 18px rgba(19, 45, 61, 0.2);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.expand-map-icon svg {
  width: 18px;
}
.route-map-trigger:hover .expand-map-icon {
  transform: scale(1.06);
  background: #fff;
}
.map-dialog {
  width: min(1180px, calc(100vw - 24px));
  max-width: 1180px !important;
  max-height: 92vh;
  padding: 0 !important;
  gap: 0 !important;
  overflow: auto;
  border: 0 !important;
  border-radius: 20px !important;
  background: #fff !important;
  grid-template-columns: 1fr !important;
}
.expanded-map-wrap {
  min-height: 0;
  background: var(--soft);
  display: grid;
  place-items: center;
}
.expanded-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64vh;
  object-fit: contain;
}
.map-dialog-panel {
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.map-dialog-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.map-dialog-panel [data-slot="dialog-description"] {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.map-store-badges {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}
.map-store-badges a {
  display: block;
  min-width: 0;
  line-height: 0;
}
.map-store-badges img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 43px;
  object-fit: contain;
  object-position: left center;
}
.print-map-button {
  margin-top: 22px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  cursor: pointer;
}
.print-map-button:hover {
  background: var(--green-dark);
}
.print-map-button:focus-visible {
  outline: 3px solid rgba(8, 119, 173, 0.32);
  outline-offset: 3px;
}
.print-map-button svg {
  width: 18px;
}
.print-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
@media (min-width: 760px) {
  .map-dialog {
    grid-template-columns: minmax(0, 1fr) 340px !important;
    overflow: hidden;
  }
  .expanded-map-wrap {
    min-height: 600px;
  }
  .expanded-map {
    height: 100%;
    max-height: 88vh;
  }
  .map-dialog-panel {
    padding: 36px 30px;
    justify-content: center;
  }
}
@media print {
  body > * {
    visibility: hidden !important;
  }
  [data-slot="dialog-content"],
  [data-slot="dialog-content"] * {
    visibility: visible !important;
  }
  [data-slot="dialog-overlay"],
  .map-dialog-panel,
  [data-slot="dialog-close"] {
    display: none !important;
  }
  .map-dialog {
    position: absolute !important;
    inset: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    box-shadow: none !important;
  }
  .expanded-map-wrap {
    min-height: 0 !important;
    background: #fff !important;
  }
  .expanded-map {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* Final walk fact refinements */
.facts-grid .yes-value {
  color: var(--ink);
}
.facts-grid .route-symbol {
  width: 1.05em;
  height: 1.05em;
  font-size: inherit !important;
  line-height: 1 !important;
  stroke-width: 2.25;
  flex: 0 0 auto;
}

/* Trial: interpretation values centred in blue */
.info-card {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-content: stretch;
}
.info-card strong {
  max-width: none;
  align-self: center;
  padding: 4px 0;
  color: var(--green);
  text-align: left;
  font-size: 15px;
  font-weight: 750;
}

/* Horizontally scrolling nearby walks */
.nearby-walks {
  padding-top: 52px;
}
.nearby-heading {
  display: grid;
  gap: 7px;
}
.nearby-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.nearby-scroll {
  margin-right: -18px;
  padding: 0 18px 14px 0;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #bfd3dd transparent;
}
.nearby-card {
  flex: 0 0 min(82vw, 310px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  scroll-snap-align: start;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.nearby-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 30px rgba(19, 45, 61, 0.11);
}
.nearby-card a {
  height: 100%;
  display: block;
}
.nearby-image {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: var(--soft);
}
.nearby-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.nearby-card:hover .nearby-image img {
  transform: scale(1.025);
}
.nearby-image > span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(19, 45, 61, 0.12);
}
.nearby-card-copy {
  padding: 17px 17px 19px;
}
.nearby-card-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.nearby-rating {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nearby-rating > span {
  color: #f0a51d;
  font-size: 17px;
}
.nearby-rating strong {
  font-size: 14px;
}
.nearby-rating small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 11px;
}
.nearby-card a:focus-visible {
  outline: 4px solid rgba(8, 119, 173, 0.38);
  outline-offset: -4px;
}
@media (min-width: 620px) {
  .nearby-scroll {
    margin-right: -28px;
    padding-right: 28px;
  }
  .nearby-card {
    flex-basis: 300px;
  }
}
@media (min-width: 1000px) {
  .nearby-walks {
    padding-top: 68px;
  }
  .nearby-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .nearby-scroll {
    margin-right: -40px;
    padding-right: 40px;
  }
  .nearby-card {
    flex-basis: 320px;
  }
}

/* Consistent section-title typography, following User reviews / Nearby walks */
.walk-information .section-heading h2,
.walk-description .section-heading h2,
.community .section-heading h2,
.reviews .section-heading h2,
.nearby-walks .section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 750;
}

/* Multi-walk location hub */
.hub-page {
  padding-bottom: 70px;
}
.hub-title-block {
  padding: 20px 0 24px;
}
.hub-title-block h1 {
  max-width: 1100px;
}
.hub-intro {
  max-width: 850px;
  margin: 20px 0 0;
  color: #405560;
  font-size: 16px;
  line-height: 1.7;
}
.hub-summary {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hub-summary span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}
.hub-summary strong {
  color: var(--ink);
}
.hub-media {
  display: grid;
  gap: 13px;
}
.hub-media figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft);
}
.hub-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub-hero {
  aspect-ratio: 4/3;
}
.hub-hero figcaption {
  position: absolute;
  left: 13px;
  bottom: 13px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(7, 91, 134, 0.86);
  color: #fff;
  font-size: 11px;
}
.hub-summary-panel {
  padding: 20px;
  border-radius: 18px;
  background: var(--soft);
  overflow: hidden;
}
.hub-summary-panel .eyebrow {
  margin-bottom: 4px;
}
.hub-summary-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}
.hub-summary-panel dl {
  margin: 13px 0 0;
  display: grid;
}
.hub-summary-panel dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.hub-summary-panel dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.hub-summary-panel dd {
  margin: 5px 0 0;
  display: grid;
  gap: 2px;
}
.hub-summary-panel dd strong {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hub-summary-panel dd span {
  color: var(--muted);
  font-size: 10px;
}
.location-description,
.hub-routes,
.hub-seo-copy {
  padding-top: 52px;
}
.location-description .section-heading,
.hub-routes .section-heading,
.hub-seo-copy .section-heading {
  margin-bottom: 14px;
}
.location-description .section-heading h2,
.hub-routes .section-heading h2,
.hub-seo-copy .section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.location-description .description-copy p:first-child,
.hub-seo-copy .description-copy p:first-child {
  margin-top: 0;
}
.location-description .description-copy p:last-child,
.hub-seo-copy .description-copy p:last-child {
  margin-bottom: 0;
}
.hub-section-heading {
  display: grid;
  gap: 8px;
}
.hub-section-heading > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.hub-route-list {
  display: grid;
  gap: 18px;
}
.hub-route-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.hub-route-image {
  position: relative;
  min-height: 240px;
  background: var(--soft);
}
.hub-route-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: contain;
}
.hub-route-image > span {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hub-route-body {
  padding: 22px;
}
.hub-route-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
}
.hub-route-title h3 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.hub-route-number {
  color: #dbeaf1;
  font-size: 52px;
  font-weight: 800;
  line-height: 0.85;
}
.hub-route-facts {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hub-route-facts > div {
  padding: 14px 10px 14px 0;
}
.hub-route-facts dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.hub-route-facts dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.hub-route-facts dd svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.hub-route-description {
  margin: 19px 0 0;
  color: #405560;
  font-size: 14px;
  line-height: 1.7;
}
.hub-feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.hub-feature-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #526570;
  font-size: 12px;
}
.hub-feature-list svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}
.hub-route-link {
  margin-top: 21px;
  min-height: 47px;
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.hub-route-link:hover {
  background: var(--green-dark);
}
.hub-route-link svg {
  width: 17px;
}
.hub-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-radius: 0 15px 15px 0;
  background: #eaf4f8;
}
.hub-note strong {
  font-size: 13px;
}
.hub-note p {
  margin: 7px 0 0;
  color: #405560;
  font-size: 13px;
  line-height: 1.6;
}
.hub-app-panel {
  grid-template-columns: 1fr;
}
.hub-app-benefits {
  padding: 25px;
  background: rgba(0, 0, 0, 0.09);
}
.hub-app-benefits h3 {
  margin: 0 0 15px;
  font-size: 1.2rem;
}
.hub-app-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.hub-app-benefits li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.hub-app-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 900;
}
.hub-seo-copy {
  padding-bottom: 10px;
}
@media (min-width: 620px) {
  .hub-title-block {
    padding-top: 28px;
  }
  .hub-media {
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
    align-items: start;
  }
  .hub-hero,
  .hub-summary-panel {
    height: clamp(300px, 42vw, 460px);
  }
  .hub-hero {
    aspect-ratio: auto;
  }
  .hub-summary-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hub-route-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  }
  .hub-route-image,
  .hub-route-image img {
    min-height: 100%;
    height: 100%;
  }
  .hub-route-body {
    padding: 28px;
  }
  .hub-section-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .hub-app-panel {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  }
  .hub-app-benefits {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
@media (min-width: 1000px) {
  .hub-title-block {
    padding: 36px 0 31px;
  }
  .hub-intro {
    font-size: 17px;
  }
  .hub-media {
    gap: 18px;
    grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr);
  }
  .hub-media figure,
  .hub-summary-panel {
    border-radius: 24px;
  }
  .hub-hero,
  .hub-summary-panel {
    height: 390px;
  }
  .location-description,
  .hub-routes,
  .hub-seo-copy {
    padding-top: 68px;
  }
  .hub-route-card {
    grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.35fr);
  }
  .hub-route-body {
    padding: 34px 36px;
  }
  .hub-route-facts dd {
    font-size: 14px;
  }
  .hub-app-benefits {
    padding: 42px;
  }
}

/* Borderless, tinted route cards */
.hub-route-card {
  border: 0;
  background: var(--soft);
}
.hub-route-image {
  background: #e8f1f6;
}

/* Hub-specific surface and map treatment */
.location-description .description-copy {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.hub-route-image img {
  object-fit: cover;
}
.hub-page .nearby-walks {
  padding-bottom: 10px;
}
.hub-summary-panel dd strong {
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
}

/* Stronger light-blue tint for reliable contrast on older displays */
:root {
  --soft: #e7f1f6;
}

/* More horizontal route cards with smaller square maps */
@media (min-width: 620px) {
  .hub-route-card {
    grid-template-columns: clamp(220px, 30vw, 270px) minmax(0, 1fr);
    align-items: center;
  }
  .hub-route-image {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1/1;
    align-self: center;
  }
  .hub-route-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  .hub-route-body {
    padding: 24px 26px;
  }
  .hub-route-facts {
    margin-top: 14px;
  }
  .hub-route-facts > div {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .hub-route-description {
    margin-top: 14px;
    line-height: 1.55;
  }
  .hub-feature-list {
    margin-top: 12px;
  }
  .hub-route-link {
    margin-top: 15px;
    min-height: 44px;
  }
}
@media (min-width: 1000px) {
  .hub-route-card {
    grid-template-columns: clamp(260px, 23vw, 300px) minmax(0, 1fr);
  }
  .hub-route-body {
    padding: 24px 30px;
  }
  .hub-route-title h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  }
  .hub-route-number {
    font-size: 44px;
  }
}

/* Final route-card proportions and compact actions */
.hub-route-image {
  min-height: 0;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.hub-route-image img {
  min-height: 0;
  aspect-ratio: 1/1;
  object-fit: cover;
  transform: scale(1.07);
}
.hub-feature-list {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  column-gap: 22px;
  row-gap: 9px;
}
.hub-route-link {
  width: fit-content;
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 620px) {
  .hub-route-card {
    grid-template-columns: clamp(240px, 32vw, 290px) minmax(0, 1fr);
  }
}
@media (min-width: 1000px) {
  .hub-route-card {
    grid-template-columns: clamp(290px, 25vw, 330px) minmax(0, 1fr);
  }
  .hub-feature-list {
    grid-template-columns: repeat(4, max-content);
    column-gap: 22px;
  }
}

.hub-page .hub-media {
  grid-template-columns: minmax(0, 1fr);
}
.hub-page > .hub-summary-panel {
  margin-top: 36px;
  height: auto;
}
@media (min-width: 620px) {
  .hub-page > .hub-summary-panel dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Compact mobile maps with route facts alongside and copy underneath. */
@media (max-width: 759px) {
  .hub-page .hub-route-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 6px 16px;
    padding: 18px;
    height: auto;
    align-items: start;
  }
  .hub-page .hub-route-body {
    display: contents;
  }
  .hub-page .hub-route-title {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: block;
  }
  .hub-page .hub-route-title h3 {
    font-size: clamp(1rem, 4vw, 1.4rem);
    line-height: 1.15;
  }
  .hub-page .hub-route-title .eyebrow {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .hub-page .hub-route-number {
    display: none;
  }
  .hub-page .hub-route-image {
    grid-column: 1;
    grid-row: 1/3;
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: start;
    border-radius: 16px;
    overflow: hidden;
  }
  .hub-page .hub-route-image img {
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    border-radius: inherit;
  }
  .hub-page .hub-route-image > span {
    left: 7px;
    top: 7px;
    padding: 5px 7px;
    font-size: 9px;
  }
  .hub-page .hub-route-facts {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    border: 0;
    min-width: 0;
  }
  .hub-page .hub-route-facts > div {
    padding: 6px 0;
  }
  .hub-page .hub-route-facts dt {
    font-size: 10px;
    letter-spacing: 0.075em;
  }
  .hub-page .hub-route-facts dd {
    margin-top: 3px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .hub-page .hub-route-description,
  .hub-page .hub-feature-list,
  .hub-page .hub-route-link {
    grid-column: 1/-1;
    margin: 0;
  }
  .hub-page .hub-feature-list {
    display: none;
  }
  .hub-page .hub-route-description {
    grid-row: 3;
    margin-top: 8px;
  }
  .hub-page .hub-route-link {
    margin-top: 8px;
  }
  .hub-page .hub-feature-list svg,
  .hub-page .hub-route-link svg {
    flex-shrink: 0;
  }
}

/* Keep the square map flush with the full card height */
@media (min-width: 620px) and (max-width: 759px) {
  .hub-route-card {
    display: block;
    height: auto;
  }
  .hub-route-image {
    width: 100%;
    height: auto;
  }
}
@media (min-width: 760px) {
  .hub-route-card {
    --route-card-size: clamp(330px, 40vw, 360px);
    height: var(--route-card-size);
    grid-template-columns: var(--route-card-size) minmax(0, 1fr);
    align-items: stretch;
  }
  .hub-route-image {
    width: var(--route-card-size);
    height: var(--route-card-size);
    align-self: stretch;
  }
  .hub-route-image img {
    width: 100%;
    height: 100%;
  }
}
@media (min-width: 1000px) {
  .hub-route-card {
    --route-card-size: 350px;
  }
}

/* Interactive walk map */
.map-page {
  padding-bottom: 70px;
}
.map-title {
  padding: 24px 0 22px;
}
.map-title h1 {
  max-width: 900px;
}
.map-title > p:last-child {
  max-width: 720px;
  margin: 15px 0 0;
  color: #405560;
  font-size: 15px;
  line-height: 1.65;
}
.explore-map {
  position: relative;
  height: clamp(540px, 70vh, 760px);
  overflow: hidden;
  border-radius: 22px;
  background: #dceaf1;
  box-shadow: inset 0 0 0 1px rgba(7, 91, 134, 0.08);
}
.map-canvas {
  position: absolute;
  inset: 0;
}
.map-status {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 12px;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 25px rgba(19, 45, 61, 0.14);
}
.map-tools {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.map-tools button,
.map-tools > div {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 5px 18px rgba(19, 45, 61, 0.15);
}
.map-tools button {
  cursor: pointer;
}
.legend-pin {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px #fff;
}
.map-result {
  position: absolute;
  z-index: 2;
  left: 13px;
  right: 13px;
  bottom: 13px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 38px rgba(19, 45, 61, 0.2);
  backdrop-filter: blur(8px);
}
.map-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.map-result-top .map-rating {
  color: #d88f0a;
  letter-spacing: 0;
}
.map-result h2 {
  margin: 8px 0 0;
  font-size: 1.3rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.map-result p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.map-result a {
  margin-top: 15px;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  font-weight: 750;
}
.map-result a:hover {
  background: var(--green-dark);
}
.map-hint {
  display: none;
}
.map-intro {
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  background: var(--soft);
  display: grid;
  gap: 12px;
}
.map-intro h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.map-intro > p {
  margin: 0;
  color: #405560;
  font-size: 14px;
  line-height: 1.7;
}
.maplibregl-ctrl-group {
  border-radius: 11px !important;
  overflow: hidden;
}
.maplibregl-ctrl-attrib {
  font-size: 9px !important;
}
@media (min-width: 700px) {
  .map-title {
    padding-top: 32px;
  }
  .explore-map {
    border-radius: 26px;
  }
  .map-result {
    left: 22px;
    right: auto;
    bottom: 22px;
    width: 340px;
    padding: 22px;
  }
  .map-result h2 {
    font-size: 1.55rem;
  }
  .map-tools {
    top: 18px;
    left: 18px;
  }
  .map-hint {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 18px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 5px 18px rgba(19, 45, 61, 0.12);
  }
  .map-intro {
    grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
    padding: 30px;
  }
}
@media (min-width: 1000px) {
  .map-title {
    padding: 38px 0 28px;
  }
  .map-title > p:last-child {
    font-size: 16px;
  }
  .map-result {
    width: 365px;
  }
  .map-intro {
    padding: 34px 38px;
  }
}

/* Homepage place-search hero */
.homepage {
  min-height: 100vh;
  background: #fff;
}
.home-header .header-inner {
  flex-wrap: nowrap;
}
.home-header .desktop-nav {
  margin-left: auto;
}
.home-hero {
  position: relative;
  min-height: calc(100vh - 128px);
  margin: 12px 14px 14px;
  overflow: hidden;
  border-radius: 24px;
  background: #315d6c;
  display: flex;
  align-items: center;
}
.home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 32, 44, 0.82) 0%,
    rgba(8, 32, 44, 0.6) 48%,
    rgba(8, 32, 44, 0.22) 100%
  );
}
.home-hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 48px 22px 70px;
  color: #fff;
}
.placeholder-label {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(6, 39, 55, 0.26);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.home-kicker {
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.home-hero h1 {
  margin: 0;
  max-width: 680px;
  color: #fff;
  font-size: clamp(2.45rem, 9vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.home-lead {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.55;
}
.place-search {
  position: relative;
  margin-top: 27px;
  color: var(--ink);
}
.place-search-box {
  min-height: 62px;
  padding: 7px 7px 7px 17px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}
.place-search-box > svg {
  width: 20px;
  color: var(--green);
}
.place-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.place-search-box button {
  grid-column: 1/-1;
  min-height: 45px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.place-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 7px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}
.place-results button {
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}
.place-results button:hover,
.place-results button:focus-visible {
  background: var(--soft);
}
.result-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.result-icon svg {
  width: 16px;
}
.place-results strong,
.place-results small {
  display: block;
}
.place-results strong {
  font-size: 13px;
}
.place-results small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.result-action {
  display: none;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
}
.place-results > p {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
}
.use-location {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.use-location svg {
  width: 17px;
}
.use-location:hover {
  text-decoration: underline;
}
@media (min-width: 560px) {
  .home-hero {
    margin: 14px 20px 20px;
  }
  .home-hero-content {
    padding: 70px 48px 90px;
  }
  .place-search-box {
    grid-template-columns: 22px minmax(0, 1fr) 128px;
    border-radius: 999px;
    padding: 7px 7px 7px 20px;
  }
  .place-search-box button {
    grid-column: auto;
    border-radius: 999px;
  }
  .place-results button {
    grid-template-columns: 38px 1fr auto;
  }
  .result-action {
    display: block;
  }
}
@media (min-width: 1000px) {
  .home-hero {
    min-height: calc(100vh - 118px);
    margin: 12px 30px 30px;
    border-radius: 30px;
  }
  .home-hero-content {
    padding-left: clamp(70px, 8vw, 130px);
    padding-bottom: 110px;
  }
  .home-lead {
    font-size: 17px;
  }
  .place-search {
    margin-top: 34px;
  }
}

/* Homepage search and map-card refinements */
.home-overlay {
  background: linear-gradient(
    90deg,
    rgba(8, 32, 44, 0.62) 0%,
    rgba(8, 32, 44, 0.42) 48%,
    rgba(8, 32, 44, 0.12) 100%
  );
}
.map-result {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 35px));
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.map-result.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.map-result.has-map-thumb {
  padding: 0;
  overflow: hidden;
}
.map-result-images {
  height: 128px;
  min-height: 0;
  overflow: hidden;
  border: 5px solid #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 4px;
  background: #fff;
}
.map-result-images img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.map-result-copy {
  position: relative;
  padding: 18px;
  background: #fff;
}
.map-result:not(.has-map-thumb) .map-result-copy {
  padding: 0;
}
@media (min-width: 700px) {
  .map-result.has-map-thumb {
    width: 410px;
  }
  .map-result-images {
    height: 145px;
  }
  .map-result-copy {
    padding: 20px 22px;
  }
}

/* Clear route back to the multi-walk location hub. */
.hub-return-panel {
  margin-top: 54px;
  padding: 24px;
  display: grid;
  gap: 20px;
  border-radius: 20px;
  background: var(--soft);
  border-left: 5px solid var(--green);
}
.hub-return-panel h2 {
  margin: 3px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.hub-return-panel p:not(.eyebrow) {
  max-width: 650px;
  margin: 10px 0 0;
  color: #405560;
  font-size: 15px;
  line-height: 1.6;
}
.hub-return-button {
  min-height: 48px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
  box-shadow: 0 8px 20px rgba(8, 119, 173, 0.18);
}
.hub-return-button:hover {
  filter: brightness(0.94);
}
.hub-return-button:focus-visible {
  outline: 4px solid rgba(8, 119, 173, 0.3);
  outline-offset: 3px;
}
@media (min-width: 760px) {
  .hub-return-panel {
    padding: 30px 32px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .hub-return-button {
    white-space: nowrap;
  }
}
.hub-return-facts {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-return-facts > div {
  padding: 10px 13px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.hub-return-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hub-return-facts dd {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 750;
}
.nearby-image .location-walk-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(19, 45, 61, 0.16);
}
.location-walk-card {
  border-color: rgba(8, 119, 173, 0.55);
  box-shadow: 0 9px 24px rgba(8, 119, 173, 0.1);
}

/* Standalone HTML route-map dialog */
.static-home .header-inner {
  min-height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.static-home .hero {
  margin-top: 0;
  min-height: calc(100vh - 78px);
}
.static-home .place-form {
  position: relative;
}
.static-home .place-results {
  position: static;
  inset: auto;
  margin-top: 8px;
}
.static-home .place-results:empty {
  display: none;
}
.static-map .map-tools {
  z-index: 500;
  top: 14px;
  left: 58px;
}
.static-map .leaflet-top,
.static-map .leaflet-bottom {
  z-index: 1000;
}
.static-map .leaflet-control-zoom {
  display: block !important;
  visibility: visible !important;
}
.static-map {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.static-map > .site-header {
  flex: 0 0 auto;
}
.static-map .header-inner {
  min-height: 64px;
}
.map-page-full {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.map-filter-bar {
  position: relative;
  z-index: 1100;
  flex: 0 0 auto;
  min-height: 66px;
  padding: 9px 16px;
  border-top: 1px solid #edf3f6;
  border-bottom: 1px solid #dbe8ee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.map-filter-bar .eyebrow {
  margin: 0 0 2px;
  font-size: 9px;
}
.map-filter-bar h1 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.static-map .map-wrap {
  min-height: 0;
  height: auto;
  flex: 1;
  border-radius: 0;
}
.static-map .map {
  touch-action: none;
}
.static-map .leaflet-control-attribution {
  max-width: 72vw;
  font-size: 9px;
}
.static-map .walk-card {
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.2, 0.75, 0.25, 1);
}
@media (max-width: 699px) {
  .static-map .nav {
    display: none;
  }
  .static-map .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .static-map .map-tools {
    left: 58px;
    top: 10px;
  }
  .static-map .walk-card {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: 132px;
    max-height: none;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    overflow: hidden;
  }
  .static-map .walk-card-media.visible {
    display: block;
    width: 112px;
    height: 132px;
    border: 4px solid #fff;
  }
  .static-map .walk-card-media .walk-card-map {
    display: none;
  }
  .static-map .walk-card-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .static-map .walk-card-copy {
    min-width: 0;
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .static-map .card-top {
    font-size: 8px;
  }
  .static-map .walk-card h2 {
    margin-top: 5px;
    font-size: 1rem;
    line-height: 1.05;
  }
  .static-map .walk-card p {
    margin-top: 4px;
    font-size: 10px;
  }
  .static-map .walk-card .button {
    min-height: 34px;
    margin-top: 8px;
    padding: 7px 11px;
    font-size: 10px;
  }
  .static-map .walk-card:not(:has(.walk-card-media.visible)) {
    grid-template-columns: 1fr;
  }
  .static-map .walk-card:not(:has(.walk-card-media.visible)) .walk-card-copy {
    grid-column: 1/-1;
  }
}
@media (min-width: 700px) {
  .map-filter-bar {
    min-height: 72px;
    padding: 10px 24px;
  }
}
.static-map-dialog {
  width: min(1120px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 38, 55, 0.32);
}
.static-map-dialog::backdrop {
  background: rgba(5, 27, 39, 0.72);
  backdrop-filter: blur(4px);
}
.static-map-dialog-inner {
  position: relative;
  display: grid;
  max-height: calc(100vh - 28px);
  overflow: auto;
}
.static-map-close {
  position: absolute;
  z-index: 2;
  right: 13px;
  top: 13px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
@media (min-width: 800px) {
  .static-map-dialog-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
    overflow: hidden;
  }
  .static-map-dialog .expanded-map-wrap,
  .static-map-dialog .map-dialog-panel {
    max-height: calc(100vh - 28px);
    overflow: auto;
  }
}

/* Alternative county-card homepage */
.counties-home {
  min-height: 100vh;
  background: #fff;
}
.county-header .desktop-nav {
  margin-left: auto;
}
.county-home-shell {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 70px;
}
.county-home-heading {
  max-width: 760px;
  padding: 10px 5px 30px;
}
.county-home-heading h1 {
  font-size: clamp(2.45rem, 8vw, 5.2rem);
  line-height: 0.96;
}
.county-home-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.county-masonry {
  column-gap: 10px;
}
.county-card {
  position: relative;
  height: 270px;
  overflow: hidden;
  border-radius: 18px;
  background: #cbdde6;
  display: block;
  break-inside: avoid;
}
.county-card-short {
  height: 220px;
}
.county-card-medium {
  height: 285px;
}
.county-card-tall {
  height: 350px;
}
.county-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.county-card-shade {
  position: absolute;
  inset: 0;
}
.county-card-copy {
  position: absolute;
  color: #fff;
  display: grid;
  gap: 4px;
}
.county-card-copy small {
  font-weight: 800;
  text-transform: uppercase;
}
.county-card-copy strong {
  letter-spacing: -0.035em;
}
.county-card-arrow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.county-card:hover img {
  transform: scale(1.035);
}
.county-card:focus-visible {
  outline: 4px solid rgba(8, 119, 173, 0.38);
  outline-offset: 3px;
}
.regional-app-panel {
  margin-top: 36px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--green);
  color: #fff;
  display: grid;
}
.regional-app-copy,
.regional-app-benefits {
  padding: 26px;
}
.regional-app-copy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.regional-app-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.regional-app-copy > p {
  max-width: 700px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.65;
}
.regional-app-copy > a {
  width: fit-content;
  margin-top: 24px;
  padding: 12px 17px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}
.regional-app-visual {
  margin: 0;
  padding: 22px 22px 0;
  display: grid;
  place-items: center;
}
.regional-app-visual img {
  display: block;
  width: min(100%, 300px);
  max-height: 500px;
  object-fit: contain;
}
.regional-app-benefits {
  background: rgba(0, 0, 0, 0.1);
}
.regional-app-benefits h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}
.regional-app-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.regional-app-benefits li {
  position: relative;
  padding-left: 25px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.4;
}
.regional-app-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 900;
}
@media (min-width: 700px) {
  .county-home-shell {
    width: min(1320px, calc(100% - 56px));
    padding-top: 48px;
  }
  .county-home-heading {
    padding-bottom: 40px;
  }
  .county-masonry {
    column-gap: 18px;
  }
  .county-card {
    margin-bottom: 18px;
    border-radius: 24px;
  }
  .county-card-short {
    height: 300px;
  }
  .county-card-medium {
    height: 390px;
  }
  .county-card-tall {
    height: 490px;
  }
  .regional-app-panel {
    margin-top: 50px;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  }
  .regional-app-copy,
  .regional-app-benefits {
    padding: 38px;
  }
  .regional-app-benefits {
    grid-column: 1/-1;
  }
  .regional-app-visual {
    padding: 28px 24px 0;
  }
}
@media (min-width: 1050px) {
  .county-home-shell {
    padding-top: 60px;
  }
  .county-home-heading {
    padding-bottom: 48px;
  }
  .county-masonry {
    column-gap: 24px;
  }
  .county-card {
    margin-bottom: 24px;
  }
  .county-card-short {
    height: 340px;
  }
  .county-card-medium {
    height: 440px;
  }
  .county-card-tall {
    height: 550px;
  }
  .regional-app-panel {
    margin-top: 64px;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.58fr) minmax(290px, 0.7fr);
    align-items: stretch;
  }
  .regional-app-copy,
  .regional-app-benefits {
    padding: 46px;
  }
  .regional-app-benefits {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .regional-app-visual {
    padding: 32px 18px 0;
    align-self: end;
  }
}

/* Reliable two-column county cards, including mobile Safari. */
.county-masonry {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}
.county-card {
  min-width: 0;
  margin: 0;
  isolation: isolate;
}
.county-card img {
  z-index: 0;
  display: block;
}
.county-card-shade {
  z-index: 1;
  display: block;
  background: linear-gradient(180deg, rgba(6, 35, 50, 0.02) 18%, rgba(6, 35, 50, 0.84) 100%);
  pointer-events: none;
}
.county-card-copy {
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 14px;
  padding-right: 0;
  pointer-events: none;
}
.county-card-copy small {
  font-size: 10px;
  letter-spacing: 0.08em;
}
.county-card-copy strong {
  max-width: 100%;
  font-size: clamp(0.92rem, 4vw, 1.7rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.county-card-arrow {
  z-index: 3;
  right: 10px;
  top: 10px;
  bottom: auto;
  width: 32px;
  height: 32px;
  pointer-events: none;
}
@media (min-width: 700px) {
  .county-masonry {
    gap: 18px;
  }
  .county-card {
    margin: 0;
  }
  .county-card-copy {
    left: 25px;
    right: 25px;
    bottom: 25px;
  }
  .county-card-copy small {
    font-size: 12px;
  }
  .county-card-copy strong {
    font-size: clamp(1.6rem, 3.2vw, 2.75rem);
    overflow-wrap: normal;
  }
  .county-card-arrow {
    right: 22px;
    top: 22px;
    bottom: auto;
    width: 44px;
    height: 44px;
  }
}
@media (min-width: 1100px) {
  .county-masonry {
    gap: 24px;
  }
  .county-card {
    margin: 0;
  }
}
.county-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}
@media (min-width: 700px) {
  .county-column {
    gap: 18px;
  }
}
@media (min-width: 768px) {
  .county-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .county-column {
    gap: 24px;
  }
}
@media (max-width: 699px) {
  .county-card-short {
    height: 150px;
  }
  .county-card-medium {
    height: 200px;
  }
  .county-card-tall {
    height: 250px;
  }
  .county-card-copy strong {
    font-size: clamp(1.12rem, 5.2vw, 1.45rem);
    line-height: 1.03;
  }
  .county-card-arrow {
    width: 26px;
    height: 26px;
    font-size: 0;
  }
  .county-card-arrow:before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 0;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    background: transparent;
    transform: rotate(45deg);
  }
  .county-card-arrow:after {
    display: none;
  }
}

/* Hub map buttons fill their rounded image frames. */
.hub-page .hub-route-image {
  border-radius: 16px;
  overflow: hidden;
}
.hub-page .hub-route-image .route-map-trigger {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: inherit;
}
.hub-page .hub-route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
.hub-page .hub-route-image .route-map-trigger > span:not(.expand-map-icon) {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
@media (max-width: 759px) {
  .hub-page .hub-route-image .expand-map-icon {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }
  .hub-page .hub-route-image .expand-map-icon svg {
    width: 16px;
    height: 16px;
  }
}
@media print {
  .static-map-dialog[open],
  .static-map-dialog[open] * {
    visibility: visible !important;
  }
  .static-map-dialog[open] {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .static-map-dialog[open] .static-map-dialog-inner {
    display: block;
    max-height: none;
    overflow: visible;
  }
  .static-map-dialog[open] .map-dialog-panel,
  .static-map-dialog[open] .static-map-close {
    display: none !important;
  }
  .static-map-dialog[open] .expanded-map-wrap {
    max-height: none;
    overflow: visible;
  }
}

/* River Wye trial: compact map beside the walk information. */
.walk-detail-page .media-grid {
  grid-template-columns: minmax(0, 1fr);
}
.walk-detail-page .hero-image {
  width: 100%;
  height: clamp(240px, 32vw, 390px);
}
.river-map-information {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
  margin-top: 28px;
}
.river-map-information .route-map {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}
.river-map-information .route-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
.river-map-information .route-map figcaption {
  display: none;
}
.river-map-information .walk-information {
  padding: 0;
  min-width: 0;
}
.river-map-information .section-heading h2 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}
.river-map-information .facts-grid {
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: transparent;
}
.river-map-information .facts-grid > div {
  height: auto;
  min-height: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.river-map-information .facts-grid dt {
  font-size: 10px;
  margin-bottom: 4px;
}
.river-map-information .facts-grid dd {
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.river-map-information .facts-grid dd small {
  display: inline;
  font-size: 12px;
}
.river-map-information .expand-map-icon {
  width: 30px;
  height: 30px;
  top: 8px;
  right: 8px;
}
@media (min-width: 620px) {
  .river-map-information {
    grid-template-columns: clamp(180px, 28vw, 280px) minmax(0, 1fr);
    gap: 28px;
  }
  .river-map-information .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .river-map-information .facts-grid > div {
    padding: 12px 0;
  }
  .river-map-information .facts-grid dd {
    font-size: 16px;
  }
}
@media (min-width: 1000px) {
  .river-map-information {
    gap: 36px;
  }
  .river-map-information .facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* App downloads beneath the map on mobile and the facts on desktop. */
.river-map-column {
  min-width: 0;
}
.river-map-download {
  grid-column: 2;
  min-width: 0;
}
.river-map-download p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.river-map-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.river-map-store-badges a {
  display: block;
  width: 150px;
  max-width: 100%;
  line-height: 0;
}
.river-map-store-badges img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 620px) {
  .river-map-information {
    grid-template-rows: auto 1fr;
    row-gap: 12px;
  }
  .river-map-column {
    grid-column: 1;
    grid-row: 1/3;
  }
  .river-map-information .walk-information {
    grid-column: 2;
    grid-row: 1;
  }
  .river-map-download {
    grid-row: 2;
  }
}
@media (max-width: 619px) {
  .river-map-information {
    grid-template-rows: auto 1fr;
    row-gap: 20px;
  }
  .river-map-column {
    grid-column: 1;
    grid-row: 1;
  }
  .river-map-information .walk-information {
    grid-column: 2;
    grid-row: 1/3;
  }
  .river-map-download {
    grid-column: 1;
    grid-row: 2;
  }
  .river-map-download p {
    font-size: 13px;
  }
  .river-map-store-badges {
    display: grid;
    gap: 12px;
    justify-items: center;
  }
  .river-map-store-badges a {
    display: block;
    width: 100%;
    max-width: 150px;
    line-height: 0;
  }
}

/* Homepage introduction with the original Local Walks app image. */
.home-app-intro {
  display: grid;
  gap: 26px;
  align-items: center;
  margin-bottom: 42px;
}
.home-app-intro-copy,
.county-landing-intro {
  min-width: 0;
}
.home-app-intro-copy h1,
.county-landing-intro h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
.home-app-intro-copy > p:not(.eyebrow),
.county-landing-intro > p:not(.eyebrow) {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.home-app-intro-copy .home-app-intro-lead {
  margin: 22px 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 750;
  color: var(--ink);
}
.home-app-intro-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}
.home-app-intro-link:hover {
  background: var(--green-dark);
}
.home-app-intro-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.home-app-explore {
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  gap: 16px;
}
.home-app-explore > span {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.home-app-explore:hover {
  background: transparent;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.home-app-intro-image img {
  display: block;
  width: 100%;
  height: auto;
}
.county-home-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
@media (min-width: 800px) {
  .home-app-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 64px;
  }
}

/* Keep homepage counties in alphabetical rows at every screen size. */
.county-home-shell > .county-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}
.county-home-shell > .county-masonry > .county-card {
  height: clamp(190px, 45vw, 320px);
  margin: 0;
}
@media (min-width: 700px) {
  .county-home-shell > .county-masonry {
    gap: 18px;
  }
  .county-home-shell > .county-masonry > .county-card {
    height: 340px;
  }
}
@media (min-width: 1000px) {
  .county-home-shell > .county-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .county-home-shell > .county-masonry > .county-card {
    height: 380px;
  }
}

/* County landing pages. */
.county-landing .county-home-shell {
  padding-top: 10px;
}
.county-landing-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 20px 0 32px;
}
.county-landing-hero figure {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
}
.county-landing-hero figure img {
  display: block;
  width: 100%;
  height: clamp(260px, 40vw, 430px);
  object-fit: cover;
}
.county-landing-hero figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
}
.county-search-panel {
  padding: 26px 22px;
  border-radius: 24px;
  background: var(--soft);
  scroll-margin-top: 24px;
}
.county-search-panel h2,
.county-app-section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.county-search-panel p,
.county-app-section p {
  color: var(--muted);
  line-height: 1.65;
}
.county-search-panel form {
  margin-top: 22px;
}
.county-search-panel label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
}
.county-search-controls {
  display: grid;
  gap: 10px;
}
.county-search-controls input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.county-search-controls button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.county-search-controls input:focus-visible,
.county-search-controls button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.county-all-walks {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.county-app-section {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: 48px;
  scroll-margin-top: 24px;
}
.county-app-section figure {
  margin: 0;
}
.county-app-section img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.map-empty-message {
  position: absolute;
  z-index: 500;
  top: 70px;
  left: 16px;
  right: 16px;
  max-width: 430px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  line-height: 1.5;
}
.map-empty-message a {
  display: block;
  margin-top: 10px;
  color: var(--green);
  text-decoration: underline;
}
@media (min-width: 700px) {
  .county-search-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .county-search-panel {
    padding: 36px;
  }
}
@media (min-width: 900px) {
  .county-landing-hero,
  .county-app-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
  .county-landing-hero {
    margin-bottom: 48px;
  }
  .county-app-section {
    padding-top: 64px;
  }
}

/* County map invitation and county-specific app downloads. */
.county-map-panel {
  display: grid;
  align-items: center;
  border-radius: 24px;
  background: var(--soft);
  scroll-margin-top: 24px;
}
.county-map-panel h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.county-map-panel p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
  line-height: 1.65;
}
.county-map-art {
  width: min(100%, 250px);
  justify-self: center;
}
.county-map-art svg {
  display: block;
  width: 100%;
  height: auto;
}
.county-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}
.county-store-badges a {
  display: block;
  max-width: calc(50% - 6px);
  width: 160px;
  line-height: 0;
}
.county-store-badges img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.county-store-badges a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
  border-radius: 6px;
}
@media (min-width: 700px) {
  .county-map-art {
    width: min(100%, 320px);
  }
}

/* Static previews use the same map tiles and walk locations as the full map. */
.county-map-panel {
  margin-top: 48px;
}
.county-map-preview {
  margin: 0;
  min-width: 0;
}
.county-map-preview > a {
  display: block;
  overflow: hidden;
}
.county-map-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.county-map-preview > a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.county-map-preview figcaption {
  margin-top: 8px;
}
.county-map-preview figcaption a {
  text-decoration: underline;
}
@media (min-width: 700px) {
  .county-map-panel {
    margin-top: 64px;
  }
}

/* Combined county introduction and app guidance. */
.county-app-hero {
  scroll-margin-top: 24px;
}
.county-app-hero figure img {
  height: auto;
  object-fit: contain;
}
.county-app-hero .county-all-walks {
  margin-top: 22px;
}

/* Larger county titles and guidance beneath the app preview. */
.county-app-image-copy {
  min-width: 0;
}
.county-app-image-copy > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Simple guidance beneath the county app image. */
.county-simple-guide {
  padding: clamp(22px, 3vw, 32px);
  background: #e7f1f6;
}
.county-simple-guide h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.county-simple-guide p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.county-simple-guide .county-simple-note {
  font-size: 13px;
  font-weight: 650;
  color: var(--green);
}

/* Browse locations without opening the map. */
.county-browse {
  padding-top: 52px;
}
.county-browse-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.county-browse h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.county-browse-heading > p {
  margin: 0;
  max-width: 380px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.county-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.county-area-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.county-area-card:hover {
  background: var(--soft);
  border-color: var(--green);
}
.county-area-card:focus-visible,
.county-directory-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.county-area-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  background: var(--soft);
  border-radius: 50%;
  color: var(--green);
  font-size: 22px;
}
.county-area-card h3 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.county-area-card p {
  margin: 8px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.county-area-action {
  margin-top: auto;
  font-size: 12px;
  font-weight: 750;
  color: var(--green);
}
.county-directory-link {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  background: var(--soft);
}
.county-directory-icon {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}
.county-directory-link strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}
.county-directory-link small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.county-directory-link > span:last-child {
  margin-left: auto;
  font-size: 24px;
  color: var(--green);
}
.county-directory-heading {
  padding: 28px 0 32px;
  max-width: 800px;
}
.county-directory-heading h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
}
.county-directory-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}
@media (min-width: 800px) {
  .county-browse {
    padding-top: 64px;
  }
  .county-browse-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .county-area-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .county-area-card {
    padding: 26px;
  }
}

/* A shared circular chevron for card navigation. */
.circle-chevron {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0;
}
.circle-chevron::before,
.county-card-arrow.circle-chevron::before {
  content: "";
  position: static;
  width: 8px;
  height: 8px;
  border: 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
  background: transparent;
}
.circle-chevron::after {
  display: none;
}
.county-card .county-card-arrow.circle-chevron {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
}
@media (min-width: 700px) {
  .county-card .county-card-arrow.circle-chevron {
    top: 22px;
    right: 22px;
  }
}
.popular-card-chevron {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(19, 45, 61, 0.12);
}
.county-popular-walks {
  margin-right: 0;
  padding-right: 0;
  padding-bottom: 16px;
}
.county-popular-walks .nearby-card {
  flex-basis: min(82vw, 310px);
}
.county-popular-walks .nearby-image {
  height: 190px;
}

/* Keep county app previews aligned with their content column. */
.county-app-hero .county-app-image-copy figure {
  width: 100%;
}
@media (min-width: 900px) {
  .county-app-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Shared contact and company footer. */
.site-footer {
  background: var(--ink);
  color: #fff;
  border-top: 4px solid var(--lime);
}
.site-footer-inner {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  gap: 32px;
}
.site-footer .eyebrow {
  color: var(--lime);
  margin: 0 0 16px;
}
.site-footer-contact > p:not(.eyebrow) {
  margin: 0 0 12px;
  color: #d5e1da;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer-email {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(1.25rem, 3.3vw, 2.65rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.site-footer-email span {
  color: var(--lime);
  white-space: nowrap;
}
.site-footer-details {
  border-top: 1px solid #486055;
  padding-top: 26px;
  font-size: 12px;
  line-height: 1.8;
  color: #d5e1da;
}
.site-footer-policy {
  display: inline-block;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer-details p {
  margin: 16px 0 0;
  max-width: 390px;
}
.site-footer a:hover {
  color: var(--lime);
}
.site-footer a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 6px;
  border-radius: 2px;
}
.static-map {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  overscroll-behavior: auto;
}
.static-map .map-page-full {
  flex: none;
  height: calc(100dvh - 85px);
  min-height: 420px;
}
.static-map > .site-footer {
  flex: none;
}
@media (min-width: 800px) {
  .site-footer-inner {
    width: min(1320px, calc(100% - 80px));
    padding: 56px 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
  }
  .site-footer-details {
    border-top: 0;
    border-left: 1px solid #486055;
    padding: 0 0 0 40px;
  }
}
@media print {
  .site-footer {
    display: none;
  }
}

/* Matching homepage and county app image cards. */
.home-app-intro-image,
.county-app-hero .county-app-image-copy {
  margin: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
}

/* Let the map meet the top and sides of its card. */
.county-map-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.county-map-preview > a {
  border-radius: 0;
  box-shadow: none;
}
.county-map-panel > div {
  padding: 22px;
}
@media (min-width: 700px) {
  .county-map-panel > div {
    padding: 26px 36px 36px;
  }
}

.regional-app-up-chevron {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}

/* Discreet map attribution, kept visible over the image. */
.county-map-preview {
  position: relative;
}
.county-map-preview figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  margin: 0;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.4;
  border-radius: 5px 0 0 0;
}
.county-map-preview figcaption a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.search-walks-chevron {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* The image and guidance share one outer card. */
.county-app-hero .county-app-image-copy figure {
  border-radius: 0;
}

/* Compact desktop map cards; mobile keeps the stacked layout. */
@media (min-width: 900px) {
  .county-map-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .county-map-preview {
    align-self: start;
  }
  .county-map-preview img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .county-map-panel > div {
    align-self: center;
    padding: 28px 36px;
  }
}

/* Consistent direction indicators in county directories. */
.directory-chevron {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: middle;
}
.county-area-action .directory-chevron,
.county-all-walks .directory-chevron {
  margin-left: 8px;
}

/* Individual map filter controls. */
.map-filter-bar {
  flex-wrap: wrap;
}
.map-filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-filter-buttons .filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}
.filter-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.map-filter-buttons .filter-button:hover {
  background: var(--line);
}
.map-filter-buttons .filter-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
@media (max-width: 599px) {
  .map-filter-buttons {
    width: 100%;
  }
  .map-filter-buttons .filter-button {
    flex: 1;
    padding: 9px 12px;
  }
}
