/* Tourcraft
   Colours come from the Kadence global palette automatically (Customize > Colors).
   To override, set the --ptg-* variables on .ptg in Additional CSS. */
.ptg {
  --ptg-brand: var(--global-palette-btn-bg, var(--global-palette1, #1f6f78));
  --ptg-brand-hover: var(--global-palette-btn-bg-hover, var(--global-palette2, #175960));
  --ptg-on-brand: var(--global-palette-btn, #ffffff);
  --ptg-on-brand-hover: var(--global-palette-btn-hover, #ffffff);
  --ptg-accent: var(--global-palette1, #1f6f78);
  --ptg-ink: var(--global-palette3, #1a202c);
  --ptg-text: var(--global-palette4, #2d3748);
  --ptg-muted: var(--global-palette5, #4a5568);
  --ptg-line: var(--global-palette7, #e2e8f0);
  --ptg-soft: var(--global-palette8, #f7fafc);
  --ptg-card: var(--global-palette9, #ffffff);
  --ptg-tint: rgba(31, 111, 120, .12);
  --ptg-tint: color-mix(in srgb, var(--ptg-accent) 13%, var(--ptg-card));
  --ptg-new: #c2410c;
  --ptg-itin-bg: #faf6ee;      /* warm cream behind the itinerary */
  --ptg-itin-border: #efe5d3;
  --ptg-itin-route: #d8c9ae;
  --ptg-radius: 12px;

  color: var(--ptg-text);
  line-height: 1.55;
  box-sizing: border-box;
}
.ptg *, .ptg *::before, .ptg *::after { box-sizing: border-box; }
/* Nothing inside the plugin may be wider than the screen (stops sideways scrolling on phones).
   "clip" does not break the sticky tour info box, unlike "hidden". */
.ptg-single, .ptg-list { overflow-x: clip; overflow-wrap: break-word; }
.ptg-main > *, .ptg-incl > *, .ptg-quotes > *, .ptg-grid > * { min-width: 0; }
.ptg .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.ptg-i { flex: none; }
.ptg a:focus-visible, .ptg button:focus-visible, .ptg summary:focus-visible, .ptg select:focus-visible, .ptg input:focus-visible {
  outline: 3px solid var(--ptg-accent); outline-offset: 2px;
}

/* Theme styles (Kadence adds left margin/padding to lists and quotes inside content).
   These rules are more specific so the plugin layout stays flush left. */
.ptg.ptg-single ul, .ptg.ptg-single ol, .ptg.ptg-list ul, .ptg.ptg-list ol {
  margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; list-style: none;
}
.ptg.ptg-single li, .ptg.ptg-list li { margin-left: 0; padding-left: 0; }
.ptg.ptg-single li::marker { content: none; }
.ptg.ptg-single blockquote { margin: 0; padding: 0; border: 0; background: none; }

/* ---------- Buttons ---------- */
.ptg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--ptg-brand); color: var(--ptg-on-brand);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.ptg-btn:hover, .ptg-btn:focus { background: var(--ptg-brand-hover); color: var(--ptg-on-brand-hover); }
.ptg-btn--invert { background: var(--ptg-card); color: var(--ptg-ink); }
.ptg-btn--invert:hover, .ptg-btn--invert:focus { background: var(--ptg-soft); color: var(--ptg-ink); }

/* =====================================================================
   Listing
   ===================================================================== */
.ptg-list__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 0 0 14px; margin: 0 0 24px; border-bottom: 1px solid var(--ptg-line);
}
.ptg-list__count { margin: 0; flex: 1 1 auto; color: var(--ptg-muted); }
.ptg-list__count strong { color: var(--ptg-ink); }
.ptg-list__sort { display: inline-flex; align-items: center; gap: 8px; color: var(--ptg-muted); font-size: .95em; }
.ptg-list__sort select {
  font: inherit; color: var(--ptg-ink); background: var(--ptg-card);
  border: 1px solid var(--ptg-line); border-radius: 8px; padding: 8px 32px 8px 12px; min-height: 42px;
}
.ptg-list__toggle {
  display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ptg-ink); background: var(--ptg-card);
  border: 1px solid var(--ptg-line); border-radius: 8px;
}
.ptg-list__badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--ptg-brand); color: var(--ptg-on-brand); font-size: 12px; font-weight: 700;
}

.ptg-list__layout.has-panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
.ptg-list__panel { position: sticky; top: 24px; }
.ptg-list__group { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.ptg-list__group legend { padding: 0; margin: 0 0 8px; font-weight: 700; color: var(--ptg-ink); }
.ptg-list__group ul { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.ptg-list__group li { margin: 0; padding: 0; }
.ptg-list__group label { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.ptg-list__group input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ptg-brand); }
.ptg-list__clear { color: var(--ptg-accent); font-weight: 600; }
.ptg-list__apply { width: 100%; margin-top: 4px; }

.ptg-list__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.ptg-list__chips li { margin: 0; }
.ptg-list__chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .92em;
  background: var(--ptg-soft); border: 1px solid var(--ptg-line); color: var(--ptg-ink); text-decoration: none;
}
.ptg-list__chips a:hover { border-color: var(--ptg-accent); }
.ptg-list__chips .ptg-i { width: 12px; height: 12px; }

.ptg-list__empty { padding: 40px 24px; text-align: center; background: var(--ptg-soft); border-radius: var(--ptg-radius); }
.ptg-list__empty p { margin: 0 0 6px; }
.ptg-list.is-loading .ptg-list__results { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* ---------- Cards ---------- */
.ptg-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.ptg-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ptg-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--ptg-radius); background: var(--ptg-soft); }
.ptg-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ptg-card:hover .ptg-card__img { transform: scale(1.04); }
.ptg-card__placeholder { display: block; width: 100%; height: 100%; background: var(--ptg-tint); }
.ptg-card__new {
  position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--ptg-new); color: #fff; font-size: 13px; font-weight: 700;
}
.ptg-card__dest {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  color: #1a202c; font-size: 13px; font-weight: 600;
}
.ptg-card__dest .ptg-i { width: 14px; height: 14px; color: var(--ptg-accent); }
.ptg-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 2px 0; flex: 1; }
.ptg-card__title { margin: 0; font-size: 1.15em; line-height: 1.3; }
.ptg-card__title a { color: var(--ptg-ink); text-decoration: none; }
.ptg-card__title a::after { content: ""; position: absolute; inset: 0; }
.ptg-card__title a:hover { color: var(--ptg-accent); }
.ptg-card__tagline { margin: 0; color: var(--ptg-muted); font-size: .94em; }
.ptg-card__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; padding: 0; font-size: .9em; color: var(--ptg-ink); }
.ptg-card__meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.ptg-card__meta .ptg-i { width: 16px; height: 16px; color: var(--ptg-accent); }

/* ---------- Pagination ---------- */
.ptg-pages { margin-top: 40px; }
.ptg-pages ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.ptg-pages li { margin: 0; }
.ptg-pages__a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--ptg-line); color: var(--ptg-ink); text-decoration: none; font-weight: 600;
}
a.ptg-pages__a:hover { border-color: var(--ptg-accent); }
.ptg-pages__a.is-current { background: var(--ptg-brand); border-color: var(--ptg-brand); color: var(--ptg-on-brand); }
.ptg-pages__a--dots { border-color: transparent; }

@media (max-width: 900px) {
  .ptg-list__layout.has-panel { grid-template-columns: 1fr; gap: 20px; }
  .ptg-list__panel { position: static; }
  .ptg-list.is-js .ptg-list__toggle { display: inline-flex; }
  .ptg-list.is-js .ptg-list__panel { display: none; }
  .ptg-list.is-js.is-open .ptg-list__panel {
    display: block; padding: 18px 18px 4px; border: 1px solid var(--ptg-line); border-radius: var(--ptg-radius); background: var(--ptg-card);
  }
  .ptg-list__count { order: 3; flex-basis: 100%; }
}
@media (max-width: 540px) {
  .ptg-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Tour page
   ===================================================================== */
.ptg.ptg-single h2 { margin: 0 0 16px; color: var(--ptg-ink); line-height: 1.25; }
.ptg-single h3 { color: var(--ptg-ink); }
.ptg-section { margin: 56px 0; }

/* Head slide */
.ptg-hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; margin: 0 0 8px;
  aspect-ratio: 16 / 7; min-height: 380px; border-radius: 16px; background: var(--ptg-ink); color: #fff;
}
.ptg-hero__slides { position: absolute; inset: 0; }
.ptg-hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ptg-hero__slide.is-active { opacity: 1; visibility: visible; }
.ptg-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ptg-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 12, 20, .78) 0%, rgba(8, 12, 20, .35) 45%, rgba(8, 12, 20, 0) 75%);
}
.ptg-hero__copy { position: relative; z-index: 2; max-width: 760px; padding: 40px 44px 56px; }
.ptg-single .ptg-hero__title { margin: 0 0 12px; color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; text-wrap: balance; }
.ptg-hero__tagline { margin: 0; font-size: 1.2em; line-height: 1.5; color: rgba(255, 255, 255, .94); max-width: 52ch; }
.ptg-hero__nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .88); color: #1a202c; font-size: 28px; line-height: 1;
}
.ptg-hero__nav:hover { background: #fff; }
.ptg-hero__nav--prev { left: 16px; }
.ptg-hero__nav--next { right: 16px; }
.ptg-hero__dots { position: absolute; right: 24px; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.ptg-hero__dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .5); transition: width .25s, background-color .25s;
}
.ptg-hero__dot[aria-current="true"] { width: 26px; background: #fff; }
.ptg-hero--plain { aspect-ratio: auto; min-height: 0; background: var(--ptg-soft); color: var(--ptg-ink); }
.ptg-hero--plain .ptg-hero__copy { padding: 44px; }
.ptg-single .ptg-hero--plain .ptg-hero__title { color: var(--ptg-ink); }
.ptg-hero--plain .ptg-hero__tagline { color: var(--ptg-muted); }

/* Overview (above the highlights) */
.ptg-overview { margin: 0 0 36px; font-size: 1.1em; line-height: 1.7; color: var(--ptg-ink); max-width: 68ch; }
.ptg-overview p { margin: 0 0 12px; }
.ptg-overview p:last-child { margin-bottom: 0; }

/* Highlights (2/3) + tour info box (1/3) */
.ptg-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.ptg-main--nohl { grid-template-columns: minmax(0, 420px); }
.ptg-hl { list-style: none; margin: 0; padding: 0; }
.ptg-hl li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 0; line-height: 1.55; border-bottom: 1px solid var(--ptg-line); color: var(--ptg-ink); }
.ptg-hl li:first-child { padding-top: 0; }
.ptg-hl li:last-child { border-bottom: 0; }
/* Icons sit in the middle of the first line of text, whatever the font size */
.ptg-hl .ptg-i { margin-top: calc((1.55em - 18px) / 2); color: var(--ptg-accent); }

.ptg-box {
  position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border-radius: var(--ptg-radius); background: var(--ptg-soft); border: 1px solid var(--ptg-line);
}
.ptg-box p { margin: 0; }
.ptg.ptg-single .ptg-box__facts { list-style: none; margin: 0 0 6px; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; }
.ptg-box__facts li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.ptg-box__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ptg-tint); color: var(--ptg-accent); flex: none; }
.ptg-box__fact { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ptg-box__label { font-size: .8em; color: var(--ptg-muted); }
.ptg-box__value { font-weight: 700; color: var(--ptg-ink); }
.ptg-box__btn { width: 100%; }
.ptg-box__contact { padding-top: 14px; border-top: 1px solid var(--ptg-line); }
.ptg-box__or { font-size: .88em; color: var(--ptg-muted); margin-bottom: 8px !important; }
.ptg-box__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ptg-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ptg-ink); font-weight: 600; text-decoration: none; }
.ptg-link .ptg-i { color: var(--ptg-accent); }
.ptg-link:hover span { text-decoration: underline; }

/* Sample itinerary: a route line joining the days */
.ptg-itin {
  padding: 40px 44px; border-radius: 16px;
  background: var(--ptg-itin-bg); border: 1px solid var(--ptg-itin-border);
}
.ptg-itin__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.ptg .ptg-itin__head h2 { margin-bottom: 4px; }
.ptg-itin__toggle {
  padding: 6px 0; border: 0; background: none; color: var(--ptg-accent); font: inherit; font-weight: 700; cursor: pointer;
}
.ptg-itin__toggle:hover { text-decoration: underline; }
.ptg-itin__note { margin: 0 0 24px; color: var(--ptg-muted); }
.ptg-steps { list-style: none; margin: 0; padding: 0; }
/* Room on the left for the dot. Written with .ptg.ptg-single so the list reset above cannot remove it. */
.ptg.ptg-single .ptg-steps__item { position: relative; margin: 0; padding: 0 0 8px 34px; }
/* The route: a dashed line joining the dots from one block to the next */
.ptg-steps__item:not(:last-child)::before {
  content: ""; position: absolute; left: 8px; top: 22px; bottom: -6px; border-left: 2px dashed var(--ptg-itin-route);
}
.ptg-steps details > summary { display: flex; align-items: flex-start; gap: 14px; padding: 4px 0; cursor: pointer; list-style: none; }
.ptg-steps details > summary::-webkit-details-marker { display: none; }
.ptg-steps__dot {
  position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--ptg-accent); background: #fff; transition: background-color .2s;
}
.ptg-steps details[open] .ptg-steps__dot { background: var(--ptg-accent); }
.ptg-steps__head { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ptg-steps__label { font-size: .85em; font-weight: 700; color: var(--ptg-accent); }
.ptg-steps__title { font-weight: 700; font-size: 1.08em; line-height: 1.35; color: var(--ptg-ink); }
.ptg-steps summary:hover .ptg-steps__title { color: var(--ptg-accent); }
.ptg-steps summary .ptg-i--chevron { margin-top: 4px; color: var(--ptg-muted); transition: transform .2s; }
.ptg-steps details[open] .ptg-i--chevron { transform: rotate(180deg); }
.ptg-steps__body { padding: 8px 0 22px; }
.ptg-steps__body.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: 24px; align-items: start; }
.ptg-steps__text p { margin: 0 0 10px; max-width: 68ch; }
.ptg-steps__text p:last-child { margin-bottom: 0; }
.ptg-steps__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ptg-radius); }

/* Included / not included */
.ptg-incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px 48px; }
.ptg-incl__col h3 { margin: 0 0 10px; font-size: 1.05em; }
.ptg-incl__col ul { list-style: none; margin: 0; padding: 0; }
.ptg-incl__col li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 6px 0; line-height: 1.55; }
.ptg-incl__col .ptg-i { margin-top: calc((1.55em - 18px) / 2); }
.ptg-incl__col--yes .ptg-i { color: var(--ptg-accent); }
.ptg-incl__col--no .ptg-i { color: var(--ptg-muted); }

/* Testimonials */
.ptg-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.ptg-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; margin: 0; padding: 24px; border-radius: var(--ptg-radius); background: var(--ptg-soft); border: 1px solid var(--ptg-line); }
.ptg-quote blockquote { margin: 0; padding: 0; border: 0; font-size: 1.02em; line-height: 1.6; font-style: normal; color: var(--ptg-ink); }
.ptg-quote blockquote::before, .ptg-quote blockquote::after { content: none; }
.ptg-quote figcaption { padding-top: 12px; border-top: 1px solid var(--ptg-line); font-weight: 700; color: var(--ptg-ink); font-size: .92em; }

/* Enquiry form */
.ptg-form {
  margin: 64px 0 8px; padding: 40px; border-radius: 16px; background: var(--ptg-brand); color: var(--ptg-on-brand);
  scroll-margin-top: 90px;
}
.ptg-single .ptg-form h2 { color: var(--ptg-on-brand); margin-bottom: 8px; }
.ptg-form__tour { margin: 0 0 6px; }
.ptg-form__intro { margin: 0 0 22px; max-width: 60ch; opacity: .92; }
.ptg-form__box { padding: 28px; border-radius: var(--ptg-radius); background: var(--ptg-card); color: var(--ptg-text); }
.ptg-form__note { margin: 16px 0 0; max-width: 70ch; font-size: .9em; opacity: .88; }

/* Related */
.ptg-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.ptg .ptg-related__head h2 { margin: 0; }
.ptg-related__head a { color: var(--ptg-accent); font-weight: 700; }

/* Sticky button on phones */
.ptg-sticky { display: none; }

@media (max-width: 900px) {
  .ptg-main, .ptg-main--nohl { grid-template-columns: 1fr; gap: 32px; }
  .ptg-box { position: static; }
}
@media (max-width: 700px) {
  .ptg-section { margin: 44px 0; }
  .ptg-hero { aspect-ratio: 4 / 5; min-height: 0; border-radius: 12px; }
  .ptg-hero--plain { aspect-ratio: auto; }
  .ptg-hero__copy { padding: 24px 20px 52px; }
  .ptg-hero--plain .ptg-hero__copy { padding: 28px 20px; }
  .ptg-hero__nav { display: none; }
  .ptg-hero__dots { left: 20px; right: auto; bottom: 20px; }
  .ptg-form { padding: 28px 18px; }
  .ptg-form__box { padding: 18px; }
  .ptg-itin { padding: 24px 16px; border-radius: 12px; }
  .ptg.ptg-single .ptg-steps__item { padding-left: 28px; }
  /* On phones the description and photo use the full width, starting at the left edge of the panel */
  .ptg-steps__item:not(:last-child)::before { display: none; }
  .ptg-steps__body { margin-left: -28px; padding-top: 10px; }
  .ptg-steps__body.has-photo { grid-template-columns: 1fr; gap: 14px; }
  .ptg-steps__body.has-photo .ptg-steps__img { order: -1; }
  .ptg-hl li, .ptg-incl__col li { gap: 8px; }
  .ptg-incl { gap: 24px; }
  .ptg-overview { font-size: 1.04em; margin-bottom: 28px; }

  .ptg-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ptg-card); border-top: 1px solid var(--ptg-line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .ptg-sticky.is-visible { transform: none; }
  .ptg-sticky .ptg-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ptg-card__img, .ptg-hero__slide, .ptg-hero__dot, .ptg-sticky, .ptg-steps__dot, .ptg-steps summary .ptg-i--chevron { transition: none; }
  .ptg-card:hover .ptg-card__img { transform: none; }
}
