/* 14-day journey globe */
.journey-map-section { position:relative; background:linear-gradient(180deg, var(--cream,#FDFAF4), #fff 40%, var(--cream,#FDFAF4)); }
.jm-shell { width:min(1160px, calc(100% - 40px)); margin:0 auto; padding:90px 0 40px; }
.jm-heading { max-width:720px; margin:0 auto 10px; text-align:center; }
.jm-kicker { display:inline-flex; align-items:center; gap:12px; margin:0; color:var(--burgundy-soft,#7A0000); font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.jm-kicker::before, .jm-kicker::after { content:""; width:30px; height:1px; background:var(--gold,#C9A84C); }
.jm-heading h2 { margin:12px 0 10px; color:var(--burgundy,#A50000); font-family:"Playfair Display",Georgia,serif; font-size:clamp(32px,4.4vw,50px); line-height:1.08; letter-spacing:-.02em; }
.jm-heading p { margin:0; color:var(--muted,#796864); }
.jm-switch { display:inline-flex; gap:4px; margin-top:20px; padding:5px; border:1px solid var(--line,#E8D5A0); border-radius:30px; background:#fff; box-shadow:0 8px 22px rgba(94,21,22,.08); }
.jm-switch button { min-height:44px; padding:0 20px; border:0; border-radius:24px; background:transparent; color:var(--burgundy,#A50000); font:700 14px "DM Sans",system-ui,sans-serif; cursor:pointer; transition:background .3s, color .3s; }
.jm-switch button[aria-pressed="true"] { background:var(--burgundy,#A50000); color:#fff; box-shadow:0 6px 16px rgba(165,0,0,.25); }

.jm-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:40px; align-items:start; }
.jm-steps { padding:10vh 0 30vh; }
.jm-step { min-height:78vh; display:flex; align-items:center; }
.jm-card { width:100%; padding:28px; border:1px solid var(--line,#E8D5A0); border-radius:20px; background:rgba(255,255,255,.92); box-shadow:0 14px 34px rgba(94,21,22,.07); opacity:.35; transform:scale(.97); transition:opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease, border-color .5s ease; }
.jm-step.is-active .jm-card { opacity:1; transform:none; border-color:var(--gold,#C9A84C); box-shadow:0 24px 50px rgba(94,21,22,.13); }
.jm-daytag { display:inline-flex; padding:6px 14px; border-radius:20px; background:var(--burgundy,#A50000); color:#fff; font-size:13px; font-weight:800; }
.jm-card h3 { margin:14px 0 8px; color:var(--burgundy-deep,#5E1516); font-family:"Playfair Display",Georgia,serif; font-size:clamp(28px,3vw,38px); line-height:1.1; }
.jm-card p { margin:0; color:var(--muted,#796864); line-height:1.65; }
.jm-chips { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.jm-chips span { padding:7px 12px; border-radius:20px; background:var(--cream-deep,#F7F2E8); color:var(--burgundy,#A50000); font-size:13px; font-weight:700; }
.jm-cta { margin-top:20px; }

.jm-stage { position:sticky; top:96px; height:calc(100vh - 130px); min-height:460px; border:1px solid var(--line,#E8D5A0); border-radius:24px; overflow:hidden; background:radial-gradient(circle at 50% 45%, #fdf6e6, #ecdcbc); box-shadow:0 30px 70px rgba(94,21,22,.15); }
.jm-map, .jm-map.maplibregl-map { position:absolute !important; inset:0; width:100%; height:100%; }
.jm-day { position:absolute; left:16px; top:16px; z-index:2; padding:8px 16px; border-radius:24px; background:rgba(94,21,22,.9); color:var(--gold-light,#E8C97A); font-family:"Playfair Display",Georgia,serif; font-size:16px; font-weight:700; box-shadow:0 8px 20px rgba(0,0,0,.18); }
.jm-day:empty { display:none; }
.jm-loading { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:12px; color:var(--muted,#796864); font-size:14px; }
.jm-loading span { width:34px; height:34px; border:3px solid rgba(201,168,76,.3); border-top-color:var(--gold,#C9A84C); border-radius:50%; animation:jm-spin 1s linear infinite; }
.jm-loading[hidden] { display:none; }
@keyframes jm-spin { to { transform:rotate(360deg); } }

/* markers */
.jm-city, .jm-poi { display:flex; align-items:center; gap:6px; pointer-events:none; }
.jm-city > *, .jm-poi > * { transition:opacity .6s ease, transform .6s ease; }
.jm-city i, .jm-poi i { width:10px; height:10px; border:2px solid #fff; border-radius:50%; background:var(--burgundy,#A50000); box-shadow:0 2px 6px rgba(0,0,0,.3); }
.jm-city span, .jm-poi span { padding:4px 9px; border-radius:14px; background:rgba(255,255,255,.95); color:var(--burgundy-deep,#5E1516); font:700 12px "DM Sans",system-ui,sans-serif; white-space:nowrap; box-shadow:0 4px 12px rgba(0,0,0,.12); }
.jm-poi > * { opacity:0; transform:scale(.6); }
.jm-poi.main i { width:14px; height:14px; background:var(--gold,#C9A84C); box-shadow:0 0 0 6px rgba(201,168,76,.3); }
.jm-poi.main span { background:var(--burgundy,#A50000); color:#fff; }
[data-ch="madina"] .jm-poi.g-madina > *, [data-ch="makka"] .jm-poi.g-makka > * { opacity:1; transform:none; }
.jm-city > * { opacity:0; }
[data-ch="globe"] .jm-city > *, [data-ch="road"] .jm-city > * { opacity:1; }
.jm-plane { width:26px; height:26px; color:var(--burgundy,#A50000); filter:drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.jm-plane svg { width:100%; height:100%; }
.jm-bus { display:grid; place-items:center; width:32px; height:32px; border:2px solid var(--gold,#C9A84C); border-radius:50%; background:#fff; font-size:17px; box-shadow:0 4px 12px rgba(0,0,0,.25); }

.jm-fallback .jm-stage { display:none; }
.jm-fallback .jm-grid { grid-template-columns:1fr; }
.jm-fallback .jm-step { min-height:0; padding:10px 0; }
.jm-fallback .jm-card { opacity:1; transform:none; }

@media (max-width:860px) {
  .jm-shell { width:min(100% - 24px, 760px); padding-top:64px; }
  .jm-grid { display:flex; flex-direction:column; align-items:stretch; gap:0; }
  .jm-stage { order:-1; top:76px; height:42vh; min-height:280px; border-radius:18px; z-index:3; }
  .jm-steps { position:relative; z-index:1; padding:6vh 0 30vh; }
  .jm-step { min-height:62vh; align-items:center; }
  .jm-card { padding:20px; background:rgba(255,255,255,.97); }
  .jm-card h3 { font-size:26px; }
  .jm-day { font-size:14px; left:10px; top:10px; }
  .jm-city span, .jm-poi span { font-size:11px; padding:3px 7px; }
  .jm-poi:not(.main) span { display:none; }
}
@media (prefers-reduced-motion: reduce) { .jm-card, .jm-poi > *, .jm-city > * { transition:none; } .jm-loading span { animation:none; } }
