/* Encounters Africa: itinerary page (/safaris/:slug) additions to the brand stylesheet.
   Only tokens from site.css. Covers what the prototype left to its React libraries (drawer, popover)
   and the parts this page adds: the trip summary, the route list, the enquiry form. */
[hidden] { display: none !important; }

/* hero: the day count sits above the name; the photo does not pan (no pause control on this page) */
.sf-hero-img.itx-still { animation: none; }
.sf-h .itx-len { display: block; font: 600 12px/1.3 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); margin-bottom: 12px; }
.sf-hero .sf-h { max-width: 16ch; }
.sf-facts dd .price-tag { color: inherit; }
.itx-sent { max-width: 640px; margin-bottom: 8px; }
.itx-sent:focus-visible { outline: none; box-shadow: var(--focus); }

/* overview */
.itx-upd { margin-top: 12px; }
.ov-hl li > span:last-child { min-width: 0; }
.itx-plan .itx-plan-t { margin: 10px 0 14px; font: 400 24px/1.2 var(--f-display); color: var(--ink); }
.itx-plan .season.labels b { display: block; }
.itx-hr { border: 0; border-top: 1px solid var(--sand); margin: 22px 0; }
.itx-plan-act { display: grid; gap: 10px; margin-top: 20px; }

/* day by day: CMS text, and the route as a list until (or instead of) the map */
.dd-text > * + * { margin-top: .8em; }
.dd-text a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.dd-leg { align-items: flex-start; }
.dd-leg .ea-ic { flex: none; margin-top: 1px; }
.itx-map { height: 100%; }
.dd-map.itx-map-static { position: static; height: auto; min-height: 0; max-height: none; order: 0; }
.itx-stops { padding: 28px; border: 1px solid var(--sand); border-radius: var(--r-scale-lg); background: var(--paper); }
.itx-stops .t-eyebrow { color: var(--terracotta); margin-bottom: 18px; }
.itx-stops ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.itx-stops li { display: flex; flex-direction: column; gap: 12px; }
.itx-stop { display: flex; gap: 14px; align-items: center; }
.itx-stop > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.itx-stop b { font: 500 16px/1.3 var(--f-text); }
.itx-stop-leg { display: inline-flex; gap: 8px; align-items: center; margin-left: 6px; padding-left: 20px; border-left: 1.5px dashed var(--sand); font: 500 13px/1.4 var(--f-text); color: var(--ink-500); min-height: 28px; }
.dd-day.on .dd-hit { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.dd-hit { cursor: pointer; }

/* Make it yours: the summary card reuses the quote card skin without any price */
.qc-pp b { font-size: 44px; }
.qc-season { align-items: flex-start; line-height: 1.45; }
.qc-season .dot { flex: none; margin-top: 6px; }
.qc-lines li span:last-child { white-space: nowrap; }
.qc-lines li.itx-sum-k span:first-child { color: var(--champagne); font: 600 11px/1.6 var(--f-text); letter-spacing: .16em; text-transform: uppercase; }
.qc-cta { padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--canvas) 12%, transparent); }
.qc-fine { padding-bottom: 24px; }
.qc .btn-ghost { height: 42px; padding: 0 6px; border-bottom: 0; }
.mb-exts .tile .tick .ea-ic { visibility: hidden; }
.mb-exts .tile[aria-pressed="true"] .tick .ea-ic { visibility: visible; }
.mb-exts .tile { min-height: 132px; cursor: pointer; }
.mbm, .mg-m { cursor: pointer; }
.mb-swap select { cursor: pointer; }
.mg-m:focus-visible, .mbm:focus-visible { outline: none; box-shadow: var(--focus); }

/* when to go: the no-JavaScript table */
.itx-table { margin-top: 24px; overflow-x: auto; border: 1px solid var(--sand); border-radius: var(--r-scale); background: var(--paper); }
.itx-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.itx-table th, .itx-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--sand); vertical-align: top; }
.itx-table thead th { font: 600 11px/1.3 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
.itx-table tbody tr:last-child th, .itx-table tbody tr:last-child td { border-bottom: 0; }

/* questions as <details> */
.itx-faq > summary { list-style: none; cursor: pointer; }
.itx-faq > summary::-webkit-details-marker { display: none; }
.itx-faq > summary h3 { font: inherit; margin: 0; }
.itx-faq > summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-field); }
.itx-faq[open] > summary .acc-ic { transform: rotate(45deg); background: var(--ink); color: var(--canvas); border-color: var(--ink); }

/* enquiry */
.itx-enq { padding: var(--s-10) 0; background: var(--canvas); border-top: 1px solid var(--sand); }
.itx-enq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.itx-enq-t { position: sticky; top: calc(var(--header-h) + 84px); }
.itx-enq-t strong { color: var(--ink); font-weight: 600; }
.itx-contact { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; font-size: 16px; }
.itx-contact li { display: flex; gap: 12px; align-items: center; min-height: 24px; }
.itx-contact .ea-ic { color: var(--terracotta); flex: none; }
.itx-enq-f { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--r-scale-lg); padding: 36px; box-shadow: var(--e-2); }
.itx-form { display: grid; gap: 20px; }
.itx-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.itx-wb { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-700); padding: 12px 16px; border-radius: var(--r-scale-sm); background: var(--linen); }
.itx-radios { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 4px; }
.itx-radios legend { padding: 0; margin-bottom: 8px; }
.itx-radio { display: flex; gap: 12px; align-items: center; min-height: 36px; font-size: 15.5px; color: var(--ink-700); cursor: pointer; }
.itx-radio input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--terracotta); cursor: pointer; }
.itx-radio input:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 50%; }
.itx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
@media (max-width: 980px) { .itx-enq-in { grid-template-columns: 1fr; gap: 36px; } .itx-enq-t { position: static; } }
@media (max-width: 640px) { .itx-enq-f { padding: 24px 20px; } .itx-form-2 { grid-template-columns: 1fr; } }

/* sticky actions: hidden (and inert) until the visitor is past the hero, and while the enquiry form is on screen */
.sf-bar[inert] { transform: translateY(110%); }
@media (min-width: 981px) { .sf-bar:not(.on) { visibility: hidden; transition: transform var(--t-slow) var(--ease-settle), visibility 0s linear var(--t-slow); } }
.sf-bar-act .btn { flex: none; }
@media (max-width: 980px) { .sf-bar-act .btn-secondary { flex: none; } }

/* share popover */
.itx-share { position: relative; display: inline-flex; }
.itx-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; }
.itx-pop.up { top: auto; bottom: calc(100% + 12px); }
.share-list a, .share-list button { cursor: pointer; }

/* camp drawer: a native modal dialog docked to the right */
.itx-cd { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(640px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; border-width: 0 0 0 1px; box-shadow: var(--e-3); overflow: hidden; }
.itx-cd[open] { animation: itx-sheet var(--t-slow) var(--ease-settle) both; }
.itx-cd::backdrop { background: var(--ink); opacity: .55; }
@keyframes itx-sheet { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.itx-cd-x { position: absolute; right: 30px; top: 30px; z-index: 2; background: var(--paper); box-shadow: var(--e-1); }
.itx-cd .cd-scroll { outline: none; overscroll-behavior: contain; }
.itx-cd .cd-main img { width: 100%; height: 100%; object-fit: cover; }
.itx-cd .cd-main:empty { display: none; }
.itx-cd h2:focus { outline: none; }
.cd-sim button { cursor: pointer; }
.cd-sim button b { font-weight: 500; }
html.itx-lock { overflow: hidden; }
@media (max-width: 640px) { .itx-cd .cd-body { padding: 20px 20px 40px; } .itx-cd-x { right: 28px; top: 28px; } }

@media print { .itx-cd, .ea-toasts, .itx-share { display: none !important; } }

/* when to go: long "or this journey instead" links wrap instead of widening the page */
.mg-verdict > div { min-width: 0; }
.mg-verdict .btn-ghost { white-space: normal; text-align: left; line-height: 1.35; }
.mg-verdict .btn-ghost .ea-ic { flex: none; }

/* hero text over bright photographs */
.sf-hero .crumbs.on-photo, .sf-hero .sf-k, .sf-hero .sf-h, .sf-hero .sf-facts { text-shadow: 0 1px 16px color-mix(in srgb, var(--ink) 65%, transparent); }
