.hand-route-shell {
  overflow: hidden;
  border: 1px solid #d9e2dc;
  border-radius: 8px;
  background-color: #fbfaf5;
  background-image:
    linear-gradient(rgba(68, 91, 78, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 91, 78, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hand-route-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 58px 28px;
  min-height: 290px;
  padding: 42px 28px 34px;
}

.hand-route-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hand-route-line,
.hand-route-sketch {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hand-route-line {
  stroke: #176b52;
  stroke-width: 3.5;
}

.hand-route-sketch {
  stroke: rgba(37, 105, 79, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 8 7;
  transform: translate(2px, 2px);
}

.hand-route-stop {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 142px;
  padding: 34px 13px 13px;
  border: 1px solid #cfb98f;
  border-radius: 7px 10px 8px 9px;
  background: rgba(255, 253, 246, 0.97);
  box-shadow: 3px 4px 0 rgba(87, 74, 48, 0.08);
  transform: rotate(-0.6deg);
}

.hand-route-stop:nth-of-type(even) {
  transform: rotate(0.7deg);
}

.hand-route-marker {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #176b52;
  border: 3px solid #176b52;
  border-radius: 50%;
  background: #fffaf0;
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%) rotate(0.6deg);
  box-shadow: 0 0 0 4px rgba(255, 250, 240, 0.96);
}

.hand-route-stop strong {
  display: block;
  margin-bottom: 6px;
  color: #1f5140;
  font-size: 14px;
  text-align: center;
}

.hand-route-stop p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #5a5d54;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.hand-route-stop small {
  display: block;
  margin-top: 7px;
  color: #8b7d65;
  font-size: 10px;
  text-align: center;
}

.hand-route-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.hand-route-caption {
  margin: 0;
  padding: 10px 14px;
  color: var(--muted);
  border-top: 1px dashed #d7d1c2;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

@media (max-width: 700px) {
  .hand-route-canvas {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 38px 18px 28px;
  }

  .hand-route-stop {
    min-height: 126px;
  }
}
