/* Kidepo page styles. Shared navigation and inquiry-modal styles remain shared. */
body.page-kidepo-5-day {
  --accent: var(--luxury-forest-soft);
  --accent-dark: var(--luxury-forest);
  margin: 0;
  background: var(--luxury-surface-soft);
  color: var(--luxury-text);
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
.page-kidepo-5-day *, .page-kidepo-5-day *::before, .page-kidepo-5-day *::after { box-sizing: border-box; }

/* An open hero photo, with contrast behind the text and no extra panel. */
.page-kidepo-5-day .hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 110px 24px 64px;
  text-align: center;
  color: var(--luxury-cream);
  background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.55)), url("images/kidepo%20game%20drive.webp") center bottom / cover no-repeat;
}
.page-kidepo-5-day .hero-content { width: min(100%, 780px); }
.page-kidepo-5-day .hero-content h1 {
  margin: 0 0 16px;
  color: var(--luxury-cream);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}
.page-kidepo-5-day .hero-content p { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.94); }
.page-kidepo-5-day .hero-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--accent-dark);
  color: var(--luxury-cream);
  font-weight: 600;
  text-decoration: none;
}
.page-kidepo-5-day .hero-cta:hover { background: var(--accent); }
.page-kidepo-5-day :is(.hero-cta, .kidepo-faq summary):focus-visible { outline: 3px solid var(--luxury-gold); outline-offset: 4px; }

.page-kidepo-5-day .kidepo-glance { border-bottom: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-glance__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
}
.page-kidepo-5-day .kidepo-glance__inner > div { min-width: 0; padding: 15px 20px; border-right: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-glance__inner > div:first-child { border-left: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-glance dt { margin: 0 0 3px; color: var(--luxury-muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-kidepo-5-day .kidepo-glance dd { margin: 0; color: var(--accent-dark); font-size: .94rem; font-weight: 700; line-height: 1.3; }
.page-kidepo-5-day .kidepo-glance__price dd { font-family: var(--font-display); font-size: 1.08rem; }
.page-kidepo-5-day .kidepo-glance__price small { display: block; margin-top: 2px; color: var(--luxury-muted); font-family: "Lato", "Segoe UI", Arial, sans-serif; font-size: .68rem; font-weight: 400; }

/* One set of content rules serves both initial HTML and runtime tab panels. */
.page-kidepo-5-day .page { margin-top: 24px; margin-bottom: 56px; }
.page-kidepo-5-day .safari-overview { padding: 0 0 22px; text-align: left; }
.page-kidepo-5-day .safari-overview p { margin: 12px 0 0; color: var(--luxury-muted); }
.page-kidepo-5-day .card { margin: 0; padding: 24px 0; border-bottom: 1px solid var(--luxury-line); }
.page-kidepo-5-day :is(.safari-overview, .card, .itinerary-day) { background: transparent; border-radius: 0; box-shadow: none; }
.page-kidepo-5-day :is(.safari-overview h2, .card h2, .day-content h2, .kidepo-planning h2, .kidepo-related-planning h2) {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
  line-height: 1.2 !important;
}
.page-kidepo-5-day .kidepo-table-scroll { overflow-x: auto; }
.page-kidepo-5-day .card table { width: 100%; border-collapse: collapse; }
.page-kidepo-5-day .card :is(th, td) { padding: 11px 12px; border-bottom: 1px solid var(--luxury-line); text-align: left; vertical-align: top; }
.page-kidepo-5-day .card th { background: var(--accent); color: var(--luxury-cream); }
.page-kidepo-5-day .card td:first-child { width: 64px; }
.page-kidepo-5-day .card ul { padding-left: 20px; }

.page-kidepo-5-day .kidepo-stays { margin: 0; padding: 28px 0; border-block: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-stays__header { max-width: 820px; margin-bottom: 24px; }
.page-kidepo-5-day .kidepo-stays__header h2 { margin: 0 0 10px; color: var(--accent-dark); font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.2; }
.page-kidepo-5-day .kidepo-stays__header > p:last-child { margin: 0; color: var(--luxury-muted); }
.page-kidepo-5-day .kidepo-stay-option { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; padding: 24px 0; }
.page-kidepo-5-day .kidepo-stay-option + .kidepo-stay-option { border-top: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-stay-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.page-kidepo-5-day .kidepo-stay-gallery figure { min-width: 0; margin: 0; }
.page-kidepo-5-day .kidepo-stay-gallery__main { grid-column: 1 / -1; }
.page-kidepo-5-day .kidepo-stay-gallery img { display: block; width: 100%; height: 108px; border-radius: 5px; object-fit: cover; }
.page-kidepo-5-day .kidepo-stay-gallery__main img { height: clamp(210px, 24vw, 300px); }
.page-kidepo-5-day .kidepo-stay-gallery figcaption { margin-top: 5px; color: var(--luxury-muted); font-size: .72rem; line-height: 1.35; }
.page-kidepo-5-day .kidepo-stay-tier { margin: 0 0 5px; color: var(--accent-dark); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.page-kidepo-5-day .kidepo-stay-copy h3 { margin: 0 0 10px; color: var(--accent-dark); font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.2; }
.page-kidepo-5-day .kidepo-stay-copy > p:not(.kidepo-stay-tier) { margin: 0; color: var(--luxury-muted); }
.page-kidepo-5-day .kidepo-stay-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.page-kidepo-5-day .kidepo-stay-details h4 { margin: 0 0 8px; color: var(--accent-dark); font-size: .9rem; }
.page-kidepo-5-day .kidepo-stay-details ul { margin: 0; padding-left: 18px; }
.page-kidepo-5-day .kidepo-stay-details li { margin-bottom: 5px; color: var(--luxury-muted); font-size: .88rem; line-height: 1.5; }
.page-kidepo-5-day .kidepo-stay-copy .kidepo-stay-note { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--luxury-gold); font-size: .82rem; }
.page-kidepo-5-day .kidepo-stays__footnote { max-width: 820px; margin: 0; padding-top: 18px; border-top: 1px solid var(--luxury-line); color: var(--luxury-muted); font-size: .82rem; }

.page-kidepo-5-day .itinerary-day {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: 18px 28px;
  align-items: start;
  width: calc(100% - clamp(32px, 3vw, 64px));
  margin: 0 auto;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--luxury-line);
}
.page-kidepo-5-day .itinerary-day .day-image { width: 100%; margin: 0; order: 0; }
.page-kidepo-5-day .itinerary-day .day-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: none;
}
.page-kidepo-5-day .day-content { min-width: 0; }
.page-kidepo-5-day .day-content > * { margin-top: 0; }
.page-kidepo-5-day .day-content > * + * { margin-top: 12px; }
.page-kidepo-5-day .day-content :is(p, ul) { font-size: .96rem !important; line-height: 1.65 !important; }
.page-kidepo-5-day .day-content ul { padding-left: 20px; }
.page-kidepo-5-day .day-meta { color: var(--accent-dark); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-kidepo-5-day .daily-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--luxury-line);
}
.page-kidepo-5-day .daily-snapshot h3 { grid-column: 1 / -1; margin: 0; color: var(--accent-dark); font-size: .9rem !important; line-height: 1.3 !important; }
.page-kidepo-5-day .daily-snapshot p { margin: 0; color: var(--luxury-muted); }
.page-kidepo-5-day .daily-snapshot strong { display: block; color: var(--accent-dark); font-size: .78rem; font-weight: 700; }
.page-kidepo-5-day .kidepo-wildlife-note { grid-column: 2; margin: 0; color: var(--luxury-muted); }

/* Planning and FAQs: open columns and fine separators, without card layers. */
.page-kidepo-5-day .kidepo-planning { margin-top: 26px; border-top: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-planning > section { padding: 24px 0; border-bottom: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-planning__eyebrow { margin: 0 0 8px; color: var(--accent-dark); font-size: .78rem !important; font-weight: 700; text-transform: uppercase; }
.page-kidepo-5-day .kidepo-planning__lead { max-width: 760px; margin: 0; color: var(--luxury-muted); }
.page-kidepo-5-day .kidepo-planning > section:has(.kidepo-price-grid) { display: none; }
.page-kidepo-5-day :is(.kidepo-facts, .kidepo-trust-grid) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.page-kidepo-5-day :is(.kidepo-fact, .kidepo-trust-item) { min-width: 0; }
.page-kidepo-5-day :is(.kidepo-fact, .kidepo-trust-item) strong { display: block; margin-bottom: 6px; color: var(--accent-dark); }
.page-kidepo-5-day :is(.kidepo-fact, .kidepo-trust-item) span { color: var(--luxury-muted); }
.page-kidepo-5-day .kidepo-inclusion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 16px; }
.page-kidepo-5-day .kidepo-inclusion-grid h3 { margin: 0 0 12px; color: var(--accent-dark); font-size: 1.1rem !important; }
.page-kidepo-5-day .kidepo-inclusion-grid ul { margin: 0; padding-left: 20px; }
.page-kidepo-5-day .kidepo-inclusion-grid li { margin-bottom: 8px; }
.page-kidepo-5-day .kidepo-faq details { border-top: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-faq summary { padding: 16px 0; color: var(--accent-dark); font-weight: 700; cursor: pointer; }
.page-kidepo-5-day .kidepo-faq__answer { max-width: 780px; padding-bottom: 18px; color: var(--luxury-muted); }
.page-kidepo-5-day :is(.kidepo-planning, .kidepo-related-planning) a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; }
.page-kidepo-5-day .kidepo-related-planning { padding: 24px 0; border-top: 1px solid var(--luxury-line); }
.page-kidepo-5-day .kidepo-related-planning p:last-child { max-width: 820px; margin: 0; color: var(--luxury-muted); }
.page-kidepo-5-day #inquiry-form { padding: 28px 0; border-top: 1px solid var(--luxury-line); }

/* Retain the shared accessible tab behavior and page-specific open styling. */
.page-kidepo-5-day .itinerary-tab-line {
  justify-content: safe center;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.page-kidepo-5-day .itinerary-tab-button,
.page-kidepo-5-day .itinerary-tab-button:is(:hover, :focus-visible, .is-active) { background: transparent; box-shadow: none; }
.page-kidepo-5-day .itinerary-tab-panel .uganda-route-map { width: 100%; margin: 24px 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

@media (min-width: 981px) {
  .page-kidepo-5-day .itinerary-tabs-shell { width: 100%; max-width: none; margin: 0 0 18px; padding-inline: 24px; }
  .page-kidepo-5-day :is(.itinerary-tab-line, .itinerary-tab-content, .itinerary-tab-panel, .itinerary-tab-panel > .itinerary-stack) { max-width: none; margin-inline: 0; }
  .page-kidepo-5-day :is(#inquiry-form, #kidepo-related-planning) { margin-inline: 24px; }
}
@media (max-width: 768px) {
  .page-kidepo-5-day .hero { min-height: 48vh; padding: 100px 16px 42px; }
  .page-kidepo-5-day .hero-cta { width: auto; max-width: 100%; }
  .page-kidepo-5-day .kidepo-glance__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .page-kidepo-5-day .kidepo-glance__inner > div { padding: 11px 14px; border-bottom: 1px solid var(--luxury-line); }
  .page-kidepo-5-day .kidepo-glance__inner > div:nth-child(even) { border-right: 0; }
  .page-kidepo-5-day .kidepo-glance__inner > div:first-child { border-left: 0; }
  .page-kidepo-5-day .kidepo-glance__inner > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .page-kidepo-5-day .itinerary-day { width: calc(100% - 20px); grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-kidepo-5-day .kidepo-wildlife-note { grid-column: auto; }
  .page-kidepo-5-day :is(.kidepo-stay-option, .kidepo-stay-details, .daily-snapshot, .kidepo-facts, .kidepo-trust-grid, .kidepo-inclusion-grid) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-kidepo-5-day .kidepo-stay-gallery__main img { height: min(64vw, 300px); }
}
@media (max-width: 480px) {
  .page-kidepo-5-day .itinerary-tab-line { padding-inline: 0; scroll-padding-inline: 0; }
  .page-kidepo-5-day .itinerary-tab-button { padding-inline: 2px; }
  .page-kidepo-5-day .itinerary-tab-button::after { right: 2px; left: 2px; }
}
/* Rounded translucent group for the itinerary tabs. */
.page-kidepo-5-day .itinerary-tab-line {
  justify-content: center;
  width: max-content;
  max-width: min(1120px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(244, 239, 229, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(20, 44, 34, 0.08);
}

.page-kidepo-5-day .itinerary-tab-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--luxury-forest-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.page-kidepo-5-day .itinerary-tab-button::after {
  display: none;
}

.page-kidepo-5-day .itinerary-tab-button:hover {
  background: rgba(20, 63, 51, 0.1);
  color: var(--luxury-forest-deep);
}

.page-kidepo-5-day .itinerary-tab-button.is-active {
  background: rgba(20, 63, 51, 0.78);
  color: #fffaf0;
  box-shadow: 0 2px 7px rgba(15, 40, 30, 0.16);
}

.page-kidepo-5-day .itinerary-tab-button:focus-visible {
  outline: 2px solid var(--luxury-gold-deep);
  outline-offset: -3px;
}
