@font-face {
  font-family: "Jura";
  src: url("/fonts/Jura-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jura";
  src: url("/fonts/Jura-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Jura";
  src: url("/fonts/Jura-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Jura";
  src: url("/fonts/Jura-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --red: #e31b23;
  --red-deep: #b71219;
  --red-tint: #fef2f2;
  --red-line: #fecaca;
  --green: #15803d;
  --green-tint: #ecfdf3;
  --amber: #b45309;
  --amber-tint: #fffbeb;
  --bg: #f6f5f4;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #8a8580;
  --line: #ebe8e5;
  --shadow: 0 1px 2px rgb(28 25 23 / 0.04), 0 8px 24px rgb(28 25 23 / 0.06);
  --radius: 18px;
  --font: "Jura", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The bar at the top. */
.bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand img {
  height: 26px;
  width: auto;
}
.bar-title {
  color: var(--ink-3);
  font-size: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.share svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share:hover {
  border-color: var(--red-line);
  color: var(--red);
}

/* The page. */
main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.columns {
  display: grid;
  gap: 16px;
}
.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
@media (min-width: 900px) {
  main {
    padding: 24px;
    gap: 20px;
  }
  .columns {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
  }
  .col-main {
    position: sticky;
    top: 84px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.card[hidden] {
  display: none;
}
.muted {
  color: var(--ink-2);
  font-size: 14px;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* The headline. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 18px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--red);
}
.hero.tone-success::before {
  background: var(--green);
}
.hero.tone-warning::before {
  background: var(--amber);
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--red-tint);
  color: var(--red);
}
.pill .icon {
  width: 15px;
  height: 15px;
}
.tone-success .pill {
  background: var(--green-tint);
  color: var(--green);
}
.tone-warning .pill {
  background: var(--amber-tint);
  color: var(--amber);
}
.tone-info .pill {
  background: var(--line);
  color: var(--ink-2);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: beat 1.6s ease-in-out infinite;
}
@keyframes beat {
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}
.ref {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hero-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.hero h1 {
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lead {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 16px;
}
.eta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--red-tint);
  min-width: 160px;
}
.eta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.eta-big {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.eta-line {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.bar-track {
  margin-top: 18px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  transition: width 0.6s ease;
}
.tone-success .bar-fill {
  background: var(--green);
}
.tone-warning .bar-fill {
  background: var(--amber);
}

/* The map. */
.map-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.map {
  height: min(58vh, 440px);
  min-height: 280px;
  background: var(--line);
}
@media (min-width: 900px) {
  .map {
    height: 520px;
  }
}
.map-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
}
.map-chip.fresh::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}
.map-chip.waiting {
  color: var(--ink-2);
}
.map-recentre {
  position: absolute;
  right: 12px;
  bottom: 28px;
  z-index: 500;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.map-recentre:hover {
  color: var(--red);
}
.leaflet-container {
  font-family: var(--font);
  background: var(--line);
}
/* Calmer tiles, so the rider and the area stand out. */
.leaflet-tile-pane {
  filter: saturate(0.55) contrast(1.03);
}
.pin {
  background: none;
  border: 0;
}
.pin-rider .pin-face {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.28);
}
.pin-rider .pin-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pin-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.35;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}
.pin-pickup {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid !important;
  place-items: center;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
  border: 2px solid #fff;
}
.pin-pickup svg {
  width: 20px;
  height: 20px;
}
.area {
  stroke: var(--red);
  fill: var(--red);
  fill-opacity: 0.1;
  stroke-dasharray: 6 6;
}
@media (prefers-reduced-motion: reduce) {
  .pin-pulse,
  .dot {
    animation: none;
  }
  .bar-fill {
    transition: none;
  }
}

/* The rider. */
.rider {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--red-tint);
  color: var(--red);
  font-weight: 700;
  font-size: 19px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rider-text {
  flex: 1;
  min-width: 140px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rider-name {
  font-size: 20px;
  font-weight: 700;
}
.facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
}
.fact .icon {
  width: 15px;
  height: 15px;
  color: #f59e0b;
  fill: #f59e0b;
}

/* The steps. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  color: var(--ink-3);
}
.step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -9px;
  height: 18px;
  width: 2px;
  background: var(--line);
}
.step:first-child::before {
  display: none;
}
.step.done::before,
.step.current::before {
  background: var(--red);
}
.step-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.step.done {
  color: var(--ink);
}
.step.done .step-mark {
  border-color: var(--red);
  background: var(--red)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}
.step.current {
  color: var(--ink);
  font-weight: 700;
}
.step.current .step-mark {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-tint);
}
.step.current .step-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--red);
}
.step-time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-weight: 600;
}
.step.current .step-time {
  color: var(--red);
}

/* The details. */
.details {
  margin: 0;
  display: grid;
  gap: 2px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.row:first-child {
  border-top: 0;
  padding-top: 0;
}
.row dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 14px;
}
.row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.copy {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.copy .icon {
  width: 15px;
  height: 15px;
}
.copy:hover {
  color: var(--red);
  border-color: var(--red-line);
}
.help {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--red-tint);
  border-color: var(--red-line);
  box-shadow: none;
}
.help > .icon {
  color: var(--red);
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.help-title {
  font-weight: 700;
  margin-bottom: 2px;
}

/* Instead of a delivery. */
.message {
  max-width: 560px;
  margin: 8vh auto 0;
  text-align: center;
  padding: 36px 24px;
}
.message h1 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 14px;
}
.message-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--red-tint);
  color: var(--red);
}
.message-icon .icon {
  width: 30px;
  height: 30px;
}
.button {
  margin-top: 20px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Loading. */
.skeleton .line {
  height: 14px;
  border-radius: 8px;
  background: var(--line);
  margin: 10px 0;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton .tall {
  height: 30px;
}
.w40 {
  width: 40%;
}
.w60 {
  width: 60%;
}
.w80 {
  width: 80%;
}
.map-skeleton {
  height: 320px;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  50% {
    opacity: 0.55;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1200;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.toast[hidden] {
  display: none;
}
.foot {
  padding: 20px 16px 28px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.noscript {
  text-align: center;
  padding: 24px;
}

@media (max-width: 480px) {
  .bar-title {
    display: none;
  }
  .card {
    padding: 18px;
  }
  .eta {
    width: 100%;
  }
}

/* Leaflet's own controls, in the page's colours. */
.leaflet-bar {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
}
.leaflet-bar a,
.leaflet-bar a:hover {
  background: var(--surface);
  color: var(--ink);
  border-bottom-color: var(--line);
  width: 36px;
  height: 36px;
  line-height: 36px;
}
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--surface) 80%, transparent) !important;
  color: var(--ink-3);
}
.leaflet-control-attribution a {
  color: var(--ink-2);
}
