:root {
  color-scheme: light;
  --ink: #262725;
  --muted: #62635e;
  --cream: #f2f0ec;
  --paper: #f2f0ec;
  --surface: #fcfbf8;
  --blue: #1864d9;
  --accent: #235fc2;
  --on-accent: #ffffff;
  --cyan: #91ddf9;
  --line: rgba(0, 0, 0, .10);
  --tag: rgba(0, 0, 0, .06);
  --map: #dae5e8;
  --map-line: rgba(38,39,37,.06);
  --collection-base: #fcfbf8;
  --radius: 28px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
::selection { background: #dce2df; color: #262725; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); min-height: 56px; padding: 6px 8px 6px 18px; color: #fafaf7; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(24,28,30,.55); box-shadow: 0 4px 20px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); transition: width .28s ease, padding .28s ease; }


.topbar .pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 16px; background: var(--cyan); color: #10252d; box-shadow: 0 3px 12px rgba(0,0,0,.07); }

.topbar .brand { min-height: 44px; min-width: 44px; justify-content: center; }
.topbar .nav { gap: 22px; }
.topbar.is-compact { width: 64px; padding: 6px; justify-content: center; }
.topbar.is-compact .nav { display: none; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 39px; height: 20px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }


:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid #62635e; outline-offset: 4px; }
:focus-visible { outline-color: #62635e !important; }
.pill, .button { border: 0; border-radius: 999px; padding: 12px 18px; background: var(--blue); color: white; font-weight: 700; box-shadow: 0 8px 24px rgba(0,158,255,.18); }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.hero { min-height: 718px; display: grid; place-items: center; position: relative; z-index: 1; overflow: visible; background: #0c1118; color: #fafaf7; border-radius: 0 0 36px 36px; }
.hero:before { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(12,17,24,.36), rgba(12,17,24,.48) 40%, rgba(12,17,24,.68)); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: center 60%; }
.hero-credit { position: absolute; z-index: 2; bottom: 22px; right: 28px; color: rgba(255,255,255,.80); font-size: 11px; }
.hero .eyebrow:before { background: var(--cyan); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 850px; padding: 150px 0 110px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 { margin: 22px 0; font-size: clamp(52px, 7vw, 88px); line-height: .96; letter-spacing: -.045em; }
.hero p { max-width: 620px; margin: 0 auto 32px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.6; }
.search { margin: 0 auto; padding: 8px; max-width: 720px; display: flex; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 24px 80px rgba(0,0,0,.25); backdrop-filter: blur(22px); }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 18px; font-size: 16px; color: var(--ink); background: transparent; }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; border-radius: 19px; background: var(--cyan); color: #10252d; padding: 16px 24px; font-weight: 700; }
.quick { display: flex; justify-content: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.quick a { padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 13px; color: rgba(255,255,255,.82); }
.section { padding: 94px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 0; max-width: 680px; font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.04em; }
.section-head p { max-width: 420px; color: var(--muted); line-height: 1.6; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* Homepage: one quiet search on the left, account and app together on the right. */
.topbar.home-topbar .nav { flex: 1; min-width: 0; margin-left: 12px; gap: 6px; }
.home-topbar .nav-search { flex: 0 1 260px; width: 260px; margin-right: 0; }
.topbar .nav-build { display: inline-flex; align-items: center; min-height: 38px; padding: 6px; margin-right: auto; color: #fafaf7b8; font-size: 10px; font-weight: 450; white-space: nowrap; }
.topbar .nav-build:hover { color: var(--cyan); }
.route-grid.featured-carousel { display: flex; gap: 18px; overflow-x: auto; padding: 7px 0 18px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
/* Focus can fall back here while a Save button is temporarily disabled.
   Keep the carousel unframed; its individual controls retain focus indicators. */
.route-grid.featured-carousel:focus { outline: none; box-shadow: none; }
.featured-carousel > .route-card { flex: 0 0 calc((100% - 36px) / 3); min-width: 0; scroll-snap-align: start; }
#drives { padding-bottom: 30px; }
#drives .search-status:empty { display: none; }
#app { padding-top: 24px; }
@media (max-width: 850px) { .featured-carousel > .route-card { flex-basis: 46%; } }
@media (max-width: 520px) {
  .featured-carousel > .route-card { flex-basis: 88%; }
  .home-topbar .nav-search { flex: 1; width: 95px; }
  .topbar .nav-build { flex: 0 0 54px; padding-inline: 2px; font-size: 9px; white-space: normal; line-height: 1.25; }
}
.search-status { min-height: 24px; margin: 22px 0 0; color: var(--muted); }
.route-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.route-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.route-map { height: 245px; display: grid; place-items: center; background: var(--map); overflow: hidden; position: relative; }
.route-map:before, .route-map:after { content: ""; position: absolute; inset: -30%; background: repeating-linear-gradient(28deg, transparent 0 35px, var(--map-line) 36px 38px); }
.route-map:after { transform: rotate(90deg); }
.route-map > svg { position: relative; z-index: 1; width: 88%; }
.route-card-content { padding: 23px; }
.route-card h3 { font-size: 23px; letter-spacing: -.04em; margin: 7px 0 8px; }
.meta { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.tag { padding: 6px 9px; background: var(--tag); border-radius: 999px; font-size: 11px; font-weight: 700; }
.collections { background: var(--cream); }
.collection-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 0 14px; scrollbar-width: thin; scrollbar-color: rgba(38,39,37,.18) transparent; }
.collection-grid .collection { flex: 0 0 42%; scroll-snap-align: start; }
.collection-toolbar { display: flex; justify-content: flex-end; margin: -8px 0 18px; }
.collection { min-height: 340px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; background: color-mix(in srgb, var(--collection-accent) 12%, var(--collection-base)); }
.collection:after { content: ""; position: absolute; width: 280px; height: 280px; border: 42px solid color-mix(in srgb, var(--collection-accent) 22%, transparent); border-radius: 50%; right: -100px; bottom: -130px; }
.collection h3 { max-width: 320px; margin: 0; font-size: 36px; line-height: 1; letter-spacing: -.055em; }
.collection span { font-size: 13px; font-weight: 750; }
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 34px; overflow: hidden; }
.feature-copy { padding: clamp(38px, 7vw, 84px); }
.feature h2 { font-size: clamp(40px, 6vw, 75px); line-height: .94; letter-spacing: -.065em; margin: 20px 0; }
.feature p { color: var(--muted); line-height: 1.7; }
.phone-wrap { display: grid; place-items: end center; min-height: 600px; background: radial-gradient(circle, rgba(133,223,245,.28), transparent 53%); }
.phone { width: 280px; height: 540px; padding: 12px; background: #050605; border: 1px solid #555; border-radius: 45px 45px 0 0; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.phone-screen { height: 100%; border-radius: 35px 35px 0 0; overflow: hidden; background: var(--map); position: relative; }
.phone-screen svg { width: 130%; margin-left: -15%; margin-top: 70px; }
.phone-chip { position: absolute; left: 17px; right: 17px; bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); font-size: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.18); backdrop-filter: blur(18px); }
.footer { padding: 48px 0 70px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.route-hero { background: var(--cream); padding-bottom: 16px; }
.route-hero + .section { padding-top: 24px; }
.crumbs { padding: 120px 0 24px; color: var(--muted); font-size: 13px; }
.route-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: 38px; align-items: stretch; }
.route-main-map { min-height: 608px; border-radius: 30px; overflow: hidden; display: grid; place-items: center; background: var(--map); position: relative; }
.route-main-map:before { content: ""; position: absolute; inset: -20%; background: repeating-linear-gradient(35deg, transparent 0 48px, var(--map-line) 49px 52px); }
.route-main-map > svg { position: relative; z-index: 2; width: 90%; }
.route-copy { display: flex; flex-direction: column; justify-content: center; padding: 36px 0; }
.route-copy h1 { font-size: clamp(50px, 6vw, 78px); }
.route-copy p { color: var(--muted); line-height: 1.7; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 19px 12px 19px 0; }
.stat strong { display: block; font-size: 21px; }
.stat span { color: var(--muted); font-size: 12px; }
.route-editorial { width: 100%; }
.prose h2 { margin-top: 0; font-size: 36px; letter-spacing: -.045em; }
.prose h3 { margin-top: 42px; font-size: 23px; }
.prose p, .prose li { color: var(--muted); line-height: 1.8; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 22px; background: var(--line); padding: 0; margin: 0 0 42px; overflow: hidden; }
.fact { min-width: 0; padding: 24px; background: var(--surface); }
.fact + .fact { border-left: 0; }
.fact dt { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.fact dd { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 650; }
.floating-actions { position: fixed; z-index: 30; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; padding: 6px; color: #fafaf7; border: 1px solid rgba(255,255,255,.12); background: rgba(24,28,30,.55); border-radius: 999px; box-shadow: 0 4px 20px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }
.floating-actions button { border: 0; border-radius: 999px; min-height: 44px; padding: 11px 22px; font-weight: 700; }
.floating-actions .directions { background: var(--cyan); color: #10252d; }
.floating-actions .save { background: rgba(255,255,255,.12); color: white; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(5,6,5,.66); backdrop-filter: blur(8px); }
.modal-backdrop.open { display: grid; }
.modal { width: min(480px, 100%); background: var(--paper); border-radius: 28px; padding: 32px; box-shadow: 0 30px 100px rgba(0,0,0,.4); position: relative; }
.modal-close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); }
.modal-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: var(--accent); color: var(--on-accent); font-size: 24px; }
.modal h2 { margin: 22px 0 10px; font-size: 34px; letter-spacing: -.05em; }
.modal p { color: var(--muted); line-height: 1.6; }
.modal .app-cta { width: 100%; border: 0; border-radius: 18px; padding: 16px; margin-top: 12px; background: var(--blue); color: white; font-weight: 700; }
.modal .continue { display: block; margin: 16px auto 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
@media (max-width: 850px) {
  .nav a:not(.pill) { display: none; }
  .route-grid, .collection-grid { grid-template-columns: 1fr; }
  .collection { min-height: 250px; }
  .collection-grid .collection { flex-basis: 72%; }
  .section-head, .feature, .route-layout, .content-grid { grid-template-columns: 1fr; display: grid; }
  .route-layout { gap: 10px; }
  .route-main-map { min-height: 428px; }
  .phone-wrap { min-height: 510px; }
  .footer { flex-direction: column; gap: 15px; }
}
@media (max-width: 520px) {
  .topbar { top: max(10px, env(safe-area-inset-top)); width: min(1180px, calc(100% - 24px)); min-height: 56px; padding: 6px 8px 6px 12px; }
  .topbar .nav { gap: 8px; }
  .nav { gap: 8px; }


  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 32px; }
  .pill { padding: 11px 13px; font-size: 12px; }
  .hero-credit { right: 16px; font-size: 10px; }
  .shell { width: min(100% - 24px, 1180px); }
  .hero { min-height: 658px; border-radius: 0 0 24px 24px; }
  .hero-content { padding-top: 128px; }
  .search button { padding: 14px 16px; }
  .section { padding: 68px 0; }
  .stats { grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, 1.25fr); }
  .stat { min-width: 0; padding: 16px 6px; }
  .stat + .stat { border-left: 1px solid var(--line); }
  .stat strong { font-size: clamp(13px, 3.7vw, 18px); white-space: nowrap; }
  .stat span { font-size: 10px; white-space: nowrap; }
  .collection-grid .collection { flex-basis: 88%; padding: 26px; }
  .floating-actions { width: calc(100% - 24px); }
  .floating-actions button { flex: 1; padding-inline: 10px; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .floating-actions { background: #181c1e; backdrop-filter: none; -webkit-backdrop-filter: none; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.route-cover { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.route-status { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; font-weight: 650; }
.gallery-section { margin: 0 0 64px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.gallery-toolbar h2 { font-size: 30px; letter-spacing: -.035em; margin: 0; }
.gallery-controls { display: flex; gap: 8px; }
.gallery-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 20px; }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
.route-gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(38,39,37,.18) transparent; padding-bottom: 12px; }
.route-gallery figure { flex: 0 0 calc((100% - 28px) / 3); min-width: 0; margin: 0; scroll-snap-align: start; }
.route-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.route-gallery figcaption { margin-top: 8px; font-size: 11px; color: var(--muted); }
.gallery-status { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 850px) and (min-width: 651px) { .route-gallery figure { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 650px) { .route-gallery figure { flex-basis: 100%; } }

[hidden] { display: none !important; }
.route-card-content { display: block; }
.nav-search { display: flex; align-items: center; width: clamp(115px, 15vw, 210px); height: 38px; padding: 2px 4px 2px 12px; border: 1px solid rgba(0,0,0,.10); border-radius: 999px; background: transparent; box-shadow: inset 0 1px 3px rgba(0,0,0,.14), 0 1px 0 rgba(255,255,255,.06); }
.nav-search input { width: 100%; min-width: 0; background: none; border: 0; color: #fafaf7; outline: 0; font-size: 13px; }
.nav-search input::placeholder { color: rgba(250,250,247,.65); }
.search-suggestions .place-attribution { display: block; padding: 4px 14px 10px; font-size: 9px; color: var(--muted); }
.search-suggestions .place-attribution a { display: inline !important; color: inherit; font-size: inherit; padding: 0; text-decoration: underline; }
.nav-search button { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; background: none; border: 0; border-radius: 50%; color: #fafaf7; }
.nav-search svg { width: 18px; height: 18px; }
.nav-search:focus-within { border-color: var(--cyan); background: transparent; }
.nav-search, .search { position: relative; }
.search-suggestions { position: absolute; z-index: 50; top: calc(100% + 10px); left: 0; width: min(380px, calc(100vw - 48px)); padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 35px rgba(0,0,0,.18); text-align: left; }
.search .search-suggestions { width: 100%; }
.suggestions-list { max-height: min(360px, 55dvh); overflow-y: auto; overscroll-behavior: contain; }
.search-suggestions .search-option { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: auto; padding: 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; white-space: normal; }
.search-option:hover, .search-option[aria-selected="true"] { background: var(--paper); }
.search-option .suggestion-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: var(--paper); color: #10252d; font-size: 20px; }
.search-option strong { display: block; font-size: 13px; line-height: 1.35; font-weight: 650; }
.search-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.search-option.location-option { margin-bottom: 5px; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.search-option.location-option .suggestion-icon { background: var(--cyan); }
.search-option.custom-route-option { margin-bottom: 5px; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.search-option.custom-route-option .suggestion-icon { background: color-mix(in srgb, var(--cyan) 32%, var(--paper)); }
.suggestions-status { padding: 8px 12px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero .suggestions-status { margin: 0; font-size: 12px; color: var(--muted); }
.custom-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 128px; padding-bottom: 48px; }
.custom-copy h1 { font-size: clamp(48px, 6vw, 78px); }
.custom-copy p, .custom-planner p, .custom-app-prompt p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.custom-cta { display: inline-flex; background: var(--cyan); color: #10252d; box-shadow: none; margin-top: 14px; }
.custom-availability { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; }
.custom-road { margin: 0; position: relative; }
.custom-road img { display: block; width: 100%; height: 580px; object-fit: cover; border-radius: 30px; }
.custom-road figcaption { position: absolute; left: 22px; bottom: 20px; padding: 9px 13px; border-radius: 999px; background: rgba(24,28,30,.65); color: white; font-size: 11px; }
.custom-planner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.custom-planner h2, .custom-app-prompt h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.04em; }
.planner-steps { list-style: none; margin: 0; padding: 0; }
.planner-steps li { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.planner-steps li > span { color: #287c98; font-size: 14px; font-weight: 750; padding-top: 5px; }
.planner-steps h3 { font-size: 24px; letter-spacing: -.025em; margin: 0 0 10px; }
.planner-steps p { margin: 0; font-size: 15px; }
.custom-explore { display: inline-block; color: #235fc2; font-size: 14px; font-weight: 650; margin-top: 20px; }
.custom-app-prompt { padding: 54px; margin-bottom: 80px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); }
.custom-app-prompt p { max-width: 650px; }
.custom-app-prompt .custom-explore { margin-left: 20px; }
.feature-copy > .custom-explore { display: block; }
.modal .app-cta:disabled { background: var(--cyan); color: #10252d; cursor: default; }
@media (max-width: 850px) {
  .custom-intro, .custom-planner { grid-template-columns: 1fr; gap: 30px; }
  .custom-road img { height: 380px; }
  .custom-app-prompt { padding: 30px 24px; }
}
.route-media { position: relative; height: 245px; background: var(--map); overflow: hidden; }
.route-media .media-frame { position: absolute; inset: 0; display: block; }
.media-pane { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-link { display: block; width: 100%; height: 100%; }
.route-media.route-main-map { height: 608px; }
.route-media .route-map { height: 100%; }
.thumbnail-map { position: relative; z-index: 3; width: 100%; height: 100%; }
.media-toggle { position: absolute; z-index: 5; left: 14px; top: 14px; display: flex; gap: 2px; padding: 4px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(24,28,30,.65); backdrop-filter: blur(14px); }
.media-toggle button { min-height: 34px; border: 0; border-radius: 999px; background: transparent; color: #fafaf7; padding: 7px 14px; font-size: 12px; font-weight: 650; }
.media-toggle button[aria-pressed="true"] { background: var(--cyan); color: #10252d; }
.highlights-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.highlight-card { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.highlight-number { display: grid; place-items: center; align-self: start; width: 54px; height: 54px; background: color-mix(in srgb, var(--cyan) 35%, var(--surface)); border-radius: 16px; color: #10252d; font-size: 19px; font-weight: 700; }
.highlight-card h3 { margin: 2px 0 10px; font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
.highlight-card p { margin: 0; font-size: 16px; line-height: 1.7; }
.map-section { width: min(1440px, calc(100% - 48px)); margin: 0 auto 100px; }
.map-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 12px; margin-bottom: 24px; }
.map-heading h2 { margin: 8px 0 12px; font-size: clamp(36px, 4vw, 56px); letter-spacing: -.04em; }
.map-heading p { color: var(--muted); margin: 0; }
.fit-route { min-height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 10px 18px; font-weight: 650; }
.map-border { padding: 8px; border: 1px solid rgba(38,39,37,.15); border-radius: 34px; background: var(--surface); box-shadow: 0 12px 35px rgba(38,39,37,.07); }
.interactive-route-map { width: 100%; height: clamp(430px, 60vh, 680px); position: relative; z-index: 0; border-radius: 26px; overflow: hidden; background: var(--map); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-control-attribution a { color: #235fc2; text-decoration: underline; }
.leaflet-control-zoom a { color: #262725; }
.map-fallback { height: 100%; display: grid; place-items: center; padding: 32px; }
.map-fallback svg { width: min(620px, 100%); }
.map-fallback p { text-align: center; }
.finish-flag-icon { background: transparent; border: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.finish-flag-icon svg { width: 36px; height: 38px; }
.route-unavailable { padding-top: 160px; min-height: 75vh; }
.route-unavailable p { margin-bottom: 32px; }
@media (max-width: 1050px) {
  .topbar .nav { gap: 12px; }
  .nav { font-size: 12px; }
}
@media (max-width: 850px) { .route-media.route-main-map { height: 428px; } }
@media (max-width: 520px) {
  .topbar .nav { gap: 6px; flex: 1; margin-left: 8px; min-width: 0; }
  .nav-search { flex: 1; width: 95px; min-width: 0; padding-left: 8px; }
  .nav-search input { font-size: 12px; }
  .nav-search button { flex-basis: 26px; width: 26px; }
  .topbar .pill { padding: 10px; min-height: 38px; font-size: 11px; white-space: nowrap; }
  .highlight-card { grid-template-columns: 42px 1fr; padding: 22px 18px; gap: 14px; }
  .highlight-number { width: 42px; height: 42px; font-size: 16px; border-radius: 13px; }
  .highlight-card h3 { font-size: 22px; }
  .map-section { width: calc(100% - 24px); margin-bottom: 80px; }
  .map-heading { align-items: flex-start; flex-direction: column; }
  .map-border { padding: 5px; border-radius: 26px; }
  .interactive-route-map { border-radius: 21px; }
}
@media (max-width: 750px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px 18px; }
  .fact:nth-child(odd) { border-left: 0; }
  .highlights-list { grid-template-columns: 1fr; }
}

/* One shared, labelled stat strip on discovery cards and saved routes. */
.route-card-stats { display: grid; grid-template-columns: 1fr 1.15fr 1.35fr; margin: 17px 0 12px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); }
.route-card-stats > span { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; min-width: 0; }
.route-card-stats > span:first-child { padding-left: 0; }
.route-card-stats > span + span { border-left: 1px solid var(--line); }
.route-card-stats small { font-size: 10px; font-weight: 450; color: var(--muted); white-space: nowrap; }
.route-card-stats strong { font-size: 13px; font-weight: 650; line-height: 1.35; white-space: nowrap; }
.route-card-stats > span:last-child { padding-right: 0; }
.verification-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 5px 9px; border: 1px solid #91ddf9; border-radius: 999px; background: #e3f6fd; color: #17617d; font-size: 10px; font-weight: 700; letter-spacing: .015em; line-height: 1.3; margin-top: 7px; }
.verification-badge svg { width: 16px; height: 16px; flex: 0 0 16px; }
.review-badge { display: inline-block; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; margin-top: 7px; }
.route-media > .verification-badge, .result-thumbnail > .verification-badge { position: absolute; top: 14px; right: 14px; z-index: 6; margin: 0; pointer-events: none; box-shadow: 0 2px 10px #10252d20; }
.result-thumbnail { display: block; position: relative; width: 88px; min-height: 80px; border-radius: 13px; overflow: hidden; }
.result-thumbnail img { display: block; }
.result-thumbnail > .verification-badge { top: 5px; right: 5px; gap: 3px; padding: 4px 6px; font-size: 8px; }
.result-thumbnail > .verification-badge svg { width: 12px; height: 12px; flex-basis: 12px; }
.route-media > .route-photo-save { position: absolute; bottom: 14px; right: 14px; z-index: 6; display: grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; border: 1px solid #ffffffb3; border-radius: 50%; background: #fffffff5; color: #10252d; font-size: 24px; line-height: 1; box-shadow: 0 2px 10px #10252d26; cursor: pointer; }
.route-media > .route-photo-save[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); }
.route-media > .route-photo-save:focus-visible { outline: 2px solid #17617d; outline-offset: 3px; }
.explore-result .route-card-stats { margin: 13px 0 0; }
.explore-result .result-link { margin-left: 0; }
.explore-result .route-card-stats strong { font-size: 12px; }
.saved-card-content > .route-card-stats { margin-bottom: 18px; }
@media (max-width: 380px) { .route-card-stats > span { padding-inline: 7px; } .route-card-stats strong { font-size: 12px; } }
