/* Encounters Africa: additions to the brand stylesheet for the server-rendered site.
   Only tokens from site.css are used. Covers the header logo swap and page types the prototype did not design. */

/* Header: both logo variants are in the markup; the reversed one shows only over a hero. */
.hdr .hdr-logo { display: inline-flex; align-items: center; }
.hdr .logo-reversed { display: none; }
.hdr.over:not(.scrolled) .logo-primary { display: none; }
.hdr.over:not(.scrolled) .logo-reversed { display: block; }
[hidden] { display: none !important; }

/* Segmented control and chips rendered as links (URL-driven filters). */
.seg a.seg-a { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; font: 500 14.5px/1 var(--f-text); color: var(--ink-700); transition: background var(--t-fast); flex: 1; }
.seg a.seg-a:hover { color: var(--ink); }
.seg a.seg-a.is-on { background: var(--paper); color: var(--ink); box-shadow: var(--e-1); }
a.chip { text-decoration: none; }
.ls-search { margin: 0; }
.ls-sort { margin: 0; }
.ls-filters-m { margin-bottom: 20px; }
.ls-filters-m > summary { list-style: none; cursor: pointer; width: max-content; }
.ls-filters-m > summary::-webkit-details-marker { display: none; }
.ls-filters-m-b { margin-top: 16px; padding: 22px; border: 1px solid var(--sand); border-radius: var(--r-scale); background: var(--paper); }
@media (min-width: 1101px) { .show-t { display: none !important; } }
.ls-map-l ul { list-style: none; margin: 0; padding: 0; }

/* ---------- pages the prototype did not design: destination, lodge, article, about, contact ---------- */
.pg-hero { min-height: min(68vh, 640px); }
.pg-hero .sf-hero-img { animation: none; }
.pg-h { max-width: 22ch; }
.pg-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 64px; align-items: start; }
.pg-aside { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--r-scale-lg); padding: 32px; box-shadow: var(--e-1); }
.pg-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 980px) { .pg-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; } .pg-sticky { position: static; } }
.pg-prose { max-width: 70ch; font-size: 17px; line-height: 1.7; color: var(--ink-700); }
.pg-prose > * + * { margin-top: 1em; }
.pg-prose h2 { font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--f-display); letter-spacing: -.01em; color: var(--ink); margin-top: 1.7em; }
.pg-prose h3 { font: 400 clamp(21px, 2vw, 25px)/1.2 var(--f-display); color: var(--ink); margin-top: 1.5em; }
.pg-prose h4 { font: 600 17px/1.3 var(--f-text); color: var(--ink); margin-top: 1.4em; }
.pg-prose a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pg-prose a:hover { color: var(--terra-700); }
.pg-prose ul, .pg-prose ol { padding-left: 1.3em; }
.pg-prose li + li { margin-top: .4em; }
.pg-prose img { border-radius: var(--r-scale); height: auto; margin: 1.6em 0; }
.pg-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--clay); font: 400 22px/1.4 var(--f-display); color: var(--ink); }
.pg-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.pg-prose th, .pg-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand); }
.pg-prose strong { color: var(--ink); font-weight: 600; }
.pg-article { max-width: none; }
.pg-article-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding: 28px 32px; border-radius: var(--r-scale-lg); background: var(--linen); }
.pg-sub { color: var(--terracotta); margin: 36px 0 14px; }
.pg-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 15.5px; color: var(--ink-700); }
.pg-list li { position: relative; padding: 5px 0 5px 20px; break-inside: avoid; }
.pg-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--lagoon); }
@media (max-width: 640px) { .pg-list { columns: 1; } }
.pg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pg-gallery .frame { aspect-ratio: 4/3; }
.pg-cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1280px) { .pg-cards-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .pg-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pg-cards-4 { grid-template-columns: 1fr; } }
.stay-card .frame { aspect-ratio: 4 / 3; }
.pg-dest-grid { grid-auto-rows: 220px; }
.pg-dest-grid .dest-t b { font-size: 24px; }
@media (max-width: 1100px) { .pg-dest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .pg-dest-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } .pg-dest-grid .dest-t b { font-size: 19px; } .pg-dest-grid .dest-t { left: 14px; right: 14px; bottom: 12px; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--sand); }
.pg-form { display: grid; gap: 22px; max-width: 620px; }
.pg-textarea { height: auto; min-height: 150px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.pg-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 15.5px; }
.pg-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.pg-contact li svg { margin-top: 3px; color: var(--terracotta); }
.pg-contact a:hover { color: var(--terracotta); }
.ds-body h2 a:hover { color: var(--terracotta); }

/* Homepage: the month list is links before JavaScript takes over (same look as the buttons). */
.ww-list a { width: 100%; display: grid; grid-template-columns: 40px 1fr 18px; gap: 12px; align-items: center; padding: 12px 8px; border-radius: 4px; text-align: left; color: var(--canvas); }
.ww-list a:hover { background: rgba(246,241,233,.06); }
.ww-map { border-radius: var(--r-scale-lg); }
a.finder-go { text-decoration: none; }
.results:focus { outline: none; }
/* Detail-page heroes carry more text than the itinerary hero, over photos we do not choose: a fuller scrim keeps AA contrast. */
.pg-hero .sf-scrim { background: linear-gradient(180deg, rgba(46,41,36,.66) 0%, rgba(46,41,36,.42) 34%, rgba(46,41,36,.62) 62%, rgba(46,41,36,.9) 100%); }
.pg-hero .sf-facts dd a { color: inherit; }
.pg-form .btn { justify-self: start; }

/* Currency switcher and converted prices */
.ccy { display: inline-flex; align-items: center; }
.ccy-sel { appearance: none; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 4px; padding: 6px 26px 6px 10px; font: 500 13px/1 var(--f-text); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 12px center, right 8px center; background-size: 4px 4px; background-repeat: no-repeat; }
.ccy-sel:focus-visible { outline: none; box-shadow: var(--focus); }
.ccy-sel option { color: var(--ink); }
.ccy.on-dark .ccy-sel { color: var(--canvas); }
.price-base { font-size: .85em; color: var(--ink-500); white-space: nowrap; }
.on-dark .price-base, .over .price-base { color: var(--on-dark-muted); }
