:root {
  --bg: #0f1210;
  --panel: rgba(20, 24, 21, 0.94);
  --panel-2: #1a1d1a;
  --text: #f3f4ef;
  --muted: #aeb7ae;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #d9272e;
  --accent-dark: #a91e24;
  --route: #d9272e;
  --route-active: #f4d84a;
  --danger: #ff5b48;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  height: 72px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111511;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0,0,0,.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}


.brand-profile {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(217, 39, 46, .75);
  box-shadow: 0 0 0 3px rgba(217, 39, 46, .08);
}

.brand {
  position: relative;
}

.brand-road {
  width: 34px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-7deg);
  opacity: .85;
}

.brand-copy strong {
  color: var(--text);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  letter-spacing: .08em;
  font-size: 14px;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 7px;
  background: var(--accent);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.search-box {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(255,255,255,.065);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.search-box:focus-within {
  border-color: rgba(217,39,46,.55);
  box-shadow: 0 0 0 3px rgba(217,39,46,.08);
}

.search-box svg {
  width: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
}

.search-box input::placeholder {
  color: #879087;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: .2s ease;
}

.filter-chip:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.25);
}

.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 750;
}

.result-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 20px 1px 10px;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ef6166;
  cursor: pointer;
  font-size: 12px;
}

.route-list {
  display: grid;
  gap: 8px;
}

.route-list-item {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}

.route-list-item:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.075);
  border-color: var(--line);
}

.route-list-item.active {
  background: rgba(217,39,46,.10);
  border-color: rgba(217,39,46,.40);
}

.route-list-title {
  display: block;
  font-weight: 760;
  font-size: 14px;
}

.route-list-meta {
  display: flex;
  gap: 7px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.route-list-description {
  display: block;
  margin-top: 8px;
  color: #c8cec8;
  font-size: 12px;
  line-height: 1.45;
}

.empty-state {
  padding: 24px 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 760;
  font-size: 13px;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: #f0ff79;
}

.button-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}

.about-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text h2 {
  margin: 0 0 22px;
  max-width: 650px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.about-text p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.75;
}

.about-placeholder {
  min-height: 390px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #161916;
  box-shadow: var(--shadow);
}

.about-image img {
  display: block;
  width: 100%;
  min-height: 390px;
  object-fit: cover;
}

.about-image figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.route-list-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.route-list-thumb {
  display: block;
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
  background: #222;
}

.route-list-copy {
  min-width: 0;
  display: block;
}

.route-list-title,
.route-list-meta,
.route-list-description {
  width: 100%;
}


.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 99px;
}


.view-section {
  display: none;
}

.view-section.active-view {
  display: block;
}

.about-section.active-view {
  display: grid;
  min-height: calc(100vh - 72px);
}


.browser-heading h1 {
  color: var(--accent);
}

.route-card-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.route-nav-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
}

.route-nav-button:first-child {
  justify-self: start;
}

.route-nav-button:last-child {
  justify-self: end;
}

.route-nav-button:hover {
  border-color: rgba(217,39,46,.45);
  background: rgba(217,39,46,.08);
}

.route-position {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}


.browser-heading h1 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.mobile-results-header,
.mobile-back-button {
  display: none;
}


.search-submit {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.search-submit svg {
  width: 18px;
  height: 18px;
}

#route-elevation[hidden] { display: none; }
