/* The share page, /l/<id>. --kind is cobalt for a crawl, coral for a list, set on body. */
body.crawl-page { padding: 0; }

.hero { background: var(--kind); color: #fff; padding: 0 20px; position: relative; overflow: hidden; }
/* The dotted trail of a route, fading in from the right. */
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.2) 1.6px, transparent 1.8px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%); mask-image: linear-gradient(115deg, transparent 35%, #000 100%); pointer-events: none; }
.hero.cover { background-color: #101014; background-size: cover; background-position: center; }
.hero.cover::before { display: none; }
.hero.cover .hero-in { padding-top: 0; }
.hero.cover .owner { margin-top: 120px; }
.hero-in { position: relative; max-width: 1080px; margin: 0 auto; padding-bottom: 124px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.hero .mark { color: #fff; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: #101014; font-weight: 800; font-size: 14px; text-decoration: none; }
.owner { display: flex; align-items: center; gap: 8px; margin: 40px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.owner svg { width: 18px; height: 18px; flex: none; }
.hero h1 { margin: 12px 0 0; font-size: clamp(38px, 10.5vw, 84px); overflow-wrap: anywhere; max-width: 16ch; }
.about { margin: 16px 0 0; font-size: 18px; line-height: 1.45; opacity: .92; max-width: 42ch; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 28px; }
.stats div { display: grid; gap: 2px; }
.stats b { font-family: Unbounded, "Arial Black", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats b i { font-style: normal; font-size: 15px; letter-spacing: 0; margin: 0 6px 0 3px; }
.stats b i:last-child { margin-right: 0; }
.stats span { font-size: 13px; font-weight: 600; opacity: .85; }

.sheet { max-width: 1080px; margin: 0 auto; padding: 0 20px 120px; }
.side { margin-top: -92px; position: relative; }
.map-card { position: relative; background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(16,16,20,.55), 0 0 0 1px var(--line); }
#map { height: clamp(260px, 56vw, 400px); background: var(--raised); }
#map svg.fallback { width: 100%; height: 100%; display: block; }
.route { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 18px; font-size: 14px; }
.route b { font-weight: 800; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route i { flex: 1 1 24px; min-width: 24px; border-top: 2.5px dotted var(--ink-soft); }

.invite { display: grid; gap: 12px; margin-top: 24px; }
.invite p { margin: 0; font-size: 17px; line-height: 1.45; }
.invite .btn { width: 100%; text-align: center; }
.open { justify-self: center; color: var(--ink-soft); font-size: 15px; font-weight: 600; padding: 6px 0; }

.stops-wrap { margin-top: 44px; }
.stops-wrap h2 { margin: 0; font-size: 26px; }
.stops { list-style: none; margin: 22px 0 0; padding: 0; }
.stop { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
/* Drawn as a background, with a height: Safari collapses a dotted border between top and bottom here. */
.stop::before { content: ""; position: absolute; left: 18px; top: 46px; width: 4px; height: calc(100% - 52px); background: radial-gradient(circle, var(--ink-soft) 1.4px, transparent 1.7px) 0 0 / 4px 9px repeat-y; opacity: .55; }
.stop:last-child::before { display: none; }
.pin { width: 40px; height: 40px; border-radius: 50%; background: var(--kind); color: #fff; display: grid; place-items: center; font-family: Unbounded, "Arial Black", sans-serif; font-weight: 800; font-size: 14px; position: relative; font-variant-numeric: tabular-nums; }
.stop-body { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; min-height: 40px; }
.stop-text { display: grid; gap: 3px; align-content: start; padding-top: 2px; min-width: 0; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kind); }
.stop h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.where { margin: 0; font-size: 14px; color: var(--ink-soft); }
.note { margin: 4px 0 0; font-size: 15px; font-style: italic; }
.rating { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.rating b { color: var(--ink); }
.shot { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: none; background: var(--raised); }
.leg { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 24px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.leg svg { width: 16px; height: 16px; }
.stop:last-child { padding-bottom: 0; }
/* A list has no order: small dots, no trail, a hairline between. */
.stops.plain .stop { grid-template-columns: 14px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--line); }
.stops.plain .stop::before { display: none; }
.stops.plain .pin { width: 14px; height: 14px; margin-top: 7px; }

.band { margin-top: 56px; background: var(--ink); color: var(--canvas); border-radius: 26px; padding: 30px 24px; display: grid; gap: 18px; }
.band h2 { margin: 0; font-size: 26px; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 16px; line-height: 1.45; }
.band li { color: color-mix(in srgb, var(--canvas) 74%, transparent); }
.band li b { color: var(--canvas); }
.btn.light { background: var(--canvas); color: var(--ink); justify-self: start; }
.credit { margin-left: auto; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--canvas) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.dock.show { transform: none; }
.dock .btn { min-height: 52px; padding: 0 14px; font-size: 16px; }

/* Map markers */
.mk { width: 30px; height: 30px; border-radius: 50%; background: var(--kind); color: #fff; border: 3px solid #fff; display: grid; place-items: center; font: 800 11px Unbounded, "Arial Black", sans-serif; box-shadow: 0 3px 8px rgba(16,16,20,.35); }
.mk.sm { width: 22px; height: 22px; font-size: 8.5px; border-width: 2px; }
.mk.dot { width: 16px; height: 16px; border-width: 2.5px; }

/* The pub page, /p/<id>: one pub, so one column, a pin not a route, the address under the map. */
.stats b.score { display: inline-flex; align-items: center; gap: 6px; }
.stats b.score svg { width: 24px; height: 24px; color: var(--butter); flex: none; }
.stats b.score.quiet { font-size: 22px; }
.route.addr { justify-content: space-between; gap: 16px; }
.route.addr span { min-width: 0; line-height: 1.35; }
.route.addr a { flex: none; font-weight: 800; color: var(--ink); text-underline-offset: 3px; }
.credit-line { margin: 18px 0 0; font-size: 12px; color: var(--ink-soft); text-align: center; }
.credit-line a { color: inherit; }
.mk.solo { width: 26px; height: 26px; border-width: 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } .dock { transition: none; } }

@media (min-width: 900px) {
  .hero-in { padding-bottom: 150px; }
  .owner { margin-top: 64px; }
  .sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; padding-bottom: 40px; }
  .side { grid-column: 1; position: sticky; top: 24px; }
  #map { height: 420px; }
  .stops-wrap { grid-column: 2; margin-top: 40px; }
  .band, .sheet footer { grid-column: 1 / -1; }
  .dock { display: none; }
  .pub-page .hero-in, .pub-page .sheet { max-width: 720px; }
  .pub-page .sheet { display: block; }
  .pub-page .side { position: relative; top: auto; }
}
