/*
 * style-enhancements.css — v4
 * Builds on the safe base (colours, transitions, hover lift) and adds:
 *   - Widget card treatment
 *   - Gradient overlay on portfolio cards
 *   - Accordion header colour (colour only, not display/height)
 *   - Scroll-reveal on safe layout sections only
 *   - At-a-glance SVG hover
 *   - Blockquote accent
 *   - Portfolio scroll strip (tablet portrait + mobile, ≤767px)
 *
 * NEVER touches: display, height, overflow, visibility, padding on
 * JS-controlled elements (accordion-content, tab-content, widget tabs,
 * .stars, .flexslider internals, isotope items).
 */

/* ─── Design tokens ──────────────────────────────────────────────────────── */

:root {
  --accent:      #c17d3c;
  --accent-dark: #8a5520;
  --ink:         #2a2118;
  --ink-mid:     #6b5f55;
  --surface:     #faf8f5;
  --white:       #ffffff;
  --border:      #e8e0d6;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm:   0 2px 8px  rgba(42,33,24,0.08);
  --shadow-md:   0 6px 20px rgba(42,33,24,0.11);
  --shadow-lg:   0 16px 48px rgba(42,33,24,0.18);
}

/* ─── Smooth scroll ──────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }


/* ─── Header scroll shadow ───────────────────────────────────────────────── */

.header-top-inner {
  transition: box-shadow 0.3s var(--ease);
}
.header-top-inner.scrolled {
  box-shadow: 0 2px 16px rgba(42,33,24,0.13);
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */

.main-navigation ul > li a {
  transition: color 0.2s var(--ease);
}
.main-navigation ul > li a:hover,
.main-navigation li.current a {
  color: var(--accent);
}

/* ─── Accent on meta text ────────────────────────────────────────────────── */

.single-project .client-name {
  color: var(--accent);
}

/* ─── Blockquote ─────────────────────────────────────────────────────────── */

blockquote {
  border-left-color: var(--accent);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

a.back-btn,
a.previous-btn,
a.next-btn,
a.read-more-btn {
  transition: background 0.22s var(--ease),
              transform  0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

a.back-btn           { background: var(--accent); }
a.back-btn:hover     { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
a.previous-btn:hover,
a.next-btn:hover     { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
a.read-more-btn:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

#submit {
  background-color: var(--accent) !important;
  color: #fff !important;
  transition: background 0.22s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
#submit:hover {
  background-color: var(--accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}





/* ─── Accordion header colour only ──────────────────────────────────────── */
/* JS controls display/height — we only recolour */

.accordion-header {
  background: var(--ink);
  transition: background 0.2s var(--ease);
}
.active-header {
  background: var(--accent) !important;
}
.inactive-header {
  background: #ede8e2;
  color: var(--ink);
}
.inactive-header:hover {
  background: var(--ink);
  color: #fff;
}

/* ─── Tab colour only ────────────────────────────────────────────────────── */
/* JS controls active state — we only add warm colours */

ul.tabs li {
  background: #ede8e2;
  color: var(--ink-mid);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
ul.tabs li:hover {
  background: var(--ink);
  color: #fff;
}
ul.tabs li.active {
  background: var(--accent);
  color: #fff;
}

/* ─── Portfolio cards — hover lift + gradient overlay ────────────────────── */

.project-item {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.project-item img {
  transition: transform 0.4s var(--ease);
}
.project-item:hover img {
  transform: scale(1.04);
}

/* Gradient overlay — bottom-up fade instead of flat black */
.project-image:hover .overlay,
.project-image-always-show-overlay .overlay {
  background: linear-gradient(
    to top,
    rgba(42,33,24,0.92) 0%,
    rgba(42,33,24,0.35) 55%,
    transparent 100%
  ) !important;
}

/* ─── At-a-glance items ──────────────────────────────────────────────────── */

.at-a-glance-item {
  border-radius: 8px;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.at-a-glance-item:hover {
  transform: translateY(-3px);
}
.at-a-glance-item svg {
  transition: transform 0.25s var(--ease);
}
.at-a-glance-item:hover svg {
  transform: scale(1.08);
}

/* ─── Author bio card ────────────────────────────────────────────────────── */
/* Soften the border colour only — original padding kept as-is */

.author-bio {
  border-color: var(--border);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

#footer-global[role="contentinfo"] {
  background-color: var(--ink);
  border-top-color: var(--accent);
}

/* ─── Link hovers ────────────────────────────────────────────────────────── */

.on-page-links li a,
#copyright-details a {
  transition: color 0.18s var(--ease);
}
.on-page-links li a:hover,
#copyright-details a:hover {
  color: var(--accent);
}

/* ─── HR ─────────────────────────────────────────────────────────────────── */

hr { border-color: var(--border); }

/* ─── Content links ──────────────────────────────────────────────────────── */
/* Scoped to body content areas — does not affect nav, buttons, or footer */

.project-description p a,
.project-description li a,
.accordion-content p a,
.widget p a,
.author-bio p a,
.homepage-section-intro p a,
.section-best-time p a,
.section-best-time li a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(193, 125, 60, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.project-description p a:hover,
.project-description li a:hover,
.accordion-content p a:hover,
.widget p a:hover,
.author-bio p a:hover,
.homepage-section-intro p a:hover,
.section-best-time p a:hover,
.section-best-time li a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

/* ─── Scroll-reveal ──────────────────────────────────────────────────────── */
/*
 * Applied by enhancements.js via IntersectionObserver.
 * Selector list in JS is narrow and explicit — see enhancements.js.
 * The .reveal class is ONLY added to elements in that safe list.
 */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Safari route map section ───────────────────────────────────────────── */

/* btv section now sits inside the container above the map, providing its own
   visual end. Remove container's bottom padding to close the gap to "Other packages". */
section.content-accommodation {
  padding-bottom: 0;
}

section.safari-route-map {
  background-color: #f4f4f4;
  padding: 25px 0 0 0;
}
section.safari-route-map h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
}

/* Reduce map iframe height on tablet landscape */
@media (min-width: 980px) and (max-height: 800px) {
  section.safari-route-map > div:last-child {
    height: 480px !important;
  }
}

/* ─── "Other packages" horizontal scroll strip (tablet portrait + mobile) ── */
/* Replaces the stacked vertical tiles with a swipeable horizontal strip.
   The next tile peeks in from the right to signal scrollability.
   Desktop (≥768px) is unaffected. */

@media only screen and (max-width: 767px) {
  /* Scroll strip built by enhancements.js — completely independent of Isotope */
  .package-scroll-strip {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    /* Side padding lets first/last tiles center properly */
    padding: 0 calc(50% - 43.5%) 16px;
    box-sizing: border-box;
    cursor: grab;
    align-items: center;
  }

  .package-scroll-strip.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }

  .package-scroll-strip::-webkit-scrollbar {
    display: none;
  }
  .package-scroll-strip {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Card base — slightly scaled down and dimmed */
  .package-scroll-card {
    flex: 0 0 87%;
    scroll-snap-align: center;
    margin: 0;
    transform: scale(0.9);
    opacity: 0.5;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
  }

  /* Active card — full size, visible, lifted */
  .package-scroll-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 8px 30px rgba(42,33,24,0.22);
  }

  .package-scroll-card .project-image {
    position: relative;
    overflow: hidden;
  }

  .package-scroll-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Overlay — full coverage, text centered, matching desktop style */
  .package-scroll-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42,33,24,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 1;
    filter: none;
  }

  .package-scroll-card .overlay .details {
    margin-top: 0;
  }

  .package-scroll-card .overlay h2 {
    font-family: 'filosofia', sans-serif;
    font-size: 17px;
    color: #fff;
    margin: 0 0 0 0;
    line-height: 1.3;
    border: none;
  }

  .package-scroll-card .overlay p {
    font-family: 'filosofia', serif;
    font-style: italic;
    font-weight: normal;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-transform: lowercase;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 8px;
    margin: 8px 0 0 0;
    line-height: 1.4;
  }

  .package-scroll-card .overlay p span {
    font-family: 'museo-sans', sans-serif;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 2px;
  }

  /* Prevent text selection during drag */
  .package-scroll-strip.dragging * {
    user-select: none;
    -webkit-user-select: none;
  }

  /* Wrapper for arrow positioning */
  .package-scroll-wrapper {
    position: relative;
  }

  /* Arrow hint indicators */
  .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(255,255,255,0.85);
    background: rgba(42,33,24,0.4);
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.3s ease;
  }

  .scroll-arrow-left {
    left: 8px;
  }

  .scroll-arrow-right {
    right: 8px;
  }

  .scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   BEST TIME TO VISIT — shared styles
   Append this block to style-enhancements.css (once, for all itinerary pages).
   The HTML snippet on each page uses these classes — only the content changes.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Section wrapper ──
   PLACEMENT: in a new .row > .sixteen.columns block, AFTER </aside> sidebar closes
   and BEFORE </div><!-- end .container -->. This puts it full-width below both
   the main content column and the sidebar, eliminating the sidebar gap problem.
*/

.section-best-time {
  clear: both;                 /* clears the floated main + sidebar columns above */
  width: 100%;
  margin: 0;
  padding: 24px 10px 32px;
  box-sizing: border-box;
}

/* Inherit the page's existing h2 style — no colour override, no font override.
   The page h2 already uses filosofia and the correct colour. */
.section-best-time h2 {
  margin: 0 0 6px;
}

/* Match the page's standard paragraph style exactly.
   display:block + width:100% ensures it spans the full sixteen-column row. */
.section-best-time .btv-intro {
  display: block;
  width: 100%;
  font-family: 'museo-sans', sans-serif;
  font-size: 1em;
  color: #646464;
  margin: 0 0 24px;
  line-height: 1.7;
}

/* ── Month bar grid ── */

.btv-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-bottom: 24px;
  min-width: 0;
}

.btv-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.btv-month-label {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.btv-month-bar {
  width: 100%;
  height: 36px;
  border-radius: 5px;
  position: relative;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  cursor: default;
  /* grow-in: start collapsed, JS adds .btv-animated to trigger */
  transform-origin: bottom center;
  transform: scaleY(0);
  opacity: 0;
}

.btv-month-bar:hover {
  transform: scaleY(1.08);
  box-shadow: var(--shadow-sm);
}

/* Bars animate in when .btv-animated is added by JS */
.btv-month-bar.btv-animated {
  transform: scaleY(1);
  opacity: 1;
  transition:
    transform 0.5s var(--ease),
    opacity   0.3s var(--ease),
    box-shadow 0.18s var(--ease); /* keep hover shadow transition */
}

.btv-month-bar.btv-animated:hover {
  transform: scaleY(1.08);
  box-shadow: var(--shadow-sm);
}

/* Rating colours — subtle top-to-bottom gradient for depth */
.btv-peak     { background: linear-gradient(to bottom, #d08f50, #b06e2a); }
.btv-good     { background: linear-gradient(to bottom, #e8b070, #cc9050); }
.btv-shoulder { background: linear-gradient(to bottom, #f0d4a8, #ddb880); }
.btv-low      { background: linear-gradient(to bottom, #f5e4c8, #e0c898); }

/* ── Season card entrance animation ── */
.btv-season-card {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   0.5s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.2s var(--ease); /* keep hover transition */
}

.btv-season-card.btv-card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tooltip on hover (content set via data-tip attribute in HTML) */
.btv-month-bar::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 0.72em;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.btv-month-bar:hover::after { opacity: 1; }

/* ── Legend ── */

.btv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btv-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8em;
  color: var(--ink-mid);
  font-weight: 600;
}

.btv-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Season cards grid ── */

.btv-seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.btv-season-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.btv-season-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.btv-season-card .btv-season-indicator {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  margin-bottom: 13px;
}

.btv-season-card h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin: 0 0 3px;
  /* no colour override — inherits page h3 colour */
}

.btv-season-card .btv-season-dates {
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin: 0 0 12px;
}

.btv-season-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875em;
  line-height: 1.65;
  color: var(--ink-mid);
}

.btv-season-card ul li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.btv-season-card ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Optional callout panel (use for destination-specific notes) ── */

.btv-callout {
  background: #fff7ee;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 13px 16px;
  margin-top: 20px;
  font-size: 0.875em;
  color: var(--ink-mid);
  line-height: 1.65;
}

.btv-callout strong {
  color: var(--ink);
}

/* ── Responsive ── */

@media (max-width: 700px) {
  .btv-month-label { font-size: 0.6em; }
  .btv-month-bar   { height: 28px; }
  .btv-seasons     { grid-template-columns: 1fr 1fr; }
  .btv-month-bar::after { display: none; } /* tooltips hidden on mobile — hover not available and white-space:nowrap causes overflow */
}

@media (max-width: 480px) {
  .btv-seasons { grid-template-columns: 1fr; }
  .btv-months  { gap: 3px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SAFARI PACKAGE SECONDARY NAV
   Sticky bottom bar with drawer on mobile, inline links on desktop.
   Breakpoint: ≤900px = mobile/portrait-tablet version
═══════════════════════════════════════════════════════════════════════════ */

/* ── Bar ── */

#safari-subnav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  font-family: 'museo-sans', sans-serif;
  /* Hide/show transition when footer reached */
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#safari-subnav.subnav-hidden {
  transform: translateY(100%);
}

.subnav-bar {
  background: #2a2118;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px); /* iPhone home indicator */
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
}

/* ── Desktop inline links ── */

.subnav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subnav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.18s var(--ease);
  white-space: nowrap;
}

.subnav-links a:hover {
  color: #ffffff;
}

/* ── CTA button ── */

.subnav-cta {
  display: inline-block;
  background: #e8820c;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
  flex-shrink: 0;
}

.subnav-cta:hover {
  background: #d07000;
  transform: translateY(-1px);
}

/* ── Right side group (CTA + back to top) ── */
.subnav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Mobile toggle (hamburger) ── */

.subnav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #ffffff;
}

.subnav-toggle-label {
  font-family: 'museo-sans', sans-serif;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.subnav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.subnav-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* Hamburger → X when open */
.subnav-toggle[aria-expanded="true"] .subnav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.subnav-toggle[aria-expanded="true"] .subnav-hamburger span:nth-child(2) {
  opacity: 0;
}
.subnav-toggle[aria-expanded="true"] .subnav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ── */

.subnav-drawer {
  background: #332820;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.25s var(--ease);
}

.subnav-drawer.subnav-drawer-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.subnav-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.1em;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.subnav-close:hover {
  color: #ffffff;
}

.subnav-drawer-links {
  list-style: none;
  margin: 0;
  padding: 16px 0 20px;
}

.subnav-drawer-links li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.subnav-drawer-links li:last-child {
  border-bottom: none;
}

.subnav-drawer-links a {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.15s, background 0.15s;
}

.subnav-drawer-links a:hover,
.subnav-drawer-links a.subnav-active {
  color: #e8820c;
  background: rgba(232,130,12,0.06);
}

/* ── Responsive — mobile/portrait-tablet ≤900px ── */

@media (max-width: 900px) {
  .subnav-links  { display: none; }
  .subnav-toggle { display: flex; }
  .subnav-right  { gap: 8px; }
}

@media (max-width: 480px) {
  .subnav-cta {
    font-size: 0.68em;
    padding: 8px 14px;
  }
}

@media (min-width: 901px) {
  .subnav-drawer { display: none; }
  .subnav-right  { gap: 16px; }
}



/* ── Back to top button ── */

.subnav-totop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  align-self: center;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.subnav-totop:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

/* Pure CSS upward chevron — absolutely centred */
.subnav-totop {
  position: relative; /* needed for ::before absolute positioning */
}
.subnav-totop::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255,255,255,0.7);
  border-right: 2px solid rgba(255,255,255,0.7);
  transform: translate(-50%, -30%) rotate(-45deg);
  transition: border-color 0.18s var(--ease);
}

.subnav-totop:hover::before {
  border-color: #ffffff;
}

/* ── Main nav spacing adjustment — accommodates Safari packages item ── */
.main-navigation {
  margin-left: -16px; /* shifts nav left, using gap between logo and nav */
}

.main-navigation ul > li {
  margin-right: 6px;
}

.main-navigation ul > li a {
  padding: 10px 9px;
  letter-spacing: 0.01rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SAFARI PACKAGES INDEX PAGE
   Patches for classes present in masaimara.com/style.css but absent from
   moremi.com/style.css. These rules restore the card-grid section layout.
═══════════════════════════════════════════════════════════════════════════ */

/* Section wrapper for the filter bar + card grid.
   In moremi's style.css, .content provides padding: 90px 0 (top + bottom).
   The index page splits into two sections: .content (intro, top padding only)
   and .content-general-info (cards, bottom padding only). Without this rule
   the card section has no background, no spacing, and floats into the footer. */

.content-general-info {
  background-color: #f4f4f4;
  padding: 0 0 90px 0;
  z-index: 300;
  position: relative;
}

/* Override .content bottom padding on pages that use .content-general-info
   below (i.e. the packages index page). moremi's base style.css gives
   .content { padding: 90px 0 } (top + bottom), but on the index page the
   card grid section handles its own spacing. Add class "content-intro-only"
   to the .content section on any page that uses this split layout. */

section.content.content-intro-only {
  padding-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DUAL-HANDLE RANGE SLIDERS — price + duration filter
   Replaces the Isotope button filter on the packages index page.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Container: two sliders side by side on desktop ── */

.filter-sliders {
  display: flex;
  gap: 48px;
  padding: 4px 0 24px;
  align-items: flex-start;
}

.filter-slider-group {
  flex: 1;
  min-width: 0;
}

.filter-slider-label {
  font-family: 'museo-sans', sans-serif;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 16px;
}

/* ── Track ── */

.range-slider {
  position: relative;
  padding: 10px 0;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.range-track {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

/* ── Fill (selected range) ── */

.range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: background 0.15s;
}

.range-slider.is-dragging .range-fill {
  background: var(--accent-dark);
}

/* ── Handles ── */

.range-handle {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: transform 0.15s var(--ease),
              border-color 0.15s var(--ease),
              box-shadow 0.15s var(--ease);
  z-index: 2;
  outline: none;
}

.range-handle:hover {
  transform: scale(1.15);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.range-handle:focus-visible {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(193, 125, 60, 0.25);
}

.range-slider.is-dragging .range-handle {
  cursor: grabbing;
}

.range-slider.is-dragging .range-handle[data-handle] {
  transition: none;
}

/* ── Value labels ── */

.range-values {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: 'museo-sans', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ── Empty state ── */

.filter-empty-state {
  text-align: center;
  padding: 48px 20px;
}

.filter-empty-state p {
  font-family: 'museo-sans', sans-serif;
  font-size: 1em;
  color: var(--ink-mid);
  margin: 0;
}

.filter-empty-state a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(193, 125, 60, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.filter-empty-state a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

/* ── Responsive: stack sliders on mobile ── */

@media only screen and (max-width: 767px) {
  .filter-sliders {
    flex-direction: column;
    gap: 24px;
  }

  .filter-slider-group {
    width: 100%;
  }

  .range-handle {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
  }
}
