/* Route Checkpoint Hunts — check-in buttons, progress panel, completion
 * badge on /routes/* pages. Loaded by _includes/route-overview-map.html
 * with asset_v cache-busting. Visual language follows route-tour-v1.css
 * (#1D9771 route green, BYO-panel card shapes, px font sizing per the
 * site's 62.5% root — supporting text never below 14px). */

/* ─── Hunt panel ─────────────────────────────────────────────────── */
.hg-rc-panel {
  background: #f4faf6;
  border: 1px solid #cfe7db;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 auto 12px;
  max-width: 1100px;
  box-sizing: border-box;
}
.hg-rc-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.hg-rc-panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1d2330;
  letter-spacing: -0.2px;
}
.hg-rc-panel-title .fa-map-marker { color: #1D9771; }
.hg-rc-panel-count {
  font-size: 15px;
  font-weight: 700;
  color: #1D9771;
  white-space: nowrap;
}
.hg-rc-bar {
  height: 10px;
  background: #e2efe7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.hg-rc-bar-fill {
  height: 100%;
  width: 0;
  background: #1D9771;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.hg-rc-panel-sub {
  margin: 0;
  font-size: 14px;
  color: #5d6a61;
  line-height: 1.5;
}

/* ─── Completion badge + share ───────────────────────────────────── */
.hg-rc-complete {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #bcdccb;
}
.hg-rc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1D9771;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 9px 16px;
  border-radius: 999px;
  line-height: 1.2;
}
.hg-rc-badge .fa-star { color: #ffd76a; }
.hg-rc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 2px solid #1D9771;
  color: #1D9771;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.12s, color 0.12s;
}
.hg-rc-share-btn:hover { background: #1D9771; color: #fff; }
@keyframes hg-rc-pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.hg-rc-celebrate .hg-rc-badge { animation: hg-rc-pop 0.6s ease both; }

/* ─── Per-stop check-in row ──────────────────────────────────────── */
.hg-rc-row {
  clear: both;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hg-rc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 2px solid #1D9771;
  color: #1D9771;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.12s, color 0.12s, transform 0.08s;
}
.hg-rc-btn:hover { background: #eaf6f0; }
.hg-rc-btn:active { transform: scale(0.97); }
.hg-rc-btn.is-checked {
  background: #1D9771;
  color: #fff;
}
@keyframes hg-rc-stamp {
  0% { transform: scale(1); }
  35% { transform: scale(1.12) rotate(-2deg); }
  100% { transform: scale(1); }
}
.hg-rc-btn.hg-rc-anim { animation: hg-rc-stamp 0.55s ease; }
.hg-rc-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eaf6f0;
  border: 1px solid #bcdccb;
  color: #15745a;
  font-size: 12px; /* micro-pill — exempt from the 14px supporting-text floor */
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1;
}

/* ─── Drive-by note (replaces the button on no-stop stops) ───────── */
.hg-rc-driveby {
  clear: both;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  color: #6b6450;
  line-height: 1.5;
}
.hg-rc-driveby .fa-vehicle {
  color: #1D9771;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Dimmed BYO-excluded cards — keep the check-in usable but visually quiet
 * (the card-level opacity from route-tour-v1.css already applies). */

@media (max-width: 640px) {
  .hg-rc-panel { padding: 14px; }
}

/* Checkpoint UI is screen-only — the printed trip plan stays clean. */
@media print {
  .hg-rc-panel, .hg-rc-row, .hg-rc-driveby { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-rc-bar-fill { transition: none; }
  .hg-rc-btn.hg-rc-anim,
  .hg-rc-celebrate .hg-rc-badge { animation: none; }
}
