.kg-trail-guide-page {
  margin: 0;
  background: #e8eef2;
}
.kg-trail {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100dvh;
}
.kg-trail__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #fff;
  background: #1a73e8;
}
.kg-trail__bar strong { display: block; font-size: 0.92rem; }
.kg-trail__bar small { color: #d6e6ff; font-size: 0.68rem; }
.kg-trail__back {
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}
.kg-trail__stage { position: relative; min-height: 0; }
.kg-trail__map { position: absolute; inset: 0; }
.kg-trail__warn {
  position: absolute;
  z-index: 500;
  top: 0.65rem;
  left: 0.7rem;
  right: 0.7rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 0.7rem;
  color: #9a3412;
  background: #fff7ed;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}
.kg-trail__fab {
  position: absolute;
  z-index: 500;
  inset-inline-end: 0.75rem;
  bottom: 10.4rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
  font-size: 1.05rem;
  cursor: pointer;
}
.kg-sos__fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 2.7rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(185 28 28 / 0.35);
}
.kg-sos__panel {
  margin-top: 0.65rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
}
.kg-sos__panel[hidden] { display: none !important; }
.kg-sos__panel h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.kg-sos__panel p { margin: 0 0 0.65rem; font-size: 0.82rem; line-height: 1.45; color: #7c2d12; }
.kg-sos__panel label { display: grid; gap: 0.25rem; margin-bottom: 0.5rem; font-size: 0.78rem; font-weight: 700; }
.kg-sos__panel input {
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid #fdba74;
  font: inherit;
}
.kg-sos__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.35rem; }
.kg-sos__send { background: #b91c1c; color: #fff; border: 0; border-radius: 0.55rem; padding: 0.45rem 0.7rem; font-weight: 800; cursor: pointer; }
.kg-sos__status { margin: 0.5rem 0 0; font-size: 0.8rem; font-weight: 700; color: #9a3412; }
.kg-trail .kg-sos {
  position: absolute;
  z-index: 520;
  inset-inline-start: 0.75rem;
  bottom: 10.4rem;
  margin: 0;
}
.kg-trail .kg-sos__fab {
  min-width: 3.4rem;
  height: 2.8rem;
}
.kg-trail .kg-sos__panel {
  position: absolute;
  bottom: 3.2rem;
  inset-inline-start: 0;
  width: min(18.5rem, calc(100vw - 1.5rem));
  max-height: 60vh;
  overflow: auto;
}
.kg-trail__sheet {
  position: absolute;
  z-index: 500;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.75rem;
  overflow: hidden;
  border-radius: 1.1rem;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.22);
}
.kg-trail__maneuver {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  color: #fff;
  background: #1a73e8;
}
.kg-trail__arrow {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 0.16);
  font-size: 1.4rem;
}
.kg-trail__maneuver b { display: block; font-size: 0.95rem; }
.kg-trail__maneuver small { color: #d6e6ff; font-size: 0.7rem; }
.kg-trail__go {
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  color: #fff;
  background: #235d29;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(35, 93, 41, 0.35);
  transition: transform 0.15s, background 0.15s;
}
.kg-trail__go:hover { background: #1a4720; transform: translateY(-1px); }
.kg-trail__go.is-green {
  background: #235d29 !important;
  color: #fff !important;
}
.kg-trail__go.is-on { color: #fff; background: #b91c1c !important; }
.kg-trail__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
}
.kg-trail__meta div {
  padding: 0.5rem 0.3rem;
  text-align: center;
  border-inline-start: 1px solid #eef2f6;
  font-size: 0.7rem;
  color: #5b6570;
}
.kg-trail__meta b { display: block; color: #111; font-size: 0.88rem; }
.kg-trail-puck-wrap { background: transparent !important; border: 0 !important; }
.kg-trail-puck {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2b81ff;
  box-shadow: 0 0 0 10px rgb(43 129 255 / 0.22);
}
.kg-trail-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.8rem;
  color: #fff !important;
  background: #1a73e8;
  font-weight: 800;
  text-decoration: none !important;
}
.leaflet-container { font-family: inherit; }
