/* =====================================================================
   Safari & Kilimanjaro tour pages (template-parts/tour.php) — builds on guide.css
   ===================================================================== */
.td-hero__title { max-width: 1000px; font-size: clamp(40px, 5.2vw, 78px); line-height: 1.02; }
.td-narrow { max-width: 1080px; }

/* nav: price on the right */
.td-nav__end { display: flex; flex: none; align-items: center; gap: 18px; }
.td-nav__price { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--gd-ink); white-space: nowrap; }
.td-nav__price small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gd-muted); }
.td-nav__price b { font: 600 24px/1 var(--head); }
.td-nav__price span { font-size: 13px; color: var(--gd-muted); }

/* overview */
.td-h { margin: 0 0 20px; font: 600 clamp(32px, 3.2vw, 44px)/1.1 var(--head); color: var(--gd-ink); }
.td-over p { margin: 0 0 18px; }
.td-kf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; font-family: var(--ui, 'Jost', sans-serif); }
.td-kf li { padding: 18px 20px; border: 1px solid var(--gd-line); border-radius: 14px; background: var(--gd-cream); }
.td-kf small { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink, #a8620a); }
.td-kf b { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--gd-ink); }

.td-route { margin-top: 34px; padding: 28px 30px; border-radius: 18px; background: var(--gd-ink); color: #fff; font-family: var(--ui, 'Jost', sans-serif); }
.td-route__title { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 600 24px/1.2 var(--head); color: #fff; }
.td-route__title .ic { width: 22px; height: 22px; color: var(--orange); }
/* horizontal route: dots on one line, labels underneath; scrolls sideways when there are many stops */
.td-route ol { display: flex; gap: 0; margin: 0 -30px; padding: 4px 30px 6px; list-style: none; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.td-route li { position: relative; flex: 1 0 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 14px 0 0; }
.td-route li::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255, 255, 255, .16); }
.td-route li:first-child::before { left: 11px; }
.td-route li:last-child::before { right: auto; width: 11px; display: none; }
.td-route__dot { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; margin: 0 0 8px; border: 5px solid rgba(249, 169, 74, .22); border-radius: 50%; background: var(--orange); background-clip: padding-box; box-sizing: border-box; }
.td-route li:first-child .td-route__dot, .td-route li:last-child .td-route__dot { background: var(--teal); border-color: rgba(18, 141, 135, .35); }
.td-route small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.td-route b { font-size: 15.5px; font-weight: 500; line-height: 1.35; color: #fff; }
.td-route li:hover b { color: var(--orange); }

/* booking card */
.td-book { padding: 28px 26px; border: 1px solid var(--gd-line); border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -40px rgba(43, 33, 24, .45); }
.td-book__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--gd-line); }
.td-book__price small { width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gd-muted); }
.td-book__price b { font: 600 44px/1 var(--head); color: var(--gd-ink); }
.td-book__price span { font-size: 14.5px; color: var(--gd-muted); }
.td-book__facts { margin: 6px 0 20px; }
.td-book__facts div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--gd-line); font-size: 14.5px; }
.td-book__facts dt { display: flex; align-items: center; gap: 9px; color: var(--gd-muted); }
.td-book__facts dt .ic { width: 16px; height: 16px; color: var(--orange-ink, #a8620a); }
.td-book__facts dd { margin: 0; font-weight: 600; text-align: right; color: var(--gd-ink); }
.td-book__btn { width: 100%; justify-content: center; }
.td-book__wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--gd-line); border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--gd-ink); text-decoration: none; transition: border-color .2s, background .2s; }
.td-book__wa:hover { border-color: #25d366; background: #f0fbf4; }
.td-book__wa .ic { width: 17px; height: 17px; color: #25d366; }
.td-book__points { display: grid; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--gd-body); }
.td-book__points li { display: flex; align-items: center; gap: 8px; }
.td-book__points .ic { width: 15px; height: 15px; color: var(--teal); }
.td-expert .gd-expert__text { margin-bottom: 16px; }

/* itinerary */
.td-itin { padding: 100px 0; background: var(--gd-cream); }
.td-itin .gd-head--split { align-items: flex-end; }
.td-itin__all { flex: none; margin: 0; }
.td-days .pp-day__num { box-shadow: 0 0 0 5px var(--gd-cream); }
.td-days .pp-day__card { padding: 18px 22px; border-radius: 14px; }
.td-days .pp-day.is-open .pp-day__card { border-radius: 14px 14px 0 0; }
.td-days .pp-day__title strong { font-weight: 600; }
.td-day__stay-line { display: flex !important; align-items: center; gap: 6px; margin-top: 6px; font: 500 13.5px/1.3 var(--ui, 'Jost', sans-serif) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--gd-muted) !important; }
.td-day__stay-line .ic { width: 14px; height: 14px; color: var(--orange-ink, #a8620a); }
.pp-day.is-open .td-day__stay-line { display: none !important; }
.td-days .pp-day__panel { border-radius: 0 0 14px 14px; }
.td-day__body { padding: 6px 24px 24px; font-size: 16px; line-height: 1.75; color: var(--gd-body); }
.td-day__text p { margin: 0 0 14px; }
.td-day__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--gd-line); list-style: none; }
.td-day__chips li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--gd-cream); font-size: 14.5px; font-weight: 500; color: var(--gd-ink); }
.td-day__chips .ic { width: 18px; height: 18px; color: var(--orange-ink, #a8620a); }
.td-day__chips small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gd-muted); }
.td-itxt { padding: 30px 32px; border-radius: 18px; background: #fff; font-size: 16.5px; line-height: 1.8; color: var(--gd-body); }

/* prices — "rates per person" table */
.td-prices { padding: 100px 0; background: #fff; }
.td-rates__head { display: flex; align-items: flex-end; gap: 28px; margin-bottom: 36px; }
.td-rates__head .h2 { white-space: nowrap; }
.td-rates__rule { flex: 1; height: 0; margin-bottom: 14px; border-top: 2px dotted #d8cab4; }
.td-rates { overflow-x: auto; margin: 0 -4px; padding: 4px; outline: none; scrollbar-width: thin; }
.td-rates table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-family: var(--ui, 'Jost', sans-serif); }
.td-rates th, .td-rates td { padding: 20px 18px; text-align: center; vertical-align: middle; }
.td-rates .is-first { text-align: left; padding-left: 26px; min-width: 210px; }
/* header block */
.td-rates thead th { background: var(--gd-cream); border-top: 1px solid var(--gd-line); border-bottom: 1px solid var(--gd-line); }
.td-rates thead th + th { border-left: 1px solid var(--gd-line); }
.td-rates thead th:first-child { border-left: 1px solid var(--gd-line); border-radius: 16px 0 0 16px; }
.td-rates thead th:last-child { border-right: 1px solid var(--gd-line); border-radius: 0 16px 16px 0; }
.td-rates thead b { display: block; font-size: 16px; font-weight: 600; color: var(--gd-ink); white-space: nowrap; }
.td-rates thead small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--gd-muted); white-space: nowrap; }
.td-rates__gap td { height: 14px; padding: 0; border: 0; }
/* body block */
.td-rates tbody tr:not(.td-rates__gap) > * { background: #fff; border-bottom: 1px solid var(--gd-line); transition: background .2s; }
.td-rates tbody tr:not(.td-rates__gap) > * + * { border-left: 1px solid var(--gd-line); }
.td-rates tbody tr:not(.td-rates__gap) > :first-child { border-left: 1px solid var(--gd-line); }
.td-rates tbody tr:not(.td-rates__gap) > :last-child { border-right: 1px solid var(--gd-line); }
.td-rates tbody tr:nth-child(2) > * { border-top: 1px solid var(--gd-line); }
.td-rates tbody tr:nth-child(2) > :first-child { border-top-left-radius: 16px; }
.td-rates tbody tr:nth-child(2) > :last-child { border-top-right-radius: 16px; }
.td-rates tbody tr:last-child > :first-child { border-bottom-left-radius: 16px; }
.td-rates tbody tr:last-child > :last-child { border-bottom-right-radius: 16px; }
.td-rates tbody tr:not(.td-rates__gap):hover > * { background: #fffaf2; }
.td-rates tbody th { font-size: 16px; font-weight: 500; color: var(--gd-ink); white-space: nowrap; }
.td-rates td { font-size: 17px; font-weight: 500; color: var(--gd-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-rates td.is-low { position: relative; font-weight: 600; color: var(--teal-ink, #0a6b68); }
.td-rates td.is-low::after { content: "Best rate"; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.td-rates__na { padding: 0 0 2px; border: 0; border-bottom: 1.5px dashed #b9ad9c; background: none; font: 500 15px var(--ui, 'Jost', sans-serif); color: var(--gd-muted); cursor: pointer; transition: color .2s, border-color .2s; }
.td-rates__na:hover { color: var(--orange-ink, #a8620a); border-color: var(--orange); }
.td-prices__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; }
.td-prices__notes { display: grid; gap: 8px; }
.td-prices__notes p { display: flex; align-items: flex-start; gap: 10px; max-width: 700px; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--gd-body); }
.td-prices__notes .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal); }
.td-prices__na span { flex: none; min-width: 18px; font-weight: 600; color: var(--gd-muted); border-bottom: 1.5px dashed #b9ad9c; line-height: 1.3; }
.td-prices__foot .btn { flex: none; }
.td-prices__foot .btn .ic { width: 17px; height: 17px; }
@media (max-width: 760px) {
  .td-rates__head { margin-bottom: 24px; }
  .td-rates__rule { display: none; }
  .td-rates .is-first { position: sticky; left: 0; z-index: 2; min-width: 150px; padding-left: 16px; box-shadow: 6px 0 12px -10px rgba(43, 33, 24, .35); }
  .td-rates thead .is-first { background: var(--gd-cream); }
  .td-rates th, .td-rates td { padding: 16px 12px; }
  .td-rates tbody th { font-size: 14px; white-space: normal; }
  .td-rates td { font-size: 15.5px; }
  .td-prices__foot { flex-direction: column; align-items: flex-start; }
}

/* included */
.td-incl { padding: 100px 0; background: var(--gd-cream); }
.td-incl__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.td-incl__box { padding: 30px 30px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--gd-line); }
.td-incl__box h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 26px/1.2 var(--head); color: var(--gd-ink); }
.td-incl__box h3 span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.td-incl__box h3 .ic { width: 18px; height: 18px; }
.td-incl__box.is-yes h3 span { background: var(--teal-soft, #e0f1f0); color: var(--teal-ink, #0a6b68); }
.td-incl__box.is-no h3 span { background: #fbe6e1; color: #b44a35; }
.td-incl__box ul { margin: 0; padding: 0; list-style: none; }
.td-incl__box li { position: relative; padding: 10px 0 10px 26px; border-top: 1px dashed var(--gd-line); font-size: 15.5px; line-height: 1.5; color: var(--gd-body); }
.td-incl__box li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; }
.td-incl__box.is-yes li::before { background: var(--teal); }
.td-incl__box.is-no li::before { background: #d98b78; }

/* extra editor text */
.td-more { padding: 90px 0; background: #fff; }
.td-more .gd-sec + .gd-sec { margin-top: 36px; }

/* booking form */
.td-bookform { padding: 110px 0; background: var(--gd-ink); color: #fff; }
.td-bookform__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: center; }
.td-bookform .kicker { color: var(--orange); }
.td-bookform .h2 { color: #fff; }
.td-bookform .h2 em.accent { color: var(--orange); }
.td-bookform__text p { margin: 20px 0 0; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .78); }
.td-bookform__points { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 16px; color: #fff; }
.td-bookform__points li { display: flex; align-items: center; gap: 12px; }
.td-bookform__points .ic { width: 22px; height: 22px; color: var(--orange); }
.td-bookform__team { display: flex; align-items: center; gap: 14px; margin-top: 32px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.td-bookform__team .gd-expert__faces { margin: 0; }
.td-bookform__card { padding: 34px 32px; border-radius: 22px; background: #fff; color: var(--gd-ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.td-bookform__tour { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--gd-line); font: 600 22px/1.25 var(--head); color: var(--gd-ink); }
.td-bookform__tour span { font: 400 15px var(--ui, 'Jost', sans-serif); color: var(--gd-muted); }

/* similar tours */
.td-sim { background: #f3ece1; }

@media (max-width: 1024px) {
  .td-nav__price { display: none; }
  .td-bookform__grid { grid-template-columns: 1fr; gap: 40px; }
  .td-kf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .td-hero__title { font-size: clamp(34px, 9vw, 46px); }
  .td-itin, .td-prices, .td-incl, .td-more { padding: 64px 0; }
  .td-bookform { padding: 70px 0; }
  .td-bookform__card { padding: 24px 18px; }
  .td-itin .gd-head--split { flex-direction: column; align-items: flex-start; }
  .td-days .pp-day__num { width: 46px; height: 46px; font-size: 16px; }
  .td-days .pp-day__panel { margin-left: 0; margin-top: 6px; border-top: 1px solid var(--gd-line); border-radius: 14px; }
  .td-days .pp-day.is-open .pp-day__card { border-radius: 14px; border-bottom-color: var(--gd-line); }
  .td-day__body { padding: 18px; }
  .td-incl__grid { grid-template-columns: 1fr; }
  .td-incl__box { padding: 24px 20px 18px; }
  .td-prices__foot { flex-direction: column; align-items: flex-start; }
  .td-route { padding: 22px 18px; }
  .td-route ol { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .td-route li { flex: none; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 0; padding: 0 0 16px; }
  .td-route li::before { left: 10px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .td-route li:first-child::before { left: 10px; top: 11px; }
  .td-route li:last-child::before { display: none; }
  .td-route__dot { grid-row: span 2; margin: 0; }
  .td-route small, .td-route b { grid-column: 2; }
  .td-kf { grid-template-columns: 1fr 1fr; gap: 8px; }
  .td-kf li { padding: 14px; }
  .td-book__price b { font-size: 38px; }
}

/* When to go: season summary + month picker */
.td-when { padding: 100px 0; background: #fff; }
.td-when__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: end; margin-bottom: 34px; }
.td-when__intro { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--gd-body); }
.td-when__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; font-family: var(--ui, 'Jost', sans-serif); }
.td-when__sum li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--gd-line); border-radius: 16px; background: var(--gd-cream); }
.td-when__ic { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.td-when__ic .ic { width: 20px; height: 20px; }
.td-when__sum .is-best .td-when__ic { background: var(--orange); color: var(--gd-ink); }
.td-when__sum .is-good .td-when__ic { background: var(--teal); color: #fff; }
.td-when__sum .is-low .td-when__ic { background: #e6dccd; color: var(--gd-body); }
.td-when__sum small { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gd-muted); }
.td-when__sum b { font-size: 16px; font-weight: 600; color: var(--gd-ink); }

.td-cal { padding: 26px; border-radius: 22px; background: var(--gd-ink); font-family: var(--ui, 'Jost', sans-serif); }
.td-cal__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.td-cal__m { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 4px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.td-cal__m:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.td-cal__m b { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.td-cal__bar { width: 70%; height: 6px; border-radius: 99px; }
.td-cal__m.is-best .td-cal__bar { background: var(--orange); }
.td-cal__m.is-good .td-cal__bar { background: var(--teal); }
.td-cal__m.is-low .td-cal__bar { background: rgba(255, 255, 255, .22); }
.td-cal__m small { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.td-cal__m.is-on { background: #fff; border-color: #fff; color: var(--gd-ink); }
.td-cal__m.is-on small { color: var(--gd-muted); }
.td-cal__m.is-on.is-low .td-cal__bar { background: #d8cab4; }
.td-cal__panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 18px; padding: 24px 26px; border-radius: 16px; background: #fff; animation: td-fade .3s ease; }
.td-cal__panel[hidden] { display: none; }
@keyframes td-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.td-cal__name span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; font: 600 26px/1 var(--head); }
.td-cal__panel.is-best .td-cal__name span { background: var(--orange-soft, #fdeed8); color: var(--orange-ink, #a8620a); }
.td-cal__panel.is-good .td-cal__name span { background: var(--teal-soft, #e0f1f0); color: var(--teal-ink, #0a6b68); }
.td-cal__panel.is-low .td-cal__name span { background: #f1ebe2; color: var(--gd-body); }
.td-cal__status { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gd-muted); }
.td-cal__panel.is-best .td-cal__status b { color: var(--orange-ink, #a8620a); }
.td-cal__panel.is-good .td-cal__status b { color: var(--teal-ink, #0a6b68); }
.td-cal__text p:last-child { margin: 0; font-family: var(--sans, 'Inter', sans-serif); font-size: 16.5px; line-height: 1.6; color: var(--gd-ink); }
.td-cal__ask { white-space: nowrap; }
.td-cal__ask .ic { width: 17px; height: 17px; }
@media (max-width: 1024px) {
  .td-when__top { grid-template-columns: 1fr; gap: 16px; }
  .td-cal__months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .td-cal__panel { grid-template-columns: auto minmax(0, 1fr); }
  .td-cal__ask { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .td-when { padding: 64px 0; }
  .td-when__sum { grid-template-columns: 1fr; gap: 10px; }
  .td-cal { padding: 14px; border-radius: 18px; }
  .td-cal__months { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .td-cal__m { padding: 10px 2px; gap: 7px; }
  .td-cal__m b { font-size: 13.5px; }
  .td-cal__panel { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px; }
  .td-cal__name span { width: 56px; height: 56px; font-size: 21px; }
  .td-cal__ask { width: 100%; justify-content: center; }
}
