/* ==========================================================================
   Content pages (layout_default.php article mode) and reviews (layout_testimonials.php)
   ========================================================================== */

.pg, .rv {
  --pg-brand: var(--brand, #03488d);
  --pg-brand-deep: #022f63;
  --pg-book: #c2410c;
  --pg-ink: #13202e;
  --pg-text: #2a3647;
  --pg-muted: #5b6878;
  --pg-line: #e2e8f0;
  --pg-soft: #f3f6fa;
  --pg-head: var(--font-head, "Poppins", system-ui, sans-serif);
  color: var(--pg-ink);
  font-family: var(--font-base, "Mulish", system-ui, sans-serif);
}
.pg h1, .pg h2, .pg h3, .rv h1, .rv h2, .rv h3 { font-family: var(--pg-head); color: var(--pg-ink); text-wrap: balance; }

/* ---------- Head ---------- */
.pg-head { max-width: 860px; margin: 0 0 24px; }
.pg-head h1, .rv-head h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 700; line-height: 1.15; }
.pg-lead, .rv-lead { margin: 0 0 10px; font-size: 1.1rem; line-height: 1.6; color: var(--pg-muted); max-width: 70ch; }
.pg-meta { margin: 0; font-size: .88rem; color: var(--pg-muted); }

/* ---------- Layout ---------- */
.pg-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 992px) { .pg-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } }
.pg-main { min-width: 0; }

.pg-figure { margin: 0 0 22px; border-radius: 16px; overflow: hidden; background: var(--pg-soft); }
.pg-figure img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }

.pg-toc { margin: 0 0 24px; padding: 16px 20px; background: var(--pg-soft); border: 1px solid var(--pg-line); border-radius: 14px; }
.pg-toc p { margin: 0 0 8px; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-muted); }
.pg-toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 28px; }
.pg-toc li { margin: 0 0 6px; break-inside: avoid; }
.pg-toc a { color: var(--pg-brand); font-weight: 700; text-decoration: none; }
.pg-toc a:hover { text-decoration: underline; }

.pg-prose { font-size: 1.04rem; line-height: 1.78; color: var(--pg-text); overflow-wrap: break-word; max-width: 78ch; }
.pg-prose > :first-child { margin-top: 0; }
.pg-prose p { margin: 0 0 1.1em; }
.pg-prose h2 { margin: 1.8em 0 .6em; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; line-height: 1.3; scroll-margin-top: 90px; }
.pg-prose h3 { margin: 1.5em 0 .5em; font-size: 1.2rem; font-weight: 700; line-height: 1.35; scroll-margin-top: 90px; }
.pg-prose ul, .pg-prose ol { margin: 0 0 1.2em 1.2em; padding: 0; }
.pg-prose li { margin-bottom: .4em; }
.pg-prose li::marker { color: var(--pg-brand); }
.pg-prose a { color: var(--pg-brand); text-underline-offset: 3px; }
.pg-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.pg-prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .96rem; }
.pg-prose th, .pg-prose td { padding: 10px 12px; border-bottom: 1px solid var(--pg-line); text-align: left; vertical-align: top; }
.pg-prose thead th { background: var(--pg-soft); }
@media (max-width: 767.98px) { .pg-prose table { display: block; overflow-x: auto; } }

.pg-block { margin: 34px 0 0; }
.pg-block h2 { margin: 0 0 14px; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.6rem); font-weight: 700; }

.pg-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pg-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
@media (hover: hover) { .pg-tile:hover { border-color: #b9c9de; box-shadow: 0 12px 26px rgba(3, 47, 99, .1); } }
.pg-tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pg-soft); }
.pg-tile__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.pg-tile__body strong { font-family: var(--pg-head); color: var(--pg-ink); line-height: 1.3; }
.pg-tile__body span { font-size: .88rem; color: var(--pg-muted); line-height: 1.5; }

.pg-posts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.pg-posts li { margin: 0 !important; }
.pg-posts a { display: block; padding: 12px 16px; background: #fff; border: 1px solid var(--pg-line); border-radius: 12px; font-weight: 700; color: var(--pg-ink); text-decoration: none; }
.pg-posts a:hover { border-color: var(--pg-brand); color: var(--pg-brand); }

.pg-search { position: relative; max-width: 620px; margin: 0 0 24px; }
.pg-search__control { display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--pg-line); box-shadow: 0 10px 24px rgba(3, 47, 99, .08); }
.pg-search__control i { align-self: center; padding-left: 10px; color: var(--pg-muted); }
.pg-search input { flex: 1; min-width: 0; border: 0; padding: 10px 6px; font-size: 1rem; background: transparent; }
.pg-search input:focus { outline: none; }
.pg-search button { border: 0; border-radius: 10px; padding: 10px 20px; background: var(--pg-book); color: #fff; font-weight: 800; }

/* ---------- Booking box ---------- */
@media (min-width: 992px) { .pg-side { position: sticky; top: 90px; } }
.pg-book { display: grid; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--pg-line); border-radius: 16px; box-shadow: 0 16px 36px rgba(3, 72, 141, .07); }
.pg-book__title { margin: 0; font-family: var(--pg-head); font-weight: 700; font-size: 1.15rem; color: var(--pg-ink); }
.pg-book__text { margin: 0 0 4px; color: var(--pg-muted); font-size: .92rem; line-height: 1.5; }
.pg-book__sub { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--pg-line); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-muted); }
.pg-book__trips { list-style: none; margin: 0; padding: 0; }
.pg-book__trips li + li { border-top: 1px solid var(--pg-line); }
.pg-book__trips a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; text-decoration: none; }
.pg-book__trips span { font-weight: 700; color: var(--pg-ink); line-height: 1.35; font-size: .92rem; }
.pg-book__trips b { flex-shrink: 0; color: var(--pg-book); font-size: .86rem; font-variant-numeric: tabular-nums; }
.pg-book__trips a:hover span { color: var(--pg-brand); }

.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 10px; border: 2px solid transparent; font-weight: 800; text-decoration: none; text-align: center; }
.pg-btn--book { background: var(--pg-book); color: #fff !important; }
.pg-btn--book:hover { background: #9a3412; }
.pg-btn--whatsapp { background: #fff; color: #128c4a !important; border-color: #25d366; }
.pg-btn--whatsapp:hover { background: #e9f9ef; }
.pg-btn:focus-visible, .pg-tile:focus-visible, .pg-toc a:focus-visible { outline: 3px solid rgba(3, 72, 141, .45); outline-offset: 2px; }

.pg-trips { margin: 48px 0 8px; padding-top: 32px; border-top: 1px solid var(--pg-line); }
.pg-trips h2 { margin: 0 0 18px; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.6rem); font-weight: 700; }

/* ---------- Reviews page ---------- */
.rv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 28px; margin: 0 0 20px; }
.rv-head > div:first-child { max-width: 760px; }
.rv-score { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; }
.rv-score > strong { font-family: var(--pg-head); font-size: 2.4rem; line-height: 1; color: var(--pg-ink); }
.rv-score > span { display: flex; flex-direction: column; color: var(--pg-muted); font-size: .9rem; }
.rv-stars { color: #f59e0b; letter-spacing: 1px; }
.rv-intro { margin-bottom: 20px; }

.rv-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 12px 14px; background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; }
.rv-filter label { margin: 0; font-weight: 700; color: var(--pg-muted); }
.rv-filter select { min-height: 42px; min-width: 260px; max-width: 100%; padding: 6px 10px; border: 1px solid #c5d0dc; border-radius: 10px; font: inherit; font-weight: 700; color: var(--pg-ink); background: #fff; }
.rv-trip-link { margin-left: auto; font-weight: 800; color: var(--pg-brand); text-decoration: none; }

.rv-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rv-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; }
.rv-card__top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rv-card__top strong { display: block; color: var(--pg-ink); line-height: 1.25; }
.rv-card__top div span { font-size: .84rem; color: var(--pg-muted); }
.rv-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e7eef8; color: var(--pg-brand-deep); font-weight: 800; object-fit: cover; }
.rv .rv-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.rv-card, .rv-card__top > div { min-width: 0; }
.rv-card p { margin: 0; color: var(--pg-text); line-height: 1.6; }
.rv-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--pg-line); font-size: .86rem; color: var(--pg-muted); }
.rv-card__foot a { color: var(--pg-brand); font-weight: 700; text-decoration: none; }
.rv-card__foot a:hover { text-decoration: underline; }

.rv-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 0; }
.rv-pages a, .rv-pages span { min-width: 40px; padding: 8px 12px; border: 1px solid var(--pg-line); border-radius: 9px; background: #fff; text-align: center; font-weight: 700; color: var(--pg-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.rv-pages span { background: var(--pg-brand); border-color: var(--pg-brand); color: #fff; }
.rv-empty { padding: 24px; text-align: center; color: var(--pg-muted); }

@media (max-width: 575.98px) {
  .rv-filter select { min-width: 0; width: 100%; }
  .rv-trip-link { margin-left: 0; }
}
/* ---------- Undo the site-wide content list and heading sizes for page components ---------- */
.pg .pg-toc ol { display: block; margin: 0; padding-left: 1.2em; line-height: 1.5; }
.pg .pg-toc li { margin: 0 0 6px; }
.pg ul.pg-posts { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.pg ul.pg-book__trips { display: block; margin: 0; padding: 0; list-style: none; line-height: inherit; color: inherit; }
.pg .pg-posts li, .pg .pg-book__trips li { margin: 0; }
.pg .pg-head h1, .rv .rv-head h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.pg .pg-block h2 { margin: 0 0 14px; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.6rem); }
.pg .pg-trips h2 { margin: 0 0 18px; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.6rem); }
.rv .rv-card h3 { margin: 0; font-size: 1.02rem; }

/* ---------- Forms: contact, trip enquiry and custom trip pages ---------- */
.pg p.ct-lead, .pg > p.pg-lead { margin-bottom: 22px; }
.pg-formcard { padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid var(--pg-line); border-radius: 16px; box-shadow: 0 16px 36px rgba(3, 72, 141, .05); }
.pg .pg-formcard h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); font-weight: 700; }
.pg p.pg-formcard__lead { margin: 0 0 20px; font-size: .98rem; line-height: 1.55; color: var(--pg-muted); }
.pg-form fieldset { min-width: 0; margin: 0 0 24px; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--pg-line); }
.pg-form fieldset:last-of-type { padding-bottom: 0; border-bottom: 0; }
.pg-form legend { float: none; width: auto; margin: 0 0 14px; padding: 0; font-family: var(--pg-head); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--pg-ink); }
.pg-form__grid { display: grid; gap: 14px; }
@media (min-width: 576px) { .pg-form__grid { grid-template-columns: 1fr 1fr; } }
.pg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pg-field--wide { grid-column: 1 / -1; }
.pg-field > label, .pg-field__label { margin: 0; font-weight: 700; font-size: .9rem; color: var(--pg-ink); }
.pg-field small { font-size: .8rem; font-weight: 500; color: var(--pg-muted); }
.pg-form input[type="text"], .pg-form input[type="email"], .pg-form input[type="tel"], .pg-form input[type="number"], .pg-form input[type="date"], .pg-form select, .pg-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--pg-ink);
}
.pg-form textarea { min-height: 120px; resize: vertical; }
.pg-form input:focus, .pg-form select:focus, .pg-form textarea:focus { outline: 3px solid rgba(3, 72, 141, .18); border-color: var(--pg-brand); }
.pg-form.was-validated input:invalid, .pg-form.was-validated textarea:invalid, .pg-form.was-validated select:invalid { border-color: #b42318; background: #fff8f7; }

.pg-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-choice { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border: 1.5px solid var(--pg-line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; color: var(--pg-ink); cursor: pointer; }
.pg-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--pg-brand); }
.pg-choice:has(input:checked) { border-color: var(--pg-brand); background: #eef4fc; }
.pg-choice:has(input:focus-visible) { outline: 3px solid rgba(3, 72, 141, .35); outline-offset: 2px; }

.pg-captcha { display: flex; align-items: stretch; gap: 6px; max-width: 380px; }
.pg-captcha img { width: 96px; height: 46px; border: 1px solid var(--pg-line); border-radius: 10px; background: var(--pg-soft); object-fit: cover; }
.pg-form .pg-captcha input { flex: 1; min-width: 0; }
.pg-captcha button { width: 46px; flex-shrink: 0; border: 1px solid #c5d0dc; border-radius: 10px; background: #fff; color: var(--pg-brand); cursor: pointer; }

.pg-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.pg-form__foot .pg-btn { min-width: 210px; border: 0; cursor: pointer; }
.pg-form__foot .pg-btn:disabled { opacity: .7; cursor: progress; }
.pg p.pg-form__status { margin: 0; font-weight: 700; color: var(--pg-muted); }
.pg p.pg-form__status.is-ok { color: #15803d; }
.pg p.pg-form__status.is-error { color: #b42318; }

/* Contact details list */
.pg ul.ct-list { display: grid; gap: 12px; margin: 0 0 6px; padding: 0; list-style: none; line-height: 1.45; color: var(--pg-text); }
.pg .ct-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; font-size: .95rem; }
.ct-list i { margin-top: 3px; color: var(--pg-brand); }
.ct-list a { font-weight: 700; color: var(--pg-ink); text-decoration: none; overflow-wrap: anywhere; }
.ct-list a:hover { color: var(--pg-brand); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .pg-tile { transition: none; } }
