/* ═══════════════════════════════════════════════════════
   tp-journey-map.css — "رحلة جيل مستقر" Journey Map Styles
   Replaces the old tp-curved-journey.css for plan-detail rendering
   ═══════════════════════════════════════════════════════ */

/* ── Journey Map Container ── */
.jm-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 8px 30px;
  position: relative;
  direction: rtl;
}

/* ── Clouds decoration ── */
.jm-clouds {
  position: relative;
  height: 55px;
  pointer-events: none;
}
.jm-cl {
  position: absolute;
  background: rgba(255,255,255,.75);
  border-radius: 50%;
}

/* ── Header ── */
.jm-hdr {
  text-align: center;
  padding: 0 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.jm-hdr .jm-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.jm-hdr .jm-title-part {
  font-family: 'Lalezar', 'Cairo', sans-serif;
  font-size: 2.9rem;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0;
  line-height: 1;
}
.jm-hdr .jm-logo-img {
  height: 7rem;
  vertical-align: middle;
  margin-top: -2px;
}

/* ── Progress bar ── */
.jm-prog {
  max-width: 360px;
  margin: 4px auto 8px;
  text-align: center;
}
.jm-prog-track {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  direction: ltr;
  overflow: hidden;
}
.jm-prog-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s;
}
.jm-prog-fill.c1 { background: #F4C542; }
.jm-prog-fill.c2 { background: #E85A71; }
.jm-prog-fill.c3 { background: #7CB342; }
.jm-prog-txt {
  font-size: .72rem;
  font-weight: 700;
  color: #888;
  margin-top: 3px;
}

/* ── Map SVG container ── */
.jm-map-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}
.jm-map-wrap svg {
  display: block;
  width: 100%;
}

/* ── Footer ── */
.jm-ftr {
  text-align: center;
  padding: 14px 10px;
  margin-top: 8px;
}
.jm-ftr .jm-sl {
  font-size: .92rem;
  font-weight: 800;
  color: #3E2723;
}
.jm-ftr img {
  height: 90px;
  margin-top: 6px;
}

/* ── Popup overlay ── */
.jm-pop-ov {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.4);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.jm-pop-ov.show {
  display: flex;
}
.jm-pop-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  max-width: 320px;
  width: 88%;
  box-shadow: 0 16px 36px rgba(0,0,0,.2);
  text-align: center;
  animation: jm-pin .25s ease;
}
@keyframes jm-pin {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.jm-pop-card .jm-pi   { font-size: 2.5rem; }
.jm-pop-card h3       { font-size: 1.1rem; font-weight: 800; color: #3E2723; margin: 6px 0 3px; }
.jm-pop-card .jm-ps   { display: inline-block; padding: 3px 12px; border-radius: 10px; color: #fff; font-size: .75rem; font-weight: 700; margin: 4px 0; }
.jm-pop-card .jm-pst  { font-size: .9rem; font-weight: 700; margin: 5px 0; }
.jm-pop-card .jm-pinf { font-size: .82rem; color: #888; margin: 6px 0; line-height: 1.4; }
.jm-pop-card .jm-pcl  {
  margin-top: 10px;
  padding: 7px 24px;
  border: none;
  border-radius: 10px;
  background: #3E2723;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}

/* ── Star interaction ── */
.jm-star-g {
  cursor: pointer;
  transition: transform .15s;
}
.jm-star-g:hover {
  filter: brightness(1.08);
}
@keyframes jm-pulse-star {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.jm-star-current {
  animation: jm-pulse-star 1.5s ease-in-out infinite;
}

/* ── Character bounce animation ── */
@keyframes jm-char-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.jm-char-walker {
  animation: jm-char-bounce 2s ease-in-out infinite;
  transform-origin: center center;
}

/* ── Background style for the journey section ── */
.jm-wrapper {
  background: linear-gradient(180deg, #D6EDFC 0%, #E8F4FD 8%, #FDF6E3 22%);
  border-radius: 18px;
  padding: 12px 0 0;
  margin-top: 12px;
  overflow: hidden;
}
