:root {
  --ink: #151720;
  --muted: #62656b;
  --paper: #fbfaf8;
  --card: #ffffff;
  --line: #e2e0dc;
  --shadow: 0 10px 28px rgba(25, 25, 25, .07);
  --display: Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
  --route-accent: #148c53;
  --route-accent-dark: #0b6f3d;
  --route-accent-soft: #edf7f1;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}

body.has-lightbox {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--route-accent);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1240px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 56px;
}

.brand img {
  width: 170px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 48px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding-block: 7px;
}

.primary-nav a.is-active::after,
.nav-dropdown summary.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: var(--route-accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-block: 7px;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary span {
  display: inline-block;
  font-size: 13px;
  transition: transform 160ms ease;
}

.nav-dropdown[open] summary span {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(19, 23, 31, .16);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  letter-spacing: .02em;
}

.nav-dropdown-menu a.is-current {
  background: #edf7f1;
  color: var(--route-accent);
}

.nav-dropdown-menu [data-route-category-links] {
  display: grid;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.nav-dropdown-menu [data-route-category-links] a {
  box-shadow: inset 3px 0 transparent;
}

.nav-dropdown-menu [data-route-category-links] a:hover,
.nav-dropdown-menu [data-route-category-links] a:focus-visible {
  background: #f5f6f4;
  box-shadow: inset 3px 0 var(--menu-category);
}

.route-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 56px 42px;
}

.home-page {
  max-width: 1240px;
  margin: 0 auto;
}

.home-hero {
  position: relative;
  height: 470px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(251, 250, 248, .98) 0%, rgba(251, 250, 248, .92) 22%, rgba(251, 250, 248, .52) 45%, rgba(251, 250, 248, .04) 74%);
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 420ms ease;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 112px));
  margin-left: 56px;
  padding-block: 44px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 420ms ease;
}

.home-hero.is-transitioning .home-hero-image {
  opacity: .42;
}

.home-hero.is-transitioning .home-hero-content {
  opacity: 0;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-image,
  .home-hero-content {
    transition: none;
  }
}

.featured-pill {
  background: var(--featured-accent);
}

.home-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(50px, 5.6vw, 74px);
  line-height: .9;
}

.home-hero-copy {
  max-width: 360px;
  margin-bottom: 24px;
  color: #151720;
  font-size: 16px;
  line-height: 1.45;
}

.home-hero-action,
.finder-action,
.overview-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--route-accent);
  color: #fff;
  font-weight: 800;
}

.home-hero-action {
  background: var(--featured-accent);
}

.home-hero-action:hover {
  background: var(--featured-accent-dark);
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-rotation-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 12px;
}

.hero-rotation-controls button {
  position: relative;
  width: 24px;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-rotation-controls button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(21, 23, 32, .34);
  transform: translate(-50%, -50%);
}

.hero-rotation-controls button.is-active::before {
  width: 24px;
  border-radius: 999px;
  background: var(--featured-accent);
}

.hero-rotation-controls button:focus-visible {
  outline: 2px solid var(--featured-accent);
  outline-offset: 3px;
  border-radius: 999px;
}

.home-section {
  padding-inline: 56px;
}

.routes-preview {
  padding-top: 34px;
  padding-bottom: 48px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.section-heading a {
  color: var(--route-accent);
  font-weight: 800;
}

.route-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.route-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.route-card a {
  display: block;
  height: 100%;
}

.route-card img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.route-card-body {
  padding: 14px 16px 16px;
}

.route-badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 8px 3px;
  border-radius: 5px;
  background: var(--badge-color, #148c53);
  color: var(--badge-text, #fff);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.badge-classic {
  background: #148c53;
}

.badge-short {
  background: #f7931d;
}

.badge-town {
  background: #0878cf;
}

.badge-big {
  background: #df4b23;
}

.badge-gravel {
  background: #8e5aa8;
}

.badge-field {
  background: #2f8c7c;
}

.badge-race {
  background: #3f5f9f;
}

.route-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.15;
}

.route-card-description {
  margin: 0 0 13px;
  color: #20232b;
  font-size: 13px;
  line-height: 1.35;
}

.route-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #101218;
  font-size: 12px;
  font-weight: 800;
}

.route-card-meta span {
  padding: 3px 7px;
  border-radius: 5px;
  background: #f6f6f5;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row button {
  min-width: 118px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.filter-row button.is-active {
  border-color: var(--route-accent);
  background: var(--route-accent);
  color: #fff;
}

.routes-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 56px 46px;
}

.routes-intro {
  max-width: 640px;
  margin-bottom: 24px;
}

.routes-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(48px, 5vw, 68px);
  letter-spacing: -.04em;
}

.routes-intro p {
  margin-bottom: 0;
  color: #20232b;
}

.content-page {
  width: 100%;
  max-width: 1240px;
  min-height: calc(100vh - 270px);
  margin: 0 auto;
  padding: 58px 56px 88px;
}

.content-page-header {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 72px;
  align-items: start;
  margin-bottom: 52px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.content-page-header h1 {
  margin: 0;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.content-page-header p {
  max-width: 700px;
  margin: 4px 0 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}

.content-page-body,
.contact-email {
  width: min(760px, 70%);
  margin-left: auto;
}

.content-page-body p {
  margin: 0 0 26px;
  color: #272a30;
  font-size: 17px;
  line-height: 1.72;
}

.content-page-body p:last-child {
  margin-bottom: 0;
}

.terms-sections,
.terms-last-updated {
  width: min(760px, 70%);
  margin-left: auto;
}

.terms-section {
  margin-top: 46px;
}

.terms-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.terms-section p {
  margin: 0 0 20px;
  color: #272a30;
  font-size: 17px;
  line-height: 1.72;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-last-updated {
  margin-top: 50px;
  font-weight: 900;
}

.field-guide-page {
  width: 100%;
  max-width: 1240px;
  min-height: calc(100vh - 270px);
  margin: 0 auto;
  padding: 48px 56px 88px;
}

.field-guide-intro {
  max-width: 820px;
  margin-bottom: 44px;
}

.field-guide-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.field-guide-intro p {
  max-width: 700px;
  margin: 0;
  color: #272a30;
  font-size: 19px;
  line-height: 1.5;
}

.field-guide-list {
  border-top: 1px solid var(--line);
}

.field-guide-entry {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
}

.field-guide-entry h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.field-guide-entry-content > p {
  max-width: 760px;
  margin: 0;
  color: #272a30;
  font-size: 16px;
  line-height: 1.65;
}

.field-guide-find {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin-top: 14px;
  font-size: 14px;
}

.field-guide-find strong {
  color: #5f6267;
}

.field-guide-links {
  display: inline;
}

.field-guide-links a {
  color: var(--route-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.field-guide-links a::after {
  content: "\2192";
  margin-left: 5px;
  text-decoration: none;
}

.field-guide-links a + a::before {
  content: "\00b7";
  margin: 0 9px;
  color: #a5a7ab;
  text-decoration: none;
}

.contact-email {
  display: block;
  margin-top: 32px;
  color: var(--route-accent);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.routes-filter-panel {
  display: grid;
  grid-template-columns: .75fr 1fr 1.25fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(237, 247, 241, .48), #fff);
  box-shadow: var(--shadow);
}

.routes-filter-group h2 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.routes-filter-panel .filter-row {
  gap: 9px;
}

.routes-filter-panel .filter-row button {
  min-width: 0;
  min-height: 34px;
  padding: 8px 14px;
  font-size: 12px;
}

.filter-select {
  width: 100%;
  min-width: 150px;
  min-height: 34px;
  padding: 7px 34px 7px 11px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.routes-count {
  margin: 0 0 20px;
  font-weight: 800;
}

.routes-card-grid {
  padding-bottom: 34px;
}

.empty-routes {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.explore-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 56px 46px;
}

.explore-intro {
  max-width: 720px;
  margin-bottom: 24px;
}

.explore-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(42px, 4vw, 56px);
  letter-spacing: -.04em;
}

.explore-intro p {
  margin-bottom: 0;
  color: #20232b;
}

.explore-layout {
  --explore-workspace-height: clamp(560px, calc(100vh - 250px), 700px);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.explore-sidebar,
.explore-map-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(237, 247, 241, .48), #fff);
  box-shadow: var(--shadow);
}

.explore-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  height: var(--explore-workspace-height);
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}

.selected-route-panel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.selected-route-panel[hidden] {
  display: none;
}

.map-selected-route {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  width: min(360px, calc(100% - 44px));
}

.selected-route-panel img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.selected-route-panel h2 {
  margin: 3px 0 7px;
  font-size: 19px;
  line-height: 1.1;
}

.selected-route-panel p {
  margin: 8px 0 0;
  color: #20232b;
  font-size: 12px;
  line-height: 1.35;
}

.selected-route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.selected-route-tags .route-badge {
  margin: 0;
}

.selected-route-tags > span:not(.route-badge) {
  padding: 3px 7px;
  border-radius: 5px;
  background: #f6f6f5;
}

.selected-route-tags > span:empty {
  display: none;
}

.selected-route-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.selected-route-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 7px;
  background: var(--selected-accent, var(--route-accent));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.route-color-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
}

.explore-results-head p {
  margin: 0;
  font-weight: 900;
}

.explore-route-list {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-color: #c9cac8 transparent;
}

.explore-route-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 10px 8px;
  border: 0;
  border-left: 4px solid transparent;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.explore-route-row.is-active {
  border-left-color: var(--route-accent);
  background: rgba(20, 140, 83, .08);
}

.explore-route-row strong,
.explore-route-row small {
  display: block;
}

.explore-route-row strong {
  font-size: 13px;
  line-height: 1.15;
}

.explore-route-row small {
  margin-top: 3px;
  color: #4f5358;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.empty-explore {
  margin: 0;
  padding: 18px 8px;
  color: var(--muted);
  font-weight: 800;
}

.explore-all-link {
  color: var(--route-accent);
  font-weight: 900;
}

.explore-map-shell {
  position: relative;
  height: var(--explore-workspace-height);
  min-height: 0;
  overflow: hidden;
  background: #edf1ed;
}

.explore-map {
  position: absolute;
  inset: 0;
}

.route-hero {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
  margin-bottom: 28px;
}

.category-pill {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 5px 14px 4px;
  border-radius: 999px;
  background: var(--route-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 5.6vw, 75px);
  line-height: .92;
  letter-spacing: -.04em;
}

.route-deck {
  max-width: 460px;
  margin-bottom: 0;
  color: #22252c;
  font-size: 18px;
  line-height: 1.4;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 2.02 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stats-bar,
.map-card,
.map-sidebar,
.getting-there,
.photo-module {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  overflow: hidden;
}

.stats-bar article {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 18px 30px;
  border-right: 1px solid var(--line);
}

.stats-bar article:last-child {
  border-right: 0;
}

.stats-bar span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stats-bar strong {
  font-size: 21px;
  line-height: 1;
}

.stats-bar small {
  font-size: 15px;
  font-weight: 700;
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  margin-bottom: 30px;
}

.map-card {
  position: relative;
  overflow: hidden;
}

.map-tabs {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 0;
}

.map-tabs {
  top: 20px;
  left: 22px;
}

.map-tabs button {
  min-width: 92px;
  min-height: 34px;
  padding: 8px 15px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.map-tabs button.is-active {
  background: var(--route-accent);
  color: #fff;
}

.route-map {
  height: 480px;
  min-height: 480px;
  background: #e9efe9;
}

.route-static-overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 44px;
  width: 100%;
  height: 286px;
  pointer-events: none;
  opacity: .95;
}

.route-static-overlay path {
  fill: none;
  stroke: var(--route-accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9));
}

.route-static-overlay.is-hidden {
  display: none;
}

.direction-marker {
  display: grid;
  place-items: center;
  width: 24px;
  height: 15px;
  border: 2px solid var(--route-accent);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
  pointer-events: none;
}

.direction-marker span {
  position: relative;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--route-accent);
}

.direction-marker span::before {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 3px solid var(--route-accent);
  border-right: 3px solid var(--route-accent);
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}

.map-fallback {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin: 0;
  padding: 28px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
  font-size: 10px;
}

.elevation-wrap {
  position: relative;
  border-top: 1px solid var(--line);
  background: #fff;
}

#elevation-profile {
  width: 100%;
  height: 120px;
  cursor: crosshair;
  touch-action: none;
}

.profile-grid line {
  stroke: #ece9e4;
  stroke-width: 1;
}

#profile-area {
  fill: var(--route-elevation);
}

#profile-line {
  fill: none;
  stroke: var(--route-accent);
  stroke-width: 2;
}

#profile-labels text {
  fill: #6c706f;
  font-size: 11px;
  font-weight: 700;
}

.profile-hover-guide {
  stroke: rgba(21, 23, 32, .52);
  stroke-width: 1.3;
  pointer-events: none;
}

.profile-hover-point {
  fill: var(--route-accent);
  stroke: #fff;
  stroke-width: 2;
  pointer-events: none;
}

.profile-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 136px;
  padding: 7px 8px;
  border: 1px solid rgba(21, 23, 32, .35);
  border-radius: 4px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
}

.profile-tooltip[hidden] {
  display: none;
}

.map-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 0 16px 16px;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.route-tools {
  position: relative;
  z-index: 4;
}

.route-tools-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--route-accent);
  border-radius: 8px;
  background: var(--route-accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.route-tools-trigger:hover,
.route-tools-trigger[aria-expanded="true"] {
  background: var(--route-accent-dark);
  border-color: var(--route-accent-dark);
}

.route-tools-chevron {
  font-size: 18px;
  line-height: 1;
  transition: transform .16s ease;
}

.route-tools-trigger[aria-expanded="true"] .route-tools-chevron {
  transform: rotate(180deg);
}

.route-tools-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(22, 28, 24, .16);
}

.route-tools-menu[hidden] {
  display: none;
}

.route-tools-menu a,
.route-tools-menu button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 43px;
  padding: 9px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.route-tools-menu > :last-child {
  border-bottom: 0;
}

.route-tools-menu a:hover,
.route-tools-menu button:hover,
.route-tools-menu a:focus-visible,
.route-tools-menu button:focus-visible {
  background: var(--route-accent-soft);
}

.route-tools-menu img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  justify-self: center;
}

.route-tool-symbol {
  justify-self: center;
  font-size: 18px;
  line-height: 1;
}

.route-tool-external {
  color: #68716b;
  font-size: 14px;
}

.getting-there {
  padding: 22px;
  box-shadow: none;
  background: linear-gradient(135deg, var(--route-accent-soft), #fff);
}

.utility-subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 140, 83, .18);
}

.getting-there h2,
.story-block h2,
.photo-module h2,
.on-route h2 {
  margin-bottom: 14px;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.getting-there p {
  font-size: 13px;
}

.getting-there .route-option-note {
  margin: 12px 2px 0;
  color: #3f4943;
  font-size: 12px;
  line-height: 1.45;
}

.getting-there dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.getting-there div {
  display: grid;
}

dt {
  color: var(--route-accent);
  font-weight: 800;
}

.getting-there dt button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 140, 83, .26);
  border-radius: 8px;
  background: #fff;
  color: var(--route-accent);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.getting-there dt button::after {
  content: ">";
  margin-left: 14px;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

.getting-there dt button:hover {
  border-color: var(--route-accent);
  box-shadow: 0 5px 14px rgba(20, 140, 83, .12);
}

.getting-there dt button.is-active {
  border-color: var(--route-accent);
  background: var(--route-accent);
  color: #fff;
}

dd {
  margin: 0;
}

.route-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 34px;
}

.route-disclaimer {
  width: 100%;
  margin: -4px 0 34px;
  color: #5f6267;
  font-size: 13px;
  line-height: 1.55;
}

.story-block p,
.story-block li {
  font-size: 13px;
}

.practical-notes ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.practical-notes li {
  position: relative;
  padding-left: 32px;
}

.practical-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--route-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.practical-notes li.caution::before {
  content: "!";
  background: #f2b51d;
}

.photo-module {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  padding: 20px;
  margin-bottom: 28px;
}

.ride-along-note {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.ride-along-note p {
  margin: 0;
  color: #3e4248;
  font-size: 13px;
}

.carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
}

.carousel-control {
  display: grid;
  place-items: center;
  width: 34px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.carousel-control:hover {
  border-color: var(--route-accent);
  color: var(--route-accent);
}

.thumb-row {
  display: grid;
  grid-auto-columns: minmax(128px, 152px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.thumb-row::-webkit-scrollbar {
  display: none;
}

.thumb-row figure {
  margin: 0;
  scroll-snap-align: start;
}

.ride-photo,
.route-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.ride-photo img,
.route-photo img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.ride-photo img {
  aspect-ratio: 1.38 / 1;
}

.thumb-row figcaption {
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
}

.on-route {
  margin-bottom: 20px;
}

.on-route-carousel .thumb-row {
  grid-auto-columns: calc((100% - 42px) / 4);
  padding-bottom: 0;
}

.on-route-carousel .route-photo img {
  aspect-ratio: 1.55 / 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 3px solid #245e8f;
  background: #fff;
}

.footer-inner {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 380px;
  gap: 58px;
  align-items: start;
  margin: 0 auto;
  padding: 34px 56px 58px;
}

.footer-brand img {
  width: 145px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 34px;
}

.footer-nav section {
  display: grid;
  align-content: start;
  gap: 17px;
}

.footer-nav h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-nav a {
  color: #b6b6b8;
  font-size: 14px;
  font-weight: 800;
}

.footer-utility {
  display: grid;
  justify-items: stretch;
  gap: 22px;
}

.newsletter-link {
  display: block;
  min-height: 64px;
  border-radius: 8px;
  background: #d3d3d5;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.social-links a {
  display: block;
  width: 38px;
  height: 38px;
  background: #d3d3d5;
}

.home-footer {
  border-bottom-color: var(--route-accent);
}

.home-footer .footer-inner {
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  padding-block: 26px;
}

.home-footer .footer-brand {
  display: grid;
  gap: 8px;
  color: #5f6267;
  font-size: 14px;
}

.home-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
}

.home-footer-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-social-links {
  justify-content: flex-end;
  gap: 16px;
}

.home-social-links a {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #11131a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.photo-lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(44px, 1fr) minmax(0, 1280px) minmax(44px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: rgba(12, 13, 15, .88);
}

.photo-lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  grid-column: 2;
  display: grid;
  justify-items: center;
  margin: 0;
}

.lightbox-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
}

.lightbox-figure figcaption {
  display: flex;
  justify-content: space-between;
  width: min(100%, 1280px);
  gap: 20px;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
}

.lightbox-figure strong:empty {
  display: none;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.lightbox-nav {
  width: 48px;
  height: 70px;
  border-radius: 8px;
  font-size: 26px;
}

.lightbox-prev {
  justify-self: end;
}

.lightbox-next {
  justify-self: start;
}

@media (max-width: 980px) {
  .header-inner {
    padding-inline: 28px;
  }

  .route-page,
  .routes-page,
  .explore-page,
  .field-guide-page,
  .content-page,
  .home-section {
    padding: 28px;
  }

  .content-page-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .field-guide-entry {
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 32px;
  }

  .content-page-body,
  .contact-email,
  .terms-sections,
  .terms-last-updated {
    width: 100%;
  }

  .home-hero-content {
    width: min(430px, calc(100% - 56px));
    margin-left: 28px;
  }

  .route-hero,
  .map-grid,
  .route-story-grid,
  .photo-module {
    grid-template-columns: 1fr;
  }

  .route-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routes-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-layout {
    grid-template-columns: 1fr;
  }

  .explore-sidebar {
    height: auto;
    max-height: none;
  }

  .explore-route-list {
    max-height: 360px;
  }

  .explore-map-shell {
    height: 620px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 28px 46px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .footer-utility {
    max-width: 480px;
  }

  .home-footer .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .home-footer-nav,
  .home-social-links {
    justify-content: flex-start;
  }

  .ride-along-note {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 20px;
  }

}

@media (max-width: 680px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
    padding: 18px 16px;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .route-page {
    padding: 22px 16px;
  }

  .routes-page {
    padding: 24px 16px 34px;
  }

  .explore-page {
    padding: 24px 16px 34px;
  }

  .field-guide-page {
    padding: 38px 16px 64px;
  }

  .field-guide-intro {
    margin-bottom: 34px;
  }

  .field-guide-entry {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 24px 26px;
  }

  .home-page {
    max-width: none;
  }

  .home-hero {
    min-height: 620px;
    align-items: end;
  }

  .home-hero::before {
    background: linear-gradient(180deg, rgba(251, 250, 248, .08) 0%, rgba(251, 250, 248, .82) 44%, rgba(251, 250, 248, .98) 100%);
  }

  .home-hero-content {
    width: auto;
    margin: 0;
    padding: 220px 16px 34px;
  }

  .home-hero h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .home-section {
    padding: 24px 16px;
  }

  .content-page {
    padding: 38px 16px 64px;
  }

  .content-page-header {
    margin-bottom: 34px;
    padding-bottom: 30px;
  }

  .content-page-header h1 {
    font-size: 46px;
  }

  .content-page-body p {
    font-size: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .route-card-grid {
    grid-template-columns: 1fr;
  }

  .routes-filter-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .explore-intro h1 {
    font-size: clamp(42px, 14vw, 54px);
  }

  .explore-sidebar {
    grid-template-rows: auto;
    height: auto;
    min-height: auto;
    padding: 16px;
  }

  .selected-route-panel {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .selected-route-panel img {
    width: 78px;
    height: 78px;
  }

  .selected-route-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .explore-map-shell {
    height: 520px;
    min-height: 0;
  }

  .map-selected-route {
    top: 14px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .filter-row button {
    flex: 1 1 132px;
  }

  .label-fayetteville {
    left: 31%;
    font-size: 19px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar article:nth-child(2) {
    border-right: 0;
  }

  .stats-bar article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .map-tabs {
    position: static;
    padding: 12px;
    overflow-x: auto;
    background: #fff;
  }

  .route-map {
    height: 380px;
    min-height: 380px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: flex-start;
    gap: 28px;
  }

  .carousel-shell {
    grid-template-columns: 1fr;
  }

  .carousel-control {
    display: none;
  }

  .thumb-row {
    grid-auto-columns: minmax(126px, 72%);
  }

  .photo-lightbox {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .lightbox-figure {
    grid-column: 1;
  }

  .lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
