/* ==================================================================
   THE NORTHLANDER WAYFINDER: STYLES
   Warm & rustic Northern Ontario theme. Mobile-first.
   ================================================================== */

:root{
  --ink:#14212b;
  --paper:#eef1f3;
  --paper-2:#e1e7eb;
  /* Warm ivory used for the stat strip and map section so both
     areas read as one unified warm block, with no grey undertone. */
  --ivory:#e6ecf0;
  --card:#ffffff;
  --rail:#12405f;        /* deep evergreen */
  --rail-deep:#0b2f4a;   /* richer evergreen for header + footer */
  --rail-2:#1c5c85;
  --ember:#e3a92f;       /* warm amber (signal lamp) */
  --ember-d:#c89525;
  --gold:#e3a92f;
  --line:#c9d3da;
  --muted:#4a5a66;       /* stronger contrast against cream for legibility */
  --shadow:0 10px 30px rgba(11,47,74,.13);

  /* ----- WPA poster palette (Stage 1 vintage redesign) -----
     Slightly desaturated, like aged poster ink. */
  --poster-cream:#eef1f3;
  --poster-paper:#e1e7eb;
  --poster-sun:#e6ecf0;
  --poster-gold:#e3a92f;
  --poster-mustard:#c89525;
  --poster-orange:#c98a14;
  --poster-orange-d:#a8700f;
  --poster-crimson:#1c5c85;
  --poster-teal-l:#8fb3cc;
  --poster-teal:#1c5c85;
  --poster-teal-d:#12405f;
  --poster-forest:#0b2f4a;
  --poster-rail-brown:#2f4a5b;
  --poster-ink:#14212b;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Spline Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  /* Bumped from default 16px to ~17px for mobile reading comfort
     without disturbing the rem-based layout. */
  font-size:1.0625rem;
  background:var(--paper);color:var(--ink);line-height:1.68;
  -webkit-font-smoothing:antialiased;
  /* subtle paper grain */
  background-image:radial-gradient(rgba(11,47,74,.05) 1px,transparent 1px);
  background-size:4px 4px;
  position:relative;
}

/* ---------- paper texture overlay ----------
   Inline SVG fractal-noise rendered as a tiled background image,
   pinned via a body::before pseudo-element so it floats above
   everything else without intercepting clicks. mix-blend-mode
   multiply lets it darken slightly into the page palette and feel
   like real ink-on-paper grain. Opacity is intentionally tiny
   (~5%) so it reads as texture, not noise. */
body::before{
  content:"";
  position:fixed;inset:0;
  pointer-events:none;
  z-index:9999;
  opacity:.05;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size:240px 240px;
}
h1,h2,h3,h4{font-family:'Fraunces',Georgia,serif;line-height:1.12;font-weight:900}
img{max-width:100%;display:block}
a{color:inherit}

/* ---------- shared ---------- */
.section-head{padding:0 1.25rem;margin-bottom:1.4rem}
.section-head.center{text-align:center}
.section-head .kicker,.kicker{
  font-size:.72rem;letter-spacing:.26em;text-transform:uppercase;
  font-weight:700;color:var(--poster-crimson);
}
.section-head h2{font-size:clamp(1.9rem,7vw,2.7rem);margin-top:.35rem}
.section-head p{color:var(--muted);margin-top:.4rem;font-size:.97rem}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.85rem 1.5rem;border-radius:4px;font-weight:600;
  font-size:.95rem;text-decoration:none;border:2px solid transparent;
  transition:transform .15s,background .2s,box-shadow .2s;cursor:pointer;
}
.btn:active{transform:scale(.97)}
.btn-primary{
  /* A darker rust than poster-crimson so the button reads at the same
     depth as the stat numerals on the cream stat strip below the hero. */
  background:#12405f;color:var(--poster-cream);
  border-color:#12405f;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
/* Hover swaps to deep forest green for clear contrast against the
   crimson rest state. Previous hover used poster-orange-d which
   was a near-identical brown and read as muddy. */
.btn-primary:hover{
  background:var(--rail);border-color:var(--rail);
  color:var(--poster-cream);
}
/* Ghost button now sits over a photographic background, so it
   gets a translucent dark fill plus cream text and border. That
   keeps it readable on the lake/foliage area without competing
   with the solid crimson primary button. */
.btn-ghost{
  background:rgba(18,28,38,.35);color:var(--poster-cream);
  border-color:var(--poster-cream);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
.btn-ghost:hover{
  background:var(--poster-cream);color:var(--rail);
  border-color:var(--poster-cream);
}

/* Gold button for the hero's main call to action. Dark navy text keeps
   good contrast on the gold. */
.btn-gold{
  background:var(--gold);color:#0b2f4a;
  border-color:var(--gold);
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
.btn-gold:hover{
  background:#f0b93f;border-color:#f0b93f;color:#0b2f4a;
}

/* ---------- top bar ----------
   Solid deep forest green at all times. No gradients, no
   transparency, no scroll based color change. The logo and links
   are cream and read clearly on the green bar at every scroll
   position and screen size. */
.topbar{
  /* z-index 1200 (above Leaflet's .leaflet-top at 1000) so the
     map's + / - zoom controls sit BEHIND the sticky header when
     the visitor scrolls, not over top of it. */
  position:sticky;top:0;z-index:1200;
  background:var(--rail-deep);
  color:#eef1f3;
  display:flex;align-items:center;justify-content:space-between;
  padding:.65rem 1.1rem;padding-top:max(.65rem,env(safe-area-inset-top));
  box-shadow:0 2px 12px rgba(0,0,0,.18);
}
.brand{
  font-family:'Fraunces',serif;font-weight:900;font-size:1.18rem;
  text-decoration:none;color:#eef1f3;letter-spacing:-.01em;
  /* gap:0 so the flex gap does NOT push "Northlander" and "Guide"
     apart (they are separate flex items: a text node + a span).
     The icon gets its spacing from .brand-mark margin instead. */
  display:flex;align-items:center;gap:0;
}
/* "Guide" picks up the same mustard gold accent as the hero
   headline accent so the logo and headline match. It sits flush
   against "Northlander" with no separating space. */
.brand span{color:var(--poster-gold);font-style:normal}
.brand-mark{display:flex;flex-shrink:0;line-height:0;margin-right:.5rem}
.brand-mark svg,.brand-mark img{display:block}
/* Spacing intent: column-gap is the single source of truth for the
   distance between topnav items. An earlier rule added margin-left
   on top of column-gap, which doubled the space between consecutive
   <a> elements (e.g. "Plan a Trip" -> "Get the App") while leaving
   <a>-to-<button> gaps untouched, so the row read uneven. */
.topnav{display:flex;align-items:baseline;column-gap:.85rem}
.topnav a{
  color:#eef1f3;text-decoration:none;font-size:.82rem;font-weight:600;
  letter-spacing:.02em;
  transition:color .15s ease;
}
.topnav a:hover{color:var(--gold)}

/* Hamburger button: hidden by default, shown only at the mobile
   breakpoint. Three stacked bars morph into an X when .open. */
.hamburger{
  display:none;
  background:transparent;border:0;cursor:pointer;
  width:40px;height:40px;padding:8px;
  flex-direction:column;justify-content:space-between;align-items:stretch;
  border-radius:4px;
}
.hamburger span{
  display:block;height:2.5px;width:100%;
  background:#eef1f3;border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
  transform-origin:center;
}
.hamburger.open span:nth-child(1){transform:translateY(9px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}

/* Mobile menu drawer. display:none on desktop so it stays out of
   the tab order. At <768px it switches to display:flex and slides
   down from above when .open is added. The 767px breakpoint is the
   inclusive upper bound for "mobile" (matches the spec of "under
   768px"). */
.mobilemenu{display:none}
@media (max-width:767px){
  .topnav{display:none}
  .hamburger{display:flex}
  .mobilemenu{
    display:flex;flex-direction:column;
    position:fixed;top:0;left:0;right:0;z-index:998;
    background:var(--rail-deep);
    padding:calc(env(safe-area-inset-top,0) + 56px) 1.4rem 1.4rem;
    transform:translateY(-100%);
    transition:transform .3s ease;
    box-shadow:0 8px 24px rgba(0,0,0,.28);
  }
  .mobilemenu.open{transform:translateY(0)}
  /* Drawer is scrollable as a safety net; the accordion keeps things
     compact enough that scrolling is rarely needed even with every
     section open. Fallbacks for iOS versions that don't support dvh. */
  .mobilemenu{
    overflow-y:auto;
    max-height:100vh;
    max-height:100dvh;
    -webkit-overflow-scrolling:touch;
  }
  /* Sign in row at the top, own utility affordance in gold. */
  .mobilemenu a.mobilemenu-signin{
    display:flex;align-items:center;gap:.5rem;
    color:var(--poster-gold);
    font-family:'Fraunces',serif;font-weight:700;
    font-size:1.15rem;
    padding:.4rem 0 .95rem;
    text-decoration:none;
    border-bottom:1px solid rgba(238,241,243,.14);
    margin-bottom:.35rem;
  }
  .mobilemenu a.mobilemenu-signin i{font-size:1.3rem;line-height:1}
  .mobilemenu a.mobilemenu-signin:hover{color:#eef1f3}
  /* Accordion section (Explore / Plan / Get Involved / Resources).
     Uses native <details>: no JS, keyboard support built in. */
  .mobilemenu-group{
    border-bottom:1px solid rgba(238,241,243,.12);
  }
  .mobilemenu-group:last-of-type{border-bottom:none}
  /* Summary: the always-visible section header. Hide the browser
     default disclosure marker so we can render our own caret. */
  .mobilemenu-group summary{
    display:flex;align-items:center;justify-content:space-between;
    padding:.95rem .1rem;
    color:#eef1f3;
    font-family:'Fraunces',serif;font-weight:700;font-size:1.2rem;
    cursor:pointer;list-style:none;
    outline:none;
  }
  .mobilemenu-group summary::-webkit-details-marker{display:none}
  .mobilemenu-group summary::marker{content:''}
  .mobilemenu-group summary:hover,
  .mobilemenu-group summary:focus-visible{color:var(--poster-gold)}
  .mobilemenu-caret{
    font-size:1rem;color:var(--poster-gold);
    transition:transform .18s ease;
  }
  .mobilemenu-group[open] .mobilemenu-caret{transform:rotate(180deg)}
  @media (prefers-reduced-motion:reduce){
    .mobilemenu-caret{transition:none}
  }
  /* Link list inside the accordion body. Indented, slightly muted,
     tight vertical rhythm so a section reads as a scannable menu
     rather than a wall of headings. */
  .mobilemenu-links{
    display:flex;flex-direction:column;
    padding:0 0 .5rem .35rem;
  }
  .mobilemenu-links a{
    color:#eef1f3;text-decoration:none;
    font-family:'Spline Sans',sans-serif;font-weight:500;
    font-size:.98rem;
    padding:.5rem .1rem;
    opacity:.92;
  }
  .mobilemenu-links a:hover,
  .mobilemenu-links a:focus{color:var(--poster-gold);opacity:1}
}

/* ---------- route progress bar ---------- */
.routebar{
  position:sticky;top:51px;z-index:999;height:3px;
  background:rgba(11,47,74,.12);
}
.routebar-fill{
  height:100%;width:0;
  background:var(--poster-crimson);
  transition:width .15s ease-out;
}

/* respect users who prefer less motion */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* ---------- Phosphor icons ----------
   Every UI icon is a Phosphor Icon (loaded from the CDN in index.html).
   Icons inherit the colour and size of their surrounding text, and
   vertical-align tucks them onto the text baseline. Size and colour
   utility classes are available for one-off overrides. */
.ph, .ph-light, .ph-fill {
  font-size: inherit;
  color: inherit;
  vertical-align: -0.125em;
  line-height: 1;
}
.icon-sm { font-size: 16px; }
.icon-md { font-size: 20px; }
.icon-lg { font-size: 24px; }
.icon-xl { font-size: 32px; }
.icon-brown { color: #1c5c85; }
.icon-green { color: #0b2f4a; }
.icon-ivory { color: #eef1f3; }
.icon-gold { color: #c89525; }
.catfilter button .ic{display:inline-flex;align-items:center;line-height:1}
.catfilter button .ic .ph-light{font-size:1.15em;vertical-align:0}
.rating .ph-light{font-size:.95em;margin-right:.18em}
.detail-loc .ph-light,.evcard .where .ph-light{margin-right:.05em}
/* Buttons that combine an icon + text get a small gap and flex
   centering so the icon never collides with the label. */
.share-row button{display:inline-flex;align-items:center;gap:.45rem}
.backbtn{display:inline-flex;align-items:center;gap:.45rem}
.card-cta{display:inline-flex;align-items:center;gap:.25rem}

/* ---------- reveal-on-scroll ----------
   .reveal wrappers (and the few elements that get .reveal directly,
   like .section-head) start invisible and gently lifted. JS adds
   .is-visible via IntersectionObserver as the element enters the
   viewport. The wrapper pattern keeps the rise transform off the
   inner card itself so the card's hover lift stays snappy at its
   own duration.
   prefers-reduced-motion is already handled by the global block
   above (transitions collapse to ~0ms, so reveals snap in). */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s cubic-bezier(.23,1,.32,1),
             transform .55s cubic-bezier(.23,1,.32,1);
  will-change:opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}
/* Cascade siblings: when a row of listing cards or event cards all
   enter the viewport at once, stagger their reveals so the group
   reads as a cascade instead of a single thunk. */
.cards > .reveal:nth-child(2){transition-delay:.06s}
.cards > .reveal:nth-child(3){transition-delay:.12s}
.cards > .reveal:nth-child(4){transition-delay:.18s}
.cards > .reveal:nth-child(5){transition-delay:.24s}
.cards > .reveal:nth-child(6){transition-delay:.30s}
.cards > .reveal:nth-child(n+7){transition-delay:.36s}
.evlist > .reveal:nth-child(2){transition-delay:.06s}
.evlist > .reveal:nth-child(3){transition-delay:.12s}
.evlist > .reveal:nth-child(4){transition-delay:.18s}
.evlist > .reveal:nth-child(n+5){transition-delay:.24s}

/* ---------- hero (Stage 5: real illustrated background) ----------
   The hand-built SVG landscape from earlier stages was replaced
   with an illustrated photograph of the actual route scenery (a
   heron at a calm Northern Ontario lake in autumn). The image is
   absolutely positioned to cover the hero area; a soft top-down
   dark gradient sits between the image and the text so the light
   headline stays legible without washing out the heron and lake
   below. */
.hero{
  position:relative;overflow:hidden;color:var(--poster-cream);
  isolation:isolate;
  /* Content sits in the upper band over the sky/treeline so the
     painted train reads as a clear scene below the headline. Top
     padding kept tight so the train shows through cleanly. */
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:clamp(0.5rem,2vh,1.4rem) 1.2rem 2.4rem;
  min-height:clamp(460px,60vh,640px);
}
.hero-img{
  position:absolute;inset:0;z-index:-2;
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  display:block;
}
/* Soft dark gradient over the text region only. Slightly stronger
   than the previous pass so the subtitle paragraph stays crisp,
   but still fades to fully transparent in the lower portion so
   the heron, lake, and trees read clearly. */
.hero::before{
  content:"";
  position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,
    rgba(18,28,38,.78) 0%,
    rgba(18,28,38,.60) 32%,
    rgba(18,28,38,.28) 60%,
    rgba(18,28,38,0)   88%);
  pointer-events:none;
}

.hero-inner{
  position:relative;width:100%;max-width:1080px;margin:0 auto;
  text-align:center;
  animation:heroRise .7s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

.hero .kicker{
  color:var(--poster-cream);display:block;
  margin-bottom:1.4rem;
  letter-spacing:.32em;font-size:.78rem;font-weight:700;
  text-shadow:0 1px 4px rgba(0,0,0,.55);
}
.hero h1{
  /* "Every stop has a story" is a five-word headline, so the
     clamp max is tuned to keep it on one line on desktop within
     the 960px hero-inner while still feeling large. On mobile the
     smaller end of the clamp lets it wrap naturally to two lines
     rather than forcing a <br>. text-wrap:balance keeps the wrap
     points even. */
  font-size:clamp(3.25rem,8vw,6rem);
  letter-spacing:-.02em;line-height:1.02;
  text-wrap:balance;
  /* Generous space below the headline so the painted train shows
     through cleanly between the title and the tagline on desktop.
     Scales down on shorter viewports so mobile stays compact. */
  margin:0 0 clamp(2.2rem,9vh,6rem);
  color:var(--poster-cream);
  text-shadow:0 2px 10px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.5);
}
@media(min-width:768px){
  /* Desktop: keep it on a single line. */
  .hero h1{white-space:nowrap}
  /* Desktop: drop the tagline and CTA group lower on the banner so
     the composition feels balanced against the painted train. Pushes
     the gap between the headline and the subtitle wider without
     touching mobile, where space is tight. */
  .hero h1{margin-bottom:clamp(4.5rem,16vh,10rem)}
}
.hero h1 em{
  font-style:italic;color:var(--poster-gold);
  text-shadow:0 2px 10px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.5);
}
.hero-sub{
  position:relative;
  isolation:isolate;
  color:var(--poster-cream);
  /* Tagline: ~18px, lighter weight (400) than before. */
  font-size:1.125rem;line-height:1.55;font-weight:400;
  max-width:54ch;margin:0 auto 1.2rem;
  /* Multi-layered soft text shadow gives every letter a quiet
     halo that fades to nothing. No box, no edges. */
  text-shadow:
    0 0 14px rgba(0,0,0,.7),
    0 0 6px rgba(0,0,0,.8),
    0 1px 3px rgba(0,0,0,.7);
}
/* Very soft blurred dark glow sitting just behind the paragraph
   text. Radial fade plus a blur filter means there are no visible
   rectangle edges, just a quiet ambient darkening that helps the
   text read over the busy water reflections. */
.hero-sub::before{
  content:"";
  position:absolute;
  inset:-18px -28px;
  background:radial-gradient(ellipse at center,
    rgba(8,14,20,.42) 0%,
    rgba(8,14,20,.18) 55%,
    rgba(8,14,20,0)   100%);
  filter:blur(12px);
  z-index:-1;
  pointer-events:none;
}
/* Two buttons side by side on desktop, third button spanning both
   columns underneath. Max-width caps how wide the pair can grow so
   the third button reads as "same width as the pair" rather than
   ballooning across the whole hero. Under 600px everything stacks
   into three full-width rows for one-handed thumb tapping. */
.hero-cta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.8rem;
  max-width:640px;
  margin:1rem auto 0;
}
/* Every button in the hero-cta grid stretches to fill its cell.
   .btn is inline-flex by default which doesn't always stretch under
   grid; forcing display:flex + width:100% guarantees the box shows
   at every viewport width. */
.hero-cta .btn{display:flex;width:100%}
.hero-cta-wide{grid-column:1 / -1}
.hero-cta-arrow{vertical-align:-2px;margin-left:4px}
@media (max-width:600px){
  .hero-cta{grid-template-columns:1fr}
  .hero-cta-wide{grid-column:1}
}

/* Hero stats: dramatic editorial scale shift. The numbers are the
   loudest thing on the page (huge Fraunces, tightly tracked); the
   labels below collapse to whisper-tiny small-caps. The contrast
   between the giant number and the tiny label *is* the design. */
.hero-stats{
  position:relative;display:flex;justify-content:center;gap:0;
  background:var(--ivory);
  color:var(--poster-ink);
  border-top:4px solid var(--poster-crimson);
  padding:2rem 0 1.6rem;
}
.hero-stats div{
  flex:1;text-align:center;
  padding:0 .4rem;
  border-right:1px solid rgba(28,92,133,.22);
  background:transparent;
  position:relative;
}
.hero-stats div:last-child{border-right:none}
.hero-stats b{
  display:block;
  position:relative;
  font-family:'Fraunces',serif;
  font-weight:900;
  font-size:clamp(4rem,14vw,9rem);
  color:var(--poster-crimson);
  line-height:.85;
  letter-spacing:-.04em;
  /* A barely-there warm shadow gives the numerals a touch of
     ink-on-paper depth. */
  text-shadow:0 1px 0 rgba(11,47,74,.04);
}
.hero-stats span{
  /* inline-block + a negative margin-right equal to the
     letter-spacing cancels the trailing gap that letter-spacing
     adds after the last character. The parent column centres the
     inline-block by its (now corrected) box, so the visible label
     sits truly centred under the number. Cleaner and more reliable
     than text-indent, which over-compensated. */
  display:inline-block;
  margin-top:.9rem;
  margin-right:-.34em;
  font-size:.6rem;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--poster-rail-brown);
  font-weight:700;
}
/* The "~" on "~11": taken OUT of flow and positioned just to the
   upper-left of the centred "11". Because it no longer occupies
   layout space, the "11" centres in its column on its own, so the
   HOURS label (also centred) sits exactly under the "11" rather
   than under the wider "~11" group. The .44em offset is half the
   width of "11" in this face, nudging the mark to the digit's
   left edge. */
.hero-stats .approx{
  position:absolute;
  top:.06em;
  right:calc(50% + .44em);
  font-size:.5em;
  line-height:1;
  font-weight:900;
  opacity:.5;
  letter-spacing:0;
}
@media(min-width:720px){
  .hero-stats{padding:3rem 0 2.4rem}
  .hero-stats span{font-size:.65rem;letter-spacing:.38em;margin-right:-.38em;margin-top:1.1rem}
}



/* ---------- stopnav (rail + slab) ----------
   Replaces the old map section and the old directory chips. A
   vertical rail of 16 station circles on the left; a content slab
   on the right that shows the selected stop. Same metaphor on
   every screen size; mobile uses an off-canvas slide so the slab
   takes over the screen when a stop is open.
   ------------------------------------------------------------------ */
.stopnav{
  background:var(--ivory);
  padding:2rem 0;
  position:relative;
  /* So scrollIntoView() (on card tap / back) lands below the
     sticky topbar instead of tucking the top under it. */
  scroll-margin-top:56px;
}
@media (min-width:768px){
  .stopnav{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:2.5rem;
    max-width:1280px;
    margin:0 auto;
    padding:3rem 1.5rem 4rem;
    align-items:start;
  }
}

/* RAIL: vertical list of station circles + names + regions */
.rail{
  position:relative;
  padding:0 1.25rem;
}
@media (min-width:768px){
  .rail{
    padding:0;
    position:sticky;
    top:80px;
    align-self:start;
    max-height:calc(100vh - 100px);
    overflow-y:auto;
  }
}
.rail-head{
  margin:0 0 1rem 3rem;
}
/* Kicker: small rust label above the h2, directs the eye. */
.rail-head .kicker{
  display:block;margin-bottom:.25rem;
  font-family:'Spline Sans',sans-serif;font-weight:700;
  font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--poster-crimson);
}
.rail-head h2{
  font-family:'Fraunces',serif;
  font-size:1.4rem;font-weight:900;line-height:1.05;
  color:var(--ink);
}
/* Mobile: the rail is the primary navigation surface, so the CTA
   header carries more weight to tell first-time visitors what to
   do. Bumps size + gives the kicker a proper CTA tone. */
@media (max-width:767px){
  .rail-head{margin:0 0 .9rem 3rem}
  .rail-head .kicker{font-size:.78rem}
  .rail-head h2{font-size:1.6rem;line-height:1.1}
}
.rail-stops{
  list-style:none;
  margin:0;padding:0;
  position:relative;
}
/* The actual rail line: a thin vertical brown rule that runs down
   the middle of all the station circles. Sits behind the circles
   via z-index so they read as ink dots on a printed rail. */
.rail-stops::before{
  content:"";
  position:absolute;
  left:21px;
  top:18px;
  bottom:18px;
  width:2.5px;
  background:var(--poster-rail-brown);
  opacity:.28;
  z-index:0;
}
.rail-stops li{margin:0}
.rail-stop{
  display:flex;align-items:center;
  gap:.85rem;
  padding:.55rem .5rem;
  background:transparent;border:none;
  width:100%;text-align:left;cursor:pointer;
  font-family:'Spline Sans',sans-serif;
  color:var(--ink);
  position:relative;
  z-index:1;
  border-radius:4px;
  transition:background .15s ease;
}
/* Desktop: more breathing room between stops in the route rail. */
@media (min-width:768px){
  .rail-stops li{margin-bottom:.45rem}
  .rail-stops li:last-child{margin-bottom:0}
  .rail-stop{padding:.7rem .55rem}
}
/* Mobile first-time hint: pulse the first stop and label it so a new
   visitor knows to tap. Both effects stop once .rail-stops gains the
   .tapped class, which JS adds on first tap and persists via
   localStorage. */
@media (max-width:767px){
  .rail-stops li:first-child .rail-circle{
    animation:railPulse 1.8s ease-in-out infinite;
  }
  .rail-stops li:first-child .rail-stop::after{
    content:"Tap to start";
    position:absolute;right:14px;top:50%;
    transform:translateY(-50%);
    font-family:'Spline Sans',sans-serif;
    font-size:11px;letter-spacing:.16em;text-transform:uppercase;
    color:var(--poster-crimson);font-weight:700;
    animation:railHintFade 1.8s ease-in-out infinite;
    pointer-events:none;
  }
  .rail-stops.tapped li:first-child .rail-circle{animation:none}
  .rail-stops.tapped li:first-child .rail-stop::after{display:none}
}
@keyframes railPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(28,92,133,.45);transform:scale(1)}
  50%{box-shadow:0 0 0 12px rgba(28,92,133,0);transform:scale(1.06)}
}
@keyframes railHintFade{
  0%,100%{opacity:.55}
  50%{opacity:1}
}
.rail-circle{
  flex:0 0 38px;height:38px;
  border-radius:50%;
  background:var(--card);
  border:2.5px solid var(--poster-rail-brown);
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif;font-weight:900;
  font-size:.86rem;
  color:var(--poster-rail-brown);
  transition:background .18s ease, border-color .18s ease,
             color .18s ease, transform .18s ease,
             box-shadow .18s ease;
}
.rail-text{
  display:flex;flex-direction:column;
  gap:.1rem;
  min-width:0;flex:1;
}
.rail-name{
  font-weight:700;
  font-size:.95rem;line-height:1.15;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.rail-region{
  font-size:.7rem;
  color:var(--muted);
  letter-spacing:.06em;text-transform:uppercase;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
@media (hover:hover) and (pointer:fine){
  .rail-stop:hover{background:rgba(28,92,133,.06)}
  .rail-stop:hover .rail-circle{
    border-color:var(--poster-crimson);
    color:var(--poster-crimson);
    transform:scale(1.06);
  }
}
.rail-stop:active{transform:scale(.985)}
.rail-stop[aria-selected="true"] .rail-circle{
  background:var(--poster-crimson);
  border-color:var(--poster-crimson);
  color:var(--poster-cream);
  box-shadow:0 4px 10px rgba(28,92,133,.25);
}
.rail-stop[aria-selected="true"] .rail-name{
  color:var(--poster-crimson);
}
.rail-stop:focus-visible{
  outline:2px solid var(--poster-crimson);
  outline-offset:2px;
}

/* SLAB: the detail panel that holds the selected stop's content */
.slab{
  background:var(--card);
  border:1px solid rgba(28,92,133,.18);
  border-radius:4px;
  min-height:60vh;
  overflow:hidden;
  position:relative;
  box-shadow:0 10px 28px rgba(11,47,74,.08);
}
.slab-back{display:none}

/* MOBILE: the rail is the full-screen first view. Tapping a circle
   hides the rail and shows the slab (with a short slide-in
   entrance). Rail and slab toggle via display rather than absolute
   positioning, so the page scrolls naturally, tall slab content is
   never clipped, and the sticky back bars work against the page
   scroll. */
@media (max-width:767px){
  .stopnav{
    display:block;
    padding:1.4rem 0 2rem;
  }
  /* Default view: rail shown, slab hidden. */
  .slab{
    display:none;
    overflow:visible;
    min-height:0;
    margin:0;
    border:none;border-radius:0;
    box-shadow:none;
  }
  .stopnav.detail-open .rail{display:none}
  .stopnav.detail-open .slab{
    display:block;
    animation:slabIn .32s cubic-bezier(.2,.7,.2,1) both;
  }
  /* "Back to route" bar: full-width solid sticky header. Hidden
     while a single listing detail is open, where the detail's own
     "Back to <stop>" bar takes over. */
  .slab-back{
    display:flex;align-items:center;gap:.4rem;
    position:sticky;top:52px;z-index:55;
    background:var(--card);
    margin:0;
    padding:.8rem 1rem;
    border:none;
    border-bottom:1px solid rgba(28,92,133,.15);
    color:var(--poster-crimson);
    font-family:'Spline Sans',sans-serif;
    font-size:.88rem;font-weight:700;
    width:100%;text-align:left;cursor:pointer;
  }
  .slab.detail-listing .slab-back{display:none}
  .slab-back-arrow{
    font-size:1.6rem;line-height:1;
    margin-top:-3px;
  }
  .slab-back:active{background:rgba(28,92,133,.05)}
}
@keyframes slabIn{
  from{opacity:0;transform:translateX(24px)}
  to{opacity:1;transform:none}
}

/* ---------- map preview card (tap/click) ----------
   Bottom-sheet on mobile (slides up from the bottom of the
   viewport, full width). On wider screens it floats with rounded
   corners and a small bottom offset, capped at 440px wide. */
.map-preview{
  position:fixed;bottom:0;left:50%;
  transform:translateX(-50%) translateY(110%);
  visibility:hidden;
  width:100%;max-width:480px;
  background:var(--card);
  border-top-left-radius:4px;border-top-right-radius:4px;
  box-shadow:0 -14px 36px rgba(11,47,74,.24);
  z-index:2000;
  /* Closing transition: snappy ease-in so dismissal feels fast.
     The .open rule below overrides this with a slower ease-out
     curve for entry so the user sees the card decide to appear. */
  transition:transform .18s cubic-bezier(.4,0,1,1), visibility .18s;
  padding-bottom:env(safe-area-inset-bottom,0);
  font-family:'Spline Sans',sans-serif;
}
.map-preview.open{
  transform:translateX(-50%) translateY(0);
  visibility:visible;
  transition:transform .32s cubic-bezier(.2,.7,.2,1), visibility .32s;
}
.map-preview-img{
  position:relative;width:100%;
  aspect-ratio:16/9;background:var(--paper-2);
  border-top-left-radius:4px;border-top-right-radius:4px;
  overflow:hidden;
}
.map-preview-img img,.map-preview-img svg{
  width:100%;height:100%;object-fit:cover;display:block;
}
.map-preview-body{
  position:relative;
  padding:1.5rem 1.2rem 1.3rem;
}
.map-preview-num{
  position:absolute;top:-22px;left:1.1rem;
  width:44px;height:44px;border-radius:50%;
  background:var(--poster-crimson);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif;font-weight:900;font-size:1.1rem;
  border:3px solid var(--card);
  box-shadow:0 4px 10px rgba(0,0,0,.28);
}
.map-preview-body h3{
  font-family:'Fraunces',serif;font-weight:900;
  font-size:1.4rem;color:var(--rail);
  margin:0 0 .4rem;line-height:1.15;
}
.map-preview-body p{
  font-size:.95rem;line-height:1.5;color:var(--muted);
  margin:0 0 1.1rem;
}
.map-preview-open{
  width:100%;font-size:.95rem;
}
.map-preview-close{
  position:absolute;top:.55rem;right:.55rem;z-index:3;
  background:rgba(238,241,243,.92);color:var(--rail);
  border:none;border-radius:50%;
  width:34px;height:34px;
  font-size:1.45rem;font-weight:700;line-height:1;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  font-family:'Spline Sans',sans-serif;
  transition:background .15s, color .15s;
}
.map-preview-close:hover{background:#fff;color:var(--poster-crimson)}

@media (min-width:720px){
  .map-preview{
    bottom:1.5rem;
    border-radius:4px;
    max-width:420px;
  }
}

/* map fallback (shown only if Leaflet can't load) */
.map-fallback{
  background:var(--card);padding:1rem;
}
.fallback-note{
  text-align:center;color:var(--muted);font-size:.84rem;
  font-style:italic;margin-bottom:.8rem;
}
.fallback-route{list-style:none;display:grid;gap:.5rem}
.fallback-route li{
  display:flex;gap:.8rem;align-items:center;cursor:pointer;
  background:var(--paper);border:1.5px solid var(--line);
  border-radius:4px;padding:.65rem .8rem;transition:border-color .15s;
}
.fallback-route li:hover{border-color:var(--poster-crimson)}
.fb-num{
  flex:0 0 28px;height:28px;border-radius:50%;
  background:var(--rail);color:#fff;border:2px solid var(--poster-crimson);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:.8rem;
}
.fb-body{display:flex;flex-direction:column;line-height:1.3}
.fb-body b{font-family:'Fraunces',serif;font-size:1rem;color:var(--rail)}
.fb-body em{font-size:.8rem;color:var(--muted);font-style:italic}

/* ---------- explore ---------- */
.explore{padding:1.4rem 0 1.5rem;max-width:1080px;margin:0 auto}
.searchbar{padding:0 1.25rem;margin-bottom:1.1rem}
.searchbar input{
  width:100%;font-family:'Spline Sans',sans-serif;font-size:1rem;
  padding:.95rem 1.1rem;border:2px solid var(--line);border-radius:4px;
  background:var(--card);color:var(--ink);
  transition:border-color 160ms ease, box-shadow 160ms ease;
}
.searchbar input:focus{
  outline:none;border-color:var(--poster-crimson);
  box-shadow:0 0 0 3px rgba(28,92,133,.18);
}

/* stop chips: horizontal scroll on mobile.
   Tight bottom padding keeps the scrollbar nestled close to the
   chip row (so it reads as "the chip slider"). A generous
   margin-bottom then opens clear breathing room between the
   slider and the stop card directly below. */
.stopchips{
  display:flex;gap:.5rem;overflow-x:auto;
  padding:.3rem 1.25rem .5rem;margin-bottom:2rem;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin;
  /* Firefox uses scrollbar-color (thumb track). Matches the
     poster-crimson rusty brown used for the route progress bar. */
  scrollbar-color:var(--poster-crimson) transparent;
}
.stopchips::-webkit-scrollbar{height:7px}
.stopchips::-webkit-scrollbar-thumb{background:var(--poster-crimson);border-radius:4px}
.chip{
  flex:0 0 auto;font-family:'Spline Sans',sans-serif;font-size:.85rem;
  font-weight:600;padding:.55rem 1rem;border-radius:4px;
  border:2px solid var(--line);background:var(--card);color:var(--ink);
  cursor:pointer;white-space:nowrap;
  transition:transform 160ms ease-out,
             background-color .15s ease, color .15s ease,
             border-color .15s ease;
}
@media (hover:hover) and (pointer:fine){
  .chip:hover{border-color:var(--rail)}
}
.chip:active{transform:scale(.97)}
.chip.active{background:var(--rail);color:#fff;border-color:var(--rail)}
.chip .ord{opacity:.5;margin-right:.35rem;font-variant-numeric:tabular-nums}

/* ---------- stop panel ---------- */
.stop{padding:0 1.25rem 1.5rem;animation:fade .22s cubic-bezier(.23,1,.32,1) both}
/* The hero is the first child of .stop and needs to fill the slab
   edge-to-edge, so it escapes .stop's horizontal padding via a
   matching negative margin. Everything else inside .stop stays
   padded normally. */
.stop > .reveal:first-child{
  margin:0 -1.25rem 1.5rem;
}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- full-bleed stop poster ----------
   The illustrated stop poster is the strongest visual asset on the
   site, so it earns the headline treatment: it breaks out of the
   .explore max-width AND the .stop horizontal padding to span the
   full viewport, and it sits at 55-75vh tall so it actually
   dominates the fold. The label band at the bottom keeps the same
   content but the type gets dramatic. */
.stop-hero{
  position:relative;
  /* Fills the slab end-to-end. The slab is its own container so the
     hero does not need to escape to the viewport edges any more;
     it just sits flush inside. */
  width:100%;
  margin:0 0 0;
  overflow:hidden;
  /* Warm placeholder tone behind the poster so it fades up from cream
     instead of flashing white before the photo paints. */
  background:#e1e7eb;
}
.stop-hero svg,.stop-hero .stop-art svg{
  display:block;width:100%;
  height:clamp(320px, 50vh, 520px);
  object-fit:cover;
}
.stop-photo{
  display:block;width:100%;
  height:clamp(320px, 50vh, 520px);
  object-fit:cover;
}
/* Desktop poster: ~60vh, still the loudest thing in the slab. */
@media(min-width:768px){
  .stop-hero svg,.stop-hero .stop-art svg{
    height:clamp(440px, 60vh, 720px);
  }
  .stop-photo{height:clamp(440px, 60vh, 720px)}
}
/* Label band: bigger, more breathable, with stronger gradient
   support so the type sits on a real darkness instead of fighting
   the photo. */
.stop-hero .label{
  position:absolute;left:0;right:0;bottom:0;
  /* Taller gradient with a smoother multi-stop fade, so the dark
     area reads as a gentle wash up the image rather than a hard
     band. Spans the full width of the poster (no max-width cap)
     so there is no visible edge where the gradient stops. */
  padding:5.5rem 1.6rem 1.8rem;
  background:linear-gradient(
    transparent 0%,
    rgba(11,47,74,.18) 28%,
    rgba(11,47,74,.55) 62%,
    rgba(11,47,74,.95) 100%);
  color:#eef1f3;
}
@media(min-width:720px){
  .stop-hero .label{padding:9rem 3rem 3rem}
}
/* Ord badge: bigger and squarer, like a poster's plate number. */
.stop-hero .ord-badge{
  position:absolute;top:1.2rem;left:1.2rem;z-index:2;
  background:var(--poster-crimson);color:#eef1f3;
  width:54px;height:54px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif;font-weight:900;font-size:1.35rem;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
  border:2px solid rgba(238,241,243,.4);
}
@media(min-width:720px){
  .stop-hero .ord-badge{
    top:2rem;left:2rem;
    width:72px;height:72px;font-size:1.8rem;
  }
}
/* The big-deal headline: dramatic Fraunces, tight letter-spacing,
   responsive scale that lets it really sing on desktop. */
.stop-hero h3{
  font-family:'Fraunces',serif;font-weight:900;
  font-size:clamp(2.2rem, 7vw, 5rem);
  line-height:.95;
  letter-spacing:-.025em;
  color:#fff;
  text-shadow:0 2px 14px rgba(0,0,0,.4);
  margin:.4rem 0 .5rem;
}
.stop-hero .region{
  font-size:.72rem;letter-spacing:.32em;text-transform:uppercase;
  color:var(--poster-gold);font-weight:700;
}
@media(min-width:720px){
  .stop-hero .region{font-size:.82rem;letter-spacing:.38em}
}
.stop-hero .hook{
  font-family:'Fraunces',serif;font-style:italic;font-weight:500;
  font-size:clamp(1.05rem, 2vw, 1.4rem);
  line-height:1.4;
  color:#e1e7eb;margin-top:.5rem;
  max-width:42ch;
}

.stop-meta{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.stop-meta .pill{
  background:var(--card);border:1.5px solid var(--line);
  border-radius:4px;padding:.3rem .8rem;font-size:.78rem;
}
.stop-meta .pill b{color:var(--rail)}
.stop-blurb{color:#14212b;margin-bottom:1.3rem;padding:0 .15rem}

.share-row{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}
/* Primary CTA leading the utility row: filled rust so the eye lands
   here first. Sends the visitor to the fuller /stops/<slug> page
   (with walking radius map, dedicated hero, events grid). What's On,
   Copy link, and Share stay in ghost style beside it. */
.share-row .explore-stop-btn{
  display:inline-flex;align-items:center;gap:.45rem;
  font-family:'Spline Sans',sans-serif;font-size:.82rem;font-weight:600;
  padding:.5rem .95rem;border-radius:4px;text-decoration:none;
  background:var(--poster-crimson);color:var(--poster-cream);
  border:2px solid var(--poster-crimson);
  transition:transform 160ms ease-out,
             background-color .15s ease, color .15s ease,
             border-color .15s ease;
}
.share-row .explore-stop-btn i{color:var(--poster-cream)}
@media (hover:hover) and (pointer:fine){
  .share-row .explore-stop-btn:hover{
    background:#12405f;border-color:#12405f;color:#f7f9fa;
    transform:translateY(-1px);
  }
}
.share-row .explore-stop-btn:active{transform:scale(.97)}
@media (prefers-reduced-motion:reduce){
  .share-row .explore-stop-btn{transition:none}
  .share-row .explore-stop-btn:hover,
  .share-row .explore-stop-btn:active{transform:none}
}
.share-row button{
  font-family:'Spline Sans',sans-serif;font-size:.82rem;font-weight:600;
  padding:.5rem .95rem;border-radius:4px;cursor:pointer;
  border:2px solid var(--rail);background:transparent;color:var(--rail);
  transition:transform 160ms ease-out,
             background-color .15s ease, color .15s ease;
}
@media (hover:hover) and (pointer:fine){
  .share-row button:hover{background:var(--rail);color:#fff}
}
.share-row button:active{transform:scale(.97)}
/* The What's On jump button shares the share-row chrome but pulses a
   subtle rust halo every few seconds so the eye finds it without
   resizing the row. Filled-rust default so it leads visually. */
.share-row button[data-jump="events"]{
  background:var(--poster-crimson);border-color:var(--poster-crimson);color:#f7f9fa;
  animation:whats-on-pulse 3s ease-in-out infinite}
.share-row button[data-jump="events"]:hover{background:#12405f;border-color:#12405f;color:#f7f9fa}
@keyframes whats-on-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(28,92,133,0)}
  50%{box-shadow:0 0 0 6px rgba(28,92,133,.16)}
}
@media (prefers-reduced-motion: reduce){
  .share-row button[data-jump="events"]{animation:none}
}

/* category filter.
   Parent of the four category buttons. Was overflow-x:auto so it
   could scroll horizontally on narrow screens, but that also
   clipped the top of any button while it lifted on hover.
   Switched to overflow:visible (no clipping) and flex-wrap:wrap
   (buttons wrap to a second row on narrow screens instead of
   overflowing). Added padding-top:8px so the hover lift has room
   above the row without nudging the row down. */
.catfilter{
  display:flex;gap:.4rem;flex-wrap:nowrap;
  overflow-x:auto;overflow-y:visible;
  /* Desktop padding-bottom (~1rem) leaves ~.75rem of visible air
     between the pill bottoms and the horizontal scrollbar sitting
     at the bottom of this row. Margin-bottom is 0 so all the gap
     between the scrollbar and the SHOW row lives on the sort-bar's
     padding-top instead (kept equal for visual symmetry). */
  padding:.45rem 0 1rem;
  margin-bottom:0;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
@media (max-width:767px){
  .catfilter{padding:.3rem 0 .3rem;margin-bottom:0}
}
/* Mobile category picker. On desktop the chip row keeps the
   editorial character the owner wanted; on mobile we swap to a
   labelled select styled so it clearly reads as tappable (bold
   label above, large crimson chevron, cream background). */
.catfilter-mobile{display:none}
@media (max-width:767px){
  .catfilter{display:none}
  .catfilter-mobile{display:block;margin:.4rem 0 .8rem}
  .catfilter-mobile-label{
    display:block;font-family:'Spline Sans',sans-serif;
    font-size:.68rem;font-weight:700;letter-spacing:.16em;
    text-transform:uppercase;color:var(--poster-crimson);
    margin:0 0 .35rem;
  }
  .catfilter-mobile-field{position:relative}
  .catfilter-select{
    display:block;width:100%;
    background:#f7f9fa;border:2px solid var(--poster-crimson);border-radius:6px;
    padding:.8rem 3rem .8rem 1rem;
    font-family:'Spline Sans',sans-serif;font-size:1rem;font-weight:700;
    color:var(--poster-ink);line-height:1.2;
    appearance:none;-webkit-appearance:none;cursor:pointer;
    transition:background .18s ease,border-color .18s ease;
  }
  .catfilter-select:focus{outline:none;background:#fff;
    box-shadow:0 0 0 3px rgba(28,92,133,.18)}
  .catfilter-mobile-caret{
    position:absolute;right:14px;top:50%;transform:translateY(-50%);
    font-size:1.4rem;color:var(--poster-crimson);pointer-events:none;
    font-style:normal;
  }
}
.catfilter::-webkit-scrollbar{height:4px}
.catfilter::-webkit-scrollbar-thumb{background:rgba(28,92,133,.3);border-radius:4px}
.catfilter button{
  flex:0 0 auto;font-family:'Spline Sans',sans-serif;font-size:.84rem;
  font-weight:600;padding:.55rem 1.05rem;border-radius:4px;cursor:pointer;
  border:2px solid var(--line);background:var(--card);color:var(--muted);
  display:flex;align-items:center;gap:.45rem;
  white-space:nowrap;
  /* No browser-default focus outline: the default outline can
     visually detach from the button when transform is applied on
     hover. The element's own border (transformed with the button)
     handles all state indication. Keyboard focus picks up
     :focus-visible below for accessibility. */
  outline:none;
  /* Match transform timing with border-color so the lift and the
     border colour change land together. */
  transition:transform .22s cubic-bezier(.2,.7,.2,1),
             box-shadow .22s ease, color .22s ease,
             background .22s ease, border-color .22s ease;
}
.catfilter button:focus-visible{
  border-color:var(--rail);
  box-shadow:0 0 0 3px rgba(11,47,74,.18);
}
.catfilter button .ic{font-size:1rem;line-height:1}
.catfilter button .cnt{
  background:var(--line);color:var(--ink);border-radius:4px;
  font-size:.68rem;padding:.05rem .4rem;min-width:18px;text-align:center;
  transition:background .2s ease, color .15s ease;
}
/* Subtle lift on desktop hover, matching the listing card hover. */
@media (hover:hover){
  .catfilter button:hover{
    color:var(--rail);
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(11,47,74,.14);
    border-color:var(--rail);
  }
  .catfilter button.active:hover{color:#fff}
}
.catfilter button.active{background:var(--poster-crimson);color:#fff;border-color:var(--poster-crimson)}
.catfilter button.active .cnt{background:rgba(255,255,255,.28);color:#fff}
.catfilter button:active{transform:scale(.97)}

/* ===== Sort + filter bar under the category tabs =====
   Three mutually exclusive sort pills (Featured / Closest)
   plus a stackable Local Deals filter. Smaller and lighter than the
   category tabs so the hierarchy reads clearly. */
.sort-bar{
  display:flex;align-items:center;gap:.4rem;flex-wrap:nowrap;
  overflow-x:auto;overflow-y:visible;
  /* Desktop padding-top matches the visible air above the catfilter's
     scrollbar so the scrollbar sits symmetrically between the two
     pill rows. Mobile has its own tighter override further down. */
  padding:.75rem 0 12px;margin:0 0 1.25rem;
  scrollbar-width:thin;-webkit-overflow-scrolling:touch;
}
.sort-bar::-webkit-scrollbar{height:4px}
.sort-bar::-webkit-scrollbar-thumb{background:rgba(28,92,133,.3);border-radius:4px}
.sort-bar .sort-label{
  flex:0 0 auto;font-family:'Spline Sans',sans-serif;
  font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;
  font-weight:700;color:var(--muted);padding-right:.3rem;white-space:nowrap;
}
.sort-bar .sort-pill,
.sort-bar .deals-pill{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:.35rem;
  font-family:'Spline Sans',sans-serif;font-size:.78rem;font-weight:600;
  color:var(--muted);background:transparent;
  border:1.5px solid var(--line);border-radius:999px;
  padding:.32rem .75rem;cursor:pointer;white-space:nowrap;
  transition:color .15s,border-color .15s,background .15s,transform .15s;
}
.sort-bar .sort-pill i,
.sort-bar .deals-pill i{font-size:1.05em;color:var(--poster-crimson)}
.sort-bar .sort-pill:hover,
.sort-bar .deals-pill:hover{color:var(--ink);border-color:var(--poster-crimson);transform:translateY(-1px)}
.sort-bar .sort-pill.active{
  color:#fff;background:var(--poster-crimson);border-color:var(--poster-crimson);
}
.sort-bar .sort-pill.active i{color:#fff}
.sort-bar .deals-pill.active{
  color:#fff;background:var(--gold);border-color:var(--gold);
}
.sort-bar .deals-pill.active i{color:#fff}
.sort-bar .sort-divider{
  flex:0 0 auto;width:1px;height:1.1em;background:var(--line);margin:0 .25rem;
}
/* Reset button clears every active filter and sort in one click. Only
   rendered when at least one filter is active (the `hidden` attr is
   toggled by updateSortBarVisuals), so it's not visual noise on a
   clean sort bar. Round icon-only affordance sized to match the pills
   next to it. */
.sort-bar .sort-reset{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:1.85rem;height:1.85rem;
  background:transparent;color:var(--muted);
  border:1.5px solid var(--line);border-radius:999px;
  cursor:pointer;margin-left:.15rem;padding:0;
  transition:color .15s,border-color .15s,background .15s,transform .15s;
}
.sort-bar .sort-reset i{font-size:1rem;color:var(--poster-crimson)}
.sort-bar .sort-reset:hover{
  color:var(--ink);border-color:var(--poster-crimson);transform:rotate(-45deg);
}
@media (prefers-reduced-motion:reduce){
  .sort-bar .sort-reset{transition:none}
  .sort-bar .sort-reset:hover{transform:none}
}
.sort-bar .sort-reset[hidden]{display:none}

/* Show more button that appears under the listings grid when the
   per-category cap (LISTINGS_CAP in app.js) hides some listings.
   Subtle rust ghost so it reads as a page control, not a card. */
.show-more-cards{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  width:100%;
  padding:.85rem 1.2rem;margin-top:.6rem;
  background:transparent;color:var(--poster-crimson);
  border:1.5px solid var(--poster-crimson);border-radius:4px;
  font-family:'Spline Sans',sans-serif;
  font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  cursor:pointer;
  transition:background .15s,color .15s,transform .15s;
}
.show-more-cards:hover{
  background:var(--poster-crimson);color:var(--poster-cream);
  transform:translateY(-1px);
}
.show-more-cards i{font-size:1.1em}
@media (prefers-reduced-motion:reduce){
  .show-more-cards{transition:none}
  .show-more-cards:hover{transform:none}
}

/* ==================================================================
   STOP-PANEL APP TEASER
   Compact polaroid strip between the listing cards and the events
   block on the homepage stop panel. Kraft paper background + tilted
   polaroid mirror the aesthetic used on individual /stops/<slug>
   pages and /plan-a-trip so all three surfaces read as one system.
   Uses negative side margins to full-bleed inside the .stop panel
   (which has 1.25rem horizontal padding).
   ================================================================== */
.stop-app-teaser{
  position:relative;
  margin:1.75rem -1.25rem 1.5rem;
  padding:1.75rem 1.25rem 2rem;
  background:
    linear-gradient(180deg, #e1e7eb 0%, #c9d3da 100%);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(11,47,74,.05) 0, rgba(11,47,74,.05) 1px,
      transparent 1px, transparent 9px);
}
.stop-app-teaser-inner{
  display:grid;grid-template-columns:auto 1fr;
  align-items:center;gap:1.75rem;
  max-width:820px;margin:0 auto;
}
/* Small polaroid on the left. Same paper + shadow language as the
   individual-stop-page scrapbook polaroids, just half the size. */
.stop-app-teaser-polaroid{
  position:relative;flex:0 0 auto;
  width:150px;margin:0;
  background:#f7f9fa;
  padding:10px 10px 12px;
  box-shadow:
    0 8px 20px rgba(11,47,74,.28),
    0 2px 4px rgba(11,47,74,.15);
  font-family:'Fraunces',Georgia,serif;
  transform:rotate(-4deg);
  animation:stop-teaser-sway 8s ease-in-out infinite;
  transition:transform .3s cubic-bezier(.2,.7,.2,1);
}
.stop-app-teaser-polaroid img{
  width:100%;aspect-ratio:1/1;object-fit:cover;display:block;
  background:#c9d3da;
}
.stop-app-teaser-polaroid figcaption{
  text-align:center;padding:5px 3px 1px;
}
.stop-app-teaser-polaroid figcaption strong{
  display:block;font-family:'Fraunces',Georgia,serif;
  font-weight:700;font-style:italic;font-size:14px;
  color:var(--rail-deep);line-height:1.1;margin:3px 0 0;
}
.stop-app-teaser-cap{
  display:inline-flex;align-items:center;gap:5px;
  font-family:'Spline Sans',sans-serif;
  text-transform:uppercase;letter-spacing:.2em;
  font-size:8px;font-weight:700;color:var(--poster-crimson);
}
.stop-app-teaser-dot{
  width:3px;height:3px;border-radius:50%;background:var(--poster-crimson);
}
/* Masking-tape corner accent. Same recipe as the other polaroids. */
.stop-app-teaser-tape{
  position:absolute;top:-6px;left:-10px;
  width:48px;height:14px;
  background:rgba(11,47,74,.7);
  border:1px solid rgba(11,47,74,.25);
  box-shadow:0 1px 2px rgba(11,47,74,.1);
  transform:rotate(-32deg);
}
@keyframes stop-teaser-sway{
  0%,100%{transform:rotate(-4deg)}
  50%{transform:rotate(-3deg) translateY(-2px)}
}
.stop-app-teaser-polaroid:hover{
  transform:rotate(0deg) translateY(-3px) scale(1.03);
  animation-play-state:paused;
}

/* Copy column on the right. */
.stop-app-teaser-copy{min-width:0}
.stop-app-teaser-kicker{
  display:inline-block;
  font-family:'Spline Sans',sans-serif;
  text-transform:uppercase;letter-spacing:.22em;
  font-size:10px;font-weight:700;
  color:var(--poster-crimson);
  margin-bottom:.4rem;
}
.stop-app-teaser-h4{
  font-family:'Fraunces',serif;
  font-weight:700;line-height:1.1;
  font-size:1.35rem;
  color:var(--ink);
  margin:0 0 .5rem;
}
.stop-app-teaser-h4 em{
  font-style:italic;color:var(--rail-deep);
}
.stop-app-teaser-deck{
  font-family:'Fraunces',Georgia,serif;
  font-size:.92rem;line-height:1.55;
  color:#14212b;
  margin:0 0 .9rem;
  max-width:52ch;
}
.stop-app-teaser-cta{
  display:flex;align-items:center;gap:1rem;flex-wrap:wrap;
}
.stop-app-teaser-btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.55rem 1rem;
  background:var(--rail-deep);color:var(--poster-cream);
  text-decoration:none;
  font-family:'Spline Sans',sans-serif;
  font-size:.78rem;font-weight:700;letter-spacing:.04em;
  border-radius:2px;
  box-shadow:0 4px 10px rgba(11,47,74,.28);
  transition:background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.stop-app-teaser-btn:hover{
  background:#0b2f4a;
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(11,47,74,.35);
}
.stop-app-teaser-btn i{font-size:.9em}
.stop-app-teaser-link{
  font-family:'Spline Sans',sans-serif;font-size:.78rem;font-weight:600;
  color:var(--rail-deep);text-decoration:underline;
  text-underline-offset:3px;letter-spacing:.02em;
}
.stop-app-teaser-link:hover{color:#0b2f4a}
@media (prefers-reduced-motion:reduce){
  .stop-app-teaser-polaroid{animation:none;transition:none}
  .stop-app-teaser-polaroid:hover{transform:rotate(-4deg)}
  .stop-app-teaser-btn{transition:none}
  .stop-app-teaser-btn:hover{transform:none}
}
/* Mobile: stack polaroid above copy, center everything. */
@media (max-width:560px){
  .stop-app-teaser{padding:1.4rem 1.25rem 1.6rem;margin:1.25rem -1.25rem 1.25rem}
  .stop-app-teaser-inner{
    grid-template-columns:1fr;
    gap:1rem;justify-items:center;text-align:center;
  }
  .stop-app-teaser-polaroid{width:120px}
  .stop-app-teaser-cta{justify-content:center}
}

/* ------------------------------------------------------------------
   Scroll shadows on horizontally scrollable pill rows.
   Any row with flex-wrap:nowrap + overflow-x:auto can end up wider
   than the viewport on a phone; the horizontal scrollbar is the only
   cue that there is more to see. This overlay adds a subtle shadow
   fade at whichever edge has hidden content, using the classic
   background-attachment: local / scroll technique:
     - LOCAL layers are solid ivory covers pinned to the CONTENT
       start/end. They scroll with content out of view.
     - SCROLL layers are dark shadow gradients pinned to the container
       edges. Always sit at the visible left/right of the viewport.
   When the user is at the start, the local left cover hides the
   scroll left shadow. As they scroll right, the cover moves out of
   view and the shadow becomes visible: signal "more content that way".
------------------------------------------------------------------- */
@media (max-width:767px){
  .catfilter,
  .sort-bar{
    background:
      /* Ivory covers at content start / end (local, scroll with content) */
      linear-gradient(to right, var(--ivory), rgba(238,241,243,0) 30px) 0 0 / 30px 100% local no-repeat,
      linear-gradient(to left,  var(--ivory), rgba(238,241,243,0) 30px) 100% 0 / 30px 100% local no-repeat,
      /* Shadow gradients pinned to the visible container edges */
      linear-gradient(to right, rgba(11,47,74,.18), rgba(11,47,74,0) 24px) 0 0 / 24px 100% no-repeat,
      linear-gradient(to left,  rgba(11,47,74,.18), rgba(11,47,74,0) 24px) 100% 0 / 24px 100% no-repeat;
  }
}
/* Mobile: sort bar horizontally scrolls, so keep every element
   tight so more pills sit inside the viewport at once. Reset icon
   shrinks to 1.6rem and stays at the end of the scroll row. */
@media (max-width:767px){
  .sort-bar{gap:.32rem;padding:4px 0 10px}
  .sort-bar .sort-label{font-size:.66rem;letter-spacing:.14em;padding-right:.15rem}
  .sort-bar .sort-pill,
  .sort-bar .deals-pill{
    font-size:.74rem;padding:.28rem .6rem;gap:.28rem;
    border-width:1.25px;
  }
  .sort-bar .sort-pill i,
  .sort-bar .deals-pill i{font-size:1em}
  .sort-bar .sort-reset{width:1.6rem;height:1.6rem;border-width:1.25px}
  .sort-bar .sort-reset i{font-size:.9rem}
  .sort-bar .sort-divider{margin:0 .15rem}
}

/* Category header image: a full-width illustrated banner above the
   listing cards, swapped per selected category. 180px on mobile,
   220px on wider screens. The category name sits bottom-left in
   Fraunces over a soft dark gradient so it reads on any photo. */
.cat-header{
  position:relative;
  width:100%;height:180px;
  /* Bottom margin + catfilter padding-top (.45rem) totals ~1rem,
     matching catfilter padding-bottom + margin-bottom + sort-bar
     padding-top on the other side of the category pills. */
  margin:0 0 .55rem;
  border-radius:4px;overflow:hidden;
  background:#e1e7eb;
}
@media(min-width:768px){
  .cat-header{height:220px}
}
/* Tighter on mobile so the hero image, category pills, and Show pills
   read as one navigation block on a phone. */
@media (max-width:767px){
  .cat-header{margin-bottom:.3rem}
}
.cat-header img{
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  display:block;
}
.cat-header.img-failed img{display:none}
.cat-header-label{
  position:absolute;left:0;right:0;bottom:0;
  padding:1.3rem 1.2rem 1rem;
  font-family:'Fraunces',serif;font-weight:600;
  font-size:1.9rem;line-height:1;
  color:var(--poster-cream);
  background:linear-gradient(0deg,
    rgba(18,28,38,.72) 0%,
    rgba(18,28,38,.34) 55%,
    rgba(18,28,38,0)   100%);
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
@media(min-width:768px){
  .cat-header-label{font-size:2.3rem}
}

/* Listing cards (with image area). Entrance animation is handled
   by the reveal-on-scroll system above: each card sits inside a
   .reveal wrapper that fades and rises as it enters the viewport,
   staggered via .cards > .reveal:nth-child rules. */
.cards{display:grid;grid-template-columns:1fr;gap:.9rem}
.card{
  background:var(--card);border:1.5px solid var(--line);
  border-radius:4px;overflow:hidden;cursor:pointer;
  text-align:left;font-family:inherit;padding:0;width:100%;
  /* Without an explicit color on the <button>, iOS Safari falls back
     to its system-button label colour (which can render as blue,
     especially when iOS data-detection guesses the listing name is
     an address). Locking the colour and disabling tap-callout +
     extending format-detection in <head> stops the title text from
     ever being tinted by the OS. */
  color:var(--poster-ink);
  -webkit-text-fill-color:var(--poster-ink);
  -webkit-touch-callout:none;
  display:flex;flex-direction:column;
  box-shadow:0 4px 14px rgba(11,47,74,.08);
  transition:transform .22s cubic-bezier(.2,.7,.2,1),
             box-shadow .22s ease, border-color .15s ease;
}
/* Gentle lift on desktop hover. Touch devices fall back to the
   :active scale below, since (hover: none) suppresses :hover. */
@media (hover:hover){
  .card:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 28px rgba(11,47,74,.18);
    border-color:var(--poster-crimson);
  }
}
/* Combined press microstate: keep the lift, add a small scale.
   Without combining, the card snaps back to baseline on click
   which reads as a glitch. */
.card:active{transform:translateY(-2px) scale(.99)}
.card-img{
  position:relative;
  /* Fixed height (not aspect-ratio) so the image area never
     collapses to zero on mobile inside the flex card column.
     200px tall, full width, object-fit cover. */
  width:100%;height:200px;overflow:hidden;
  /* Loading state: a clean neutral grey instead of the warm
     amber + icon. The icon-bearing fallback only shows when the
     image genuinely cannot load (see .show-fallback below). */
  background:#e1e7eb;
}
.card-img img,.card-img svg{width:100%;height:100%;object-fit:cover;display:block}
/* Illustrated fallback sits behind the photo, but hidden by
   default so the loading state stays a neutral grey. Revealed via
   the .show-fallback class on the parent, which is set either at
   render time (listing has no image) or by the img's onerror
   handler (image failed to load). */
.card-img .img-fallback,.detail-img .img-fallback{
  position:absolute;inset:0;z-index:0;
  opacity:0;
  transition:opacity .22s ease;
}
.card-img.show-fallback .img-fallback,
.detail-img.show-fallback .img-fallback{opacity:1}
.card-img > img,.detail-img > img{
  position:relative;z-index:1;
  transition:opacity 220ms ease;
}
.card-img > img.img-failed,.detail-img > img.img-failed{opacity:0}
.card-body{padding:.7rem 1rem 1rem}
.card .toprow{display:flex;justify-content:space-between;align-items:flex-start;gap:.6rem}
.card .tag{
  font-size:.64rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;color:#f7f9fa;background:var(--poster-crimson);
  /* Re-state the fill colour because the .card iOS-blue fix sets
     -webkit-text-fill-color on the button parent, which would
     otherwise inherit down and paint the tag text dark-ink. */
  -webkit-text-fill-color:#f7f9fa;
  padding:.2rem .55rem;border-radius:2px;white-space:nowrap;
}
/* Featured tag: warm gold instead of crimson, dark ink text so the
   "Featured" label is unmistakable. Used on both .card .tag and
   .detail-body .tag when the listing has featured:true. */
.tag.tag-featured,
.detail-body .tag.tag-featured{
  background:var(--poster-gold);
  color:var(--poster-ink);
  -webkit-text-fill-color:var(--poster-ink);
}
.card-featured,
.card-first-class{
  /* Gold border + glow. Applies to every First Class listing at
     all times (.card-first-class) AND to any listing elected for
     the daily Featured rotation (.card-featured). Both classes
     share the same visual so a First Class card and a rotated
     Featured card read as one design; the rotated one additionally
     gets the "Featured" pill overlay + top position. */
  background:#f7f9fa;
  border-width:3px;
  border-color:var(--poster-gold);
  box-shadow:0 12px 28px -8px rgba(11,47,74,.42),
             0 4px 12px rgba(11,47,74,.10);
}
@media (hover:hover){
  .card-featured:hover,
  .card-first-class:hover{
    border-color:#c89525;
    box-shadow:0 18px 36px -8px rgba(11,47,74,.55),
               0 6px 14px rgba(11,47,74,.14);
  }
}
.card .rating{color:var(--gold);font-weight:700;font-size:.86rem;white-space:nowrap}
.card h4{font-size:1.16rem;font-weight:600;margin:.45rem 0 .25rem}
.card .desc{font-size:.88rem;color:var(--muted)}
/* Walking-time line below the listing name. Small, muted, and
   prefixed by the pin icon. Reused on the detail view too. The
   .hours-line shares this styling so the two micro-utility lines
   (walk + open-today) read as a related pair. */
.walk-line,
.hours-line{
  display:inline-flex;align-items:center;gap:.3rem;
  font-size:.78rem;color:var(--poster-rail-brown);
  font-weight:600;margin:.05rem 0 .4rem;
  letter-spacing:.01em;
}
.detail-body .walk-line,
.detail-body .hours-line{
  font-size:.86rem;margin:.3rem 0 .8rem;
}

/* Labeled info rows on the listing card: ADDRESS / PHONE / WEBSITE
   in the small-caps rust label + regular body value layout that
   matches the transactional emails.

   Layout is flexbox (not table) so the fixed label width holds even
   when values are wildly different lengths, and so the PHONE +
   WEBSITE pair can sit side-by-side on a wide card and wrap onto
   two lines when the card narrows on mobile. */
.card-info{margin:.55rem 0 .35rem;display:flex;flex-direction:column;gap:.2rem}
.card-info .ci-row{display:flex;align-items:flex-start;gap:.5rem}
.card-info .ci-label{
  flex:0 0 4.6rem;                        /* fixed label column */
  padding-top:.15rem;
  color:var(--poster-crimson);
  font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;
  font-weight:700;line-height:1.2;
  -webkit-text-fill-color:var(--poster-crimson);
}
.card-info .ci-value{
  flex:1 1 auto;min-width:0;
  color:var(--poster-ink);
  font-size:.86rem;line-height:1.4;
  -webkit-text-fill-color:var(--poster-ink);
}
.card-info .ci-value a{
  color:var(--poster-crimson);text-decoration:none;
  -webkit-text-fill-color:var(--poster-crimson);
}
.card-info .ci-value a:hover{text-decoration:underline}

/* Detail-view variant of .card-info. Same labeled-row structure as
   the card, but sized up for detail-view breathing room: wider label
   column, more line-height, and slightly larger type so it reads as
   the primary content block (not a tucked-away metadata list). */
.card-info.detail-info{
  margin:.9rem 0 1.1rem;gap:.5rem;
  padding:1rem 1.1rem;
  background:rgba(11,47,74,.06);
  border:1px solid rgba(28,92,133,.14);
  border-radius:4px;
}
.card-info.detail-info .ci-row{gap:.9rem;align-items:baseline}
.card-info.detail-info .ci-label{
  flex:0 0 5.4rem;
  font-size:.72rem;letter-spacing:.1em;
}
.card-info.detail-info .ci-value{
  font-size:.98rem;line-height:1.45;
}

/* Featured + Verified badges overlaid at top-left of the hero image.
   Mirrors the .biz-card-badge treatment from /submit-a-listing/ so
   the live card matches what businesses saw on the submit-page
   mockup: Featured is dark-green with gold text, Verified is sage
   green with cream text. Both are pills, ~28px tall, uppercase.
   Uses the .card-img parent (position:relative) as anchor. */
.card-img .card-photo-badges,
.detail-img .card-photo-badges,
.sp-detail-hero-img .card-photo-badges{
  position:absolute;top:10px;left:10px;z-index:2;
  display:flex;gap:.3rem;flex-wrap:wrap;
}
.card-img .card-photo-badge,
.detail-img .card-photo-badge,
.sp-detail-hero-img .card-photo-badge{
  display:inline-flex;align-items:center;gap:.3rem;
  padding:.32rem .58rem;border-radius:3px;
  font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;line-height:1;
  box-shadow:0 2px 6px rgba(11,47,74,.25);
}
.card-img .card-photo-badge i,
.detail-img .card-photo-badge i,
.sp-detail-hero-img .card-photo-badge i{font-size:.82rem;color:inherit}
/* Detail view uses a larger hero, so badges get a touch more room
   and sit slightly further from the corner for visual balance. */
.detail-img .card-photo-badges,
.sp-detail-hero-img .card-photo-badges{top:14px;left:14px}
.detail-img .card-photo-badge,
.sp-detail-hero-img .card-photo-badge{
  font-size:.72rem;padding:.38rem .72rem;
}
.detail-img .card-photo-badge i,
.sp-detail-hero-img .card-photo-badge i{font-size:.9rem}
/* Featured: solid gold background with dark-green text so the badge
   pops on every photo regardless of underlying image contrast. This
   is the "MOST IMPACT" gold treatment from the email pricing card. */
.card-img .card-photo-badge.is-featured,
.detail-img .card-photo-badge.is-featured,
.sp-detail-hero-img .card-photo-badge.is-featured{
  background:var(--poster-gold);
  color:#0b2f4a;
  -webkit-text-fill-color:#0b2f4a;
}
/* Verified: sage green background with cream text. Sits alongside
   Featured without competing colour-wise. */
.card-img .card-photo-badge.is-verified,
.detail-img .card-photo-badge.is-verified,
.sp-detail-hero-img .card-photo-badge.is-verified{
  background:#fff;
  color:#0b2f4a;
  -webkit-text-fill-color:#0b2f4a;
}
.card-img .card-photo-badge.is-verified i,
.detail-img .card-photo-badge.is-verified i,
.sp-detail-hero-img .card-photo-badge.is-verified i{color:#c98f12;-webkit-text-fill-color:#c98f12}
/* Gold seal-check beside a verified business's name. */
.name-seal{color:#c98f12;-webkit-text-fill-color:#c98f12;font-size:.9em;vertical-align:-.1em;margin-left:.15rem}

/* Full-width crimson banner between the photo and the card body when
   the listing carries a discount. Matches .biz-card-discount-banner
   from the submit-page mockup so the offer reads as unmistakable
   value, not a tucked-away tag. */
.card-discount-banner{
  display:flex;align-items:center;gap:.6rem;
  background:#e3a92f;                    /* gold so the offer stands out on any photo */
  color:#0b2f4a;
  padding:.75rem 1.1rem;
  font-weight:700;font-size:.9rem;letter-spacing:.01em;
  border-top:1px solid rgba(0,0,0,.14);
  border-bottom:1px solid rgba(0,0,0,.14);
  -webkit-text-fill-color:#0b2f4a;
}
.card-discount-banner i{
  font-size:1.15rem;color:#0b2f4a;
  -webkit-text-fill-color:#0b2f4a;
}

/* Top row inside the card body: category tag on the left, rating on
   the right, sharing one horizontal line. Sits directly beneath the
   photo (or the discount banner if the listing offers one) so the
   eye reads TAG + RATING as a single label row before dropping to
   the business name. */
.card-body .card-toprow{
  display:flex;justify-content:space-between;align-items:center;
  gap:.6rem;margin:0 0 .35rem;min-height:1rem;
}
.card-body .card-tag{
  font-size:.68rem;font-weight:700;
  color:var(--poster-crimson);
  letter-spacing:.18em;text-transform:uppercase;
  line-height:1;
  -webkit-text-fill-color:var(--poster-crimson);
}

/* Map-pin icon anchored to the top-right of the card, over the
   hero image. Lives outside the .card <button> so we avoid nesting
   an anchor inside interactive content; the .reveal wrapper is
   positioned to give this its anchor. Cream background + rust icon
   echoes the "Add to trip" pill style used on stop pages. */
.reveal{position:relative}
.card-map-icon{
  position:absolute;top:10px;right:10px;z-index:3;
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;
  background:rgba(238,241,243,.94);
  color:var(--poster-crimson);
  border:1.5px solid var(--poster-crimson);
  border-radius:999px;
  text-decoration:none;line-height:0;
  box-shadow:0 2px 6px rgba(11,47,74,.15);
  transition:background .15s,color .15s,transform .15s,box-shadow .15s;
}
.card-map-icon i{font-size:17px;color:var(--poster-crimson)}

/* Map-pin icon on the detail hero. Same visual language as
   .card-map-icon but scaled up for the larger hero, and anchored
   inside .detail-img (which is already position:relative). */
.detail-img .detail-map-icon{
  position:absolute;top:14px;right:14px;z-index:3;
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;
  background:rgba(238,241,243,.94);
  color:var(--poster-crimson);
  border:1.5px solid var(--poster-crimson);
  border-radius:999px;
  text-decoration:none;line-height:0;
  box-shadow:0 2px 8px rgba(11,47,74,.2);
  transition:background .15s,color .15s,transform .15s,box-shadow .15s;
}
.detail-img .detail-map-icon i{font-size:22px;color:var(--poster-crimson)}
.detail-img .detail-map-icon:hover{
  background:var(--poster-crimson);color:var(--poster-cream);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(11,47,74,.25);
}
.detail-img .detail-map-icon:hover i{color:var(--poster-cream)}
@media (prefers-reduced-motion:reduce){
  .detail-img .detail-map-icon{transition:none}
  .detail-img .detail-map-icon:hover{transform:none}
}
.card-map-icon:hover{
  background:var(--poster-crimson);color:var(--poster-ivory,#eef1f3);
  transform:translateY(-1px) scale(1.06);
  box-shadow:0 4px 10px rgba(28,92,133,.35);
}
.card-map-icon:hover i{color:var(--poster-ivory,#eef1f3)}
/* Gentle idle heartbeat on the map pin so the eye finds it. Kept
   very light (2% scale, 2.6s cycle) so it reads as alive without
   feeling animated. Pauses on hover so the hover-scale takes over
   cleanly, and respects the user's reduced-motion preference. */
@keyframes card-map-heartbeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.card-map-icon { animation: card-map-heartbeat 2.6s ease-in-out infinite; }
.card-map-icon:hover { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .card-map-icon { animation: none; }
}

/* Category tag on the photo gets a whisper scale on card hover so
   the eye reads "this card is interactive" without a heavy jump. */
@media (hover: hover) {
  .card:hover .card-img .card-photo-badge {
    transform: translateY(-1px);
    transition: transform .2s ease;
  }
}

/* Detail-view action buttons: gentle icon lift on hover. Matches
   the card icon idle-heartbeat vocabulary. */
.action-btn { transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.action-btn:hover { transform: translateY(-2px); }
.action-btn:hover i { transform: scale(1.08); transition: transform .18s ease; }

/* Info-row icons (verified badges, walk pins) get a tiny hover life. */
@media (hover: hover) {
  .card:hover .verified-badge i { transform: scale(1.06); transition: transform .18s ease; }
}

/* Editorial description on the listing card. Two-line clamp with
   ellipsis so cards stay uniform regardless of summary length. The
   detail view uses .detail-desc for the same field with full text,
   so this class only applies inside .card-body. */
.card-body .description{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:.92rem;line-height:1.45;
  color:var(--ink);
  margin:.35rem 0 .4rem;
}

/* Discount badge on a listing card plus the discount detail line in the
   detail view. Both use the rusty brown poster-crimson accent so a
   member discount reads as a small, warm callout. */
.discount-badge{
  display:inline-flex;align-items:center;gap:.3rem;
  font-size:.68rem;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:#fff;
  background:var(--poster-crimson);
  padding:.22rem .5rem;border-radius:3px;
  margin:.1rem 0 .45rem;
}
.discount-badge .ph-light{font-size:.9em}
.detail-body .discount-line{
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.88rem;font-weight:600;
  color:var(--poster-crimson);
  margin:.2rem 0 .8rem;
}
.detail-body .discount-line .ph-light{flex:none}

/* Action row on the detail view: globe + phone buttons under the
   hours line. Vertical icon-over-label layout, comfortable tap
   targets (min 44px each), rusty crimson on hover-able tint. */
.action-row{
  display:flex;gap:.65rem;flex-wrap:wrap;
  margin:.2rem 0 1rem;
}
.action-btn{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.25rem;
  /* flex:1 makes Website / Call / Map share the row in equal widths. */
  flex:1 1 0;
  min-width:64px;min-height:44px;
  padding:.5rem .75rem;
  border:2px solid var(--poster-crimson);
  border-radius:4px;
  background:var(--card);
  color:var(--poster-crimson);
  text-decoration:none;
  font-family:'Spline Sans',sans-serif;
  font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  transition:transform 160ms ease-out,
             background-color .15s ease, color .15s ease;
}
.action-btn .ph-light{font-size:1.35em}
.action-btn .action-label{line-height:1}
@media (hover:hover) and (pointer:fine){
  .action-btn:hover{background:var(--poster-crimson);color:var(--poster-cream)}
}
.action-btn:active{transform:scale(.96)}
.card-cta{
  display:block;text-align:right;margin-top:.6rem;
  font-size:.8rem;font-weight:700;
  color:var(--poster-crimson);
}

@media(min-width:620px){
  .cards{grid-template-columns:1fr 1fr}
}

/* ---------- detail view ---------- */
.stop.detail{animation:detailIn .24s cubic-bezier(.2,.7,.2,1) both}
@keyframes detailIn{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}
/* Back button: a full-width solid bar that sits ABOVE the image
   in its own row, never over it. Escapes the .stop horizontal
   padding so it spans the slab. On mobile it becomes sticky (with
   its solid background) so it stays reachable while scrolling
   without obscuring the photo. */
.backbtn{
  display:flex;align-items:center;gap:.45rem;
  margin:0 -1.25rem 1.2rem;
  padding:.85rem 1.25rem;
  background:var(--card);
  border:none;border-bottom:1px solid rgba(28,92,133,.16);
  color:var(--poster-crimson);
  font-family:'Spline Sans',sans-serif;font-size:.9rem;font-weight:700;
  cursor:pointer;text-align:left;width:auto;
  transition:color .15s ease, background-color .15s ease;
}
@media (hover:hover) and (pointer:fine){
  .backbtn:hover{color:var(--rail);background:rgba(28,92,133,.05)}
}
.backbtn:active{background:rgba(28,92,133,.07)}
@media (max-width:767px){
  .backbtn{
    position:sticky;top:52px;z-index:54;
  }
}
.detail-hero{
  /* Full-bleed in the slab (escapes the .stop side padding) so the
     photo lines up edge-to-edge with the full-width back bar above
     it, matching the stop poster treatment. */
  margin:0 -1.25rem 1.2rem;
  overflow:hidden;
}
/* Detail-view discount banner: full-bleed to match the hero and sits
   flush against it (negative top margin eats the hero's bottom gap).
   Bottom margin matches the toprow's bottom margin so the space
   above and below the category pill is symmetrical. */
.detail-hero + .card-discount-banner{
  margin:-1.2rem -1.25rem 1rem;
  font-size:.98rem;
  padding:.95rem 1.25rem;
}
.detail-img{
  position:relative;
  width:100%;aspect-ratio:16/9;
  background:#e1e7eb;
}
.detail-img img,.detail-img svg{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- swipeable photo gallery (detail view) ----------
   Lives inside .detail-img when a listing has more than one photo.
   .gallery-track is a flex row of full-width slides; we move
   between slides by translating the track. Touch swipe is handled
   in app.js; prev/next buttons are visible on desktop (hover:hover)
   and hidden on touch so swipes are the only input. */
.gallery .gallery-track{
  display:flex;width:100%;height:100%;
  transition:transform .35s cubic-bezier(.23,1,.32,1);
  will-change:transform;
}
.gallery .gallery-slide{
  flex:0 0 100%;width:100%;height:100%;
  object-fit:cover;display:block;
  position:relative;z-index:1;
}
.gallery .gallery-slide.img-failed{opacity:0;transition:opacity .22s ease}
.gallery .gallery-prev,
.gallery .gallery-next{
  position:absolute;top:50%;transform:translateY(-50%);
  width:40px;height:40px;border-radius:50%;
  background:rgba(11,47,74,.55);color:#eef1f3;
  border:none;cursor:pointer;z-index:3;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease, transform .15s ease;
}
.gallery .gallery-prev{left:.7rem}
.gallery .gallery-next{right:.7rem}
.gallery .gallery-prev:hover,
.gallery .gallery-next:hover{background:rgba(11,47,74,.8)}
.gallery .gallery-prev:active,
.gallery .gallery-next:active{transform:translateY(-50%) scale(.92)}
/* Hide arrows on touch devices: swipe is the primary input there. */
@media (hover:none){
  .gallery .gallery-prev,
  .gallery .gallery-next{display:none}
}
.gallery .gallery-dots{
  position:absolute;bottom:.65rem;left:50%;
  transform:translateX(-50%);
  display:flex;gap:.35rem;z-index:3;
  padding:.35rem .55rem;border-radius:4px;
  background:rgba(11,47,74,.4);
}
.gallery .gallery-dot{
  width:8px;height:8px;border-radius:50%;
  border:none;background:rgba(238,241,243,.55);
  padding:0;cursor:pointer;
  transition:background .2s ease, width .25s ease;
}
.gallery .gallery-dot.active{
  background:#eef1f3;
  width:22px;border-radius:4px;
}

@media(min-width:620px){
  .detail-img{aspect-ratio:21/9}
}
.detail-body{margin-bottom:1.6rem}
.detail-body .toprow{
  display:flex;justify-content:space-between;gap:.6rem;
  align-items:center;margin-bottom:1rem;
}
.detail-body .tag{
  font-size:.64rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;color:#fff;background:var(--poster-crimson);
  padding:.25rem .6rem;border-radius:2px;white-space:nowrap;
}
.detail-body .rating{color:var(--gold);font-weight:700;font-size:.9rem}
.detail-body h3{font-size:1.7rem;margin-bottom:.25rem}
.detail-loc{font-size:.84rem;color:var(--poster-crimson);font-weight:600;margin-bottom:.8rem}
/* Detail-view description. Reads as body prose, uses the full
   content width so it lines up with the info block below and the
   hero above (symmetric side gaps come from .stop padding). Flexes
   naturally from the Free 250-char cap up to the First Class
   2000-char cap without any tier-specific styling. */
.detail-desc{
  color:#14212b;
  font-size:1rem;line-height:1.65;
  margin:.85rem 0 1.25rem;
  white-space:pre-wrap;
}
.more{
  border-top:2px dashed var(--line);padding-top:1.4rem;
}
.more-head{
  font-size:1.15rem;color:var(--rail);margin-bottom:.9rem;
}

/* ---------- events ----------
   Max-width + horizontal gutter match the .stopnav section above so
   "Events Along the Route" lines up edge-to-edge with the rail and
   the ticker band. The 1280 / 1.5rem combo is the homepage's shared
   content column. */
.eventsection{padding:2.4rem 1.5rem 2.8rem;max-width:1280px;margin:0 auto}

/* ---------- homepage events grid (route-wide, grouped by month) ---------- */
#eventPanel{padding:0}

/* Filter card above the grid. Two-tier layout: a top "When" section
   spans the full width with month chips (the dimension visitors use
   most), then a three-column grid for What / Price / Walk time. Each
   section has an icon next to a friendly question word ("When",
   "What", "Price", "Walk time") so the bar feels conversational
   instead of form-like. Collapses to a single column on phones. */
/* Editorial filter bar: no card chrome, no big title row, just a
   pair of thin dashed rust rules bracketing the filters so they
   read as a navigation rest stop rather than a heavy form. Section
   labels become inline italic Fraunces ("when", "what", "price",
   "walk time") and chips drop their borders for a lighter tab-row
   feel. Active chips fill rust with no shadow halo. */
.hev-filters{background:transparent;border:0;border-top:1px dashed rgba(28,92,133,.35);
  border-bottom:1px dashed rgba(28,92,133,.35);border-radius:0;
  padding:1rem 0;margin:0 0 1.8rem;box-shadow:none}
.hev-filters-head{display:flex;justify-content:flex-end;align-items:center;
  margin:0;padding:0;border-bottom:0;min-height:0}
.hev-filters-title{display:none}
.hev-reset{background:transparent;border:0;color:var(--poster-crimson);font-size:.82rem;font-weight:600;
  cursor:pointer;padding:.2rem .4rem;display:inline-flex;align-items:center;gap:.25rem;
  border-radius:3px;font-family:'Fraunces',Georgia,serif;font-style:italic;
  transition:background .15s ease}
.hev-reset .ph-light{font-size:.9rem;font-style:normal}
.hev-reset:hover{background:rgba(28,92,133,.08)}
/* Reset is always in the DOM so visitors see the escape hatch even
   before touching a filter. .is-inactive mutes it visually and
   skips the click handler. */
.hev-reset.is-inactive{opacity:.4;cursor:default}
.hev-reset.is-inactive:hover{background:transparent}
.hev-filter-section{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;
  gap:.5rem;margin:0}
.hev-filter-section-label{display:inline-flex;align-items:center;gap:.35rem;
  font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:.95rem;font-weight:500;
  letter-spacing:0;text-transform:none;color:var(--poster-crimson);
  white-space:nowrap;margin-right:.2rem}
.hev-filter-section-label .ph-light{font-size:1rem;color:var(--poster-crimson);font-style:normal}
.hev-filter-grid{display:flex;justify-content:flex-start;align-items:flex-start;
  flex-wrap:wrap;gap:.6rem 1.6rem;margin-top:.3rem}
.hev-filter-section{flex:0 1 auto;min-width:0}
.hev-chip-row{display:flex;flex-wrap:wrap;gap:.3rem}
/* Desktop layout: two rows. Row 1 is When with the date range pair,
   given breathing room and a subtle divider below so the visitor
   reads it as the primary filter. Row 2 is Where / What / Price /
   Walk time as four equal-width dropdowns. */
@media (min-width:721px){
  .hev-filter-grid{display:grid;grid-template-columns:repeat(4, minmax(0,1fr));
    column-gap:1.4rem;row-gap:1rem;justify-content:start;align-items:center}
  .hev-filter-section:nth-of-type(1){grid-column:1 / -1;grid-row:1;
    padding-bottom:.9rem;border-bottom:1px dashed rgba(28,92,133,.28)}
  .hev-filter-section:nth-of-type(n+2){grid-row:2}
  .hev-filter-section:nth-of-type(n+2) .hev-select{width:100%;max-width:none;min-width:0}
}
.hev-chip{background:transparent;border:1px solid transparent;border-radius:4px;
  padding:.25rem .65rem;font-size:.85rem;font-weight:500;color:var(--poster-ink);cursor:pointer;
  font-family:'Spline Sans',sans-serif;line-height:1.2;letter-spacing:0;
  transition:background .15s ease,color .15s ease,border-color .15s ease}
.hev-chip:hover{background:rgba(28,92,133,.08);color:var(--poster-crimson)}
.hev-chip.is-active,
.hev-chip.is-active:hover{background:#12405f;border-color:#12405f;color:#f7f9fa;box-shadow:none}
/* Dropdowns are styled to match the chip vocabulary: pill shape,
   crimson border, italic Fraunces face on the displayed value so
   they read as editorial cards rather than browser-default form
   widgets. The native open menu still uses OS chrome (necessary
   for accessibility), but the closed state looks like part of the
   filter row. */
.hev-select{background:transparent;border:1px solid var(--poster-crimson);border-radius:999px;
  padding:.3rem 1.8rem .3rem .85rem;
  font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:.9rem;
  color:var(--poster-ink);line-height:1.2;
  width:auto;min-width:170px;max-width:260px;cursor:pointer;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238e3d22'><path d='M4 6 L8 10 L12 6 Z'/></svg>");
  background-repeat:no-repeat;background-position:right .7rem center;background-size:11px;
  transition:background-color .15s ease,color .15s ease}
.hev-select:hover{background-color:rgba(28,92,133,.08);color:var(--poster-crimson)}
.hev-select:focus{outline:none;background-color:#f7f9fa}
.hev-select option{font-family:'Spline Sans',sans-serif;font-style:normal;color:var(--poster-ink)}

/* Date range for the When filter: two native <input type="date">
   pickers with a small italic 'to' between them, styled to match
   .hev-select so the whole filter row reads as one editorial
   vocabulary. */
.hev-evdates{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.hev-evdate-sep{font-family:'Fraunces',Georgia,serif;font-style:italic;
  font-size:.9rem;color:var(--poster-crimson);padding:0 .1rem}
.hev-evdate-input{background:transparent;border:1px solid var(--poster-crimson);
  border-radius:999px;padding:.3rem .75rem;
  font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:.9rem;
  color:var(--poster-ink);line-height:1.2;cursor:pointer;min-width:150px;
  transition:background-color .15s ease,color .15s ease}
.hev-evdate-input:hover{background-color:rgba(28,92,133,.08)}
.hev-evdate-input:focus{outline:none;background-color:#f7f9fa}
.hev-evdate-input::-webkit-calendar-picker-indicator{
  cursor:pointer;filter:sepia(1) hue-rotate(-25deg) saturate(2);opacity:.7}
.hev-evdate-input::-webkit-calendar-picker-indicator:hover{opacity:1}

/* Mobile: 2-column grid. When (with the date pair) spans the top
   row with a dashed rule underneath; the four category dropdowns
   split into a 2x2 grid below. Section labels stack above their
   inputs so nothing squeezes horizontally. */
@media (max-width:720px){
  .hev-filter-grid{display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    column-gap:.7rem;row-gap:.9rem;
    justify-content:stretch;align-items:start;
    margin-top:.4rem}
  .hev-filter-section{display:flex;flex-direction:column;align-items:stretch;
    gap:.3rem;width:auto;min-width:0}
  .hev-filter-section-label{margin-right:0}
  .hev-filter-section:nth-of-type(1){grid-column:1 / -1;grid-row:1;
    padding-bottom:.7rem;border-bottom:1px dashed rgba(28,92,133,.28)}
  .hev-select{width:100%;max-width:none;min-width:0}
  /* Date range: two inputs on one line with 'to' between them. */
  .hev-evdates{width:100%;flex-wrap:nowrap}
  .hev-evdate-input{flex:1 1 0;min-width:0;width:auto}
}
@media (max-width:480px){
  .hev-filters{padding:.8rem 0}
}

.hev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.1rem;
  margin:0 0 1.6rem}

/* Homepage curated events strip (step 3 of the events surface plan).
   Six handpicked cards, an italic Fraunces intro line above, and an
   editorial "See all events" CTA below that links to the dedicated
   /events page. .hev-strip inherits the .hev-grid auto-fill so it
   stays three across on desktop, two across at mid-widths, and one
   on phones. */
.hev-intro{font-family:'Fraunces',Georgia,serif;font-style:italic;
  font-size:1.05rem;line-height:1.55;color:var(--poster-ink);
  text-align:center;max-width:680px;margin:0 auto 1.8rem}
.hev-intro a{color:var(--poster-crimson);font-weight:600;text-decoration:none}
.hev-intro a:hover{color:var(--poster-ink);text-decoration:underline;
  text-decoration-thickness:1px;text-underline-offset:3px}
.hev-strip{margin:0 auto;max-width:1180px}
.hev-seeall{display:flex;align-items:center;justify-content:center;gap:.5rem;
  margin:2.4rem auto 0;padding:.9rem 1.4rem;
  font-family:'Fraunces',Georgia,serif;font-style:italic;
  font-size:1.15rem;color:var(--poster-crimson);text-decoration:none;
  border:1.5px dashed rgba(28,92,133,.4);border-radius:4px;
  max-width:540px;width:fit-content;
  transition:background .15s ease,color .15s ease,border-color .15s ease}
.hev-seeall:hover{background:var(--poster-crimson);color:#f7f9fa;border-color:var(--poster-crimson)}
.hev-seeall i{font-size:1.2rem;line-height:1}
@media (max-width:520px){
  .hev-seeall{font-size:1rem;padding:.75rem 1.1rem}
}

/* Stop-panel events block: sits at the bottom of the slab beneath
   the listings grid. Reuses .hev-grid + .hev-card markup but caps
   to one tile per row in the narrower slab so the cards stay
   legible without forcing a horizontal scroll on mobile. */
.stop-events{margin-top:2.2rem;padding-top:1.6rem;border-top:1px dashed rgba(28,92,133,.4)}
.stop-events-head{margin-bottom:1rem}
.stop-events-kicker{display:inline-block;font-family:'Spline Sans',system-ui,sans-serif;
  font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;font-weight:700;
  color:var(--poster-crimson);margin-bottom:.25rem}
.stop-events-head h3{font-family:'Fraunces',Georgia,serif;font-weight:700;
  font-size:1.5rem;color:var(--poster-ink);margin:0}
.stop-events-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.9rem}
/* Filter row above the events grid. Two pills only (Family +
   Closest); date-range filtering lives on the dedicated /events
   page, not here, so the row stays light and left-aligned. */
.stop-events-filters{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;
  margin:0 0 1rem}
/* Family / Closest pills. The active state pins background + text +
   icon colour explicitly (rather than letting :hover collide on the
   same specificity and turn the text rust-on-rust = invisible). */
.se-filter-pill{display:inline-flex;align-items:center;gap:.3rem;font-family:'Spline Sans',system-ui,sans-serif;
  font-weight:600;font-size:.78rem;padding:.35rem .8rem;border-radius:999px;
  border:1.5px solid var(--line);background:transparent;color:var(--poster-ink);cursor:pointer;
  transition:border-color .15s ease,background .15s ease,color .15s ease}
.se-filter-pill i{font-size:1rem;line-height:1;color:inherit}
.se-filter-pill:hover{border-color:var(--poster-crimson);color:var(--poster-crimson)}
.se-filter-pill.active,
.se-filter-pill.active:hover{background:#12405f;border-color:#12405f;color:#f7f9fa;
  box-shadow:0 0 0 3px rgba(28,92,133,.15)}
.se-filter-pill.active i,
.se-filter-pill.active:hover i{color:#f7f9fa}
.stop-events-empty{padding:1rem 1.2rem;background:#f7f9fa;border:1.5px dashed rgba(28,92,133,.45);
  border-radius:4px;font-family:'Fraunces',Georgia,serif;font-style:italic;color:var(--poster-ink);
  display:flex;align-items:center;gap:.5rem}
.stop-events-empty i{font-size:1.1rem;color:var(--poster-crimson)}
.stop-events-see-all{display:inline-flex;align-items:center;gap:.4rem;margin-top:1.1rem;
  font-family:'Spline Sans',system-ui,sans-serif;font-weight:600;font-size:.85rem;
  letter-spacing:.02em;color:var(--poster-crimson);text-decoration:none}
.stop-events-see-all:hover{color:var(--poster-ink)}
.stop-events-see-all i{font-size:1rem;line-height:1}
.hev-card{background:var(--card);border:1.5px solid var(--line);border-radius:4px;
  display:flex;flex-direction:column;text-decoration:none;color:inherit;overflow:hidden;
  transition:transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s ease,border-color .15s ease}
@media (hover:hover){
  a.hev-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(11,47,74,.16);
    border-color:var(--poster-crimson)}
}
.hev-img{width:100%;aspect-ratio:16/9;background:#e1e7eb center/cover no-repeat}
.hev-body{padding:1rem 1.1rem 1.1rem;display:flex;flex-direction:column;flex:1;gap:.35rem}
.hev-when{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--poster-crimson)}
.hev-cat{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:.82rem;
  color:var(--poster-muted,#4a5a66);margin-top:.15rem;line-height:1.2}
/* overflow-wrap:normal + word-break:keep-all + hyphens:manual lock
   wrapping to whitespace boundaries only, so an event title like
   "National Bank Open - Women's Tennis" never breaks the word "Open"
   across lines on a narrow mobile card. text-wrap:pretty (Safari 17,
   Chrome 117+) avoids the orphan-letter look on the last line. */
.hev-name{font-family:'Fraunces',Georgia,serif;font-size:1.15rem;font-weight:600;margin:.1rem 0 0;color:var(--poster-ink);line-height:1.25;
  overflow-wrap:normal;word-break:keep-all;hyphens:manual;text-wrap:pretty}
.hev-stop{font-size:.82rem;color:var(--poster-mute)}
.hev-desc{font-size:.88rem;line-height:1.45;color:var(--poster-ink);opacity:.82;margin:.4rem 0 0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hev-meta{display:flex;flex-wrap:wrap;gap:.3rem .8rem;margin-top:.5rem}
.hev-walk{display:inline-flex;align-items:center;gap:.3rem;font-size:.78rem;font-weight:700;
  color:var(--poster-crimson);letter-spacing:.02em}
.hev-walk .ph-light{font-size:.95rem}
.hev-family{display:inline-flex;align-items:center;gap:.3rem;font-size:.72rem;font-weight:700;
  color:#3f6e44;letter-spacing:.02em;
  background:rgba(63,110,68,.1);padding:.15rem .55rem;border-radius:999px;line-height:1.4}
.hev-family .ph-light{font-size:.95rem}
.hev-foot{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-top:auto;padding-top:.8rem}
.hev-price{font-size:.78rem;font-weight:700;color:var(--poster-ink);letter-spacing:.02em}
/* Foot actions group: Map pin + More info sit together on the right
   so price stays anchored on the left. */
.hev-foot-actions{display:inline-flex;align-items:center;gap:.7rem}
/* white-space:nowrap on the action labels so a long price (e.g.
   "From $45/day, season passes from $89") never forces Map or
   More info onto two lines. The price itself can wrap freely since
   it already lives in its own column. */
.hev-cta{font-size:.78rem;font-weight:700;color:var(--poster-crimson);display:inline-flex;align-items:center;gap:.2rem;white-space:nowrap}
.hev-cta .ph-light{font-size:.95rem}
/* Map pin button: small inline action that opens the universal
   Maps URL in a new tab. Sized to read as a peer to "More info"
   without competing visually. */
.hev-mapbtn{font-size:.78rem;font-weight:700;color:var(--poster-crimson);
  display:inline-flex;align-items:center;gap:.2rem;white-space:nowrap;
  background:transparent;border:0;padding:0;cursor:pointer;
  font-family:'Spline Sans',sans-serif;letter-spacing:.02em;
  transition:color .15s ease}
.hev-mapbtn .ph-light{font-size:1rem}
.hev-mapbtn:hover{color:var(--poster-ink)}
/* "Your event?" link on events nobody owns yet. Quieter than Map. */
.hev-claimbtn{font-size:.74rem;font-weight:600;color:var(--poster-ink);opacity:.7;
  display:inline-flex;align-items:center;gap:.2rem;white-space:nowrap;
  background:transparent;border:0;padding:0;cursor:pointer;
  font-family:'Spline Sans',sans-serif;letter-spacing:.02em;
  transition:opacity .15s ease,color .15s ease}
.hev-claimbtn .ph-light{font-size:.95rem}
.hev-claimbtn:hover{opacity:1;color:var(--poster-crimson)}

/* Homepage app ticker: forest-green scrolling band that sits between
   the stops directory and the events grid, nudging the visitor
   toward northlander.app. Mirrors the /plan page's pl-ticker idiom:
   amber small-caps category, italic Fraunces fact line, amber dot
   separator. 80s linear loop with the items duplicated in markup so
   the seam never shows. Pauses on hover for legibility. Whole band
   is an <a> so tapping anywhere lands on northlander.app. */
/* Mobile default: full-bleed band so the dark green spans the whole
   viewport. The scrolling .home-ticker-item children carry their own
   28px internal padding so the text never touches the screen edges.
   At tablet width and above the ticker pulls inward to the 1280px
   content column with a 1.5rem horizontal gutter, matching the
   .stopnav directory above and the .eventsection below. Centered
   above 1312px. */
.home-ticker{display:block;background:var(--rail-deep);color:#f7f9fa;
  overflow:hidden;margin:0;padding:18px 0;white-space:nowrap;
  text-decoration:none;cursor:pointer;border-radius:0}
@media (min-width:720px){
  .home-ticker{margin:0 1.5rem;max-width:1280px;border-radius:4px}
}
@media (min-width:1312px){
  .home-ticker{margin:0 auto}
}
.home-ticker-track{display:inline-flex;align-items:center;gap:0;
  animation:home-ticker-scroll 80s linear infinite;will-change:transform}
.home-ticker:hover .home-ticker-track,
.home-ticker:focus-within .home-ticker-track{animation-play-state:paused}
.home-ticker-item{display:inline-flex;align-items:center;gap:14px;padding:0 28px}
.home-ticker-cat{text-transform:uppercase;letter-spacing:.18em;
  font-family:'Spline Sans',system-ui,sans-serif;
  font-size:11px;font-weight:700;color:var(--poster-gold)}
.home-ticker-fact{font-family:'Fraunces',Georgia,serif;font-style:italic;
  font-size:17px;color:#f7f9fa;letter-spacing:.005em}
.home-ticker-dot{width:5px;height:5px;border-radius:50%;
  background:var(--poster-gold);flex:none}
@keyframes home-ticker-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media (prefers-reduced-motion: reduce){
  .home-ticker-track{animation:none}
}
@media (max-width:640px){
  .home-ticker{padding:14px 0}
  .home-ticker-fact{font-size:15px}
  .home-ticker-item{gap:11px;padding:0 20px}
}
/* Pagination below the homepage event grid. Centred row of buttons
   with a clear active state. Prev / Next gain a subtle caret. */
.hev-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;
  gap:.4rem;margin:1.6rem 0 .8rem}
.hev-pagebtn{background:transparent;border:1.5px solid var(--line);border-radius:4px;
  min-width:36px;height:36px;padding:0 .65rem;font-size:.9rem;font-weight:700;font-family:inherit;
  color:var(--poster-ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.25rem;
  transition:background .15s ease,color .15s ease,border-color .15s ease}
.hev-pagebtn:hover:not([disabled]){border-color:var(--poster-crimson);color:var(--poster-crimson)}
.hev-pagebtn.is-active{background:var(--poster-crimson);border-color:var(--poster-crimson);color:var(--poster-ivory,#eef1f3)}
.hev-pagebtn[disabled]{opacity:.4;cursor:not-allowed}
.hev-pagenav{padding:0 .9rem}
.hev-pageellipsis{padding:0 .35rem;color:var(--poster-mute);font-weight:700}

.hev-empty{padding:3rem 1.5rem;text-align:left;background:var(--card);border:1.5px dashed var(--line);border-radius:4px;max-width:640px;margin:0 auto}
.hev-empty .ph-light,.hev-empty .ph{font-size:2.8rem;color:var(--poster-crimson);display:block;margin-bottom:.7rem}
.hev-empty p{font-family:'Fraunces',Georgia,serif;font-size:1.1rem;color:var(--poster-ink);margin:0 0 .8rem;max-width:540px}
.hev-empty a{color:var(--poster-crimson);font-weight:600}

/* ---------- event CTA card (replaces the inline form) ---------- */
.event-cta{margin:3rem 1.1rem 0;padding:2.2rem 1.5rem;background:var(--card);
  border:1.5px solid var(--line);border-radius:6px;text-align:center}
.event-cta-body h3{font-family:'Fraunces',Georgia,serif;font-size:1.55rem;font-weight:600;margin:0 0 .55rem;color:var(--poster-ink)}
.event-cta-body p{max-width:560px;margin:0 auto 1.2rem;color:var(--poster-mute);font-size:.96rem;line-height:1.55}
.event-cta-body .btn{display:inline-flex;align-items:center;gap:.4rem}

/* ---------- event submission modal ---------- */
.ev-modal{padding:0;border:0;background:transparent;
  /* Center the card in the viewport. */
  max-width:760px;width:calc(100vw - 2rem);max-height:calc(100vh - 2rem);
  margin:auto;overflow:visible}
.ev-modal::backdrop{background:rgba(20,28,30,.72);backdrop-filter:blur(4px)}
.ev-modal-card{position:relative;background:var(--card);border:1.5px solid var(--line);border-radius:6px;
  max-height:calc(100vh - 2rem);overflow-y:auto;padding:2rem 1.6rem 1.8rem;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.ev-modal-close{position:absolute;top:.6rem;right:.6rem;background:transparent;border:0;cursor:pointer;
  width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:var(--poster-mute);
  border-radius:50%;transition:background .15s ease,color .15s ease}
.ev-modal-close:hover{background:rgba(0,0,0,.06);color:var(--poster-crimson)}
.ev-modal-close .ph-light{font-size:22px}
.ev-modal-head{max-width:560px;margin:0 auto 1.4rem;text-align:center;padding-right:2rem;padding-left:2rem}
.ev-modal-head h2{font-family:'Fraunces',Georgia,serif;font-size:1.6rem;font-weight:600;margin:0 0 .5rem;color:var(--poster-ink)}
.ev-modal-head p{margin:0;color:var(--poster-mute);font-size:.94rem;line-height:1.5}
@media (max-width:480px){
  .ev-modal-head{padding-left:0;padding-right:0}
  .ev-modal-card{padding:1.4rem 1.1rem}
}

/* ---------- /submit-event/ standalone page ---------- */
.submit-event-page{background:var(--poster-ivory,#eef1f3);min-height:100vh;display:flex;flex-direction:column}
.submit-event-page .topbar{position:sticky;top:0;background:var(--poster-forest,#12405f);color:#eef1f3;
  padding:.7rem 1.1rem;display:flex;justify-content:space-between;align-items:center;z-index:5}
/* .brand rules intentionally NOT overridden here: the base .brand
   in styles.css (Fraunces 900, gap:0, .brand-mark margin) already
   matches the homepage. Overriding font-family and font-weight was
   what caused the sub-page brand to render in Spline Sans 700. */
.topbar-back{color:#eef1f3;text-decoration:none;font-size:.92rem;display:inline-flex;align-items:center;gap:.3rem}
.topbar-back:hover{color:var(--poster-gold,#e3a92f)}
.submit-event-main{flex:1;max-width:760px;width:100%;margin:0 auto;padding:2.4rem 1.2rem 3rem}
.submit-event-hero{text-align:center;margin:0 0 2rem}
.submit-event-hero .kicker{color:var(--poster-crimson);font-size:.78rem;letter-spacing:.32em;text-transform:uppercase;font-weight:700;margin:0 0 .8rem}
.submit-event-hero h1{font-family:'Fraunces',Georgia,serif;font-size:2.2rem;font-weight:600;color:var(--poster-ink);margin:0 0 .8rem;line-height:1.15}
.submit-event-hero p{color:var(--poster-mute);max-width:560px;margin:0 auto;font-size:1rem;line-height:1.55}
.event-form--page{background:var(--card);border:1.5px solid var(--line);border-radius:6px;padding:1.6rem 1.4rem 1.8rem}
.submit-event-footer{padding:1.4rem 1.2rem;text-align:center;color:var(--poster-mute);font-size:.85rem;border-top:1px solid var(--line);background:var(--card)}
.submit-event-footer p{margin:.2rem 0}
.submit-event-footer a{color:var(--poster-crimson)}

/* ---------- legal pages (/privacy, /terms) ----------
   Mirrors the Northlander.app /privacy + /terms layout: a full-width
   forest-green hero band with a warm amber radial highlight, the
   page title in heavy Fraunces 900 on ivory, an amber small-caps
   eyebrow underneath. The rest of the page is a single-column
   article with numbered sections in the site's editorial type
   vocabulary. */
.legal-hero{
  background:
    radial-gradient(ellipse at 70% 0%, rgba(11,47,74,.22), transparent 55%),
    linear-gradient(180deg, var(--rail-deep) 0%, #0b2f4a 100%);
  color:#eef1f3;padding:56px 24px 48px}
.legal-hero-inner{max-width:920px;margin:0 auto}
.legal-hero .kicker{color:var(--poster-gold);font-size:11.5px;font-weight:700;
  letter-spacing:.22em;text-transform:uppercase;margin:0 0 8px}
.legal-hero h1{font-family:'Fraunces',Georgia,serif;font-weight:900;
  font-size:clamp(2rem,5vw,3rem);line-height:1.05;letter-spacing:-.01em;
  color:#eef1f3;margin:8px 0 14px}
.legal-eyebrow{font-family:'Spline Sans',system-ui,sans-serif;
  font-size:11.5px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
  color:#e3a92f;margin:0}

.legal-main{max-width:760px;width:100%;margin:0 auto;padding:1.6rem 1.2rem 3rem}
.legal-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:600;
  color:var(--poster-mute);margin:0 0 1.4rem}
.legal-breadcrumb a{color:var(--poster-crimson);text-decoration:none}
.legal-breadcrumb a:hover{color:var(--poster-ink)}
.legal-breadcrumb i{font-size:14px;color:var(--poster-crimson)}
.legal-breadcrumb span[aria-current]{color:var(--poster-ink)}
.legal-inner{color:var(--poster-ink);font-size:.98rem;line-height:1.65}
.legal-lede{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.08rem;
  color:var(--poster-ink);margin:0 0 1.8rem;line-height:1.55}
.legal-inner section{margin:0 0 1.5rem}
.legal-inner h2{font-family:'Fraunces',Georgia,serif;font-size:1.25rem;font-weight:600;
  color:var(--poster-ink);margin:1.4rem 0 .55rem;line-height:1.25}
.legal-inner p{margin:0 0 .8rem}
.legal-inner ul{margin:.4rem 0 1rem;padding-left:1.2rem}
.legal-inner li{margin:.25rem 0}
.legal-inner a{color:var(--poster-crimson);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.legal-inner a:hover{color:var(--poster-ink)}
.legal-inner strong{color:var(--poster-ink)}
.legal-seealso{font-family:'Fraunces',Georgia,serif;font-style:italic;color:var(--poster-mute);
  font-size:.95rem;margin:2rem 0 0;padding-top:1.2rem;border-top:1px dashed rgba(28,92,133,.3)}
@media (max-width:540px){
  .legal-main{padding:1.2rem 1rem 2.4rem}
  .legal-hero{margin-bottom:1.2rem;padding-bottom:1.2rem}
  .legal-inner{font-size:.95rem}
}

/* ---------- cookie consent banner ----------
   Forest-green band that slides in from the bottom of the viewport
   on first visit. Sits above the floating .toback / .totop buttons
   (z-index 220 vs the buttons' 100). Equal-prominence Accept +
   Reject buttons per GDPR. Slides out on dismissal and stays gone
   for return visitors until they clear site data. Respects
   prefers-reduced-motion. */
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:220;
  background:var(--rail-deep);color:#f7f9fa;padding:1rem 1.2rem;
  box-shadow:0 -10px 28px rgba(0,0,0,.28);
  animation:cookie-in .28s cubic-bezier(.2,.7,.3,1)}
.cookie-banner-inner{max-width:1180px;margin:0 auto;
  display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}
.cookie-banner-text{flex:1;min-width:240px;font-family:'Spline Sans',system-ui,sans-serif;
  font-size:.85rem;line-height:1.5;color:#f7f9fa}
.cookie-banner-text strong{color:var(--poster-gold);font-weight:700}
.cookie-banner-text a{color:var(--poster-gold);text-decoration:underline;text-underline-offset:2px}
.cookie-banner-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.cookie-banner-btn{padding:.55rem 1.1rem;border:1.5px solid #f7f9fa;background:transparent;color:#f7f9fa;
  font-family:'Spline Sans',system-ui,sans-serif;font-weight:600;font-size:.82rem;letter-spacing:.02em;
  border-radius:4px;cursor:pointer;
  text-decoration:none;box-shadow:none;outline:none;
  -webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;
  transition:background .15s ease,color .15s ease,border-color .15s ease}
/* Replace the browser default focus ring (which can render right next
   to the existing border and read as a double line) with an offset
   amber ring that only shows on keyboard navigation. */
.cookie-banner-btn:focus{outline:none}
.cookie-banner-btn:focus-visible{outline:2px solid var(--poster-gold);outline-offset:3px}
.cookie-banner-btn:-moz-focus-inner{border:0;padding:0}
.cookie-banner-accept{background:var(--poster-gold);color:var(--rail-deep);border-color:var(--poster-gold)}
.cookie-banner-reject:hover{background:#f7f9fa;color:var(--rail-deep);border-color:#f7f9fa}
.cookie-banner-accept:hover{background:#f7f9fa;color:var(--rail-deep);border-color:#f7f9fa}
@keyframes cookie-in{
  from{transform:translateY(100%)}
  to{transform:translateY(0)}
}
.cookie-banner.cookie-banner-out{animation:cookie-out .24s ease forwards}
@keyframes cookie-out{
  to{transform:translateY(100%);opacity:0}
}
@media (prefers-reduced-motion: reduce){
  .cookie-banner{animation:none}
  .cookie-banner.cookie-banner-out{animation:none;opacity:0;transform:translateY(100%)}
}
@media (max-width:640px){
  .cookie-banner{padding:.85rem 1rem}
  .cookie-banner-inner{gap:.7rem}
  .cookie-banner-text{font-size:.78rem;min-width:0}
  .cookie-banner-actions{width:100%;justify-content:flex-end}
  .cookie-banner-btn{padding:.45rem .85rem;font-size:.78rem}
}

/* ---------- soft copy-protect ----------
   Locks text selection + the long-press selection menu on the
   editorial copy that's most worth scraping (hero text, card titles,
   descriptions, stop blurbs, plan + events hero copy). Inputs,
   addresses, phone numbers, links, the legal-page body and
   everything inside form labels stay fully selectable. SEO is
   unaffected: Googlebot ignores user-select entirely. */
.hero-inner h1, .hero-inner .hero-sub, .hero-inner .kicker,
.section-head h2, .section-head .kicker,
.card h4, .card .description, .card .desc,
.hev-name, .hev-desc, .hev-stop, .hev-when,
.sp-event-name, .sp-event-desc, .sp-event-venue, .sp-event-when,
.sp-h2, .sp-hero-title, .sp-hero-tagline, .sp-intro-body,
.stop-blurb, .stop .hook, .stop-meta,
.events-page-hero-title, .events-page-hero-tagline, .events-page-intro,
.eventsection .section-head h2, .eventsection .section-head .kicker,
.home-ticker-fact, .home-ticker-cat,
.pl-hero-title, .pl-hero-tagline,
.legal-hero h1, .legal-hero .kicker, .legal-eyebrow{
  -webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;
  -webkit-touch-callout:none}

/* ---------- /events page chrome ----------
   Mirrors the per-stop page layout: full-bleed cinematic hero image
   under the topbar, huge editorial title in forest green sitting
   below the photo, italic rust tagline, breadcrumb, intro, then the
   filter bar + grid. Main supplies the 24px shared gutter except
   for the hero which is full-width within the page max-width. */
.events-page-main{max-width:1180px;width:100%;margin:0 auto;padding:0 24px 80px}

.events-page-hero{position:relative;margin:0}
.events-page-hero-frame{position:relative;height:78vh;min-height:540px;overflow:hidden}
.events-page-hero-img{width:100%;height:100%;object-fit:cover;display:block}

.events-page-hero-titlewrap{position:relative;margin:32px 0 0;z-index:4}
.events-page-hero-title{font-family:'Fraunces',Georgia,serif;font-weight:900;color:var(--rail-deep);
  font-size:clamp(52px,9vw,108px);line-height:.92;letter-spacing:-.02em;margin:0;
  text-shadow:2px 2px 0 rgba(11,47,74,.55)}
.events-page-hero-tagline{font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:500;
  color:var(--poster-crimson);font-size:clamp(18px,2.4vw,26px);line-height:1.3;
  margin:14px 0 0;max-width:780px}

.events-page-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:600;
  color:var(--poster-mute);margin:34px 0 0}
.events-page-breadcrumb a{color:var(--poster-crimson);text-decoration:none}
.events-page-breadcrumb a:hover{color:var(--poster-ink)}
.events-page-breadcrumb i{font-size:14px;color:var(--poster-crimson)}
.events-page-breadcrumb .here,.events-page-breadcrumb span[aria-current]{color:var(--poster-ink)}

.events-page-intro{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.08rem;
  line-height:1.5;color:var(--poster-ink);max-width:760px;margin:1.8rem 0 2.4rem}

@media (max-width:720px){
  .events-page-main{padding:0 16px 60px}
  .events-page-hero-frame{height:48vh;min-height:300px}
  .events-page-hero-titlewrap{margin-top:24px}
  .events-page-breadcrumb{margin-top:26px}
  .events-page-intro{margin:1.4rem 0 1.8rem;font-size:1rem}
}

/* ---------- event submission form ---------- */
.event-submit{margin:3rem 1.1rem 0;padding:2rem 1.5rem 2.2rem;
  background:var(--card);border:1.5px solid var(--line);border-radius:6px}
.event-submit-head{max-width:640px;margin:0 auto 1.6rem;text-align:center}
.event-submit-head h3{font-family:'Fraunces',Georgia,serif;font-size:1.6rem;font-weight:600;margin:0 0 .5rem;color:var(--poster-ink)}
.event-submit-head p{color:var(--poster-mute);font-size:.96rem;line-height:1.55;margin:0}
.event-form{max-width:760px;margin:0 auto}
.event-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem 1rem}
@media (max-width:640px){.event-form-grid{grid-template-columns:1fr}}
.ef-field{display:flex;flex-direction:column;gap:.35rem}
.ef-field.ef-span-2{grid-column:span 2}
@media (max-width:640px){.ef-field.ef-span-2{grid-column:span 1}}
.ef-label{font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:var(--poster-mute)}
.ef-req{color:var(--poster-crimson)}
.event-form input[type="text"],
.event-form input[type="email"],
.event-form input[type="url"],
.event-form input[type="tel"],
.event-form input[type="date"],
.event-form input[type="time"],
.event-form input[type="number"],
.event-form select,
.event-form textarea{
  width:100%;font-family:'Spline Sans',sans-serif;font-size:.95rem;
  background:var(--poster-ivory,#eef1f3);border:1.5px solid var(--line);
  border-radius:4px;padding:.6rem .7rem;color:var(--poster-ink);
  transition:border-color .15s ease}
.event-form input:focus,.event-form select:focus,.event-form textarea:focus{
  outline:none;border-color:var(--poster-crimson)}
.event-form textarea{resize:vertical;min-height:96px;font-family:inherit}
/* Website URL field with a locked visual "https://" prefix so
   submitters do not have to type the scheme and cannot break the
   URL by leaving it off. Input value contains only the domain
   (e.g. "yourbusiness.com"); server-side normalizeUrl handles the
   prepending. Same pattern used on the dashboard editor + admin
   review page. */
.ef-url-group{
  display:flex;align-items:stretch;
  background:var(--poster-ivory,#eef1f3);
  border:1.5px solid var(--line);border-radius:4px;
  overflow:hidden;
  transition:border-color .15s ease;
}
.ef-url-group:focus-within{border-color:var(--poster-crimson)}
.ef-url-prefix{
  padding:.6rem .55rem .6rem .7rem;
  color:var(--poster-mute);
  font-size:.9rem;font-family:'Spline Sans',sans-serif;
  background:rgba(28,92,133,.05);
  border-right:1px solid var(--line);
  user-select:none;white-space:nowrap;
  display:flex;align-items:center;
}
.ef-url-group input{
  flex:1 1 auto;min-width:0;
  border:0 !important;padding:.6rem .7rem !important;
  background:transparent !important;
  font-family:'Spline Sans',sans-serif;font-size:.95rem;
  color:var(--poster-ink);
}
.ef-url-group input:focus{outline:none !important;border:0 !important}
.ef-checkbox-inline{flex-direction:row;align-items:center;gap:.5rem;padding-top:1.4rem}
.ef-checkbox-inline input{width:18px;height:18px;accent-color:var(--poster-crimson)}
.ef-checkbox-inline span{font-size:.92rem;color:var(--poster-ink)}
.ef-checkbox-inline.ef-span-2{padding-top:.2rem}
.ef-honey{position:absolute;left:-9999px;opacity:0;pointer-events:none}
.ef-confirms{margin:1.2rem 0 1rem;display:flex;flex-direction:column;gap:.6rem}
.ef-check{display:flex;align-items:flex-start;gap:.55rem;font-size:.92rem;color:var(--poster-ink);cursor:pointer}
.ef-check input{margin-top:3px;width:16px;height:16px;accent-color:var(--poster-crimson);flex:none}
/* Image picker: upload OR url, on a single horizontal row that
   wraps. Preview sits below the row at small size. */
.ef-image-block{display:flex;flex-direction:column;gap:.4rem}
.ef-image-hint{margin:0 0 .2rem;font-size:.84rem;color:var(--poster-mute);line-height:1.5}
.ef-image-hint em{font-style:normal;color:var(--poster-ink);font-weight:600}
.ef-image-pickers{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.ef-image-upload{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.55rem .9rem;background:var(--poster-ivory,#eef1f3);
  border:1.5px solid var(--line);border-radius:4px;cursor:pointer;
  font-size:.92rem;font-weight:600;color:var(--poster-ink);
  transition:background .15s ease,color .15s ease,border-color .15s ease;
  white-space:nowrap}
.ef-image-upload:hover{background:var(--poster-crimson);color:var(--poster-ivory,#eef1f3);border-color:var(--poster-crimson)}
.ef-image-upload .ph-light{font-size:1.05rem}
.ef-image-clear{
  background:transparent;border:0;cursor:pointer;font-size:.85rem;
  color:var(--poster-mute);text-decoration:underline;padding:.4rem .2rem}
.ef-image-clear:hover{color:var(--poster-crimson)}
.ef-image-url{flex:1 1 200px;min-width:0}
.ef-image-preview{display:block;max-width:240px;max-height:160px;
  object-fit:cover;border:1px solid var(--line);border-radius:4px;margin-top:.4rem}

.event-form button[type="submit"]{margin-top:.4rem}
.event-form button[type="submit"][disabled]{opacity:.5;cursor:not-allowed}
.ef-msg{font-size:.92rem;margin:.8rem 0 0;color:var(--poster-crimson);min-height:1.2em}
.ef-msg.ok{color:var(--poster-gold)}

/* ===== Shared form primitive (for newsletter, advertiser, future forms) =====
   .form-field is the labelled-input building block any new Guide form
   should reach for instead of bespoke .ef-* / .sp-tip-* classes. It
   carries the rust focus ring, error state, hint and screen-reader
   plumbing in one drop-in, so a newsletter input or a Stripe-email
   field doesn't have to re-derive any of it. */
.form-field{display:flex;flex-direction:column;gap:.3rem;margin-bottom:1rem}
.form-label{
  font-family:'Spline Sans',sans-serif;font-weight:600;font-size:.85rem;
  color:var(--ink);letter-spacing:.02em;
}
.form-required{color:var(--poster-crimson)}
.form-input{
  font-family:'Spline Sans',sans-serif;font-size:1rem;line-height:1.4;
  padding:.6rem .8rem;background:var(--cream);color:var(--ink);
  border:1px solid rgba(28,92,133,.25);border-radius:8px;
  transition:border-color .15s,box-shadow .15s,background-color .15s;
  width:100%;-webkit-appearance:none;appearance:none;
}
.form-input::placeholder{color:var(--poster-mute);opacity:.7}
.form-input:focus{
  outline:0;border-color:var(--poster-crimson);
  box-shadow:0 0 0 3px rgba(28,92,133,.18);
}
.form-field.is-error .form-input{
  border-color:#0b2f4a;background:#f7f9fa;
}
.form-hint{font-size:.78rem;color:var(--poster-mute);margin:0;line-height:1.4}
.form-error{
  font-size:.82rem;color:#0b2f4a;font-weight:500;
  margin:0;line-height:1.4;
}
.evlist{padding:0 1.1rem;display:grid;gap:.9rem}
.evcard{
  display:flex;gap:1.1rem;background:var(--card);
  border:1.5px solid var(--line);
  border-radius:4px;padding:1rem 1.15rem;align-items:stretch;
  box-shadow:0 4px 14px rgba(11,47,74,.08);
  transition:transform .22s cubic-bezier(.2,.7,.2,1),
             box-shadow .22s ease, border-color .15s ease;
}
@media (hover:hover){
  .evcard:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(11,47,74,.16);
    border-color:var(--poster-crimson);
  }
}
/* Bold date block: poster-crimson plate, cream day numeral and gold
   month label. The big serif day reads first, the small spaced month
   below it. Matches the site's palette and rounded-corner language. */
.evcard .date{
  flex:0 0 78px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;background:var(--poster-crimson);
  border-radius:4px;padding:.65rem .35rem .55rem;
  box-shadow:0 4px 10px rgba(28,92,133,.25);
}
.evcard .date .d{
  font-family:'Fraunces',serif;font-size:2.4rem;font-weight:900;
  line-height:1;letter-spacing:-.02em;
  color:var(--poster-cream);
}
.evcard .date .m{
  margin-top:.4rem;
  font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;
  font-weight:700;color:var(--poster-gold);
}
.evcard > div:last-child{
  flex:1;display:flex;flex-direction:column;justify-content:center;
}
.evcard h4{
  font-family:'Fraunces',serif;font-size:1.15rem;font-weight:700;
  color:var(--ink);line-height:1.2;
}
.evcard .where{
  font-size:.82rem;color:var(--poster-crimson);
  font-weight:700;margin:.25rem 0 .3rem;letter-spacing:.01em;
}
.evcard .edesc{font-size:.9rem;color:var(--muted);line-height:1.5}

/* ---------- footer ----------
   Four columns on desktop: brand + Explore + Get Involved + Resources.
   Brand column gets a bit more space than the link columns since it
   carries a sentence of body copy. Mid-size viewports drop to two
   columns; phones stack everything to a single column. Max-width
   1280 matches .stopnav + .eventsection + the home ticker so the
   footer's left/right edges line up with the rest of the page. */
footer{background:var(--rail-deep);color:#cfdbe3;padding:2.6rem 1.4rem 1.6rem}
.fwrap{max-width:1280px;margin:0 auto;display:grid;gap:1.8rem}
.fcol h4{font-family:'Fraunces',serif;color:#eef1f3;font-size:1.05rem;margin-bottom:.5rem}
.fcol a{color:#cfdbe3;text-decoration:none;display:block;padding:.2rem 0;font-size:.9rem}
.fcol a:hover{color:var(--gold)}
.fbrand .brand{font-size:1.15rem;margin-bottom:.5rem;display:inline-block}
.fbrand p{font-size:.87rem;color:#9fb0a6;max-width:40ch}
.disc{
  max-width:1280px;margin:1.9rem auto 0;padding-top:1.3rem;
  border-top:1px solid var(--rail-2);font-size:.74rem;color:#7e948a;
}
@media(min-width:680px){
  .fwrap{grid-template-columns:1fr 1fr;gap:1.6rem 2.2rem}
}
@media(min-width:960px){
  .fwrap{grid-template-columns:1.6fr 1fr 1fr 1fr;gap:1.6rem 2.4rem}
}

/* ---------- back to top ----------
   Appears once the user has scrolled >600px (see app.js scroll
   listener). Sits in the bottom-right with a comfortable mobile
   tap target (52px, above the 44px WCAG minimum). Includes
   env(safe-area-inset-bottom) so it never slips under the iOS
   home indicator. */
.totop{
  position:fixed;
  right:1.1rem;
  bottom:calc(1.1rem + env(safe-area-inset-bottom,0));
  z-index:900;
  width:52px;height:52px;border-radius:50%;
  background:var(--poster-crimson);color:#fff;text-decoration:none;
  display:flex;align-items:center;justify-content:center;
  font-size:1.45rem;box-shadow:0 6px 16px rgba(28,92,133,.4);
  opacity:0;pointer-events:none;
  transition:opacity .25s ease, transform .22s ease-out;
}
.totop.show{opacity:1;pointer-events:auto}
.totop:active{transform:scale(.94)}

/* Floating back-to-all-stops button, mirror of .totop top-left. Shows
   after a short scroll so it does not crowd the hero on first view. */
.toback{
  position:fixed;
  left:1.1rem;
  top:calc(70px + env(safe-area-inset-top,0));
  z-index:900;
  width:46px;height:46px;border-radius:50%;
  background:var(--rail-deep);color:#eef1f3;text-decoration:none;
  display:flex;align-items:center;justify-content:center;
  font-size:1.35rem;
  border:1px solid #0b2f4a;
  box-shadow:0 6px 16px rgba(11,47,74,.35);
  opacity:0;pointer-events:none;
  transition:opacity .25s ease, transform .22s ease-out, color .15s;
}
.toback.show{opacity:1;pointer-events:auto}
.toback:hover{color:var(--gold)}
.toback:active{transform:scale(.94)}

.empty{color:var(--muted);font-style:italic;padding:1.5rem;text-align:center}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;bottom:1.4rem;transform:translateX(-50%) translateY(20px);
  background:var(--rail);color:#eef1f3;padding:.7rem 1.2rem;border-radius:4px;
  font-size:.86rem;font-weight:600;box-shadow:var(--shadow);
  opacity:0;transition:all .3s;z-index:1100;pointer-events:none;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ===== Stop-page link on listing cards ===== */
.stop-page-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Spline Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #1c5c85;
  text-decoration: none;
  margin-top: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.stop-page-link:hover { border-bottom-color: #1c5c85; }

/* ===== Lantern "Explore Stops" button (header) =====
   Matches .topnav a so the button sits inline with the other links. */
.stop-explorer-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #eef1f3;
  font-family: 'Spline Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 0;
  line-height: 1;
  transition: color .15s ease;
}
.stop-explorer-btn:hover { color: var(--gold); }
.stop-explorer-btn i {
  color: #f0b541;
  font-size: 1.3em;
  animation: lanternGlow 2.4s ease-in-out infinite;
}
@keyframes lanternGlow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(11,47,74,0.7)) drop-shadow(0 0 10px rgba(11,47,74,0.35));
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(11,47,74,1)) drop-shadow(0 0 22px rgba(11,47,74,0.55));
    transform: scale(1.08);
    opacity: 1;
  }
}

/* ===== Header "More" dropdown menu =====
   Categorised list of additional pages. Categories are placeholders -
   add new <a> tags under each .nav-section to populate. */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle {
  background: none; border: 0; cursor: pointer;
  color: #eef1f3;
  font-family: 'Spline Sans', sans-serif;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: 0; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 5px;
  transition: color .15s ease;
}
.nav-dropdown-toggle:hover, .nav-dropdown.open .nav-dropdown-toggle { color: var(--gold); }
.nav-dropdown-toggle i { font-size: 1.15em; transition: transform .2s; }
.nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: 100%; right: 0;
  background: var(--rail-deep);
  border: 1px solid #0b2f4a;
  min-width: 240px; padding: 18px 22px 20px;
  margin-top: 14px; z-index: 1500;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.nav-dropdown.open .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
/* Desktop: the four groups sit side by side in one wide panel. */
.nav-dropdown-panel { display: flex; align-items: flex-start; min-width: 0; max-width: calc(100vw - 32px); padding: 20px 6px 22px; }
.nav-section { flex: 0 0 auto; padding: 0 30px; }
.nav-section + .nav-section { margin-top: 0; padding-top: 0; border-top: 0; border-left: 1px solid #0b2f4a; }
.nav-section a { white-space: nowrap; }
.nav-section-label {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: 10px; color: var(--gold);
  font-family: 'Spline Sans', sans-serif;
  font-weight: 700; margin: 0 0 10px;
}
.nav-section a {
  display: block; color: #eef1f3;
  font-size: 13px; font-weight: 500;
  padding: 5px 0;
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .15s;
}
.nav-section a:hover { color: var(--gold); }
@media (max-width: 900px) { .nav-dropdown { display: none; } }

/* ===== Stop explorer overlay ===== */
.stop-explorer {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(11,47,74,0.97);
  display: none; overflow-y: auto;
}
.stop-explorer.open { display: block; }
.stop-explorer .se-panel { max-width: 1100px; margin: 0 auto; padding: 70px 24px 60px; position: relative; }
.stop-explorer .se-close {
  position: absolute; top: 22px; right: 22px;
  background: none; border: 2px solid #eef1f3; color: #eef1f3;
  width: 42px; height: 42px; font-size: 24px; line-height: 1; cursor: pointer;
}
.stop-explorer .se-close:hover { background: #eef1f3; color: #0b2f4a; }
.stop-explorer .se-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 600; color: #c89525; }
.stop-explorer .se-head h2 { font-family: 'Fraunces', serif; color: #eef1f3; font-size: clamp(2rem,5vw,3.4rem); margin: 10px 0 4px; font-weight: 700; }
.stop-explorer .se-head p { color: #cfdbe3; font-size: 14px; margin: 0 0 32px; }
.stop-explorer .se-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stop-explorer .se-card { text-decoration: none; background: #e1e7eb; border: 1px solid #6b7f8d;
  display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.stop-explorer .se-card:hover { border-color: #c89525; transform: translateY(-2px); }
.stop-explorer .se-card-img { height: 120px; overflow: hidden; background: #e1e7eb; }
.stop-explorer .se-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stop-explorer .se-card-body { padding: 14px 16px 16px; position: relative; }
.stop-explorer .se-num { position: absolute; top: -16px; left: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: #c89525; color: #0b2f4a; font-family: 'Fraunces', serif; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(11,47,74,.4); }
.stop-explorer .se-card h3 { font-family: 'Fraunces', serif; color: #0b2f4a; font-size: 20px; margin: 10px 0 4px; font-weight: 600; }
.stop-explorer .se-time { display: block; color: #1c5c85; font-size: 12px; letter-spacing: .03em; font-weight: 600; }
.stop-explorer .se-explore { display: inline-block; margin-top: 10px; color: #1c5c85; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 900px) { .stop-explorer .se-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stop-explorer .se-grid { grid-template-columns: 1fr; } }

/* ===== "Plan a Trip" nav pill (shared across all pages) =====
   Sits inline with other .topnav items. Text stays ivory in both
   states; only the background flips to rusty brown on hover. The
   selectors use `a.topnav-plan` so they out-specify the
   `.topnav a:hover{color:var(--gold)}` rule above and the text
   doesn't pick up the gold link-hover. */
a.topnav-plan{
  font-family:'Spline Sans',sans-serif;
  font-size:.82rem;font-weight:600;letter-spacing:.02em;
  color:#eef1f3;text-decoration:none;
  padding:.35rem .8rem;border-radius:3px;
  border:1px dashed var(--poster-gold);
  transition:background .15s, color .15s, border-color .15s;
}
a.topnav-plan:hover{
  /* Matches the .btn-primary rust (#12405f) so the pill reads as
     part of the site's CTA palette, not a lighter shade of crimson. */
  background:#12405f;color:#eef1f3;border-color:#12405f;
}

/* Sign in link on the topnav. Present on every site page so business
   owners can reach their dashboard from anywhere. Deliberately more
   compact than the "Plan a Trip" pill so it does not compete with
   traveller CTAs; person icon signals "your account." Force
   a.topnav-signin specificity for the same reason as topnav-plan. */
a.topnav-signin{
  display:inline-flex;align-items:center;gap:.32rem;
  font-family:'Spline Sans',sans-serif;
  font-size:.82rem;font-weight:600;letter-spacing:.02em;
  color:#eef1f3;text-decoration:none;
  padding:.35rem .8rem;border-radius:999px;
  border:1px solid rgba(238,241,243,.32);
  transition:background .15s, color .15s, border-color .15s;
}
a.topnav-signin:hover{
  background:rgba(238,241,243,.12);
  border-color:rgba(238,241,243,.55);
  color:#eef1f3;
}
a.topnav-signin i{font-size:1rem;line-height:1}

/* ===== Stop-page "Plan Your Trip" CTA =====
   Rendered by stop-page.js between the "Continue Your Journey" and
   "Before You Board" sections. Mirrors the /plan boarding-pass
   aesthetic: forest stub with a vertical wordmark on the left, warm
   cream paper body with a rust kicker, Fraunces headline and rust
   CTA on the right. Reads as a real ticket the visitor is being
   handed at the end of the stop guide. */
.sp-plan-trip-cta{
  margin:1.8rem auto;
  max-width:820px;
  background:#f7f9fa;
  color:#14212b;
  display:grid;grid-template-columns:60px 1fr;
  box-shadow:0 10px 26px rgba(11,47,74,.14);
  position:relative;
}
.sp-plan-trip-cta-stub{
  background:#0b2f4a;
  color:#eef1f3;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  padding:18px 8px;
  border-right:2px dashed rgba(238,241,243,.45);
  text-align:center;
}
.sp-plan-trip-cta-stub i{
  font-size:24px;color:#c89525;line-height:1;
}
.sp-plan-trip-cta-stub-line{
  writing-mode:vertical-rl;transform:rotate(180deg);
  font-family:'Fraunces',Georgia,serif;
  font-weight:900;font-size:13px;letter-spacing:.18em;
  text-transform:uppercase;line-height:1;
  color:#c89525;
}
.sp-plan-trip-cta-body{
  padding:24px 28px 22px;
  display:flex;flex-direction:column;gap:8px;
}
.sp-plan-trip-cta-kicker{
  font-family:'Spline Sans',sans-serif;
  text-transform:uppercase;letter-spacing:.22em;
  font-size:11px;font-weight:700;color:#1c5c85;
}
.sp-plan-trip-cta-body h3{
  font-family:'Fraunces',Georgia,serif;
  font-weight:700;font-size:1.5rem;color:#0b2f4a;
  margin:0;line-height:1.1;letter-spacing:-.005em;
}
.sp-plan-trip-cta-body p{
  font-family:'Fraunces',Georgia,serif;
  font-style:italic;font-size:1rem;line-height:1.5;
  color:#14212b;opacity:.85;margin:0 0 8px;
}
.sp-plan-trip-cta-btn{
  align-self:flex-start;
  display:inline-flex;align-items:center;gap:6px;
  background:#1c5c85;color:#eef1f3;
  font-family:'Spline Sans',sans-serif;
  font-weight:600;font-size:.92rem;letter-spacing:.04em;
  padding:.75rem 1.3rem;border-radius:0;
  text-decoration:none;
  border:2px solid #1c5c85;
  transition:background .15s, border-color .15s, transform .15s;
}
.sp-plan-trip-cta-btn:hover{
  background:#0b2f4a;border-color:#0b2f4a;color:#eef1f3;
  transform:translateY(-1px);
}
.sp-plan-trip-cta-btn i{font-size:1.1em;line-height:1}
@media(max-width:560px){
  .sp-plan-trip-cta{grid-template-columns:1fr}
  .sp-plan-trip-cta-stub{
    flex-direction:row;justify-content:center;gap:14px;
    padding:12px 16px;
    border-right:0;border-bottom:2px dashed rgba(238,241,243,.45);
  }
  .sp-plan-trip-cta-stub-line{
    writing-mode:horizontal-tb;transform:none;
  }
  .sp-plan-trip-cta-body{padding:22px 20px}
  .sp-plan-trip-cta-body h3{font-size:1.3rem}
  .sp-plan-trip-cta-btn{width:100%;justify-content:center}
}

/* ---------- Verified badge + Claim this listing link (app view) ---------- */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(63, 110, 68, 0.12);
  color: #3f6e44;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Spline Sans', sans-serif;
  vertical-align: middle;
  margin-left: 6px;
}
.verified-badge i { font-size: 0.9rem; }
.claim-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #2f4a5b;
  text-decoration: none;
  padding: 6px;
  border: 1px dashed #c9d3da;
  border-radius: 4px;
}
.claim-link:hover { background: #e6ecf0; }
.claim-detail-line { margin: 10px 0; }
.claim-detail-line .claim-link { display: inline-block; text-align: left; margin: 0; }

/* Suggest an edit modal. Opened from the detail view "Suggest an
   edit" link. Mirrors the .ev-modal pattern (dialog + backdrop). */
/* Suggest-an-edit modal. Every inner selector is scoped under
   .se-modal so the .se-* class names never leak onto the stop
   explorer overlay, which also uses .se-panel / .se-close / .se-kicker
   / etc. for its own inner elements. Do NOT unscope these rules. */
.se-modal { padding: 0; border: 0; background: transparent; max-width: 560px; width: 92vw; }
.se-modal[open] { display: block; }
.se-modal::backdrop { background: rgba(20, 28, 30, .72); backdrop-filter: blur(4px); }
.se-modal .se-panel { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 6px; padding: 2rem 1.6rem 1.6rem; box-shadow: 0 20px 60px rgba(20, 28, 30, .35); }
.se-modal .se-close { position: absolute; top: .6rem; right: .6rem; background: transparent; border: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--poster-ink); }
.se-modal .se-close:hover { background: rgba(0, 0, 0, .06); color: var(--poster-crimson); }
.se-modal .kicker { color: var(--poster-crimson); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; margin-bottom: .35rem; }
.se-modal h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--poster-ink); margin: 0 0 .55rem; }
.se-modal .se-lede { color: var(--poster-ink); font-size: .92rem; line-height: 1.55; margin: 0 0 1rem; }
.se-modal .se-lede strong { color: var(--poster-crimson); }
.se-modal .se-lede .se-claim-inline { color: var(--poster-crimson); font-weight: 600; text-decoration: underline; }
.se-modal .se-form .se-field { display: block; margin: 0 0 .8rem; }
.se-modal .se-form .se-label { display: block; font-size: .78rem; font-weight: 600; color: var(--poster-ink); margin: 0 0 .3rem; letter-spacing: .02em; }
.se-modal .se-form .se-req { color: var(--poster-crimson); }
.se-modal .se-form input, .se-modal .se-form textarea { width: 100%; box-sizing: border-box; background: #fdfaf3; border: 1.5px solid var(--line); border-radius: 4px; padding: .55rem .7rem; font-family: inherit; font-size: .95rem; color: var(--poster-ink); line-height: 1.4; }
.se-modal .se-form textarea { resize: vertical; min-height: 5.5rem; }
.se-modal .se-form input:focus, .se-modal .se-form textarea:focus { outline: 2px solid var(--poster-crimson); outline-offset: 1px; border-color: var(--poster-crimson); }
.se-modal .se-form .se-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 480px) { .se-modal .se-form .se-two-col { grid-template-columns: 1fr; } }
.se-modal .se-form .btn { width: 100%; margin-top: .3rem; }
.se-modal .se-form .se-msg { margin: .6rem 0 0; font-size: .88rem; min-height: 1.2em; color: var(--poster-ink); }
.se-modal .se-form .se-msg.is-ok { color: #2d5a35; font-weight: 600; }
.se-modal .se-form .se-msg.is-err { color: var(--poster-crimson); }
.se-modal .se-honey { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------
   DETAIL VIEW: mobile adjustments
   Every knob below is packed into a single 767px block so a phone
   never gets desktop sizing on the detail view. Values chosen so
   the smallest common screens (iPhone SE at 320px) do not squeeze
   the labeled info column, and the discount banner does not eat
   half the screen with padding.
------------------------------------------------------------------- */
@media (max-width:767px){
  /* Title feels top-heavy at 1.7rem on phone. */
  .detail-body h3{font-size:1.35rem}
  /* Info block: slimmer label column and tighter padding so long
     addresses stay on one or two lines instead of wrapping raggedly. */
  .card-info.detail-info{
    padding:.75rem .85rem;
    gap:.4rem;
    margin:.75rem 0 1rem;
  }
  .card-info.detail-info .ci-row{gap:.6rem}
  .card-info.detail-info .ci-label{
    flex:0 0 4.4rem;
    font-size:.66rem;letter-spacing:.09em;
  }
  .card-info.detail-info .ci-value{font-size:.92rem;line-height:1.4}
  /* Description text stays generous but shrinks a touch so long
     First Class copy does not scroll for a whole minute. */
  .detail-desc{font-size:.94rem;line-height:1.6}
  /* Discount banner: smaller type and padding, still full-bleed. */
  .detail-hero + .card-discount-banner{
    padding:.75rem 1rem;
    font-size:.88rem;
    gap:.45rem;
  }
  .detail-hero + .card-discount-banner i{font-size:1rem}
  /* Hero pill badges: keep them visible but smaller so two badges
     do not wrap or crowd on 320px screens. */
  .detail-img .card-photo-badges{top:10px;left:10px;gap:.25rem}
  .detail-img .card-photo-badge{
    font-size:.62rem;padding:.28rem .5rem;letter-spacing:.08em;
  }
  .detail-img .card-photo-badge i{font-size:.75rem}
  /* Map icon: 40px is still a comfortable tap target and stops
     dominating the top-right corner of a phone-sized hero. */
  .detail-img .detail-map-icon{
    top:10px;right:10px;
    width:40px;height:40px;
  }
  .detail-img .detail-map-icon i{font-size:19px}
  /* Toprow: rating text scales down a hair, keeps space-between
     alignment so pill left / rating right pattern holds. */
  .detail-body .rating{font-size:.85rem}
  .detail-body .tag{font-size:.6rem;padding:.22rem .5rem}
  /* Share row wraps to two lines on very narrow screens; make
     buttons flexibly grow so they fill the row cleanly. */
  .share-row button{flex:1 1 auto;justify-content:center;min-width:auto}
}

/* ============================================================
   Reviews section inside the homepage detail view.
   Same class names (.sp-*) as the stop-page.css version so the
   render code stays identical between app.js and stop-page.js.
   Colours use the poster tokens where available. */
.sp-reviews{
  margin-top:1.4rem;padding-top:1.2rem;
  border-top:1px solid var(--line,#c9d3da);
}
.sp-reviews-title{
  font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:1.1rem;margin:0 0 .7rem;color:var(--poster-ink,#14212b);
}
.sp-reviews-summary{
  font-size:1rem;color:var(--poster-ink,#14212b);margin:0 0 .8rem;
  display:flex;align-items:baseline;gap:.35rem;
}
.sp-reviews-summary strong{font-size:1.15rem;font-weight:700}
.sp-reviews-count{color:var(--poster-mute,#4a5a66);font-size:.88rem}
.sp-reviews-empty{color:var(--poster-mute,#4a5a66);font-size:.9rem;margin:0 0 .8rem;font-style:italic}
.sp-review-item{
  background:var(--poster-ivory,#eef1f3);border:1px solid var(--line,#c9d3da);border-radius:4px;
  padding:.75rem .95rem;margin-bottom:.55rem;
}
.sp-review-head{
  display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap;
  margin-bottom:.35rem;font-size:.86rem;
}
.sp-review-stars{color:var(--poster-gold,#e3a92f);font-size:.95rem;letter-spacing:.05em}
.sp-review-date{color:var(--poster-mute,#4a5a66);font-size:.78rem;margin-left:auto}
.sp-review-comment{margin:0;font-size:.9rem;line-height:1.5;color:var(--poster-ink,#14212b);white-space:pre-wrap}
.sp-review-response{
  margin-top:.55rem;padding:.55rem .7rem;
  background:rgba(63,110,68,.08);border-left:3px solid #3f6e44;
  border-radius:3px;font-size:.85rem;color:var(--poster-ink,#14212b);line-height:1.45;
}
.sp-review-response strong{color:#3f6e44;font-weight:700;margin-right:.25rem}

.sp-review-cta{
  display:inline-block;margin-top:.6rem;
  padding:.65rem 1.15rem;
  background:transparent;color:var(--poster-crimson,#1c5c85);
  border:1.5px solid var(--poster-crimson,#1c5c85);border-radius:4px;
  font-family:inherit;font-size:.88rem;font-weight:600;
  cursor:pointer;transition:background .12s,color .12s;
}
.sp-review-cta:hover{background:var(--poster-crimson,#1c5c85);color:#eef1f3}

.sp-review-form{margin-top:.9rem;position:relative}
.sp-rf-row{margin-bottom:.7rem}
.sp-rf-row label{
  display:block;font-size:.78rem;letter-spacing:.06em;
  text-transform:uppercase;font-weight:700;color:var(--poster-mute,#4a5a66);margin-bottom:.3rem;
}
.sp-rf-hint{font-size:.72rem;font-weight:500;color:var(--poster-mute,#4a5a66);text-transform:none;letter-spacing:normal;margin-left:.3rem}
.sp-review-form input[type="text"],
.sp-review-form input[type="email"],
.sp-review-form textarea{
  width:100%;padding:.6rem .75rem;
  border:1.5px solid var(--line,#c9d3da);border-radius:4px;
  background:#ffffff;color:var(--poster-ink,#14212b);
  font:inherit;font-size:.92rem;line-height:1.4;
}
.sp-review-form textarea{min-height:100px;resize:vertical}
.sp-review-form input:focus,
.sp-review-form textarea:focus{outline:2px solid var(--poster-crimson,#1c5c85);outline-offset:-1px;border-color:var(--poster-crimson,#1c5c85)}
.sp-rf-stars{display:inline-flex;gap:.2rem}
.sp-rf-stars button{
  background:transparent;border:0;padding:.15rem .3rem;
  font-size:1.55rem;line-height:1;color:#c9d3da;cursor:pointer;
  transition:color .12s,transform .1s;
}
.sp-rf-stars button:hover{transform:scale(1.1)}
.sp-rf-stars button.is-active{color:var(--poster-gold,#e3a92f)}
.sp-rf-actions{display:flex;gap:.55rem;justify-content:flex-end;margin-top:.7rem}
.sp-rf-cancel{
  background:transparent;color:var(--poster-mute,#4a5a66);
  border:1px solid var(--line,#c9d3da);border-radius:4px;
  padding:.55rem 1rem;cursor:pointer;font:inherit;font-size:.88rem;
}
.sp-rf-cancel:hover{background:#e6ecf0}
.sp-rf-submit{
  background:var(--poster-crimson,#1c5c85);color:#eef1f3;
  border:0;border-radius:4px;
  padding:.55rem 1.15rem;cursor:pointer;font:inherit;font-weight:600;font-size:.9rem;
}
.sp-rf-submit:hover:not(:disabled){background:#12405f}
.sp-rf-submit:disabled{opacity:.5;cursor:not-allowed}
.sp-rf-msg{margin:.6rem 0 0;font-size:.85rem;color:var(--poster-mute,#4a5a66);min-height:1.1em}
.sp-rf-msg.is-error{color:#a1341f}
.sp-rf-msg.is-ok{color:#3f6e44}

/* ---------- photo counter on the detail gallery ---------- */
.gallery .gallery-count{
  position:absolute;right:.7rem;bottom:.65rem;z-index:3;
  padding:.28rem .6rem;border-radius:4px;
  background:rgba(11,47,74,.72);color:#eef1f3;-webkit-text-fill-color:#eef1f3;
  font-size:.78rem;font-weight:700;letter-spacing:.02em;
  pointer-events:none;
}

/* ---------- listing card photo gallery (2+ photos) ---------- */
.card-img.has-gallery .card-gal-btn{
  position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  width:34px;height:34px;border-radius:50%;
  background:rgba(11,47,74,.62);color:#eef1f3;-webkit-text-fill-color:#eef1f3;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;transition:opacity .15s ease, background .15s ease;
}
.card-img.has-gallery .card-gal-btn i{font-size:1.05rem;-webkit-text-fill-color:#eef1f3}
.card-img.has-gallery .card-gal-prev{left:.6rem}
.card-img.has-gallery .card-gal-next{right:.6rem}
.card-img.has-gallery .card-gal-btn:hover{background:rgba(11,47,74,.9)}
.card:hover .card-img.has-gallery .card-gal-btn,
.card:focus-within .card-img.has-gallery .card-gal-btn{opacity:1}
/* Touch: no hover, so keep the arrows faintly visible; swipe also works. */
@media (hover:none){
  .card-img.has-gallery .card-gal-btn{opacity:.85}
}
.card-img.has-gallery .card-gal-count{
  position:absolute;right:.6rem;bottom:.6rem;z-index:4;
  display:inline-flex;align-items:center;gap:.3rem;
  padding:.24rem .55rem;border-radius:4px;
  background:rgba(11,47,74,.72);color:#eef1f3;-webkit-text-fill-color:#eef1f3;
  font-size:.74rem;font-weight:700;letter-spacing:.02em;
  pointer-events:none;
}
.card-img.has-gallery .card-gal-count i{font-size:.9rem;-webkit-text-fill-color:#eef1f3}


/* ---------- category placeholder (listing has no photo) ---------- */
.cat-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#e1e7eb}
.cat-ph-disc{
  width:84px;height:84px;border-radius:50%;background:#e3a92f;
  display:flex;align-items:center;justify-content:center;
}
.cat-ph-disc i{font-size:48px;line-height:1;color:#0b2f4a;-webkit-text-fill-color:#0b2f4a}
.detail-img .cat-ph-disc{width:110px;height:110px}
.detail-img .cat-ph-disc i{font-size:62px}
.sp-lc-photo .cat-ph-disc{width:72px;height:72px}
.sp-lc-photo .cat-ph-disc i{font-size:42px}

/* ---------- stop-page listing card photo + gallery ---------- */
.sp-lc-photo{position:relative;width:100%;height:170px;overflow:hidden;background:#e1e7eb}
.sp-lc-photo-link{display:block;width:100%;height:100%;color:inherit;text-decoration:none}
.sp-lc-photo img{width:100%;height:100%;object-fit:cover;display:block;position:relative;z-index:1;transition:opacity 220ms ease}
.sp-lc-photo img.img-failed{opacity:0}
.sp-lc-photo .img-fallback{position:absolute;inset:0;z-index:0;opacity:0;transition:opacity .22s ease}
.sp-lc-photo.show-fallback .img-fallback{opacity:1}
.sp-lc-photo.has-gallery .card-gal-btn{
  position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  width:34px;height:34px;border-radius:50%;
  background:rgba(11,47,74,.62);color:#eef1f3;-webkit-text-fill-color:#eef1f3;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;transition:opacity .15s ease, background .15s ease;
}
.sp-lc-photo.has-gallery .card-gal-btn i{font-size:1.05rem;-webkit-text-fill-color:#eef1f3}
.sp-lc-photo.has-gallery .card-gal-prev{left:.6rem}
.sp-lc-photo.has-gallery .card-gal-next{right:.6rem}
.sp-lc-photo.has-gallery .card-gal-btn:hover{background:rgba(11,47,74,.9)}
.sp-lcard:hover .sp-lc-photo.has-gallery .card-gal-btn,
.sp-lcard:focus-within .sp-lc-photo.has-gallery .card-gal-btn{opacity:1}
@media (hover:none){ .sp-lc-photo.has-gallery .card-gal-btn{opacity:.85} }
.sp-lc-photo.has-gallery .card-gal-count{
  position:absolute;right:.6rem;bottom:.6rem;z-index:4;
  display:inline-flex;align-items:center;gap:.3rem;
  padding:.24rem .55rem;border-radius:4px;
  background:rgba(11,47,74,.72);color:#eef1f3;-webkit-text-fill-color:#eef1f3;
  font-size:.74rem;font-weight:700;letter-spacing:.02em;pointer-events:none;
}
.sp-lc-photo.has-gallery .card-gal-count i{font-size:.9rem;-webkit-text-fill-color:#eef1f3}


/* ---------- First Class cards stand out ---------- */
.card-first-class{border-top-width:9px}
.card-first-class .card-img{height:240px}
@media (max-width:640px){ .card-first-class .card-img{height:220px} }

/* Claim-your-event page */
.claim-event-summary,.claim-event-done{max-width:640px;margin:0 auto 1.4rem}
.claim-event-summary{background:var(--poster-ivory,#eef1f3);border:1.5px solid var(--line,#c9d3da);border-left:4px solid var(--poster-crimson,#1c5c85);border-radius:6px;padding:1rem 1.2rem}
.claim-event-name{font-family:'Fraunces',Georgia,serif;font-size:1.25rem;font-weight:600;color:var(--poster-ink,#14212b)}
.claim-event-meta{color:var(--poster-mute,#4a5a66);font-size:.92rem;margin-top:.2rem}
.claim-phone-note{color:var(--poster-mute,#4a5a66);font-size:.85rem;margin:.2rem 0 1rem}
.claim-event-done{text-align:center}
.claim-event-done h2{font-family:'Fraunces',Georgia,serif;font-weight:600;color:var(--poster-ink,#14212b)}
#claimForm[hidden],#claimSummary[hidden],#claimGone[hidden],#claimDone[hidden]{display:none!important}
.hev-foot-actions{flex-wrap:wrap;justify-content:flex-end}

/* Owner-approved contact buttons on an event card */
.hev-contact{display:flex;flex-wrap:wrap;gap:.9rem;margin:.1rem 0 .6rem}
.hev-contactbtn{font-size:.8rem;font-weight:600;color:var(--poster-ink);display:inline-flex;align-items:center;gap:.25rem;
  background:transparent;border:0;padding:0;cursor:pointer;font-family:'Spline Sans',sans-serif;transition:color .15s ease}
.hev-contactbtn .ph-light{font-size:1rem}
.hev-contactbtn:hover{color:var(--poster-crimson)}

.ef-hint{display:block;font-size:.78rem;line-height:1.4;color:var(--poster-mute,#4a5a66);margin-top:.3rem;font-weight:400}

/* Event form: address suggestions (same look as the listing form) and
   the admission-fee rows. */
.ef-address-wrap{position:relative}
.ef-address-suggestions{position:absolute;top:100%;left:0;right:0;margin-top:3px;background:var(--card);border:1px solid var(--line);border-radius:4px;box-shadow:0 8px 22px -8px rgba(11,47,74,.3);z-index:20;max-height:260px;overflow-y:auto}
.ef-address-suggestion{padding:.65rem .85rem;cursor:pointer;font-size:.9rem;line-height:1.4;color:var(--poster-ink);border-bottom:1px solid var(--line)}
.ef-address-suggestion:hover,.ef-address-suggestion.is-active{background:var(--poster-ivory,#eef1f3)}
.ef-address-attribution{padding:.45rem .85rem;font-size:.72rem;color:var(--poster-mute);text-align:right;background:var(--poster-ivory,#eef1f3);border-top:1px solid var(--line)}
.ef-address-attribution a{color:var(--poster-mute);text-decoration:underline}
.ef-address-loading{padding:.6rem .85rem;font-size:.82rem;color:var(--poster-mute);font-style:italic}
.ef-price-rows{display:flex;flex-direction:column;gap:.5rem}
.ef-price-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:.5rem;align-items:center}
.ef-price-row.has-other{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto}
.ef-price-row[hidden],.ef-price-other[hidden]{display:none}
.ef-price-money{display:flex;align-items:stretch;background:var(--poster-ivory,#eef1f3);border:1.5px solid var(--line);border-radius:4px;overflow:hidden}
.ef-price-money:focus-within{border-color:var(--poster-crimson)}
.ef-price-money b{padding:.6rem .1rem .6rem .7rem;color:var(--poster-mute);font-weight:600}
.event-form .ef-price-money input{border:0;background:transparent;border-radius:0;padding-left:.35rem}
.ef-price-remove{background:none;border:0;font-size:1.3rem;line-height:1;color:var(--poster-mute);cursor:pointer;padding:.2rem .45rem}
.ef-price-remove:hover{color:var(--poster-crimson)}
.ef-price-add{align-self:flex-start;background:none;border:0;padding:.2rem 0;font:inherit;font-size:.88rem;font-weight:600;color:var(--poster-crimson);cursor:pointer}
.ef-price-add:hover{text-decoration:underline}
.ef-price-rows.is-off{opacity:.45;pointer-events:none}

/* Bigger tap targets on phones (44px guideline). Layout is unchanged on desktop. */
@media (max-width: 700px), (pointer: coarse) {
  .hev-mapbtn, .hev-claimbtn, .hev-reset, .sp-event-mapbtn, .sp-event-claimbtn, .sp-evreset, .sp-lc-map {
    min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding-top: .5rem; padding-bottom: .5rem;
  }
  .hev-filters select, .sp-evfilters select, .hev-filter-grid select, [class*="sp-ev"] select { min-height: 44px; }
  .fcol a, .disc a { padding-top: .7rem; padding-bottom: .7rem; }
  .sp-breadcrumb a, .sp-toc-link, .sp-lc-top-pills > * { display: inline-flex; align-items: center; min-height: 44px; }
  .sp-toc-select { min-height: 44px; }
  .biz-page a:not(.biz-cta):not(.biz-plan-cta), .submit-event-page main a { padding-top: .5rem; padding-bottom: .5rem; display: inline-block; }
  input[type="checkbox"] { width: 24px; height: 24px; min-width: 24px; }
  label:has(> input[type="checkbox"]) { min-height: 44px; align-items: center; }
}

/* Closed phone menu is hidden from the tab order and screen readers, not just moved off-screen. */
@media (max-width:767px){
  .mobilemenu{visibility:hidden;transition:transform .3s ease, visibility 0s linear .3s}
  .mobilemenu.open{visibility:visible;transition:transform .3s ease, visibility 0s}
}

/* More 44px tap targets on phones. */
@media (max-width: 700px), (pointer: coarse) {
  .fcol a { min-height: 44px; display: flex; align-items: center; }
  input[type="date"], input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select { min-height: 44px; }
  .hev-pager button, .hev-pager a, [class*="pager"] button { min-width: 44px; min-height: 44px; }
  summary { min-height: 44px; display: flex; align-items: center; }
  [class*="toggle"] button, [role="tab"], .biz-billing button, .biz-cta, .biz-plan-cta, [class*="claim-btn"], .sp-lc-claim, .sp-lc-claimbtn { min-height: 44px; }
  .brand, .topbar .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .sp-lc-top-pills button, .sp-sort button, .sp-filter-chip { min-height: 44px; }
  .leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; }
}
