/* ============================================================
   SAFARI DETAIL PAGES  (premium / vip / evening / overnight / morning)
   Built on the theme tokens defined in style.css (:root)
   ============================================================ */

.sf-page { --sf-gap: clamp(2.5rem, 5vw, 4rem); --sf-header-h: 90px; }

/* ---------- Hero extras ---------- */
.sf-hero-night .tb-dest-hero-bg { object-position: 30% 70%; filter: saturate(.85) brightness(.8); }
.sf-hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.sf-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-size: .9rem; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sf-chip i { color: var(--accent); font-size: .85rem; }

/* ---------- Content width ---------- */
.container.sf-container { max-width: 1240px; padding-left: 20px; padding-right: 20px; }

/* ---------- Quick facts bar ---------- */
.sf-facts { position: relative; z-index: 5; margin-top: -52px; }
.sf-facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.sf-fact { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-right: 1px solid var(--border-color); min-width: 0; }
.sf-fact:last-child { border-right: 0; }
.sf-fact-ico {
  flex: 0 0 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .1); color: var(--accent); font-size: 1.1rem;
}
.sf-fact-label { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: 2px; }
.sf-fact-value { display: block; font-weight: 600; color: var(--primary); line-height: 1.25; }

/* ---------- Section jump links ---------- */
.sf-jump { position: sticky; top: var(--sf-header-h); z-index: 20; background: rgba(248, 250, 252, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-color); margin-top: 2.5rem; }
.sf-jump-inner { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0; scrollbar-width: none; }
.sf-jump-inner::-webkit-scrollbar { display: none; }
.sf-jump a {
  flex: 0 0 auto; padding: .45rem 1rem; border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 500; color: var(--text-dark); text-decoration: none; white-space: nowrap;
  transition: var(--transition);
}
.sf-jump a:hover, .sf-jump a:focus-visible { background: var(--primary); color: #fff; }
.sf-jump a.is-active { background: var(--primary); color: #fff; }

/* ---------- Content blocks ---------- */
.sf-main { padding: var(--sf-gap) 0; }
.sf-block { margin-bottom: var(--sf-gap); scroll-margin-top: calc(var(--sf-header-h) + 70px); }
.sf-block:last-child { margin-bottom: 0; }
.sf-h2 { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; margin-bottom: .6rem; }
.sf-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 68ch; margin-bottom: 1.5rem; }
.sf-prose p { color: #475569; font-size: 1.04rem; line-height: 1.8; margin-bottom: 1rem; max-width: 72ch; }
.sf-prose p:last-child { margin-bottom: 0; }

.sf-collage { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 1.75rem; height: clamp(260px, 30vw, 400px); }
.sf-collage figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--primary); }
.sf-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-collage .sf-collage-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.sf-collage figure { min-height: 0; }

/* ---------- Highlights ---------- */
.sf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sf-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 24px; height: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.sf-card:hover { border-color: rgba(var(--accent-rgb), .45); box-shadow: var(--shadow-md); }
.sf-card-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; margin-bottom: 16px; font-size: 1.1rem; }
.sf-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: .45rem; }
.sf-card p { color: var(--text-muted); font-size: .96rem; line-height: 1.65; margin: 0; }

/* ---------- Itinerary timeline ---------- */
.sf-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.sf-timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(var(--accent-rgb), .55) 0 6px, transparent 6px 12px); }
.sf-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-bottom: 28px; }
.sf-step:last-child { padding-bottom: 0; }
.sf-step-dot { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; z-index: 1; font-size: 1rem; font-weight: 700; }
.sf-step-time { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.sf-step h3 { font-size: 1.12rem; font-weight: 600; color: var(--primary); margin-bottom: .3rem; }
.sf-step p { color: var(--text-muted); line-height: 1.7; margin: 0; max-width: 62ch; }

/* ---------- Included / not included ---------- */
.sf-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sf-incl-box { border-radius: var(--radius-lg); padding: 26px; background: #fff; border: 1px solid var(--border-color); }
.sf-incl-box h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.sf-incl-box.yes h3 { color: var(--primary); }
.sf-incl-box.no h3 { color: #64748b; }
.sf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.sf-list li { display: flex; gap: .7rem; align-items: flex-start; color: #475569; line-height: 1.55; }
.sf-list i { margin-top: .28rem; font-size: .85rem; flex: 0 0 auto; }
.sf-incl-box.yes .sf-list i { color: var(--secondary); }
.sf-incl-box.no .sf-list i { color: #94a3b8; }

/* ---------- Packages ---------- */
.sf-pack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.sf-pack-card { position: relative; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; }
.sf-pack-card.is-pop { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.sf-pack-flag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600; padding: .25rem .8rem; border-radius: var(--radius-pill); }
.sf-pack-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: .35rem; }
.sf-pack-card .sf-pack-note { color: var(--text-muted); font-size: .93rem; line-height: 1.55; margin-bottom: 1.1rem; flex: 1; }
.sf-price-row { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.sf-price { font-size: 1.9rem; font-weight: 700; color: var(--primary); line-height: 1; }
.sf-price-row { flex-direction: column; align-items: flex-start; gap: .35rem; }
.sf-price small { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.sf-price-sub { color: var(--text-muted); font-size: .9rem; margin: .4rem 0 1.1rem; }
.sf-fine { color: var(--text-muted); font-size: .88rem; margin-top: 1rem; }

/* ---------- Know before you go ---------- */
.sf-know { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sf-know-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px; }
.sf-know-item i { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 158, 169, .1); color: var(--secondary); }
.sf-know-item h3 { font-size: 1.02rem; font-weight: 600; color: var(--primary); margin-bottom: .25rem; }
.sf-know-item p { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.sf-notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 18px 20px; border-radius: var(--radius-md); background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; line-height: 1.6; }
.sf-notice i { margin-top: .25rem; color: var(--accent); }

/* ---------- FAQ ---------- */
.sf-faq .accordion-item { border: 1px solid var(--border-color); border-radius: var(--radius-md) !important; overflow: hidden; margin-bottom: 12px; background: #fff; }
.sf-faq .accordion-button { font-weight: 600; color: var(--primary); background: #fff; box-shadow: none; padding: 1.1rem 1.25rem; }
.sf-faq .accordion-button:not(.collapsed) { color: var(--accent); background: #fff; }
.sf-faq .accordion-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sf-faq .accordion-body { color: #475569; line-height: 1.75; padding: 0 1.25rem 1.25rem; }

/* ---------- Booking card ---------- */
.sf-aside { position: sticky; top: calc(var(--sf-header-h) + 70px); }
.sf-book { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); overflow: hidden; }
.sf-book-top { background: var(--primary); color: #fff; padding: 24px; }
.sf-book-top small { display: block; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.sf-book-price { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.sf-book-price span { font-size: 1rem; font-weight: 400; color: rgba(255, 255, 255, .75); }
.sf-book-body { padding: 24px; }
.sf-book-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .65rem; }
.sf-book-list li { display: flex; gap: .7rem; color: #475569; font-size: .96rem; line-height: 1.45; }
.sf-book-list i { color: var(--secondary); margin-top: .22rem; font-size: .85rem; }
.sf-btn-wa { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .85rem 1rem; margin-top: .75rem; border-radius: var(--radius-pill); background: #fff; border: 2px solid #25d366; color: #128c4a; font-weight: 600; text-decoration: none; transition: var(--transition); }
.sf-btn-wa:hover, .sf-btn-wa:focus-visible { background: #25d366; color: #fff; }
.sf-book-call { text-align: center; margin-top: 1rem; font-size: .93rem; color: var(--text-muted); }
.sf-book-call a { color: var(--primary); font-weight: 600; text-decoration: none; }
.sf-book .btn-primary { width: 100%; justify-content: center; }

/* ---------- Other safaris ---------- */
.sf-more { background: #fff; padding: var(--sf-gap) 0; }
.sf-more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sf-more-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 4 / 5; background: var(--primary); }
.sf-more-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.sf-more-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 24, 83, .05) 30%, rgba(0, 24, 83, .92) 100%); }
.sf-more-card:hover img, .sf-more-card:focus-visible img { transform: scale(1.06); }
.sf-more-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sf-more-body { position: absolute; inset: auto 0 0 0; padding: 22px; z-index: 1; }
.sf-more-body h3 { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: .3rem; }
.sf-more-body span { font-size: .93rem; color: rgba(255, 255, 255, .85); }
.sf-more-body b { color: var(--accent); font-weight: 600; }

/* ---------- CTA band ---------- */
.sf-cta { padding: var(--sf-gap) 0; }
.sf-cta-box { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(120deg, var(--primary) 0%, #0b3d91 100%); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.sf-cta-box::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(var(--accent-rgb), .22); }
.sf-cta-box > * { position: relative; }
.sf-cta-box > div:first-child { flex: 1 1 420px; }
.sf-cta-box h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: .4rem; color: #fff; }
.sf-cta-box p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 52ch; }
.sf-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.sf-cta-actions .sf-btn-wa { width: auto; margin: 0; padding: .8rem 1.5rem; background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.sf-cta-actions .sf-btn-wa:hover { background: #25d366; border-color: #25d366; }

/* ---------- Mobile sticky booking bar ---------- */
.sf-mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .sf-more-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-more-card { aspect-ratio: 16 / 10; }
}
@media (max-width: 991.98px) {
  .sf-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-fact:nth-child(2) { border-right: 0; }
  .sf-fact:nth-child(-n+2) { border-bottom: 1px solid var(--border-color); }
  .sf-cards { grid-template-columns: repeat(2, 1fr); }
  .sf-pack { grid-template-columns: 1fr; }
  .sf-aside { position: static; margin-top: var(--sf-gap); }
  .sf-mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--border-color); box-shadow: 0 -8px 24px rgba(0, 24, 83, .12);
  }
  .sf-mobile-bar small { display: block; color: var(--text-muted); font-size: .78rem; line-height: 1.1; }
  .sf-mobile-bar strong { color: var(--primary); font-size: 1.2rem; line-height: 1.2; }
  .sf-mobile-bar .btn { padding: .65rem 1.4rem; }
  .sf-page .scroll-to-top { bottom: 92px; right: 16px; }
  .sf-page { padding-bottom: 70px; }
}
@media (max-width: 767.98px) {
  .sf-facts { margin-top: -36px; }
  .sf-fact { padding: 16px; gap: 12px; }
  .sf-fact-ico { flex-basis: 40px; height: 40px; }
  .sf-collage { grid-template-columns: 1fr; height: auto; }
  .sf-collage > figure img { aspect-ratio: 4 / 3; }
  .sf-collage .sf-collage-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .sf-collage .sf-collage-side img { aspect-ratio: 4 / 3; }
  .sf-incl, .sf-know { grid-template-columns: 1fr; }
  .sf-cta-actions { width: 100%; }
  .sf-cta-actions > * { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 575.98px) {
  .sf-cards { grid-template-columns: 1fr; }
  .sf-more-grid { grid-template-columns: 1fr; }
  .sf-more-card { aspect-ratio: 16 / 9; }
  .sf-fact-value { font-size: .95rem; }
  .sf-timeline::before { left: 17px; }
  .sf-step { grid-template-columns: 36px 1fr; gap: 14px; }
  .sf-step-dot { width: 36px; height: 36px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-page *, .sf-page *::before, .sf-page *::after { transition: none !important; animation: none !important; }
  .sf-page .tb-dest-hero-bg { animation: none !important; }
}

/* ---------- Comparison table (private setup / camp / buggy / quad pages) ---------- */
.sf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--border-color); background: #fff; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 24, 83, .05)); }
.sf-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .96rem; }
.sf-table th, .sf-table td { padding: 14px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-color); line-height: 1.45; }
.sf-table thead th { background: var(--primary); color: #fff; font-weight: 600; white-space: nowrap; }
.sf-table thead th:nth-child(2) { background: var(--accent); }
.sf-table tbody th { color: var(--primary); font-weight: 600; background: #f8fafc; white-space: nowrap; }
.sf-table tbody td { color: #475569; }
.sf-table tbody td:nth-child(2) { color: var(--primary); font-weight: 600; background: rgba(var(--accent-rgb), .06); }
.sf-table tbody tr:last-child th, .sf-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 575.98px) {
  .sf-table th, .sf-table td { padding: 12px 14px; font-size: .9rem; }
}

/* ---------- Photo gallery + lightbox ---------- */
.sf-collage img { object-position: 50% 62%; }
.sg-gallery { display: grid; gap: 14px; margin-top: 1.25rem; }
.sg-n2 { grid-template-columns: repeat(2, 1fr); }
.sg-n3 { grid-template-columns: repeat(3, 1fr); }
.sg-n4 { grid-template-columns: repeat(2, 1fr); }
.sg-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--primary); aspect-ratio: 3 / 4; }
.sg-n2 .sg-item { aspect-ratio: 4 / 5; }
.sg-n4 .sg-item { aspect-ratio: 1 / 1; }
.sg-item a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.sg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.sg-item a::after { content: "\f00e"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; font-weight: 900; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 24, 83, .72); color: #fff; font-size: .85rem; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.sg-item a:hover img, .sg-item a:focus-visible img { transform: scale(1.06); }
.sg-item a:hover::after, .sg-item a:focus-visible::after { opacity: 1; transform: none; }
.sg-item a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 575.98px) {
  .sg-gallery { gap: 10px; }
  .sg-n3 { grid-template-columns: repeat(2, 1fr); }
  .sg-n3 .sg-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
  .sg-n3 .sg-item:not(:first-child) { aspect-ratio: 3 / 4; }
  .sg-item a::after { opacity: 1; transform: none; width: 32px; height: 32px; }
}

.sg-lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(0, 10, 36, .94); padding: calc(env(safe-area-inset-top, 0px) + 56px) 16px calc(env(safe-area-inset-bottom, 0px) + 64px); }
.sg-lb.is-open { display: flex; }
.sg-lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sg-lb-img { max-width: min(92vw, 980px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); object-fit: contain; }
.sg-lb-cap { color: rgba(255, 255, 255, .85); font-size: .95rem; text-align: center; max-width: 70ch; line-height: 1.5; }
.sg-lb-btn { position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1rem; cursor: pointer; transition: background .2s; }
.sg-lb-btn:hover, .sg-lb-btn:focus-visible { background: var(--accent); outline: none; }
.sg-lb-close { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 14px; }
.sg-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.sg-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.sg-lb-count { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 22px); left: 18px; color: rgba(255, 255, 255, .75); font-size: .9rem; }
@media (max-width: 575.98px) {
  .sg-lb-prev, .sg-lb-next { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); transform: none; }
  .sg-lb-prev { left: calc(50% - 56px); }
  .sg-lb-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) { .sg-item img, .sg-item a::after { transition: none; } }
