/* Route map markers — shared by the homepage route section and Admin → Route Map. */
.rm-pin { --c: #2563eb; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--c); border: 2.5px solid #fff; box-shadow: 0 6px 14px -4px rgba(11,26,61,.55); }
.rm-pin i { transform: rotate(45deg); color: #fff; font-size: 13px; }
.rm-pin.is-selected { outline: 3px solid #facc15; outline-offset: 2px; }
.rm-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #2563eb; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.rm-dot.is-selected { border-color: #facc15; background: #0b1a3d; }
.rm-km { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #0b1a3d; color: #fff; font: 600 11px/1.5 system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); transform: translate(-50%, -50%); }
.rm-runner { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #ec4899); border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(236,72,153,.25), 0 4px 10px rgba(0,0,0,.35); }
.rm-pop { animation: rmPop .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes rmPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.leaflet-marker-icon.rm-icon { background: none; border: 0; }
.rm-wrap { display: block; }
.rm-pin.rm-pin-sm { width: 22px; height: 22px; border-width: 2px; flex: none; }
.rm-pin.rm-pin-sm i { font-size: 10px; }

/* ---------- homepage route section ---------- */
.rm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rm-tabs .tab { cursor: pointer; font-family: inherit; }
.rm-tabs .tab small { opacity: .7; margin-left: 4px; }
.rm-view { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
.rm-stage { position: relative; border-radius: var(--radius, 16px); overflow: hidden; border: 1px solid var(--border, #dfe5f1); box-shadow: var(--shadow); isolation: isolate; }
#routeMap { height: 580px; background: #eef2f8; }
.rm-hud { position: absolute; z-index: 500; top: 14px; left: 14px; min-width: 200px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -14px rgba(11,26,61,.5); pointer-events: none; }
.rm-hud-race { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #56607d); }
.rm-hud-km { display: block; font: 500 34px/1.1 var(--font, system-ui); letter-spacing: -.02em; color: var(--ink, #0b1a3d); font-variant-numeric: tabular-nums; }
.rm-hud-km small { font-size: 15px; color: var(--muted, #56607d); }
.rm-hud-bar { display: block; height: 4px; margin-top: 8px; border-radius: 4px; background: rgba(11,26,61,.1); overflow: hidden; }
.rm-hud-bar i { display: block; height: 100%; width: 0; background: var(--grad, linear-gradient(90deg, #2563eb, #ec4899)); }
.rm-replay { position: absolute; z-index: 500; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: var(--ink, #0b1a3d); color: #fff; font: 500 14px/1 var(--font, system-ui); cursor: pointer; box-shadow: 0 10px 22px -10px rgba(11,26,61,.7); }
.rm-replay:hover { background: #1d4ed8; }
.rm-cue-card { display: flex; flex-direction: column; min-height: 0; max-height: 580px; padding: 18px; border-radius: var(--radius, 16px); border: 1px solid var(--border, #dfe5f1); background: #fff; }
.rm-cue-card h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.rm-cue-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.rm-cue-list li { display: grid; grid-template-columns: 64px 22px 1fr; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--border, #dfe5f1);
  font-size: 14px; cursor: pointer; opacity: .45; transition: opacity .4s, background .2s; }
.rm-cue-list li.is-reached { opacity: 1; }
.rm-cue-list li:hover, .rm-cue-list li:focus { background: rgba(37,99,235,.06); outline: none; }
.rm-cue-list small { display: block; color: var(--muted, #56607d); font-size: 12.5px; }
.rm-cue-km { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink, #0b1a3d); }
.rm-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--border, #dfe5f1); font-size: 12.5px; color: var(--muted, #56607d); }
.rm-legend > span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 980px) {
  .rm-view { grid-template-columns: 1fr; }
  #routeMap { height: 440px; }
  .rm-cue-card { max-height: 360px; }
}
@media (max-width: 640px) { #routeMap { height: 380px; } .rm-hud { min-width: 0; padding: 10px 12px; } .rm-hud-km { font-size: 26px; } }

/* ---------- 3D flyover ---------- */
.rm-fly { position: absolute; inset: 0; z-index: 1; background: #0b1033; }
.rm-fly[hidden] { display: none; }
.rm-runner-3d { display: block; width: 26px; height: 26px; animation: rmPulse 1.6s ease-out infinite; }
@keyframes rmPulse { 0% { box-shadow: 0 0 0 0 rgba(236,72,153,.55), 0 4px 10px rgba(0,0,0,.4); } 100% { box-shadow: 0 0 0 22px rgba(236,72,153,0), 0 4px 10px rgba(0,0,0,.4); } }
.rm-fly .rm-km { transform: none; }
/* Card that pops up as the runner reaches a turn, U-turn or station */
.rm-toast { position: absolute; z-index: 600; left: 50%; bottom: 70px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px;
  background: rgba(255,255,255,.95); box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); pointer-events: none; max-width: calc(100% - 40px);
  opacity: 0; transform: translate(-50%, 20px) scale(.92); transition: opacity .35s ease, transform .45s cubic-bezier(.2,1.4,.4,1); }
.rm-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.rm-toast-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: 18px; background: var(--c, #2563eb); }
.rm-toast strong { display: block; font-size: 16px; color: #0b1a3d; line-height: 1.2; }
.rm-toast small { color: #56607d; font-size: 13px; }
/* 3D Flyover | Map switch */
.rm-mode { position: absolute; z-index: 600; left: 14px; bottom: 14px; display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(11,26,61,.85); backdrop-filter: blur(8px); }
.rm-mode[hidden] { display: none; }
.rm-mode button { border: 0; border-radius: 999px; padding: 8px 14px; background: transparent; color: #e6eaff; font: 500 13.5px var(--font, system-ui); cursor: pointer; }
.rm-mode button.active { background: #fff; color: #0b1a3d; }
.rm-hud { z-index: 600; }
.rm-replay { z-index: 600; }
.rm-fly .maplibregl-ctrl-top-right { top: 6px; right: 6px; }
@media (max-width: 640px) { .rm-toast { bottom: 64px; } .rm-mode button { padding: 7px 10px; font-size: 12.5px; } }

/* ---------- 3D route reel props (stand upright on the map, like the race-route video) ---------- */
.rr-prop { position: relative; display: flex; flex-direction: column; align-items: center; pointer-events: none; transform-origin: 50% 100%;
  animation: rrGrow .6s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes rrGrow { from { transform: scale(.1, 0); opacity: 0; } to { transform: none; opacity: 1; } }
.rr-pole { width: 9px; height: 74px; border-radius: 3px; background: repeating-linear-gradient(180deg, #111 0 12px, #f5f5f5 12px 24px); box-shadow: 1px 0 0 rgba(0,0,0,.25); }
.rr-pole-tall { height: 110px; }
.rr-foot { width: 22px; height: 7px; margin-top: -2px; border-radius: 50%; background: #1b1b1b; box-shadow: 0 6px 10px rgba(0,0,0,.35); }
/* Turn sign: red triangle with arrow + white street-name board */
.rr-sign { margin-left: 0; }
.rr-tri { width: 62px; height: 56px; margin-bottom: -4px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.rr-tri svg { width: 100%; height: 100%; }
.rr-tri-bg { fill: #fff; stroke: #d32f2f; stroke-width: 5; stroke-linejoin: round; }
.rr-arrow path { fill: none; stroke: #111; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rr-arrow { transform: translate(0, 2px) scale(.82); transform-origin: 24px 30px; }
.rr-board { position: absolute; left: 50%; bottom: 34px; margin-left: 6px; white-space: nowrap; padding: 7px 16px; border-radius: 6px 18px 18px 6px;
  background: linear-gradient(180deg, #ffffff, #e9ebee); color: #111; font: 700 15px/1 var(--font, system-ui); box-shadow: 0 4px 10px rgba(0,0,0,.3), inset 0 0 0 1.5px #555; }
.rr-station .rr-plate { width: 50px; height: 50px; margin-bottom: -2px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 24px;
  background: var(--c, #2563eb); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.rr-station .rr-board { bottom: 34px; }
/* Landmark: arrow-shaped board on a tall pole, surrounded by trees */
.rr-arrowboard { position: relative; z-index: 2; margin-bottom: -2px; padding: 9px 26px 9px 22px; color: #111; font: 800 15px/1.05 var(--font, system-ui); letter-spacing: .04em;
  text-transform: uppercase; text-align: center; max-width: 220px; background: linear-gradient(180deg, #fff, #e8eaed);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 12px 50%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.rr-tree { position: absolute; bottom: 2px; left: 50%; width: 70px; height: 92px; margin-left: calc(var(--x) - 35px); transform: scale(var(--s)); transform-origin: 50% 100%;
  animation: rrGrow .7s cubic-bezier(.2,1.5,.4,1) both; animation-delay: var(--d);
  background: radial-gradient(circle at 50% 30%, #7cb342 0 22%, transparent 23%), radial-gradient(circle at 30% 45%, #558b2f 0 24%, transparent 25%),
    radial-gradient(circle at 70% 45%, #689f38 0 24%, transparent 25%), radial-gradient(circle at 50% 58%, #33691e 0 26%, transparent 27%),
    linear-gradient(#6d4c41, #5d4037) 50% 100% / 8px 32% no-repeat; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.rr-landmark { padding: 0 70px; }
/* Start / finish arch with the event logo */
.rr-arch { width: 190px; height: 120px; }
.rr-arch-top { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px;
  background: linear-gradient(180deg, #1e40af, #1d4ed8); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 -5px 0 #dc2626; }
.rr-arch-top img { height: 30px; width: auto; padding: 2px 4px; border-radius: 4px; background: #fff; }
.rr-arch-top b { color: #fff; font: 800 15px/1 var(--font, system-ui); letter-spacing: .08em; white-space: nowrap; }
.rr-arch-leg { position: absolute; bottom: 0; width: 28px; height: 80px; border-radius: 4px 4px 0 0;
  background: linear-gradient(160deg, #22d3ee, #2563eb 55%, #1e3a8a); border: 3px solid #fff; border-top: 0; box-shadow: 0 6px 12px rgba(0,0,0,.35); }
.rr-arch-leg.l { left: 6px; } .rr-arch-leg.r { right: 6px; }
/* Yellow km pin */
.rr-kmpin { animation: rrDrop .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes rrDrop { from { transform: translateY(-80px); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
.rr-pin-head { width: 64px; height: 64px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: #111;
  background: radial-gradient(circle at 50% 50%, #fff 0 46%, transparent 47%), linear-gradient(150deg, #fde047, #ca8a04); box-shadow: 0 6px 12px rgba(0,0,0,.35); }
.rr-pin-head b { font: 800 20px/1 var(--font, system-ui); }
.rr-pin-head small { font: 800 10px/1 var(--font, system-ui); letter-spacing: .06em; }
.rr-pin-tip { width: 0; height: 0; margin-top: -10px; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 26px solid #ca8a04; }
.rr-pin-ring { width: 46px; height: 14px; margin-top: -6px; border-radius: 50%; border: 4px solid #eab308; box-shadow: 0 4px 8px rgba(0,0,0,.25); }
/* Animated runner */
.rr-runner { position: relative; width: 52px; height: 84px; pointer-events: none; }
.rr-runner svg { position: relative; z-index: 1; width: 52px; height: 84px; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.rr-runner .rr-shadow { position: absolute; left: 50%; bottom: -5px; width: 34px; height: 10px; margin-left: -17px; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(1.5px); }
/* Race banner (lower third) */
.rm-banner { position: absolute; z-index: 600; left: 50%; bottom: 58px; display: flex; align-items: center; gap: 12px; padding: 6px 26px 6px 8px; transform: translate(-50%, 30px);
  opacity: 0; pointer-events: none; color: #fff; font: 700 italic clamp(14px, 1.8vw, 20px)/1.1 var(--font, system-ui); white-space: nowrap;
  background: linear-gradient(90deg, #15803d, #22c55e 60%, #16a34a); clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); box-shadow: 0 8px 18px rgba(0,0,0,.3);
  transition: opacity .5s, transform .6s cubic-bezier(.2,1.4,.4,1); }
.rm-banner.show { opacity: 1; transform: translate(-50%, 0); }
.rm-banner img { height: 34px; width: auto; padding: 2px 6px; border-radius: 6px; background: #fff; }
.rm-fly[hidden] ~ .rm-banner { display: none; }
@media (max-width: 640px) {
  .rr-board, .rr-arrowboard { font-size: 12px; } .rr-pole { height: 56px; } .rr-board { bottom: 46px; } .rr-station .rr-board { bottom: 44px; }
  .rr-arch { width: 150px; height: 100px; } .rr-arch-top b { font-size: 12px; }
  .rm-banner { bottom: 56px; padding-right: 18px; } .rm-banner img { height: 26px; }
}
.rr-holder { line-height: 0; }
/* Athlete figure: Bodhgaya Marathon T-shirt (orange), navy half pants, white running shoes */
.rr-runner { width: 66px; height: 104px; }
.rr-runner svg { width: 66px; height: 104px; }
.rr-runner .rr-shadow { width: 40px; margin-left: -20px; bottom: -3px; }
.rk-skin { fill: #b9774a; } .rk-back .rk-skin { fill: #9a5f38; }
.rk-tee { fill: #f97316; } .rk-back .rk-tee { fill: #d95f0a; }
.rk-tee-band { fill: #1d4ed8; }
.rk-shorts { fill: #1e2a5a; } .rk-back .rk-shorts { fill: #141d42; }
.rk-sock { fill: #f8fafc; }
.rk-shoe { fill: #ffffff; stroke: #cbd5e1; stroke-width: .5; } .rk-back .rk-shoe { fill: #dbe2ea; }
.rk-sole { fill: #f97316; }
.rk-stripe { fill: none; stroke: #2563eb; stroke-width: 1.1; stroke-linecap: round; }
.rk-bib { fill: #fff; stroke: #1d4ed8; stroke-width: .6; }
.rk-bibtxt { font: 800 5.2px/1 Arial, sans-serif; fill: #111; text-anchor: middle; }
.rk-brand { font: 800 2.6px/1 Arial, sans-serif; fill: #fff; letter-spacing: .1px; }
.rk-hair { fill: #1a1a1a; } .rk-cap { fill: #1d4ed8; } .rk-ear { fill: #9a5f38; } .rk-eye { fill: #1a1a1a; }
/* Lifelike athlete (smooth stroked limbs) */
.rr-runner, .rr-runner svg { width: 84px !important; height: 144px !important; }
.rr-runner .rr-shadow { width: 46px; margin-left: -23px; bottom: 2px; height: 12px; background: rgba(0,0,0,.32); }
.rk-l { fill: none; stroke-linecap: round; }
.rk-l.rk-skin { stroke: #b9774a; } .rk-back .rk-l.rk-skin { stroke: #95592f; }
.rk-l.rk-shorts { stroke: #1e2a5a; } .rk-back .rk-l.rk-shorts { stroke: #131b40; }
.rk-l.rk-tee { stroke: #f97316; } .rk-back .rk-l.rk-tee { stroke: #d95f0a; }
.rk-l.rk-sock { stroke: #f8fafc; }
.rk-l.rk-sole { stroke: #f97316; }
.rk-l.rk-stripe { stroke: #2563eb; }
.rk-panel { fill: #ea580c; }
.rk-back .rk-shoe { fill: #d5dce5; }
.rk-l.rk-shorts { stroke-linecap: butt; }
/* Buildings & monuments (Admin → Route Buildings) */
.rr-building { flex-direction: row; align-items: flex-end; animation: rrRise .9s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes rrRise { from { transform: translateY(30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.rr-building img { display: block; width: auto; height: var(--bh, 150px); max-width: 360px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0,0,0,.28)); }
.rr-size-small { --bh: 90px; } .rr-size-medium { --bh: 150px; } .rr-size-large { --bh: 220px; } .rr-size-huge { --bh: 300px; }
.rr-bpost { display: flex; flex-direction: column; align-items: center; margin-left: -6px; margin-bottom: 2px; }
.rr-bpost .rr-arrowboard { font-size: 13px; max-width: 200px; padding: 7px 22px 7px 18px; }
.rr-bpost .rr-pole-tall { height: calc(var(--bh, 150px) * .7); }
/* Final overview of the whole course: props shrink so the route stays readable */
.rm-fly .rr-holder > * { transition: scale .9s ease; transform-origin: 50% 100%; }
.rm-fly.rr-overview .rr-holder > * { scale: .5; }
/* 2D map: picture marker */
.rm-bld { display: flex; flex-direction: column; align-items: center; }
.rm-bld img { width: 56px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.rm-bld b { margin-top: 2px; padding: 2px 6px; border-radius: 5px; background: #fff; color: #0b1a3d; font: 700 10px/1.2 system-ui, sans-serif; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,.25); }
@media (max-width: 640px) { .rr-size-small { --bh: 64px; } .rr-size-medium { --bh: 104px; } .rr-size-large { --bh: 150px; } .rr-size-huge { --bh: 200px; } .rr-bpost .rr-arrowboard { font-size: 11px; } }

/* ---------- 3D start / finish gate (like the real Bodh Gaya Marathon gate) ---------- */
.rr-gate { --d: 14px; width: 330px; height: 220px; display: block; animation: rrRise .9s cubic-bezier(.2,1.2,.4,1) both; }
.gt-carpet { position: absolute; left: 20px; right: 4px; bottom: -10px; height: 24px; border-radius: 4px; background: repeating-linear-gradient(90deg, #9f1d1d 0 10px, #b42a2a 10px 20px);
  transform: skewX(-38deg); box-shadow: 0 6px 10px rgba(0,0,0,.25); }
/* Pillars: front face of stacked sponsor panels + darker side face for depth */
.gt-pillar { position: absolute; bottom: 0; width: 46px; height: 168px; }
.gt-pillar.l { left: 6px; } .gt-pillar.r { right: 18px; }
.gt-face { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(6, 1fr); border: 1.5px solid #fff; box-shadow: 0 8px 10px rgba(0,0,0,.25); background: #fff; }
.gt-cell { display: grid; place-items: center; padding: 3px; overflow: hidden; min-height: 0; }
.gt-cell.y { background: linear-gradient(180deg, #ffe45c, #f7d21b); } .gt-cell.w { background: #fbfbfb; }
.gt-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gt-side { position: absolute; top: 0; bottom: 0; left: 100%; width: var(--d); background: linear-gradient(180deg, #d8b512, #b9990e 50%, #c9c9c9 50%);
  transform-origin: 0 100%; transform: skewY(-38deg); filter: brightness(.82); }
/* Top banner: front face, top face and side face */
.gt-beam { position: absolute; left: 0; right: 12px; top: 0; height: 64px; }
.gt-front { position: absolute; inset: 0; display: grid; grid-template-columns: 30% 1fr 20%; align-items: stretch; background: #fff; border: 2px solid #e5e7eb;
  box-shadow: 0 10px 14px rgba(0,0,0,.28); overflow: hidden; }
.gt-top { position: absolute; left: 0; right: 0; bottom: 100%; height: var(--d); background: #e9eaec; transform-origin: 0 100%; transform: skewX(-52deg); }
.gt-bside { position: absolute; top: 0; bottom: 0; left: 100%; width: var(--d); background: #c9cbd0; transform-origin: 0 100%; transform: skewY(-38deg); }
.gt-brand { display: grid; place-items: center; padding: 4px 10px 4px 6px; background: linear-gradient(110deg, #ffd21f 0 86%, #e63b2e 86%); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.gt-brand img { max-width: 100%; max-height: 52px; object-fit: contain; }
.gt-brand b { font: 900 italic 12px/1 var(--font, system-ui); color: #1d4ed8; }
.gt-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.gt-title { font: 900 22px/1 'Arial Black', Arial, sans-serif; color: #e11d2e; letter-spacing: -.02em; white-space: nowrap; }
.gt-title i { color: #f59e0b; font-style: normal; margin: 0 1px; }
.gt-mid small { font: 700 8.5px/1 Arial, sans-serif; color: #e11d2e; }
.gt-org { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 6px; border-left: 1px solid #eee; }
.gt-org small { font: 700 6.5px/1 Arial, sans-serif; color: #555; letter-spacing: .04em; }
.gt-org span { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.gt-org img { width: 100%; height: 16px; object-fit: contain; }
@media (max-width: 640px) { .rr-gate { scale: .72; transform-origin: 50% 100%; } }

/* Boards for places found in OpenStreetMap along the route */
.rr-placeboard { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; background: var(--c, #15803d); font-size: 13px; padding: 8px 24px 8px 18px; }
.rr-placeboard i { margin-right: 4px; }
.rr-placeboard small { font: 600 9px/1 Arial, sans-serif; letter-spacing: .12em; opacity: .85; }
.rr-place .rr-pole-tall { height: 70px; }

/* ---------- Share the route reel ---------- */
.rm-actions { position: absolute; z-index: 600; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.rm-actions .rm-replay { position: static; }
.rm-share-btn { background: linear-gradient(115deg, #f59e0b, #ec4899) !important; }
.rm-recording .rm-actions, .rm-recording .rm-mode, .rm-recording .maplibregl-ctrl-top-right, .rm-recording .maplibregl-ctrl-bottom-right { display: none !important; }
.rm-rec { position: fixed; z-index: 700; top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px;
  background: #0b1033; color: #fff; font: 600 14px var(--font, system-ui); box-shadow: 0 12px 26px -10px rgba(0,0,0,.6); }
.rm-rec[hidden] { display: none; }
.rm-rec i { width: 12px; height: 12px; border-radius: 50%; background: #e11d48; animation: rmBlink 1s infinite; }
@keyframes rmBlink { 50% { opacity: .2; } }
.rm-rec button { border: 0; border-radius: 999px; padding: 6px 12px; background: #fff; color: #0b1033; font-weight: 600; cursor: pointer; }
.rm-sharebox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(6,10,30,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.rm-sharebox[hidden] { display: none; }
.rm-sharebox.open { opacity: 1; }
.rm-sharecard { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  transform: translateY(14px); transition: transform .3s cubic-bezier(.2,.9,.25,1.1); }
.rm-sharebox.open .rm-sharecard { transform: none; }
.rm-sharecard h3 { margin: 0 32px 16px 0; font-size: 20px; }
.rm-sharecard h3 i { color: #ec4899; }
.rm-share-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f5f9; cursor: pointer; font-size: 15px; }
.rm-share-grid { display: grid; grid-template-columns: 1fr 170px; gap: 20px; align-items: start; }
.rm-native { width: 100%; justify-content: center; margin-bottom: 12px; }
.rm-share-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.rm-share-apps a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e2e8f0; color: #0b1a3d; font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.rm-share-apps a:hover { transform: translateY(-2px); border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.rm-share-apps i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--c); font-size: 15px; }
#shIg i { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.rm-copy { display: flex; gap: 8px; margin-bottom: 12px; }
.rm-copy input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #e2e8f0; font: 13px var(--font, system-ui); color: #475569; background: #f8fafc; }
.rm-video-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-video-row .btn[hidden] { display: none; }
.rm-ig-tip { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdf2f8; color: #831843; font-size: 13.5px; }
.rm-qr { text-align: center; padding: 10px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
.rm-qr #rmQr { display: grid; place-items: center; min-height: 150px; }
.rm-qr small { display: block; margin-top: 6px; color: #64748b; font-size: 12px; }
@media (max-width: 640px) {
  .rm-share-grid { grid-template-columns: 1fr; }
  .rm-qr { display: none; }
  .rm-share-apps { grid-template-columns: repeat(2, 1fr); }
  .rm-actions { right: 10px; bottom: 10px; }
}
