/* ==========================================================================
   Design Your Journey (/design-your-journey): the tailor-made trip builder.
   Uses the colours and fonts defined at the top of site.css.
   ========================================================================== */

.jd-page { --jd-card: #ffffff; --jd-sand: #f3ece6; --jd-river: #6f9fa8; }
.jd-page [hidden] { display: none !important; }

/* ---------- Welcome ---------- */
.jd-hero { padding: clamp(1.8rem, 4.5vw, 4rem) 0 clamp(2.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.jd-hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 35%; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgba(214, 54, 49, .08), transparent 70%);
}
.jd-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.jd-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); margin-bottom: .4em; }
.jd-hero .lede { max-width: 46ch; margin-bottom: 2rem; }
.jd-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.jd-hero-time { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.jd-hero-time svg { width: 18px; height: 18px; color: var(--red-deep); }
.jd-promises { list-style: none; margin: 2.6rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.jd-promises li { font-size: .86rem; color: var(--muted); line-height: 1.45; padding-left: 1.6rem; position: relative; }
.jd-promises li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1rem; height: 1rem; background: var(--red);
  -webkit-mask: var(--ankh) center / contain no-repeat; mask: var(--ankh) center / contain no-repeat;
}
.jd-promises strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; margin-bottom: .15rem; }

.jd-hero-visual { position: relative; max-width: 520px; justify-self: end; width: 100%; padding-bottom: 2.5rem; }
.jd-hero-arch { aspect-ratio: 4 / 4.6; border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); }
.jd-hero-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 2.2s var(--ease) forwards; }
.jd-hero-inset { position: absolute; right: -6%; top: 8%; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 7px solid var(--paper); box-shadow: var(--shadow); }
.jd-hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.jd-note {
  position: absolute; left: -12%; bottom: 0; width: min(330px, 78%); padding: 1.3rem 1.4rem 1.2rem;
  background: var(--paper); border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(28, 27, 27, .45); border: 1px solid var(--line);
  transform: rotate(-2deg);
}
.jd-note-ar { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--red); margin-bottom: .55rem; }
.jd-note p { margin: 0 0 .7rem; font-family: var(--font-display); font-style: italic; font-size: 1.04rem; line-height: 1.4; color: var(--ink-2); font-variation-settings: "SOFT" 100; }
.jd-note-sign { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 920px) {
  .jd-hero-grid { grid-template-columns: 1fr; }
  .jd-hero-visual { justify-self: center; max-width: 420px; margin-top: .5rem; }
  .jd-note { left: -4%; }
}
@media (max-width: 640px) {
  .jd-promises { grid-template-columns: 1fr; gap: .9rem; }
  .jd-hero-visual { max-width: 340px; }
  .jd-note { left: -2%; width: 84%; }
}

/* ---------- Designer shell ---------- */
.jd-section { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); background: var(--paper-2); scroll-margin-top: 0; }
.jd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 1100px) { .jd-layout { grid-template-columns: 1fr; } }
/* Step 2 (map) uses the full width on large screens; the route panel shows the running total. */
@media (min-width: 1101px) { .jd-layout.is-wide { grid-template-columns: 1fr; } .jd-layout.is-wide .jd-summary { display: none; } }

/* Step navigation */
.jd-steps { position: relative; margin-bottom: clamp(1.4rem, 3vw, 2rem); scroll-margin-top: 92px; }
#designer { scroll-margin-top: 60px; }
@media (max-width: 1080px) { .jd-steps { scroll-margin-top: 12px; } #designer { scroll-margin-top: 0; } }
.jd-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.jd-steps button {
  width: 100%; display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font: 600 .86rem/1.2 var(--font-text);
  text-align: left; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.jd-steps button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.jd-steps .n { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .72rem; letter-spacing: .04em; transition: inherit; }
.jd-steps button.is-done .n { background: var(--ink); border-color: var(--ink); color: #ffffff; font-size: 0; }
.jd-steps button.is-done .n::before { content: ""; width: .8rem; height: .45rem; border: solid #ffffff; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.jd-steps button[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.jd-steps button[aria-current="step"] .n { background: var(--red); border-color: var(--red); color: #ffffff; font-size: .72rem; }
.jd-steps button[aria-current="step"] .n::before { content: none; }
.jd-steps-bar { display: none; }
@media (max-width: 900px) {
  .jd-steps ol { display: flex; gap: .4rem; }
  .jd-steps li { flex: none; }
  .jd-steps li:has([aria-current="step"]) { flex: 1; }
  .jd-steps button { padding: .5rem; gap: .5rem; }
  .jd-steps .t { display: none; }
  .jd-steps [aria-current="step"] .t { display: inline; }
}
@media (max-width: 560px) {
  .jd-steps ol { justify-content: space-between; }
  .jd-steps li, .jd-steps li:has([aria-current="step"]) { flex: 0 1 auto; min-width: 0; }
  .jd-steps [aria-current="step"] .t { display: none; }
  .jd-steps button { padding: .35rem; border-radius: 999px; }
}
@media (max-width: 520px) {
  .jd-step { padding: 1.4rem 1.05rem; border-radius: 20px; }
  .jd-route { padding: 1rem; }
  .jd-stop { grid-template-columns: auto minmax(0, 1fr); row-gap: .45rem; }
  .jd-stop-tools { grid-column: 2; justify-content: space-between; }
  .jd-presets { margin-inline: -1.05rem; padding-inline: 1.05rem; }
}

/* Each step */
.jd-form { min-width: 0; }
.jd-step {
  border: 1px solid var(--line); border-radius: 24px; background: var(--jd-card); margin: 0; min-width: 0;
  padding: clamp(1.4rem, 3.5vw, 2.6rem); box-shadow: 0 30px 60px -45px rgba(28, 27, 27, .35);
}
.jd-step:not([hidden]) { animation: jd-in .55s var(--ease); }
@keyframes jd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jd-step:not([hidden]) { animation: none; } }

.jd-step-head { float: left; width: 100%; padding: 0; margin: 0 0 clamp(1.2rem, 3vw, 2rem); }
.jd-step-head + * { clear: both; }
.jd-step-kicker { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red-deep); margin-bottom: .5rem; }
.jd-step-title { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "SOFT" 50; }
.jd-step-title em { font-style: italic; color: var(--red); font-variation-settings: "SOFT" 100, "WONK" 1; }
.jd-intro { color: var(--ink-2); max-width: 64ch; display: flex; gap: .8rem; align-items: flex-start; }
.jd-intro .jd-q-letter { margin-top: .1rem; }

.jd-block { padding: clamp(1.3rem, 3vw, 1.9rem) 0; border-top: 1px solid var(--line); }
.jd-step-head + .jd-block { border-top: 0; padding-top: 0; }
.jd-block--flush { border-top: 0; padding-top: clamp(1.4rem, 3vw, 2rem); }
.jd-q { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 1.1rem; }
.jd-q-letter {
  flex: none; display: inline-grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--ink); color: #ffffff; font: 700 .78rem/1 var(--font-text); letter-spacing: .02em; text-transform: uppercase;
}
.jd-q-letter--plus { background: var(--red); }
.jd-q-note { font: 500 .82rem/1.3 var(--font-text); color: var(--muted); letter-spacing: 0; }
.jd-sub { font-size: 1.3rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.jd-sub span { font: 500 .85rem/1.4 var(--font-text); color: var(--muted); letter-spacing: 0; }
.jd-hint { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; }
.jd-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.jd-nav, .jd-submit { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: clamp(1.4rem, 3vw, 2rem); border-top: 1px solid var(--line); margin-top: .5rem; }
.btn--lg { padding: 1.15rem 1.9rem; font-size: 1rem; }
.jd-error { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 12px; background: rgba(214, 54, 49, .08); color: var(--red-dark); font-size: .92rem; }
.jd-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Choice chips ---------- */
.jd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.jd-chips + .jd-chips, .jd-counters + .jd-chips, .jd-ages + .jd-chips, .jd-cards + .jd-chips, .jd-hint + .jd-chips { margin-top: 1.2rem; }
.jd-chips-label { width: 100%; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
.chip { position: relative; cursor: pointer; }
.chip input, .opt input, .moment input, .jd-check input, .jd-toggle input, .jd-currency input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span, .chip-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .62rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: 500 .93rem/1.1 var(--font-text);
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease); user-select: none;
}
.chip-btn { cursor: pointer; }
.jd-chips--sm .chip span, .jd-chips--sm .chip-btn { padding: .5rem .9rem; font-size: .87rem; }
.chip:hover span, .chip-btn:hover { border-color: var(--ink); }
.chip input:checked + span, .chip-btn.is-on { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.chip input[type="checkbox"]:checked + span::before { content: ""; width: .55rem; height: .3rem; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.chip input:focus-visible + span, .opt input:focus-visible + .opt-body, .moment input:focus-visible + span,
.jd-check input:focus-visible + .jd-check-ui, .jd-toggle input:focus-visible + .jd-toggle-ui, .jd-currency input:focus-visible + span { outline: 2px solid var(--red-deep); outline-offset: 3px; }
.chip:active span, .chip-btn:active { transform: scale(.97); }

/* ---------- Option cards ---------- */
.jd-cards { display: grid; gap: .8rem; }
.jd-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jd-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jd-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jd-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .jd-cards--3, .jd-cards--4, .jd-cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jd-cards--3 .opt:last-child:nth-child(odd), .jd-cards--5 .opt:last-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .jd-cards--2, .jd-cards--3 { grid-template-columns: 1fr; } }
.opt { position: relative; cursor: pointer; display: flex; }
.opt-body {
  position: relative; width: 100%; display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 16px; border: 1px solid var(--line-strong); background: var(--paper);
  transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.opt--sm .opt-body { padding: .95rem 1rem 1rem; }
.opt:hover .opt-body { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgba(28, 27, 27, .5); }
.opt-body::after {
  content: ""; position: absolute; top: .9rem; right: .9rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--paper); transition: all .2s;
}
.opt input:checked + .opt-body { border-color: var(--red); background: #fff8f7; box-shadow: 0 0 0 1px var(--red), 0 18px 34px -24px rgba(214, 54, 49, .55); }
.opt input:checked + .opt-body::after { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px #ffffff; }
.opt-title { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.15; padding-right: 1.6rem; }
.opt--sm .opt-title { font-size: 1.08rem; }
.opt-text { font-size: .86rem; line-height: 1.45; color: var(--muted); }
.opt-stars { color: var(--red); letter-spacing: .12em; font-size: .9rem; }
.opt-tag { align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffffff; background: var(--red); padding: .22rem .5rem; border-radius: 999px; margin-bottom: .2rem; }
.jd-budget .opt-title { white-space: nowrap; font-size: 1.08rem; padding-right: 0; }
.jd-budget .opt-body { padding-top: 2.1rem; }
.jd-budget .opt-body::after { top: .8rem; left: 1rem; right: auto; width: 1rem; height: 1rem; }

/* ---------- Counters & steppers ---------- */
.jd-counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 520px) { .jd-counters { grid-template-columns: 1fr; } }
.jd-counter { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .9rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 16px; }
.jd-counter-label { font-weight: 600; }
.jd-counter-label small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: .2rem; }
.stepper button {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper);
  font: 500 1.2rem/1 var(--font-text); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.stepper button:hover:not(:disabled) { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper input {
  width: 2.6rem; text-align: center; border: 0; background: none; font: 400 1.35rem/1 var(--font-display); color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm button { width: 1.9rem; height: 1.9rem; font-size: 1rem; }
.stepper--sm output { min-width: 2.4rem; text-align: center; font: 400 1.1rem/1 var(--font-display); }

.jd-ages { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.jd-ages label { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; padding: .4rem .5rem .4rem .9rem; border-radius: 999px; background: var(--paper-2); }
.jd-ages select { font: inherit; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .6rem; background: #ffffff; color: var(--ink); }

/* ---------- Dates ---------- */
.jd-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; align-items: end; }
.jd-dates .field input { min-height: 3.2rem; }
.jd-depart { display: flex; flex-direction: column; justify-content: center; min-height: 3.2rem; padding: .55rem 1rem; border-radius: 10px; background: var(--paper-2); border: 1px dashed var(--line-strong); }
.jd-depart-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jd-depart-date { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; }
@media (max-width: 520px) { .jd-dates { grid-template-columns: 1fr; } }

.jd-toggle { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.1rem; cursor: pointer; font-size: .95rem; font-weight: 500; }
.jd-toggle-ui { flex: none; position: relative; width: 2.7rem; height: 1.55rem; border-radius: 999px; background: var(--sand); transition: background-color .25s; }
.jd-toggle-ui::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); transition: transform .3s var(--ease); }
.jd-toggle input:checked + .jd-toggle-ui { background: var(--red); }
.jd-toggle input:checked + .jd-toggle-ui::after { transform: translateX(1.15rem); }
.jd-months { margin-top: 1rem; }
.jd-months .chip span { flex-direction: column; gap: 0; min-width: 4.4rem; line-height: 1.15; padding: .5rem .8rem; }
.jd-months .chip small { font-size: .7rem; opacity: .7; }
.jd-months .chip input[type="checkbox"]:checked + span::before { content: none; }

/* ---------- Nights range ---------- */
.jd-range { padding: .4rem 0 0; }
.jd-range-out { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-2); margin-bottom: .6rem; }
.jd-range-out strong { font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--ink); margin-right: .15rem; }
.jd-range-out span { color: var(--muted); font-size: 1rem; }
.jd-range input[type="range"] {
  --pct: 25%; width: 100%; height: 2rem; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.jd-range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--red) var(--pct), var(--sand) var(--pct)); }
.jd-range input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--red) var(--pct), var(--sand) var(--pct)); }
.jd-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #ffffff; border: 2px solid var(--red); box-shadow: 0 4px 10px rgba(28, 27, 27, .25); transition: transform .2s; }
.jd-range input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #ffffff; border: 2px solid var(--red); box-shadow: 0 4px 10px rgba(28, 27, 27, .25); }
.jd-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.jd-range input[type="range"]:focus-visible { outline: none; }
.jd-range input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--red-deep); outline-offset: 3px; }
.jd-range-scale { position: relative; height: 1.1rem; font-size: .74rem; color: var(--muted); margin: .1rem 13px 1.2rem; }
.jd-range-scale span { position: absolute; left: var(--at); transform: translateX(-50%); white-space: nowrap; }
.jd-range-scale span:last-child { transform: translateX(-85%); }

/* ---------- Presets ---------- */
.jd-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1.2rem 0 1.6rem; }
.jd-preset {
  text-align: left; padding: .95rem 1rem; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper);
  cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.jd-preset:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(28, 27, 27, .5); }
.jd-preset.is-on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.jd-preset-k { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); }
.jd-preset-t { display: block; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.15; margin: .25rem 0 .3rem; }
.jd-preset-r { display: block; font-size: .78rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .jd-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
  .jd-presets { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .3rem; scrollbar-width: none; }
  .jd-preset { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ---------- Map + route builder ---------- */
.jd-builder { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); align-items: start; }
@media (max-width: 860px) { .jd-builder { grid-template-columns: 1fr; } }

.jd-map-wrap { position: sticky; top: 92px; }
@media (max-width: 860px) { .jd-map-wrap { position: static; } }
.jd-map { position: relative; aspect-ratio: 640 / 515; container-type: inline-size; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #f6f8f8; }
.jd-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jd-map-hint { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

.jd-cruise-line { stroke: var(--red); stroke-width: 4.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.1s var(--ease), opacity .3s; }
.jd-cruise-line.is-on { stroke-dashoffset: 0; opacity: 1; }
.jd-route-lines path { stroke: var(--red); stroke-width: 1.8; stroke-dasharray: 5 5; stroke-linecap: round; opacity: .85; animation: jd-dash 1.2s linear infinite; }
@keyframes jd-dash { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .jd-route-lines path { animation: none; } }

.jd-pins { position: absolute; inset: 0; }
.pin {
  position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); z-index: 1;
}
.pin::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; } /* touch target */
.pin-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: #ffffff; border: 2.5px solid var(--red); box-shadow: 0 3px 8px rgba(28, 27, 27, .25);
  font: 700 .62rem/1 var(--font-text); color: #ffffff; transition: transform .35s var(--ease), background-color .2s, width .3s var(--ease), height .3s var(--ease);
}
.pin-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--red); opacity: 0; transform: scale(.6); }
.pin:hover .pin-dot { transform: translate(-50%, -50%) scale(1.2); }
.pin.is-on .pin-dot { width: 22px; height: 22px; background: var(--red); border-color: #ffffff; }
.pin.is-on .pin-dot::after { animation: jd-ping 2.2s var(--ease) infinite; }
@keyframes jd-ping { 0% { opacity: .7; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
.pin-label {
  position: absolute; top: 50%; left: 27px; transform: translateY(-50%);
  display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap; padding: .2rem .5rem; border-radius: 999px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(28, 27, 27, .12); font-size: .72rem; font-weight: 600; transition: background-color .2s, color .2s;
}
.pin-code { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: var(--red-deep); }
.pin:hover .pin-label { background: var(--ink); color: #ffffff; }
.pin:hover .pin-code { color: var(--red-soft); }
.pin.is-on .pin-label { background: var(--ink); color: #ffffff; }
.pin.is-on .pin-code { color: var(--red-soft); }
.pin--left .pin-label { left: auto; right: 27px; }
.pin.is-on .pin-label { left: 30px; }
.pin--left.is-on .pin-label { left: auto; right: 30px; }
.pin--ship .pin-label, .pin--ship.is-on .pin-label { left: 33px; }
.pin--ship.pin--left .pin-label { left: auto; right: 33px; }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-label { outline: 2px solid var(--red-deep); outline-offset: 2px; }
.pin--ship .pin-dot { width: 26px; height: 26px; background: var(--ink); border: 2px solid #ffffff; color: #ffffff; }
.pin--ship .pin-dot svg { width: 14px; height: 14px; }
.pin--ship.is-on .pin-dot { background: var(--red); width: 28px; height: 28px; }
/* Narrow maps: show the three-letter codes only */
@container (max-width: 520px) {
  .pin--ship .pin-dot, .pin--ship.is-on .pin-dot { width: 21px; height: 21px; }
  .pin--ship .pin-dot svg { width: 11px; height: 11px; }
  .pin--ship .pin-label, .pin--ship.is-on .pin-label { left: 29px; }
  .pin--ship.pin--left .pin-label { left: auto; right: 29px; }
  .pin-name { display: none; }
  .pin-code { font-size: .66rem; color: var(--ink); }
  .pin-label { padding: .15rem .4rem; }
}

/* Route list */
.jd-route { border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; background: var(--paper); }
.jd-route-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.jd-route-head h3 { margin: 0; font-size: 1.35rem; }
.jd-route-list { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.jd-stop {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem 0;
  border-bottom: 1px dashed var(--line-strong); animation: jd-in .4s var(--ease);
}
.jd-stop-n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--red); color: #ffffff; font: 700 .74rem/1 var(--font-text); }
.jd-stop--cruise .jd-stop-n { background: var(--ink); }
.jd-stop-name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.jd-stop-name small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.jd-stop-tools { display: flex; align-items: center; gap: .3rem; }
.jd-stop-move { display: flex; flex-direction: column; }
.jd-icon-btn { display: grid; place-items: center; width: 1.6rem; height: 1.35rem; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; padding: 0; }
.jd-icon-btn:hover:not(:disabled) { color: var(--ink); background: var(--paper-2); }
.jd-icon-btn:disabled { opacity: .25; cursor: default; }
.jd-icon-btn svg { width: 14px; height: 14px; }
.jd-icon-btn--x { width: 1.8rem; height: 1.8rem; }
.jd-fixed { font: 400 1rem/1 var(--font-display); padding: 0 .4rem; white-space: nowrap; }
.jd-fixed small { font: 500 .72rem/1 var(--font-text); color: var(--muted); }
.jd-route-empty { display: flex; gap: .9rem; align-items: center; padding: 1rem 0 1.1rem; color: var(--muted); font-size: .9rem; }
.jd-route-empty svg { flex: none; width: 40px; height: 40px; color: var(--red-soft); }
.jd-route-empty p { margin: 0; line-height: 1.45; }
.jd-route-empty strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; }

.jd-meter { margin-top: 1rem; }
.jd-meter-top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; }
.jd-meter-top span:last-child { color: var(--muted); font-weight: 500; }
.jd-meter-bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.jd-meter-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red-soft), var(--red)); transition: width .6s var(--ease), background .3s; }
.jd-meter.is-full .jd-meter-bar span { background: var(--nile); }
.jd-meter.is-over .jd-meter-bar span { background: var(--red-dark); }
.jd-meter-note { margin: .55rem 0 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.jd-meter.is-full .jd-meter-note { color: var(--nile); font-weight: 600; }

/* Destination list */
.jd-dest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .6rem; }
.jd-dest {
  position: relative; text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .75rem; align-items: start;
  padding: .85rem .95rem; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper);
  font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s, transform .3s var(--ease);
}
.jd-dest:hover { border-color: var(--ink); transform: translateY(-1px); }
.jd-dest-code { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--paper-2); font: 700 .7rem/1 var(--font-text); letter-spacing: .1em; color: var(--red-deep); transition: inherit; }
.jd-dest-name { font-weight: 600; font-size: .95rem; line-height: 1.25; padding-right: 1.4rem; }
.jd-dest-text { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.jd-dest::after { content: "+"; position: absolute; top: .65rem; right: .8rem; font: 400 1.25rem/1 var(--font-text); color: var(--muted); transition: transform .3s var(--ease); }
.jd-dest[aria-pressed="true"] { border-color: var(--red); background: #fff8f7; }
.jd-dest[aria-pressed="true"] .jd-dest-code { background: var(--red); color: #ffffff; }
.jd-dest[aria-pressed="true"]::after { content: "✓"; color: var(--red); font-size: 1rem; top: .8rem; }

/* Cruises */
.jd-cruises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 980px) { .jd-cruises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .jd-cruises { grid-template-columns: 1fr; } }
.jd-cruise {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 1.1rem 1.1rem 1rem; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--paper); font: inherit; color: var(--ink); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease), color .2s;
}
.jd-cruise::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--ink) 0%, #2d2a2a 100%); opacity: 0; transition: opacity .35s; }
.jd-cruise:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 32px -24px rgba(28, 27, 27, .55); }
.jd-cruise[aria-pressed="true"] { color: #ffffff; border-color: var(--ink); }
.jd-cruise[aria-pressed="true"]::before { opacity: 1; }
.jd-cruise-k { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); }
.jd-cruise[aria-pressed="true"] .jd-cruise-k { color: var(--red-soft); }
.jd-cruise-n { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; margin: .5rem 0 .1rem; }
.jd-cruise-n small { font-size: .95rem; margin-left: .25rem; }
.jd-cruise-t { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.jd-cruise-r { font-size: .8rem; line-height: 1.45; color: var(--muted); margin-top: .3rem; }
.jd-cruise[aria-pressed="true"] .jd-cruise-r { color: rgba(255, 255, 255, .72); }
.jd-cruise-add { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.jd-cruise[aria-pressed="true"] .jd-cruise-add { border-top-color: rgba(255, 255, 255, .2); }
.jd-cruise svg.wave { position: absolute; right: -10px; top: 12px; width: 80px; height: 40px; color: var(--sand); z-index: -1; transition: color .3s; }
.jd-cruise[aria-pressed="true"] svg.wave { color: rgba(255, 255, 255, .12); }
.jd-cruise--nasser .jd-cruise-k::after { content: " · Special"; }

/* Moments & checks */
.jd-moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.moment { position: relative; cursor: pointer; display: flex; }
.moment > span {
  width: 100%; padding: .85rem 2.2rem .9rem 1rem; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper);
  font-size: .8rem; line-height: 1.4; color: var(--muted); transition: border-color .2s, background-color .2s, color .2s; position: relative;
}
.moment strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.04rem; line-height: 1.2; color: var(--ink); margin-bottom: .15rem; }
.moment > span::after { content: ""; position: absolute; top: .9rem; right: .85rem; width: 1rem; height: 1rem; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--paper) center / 70% no-repeat; transition: all .2s; }
.moment:hover > span { border-color: var(--ink); }
.moment input:checked + span { border-color: var(--red); background: #fff8f7; }
.moment input:checked + span::after { background-color: var(--red); border-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.jd-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.5rem; }
@media (max-width: 600px) { .jd-checks { grid-template-columns: 1fr; } }
.jd-check { position: relative; display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; cursor: pointer; font-size: .95rem; }
.jd-check--inline { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-2); }
.jd-check-ui { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--paper) center / 70% no-repeat; transition: all .2s; }
.jd-check:hover .jd-check-ui { border-color: var(--ink); }
.jd-check input:checked + .jd-check-ui { background-color: var(--red); border-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Currency */
.jd-currency { display: inline-flex; padding: .25rem; border-radius: 999px; background: var(--paper-2); margin-bottom: 1rem; }
.jd-currency label { position: relative; cursor: pointer; }
.jd-currency span { display: block; padding: .42rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.jd-currency input:checked + span { background: var(--ink); color: #ffffff; }

/* Contact step */
.jd-contact { margin-top: .5rem; }
.jd-contact .field textarea { min-height: 120px; }

/* Cruise category hint */
[data-cruise-cat].is-muted .jd-cards { opacity: .45; }
[data-cruise-cat]:not(.is-muted) [data-cruise-cat-hint] { display: none; }
[data-cruise-cat] .jd-hint { margin: -.4rem 0 1rem; }

/* ---------- Live summary ("ticket") ---------- */
.jd-summary { position: sticky; top: 96px; display: grid; gap: 1rem; }
@media (max-width: 1100px) { .jd-summary { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); align-items: start; } }
@media (max-width: 760px) { .jd-summary { grid-template-columns: 1fr; } }
.jd-ticket { border-radius: 22px; background: var(--ink); color: #ffffff; overflow: hidden; box-shadow: var(--shadow); }
.jd-ticket-head { position: relative; padding: 1.4rem 1.5rem 1.3rem; background: radial-gradient(120% 90% at 100% 0%, rgba(214, 54, 49, .45), transparent 60%); }
.jd-ticket-head::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px);
}
.jd-ticket-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red-soft); }
.jd-ticket-title { margin: .35rem 0 .9rem; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; }
.jd-progress { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.jd-progress span { display: block; height: 100%; width: 0; background: var(--red-soft); border-radius: inherit; transition: width .6s var(--ease); }
.jd-ticket-meta { display: block; margin-top: .5rem; font-size: .76rem; color: rgba(255, 255, 255, .62); }
.jd-ticket-body { margin: 0; padding: .6rem 1.5rem .4rem; }
.jd-ticket-body > div { display: grid; grid-template-columns: 5.9rem minmax(0, 1fr); gap: .8rem; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.jd-ticket-body > div:last-child { border-bottom: 0; }
.jd-ticket-body dt { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); padding-top: .2rem; }
.jd-ticket-body dd { margin: 0; font-size: .9rem; line-height: 1.45; color: #ffffff; }
.jd-ticket-body dd.is-empty { color: rgba(255, 255, 255, .42); font-style: italic; }
.jd-sum-route ol { margin: 0; padding: 0; list-style: none; }
.jd-sum-route li { position: relative; padding-left: 1rem; }
.jd-sum-route li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--red-soft); }
.jd-sum-route li + li::after { content: ""; position: absolute; left: 2.5px; top: -.55rem; height: .95rem; width: 1px; background: rgba(255, 255, 255, .25); }
.jd-sum-route li small { color: rgba(255, 255, 255, .55); }
.jd-ticket-foot { padding: 1rem 1.5rem 1.4rem; background: rgba(255, 255, 255, .04); }
.jd-ticket-foot .btn { width: 100%; justify-content: center; }
.jd-ticket-foot p { margin: .7rem 0 0; text-align: center; font-size: .76rem; color: rgba(255, 255, 255, .55); }
.jd-help { padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.jd-help p { margin: 0 0 .8rem; line-height: 1.45; }
.jd-help strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.jd-wa { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: .55rem .9rem .55rem .65rem; border-radius: 999px; border: 1px solid var(--line-strong); transition: border-color .2s, background-color .2s; }
.jd-wa svg { width: 20px; height: 20px; color: #1f8f4e; }
.jd-wa:hover { border-color: var(--ink); background: var(--paper-2); }

/* ---------- Done ---------- */
.jd-done {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 28px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow); animation: jd-in .7s var(--ease);
}
.jd-done:focus { outline: none; }
.jd-done .sun { width: 320px; height: 320px; right: -80px; top: -90px; color: rgba(214, 54, 49, .16); z-index: -1; }
.jd-done h2 { max-width: 20ch; }
.jd-done .lede { max-width: 54ch; }
.jd-next { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: nx; border-top: 1px solid var(--line); }
.jd-next li { counter-increment: nx; padding-top: 1.3rem; color: var(--ink-2); font-size: .93rem; }
.jd-next li::before { content: "0" counter(nx); display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--red); margin-bottom: .4rem; }
.jd-next strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: .2rem; }
.jd-done-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 760px) { .jd-next { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Trust strip ---------- */
.jd-trust { padding-top: clamp(3rem, 6vw, 5rem); }
.jd-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.jd-trust-grid > div { padding-top: 1.3rem; border-top: 1px solid var(--line-strong); }
.jd-trust-n { font-family: var(--font-display); font-style: italic; color: var(--red); font-size: 1.2rem; }
.jd-trust h3 { margin: .4rem 0 .5rem; }
.jd-trust p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 760px) { .jd-trust-grid { grid-template-columns: 1fr; } }
