/* ============================================================
   MAD MAV MOTOPACKING — visual style lifted from madmavbooks.com
   ============================================================
   Same fonts, color tokens, night-sky background, sticky blurred
   header, kicker pills with pulse, glass cards, footer pills.
   Adapted to a globe-as-hero layout instead of 3D books.
   ============================================================ */

/* ─── Custom fonts (copied from madmavbooks.com) ─────────── */
@font-face{font-family:"SF Comic Script";src:url("fonts/SF Comic Script.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"SF Comic Script";src:url("fonts/SF Comic Script Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"SF Comic Script Cond";src:url("fonts/SF Comic Script Condensed.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"SF Comic Script Ext";src:url("fonts/SF Comic Script Extended.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Gallaudet";src:url("fonts/GallaudetRegular-qZe1.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}

:root{
  /* Night-sky palette (identical to madmavbooks.com) */
  --night-0:#00041a;
  --night-1:#000c33;
  --night-2:#001f5e;
  --night-3:#003684;
  --paper:#e6f0ff;
  --paper-dim:#86a3d6;
  --hairline:rgba(134,163,214,0.20);
  --hairline-strong:rgba(134,163,214,0.38);

  --cyan:#22d3ee;
  --teal:#14b8a6;
  --lime:#a3e635;
  --magenta:#ec4899;
  --ember:#fb923c;
  --ember-bright:#f97316;
  --purple:#7c3aed;

  /* Motopacking-specific accents (per-journey pair, themed earthy) */
  --camp:#a3e635;     /* lime — campsites */
  --video:#22d3ee;    /* cyan — video pins */
  --route:#fb923c;    /* ember — default route line */

  /* Type stack */
  --font-display:"SF Comic Script","Comic Sans MS",cursive,sans-serif;
  --font-deaf:"Gallaudet",Georgia,serif;
  --font-body:Arial,"Helvetica Neue",Helvetica,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}

/* Globe-only page: lock the body to viewport height, no scrolling.
   Page-info uses the default scrolling layout. */
body.page-globe, body.page-globe html{
  height:100%;overflow:hidden;
}

html{
  background:
    radial-gradient(1200px 800px at 78% -8%, rgba(20,184,166,0.16), transparent 65%),
    radial-gradient(1000px 700px at 8% 105%, rgba(34,211,238,0.14), transparent 60%),
    radial-gradient(800px 600px at 92% 92%, rgba(236,72,153,0.07), transparent 60%),
    radial-gradient(600px 460px at 30% 60%, rgba(163,230,53,0.04), transparent 70%),
    linear-gradient(180deg, #00041a 0%, #000c33 30%, #001f5e 65%, #003684 100%);
  background-attachment:fixed;
  background-size:cover;
  background-color:#00041a;
  min-height:100%;
}
html,body{color:var(--paper);font-family:var(--font-body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
body{min-height:100vh;overflow-x:hidden;position:relative;background:transparent}

a{color:var(--paper);text-decoration:none}

.wrap{max-width:1240px;margin:0 auto;padding:0 28px}
.muted{color:var(--paper-dim)}

/* ─── Stars + Aurora background ──────────────────────────── */
/* These render the night-sky behind info.html. On index.html they sit
   behind the opaque Cesium canvas/skybox and are not visible — the cube-
   map skybox handles the rotating-sphere-around-the-globe effect there. */
.stars{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.star{
  position:absolute;background:#fff;border-radius:50%;
  animation:twinkle var(--dur,4s) ease-in-out infinite;
  animation-delay:var(--delay,0s);opacity:0;
  box-shadow:0 0 6px rgba(255,255,255,0.45);
}
@keyframes twinkle{0%,100%{opacity:0.1}50%{opacity:var(--peak,0.9)}}
.aurora{position:fixed;inset:-20%;z-index:-1;pointer-events:none;filter:blur(80px);opacity:0.26}
.aurora::before,.aurora::after{
  content:"";position:absolute;width:60%;height:50%;border-radius:50%;
  background:radial-gradient(closest-side, var(--cyan), transparent);
  top:5%;left:10%;
  animation:drift 22s ease-in-out infinite alternate;
}
.aurora::after{
  background:radial-gradient(closest-side, var(--teal), transparent);
  top:30%;left:55%;width:55%;height:45%;
  animation-duration:28s;animation-delay:-8s;
}
@keyframes drift{from{transform:translate(0,0) scale(1)} to{transform:translate(-6%,4%) scale(1.12)}}

/* ─── Header ─────────────────────────────────────────────── */
/* On the globe page (.page-globe) the header is invisible chrome —
   it floats above the globe with no background/border so the Earth
   shows behind it. Brand text + buttons remain readable via their
   own per-element backgrounds + text-shadow.
   The info page restores a subtle background via body.page-info
   override below so brand text doesn't sit on raw aurora gradient. */
header.site{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:transparent;
  pointer-events:none;        /* let clicks pass through empty bar area */
}
header.site .header-inner > *{pointer-events:auto}  /* re-enable on actual content */
body.page-info header.site{
  position:sticky;
  backdrop-filter:blur(14px);
  background:rgba(3,5,26,0.55);
  border-bottom:1px solid var(--hairline);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 28px;gap:20px}
.header-right{display:flex;align-items:center;gap:14px}
/* Brand text on the globe page stays clean — just the gradient,
   no shadow, no outline. If legibility ever becomes a problem over
   bright skyboxes, reintroduce a subtle text-shadow here. */
.brand{display:flex;align-items:center;gap:12px;min-width:0;cursor:pointer;text-decoration:none}
/* Personal logo to the left of the wordmark. The source PNG is already
   a circular badge with the Instagram gradient burned into the rim, so
   we just size it and add a soft shadow for separation against the
   globe. Hidden on very small screens to keep the navbar tight. */
.brand-logo{
  width:44px;height:44px;border-radius:50%;
  display:block;flex-shrink:0;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,0.55));
}
@media (max-width:480px){
  .brand-logo{width:36px;height:36px}
}
.brand-text{
  font-family:var(--font-display);font-weight:700;  /* SF Comic Script Bold — the heaviest weight in /fonts */
  letter-spacing:0.02em;text-transform:uppercase;font-size:24px;line-height:1;
  /* Instagram-style diagonal gradient: warm yellow → orange → red-pink
     → magenta → indigo. Filled into the text glyphs via background-clip
     so each letter wears the full sweep. */
  background:linear-gradient(45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  -webkit-background-clip:text;background-clip:text;color:transparent;
  /* Thin black outline around each glyph. paint-order:stroke fill
     draws the stroke BEHIND the gradient fill so it appears as a
     clean outer ring, not bisecting the glyph edge. */
  -webkit-text-stroke:1px #000;
  paint-order:stroke fill;
}
.brand-text small{
  display:block;font-family:var(--font-body);font-size:10px;letter-spacing:0.32em;
  color:var(--paper-dim);-webkit-text-fill-color:var(--paper-dim);background:none;
  margin-top:4px;font-weight:700;text-transform:uppercase;
}

/* ─── Page nav (Globe / Info) ────────────────────────────── */
.site-nav{display:flex;align-items:center;gap:4px}
.site-nav .nav-link{
  display:inline-block;padding:8px 14px;border-radius:999px;
  font-family:var(--font-body);font-size:11px;font-weight:700;
  letter-spacing:0.22em;text-transform:uppercase;
  color:var(--paper-dim);
  border:1px solid transparent;
  transition:color .2s, background .2s, border-color .2s;
}
.site-nav .nav-link:hover{color:var(--paper);background:rgba(255,255,255,0.04)}
.site-nav .nav-link.active{
  color:var(--paper);
  background:rgba(34,211,238,0.12);
  border-color:rgba(34,211,238,0.35);
}
@media (max-width:600px){
  .site-nav .nav-link{padding:6px 10px;font-size:10px;letter-spacing:0.16em}
}

/* Instructions "?" button in the header — clicking it toggles the
   #globe-hint pill at the bottom of the globe. Matches the social-
   icon visual treatment so it feels like part of the same row. */
.instructions-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,0.04);border:1px solid var(--hairline-strong);
  font-family:var(--font-display);font-size:18px;font-weight:700;
  color:var(--paper);cursor:pointer;
  transition:transform .2s ease,border-color .2s,background .2s,box-shadow .2s;
  padding:0;line-height:1;
}
.instructions-btn:hover{
  transform:translateY(-1px);
  border-color:var(--cyan);background:rgba(34,211,238,0.10);
  box-shadow:0 0 0 4px rgba(34,211,238,0.08);
}
.instructions-btn.is-active{
  border-color:var(--cyan);background:rgba(34,211,238,0.18);color:var(--cyan);
}

nav.socials{display:flex;align-items:center;gap:8px}
nav.socials a{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,0.04);border:1px solid var(--hairline-strong);
  transition:transform .2s ease,border-color .2s,background .2s,box-shadow .2s;
}
nav.socials a:hover{
  transform:translateY(-1px);
  border-color:var(--cyan);background:rgba(34,211,238,0.10);
  box-shadow:0 0 0 4px rgba(34,211,238,0.08);
}
nav.socials a img{width:18px;height:18px;object-fit:contain;display:block}

@media (max-width:760px){
  nav.socials{display:none}
  .brand-text{font-size:16px}
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero{padding:44px 0 32px;text-align:center;position:relative}
.kicker{
  display:inline-block;padding:6px 14px;border-radius:999px;
  border:1px solid var(--hairline-strong);
  font-family:var(--font-body);font-size:10px;font-weight:700;letter-spacing:0.26em;text-transform:uppercase;color:var(--paper-dim);
  margin-bottom:16px;
}
.kicker .pulse{
  display:inline-block;width:6px;height:6px;border-radius:50%;
  background:var(--cyan);box-shadow:0 0 10px var(--cyan);
  margin-right:8px;vertical-align:middle;animation:pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:0.4}50%{opacity:1}}

h1.hero-title{
  font-family:var(--font-display);font-weight:700;font-style:normal;
  font-size:clamp(32px,4.6vw,58px);line-height:1.0;letter-spacing:0.005em;
  text-transform:uppercase;
  max-width:24ch;margin:0 auto;
  text-shadow:0 4px 40px rgba(34,211,238,0.22);
}
h1.hero-title em{
  font-style:normal;font-weight:700;
  background:linear-gradient(90deg,var(--cyan),var(--lime),var(--teal));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

.hero p.lede{margin:18px auto 0;max-width:60ch;color:var(--paper-dim);font-size:15px;line-height:1.55}

/* ─── Globe ──────────────────────────────────────────────── */
/* Old boxed-globe layout (kept for backwards-compat in case anything still uses .globe-wrap) */
.globe-section{padding:24px 0 32px}
.globe-wrap{
  position:relative;
  border-radius:18px;overflow:hidden;
  border:1px solid var(--hairline);
  background:#000;
  box-shadow:0 30px 80px -30px rgba(0,0,0,0.75), 0 0 0 1px rgba(34,211,238,0.10) inset;
  height:74vh;min-height:540px;
  padding:0;
}

/* New fullscreen globe — the body's main content IS the earth.
   Globe spans the entire viewport (top:0) since the navbar is now
   a transparent overlay floating above the globe instead of taking
   vertical space. */
.fullscreen-globe{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  /* Transparent so the page's night-sky background (gradient + aurora +
     stars) shows through Cesium's transparent canvas around the globe. */
  background:transparent;
}
#cesium-container{position:absolute;inset:0}

/* Hide Cesium chrome */
.cesium-viewer-toolbar,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-bottom,
.cesium-viewer-fullscreenContainer,
.cesium-viewer-geocoderContainer{display:none !important}

/* Hover card following cursor */
#hover-card{
  position:absolute;z-index:5;
  background:rgba(2,15,50,0.97);
  backdrop-filter:blur(14px);
  border:1px solid var(--hairline-strong);
  border-radius:12px;
  padding:10px;
  max-width:280px;
  pointer-events:none;
  box-shadow:0 20px 50px rgba(0,0,0,0.65), 0 0 0 1px rgba(34,211,238,0.18);
  transform:translate(14px,14px);
}
#hover-card img{display:block;width:100%;height:auto;border-radius:6px;margin-bottom:8px}
#hover-text{font-size:13px;color:var(--paper);font-family:var(--font-body);line-height:1.45}
#hover-text .pin-type{
  display:inline-block;padding:3px 8px;border-radius:999px;
  font-size:9px;letter-spacing:0.20em;margin-right:8px;
  font-weight:700;text-transform:uppercase;font-family:var(--font-body);
}
#hover-text .pin-type.camp{background:rgba(163,230,53,0.18);color:var(--lime);border:1px solid rgba(163,230,53,0.4)}
#hover-text .pin-type.waypoint{background:rgba(251,146,60,0.18);color:var(--ember);border:1px solid rgba(251,146,60,0.4)}
#hover-text .pin-type.video{background:rgba(34,211,238,0.18);color:var(--cyan);border:1px solid rgba(34,211,238,0.4)}
#hover-text strong{font-family:var(--font-display);font-weight:700;font-size:15px;display:block;margin-top:4px;letter-spacing:0.02em}
#hover-text .sub{color:var(--paper-dim);font-size:11px;letter-spacing:0.12em;text-transform:uppercase;margin-top:4px}
#hover-text .desc{color:var(--paper-dim);font-size:12px;margin-top:6px;line-height:1.5}

/* Floating journey picker (top-left) — anchored to the same corner as
   the #picker-expand button so the collapse/expand handoff happens at
   the same on-screen position, matching the right-side info panel. */
#journey-picker{
  position:absolute;left:16px;top:74px;z-index:4;  /* top:74 clears the floating navbar */
  background:rgba(2,15,50,0.92);
  backdrop-filter:blur(14px);
  border:1px solid var(--hairline-strong);
  border-radius:14px;
  padding:14px;min-width:240px;max-width:300px;
  box-shadow:0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(34,211,238,0.12);
  /* Cap height so the panel never escapes the visible globe area when
     many sections are open. Scrolls internally when content overflows. */
  max-height:calc(100vh - 120px);
  overflow-y:auto;
  /* Slim themed scrollbar (WebKit) to match the dark glass look. */
  scrollbar-width:thin;
  scrollbar-color:rgba(34,211,238,0.35) transparent;
}
#journey-picker::-webkit-scrollbar{width:6px}
#journey-picker::-webkit-scrollbar-thumb{
  background:rgba(34,211,238,0.35);border-radius:3px;
}
#journey-picker::-webkit-scrollbar-thumb:hover{background:rgba(34,211,238,0.6)}
#journey-picker::-webkit-scrollbar-track{background:transparent}
.picker-title{
  font-family:var(--font-body);font-weight:700;
  font-size:10px;letter-spacing:0.24em;text-transform:uppercase;
  color:var(--paper-dim);margin-bottom:10px;
}

/* Header row: title on the left, collapse button on the right. */
.picker-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:10px;gap:10px;
  /* Sticky-position so the collapse button stays visible when the
     picker's internal content scrolls. */
  position:sticky;top:-14px;z-index:5;
  background:rgba(2,15,50,0.92);
  padding-top:14px;margin-top:-14px;  /* re-create the top padding lost by sticky offset */
}
.picker-header .picker-title{margin-bottom:0}

.picker-collapse{
  width:26px;height:26px;flex-shrink:0;
  border-radius:6px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--hairline-strong);
  color:var(--paper-dim);
  cursor:pointer;
  font-size:18px;line-height:1;font-weight:700;
  padding:0;
  display:inline-flex;align-items:center;justify-content:center;
  transition:color .15s,border-color .15s,background .15s;
}
.picker-collapse:hover{
  color:var(--cyan);
  border-color:var(--cyan);
  background:rgba(34,211,238,0.10);
}

/* Floating expand button — shared styling for the two button variants.
   Visible only when its paired panel is collapsed. Positions are set
   per-id below so both buttons live at the TOP of the screen (top-left
   for the picker, top-right for the info panel). Default state is
   HIDDEN (opacity 0 + scaled down + visibility hidden); JS adds the
   .is-visible class to fade them in when the paired panel collapses. */
.picker-expand{
  position:absolute;z-index:4;
  width:44px;height:44px;
  border-radius:12px;
  background:rgba(2,15,50,0.92);
  backdrop-filter:blur(14px);
  border:1px solid var(--hairline-strong);
  color:var(--paper);
  cursor:pointer;
  font-size:20px;line-height:1;
  padding:0;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(34,211,238,0.12);
  /* Default: hidden + scaled down. Enter animation flips this on
     .is-visible. visibility's transition has a 220ms delay so the
     element only becomes interactive after the fade finishes. */
  opacity:0;
  transform:scale(0.85);
  visibility:hidden;
  pointer-events:none;
  transition:
    opacity .22s cubic-bezier(0.4,0,0.2,1),
    transform .22s cubic-bezier(0.4,0,0.2,1),
    visibility 0s linear .22s,
    color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.picker-expand.is-visible{
  opacity:1;
  transform:scale(1);
  visibility:visible;
  pointer-events:auto;
  transition-delay:0s, 0s, 0s, 0s, 0s, 0s, 0s;
}
.picker-expand:hover{
  color:var(--cyan);
  border-color:var(--cyan);
  background:rgba(34,211,238,0.10);
  box-shadow:0 24px 60px rgba(0,0,0,0.7), 0 0 0 4px rgba(34,211,238,0.10);
}
.picker-expand.is-visible:hover{transform:scale(1.04) translateY(-1px)}
#picker-expand{top:74px;left:16px;transform-origin:top left}  /* top:74 clears the floating navbar */
#info-expand  {top:74px;right:16px;transform-origin:top right}

/* Panel collapse animation — panel fades + scales toward its anchor
   corner. transform-origin makes the collapse feel like the panel is
   "tucking into" the expand-button corner. */
#journey-picker, #journey-info{
  transition:
    opacity .22s cubic-bezier(0.4,0,0.2,1),
    transform .22s cubic-bezier(0.4,0,0.2,1),
    visibility 0s linear 0s;
}
#journey-picker{transform-origin:top left}
#journey-info  {transform-origin:top right}
#journey-picker.is-collapsed,
#journey-info.is-collapsed{
  opacity:0;
  transform:scale(0.9);
  visibility:hidden;
  pointer-events:none;
  /* Delay visibility:hidden until after the fade so the panel doesn't
     disappear before the user sees the animation. */
  transition-delay:0s, 0s, .22s;
}

/* Info panel header — same flex layout as picker-header, no stickiness
   needed since the info panel doesn't have internal scroll. */
.info-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:10px;gap:10px;
}
.info-header .info-kicker{margin-bottom:0}
#journey-list{list-style:none;padding:0;margin:0 0 10px;max-height:38vh;overflow-y:auto}
#journey-list li{
  padding:8px 10px;cursor:pointer;border-radius:8px;font-size:13px;
  display:flex;align-items:center;gap:10px;
  font-family:var(--font-body);color:var(--paper);
  border:1px solid transparent;
  transition:background .15s, border-color .15s, color .15s;
}
#journey-list li:hover{background:rgba(253,224,71,0.08);border-color:var(--hairline)}
#journey-list li.active{
  background:rgba(253,224,71,0.18);
  border-color:rgba(253,224,71,0.45);
  color:#fde047;
}
#journey-list li .picker-name{
  flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#journey-list li .year{
  color:var(--paper-dim);font-size:10px;letter-spacing:0.18em;text-transform:uppercase;font-weight:700;
}
#journey-list li.active .year{color:#fde047}

/* Checkbox: custom-styled to fit the dark theme */
#journey-list li .vis-cb{
  appearance:none;-webkit-appearance:none;
  width:16px;height:16px;border-radius:4px;
  border:1.5px solid var(--hairline-strong);
  background:rgba(255,255,255,0.04);
  cursor:pointer;
  position:relative;flex-shrink:0;
  transition:border-color .15s, background .15s;
  margin:0;
}
#journey-list li .vis-cb:hover{border-color:var(--cyan)}
#journey-list li .vis-cb:checked{
  background:var(--cyan);border-color:var(--cyan);
}
#journey-list li .vis-cb:checked::after{
  content:"";position:absolute;left:4px;top:1px;
  width:5px;height:9px;border:solid #00041a;border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
#journey-list li.active .vis-cb:checked{
  background:#fde047;border-color:#fde047;
}

/* Zoom-speed toggle (Fast / Slow) inside the picker */
.speed-toggle{
  display:flex;gap:6px;margin-bottom:4px;
}
.speed-toggle .speed-btn{
  flex:1;
  background:rgba(255,255,255,0.04);
  color:var(--paper-dim);
  border:1px solid var(--hairline-strong);
  padding:7px 10px;border-radius:8px;cursor:pointer;
  font-family:var(--font-body);font-size:11px;font-weight:700;
  letter-spacing:0.16em;text-transform:uppercase;
  transition:background .15s, border-color .15s, color .15s;
}
.speed-toggle .speed-btn:hover{
  border-color:var(--cyan);color:var(--paper);
}
.speed-toggle .speed-btn.active{
  background:rgba(34,211,238,0.18);
  border-color:var(--cyan);
  color:var(--cyan);
}

/* Map-layers subsection inside the picker */
.picker-divider{
  height:1px;background:var(--hairline);margin:14px -4px 12px;
}
.layer-list{list-style:none;padding:0;margin:0}
.layer-list li{
  padding:6px 10px;border-radius:8px;font-size:13px;
  display:flex;align-items:center;gap:10px;
  font-family:var(--font-body);color:var(--paper);
  transition:background .15s;
}
.layer-list li:hover{background:rgba(34,211,238,0.06)}
.layer-list li label{cursor:pointer;flex:1}
.layer-list li .vis-cb{
  appearance:none;-webkit-appearance:none;
  width:16px;height:16px;border-radius:4px;
  border:1.5px solid var(--hairline-strong);
  background:rgba(255,255,255,0.04);
  cursor:pointer;position:relative;flex-shrink:0;
  transition:border-color .15s, background .15s;
  margin:0;
}
.layer-list li .vis-cb:hover{border-color:var(--cyan)}
.layer-list li .vis-cb:checked{background:var(--cyan);border-color:var(--cyan)}
.layer-list li .vis-cb:checked::after{
  content:"";position:absolute;left:4px;top:1px;
  width:5px;height:9px;border:solid #00041a;border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

/* Active-journey info panel (top-right) */
#journey-info{
  position:absolute;right:16px;top:74px;z-index:4;  /* top:74 clears the floating navbar */
  width:300px;max-width:42vw;
  background:rgba(2,15,50,0.92);
  backdrop-filter:blur(14px);
  border:1px solid var(--hairline-strong);
  border-radius:14px;
  padding:18px 20px;
  box-shadow:0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(34,211,238,0.12);
}
.info-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:5px 12px;border-radius:999px;
  background:rgba(34,211,238,0.10);border:1px solid var(--hairline-strong);
  font-family:var(--font-body);font-size:10px;font-weight:700;
  letter-spacing:0.22em;text-transform:uppercase;color:var(--paper-dim);
  margin-bottom:10px;
}
.info-kicker .pulse{width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 8px var(--cyan);animation:pulse 2.4s ease-in-out infinite}
#journey-info h2{
  font-family:var(--font-display);font-weight:700;font-size:22px;
  line-height:1.1;letter-spacing:0.01em;text-transform:uppercase;
  margin-bottom:8px;
}
#journey-info p{font-size:13px;color:var(--paper-dim);line-height:1.5;font-family:var(--font-body)}
.info-counts{
  display:flex;gap:10px;margin-top:12px;flex-wrap:wrap;
  font-family:var(--font-body);font-size:10px;letter-spacing:0.18em;text-transform:uppercase;font-weight:700;
}
.info-counts span{
  padding:4px 10px;border-radius:999px;
  border:1px solid var(--hairline-strong);
  color:var(--paper);
}
.info-counts .camp-c{background:rgba(163,230,53,0.10);border-color:rgba(163,230,53,0.4);color:var(--lime)}
.info-counts .wp-c{background:rgba(251,146,60,0.10);border-color:rgba(251,146,60,0.4);color:var(--ember)}
.info-counts .vid-c{background:rgba(34,211,238,0.10);border-color:rgba(34,211,238,0.4);color:var(--cyan)}

/* Ghost button used for "Show all routes" and About links */
.ghost-btn{
  width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:rgba(255,255,255,0.04);
  color:var(--paper);
  border:1px solid var(--hairline-strong);
  padding:9px 14px;border-radius:10px;cursor:pointer;
  font-family:var(--font-body);font-size:11px;font-weight:700;
  letter-spacing:0.20em;text-transform:uppercase;
  transition:border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.ghost-btn:hover{
  transform:translateY(-1px);
  border-color:var(--cyan);
  background:rgba(34,211,238,0.10);
  box-shadow:0 0 0 4px rgba(34,211,238,0.08);
}

/* ─── Journey cards section ──────────────────────────────── */
.journeys-section{padding:40px 0 40px}
.section-head{
  display:flex;align-items:baseline;justify-content:space-between;
  flex-wrap:wrap;gap:14px;margin-bottom:28px;
  padding-bottom:14px;border-bottom:1px solid var(--hairline);
}
.section-head h2{
  font-family:var(--font-display);font-weight:700;
  font-size:24px;letter-spacing:0.02em;text-transform:uppercase;
}
.section-head .count{
  font-family:var(--font-body);font-size:12px;letter-spacing:0.22em;
  text-transform:uppercase;color:var(--paper-dim);
}

.journey-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
}
@media (max-width:980px){.journey-grid{grid-template-columns:1fr;gap:18px;max-width:480px;margin:0 auto}}

/* Card wrapper exists so the Download-KML overlay anchor can sit
   outside the card's <a> (nested anchors aren't valid HTML). */
.journey-card-wrap{position:relative}
.jc-download{
  position:absolute;top:14px;right:14px;z-index:3;
  padding:5px 10px;border-radius:6px;
  background:rgba(0,0,0,0.55);
  border:1px solid var(--hairline-strong);
  font-family:var(--font-body);font-size:10px;font-weight:700;
  letter-spacing:0.20em;text-transform:uppercase;
  color:var(--paper-dim);
  transition:color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.jc-download:hover{
  color:var(--cyan);
  border-color:var(--cyan);
  background:rgba(34,211,238,0.14);
  transform:translateY(-1px);
  box-shadow:0 0 0 4px rgba(34,211,238,0.08);
}

.journey-card{
  position:relative;
  display:flex;flex-direction:column;gap:10px;
  padding:22px 24px;border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border:1px solid var(--hairline);
  cursor:pointer;
  transition:transform .3s cubic-bezier(0.2,0.8,0.2,1), border-color .3s, box-shadow .3s;
  overflow:hidden;
}
/* "VIEW →" hover pseudo-element removed — the always-visible
   .jc-download badge now occupies the top-right corner of every card,
   and the card's own hover state (border + transform + box-shadow)
   already makes it obvious the card itself is clickable. */
.journey-card:hover{transform:translateY(-4px);border-color:var(--cyan);box-shadow:0 24px 60px -22px rgba(0,0,0,0.7), 0 0 0 1px var(--cyan) inset}

.journey-card .jc-kicker{
  font-family:var(--font-body);font-size:10px;font-weight:700;
  letter-spacing:0.24em;text-transform:uppercase;color:var(--paper-dim);
}
.journey-card .jc-title{
  font-family:var(--font-display);font-weight:700;font-size:24px;
  line-height:1.1;letter-spacing:0.01em;text-transform:uppercase;
  background:linear-gradient(90deg, var(--a, var(--cyan)), var(--b, var(--teal)));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.journey-card .jc-blurb{
  font-family:var(--font-body);font-size:14px;color:var(--paper-dim);line-height:1.5;flex:1;
}
.journey-card .jc-meta{
  display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;
  padding-top:10px;border-top:1px dashed var(--hairline);
}
.journey-card .jc-meta span{
  font-family:var(--font-body);font-size:10px;font-weight:700;
  letter-spacing:0.18em;text-transform:uppercase;color:var(--paper);
  padding:4px 8px;border-radius:6px;
  border:1px solid var(--hairline-strong);
}
.journey-card .jc-meta .camp-c{background:rgba(163,230,53,0.10);border-color:rgba(163,230,53,0.35);color:var(--lime)}
.journey-card .jc-meta .wp-c{background:rgba(251,146,60,0.10);border-color:rgba(251,146,60,0.35);color:var(--ember)}
.journey-card .jc-meta .vid-c{background:rgba(34,211,238,0.10);border-color:rgba(34,211,238,0.35);color:var(--cyan)}
.journey-card .jc-meta .km{background:rgba(20,184,166,0.10);border-color:rgba(20,184,166,0.35);color:var(--teal)}

/* ─── About section ──────────────────────────────────────── */
.about-section{padding:48px 0 24px}
.about-wrap{text-align:center;max-width:780px;margin:0 auto}
.about-wrap h2{
  font-family:var(--font-display);font-weight:700;font-size:clamp(28px,4vw,42px);
  line-height:1.05;letter-spacing:0.005em;text-transform:uppercase;
  margin:12px 0 18px;
}
.about-wrap p{font-family:var(--font-body);font-size:16px;line-height:1.65;color:var(--paper-dim)}
.about-wrap p strong{color:var(--paper)}
.about-links{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:24px}
.about-links .ghost-btn{width:auto;padding:11px 22px}

/* ─── Footer (same pill style as madmavbooks.com) ────────── */
footer{
  margin-top:60px;padding:50px 0 70px;
  border-top:1px solid var(--hairline);
  color:var(--paper-dim);
  font-family:var(--font-body);font-size:13px;
}
.foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px;letter-spacing:0.06em}
.foot-socials{display:flex;gap:14px;flex-wrap:wrap}
.foot-socials a{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--paper-dim);font-size:11px;letter-spacing:0.22em;text-transform:uppercase;
  padding:6px 12px 6px 6px;border-radius:999px;
  background:rgba(255,255,255,0.03);border:1px solid var(--hairline-strong);
  transform-origin:center;
  transition:color .2s,border-color .2s,background .2s,
             transform .25s cubic-bezier(0.34, 1.56, 0.64, 1),
             box-shadow .25s ease;
}
.foot-socials a:hover{
  color:var(--paper);border-color:var(--cyan);background:rgba(34,211,238,0.10);
  transform:scale(1.12);
  box-shadow:0 6px 20px -6px rgba(34,211,238,0.35), 0 0 0 4px rgba(34,211,238,0.08);
}
.foot-socials a img{width:20px;height:20px;object-fit:contain;display:block}
.foot-socials a img[src*="gmail"]{
  border-radius:5px;background:#fff;padding:3px;box-sizing:border-box;
  box-shadow:0 0 0 1px rgba(255,255,255,0.15);
}
.copy{color:#4a527a;font-size:11px;letter-spacing:0.1em}

/* ─── Camera-position readouts (bottom-left of globe) ───────────── */
/* Two small monospace input-pills stacked in the bottom-left:
     #altitude-readout — camera altitude above Earth's surface
     #latlon-readout   — camera position lat / lon (decimal degrees)
   Both update live as the camera moves AND accept typed input —
   type a value, press Enter, camera flies there. Used to tune
   thresholds (max-zoom-out, tent scaling, home view) and to
   teleport to a specific coordinate quickly. */
#search-readout,
#altitude-readout,
#latlon-readout{
  position:absolute;left:16px;z-index:4;
  background:rgba(2,15,50,0.7);
  backdrop-filter:blur(8px);
  border:1px solid var(--hairline-strong);
  border-radius:999px;
  padding:5px 12px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:10px;
  letter-spacing:0.06em;color:var(--paper-dim);
  white-space:nowrap;
  box-shadow:0 4px 16px rgba(0,0,0,0.4);
  outline:none;
  cursor:text;
  width:auto;
  /* Input-reset so the field doesn't get the OS default styling. */
  -webkit-appearance:none;appearance:none;
}
#search-readout  {bottom:66px;width:280px}  /* top pill — wider for place names */
#altitude-readout{bottom:40px;width:120px}  /* middle pill */
#latlon-readout  {bottom:14px;width:180px}  /* bottom pill */
#search-readout:focus,
#altitude-readout:focus,
#latlon-readout:focus{
  color:var(--paper);
  background:rgba(2,15,50,0.92);
  border-color:var(--cyan);
  box-shadow:0 4px 16px rgba(0,0,0,0.5), 0 0 0 3px rgba(34,211,238,0.18);
}
#search-readout::placeholder,
#altitude-readout::placeholder,
#latlon-readout::placeholder{color:var(--paper-dim);opacity:0.55}
/* Brief feedback states on the search pill — JS toggles these. */
#search-readout.is-loading{border-color:rgba(34,211,238,0.55);color:var(--paper)}
#search-readout.is-error  {border-color:rgba(248,113,113,0.6);color:rgba(248,113,113,0.85)}

/* ─── Globe hint (control instructions, bottom of globe) ─── */
/* Hidden by default — toggled visible by the "?" instructions
   button in the navbar (see #instructions-btn). When hidden,
   stays in the DOM with opacity:0 + pointer-events:none so the
   transition animates both directions. */
#globe-hint{
  position:absolute;left:50%;bottom:14px;transform:translateX(-50%);
  z-index:4;
  background:rgba(2,15,50,0.85);
  backdrop-filter:blur(10px);
  border:1px solid var(--hairline-strong);
  border-radius:999px;
  padding:7px 16px;
  font-family:var(--font-body);font-size:11px;
  letter-spacing:0.12em;color:var(--paper-dim);
  pointer-events:none;
  text-align:center;white-space:nowrap;max-width:calc(100% - 32px);
  box-shadow:0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,211,238,0.10);
  opacity:0;transform:translate(-50%, 8px);
  transition:opacity .25s ease, transform .25s ease;
}
#globe-hint.is-visible{
  opacity:1;transform:translate(-50%, 0);
}
#globe-hint b{color:var(--paper);font-weight:700;letter-spacing:0.08em}
@media (max-width:520px){
  #globe-hint{font-size:10px;padding:6px 12px}
  #globe-hint b{letter-spacing:0.04em}
}

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width:760px){
  .globe-wrap{height:70vh;min-height:440px;border-radius:14px}
  /* Note: #journey-picker NO LONGER goes full-width at 760px —
     Mavrick prefers it to stay at its normal 240-300px size even
     when the desktop window is narrowed. Phones can scroll. */
  #journey-info{display:none}  /* hide on small screens to keep the globe usable */
  .hero{padding:32px 0 18px}
  .foot{justify-content:center;text-align:center}
  /* Globe spans the full viewport; the floating navbar sits over it
     instead of pushing it down, so no top offset needed. */
}
