/* ==========================================================
   Package detail page, hero (.pdx-*). The route is the picture:
   three tall city photographs stand on one dashed line with a
   numbered stop under each, so the page opens by showing where
   the journey goes. Names sit under the photographs, never on
   them. The rest of the page keeps its .pd-* layout.
   ========================================================== */
.pdx-hero {
  --pdx-serif: var(--font-display);
  --pdx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  padding: 24px 0 86px;
  background:
    radial-gradient(50% 70% at 0% 100%, rgba(var(--t-acc-l-rgb), 0.18) 0%, rgba(var(--t-acc-l-rgb), 0) 70%),
    var(--t-bg);
}
.pdx-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 30px;
  font-size: 12.5px;
  color: var(--t-ink);
}
.pdx-crumb a {
  color: var(--t-tx-2);
}
.pdx-crumb a:hover {
  color: var(--t-acc);
}
.pdx-crumb i {
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--t-tx-3);
  border-right: 1.5px solid var(--t-tx-3);
  transform: rotate(45deg);
}
.pdx-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 60px;
  align-items: center;
}
.pdx-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 15px;
  border-radius: 100px;
  background: var(--t-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.pdx-cat i {
  color: var(--t-acc-l);
}
.pdx-title {
  margin: 0 0 22px;
  font-size: var(--fs-hero-in);
  line-height: 1.12;
  color: var(--t-ink);
}
.pdx-title i {
  font-style: italic;
  color: var(--t-acc);
}
.pdx-meta {
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--t-line);
  list-style: none;
}
.pdx-meta li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--t-line);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--t-ink);
}
.pdx-meta i {
  font-size: 16px;
  color: var(--t-acc);
}
.pdx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pdx-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* the line the three stops stand on */
.pdx-route::before {
  content: "";
  position: absolute;
  right: 16%;
  bottom: 50px;
  left: 16%;
  border-top: 2px dashed var(--t-acc);
}
.pdx-stop {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pdx-stop-photo {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 3 / 4.5;
  border-radius: 200px 200px 22px 22px;
  background: var(--t-sand);
  box-shadow: 0 30px 44px -30px rgba(var(--t-ink-rgb), 0.6);
}
.pdx-stop:nth-child(2) .pdx-stop-photo {
  aspect-ratio: 3 / 5;
}
.pdx-stop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pdx-drift 18s ease-in-out infinite alternate;
}
.pdx-stop:nth-child(2) img {
  animation-delay: -6s;
}
.pdx-stop:nth-child(3) img {
  animation-delay: -12s;
}
@keyframes pdx-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.11); }
}
.pdx-stop-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 26px;
  border: 3px solid var(--t-bg);
  border-radius: 50%;
  background: var(--t-btn);
  font-size: 13px;
  font-weight: 600;
  color: var(--t-on-btn);
}
.pdx-stop b {
  margin-top: 8px;
  font-family: var(--pdx-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--t-ink);
}
.pdx-route {
  align-items: end;
}

@media (max-width: 991px) {
  .pdx-hero {
    padding: 18px 0 60px;
  }
  .pdx-crumb {
    margin-bottom: 22px;
  }
  .pdx-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 575px) {
  .pdx-route {
    gap: 10px;
  }
  .pdx-stop b {
    font-size: 16px;
  }
  .pdx-actions .hl-btn,
  .pdx-actions .hl-btn-ghost {
    flex: 1 1 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pdx-stop-photo img {
    animation: none;
  }
}

/* ---------- closing: the route once more, then the desk as four tiles ---------- */
.pdx-end {
  padding: 0 0 92px;
  background: var(--t-bg);
}
.pdx-end-panel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding: 48px 50px;
  border: 1px solid var(--t-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 60px -46px rgba(var(--t-ink-rgb), 0.6);
}
.pdx-end-copy .hl-sub {
  margin-bottom: 26px;
}
.pdx-end-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 420px;
  margin-bottom: 28px;
  padding-top: 24px;
}
.pdx-end-line::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  left: 8px;
  border-top: 2px dashed var(--t-acc-l);
}
.pdx-end-line span {
  position: relative;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--t-ink);
}
.pdx-end-line span::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--t-btn);
  box-shadow: 0 0 0 1px var(--t-btn);
}
.pdx-end-line span:nth-child(2)::before {
  left: 50%;
  margin-left: -8px;
}
.pdx-end-line span:nth-child(3)::before {
  right: 0;
  left: auto;
}
.pdx-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.pdx-end-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pdx-end-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--t-tx-2);
}
.pdx-end-points i {
  font-size: 11px;
  color: var(--t-acc);
}
.pdx-end-desk-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-acc);
}
.pdx-end-desk-note {
  margin: 6px 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--t-tx);
}
.pdx-end-reach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pdx-end-reach a {
  display: block;
  min-width: 0;
  padding: 16px 16px 15px;
  border: 1px solid var(--t-line);
  border-radius: 16px;
  background: var(--t-bg-2);
  color: var(--t-ink);
  text-decoration: none !important;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pdx-end-reach a:hover {
  border-color: var(--t-acc-l);
  background: #fff;
  color: var(--t-ink);
}
.pdx-end-reach a > i {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--t-acc);
}
.pdx-end-reach em {
  display: block;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-tx-3);
}
.pdx-end-reach b {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 991px) {
  .pdx-end {
    padding-bottom: 64px;
  }
  .pdx-end-panel {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px 30px;
  }
}
@media (max-width: 575px) {
  .pdx-end-panel {
    padding: 26px 20px;
    border-radius: 22px;
  }
  .pdx-end-actions .hl-btn,
  .pdx-end-actions .hl-btn-ghost {
    flex: 1 1 100%;
    justify-content: center;
  }
  .pdx-end-reach {
    grid-template-columns: 1fr;
  }
}

/* ---------- package pages built from the itinerary sheets ----------
   The same hero carries three or four stops, the names may run to two
   lines on narrower screens, and the page has three small pieces of its
   own: the list inside a day, the hotel list, and the quiet note. */
.pdx-stop b {
  font-size: 20px;
  white-space: nowrap;
}
.pdx-stop:nth-child(4) .pdx-stop-photo {
  aspect-ratio: 3 / 5;
}
.pdx-stop:nth-child(4) img {
  animation-delay: -9s;
}
.pdx-route.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pdx-route.is-four::before {
  right: 12%;
  left: 12%;
}
.pdx-route.is-four .pdx-stop b {
  font-size: 18px;
}
@media (max-width: 1199px) {
  .pdx-route::before {
    bottom: 69px;
  }
  .pdx-stop b,
  .pdx-route.is-four .pdx-stop b {
    min-height: 43px;
    font-size: 18px;
    white-space: normal;
  }
}
@media (max-width: 575px) {
  .pdx-route::before {
    bottom: 62px;
  }
  .pdx-stop b,
  .pdx-route.is-four .pdx-stop b {
    min-height: 36px;
    font-size: 15px;
  }
  .pdx-route.is-four {
    gap: 8px;
  }
  .pdx-route.is-four .pdx-stop b {
    font-size: 13.5px;
  }
  .pdx-route.is-four .pdx-stop-dot {
    width: 30px;
    height: 30px;
    margin-top: 20px;
    font-size: 12px;
  }
  .pdx-route.is-four::before {
    bottom: 59px;
  }
}

/* the price slot on the side card says "On request", so it reads as words, not as a figure */
.pd-card-price.pdx-quote b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--t-ink);
}

/* the places visited in a day */
.pdx-points {
  margin: 0 0 14px;
  padding: 0 18px;
  list-style: none;
}
.pdx-points li {
  position: relative;
  display: block;
  margin: 0;
  padding: 4px 0 4px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--t-tx);
}
.pdx-points li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t-acc);
}

/* where you stay */
.pdx-stay {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--t-line);
  list-style: none;
}
.pdx-stay li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: baseline;
  margin: 0;
  padding: 15px 2px;
  border-bottom: 1px solid var(--t-line);
  color: var(--t-ink);
}
.pdx-stay-where {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-acc);
}
.pdx-stay-where i {
  font-size: 12px;
}
.pdx-stay b {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}
.pdx-stay em {
  font-size: 12.5px;
  font-style: normal;
  white-space: nowrap;
  color: var(--t-tx-2);
}
.pd-main p.pdx-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--t-tx-2);
}
@media (max-width: 575px) {
  .pdx-stay li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pdx-stay-where {
    grid-column: 1 / -1;
  }
}

/* the closing route line, for three stops or four */
.pdx-end-line span:not(:first-child):not(:last-child)::before {
  right: auto;
  left: 50%;
  margin-left: -8px;
}
.pdx-end-line span:last-child::before {
  right: 0;
  left: auto;
  margin-left: 0;
}
.pdx-end-line.is-four {
  max-width: 460px;
}
@media (max-width: 575px) {
  .pdx-end-line span {
    font-size: 14.5px;
  }
}

/* review pass, 2026-10-24: the WhatsApp icon is an <svg> after fontawesome runs */
.pdx-end-reach a > svg {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 10px;
  color: var(--t-acc);
}
