/*
Theme Name: Sahara Fossils
Theme URI: https://example.com/
Author: Sahara Fossils
Author URI: https://example.com/
Description: Custom theme for Sahara Fossils website and Tours CPT.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sahara-fossils
*/

/* Fonts — Barlow Condensed (headings / display) */
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/Barlow_Condensed/BarlowCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/Barlow_Condensed/BarlowCondensed-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/Barlow_Condensed/BarlowCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/Barlow_Condensed/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/Barlow_Condensed/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/Barlow_Condensed/BarlowCondensed-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/Barlow_Condensed/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/Barlow_Condensed/BarlowCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("assets/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf") format("truetype"),
    local("Open Sans"),
    local("OpenSans");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("assets/fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype"),
    local("Open Sans Italic"),
    local("OpenSans-Italic");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Kamkam Dunes–aligned desert palette (legacy --sf-* names preserved for existing rules) */
  --sf-paper: #f2ead8;
  --paper: var(--sf-paper);
  --sf-linen: #e8dcc8;
  --sf-clay: #b87340;
  --sf-rust: #8c4a20;
  --sf-charcoal: #1e1610;
  --sf-ash: #5c4a38;
  --sf-gold: #d4952a;
  --sf-cream: #faf6ee;
  --sf-dark: #120d08;

  /* Shared UI (maps old neutrals / yellow accents to one system) */
  --sf-border-warm: rgba(140, 74, 32, 0.22);
  --sf-border-soft: rgba(140, 74, 32, 0.14);
  --sf-gold-soft: rgba(212, 149, 42, 0.14);
  --sf-gold-mid: rgba(212, 149, 42, 0.25);
  --sf-gold-ring: rgba(212, 149, 42, 0.35);
  --sf-gold-wash: rgba(212, 149, 42, 0.18);
  --sf-notice-bg: #faf4eb;

  --sf-yellow-light-pastel: #ede4d4;
  --sf-yellow-darker-pastel: #e8dcc8;
  --sf-yellow: #d4952a;
  --sf-brown-effect: #4a3428;
  --sf-brown-dark: #8c4a20;
  --sf-brown-light: #b87340;
  --sf-orange-light-bg: #f2ead8;
  --sf-header-green: #120d08;

  /* Primary CTA (flat orange — also default button fill) */
  --sf-cta-orange: #e65f05;
  --sf-cta-radius: 8px;

  /* Shared “Place order” button chrome — colors via --sf-btn-bg / --sf-btn-color on a parent */
  --sf-btn-radius: 12px;
  --sf-btn-padding: 1.05rem 1.5rem;
  --sf-btn-font-size: 0.72rem;
  --sf-btn-font-weight: 600;
  --sf-btn-letter-spacing: 0.2em;
  --sf-btn-text-transform: uppercase;
  --sf-btn-transition: filter 0.2s ease, transform 0.2s ease;
  --sf-btn-bg: var(--sf-cta-orange);
  --sf-btn-color: #fff;
  --sf-btn-bg-hover: var(--sf-cta-orange);
  --sf-btn-focus-outline: rgba(255, 255, 255, 0.85);

  /* Section headings (shared across home + archives) */
  --sf-section-title-fs: clamp(28px, 3.25vw, 44px);

  --sf-text: #1e1610;
  --sf-container: min(1200px, 92%);

  /* Typography */
  --sf-font-heading: "Barlow Condensed", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sf-font-body: "DM Sans", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base resets */
html, body { margin: 0; padding: 0; }
html {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
body {
  font-family: var(--sf-font-body);
  font-weight: 300;
  color: var(--sf-text);
  background: var(--sf-orange-light-bg);
}

/* Subtle film grain (Kamkam Dunes landing) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* Heading hierarchy (global) – strong size steps; top levels bold for Barlow Condensed */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sf-font-heading);
  line-height: 1.25;
  color: var(--sf-text);
  margin: 0 0 0.5em;
}
h1, h2, h3 {
  font-weight: 700;
}
h4, h5, h6 {
  font-weight: 600;
}
h1 { font-size: clamp(42px, 7vw, 64px); letter-spacing: 0.02em; }
h2 { font-size: clamp(32px, 4.5vw, 42px); letter-spacing: 0.02em; margin-top: 1.25em; }
h3 { font-size: clamp(26px, 3.2vw, 30px); letter-spacing: 0.01em; margin-top: 1em; }
h4 { font-size: clamp(24px, 2.8vw, 28px); margin-top: 0.9em; }
h5 { font-size: 22px; margin-top: 0.75em; }
h6 { font-size: 18px; margin-top: 0.6em; opacity: 0.92; }
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child { margin-top: 0; }

a { color: inherit; }
a, button, .btn, input[type="button"], input[type="submit"], .menu-toggle, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }

/* Touch: avoid sticky hover and blue tap – only apply hover when device supports it */
@media (hover: none) {
  a:hover, button:hover, .btn:hover, .hero__cta:hover, .menu-toggle:hover,
  .sf-sticky-cta__btn:hover, .sf-stay-nav__link:hover,
  .review-card__more:hover, .slider-nav__btn:hover, .sf-stepper__btn:hover,
  .tour-itinerary__toggle:hover, .nav-close:hover,
  .blog-card:hover, .period-card:hover, .tour-stay__option:hover,
  .sf-field--addons .sf-addon:hover {
    transform: none;
    filter: none;
    box-shadow: inherit;
    background: inherit;
    opacity: inherit;
    text-decoration: inherit;
  }
  nav.primary-nav .menu a:hover { background: transparent; }
  nav.primary-nav .menu .sub-menu a:hover { background: transparent; }
}

/* Make tour pages full-bleed cream (avoid white gutters outside the container) */
body.single-tour{ background: var(--sf-orange-light-bg); }

/* Helpers */
.container { width: var(--sf-container); margin-left: auto; margin-right: auto; }
.section-title {
  font-family: var(--sf-font-heading);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.4em;
  font-size: var(--sf-section-title-fs);
  text-align: center;
}
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--sf-yellow-light-pastel); font-size: 12px; margin-right: 6px; }
.price { font-weight: 900; font-family: var(--sf-font-heading); }

/* Header */
header.site-header { padding: 12px 0; background: var(--sf-header-green); color: #fff; position: sticky; top: 0; z-index: 1000; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-title { font-weight: 700; font-size: 20px; margin: 0; color:#fff; text-decoration:none; }
.site-brand{ text-decoration: none; color: inherit; }
.site-brand__img{
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
}
@media (min-width: 1281px){
  .site-brand__img{
    max-height: 64px;
  }
}
.site-brand__name{
  display: block;
  max-width: 220px;
  font-family: var(--sf-font-heading);
  font-weight: 700;
  font-size: clamp(14px, 2.6vw, 18px);
  line-height: 1.15;
  color: inherit;
  letter-spacing: 0.02em;
}
.menu-toggle { display:none; background:none; color:#fff; border:0; font-size:28px; line-height:1; }
nav.primary-nav a { color:#fff; text-decoration: none; }
nav.primary-nav ul { list-style:none; margin:0; padding:0; display:flex; gap:16px; align-items:center; }
nav.primary-nav{ display:block; }
@media (max-width: 1280px){ nav.primary-nav{ display:none; } }

/* Transparent header over the home hero only (other pages: solid sticky header) */
body.home header.site-header,
body.front-page header.site-header{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
}
body.home .site-header__inner,
body.front-page .site-header__inner{
  background: transparent;
}

body.home .burger,
body.front-page .burger{
  color: #000;
}

/* Single tours: transparent header over hero only when primary nav is hidden (≤1280px) */
@media (max-width: 1280px){
  body.single-tour header.site-header{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: transparent;
  }
  body.single-tour .site-header__inner{
    background: transparent;
  }
}
/* Single tours: solid sticky header on desktop (must not inherit home/tour overlay) */
@media (min-width: 1281px){
  body.single-tour header.site-header{
    position: sticky;
    left: auto;
    right: auto;
    top: 0;
    background: var(--sf-header-green);
  }
  body.single-tour .site-header__inner{
    background: transparent;
  }
}

/* Primary nav styling */
nav.primary-nav .menu a{ color:#fff; text-decoration:none; font-weight:500; font-family: var(--sf-font-body); }
nav.primary-nav .menu li{ list-style:none; }
@media (min-width: 1281px){
  nav.primary-nav .menu{ display:flex; gap:16px; align-items:center; margin:0; padding:0; }
  nav.primary-nav .menu .menu-item-has-children{ position:relative; }
  nav.primary-nav .menu .menu-item-has-children > a{
    position: relative;
    padding-right:20px;
  }
  nav.primary-nav .menu .menu-item-has-children > a::after{
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    margin-top: -3px;
    border: 5px solid transparent;
    border-top-color: currentColor;
    border-bottom: none;
  }
  nav.primary-nav .menu .sub-menu{
    position:absolute; top:100%; left:0; min-width:220px;
    padding:6px 0; margin-top:6px;
    background: var(--sf-dark); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.35);
    display:none; flex-direction:column; gap:0;
    list-style:none; margin:0;
  }
  nav.primary-nav .menu .menu-item-has-children:hover .sub-menu{ display:flex; }
  nav.primary-nav .menu .sub-menu li{ margin:0; list-style:none; border:none; }
  nav.primary-nav .menu .sub-menu a{
    display:block; padding:12px 18px; white-space:nowrap;
    color:#fff; text-decoration:none; font-weight:600;
    line-height:1.3; font-family: var(--sf-font-body);
    -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
    border:none; background:transparent;
  }
  nav.primary-nav .menu .sub-menu a:hover{ background:rgba(255,255,255,.1); }
}

/* Mobile nav enhanced styles (burger menu) */
@media (max-width: 1280px){
  nav.primary-nav{ border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
  nav.primary-nav .menu{ margin:0; padding:0; }
  nav.primary-nav .menu li + li a{ border-top:1px solid rgba(255,255,255,.08); }
  nav.primary-nav .menu a{ font-family: var(--sf-font-body); letter-spacing:.3px; }
  .nav-close{ position:absolute; top:14px; right:14px; background:transparent; border:0; color:#fff; font-size:28px; line-height:1; cursor:pointer; padding:6px; border-radius:8px; }
  .nav-close:focus-visible{ outline:2px dashed var(--sf-yellow); outline-offset:2px; }
}

/* Burger: SVG Repo three-bar icon + matching X when open */
.burger{
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
}
.burger__icon{
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.burger__icon--close{
  display: none;
}
.burger.is-open .burger__icon--menu{
  display: none;
}
.burger.is-open .burger__icon--close{
  display: block;
}

/* Mobile nav panel and backdrop */
@media (max-width: 1280px){
  .burger{ display:block; }
  nav.primary-nav{ position:fixed; top:0; right:0; bottom:0; width:70%; max-width:360px; background: var(--sf-header-green); padding:80px 24px 24px; display:none; box-shadow: -8px 0 24px rgba(0,0,0,.3); }
  nav.primary-nav.is-open{ display:block; }
  nav.primary-nav ul{ display:block; }
  nav.primary-nav a{ display:block; padding:14px 0; font-size:18px; }
  .nav-backdrop{ position:fixed; inset:0; background: rgba(0,0,0,.35); display:block; }
  .nav-backdrop[hidden]{ display:none; }
}

/* Primary CTAs — same chrome as checkout “Place order”; colors from --sf-btn-* (see :root) */
.btn,
.hero__cta,
button[type="submit"].btn,
input[type="submit"].btn,
input[type="button"].btn,
button.btn,
.wp-block-button__link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-btn-bg);
  color: var(--sf-btn-color);
  text-decoration: none;
  padding: var(--sf-btn-padding);
  border-radius: var(--sf-btn-radius);
  border: 0;
  font-family: var(--sf-font-body);
  font-size: var(--sf-btn-font-size);
  font-weight: var(--sf-btn-font-weight);
  letter-spacing: var(--sf-btn-letter-spacing);
  text-transform: var(--sf-btn-text-transform);
  line-height: 1.3;
  text-align: center;
  box-shadow: none;
  transition: var(--sf-btn-transition);
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.btn:hover,
.hero__cta:hover,
button[type="submit"].btn:hover,
input[type="submit"].btn:hover,
input[type="button"].btn:hover,
button.btn:hover,
.wp-block-button__link:hover,
.button:hover {
  background: var(--sf-btn-bg-hover);
  color: var(--sf-btn-color);
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn:active,
.hero__cta:active,
button[type="submit"].btn:active,
input[type="submit"].btn:active,
input[type="button"].btn:active,
button.btn:active,
.wp-block-button__link:active,
.button:active {
  transform: translateY(0);
  box-shadow: none;
  filter: brightness(0.96);
}
.btn:focus-visible,
.hero__cta:focus-visible,
button[type="submit"].btn:focus-visible,
input[type="submit"].btn:focus-visible,
input[type="button"].btn:focus-visible,
button.btn:focus-visible,
.wp-block-button__link:focus-visible,
.button:focus-visible {
  outline: 2px dashed var(--sf-btn-focus-outline);
  outline-offset: 3px;
}

/* Solid variant — same tokens (overrides legacy orange-only rules) */
.btn.btn--solid{
  background: var(--sf-btn-bg) !important;
  color: var(--sf-btn-color) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: var(--sf-btn-padding) !important;
  font-size: var(--sf-btn-font-size) !important;
  font-weight: var(--sf-btn-font-weight) !important;
  letter-spacing: var(--sf-btn-letter-spacing) !important;
  text-transform: var(--sf-btn-text-transform) !important;
  border-radius: var(--sf-btn-radius) !important;
  line-height: 1.3 !important;
  transition: var(--sf-btn-transition) !important;
}
.btn.btn--solid:hover{
  background: var(--sf-btn-bg-hover) !important;
  color: var(--sf-btn-color) !important;
  filter: brightness(1.05) !important;
  transform: translateY(-1px) !important;
}
.btn.btn--solid:active{
  box-shadow: none !important;
  filter: brightness(0.96) !important;
  transform: translateY(0) !important;
}

/* Sticky / booking: default orange pill (inherits :root --sf-btn-*) */
.sf-sticky-cta .btn.btn--solid,
.sf-booking-bar .btn.btn--solid{
  --sf-btn-bg: var(--sf-cta-orange);
  --sf-btn-color: #fff;
  --sf-btn-bg-hover: var(--sf-cta-orange);
  --sf-btn-focus-outline: rgba(255, 255, 255, 0.85);
}

/* Single tour/stay hero: light pill on dark (chrome unchanged; only colors) */
.sf-stay-hero__copy,
.sf-stay-hero-desktop__info{
  --sf-btn-bg: #fff;
  --sf-btn-color: var(--sf-charcoal);
  --sf-btn-bg-hover: var(--sf-cream);
  --sf-btn-focus-outline: var(--sf-charcoal);
}

/* WooCommerce (cart, account, etc.): same pill chrome; .alt uses default --sf-btn-* */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: var(--sf-btn-radius) !important;
  padding: var(--sf-btn-padding) !important;
  font-family: var(--sf-font-body) !important;
  font-size: var(--sf-btn-font-size) !important;
  font-weight: var(--sf-btn-font-weight) !important;
  letter-spacing: var(--sf-btn-letter-spacing) !important;
  text-transform: var(--sf-btn-text-transform) !important;
  line-height: 1.3 !important;
  transition: var(--sf-btn-transition) !important;
  box-shadow: none !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: var(--sf-btn-bg) !important;
  color: var(--sf-btn-color) !important;
  border: 0 !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: var(--sf-btn-color) !important;
}

/* Hero */
.hero { position: relative; min-height: 70vh; display: grid; place-items: center; text-align:center; isolation: isolate; }
.hero::after{ content:""; position:absolute; inset:0; background: rgba(0,0,0,.2); z-index:0; }
.hero .hero__bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-1; }
.hero--home{
  min-height: 100vh;
  height: 100vh;
}
body.home .hero--home.hero,
body.front-page .hero--home.hero{
  place-items: start center;
}
/* Keep responsive <picture> from affecting hero layout */
body.home .hero--home picture,
body.front-page .hero--home picture{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}
.hero--home .hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -1;
}

/* Home hero layout: copy a bit higher, CTA pinned near bottom */
body.home .hero--home .hero__wrap,
body.front-page .hero--home .hero__wrap{
  padding: calc(56px + 15vh) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
}
body.home .hero--home .hero__desc,
body.front-page .hero--home .hero__desc{
  margin-bottom: 0;
  max-width: none;
}
body.home .hero--home .hero__bottom,
body.front-page .hero--home .hero__bottom{
  margin-top: auto;
  padding: 0 0 5vh;
}
body.home .hero--home .hero__cta--aventuras,
body.front-page .hero--home .hero__cta--aventuras{
  margin: 0;
}

/* Home hero typography */
body.home .hero--home .hero__title,
body.front-page .hero--home .hero__title{
  font-size: 60px;
}
.hero__wrap { width: var(--sf-container); margin: 0 auto; padding: 14vh 0 14vh; position: relative; z-index: 1; }
.hero__title { margin: 0; }

/* Aventuras hero overrides (match screenshot: black title + black button) */
.hero--aventuras::after{ background: #0000006b; }
/* Home hero: no overlay (image only) */
body.home .hero--home::after,
body.front-page .hero--home::after,
body.home .hero--home.hero::after,
body.front-page .hero--home.hero::after{
  background: transparent !important;
}
.hero--aventuras .hero__wrap{ padding: 12vh 0 12vh; }
.hero--aventuras .hero__title {
    margin: 0 0 18px;
    font-family: var(--font-heading, var(--sf-font-heading, inherit));
    font-weight: 700;
    text-transform: uppercase;
    color: #fff !important;
    letter-spacing: 1px;
    line-height: .95;
    font-size: clamp(42px, 5.8vw, 92px);
}
.hero--aventuras .hero__cta--aventuras{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sf-font-body);
  background: var(--sf-cta-orange);
  color: #fff;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  border-radius: var(--sf-cta-radius);
  box-shadow: none;
  border: 0;
  transition: filter 0.15s ease, background 0.15s ease;
}
.hero--aventuras .hero__cta--aventuras:hover{ color: #fff; background: var(--sf-cta-orange); transform: none; filter: brightness(1.06); }
.hero--aventuras .hero__cta--aventuras:active{ transform: none; filter: brightness(0.96); }
.hero--aventuras .hero__cta--aventuras:focus-visible{ outline: 2px dashed rgba(255, 255, 255, 0.85); outline-offset: 4px; }
.hero--aventuras .hero__desc{ margin-bottom: 1.25em; }
.hero__eyebrow { font-family: var(--sf-font-heading); font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; color:#fff; margin:0 0 8px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
/* Separate hero titles */
.hero-title-sahara{ font-family: var(--sf-font-heading); font-weight: 700; color: var(--sf-paper); margin:0; line-height:.52; letter-spacing:-0.02em; font-size: 71px; filter: drop-shadow(3px 3px 0 rgba(18,13,8,.45)); white-space: nowrap; }
.hero-title-fossil{ font-family: var(--sf-font-heading); font-weight: 700; font-style: italic; color: var(--sf-gold); margin:0; line-height:.82; letter-spacing:-0.02em; font-size: 100px; filter: drop-shadow(3px 3px 0 rgba(18,13,8,.4)); white-space: nowrap; }
.hero-title-hunting{ font-family: var(--sf-font-heading); font-weight: 700; color: var(--sf-cream); margin:0; line-height:.82; letter-spacing:-0.02em; font-size: 75px; filter: drop-shadow(3px 3px 0 rgba(18,13,8,.4)); white-space: nowrap; }

.hero__subtitle { font-family: var(--sf-font-heading); font-weight: 700; color: #FFF; font-size: 43px; margin: -2px 0 12px; filter: drop-shadow(2px 2px 0 var(--sf-brown-effect)); }
.hero__desc {
  font-weight: 500;
  color: #fff;
  max-width: 780px;
  font-size: 19px;
  /* text-shadow: 0 1px 8px rgba(0, 0, 0, .45); */
  margin-left: auto;
  margin-right: auto;
  /* filter: drop-shadow(1px 1px 0 #a6a6a6); */
  font-family: var(--sf-font-body);
}

/* Home hero: black text */
body.home .hero--home .hero__title,
body.front-page .hero--home .hero__title,
body.home .hero--home .hero__desc,
body.front-page .hero--home .hero__desc{
  color: #000 !important;
}
body.home .hero--home .hero__cta--aventuras,
body.front-page .hero--home .hero__cta--aventuras{
  background: var(--sf-cta-orange) !important;
  color: #fff !important;
}

/* Explore section */
.explore{ padding: 28px 0 20px; background: var(--sf-linen); border-bottom: 1px solid rgba(140, 74, 32, 0.1); }
.explore__grid{ display:grid; grid-template-columns: 1.2fr .8fr; grid-template-areas: 'title media' 'text media'; gap: 24px; align-items: center; }
.explore__title{ grid-area:title; }
.explore__text{ grid-area:text; }
.explore__media{ grid-area:media; display:flex; justify-content:flex-end; }
.explore__text p{ margin: 0 0 12px; font-size: 16px; line-height: 1.7; }
.explore__media img{ width:100%; max-width:520px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: rotate(180deg); transform-origin: center; }
@media (max-width: 960px){ .explore__grid{ grid-template-columns: 1fr; grid-template-areas: 'title' 'media' 'text'; } .explore__media{ justify-content:center; } .explore__media img{ transform:none; max-width: 100%;transform: rotate(180deg); } }

/* Cards for archive */
.tour-card { border: 1px solid rgba(140, 74, 32, 0.12); border-radius: 8px; overflow: hidden; background: var(--sf-cream); display: flex; flex-direction: column; }
.tour-card .tour-card__content { padding: 12px 14px; }
.tour-card .tour-card__title { font-size: 18px; margin: 8px 0; line-height: 1.3; }
.tour-card .tour-card__meta { font-size: 13px; color: var(--sf-ash); }

/* Single */
.single-tour__header { padding: 28px 0; border-bottom: 1px solid var(--sf-border-soft); }
.single-tour__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.single-tour__meta { color: var(--sf-ash); font-size: 14px; margin: 8px 0 16px; }
.booking-embed { margin-top: 24px; }

/* Responsive tweaks */
@media (max-width: 640px){
  .hero { min-height: 72vh; }
  .hero__wrap{ padding-top: 18vh; }
  .hero-title-sahara{ font-size: 48px; line-height:1.10; filter: drop-shadow(1px 3px 0 var(--sf-brown-effect));}
  .hero-title-fossil{ font-size: 70px; filter: drop-shadow(3px 4px 0 var(--sf-brown-effect)); }
  .hero-title-hunting{ font-size: 52px; line-height:.9; filter: drop-shadow(3px 4px 0 var(--sf-brown-effect)); }
  .hero__subtitle{ font-size: 30px;margin: -6px 0 12px; }
  .hero__desc{ margin-left: 20px; margin-right: 20px; font-size: 16px; }
  .btn, .hero__cta, button[type="submit"].btn, input[type="submit"].btn, input[type="button"].btn, button.btn, .wp-block-button__link, .button{ font-size: 17px; padding: 16px 22px; }
  .hero--aventuras .hero__wrap{ padding: 14vh 0 12vh; }
  .hero--aventuras .hero__title{ letter-spacing: .6px; line-height: 1.0; font-size: 40px; }
  body.home .hero--home .hero__wrap,
  body.front-page .hero--home .hero__wrap{
    padding: calc(56px + 6vh) 0 0;
  }
  body.home .hero--home .hero__bottom,
  body.front-page .hero--home .hero__bottom{
    padding-bottom: 6vh;
  }
  body.home .hero--home .hero__title,
  body.front-page .hero--home .hero__title{
    font-size: 30px !important;
  }
  body.home .hero--home .hero__desc,
  body.front-page .hero--home .hero__desc{
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  body.home .hero--home .hero__bg,
  body.front-page .hero--home .hero__bg{
    object-position: center top !important;
  }
  body.home .hero--home.hero,
  body.front-page .hero--home.hero{
    height: 65vh !important;
    min-height: 65vh !important;
  }
}

/* About section */
.about{ padding: 32px 0; background: var(--sf-paper); }
.about__grid{ display:grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: 'title media' 'text media'; gap: 24px; align-items: center; }
.about__title{ grid-area:title; }
.about__text{ grid-area:text; }
.about__media{ grid-area:media; display:flex; justify-content:flex-end; }
.about__text p{ margin: 0 0 12px; font-size: 16px; line-height: 1.7; }
.about__media img{ width:100%; max-width:460px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: rotate(2.5deg); transform-origin: center; }
@media (max-width: 960px){ .about__grid{ grid-template-columns: 1fr; grid-template-areas: 'title' 'media' 'text'; } .about__media{ justify-content:center; } .about__media img{ transform:none; max-width: 100%; } }

/* Footer reviews (before site footer) */
.footer-reviews{ padding: 56px 20px 64px; background: var(--sf-linen); border-bottom: 1px solid rgba(140, 74, 32, 0.1); }
.footer-reviews__inner{ max-width: 1200px; margin: 0 auto; }
.footer-reviews__title{ margin: 0 0 20px; font-family: var(--sf-font-heading); font-size: 26px; font-weight: 700; color: var(--sf-charcoal); letter-spacing: -0.02em; line-height: 1.2; text-align: center; }
@media (max-width: 640px){ .footer-reviews{ padding: 40px 16px 48px; } .footer-reviews__title{ font-size: 22px; margin-bottom: 16px; } }

/* Tour cards */
.tour-archive{ display:grid; grid-template-columns:repeat(12, 1fr); gap:18px; }
.tour-card{ position:relative; border-radius:14px; overflow:hidden; box-shadow: 0 8px 24px rgba(0,0,0,.08); grid-column: span 4; aspect-ratio: 2 / 2.5; }
.tour-card.is-wide{ grid-column: span 8; aspect-ratio: 2.5 / 2; }
.tour-card.is-tall{ grid-column: span 4; aspect-ratio: 2 / 2.5; }
@media (max-width: 860px){ .tour-archive{ grid-template-columns:repeat(6,1fr);} .tour-card, .tour-card.is-wide, .tour-card.is-tall{ grid-column: span 6; } }
@media (max-width: 640px){ .tour-archive{ grid-template-columns:repeat(2,1fr);} .tour-card, .tour-card.is-wide, .tour-card.is-tall{ grid-column: span 2; aspect-ratio: 2 / 2.5; } }

.tour-card a{ color:inherit; text-decoration:none; display:block; height:100%; position:relative; }
.tour-card__image{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* Overlay starts around the middle to avoid darkening the whole image */
.tour-card__overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.00) 45%, rgba(0,0,0,0.45) 80%, rgba(0,0,0,0.85) 100%); }
.tour-card__content{ position:absolute; left:0; right:0; bottom:0; padding:14px 14px 12px; color:#fff; }
.tour-card__badges{ display:flex; flex-wrap:wrap; margin:0 0 6px; gap:6px; }
.tour-card__badge{ background: var(--sf-ash); color: var(--sf-paper); padding:4px 10px; border-radius:999px; font-size:13px; font-weight:700; line-height:1; display:inline-flex; align-items:center; box-shadow: 0 1px 0 rgba(18,13,8,.2); }
.tour-card__badge--type{ background: var(--sf-gold); color: var(--sf-dark); box-shadow: 0 2px 0 var(--sf-brown-effect); }
.tour-card__badge--type.is-private{ background: var(--sf-rust); color: var(--sf-paper); box-shadow: 0 2px 0 var(--sf-brown-light); }
.tour-card__badge--type.is-shared{ background: var(--sf-gold); color: var(--sf-dark); box-shadow: 0 2px 0 var(--sf-brown-effect); }
.tour-card__badge--type::before{ content:"\1F3F7"; margin-right:6px; }
.tour-card__badge--duration{ background: var(--sf-header-green); color:#fff; font-weight:800; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.tour-card__badge--duration::before{ content:"\23F1"; margin-right:6px; }

/* Duration on top-left of tour card */
.tour-card__duration-top{
  position:absolute;
  left:10px;
  top:10px;
  z-index:2;
  pointer-events:none;
  background: var(--sf-rust);
  color: var(--sf-paper);
  font-weight:800;
  padding:6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.tour-card__duration-top::before{ content:"\23F3"; margin-right:6px; }

/* Hide empty badge row so title sits higher */
.tour-card__badges:empty{ display:none; }
.tour-card__badges:empty + .tour-card__title{ margin-top:0; }
.tour-card__title{ font-family: var(--sf-font-heading); letter-spacing: .5px; font-size:14px; margin:8px 0; line-height:1.3; color:#fff; }
.tour-card__foot{ display:flex; align-items:flex-end; justify-content:flex-end; margin-top:8px; }
.tour-card__price{ display:flex; align-items:flex-end; gap:2px; color:#fff; }
.tour-card__price .tour-card__from{ font-size:13px; opacity:.95; font-family: var(--sf-font-body); }
.tour-card__price .tour-card__amount{ font-family: var(--sf-font-heading); font-size:24px; line-height:1; color:#fff; }
.tour-card__price .tour-card__amount{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
}
.sf-price-was{
  font-family: var(--sf-font-body);
  font-weight: 600;
  font-size: 14px;
  opacity: .85;
  text-decoration: line-through;
  text-underline-offset: 3px;
}
.sf-price-now{
  font-family: var(--sf-font-heading);
  font-weight: 700 !important; /* beat .sf-stay-price__amount / .tour-prices__amount parent weights */
  color: #000;
}
/* Current / “now” price on dark overlays stays light */
.tour-card .tour-card__amount .sf-price-now,
.sf-stay-hero__copy .sf-price-now,
.sf-stay-hero-desktop__price .sf-price-now,
.sf-sticky-cta__amount .sf-price-now{
  color: #fff;
}
.sf-price-unit{
  font-family: var(--sf-font-body);
  font-weight: 500;
  font-size: 14px;
  opacity: .9;
  margin-left: 2px;
}
@media (max-width:640px){ .tour-card__title{ font-size:12px; margin:8px 0; line-height:1.3; } }

/* Title size overrides to ensure mobile rules win over older styles */
.tour-card.tour-card .tour-card__title{ font-size:14px; margin:8px 0; line-height:1.3; }
@media (max-width:640px){
  .tour-card.tour-card .tour-card__title{ font-size:12px; margin:8px 0; line-height:1.3; }
}

/* Tour slider */
.tour-slider{ display:flex; gap:14px; overflow-x:auto; padding-bottom:6px; scroll-snap-type:x mandatory; margin-top: 8px; }
.tour-slider::-webkit-scrollbar{ height:8px; }
.tour-slider::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.2); border-radius:99px; }
.tour-slider .tour-card{ flex: 0 0 220px; aspect-ratio: 2 / 2.5; scroll-snap-align:start; }
@media (min-width:641px){ .tour-slider .tour-card{ flex-basis: 260px; } }

/* Period badge colors */
.tour-card__badge[data-term="Devonian"]{ background: var(--sf-clay); color: var(--sf-paper); }
.tour-card__badge[data-term="Cretaceous"]{ background: var(--sf-rust); color: var(--sf-paper); }

/* Related tours shortcode */
.related-tours{ margin-top: 1.5em; margin-bottom: 1.5em; }
.related-tours__title{ margin: 0 0 0.5em; font-size: 1.25rem; }
.related-tours__inner{ display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.related-tours__inner .tour-card{ flex: 0 0 220px; aspect-ratio: 2 / 2.5; scroll-snap-align: start; }
@media (min-width: 641px){ .related-tours__inner .tour-card{ flex-basis: 260px; } }
.related-tours--grid .related-tours__inner{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; scroll-snap-type: none; }
@media (min-width: 641px){ .related-tours--grid .related-tours__inner .tour-card{ flex: none; } }

/* Highlight cards (under hero) */
.feature-cards{ margin-top: -28px; margin-bottom: 10px; }
.highlight-cards{ display:flex; justify-content:center; align-items:flex-start; gap:0px; flex-wrap:nowrap; }
.highlight-card{ position:relative; border-radius:18px; width:150px; height:100px; padding:0; color: var(--sf-yellow); background: var(--main); box-shadow: inset 0 -5px 0 var(--accent); overflow:visible; transform: rotate(var(--rot)) translateY(var(--ty, 0)); }
/* tighten spacing between cards */
.highlight-card + .highlight-card{ margin-left: -8px; }
.highlight-card__inner{ height:100%; width:100%; display:grid; place-items:center; text-align:center; }
.highlight-card__title{ margin:0; font-family: var(--sf-font-heading); font-size:24px; line-height:1.1; }
.highlight-amount{ font-family: var(--sf-font-heading); font-size:45px; color:#fff; }
/* Color pairs via CSS variables + rotation per card + vertical offsets for staggered look */
.highlight-card.is-1{ --main:#8c4a20; --accent:#b87340; --rot:4deg; --ty:0px; }
.highlight-card.is-2{ --main:#b87340; --accent:#d4952a; --rot:-3deg; --ty:0px; }
.highlight-card.is-3{ --main:#5c4a38; --accent:#8c4a20; --rot:3deg; --ty:6px; }
.highlight-card.is-4{ --main:#1e1610; --accent:#5c4a38; --rot:-3deg; --ty:0px; }
@media (max-width:960px){ .highlight-cards{ flex-wrap:wrap; } .highlight-card{ width:180px; height:122px; } }
@media (max-width:640px){ .highlight-cards{ flex-wrap:nowrap; justify-content:center; gap:0; } .highlight-card{  height: 75px; transform: rotate(var(--rot)); } .highlight-card + .highlight-card{ margin-left:-6px; } .highlight-card__title{ font-size:17px; } .highlight-amount{ font-size:35px; } }

/* Reviews — full width below .sf-stay-layout on single tours */
.sf-tour-reviews-below{
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 28px clamp(12px, 4vw, 70px) 32px;
}
@media (max-width: 980px){
  body.single-tour .sf-tour-reviews-below{
    padding-left: 20px;
    padding-right: 20px;
  }
}
.sf-tour-reviews{ margin-top: 0; min-width: 0; }
.home-reviews{ padding: 28px 0 32px !important; }
.home-reviews .section-title{ margin-bottom: 10px; }

/* Price comparison (blog shortcode) — flat, neutral styling */
.sf-price-compare{
  margin-top: 28px;
  padding: 18px 16px 20px;
  border: 1px solid var(--sf-border-warm);
  border-radius: 12px;
  background: var(--sf-cream);
  box-shadow: 0 10px 28px rgba(30, 22, 16, 0.06);
}
.sf-price-compare .sf-stay-h2{ margin-bottom: 6px; }
.sf-price-compare__sub{
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--sf-ash);
}
.sf-price-compare__scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px 4px;
}
.sf-price-compare__table{
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 15px;
}
.sf-price-compare__channel-inner{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sf-price-compare a.sf-price-compare__channel-link,
.post-content .sf-price-compare a.sf-price-compare__channel-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: inherit !important;
  text-decoration: none !important;
}
.sf-price-compare a.sf-price-compare__channel-link:hover,
.post-content .sf-price-compare a.sf-price-compare__channel-link:hover{
  text-decoration: underline !important;
}
.sf-price-compare a.sf-price-compare__channel-link:focus-visible{
  outline: 2px dashed var(--sf-gold);
  outline-offset: 2px;
}
.sf-price-compare__channel-icon{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  display: block;
}
.sf-price-compare__channel-icon--ours{
  object-fit: contain;
}
.sf-price-compare__table--vertical .sf-price-compare__channel{
  font-weight: 600;
  width: 36%;
  max-width: 200px;
  color: var(--sf-charcoal);
}
.sf-price-compare__table th,
.sf-price-compare__table td{
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--sf-border-soft);
  vertical-align: middle;
  background: var(--sf-cream);
}
.sf-price-compare__table thead th{
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sf-ash);
  border-bottom: 1px solid var(--sf-border-warm);
}
.sf-price-compare__amount{
  font-size: 16px;
  font-weight: 600;
  color: var(--sf-charcoal);
}
/* Book here */
.sf-price-compare a.sf-price-compare__book,
.post-content .sf-price-compare a.sf-price-compare__book{
  display: inline-block;
  background: var(--sf-clay) !important;
  color: var(--sf-paper) !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-family: var(--sf-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 var(--sf-rust) !important;
  transition: transform 0.12s ease, filter .12s ease, background .2s ease;
}
.sf-price-compare a.sf-price-compare__book:hover,
.post-content .sf-price-compare a.sf-price-compare__book:hover{
  color: var(--sf-paper) !important;
  text-decoration: none !important;
  background: var(--sf-gold) !important;
  filter: brightness(1.02);
  transform: translateY(-1px);
}
.sf-price-compare a.sf-price-compare__book:active{
  transform: translateY(0);
  filter: brightness(1);
}
.sf-price-compare a.sf-price-compare__book:focus-visible{
  outline: 2px dashed var(--sf-gold);
  outline-offset: 3px;
}
.sf-price-compare__na{
  color: var(--sf-ash);
  opacity: 0.75;
}
.sf-price-compare__note{
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sf-ash);
}
@media (max-width: 520px){
  .sf-price-compare__table--vertical .sf-price-compare__channel{
    width: auto;
    max-width: none;
  }
}

.sf-stay-section{
  scroll-margin-top: calc(var(--sticky-offset, 0px) + var(--sf-stay-nav-h, 56px) + 12px);
}

/* Tour / stay templates: clear vertical rhythm between main sections (e.g. Prices → Included) */
.sf-stay.sf-stay--tour .sf-stay-main > .sf-stay-section + .sf-stay-section,
.sf-stay.sf-stay--hotel .sf-stay-main > .sf-stay-section + .sf-stay-section{
  margin-top: 32px;
}
.sf-stay.sf-stay--tour .sf-stay-main > .sf-stay-section + .sf-stay-section > .sf-stay-h2:first-child,
.sf-stay.sf-stay--hotel .sf-stay-main > .sf-stay-section + .sf-stay-section > .sf-stay-h2:first-child{
  margin-top: 0;
}
.sf-stay.sf-stay--tour .sf-stay-section--prices,
.sf-stay.sf-stay--hotel .sf-stay-section--prices{
  padding-bottom: 8px;
}

/* Hotel page section menu */
.sf-stay-nav{
  position: sticky;
  top: var(--sticky-offset, 0px);
  z-index: 40;
  background: var(--sf-cream);
  border-bottom: 1px solid var(--sf-border-soft);
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease;
  will-change: transform;
}
.sf-stay-nav.is-stuck{ box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.sf-stay-nav.is-hidden{ transform: translateY(-110%); }
/* Single tour ≤1280px: header is position:absolute (scrolls with page). --sticky-offset still equals header height, but that bar is not fixed — so sticky subnav must use top:0 or a gap appears under the viewport top when stuck. */
@media (max-width: 1280px){
  body.single-tour .sf-stay-nav{
    top: 0;
  }
}
.sf-stay-nav__inner{
  display:flex;
  gap:18px;
  align-items:center;
  overflow-x:auto;
  padding: 0px 70px 3px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sf-stay-nav__inner::-webkit-scrollbar{ display:none; }

/* Right hint when there are more tabs */
.sf-stay-nav.has-overflow::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  right:0;
  width: 56px;
  background: linear-gradient(90deg, rgba(250,246,238,0), var(--sf-cream) 58%);
  box-shadow: -18px 0 22px rgba(0,0,0,.12);
  pointer-events:none;
}
.sf-stay-nav.has-overflow::after{
  content:"❯";
  position:absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sf-font-heading);
  font-weight: 900;
  font-size: 18px;
  color: var(--sf-rust);
  opacity: 1;
  pointer-events:none;
}
.sf-stay-nav.has-overflow.is-end::before,
.sf-stay-nav.has-overflow.is-end::after{ display:none; }
.sf-stay-nav__link{
  display:inline-flex;
  align-items:center;
  padding: 10px 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--sf-charcoal);
  text-decoration:none;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  opacity: .72;
  position: relative;
}
.sf-stay-nav__link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
}
.sf-stay-nav__link:hover{ opacity: 1; }
.sf-stay-nav__link.is-active{ opacity: 1; }
.sf-stay-nav__link.is-active::after{ background: currentColor; }
.sf-stay-nav__link:focus-visible{ outline: 2px solid var(--sf-gold); outline-offset: 2px; }

@media (max-width: 980px){
  .sf-stay-nav__inner{ padding-left: 10px; padding-right: 10px; }
  body.single-tour .sf-stay-nav__inner{ padding-left: 20px; padding-right: 20px; }
}
/* Testimonials: horizontal scroll (same behavior as Sahara Fossils tour sliders) */
.reviews-slider,
.tour-slider.reviews-horizontal-slider{
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  margin-top: 4px;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.reviews-slider::-webkit-scrollbar,
.tour-slider.reviews-horizontal-slider::-webkit-scrollbar{ height: 8px; }
.reviews-slider::-webkit-scrollbar-thumb,
.tour-slider.reviews-horizontal-slider::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.2);
  border-radius: 99px;
}
.reviews-slider .review-card,
.tour-slider.reviews-horizontal-slider .review-card,
.tour-slider.reviews-horizontal-slider .mft-quote{
  flex: 0 0 min(400px, 88vw);
  max-width: 440px;
  min-width: 0;
  height: 350px;
  min-height: 350px;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.reviews-slider .review-card.review-card--expanded,
.tour-slider.reviews-horizontal-slider .review-card.review-card--expanded,
.tour-slider.reviews-horizontal-slider .mft-quote.review-card--expanded{
  height: auto;
  min-height: 350px;
}
.reviews-slider .review-card > .review-card__text,
.tour-slider.reviews-horizontal-slider .review-card > .review-card__text,
.tour-slider.reviews-horizontal-slider .mft-quote > .review-card__text{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.reviews-slider .review-card__text .review-card__text--body,
.tour-slider.reviews-horizontal-slider .review-card__text .review-card__text--body{
  flex: 1 1 auto;
  min-height: 0;
}
.reviews-slider .review-card__more,
.tour-slider.reviews-horizontal-slider .review-card__more{
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
  margin-left: 0;
  display: inline-block;
}
/* Collapsed cards: short excerpt must not push "Read more" past fixed card height */
.reviews-slider .review-card:not(.review-card--expanded) > .review-card__text,
.tour-slider.reviews-horizontal-slider .review-card:not(.review-card--expanded) > .review-card__text,
.tour-slider.reviews-horizontal-slider .mft-quote:not(.review-card--expanded) > .review-card__text{
  overflow: hidden;
}
.reviews-slider .review-card:not(.review-card--expanded) .review-card__text--short,
.tour-slider.reviews-horizontal-slider .review-card:not(.review-card--expanded) .review-card__text--short,
.tour-slider.reviews-horizontal-slider .mft-quote:not(.review-card--expanded) .review-card__text--short{
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.reviews-slider:focus,
.tour-slider.reviews-horizontal-slider:focus{ outline: none; }
.reviews-slider:focus-visible,
.tour-slider.reviews-horizontal-slider:focus-visible{
  outline: 2px dashed var(--sf-brown-light);
  outline-offset: 6px;
  border-radius: 12px;
}
.home-reviews .reviews-slider .review-card{
  flex-basis: min(340px, 86vw);
  max-width: 380px;
}

.reviews-header{ background:var(--sf-cream); border:1px solid var(--sf-border-soft); border-radius:16px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; box-shadow: 0 8px 24px rgba(30, 22, 16, 0.06); }
.reviews-header__left{ display:flex; align-items:center; gap:1px; }
.reviews-header__logo{ height:55px; width:auto; display:block; }
.reviews-header__title{ font-weight:800; font-size:18px; margin-right:8px; }
.reviews-header__score{ font-weight:800; font-size:18px; margin-left:6px; }
/* single green dot indicator */
.reviews-header__dot{ display:inline-block; width:13px; height:13px; border-radius:50%; background: var(--sf-gold); margin-left:6px; }
.reviews-header__right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* grid kept for any other pages */
.reviews-grid{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:16px; }
.review-card{ background:var(--sf-cream); border:1px solid var(--sf-border-soft); border-radius:16px; padding:11px; box-shadow: 0 8px 24px rgba(30, 22, 16, 0.06); }
.review-card__top{ display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.review-card__avatar-wrap{ width:32px; height:32px; border-radius:50%; overflow:hidden; display:grid; place-items:center; }
.review-card__avatar{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.review-card__avatar.placeholder{ width:24px; height:24px; border-radius:50%; display:inline-block; }
/* Unique avatar placeholder colors per card */
.review-card--c1 .review-card__avatar-wrap{ background: rgba(184, 115, 64, 0.22); }
.review-card--c2 .review-card__avatar-wrap{ background: rgba(212, 149, 42, 0.18); }
.review-card--c3 .review-card__avatar-wrap{ background: rgba(232, 220, 200, 0.9); }
.review-card--c4 .review-card__avatar-wrap{ background: rgba(92, 74, 56, 0.12); }

.review-card__author{ font-weight:800; font-size:14px; }
.review-card__subtitle{ font-size:12px; color: var(--sf-ash); opacity: 0.9; }
/* remove bullet */
.review-card__subtitle:before{ display:none; }
.review-card__dots{ margin:9px 0; }
/* requested dot sizes/colors */
.review-card__stars .dot.on{ background: var(--sf-gold); }
.review-card__stars .dot{ display:inline-block; width:13px; height:13px; border-radius:50%; background: var(--sf-gold-soft); margin-right:2px; }

.review-card__title{ margin:5px 0; font-size:16px; font-weight:800; }
.review-card__text--body p,
.review-card__text--full p{ margin: 0 0 1em; }
.review-card__text--body p:last-child,
.review-card__text--full p:last-child{ margin-bottom: 0; }
.review-card__text--body.review-card__text--body--clamp:not(.is-expanded){
  display: block;
  overflow: hidden;
}
.review-card__text--body.review-card__text--body--clamp.is-expanded{
  display: block;
  max-height: none !important;
  overflow: visible;
}
/* Review photo strip + lightbox (Sahara Fossils) */
.review-card__photos{
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  margin-top: 9px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.25) transparent;
}
.review-card__photos::-webkit-scrollbar{ height: 6px; }
.review-card__photos::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.22);
  border-radius: 99px;
}
.review-card__photos:focus{ outline: none; }
.review-card__photos:focus-visible{
  outline: 2px dashed var(--sf-brown-light);
  outline-offset: 4px;
  border-radius: 8px;
}
.review-card__photos:not(:has(.review-card__photo-btn)){
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.review-card__photo{
  width: 69px;
  height: 69px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--sf-border-soft);
}
.review-card__photo-btn{
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.review-card__photo-btn:hover .review-card__photo{
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.review-card__photo-btn:focus-visible{
  outline: 2px solid var(--sf-yellow);
  outline-offset: 2px;
}
.sf-review-lightbox{
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.sf-review-lightbox[hidden]{ display: none !important; }
.sf-review-lightbox .sf-review-lightbox__backdrop{
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0,0,0,.88);
  border-radius: 0;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.sf-review-lightbox__panel{
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sf-review-lightbox__panel > *{ pointer-events: auto; }
.sf-review-lightbox__img{
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
}
.sf-review-lightbox__counter{
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
/* Lightbox controls: scoped to beat global `button { … }` */
.sf-review-lightbox button.sf-review-lightbox__close,
.sf-review-lightbox button.sf-review-lightbox__prev,
.sf-review-lightbox button.sf-review-lightbox__next{
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(18, 13, 8, 0.35);
  background: linear-gradient(180deg, var(--sf-clay) 0%, var(--sf-rust) 100%);
  color: var(--sf-paper);
  box-shadow:
    0 3px 0 rgba(18, 13, 8, 0.35),
    0 10px 28px rgba(0,0,0,.4);
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--sf-font-body) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}
.sf-review-lightbox__icon{
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}
.sf-review-lightbox button.sf-review-lightbox__close{
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 3;
  width: 48px;
  height: 48px;
}
.sf-review-lightbox button.sf-review-lightbox__prev,
.sf-review-lightbox button.sf-review-lightbox__next{
  top: 50%;
  width: 54px;
  height: 54px;
}
.sf-review-lightbox button.sf-review-lightbox__prev{
  left: max(12px, env(safe-area-inset-left));
  transform: translateY(-50%);
}
.sf-review-lightbox button.sf-review-lightbox__next{
  right: max(12px, env(safe-area-inset-right));
  transform: translateY(-50%);
}
.sf-review-lightbox button.sf-review-lightbox__prev:hover,
.sf-review-lightbox button.sf-review-lightbox__next:hover{
  filter: brightness(1.09);
  transform: translateY(-50%) scale(1.04);
}
.sf-review-lightbox button.sf-review-lightbox__close:hover{
  filter: brightness(1.09);
  transform: translateY(-1px);
}
.sf-review-lightbox button.sf-review-lightbox__prev:active:not(:disabled),
.sf-review-lightbox button.sf-review-lightbox__next:active:not(:disabled){
  transform: translateY(calc(-50% + 3px)) scale(1.02);
  box-shadow:
    0 1px 0 var(--sf-brown-effect),
    0 6px 18px rgba(0,0,0,.35);
}
.sf-review-lightbox button.sf-review-lightbox__close:active:not(:disabled){
  transform: translateY(3px);
  box-shadow:
    0 1px 0 var(--sf-brown-effect),
    0 4px 16px rgba(0,0,0,.35);
}
.sf-review-lightbox button.sf-review-lightbox__close:focus-visible,
.sf-review-lightbox button.sf-review-lightbox__prev:focus-visible,
.sf-review-lightbox button.sf-review-lightbox__next:focus-visible{
  outline: 3px solid var(--sf-gold);
  outline-offset: 3px;
}
.sf-review-lightbox .sf-review-lightbox__prev[hidden],
.sf-review-lightbox .sf-review-lightbox__next[hidden]{
  display: none !important;
}
@media (max-width: 560px){
  .sf-review-lightbox button.sf-review-lightbox__close{
    width: 44px;
    height: 44px;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }
  .sf-review-lightbox button.sf-review-lightbox__close .sf-review-lightbox__icon{
    width: 20px;
    height: 20px;
  }
  .sf-review-lightbox button.sf-review-lightbox__prev,
  .sf-review-lightbox button.sf-review-lightbox__next{
    width: 48px;
    height: 48px;
  }
  .sf-review-lightbox button.sf-review-lightbox__prev{
    left: max(6px, env(safe-area-inset-left));
  }
  .sf-review-lightbox button.sf-review-lightbox__next{
    right: max(6px, env(safe-area-inset-right));
  }
  .sf-review-lightbox button.sf-review-lightbox__prev .sf-review-lightbox__icon,
  .sf-review-lightbox button.sf-review-lightbox__next .sf-review-lightbox__icon{
    width: 22px;
    height: 22px;
  }
}
.review-card__text{ margin:0; font-size:14px; line-height:1.6; color: var(--sf-ash); }
.review-card__more{
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: 8px;
  font: inherit;
  font-weight: 900;
  color: var(--sf-brown-dark);
  text-decoration: none;
  cursor: pointer;
}
.review-card__more:hover{ filter: brightness(1.05); }
.review-card__more:focus-visible{ outline: none; }
.review-card__text--full[hidden]{ display:none; }
.reviews-cta{ text-align:center; margin-top:16px; }
.home-reviews .reviews-cta .btn{
  background: var(--sf-cta-orange) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 26px;
  border-radius: var(--sf-cta-radius) !important;
}
.home-reviews .reviews-cta .btn:hover{
  color: #fff !important;
  background: var(--sf-cta-orange) !important;
  filter: brightness(1.06);
  transform: none;
}
@media (max-width:960px){
  .reviews-header{ flex-direction:column; align-items:flex-start; gap:8px; }
  .reviews-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-header__right{ width: 100%; justify-content: space-between; }
}
@media (max-width:640px){ .reviews-grid{ grid-template-columns: 1fr; } }
@media (max-width:640px){
  .reviews-header{ flex-direction:row; align-items:center; gap:6px; padding:8px 10px; }
  .reviews-header__logo{ height:38px; }
  .reviews-header__title{ font-size:16px; margin-right:6px; }
  .reviews-header__score{ font-size:16px; }
  .reviews-header__right .btn{ padding:8px 12px; font-size:16px; }
  .reviews-grid{ grid-template-columns: 1fr; }
}

/* Mobile tweaks for reviews header button */
@media (max-width: 640px) {
  .reviews-header__right .btn { padding: 8px 12px; font-size: 13px; }
}

/* Mobile tweaks for title */
@media (max-width: 640px) {
  .reviews-header__title { font-size: 14px; margin-left: 2px; margin-right: 0px; }
}

/* Mobile logo height */
@media (max-width: 640px) {
  .reviews-header__logo { height: 40px; }
}

/* Single dot in header */
.reviews-header__dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--sf-gold); margin-left: 2px; }

/* Review card header row (Fossils: slightly more space below avatar row in dense layouts) */
.review-card__top{ display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

/* Tour filter bar */
.tour-filterbar{ display:flex; gap:8px; margin:8px 0 12px; }
.filter-btn{ background: var(--sf-paper); border:1px solid rgba(140, 74, 32, 0.15); color: var(--sf-charcoal); padding:8px 12px; border-radius:999px; cursor:pointer; font-family: var(--sf-font-heading); font-size:16px; box-shadow: inset 0 -2px 0 var(--sf-brown-light);}
.filter-btn.is-active{ background: var(--sf-brown-dark); color: var(--sf-paper); box-shadow: inset 0 -4px 0 var(--sf-brown-light); }

/* Tours section: small group headings (not "section-title") */
.tours-group-title{
  font-family: var(--sf-font-heading);
  letter-spacing:.3px;
  font-size: 22px;
  line-height: 1.2;
  margin: 18px 0 10px;
  color: var(--sf-header-green);
  text-align: left;
}
@media (max-width: 640px){
  .tours-group-title{ font-size: 20px; margin: 16px 0 10px; }
}

/* Tours slider header + scroll buttons */
.tours-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.tours-group-head .tours-group-title{ margin: 0; }
.slider-nav{ display:flex; gap:8px; }
.slider-nav__btn{
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: var(--sf-paper);
  border:1px solid rgba(140, 74, 32, 0.15);
  color: var(--sf-charcoal);
  font-family: var(--sf-font-heading);
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 0 -2px 0 var(--sf-brown-light);
  cursor:pointer;
}
.slider-nav__btn:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.slider-nav__btn:active{ transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--sf-brown-light); }
.slider-nav__btn[disabled]{ opacity:.45; cursor:not-allowed; transform:none; }

/* Hide cards when filtered */
.tour-card[hidden]{ display:none !important; }

/* Balanced section spacings */
.feature-cards{ margin-top: -28px; margin-bottom: 10px; }
.explore{ padding: 28px 0 20px; background: var(--sf-linen); border-bottom: 1px solid rgba(140, 74, 32, 0.1); }
.explore__grid{ gap: 24px; }
.home-tours{ padding: 24px 0 28px; background: var(--sf-orange-light-bg);}
.about{ padding: 32px 0; background: var(--sf-paper); }
.about__grid{ gap: 24px; }
.home-testimonials{ padding: 28px 0 32px !important; }
.home-periods{ padding: 0; }
.home-periods__slider{ display:flex; gap:14px; overflow-x:auto; padding-bottom:10px; scroll-snap-type:x mandatory; margin-top: 10px; }
.home-periods__slider::-webkit-scrollbar{ height:8px; }
.home-periods__slider::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius:999px; }
.home-periods__slider .period-card{ flex:0 0 auto; width: 420px; scroll-snap-align:start; }
.home-periods__slider:focus{ outline:none; }
.home-periods__slider:focus-visible{ outline:2px dashed var(--sf-brown-light); outline-offset:6px; border-radius:12px; }
@media (max-width: 860px){ .home-periods__slider .period-card{ width: 360px; } }
@media (max-width: 640px){ .home-periods__slider .period-card{ width: 300px; } }
.home-blog{ padding: 0; background: var(--sf-paper); }
.blog-grid{ display:grid; grid-template-columns:repeat(12, 1fr); gap:16px; margin-top: 10px; }
.blog-slider{ display:flex; gap:14px; overflow-x:auto; padding-bottom:10px; scroll-snap-type:x mandatory; margin-top: 10px; }
.blog-slider::-webkit-scrollbar{ height:8px; }
.blog-slider::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius:999px; }
.blog-slider .blog-card{ flex: 0 0 auto; width: 340px; scroll-snap-align:start; }
.blog-slider:focus{ outline:none; }
.blog-slider:focus-visible{ outline:2px dashed var(--sf-brown-light); outline-offset:6px; border-radius:12px; }
.blog-card{ grid-column: span 4; border-radius:14px; overflow:hidden; background:var(--sf-cream); box-shadow: 0 8px 24px rgba(0,0,0,.08); position:relative; }
.blog-card__link{ display:block; text-decoration:none; color:inherit; height:100%; position:relative; }
.blog-card__media{ position:relative; height:240px; }
.blog-card__image{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.blog-card__image--placeholder{ background: linear-gradient(135deg, rgba(212,149,42,.25), rgba(142,78,33,.10)); }
.blog-card__overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.85) 100%); }
.blog-card__chip{ position:absolute; left:12px; top:12px; background: rgba(250,246,238,.94); color: var(--sf-charcoal); border: 1px solid var(--sf-border-soft); border-radius:999px; padding:6px 10px; font-size:12px; font-weight:800; box-shadow: 0 2px 0 rgba(30,22,16,.08); }
.blog-card__body{ position:absolute; left:0; right:0; bottom:0; padding:14px 14px 12px; color:#fff; }
.blog-card__title{
  font-family: var(--sf-font-heading);
  letter-spacing:.3px;
  font-size:16px;
  margin:0 0 8px;
  color:#fff;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.35));
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
}
.blog-card__excerpt{
  margin:0 0 10px;
  opacity:.92;
  line-height:1.55;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
  line-clamp:1;
}
.blog-card__more{ margin-left:8px; font-size:13px; font-weight:900; letter-spacing:.2px; opacity:.95; white-space:nowrap; }
.blog-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.blog-card{ transition: transform .14s ease, box-shadow .14s ease; }
@media (max-width: 860px){ .blog-card{ grid-column: span 6; } .blog-card__image{ height:200px; } }
@media (max-width: 860px){ .blog-card__media{ height:220px; } }
@media (max-width: 640px){ .blog-card{ grid-column: span 12; } .blog-card__media{ height:210px; } }

@media (max-width: 860px){
  .blog-slider .blog-card{ width: 320px; }
}
@media (max-width: 640px){
  .blog-slider .blog-card{ width: 280px; }
}

/* Blog single post */
.post-hero{ position:relative; overflow:hidden; background: var(--sf-header-green); color:#fff; padding: 22px 0 18px; }
.post-hero__media{ position:absolute; inset:0; }
.post-hero__img{ width:100%; height:100%; object-fit:cover; filter: saturate(1.05) contrast(1.02); }
.post-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 75%) 0%, rgb(0 0 0 / 75%) 40%, rgb(0 0 0 / 75%) 100%);
}
.post-hero__inner{ position:relative; z-index:1; }
.post-breadcrumbs{ font-size:13px; opacity:.9; display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom: 8px; }
.post-breadcrumbs a{ color:#fff; text-decoration:none; font-weight:700; }
.post-title{
  font-family: var(--sf-font-heading);
  font-weight: 700;
  letter-spacing: .4px;
  font-size: clamp(28px, 4vw, 50px);
  margin: 50px 0 50px;
  color: #fff;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .35));
}
/* (Post meta removed from template; keep styles if re-enabled later) */

.post-layout{ display:block; padding: 20px 0 38px; }
.post-main{ min-width:0; max-width: 860px; margin: 0 auto; }
.post-card{ background:var(--sf-cream); border-radius:16px; padding:14px 14px 16px; box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.post-card--cta{ background: var(--sf-orange-light-bg); }
.post-card__title{ font-family: var(--sf-font-heading); letter-spacing:.3px; font-size:18px; margin:0 0 8px; }
.post-card__text{ margin:0 0 12px; opacity:.9; }
.post-card__actions{ display:flex; flex-wrap:wrap; gap:10px; }

.post-content{ background:var(--sf-cream); border-radius:16px; padding:18px 18px 22px; box-shadow: 0 10px 26px rgba(0,0,0,.08); line-height:1.85; font-size:16px; overflow-wrap:break-word; word-break:normal; hyphens:auto; }
.post-content h1{ font-size: 3rem; margin: 0 0 14px; }
.post-content h2{ font-size: 2.25rem; margin: 28px 0 10px; }
.post-content h3{ font-size: 1.75rem; margin: 22px 0 8px; }
.post-content h4{ font-size: 1.5rem; margin: 18px 0 8px; }
.post-content h5{ font-size: 1.375rem; margin: 14px 0 6px; }
.post-content h6{ font-size: 1.125rem; margin: 12px 0 6px; opacity: 0.92; }
.post-content h1:first-child{ margin-top: 0; }
.post-content p{ margin: 0 0 14px; }
.post-content ul, .post-content ol{ margin: 0 0 14px 18px; }
.post-content a{ text-decoration: underline; text-underline-offset: 3px; }
.post-content a.btn{ text-decoration: none; }

/* Blog: responsive images & blocks (WP inline widths, floats — avoids mobile overflow + narrow text column) */
.post-content figure,
.post-content .wp-block-image,
.post-content .wp-block-gallery,
.post-content .wp-block-media-text,
.post-content .wp-block-media-text__media {
  max-width: 100%;
  box-sizing: border-box;
}
.post-content figure img,
.post-content .wp-block-image img,
.post-content .wp-block-gallery img {
  max-width: 100%;
  height: auto;
}
.post-content img.alignleft,
.post-content img.alignright,
.post-content img.aligncenter,
.post-content img.alignnone,
.post-content figure.alignleft,
.post-content figure.alignright,
.post-content figure.aligncenter {
  max-width: 100%;
  height: auto;
}
.post-content .wp-block-embed,
.post-content .wp-block-embed__wrapper {
  max-width: 100%;
}
.post-content .wp-block-embed iframe,
.post-content iframe {
  max-width: 100%;
}
@media (max-width: 782px) {
  .post-content img.alignleft,
  .post-content img.alignright,
  .post-content figure.alignleft,
  .post-content figure.alignright {
    float: none !important;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Catch any floated legacy markup */
  .post-content .alignleft,
  .post-content .alignright {
    float: none !important;
    max-width: 100%;
  }
}

/* Book Kamkam Dunes CTA (shortcode [book_kamkam_dunes]) – title + embedded tour card 243 */
.sf-book-kamkam-cta{
  margin: 28px 0;
  padding: 24px 0;
  text-align: center;
}
.sf-book-kamkam-cta__heading{
  display: inline-block;
  margin: 0 0 20px;
  font-family: var(--sf-font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--sf-text);
  text-decoration: none;
}
.sf-book-kamkam-cta__heading:hover{ color: var(--sf-brown-dark); text-decoration: none; }
.sf-book-kamkam-cta__card-wrap{
  max-width: 320px;
  margin: 0 auto;
}
.sf-book-kamkam-cta__card{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  aspect-ratio: 2 / 2.5;
}
.sf-book-kamkam-cta__card .tour-card__link{ position: absolute; inset: 0; z-index: 3; text-indent: -9999px; }
.sf-book-kamkam-cta__card .tour-card__image{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-book-kamkam-cta__card .tour-card__content{ position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 12px; color: #fff; }
.sf-book-kamkam-cta__card .tour-card__foot{ display: flex; align-items: flex-end; justify-content: flex-end; margin-top: 8px; }
.sf-book-kamkam-cta__card .tour-card__price .tour-card__from{ font-size: 13px; opacity: .95; }
.sf-book-kamkam-cta__card .tour-card__price .tour-card__amount{ font-family: var(--sf-font-heading); font-size: 24px; line-height: 1; color: #fff; }
/* Overlay and title styles for this post card only */
.sf-book-kamkam-cta__card .tour-card__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 60%, rgb(0 0 0) 100%);
}
/* Higher specificity: element + classes so we beat monochrome.css */
article.sf-book-kamkam-cta__card.tour-card .tour-card__title{
  font-size: 33px !important;
  margin: 5px 0 !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
}

.post-related-list{ display:flex; flex-direction:column; gap:10px; }
.post-related-item{ display:flex; gap:10px; align-items:center; text-decoration:none; color:inherit; }
.post-related-item__thumb{ width:54px; height:54px; object-fit:cover; border-radius:10px; flex: 0 0 auto; }
.post-related-item__thumb--ph{ width:54px; height:54px; border-radius:10px; background: linear-gradient(135deg, rgba(212,149,42,.25), rgba(142,78,33,.10)); flex: 0 0 auto; }
.post-related-item__text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.post-related-item__title{
  font-weight:800;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  white-space:normal;
}
/* (Related post meta removed from template; keep styles if re-enabled later) */

@media (max-width: 980px){
  .post-main{ max-width: 100%; }
}

.sf-inline-cta{ margin: 18px 0; }
.sf-inline-cta .post-card{ box-shadow: 0 10px 26px rgba(0,0,0,.08); }

/* Period pages */
.period-content h2{ font-family: var(--sf-font-heading); letter-spacing:.2px; font-size:22px; margin:16px 0 8px; }
.period-content ul{ margin: 0 0 14px 18px; }
.period-media{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin: 14px 0 14px; }
.period-media__item{ margin:0; background:var(--sf-cream); border-radius:0; overflow:visible; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.period-media__item img{ width:100%; height:auto; display:block; border-radius:0; }
.period-media__item figcaption{ font-size:12px; font-weight:800; opacity:.75; padding:10px 12px; }
@media (max-width: 760px){ .period-media{ grid-template-columns: 1fr; } }
.period-empty{
  max-width: 980px;
  margin: 10px auto 0;
  background:var(--sf-cream);
  border: 1px solid var(--sf-border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(30, 22, 16, 0.06);
  text-align:center;
}
.period-empty__title{ font-weight: 900; font-size: 16px; margin-bottom: 6px; }
.period-empty__text{ opacity: .9; }
.period-empty a{ color: var(--sf-brown-dark); font-weight: 900; text-decoration: none; }
.period-empty a:hover{ text-decoration: underline; }

/* Periods index page (By Period) */
.periods-grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
.period-card{ grid-column: span 6; border-radius:14px; background:var(--sf-cream); box-shadow: 0 10px 26px rgba(0,0,0,.08); overflow:hidden; }
.period-card__link{ display:block; color:inherit; text-decoration:none; }
.period-card__media{ position:relative; height:320px; }
.period-card__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.period-card__overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.10) 40%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.85) 100%); }
.period-card__body{ position:absolute; left:0; right:0; bottom:0; padding:14px 14px 12px; color:#fff; }
.period-card__title{ display:block; font-family: var(--sf-font-heading); letter-spacing:.3px; font-size:28px; color:#fff; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.35)); margin-bottom:6px; }
.period-card__title-time{ font-family: var(--sf-font-body); font-weight:800; font-size:14px; letter-spacing:0; opacity:.95; margin-left:8px; }
.period-card__desc{ display:block; opacity:.92; line-height:1.55; font-weight:700; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.period-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.period-card{ transition: transform .14s ease, box-shadow .14s ease; }
@media (max-width: 860px){ .period-card{ grid-column: span 12; } .period-card__media{ height:280px; } }
@media (max-width: 640px){
  /* Put the time range on its own line and keep it from splitting */
  .period-card__title{ line-height:1.05; }
  .period-card__title-time{
    display:block;
    margin-left:0;
    margin-top:2px;
    white-space:nowrap;
    font-size:13px;
    line-height:1.05;
  }
}

/* Author card (blog posts) */
.author-card{
  max-width: 860px;
  margin: 16px auto 0;
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px 14px 16px;
  border-radius:16px;
  background:var(--sf-cream);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.author-card__avatar{ flex:0 0 auto; }
.author-card__avatar img{ width:72px; height:72px; border-radius:50%; display:block; object-fit:cover; }
.author-card__kicker{ font-size:12px; font-weight:900; opacity:.7; margin-bottom:4px; }
.author-card__name{ font-family: var(--sf-font-heading); letter-spacing:.2px; font-size:18px; margin:0 0 6px; }
.author-card__bio{ opacity:.92; line-height:1.65; }
.author-card__links{ margin-top:8px; }
.author-card__links a{ font-weight:900; text-decoration:none; color: var(--sf-brown-dark); }
.author-card__links a:hover{ text-decoration:underline; }
@media (max-width: 640px){
  .author-card{ flex-direction:column; align-items:flex-start; }
}

/* Moha author card (shortcode): grey background, compact, multiple contact links */
.moha-author-card.author-card{
  background: var(--sf-linen) !important;
  border: 1px solid var(--sf-border-soft);
}
.moha-author-card.author-card .author-card__links a{ margin-right: 10px; }
.moha-author-card.author-card .author-card__links a:last-child{ margin-right: 0; }

/* Mobile: keep image next to "Hi I'm Moha" (stay in a row) */
@media (max-width: 640px){
  .moha-author-card.author-card{
    flex-direction: row;
    align-items: flex-start;
    padding: 12px 12px 14px;
    gap: 12px;
  }
  .moha-author-card.author-card .author-card__avatar img{
    width: 56px;
    height: 56px;
  }
  .moha-author-card.author-card .author-card__name{
    font-size: 16px;
    margin-bottom: 4px;
  }
  .moha-author-card.author-card .author-card__bio{
    font-size: 14px;
    line-height: 1.5;
  }
}

/* (Removed home embed styles) */
/* FAQ */
.home-faq{ padding: 28px 0 60px; background: var(--sf-orange-light-bg); }
.faq-list{ max-width: 900px; margin: 20px auto 0; }
.faq-item{ border-bottom: 1px solid var(--sf-border-warm); padding: 10px 0; }
.faq-item:first-child{ border-top: 1px solid var(--sf-border-warm); }
.faq-q{ list-style: none; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.faq-q::-webkit-details-marker{ display:none; }
.faq-q::after{ content: "+"; font-weight: 900; font-family: var(--sf-font-heading); color:var(--sf-charcoal); }
.faq-item[open] .faq-q::after{ content: "−"; }
.faq-a{ margin-top: 6px; color:var(--sf-ash); line-height: 1.6; }

/* Add slight margin under section headings without changing global title rule */
.explore .section-title, .home-tours .section-title, .about .section-title, .home-testimonials .section-title{ margin-bottom: 10px; }

/* Slight top spacing before sliders/grids */
.tour-slider{ margin-top: 8px; }

/* Full-card clickable link */
.tour-card{ position:relative; border-radius:14px; overflow:hidden; box-shadow: 0 8px 24px rgba(0,0,0,.08); grid-column: span 4; aspect-ratio: 2 / 2.5; }
.tour-card__link{ position:absolute; inset:0; z-index:3; text-indent:-9999px; }

/* Minimal close button overrides */
.nav-close{ display:inline; background:transparent; border:0; border-radius:0; padding:0; margin:0; box-shadow:none; color:#fff; font-size:22px; line-height:1; }
.nav-close:hover{ opacity:.9; }
@media (min-width: 1281px){ .nav-close{ display:none; } }

/* Desktop primary menu styling */
@media (min-width: 1281px){
  nav.primary-nav .menu a{ padding:10px 12px; border-radius:10px; font-family: var(--sf-font-body); color:#fff; }
  nav.primary-nav .menu a:hover{ background: rgba(255,255,255,.08); }
  nav.primary-nav .menu a:focus-visible{ outline:2px dashed var(--sf-yellow); outline-offset:3px; }
}

/* Native smooth scrolling fallback and sticky offset */
html{ scroll-behavior: smooth; scroll-padding-top: var(--sticky-offset, 72px); }
/* Ensure sections account for sticky header when using #hash navigation */
#explore, #tours, #about, #reviews, #faq, #adventures, #contact, #meet-your-guide, #tour-stories, .more-tours__group[id^="adventure-"]{ scroll-margin-top: var(--sticky-offset, 72px); }

/* Lock body when menu is open */
body.menu-open{ overflow:hidden; }

/* Stronger stacking and click-through prevention for mobile drawer */
@media (max-width: 1280px){
  nav.primary-nav{ z-index:9999; }
  .nav-backdrop{ z-index:9998; }
  body.menu-open .site-header,
  body.menu-open .site-main,
  body.menu-open .site-footer{ pointer-events: none; }
  body.menu-open nav.primary-nav,
  body.menu-open .nav-backdrop{ pointer-events: auto; }
}

/* Prevent jump-to-top when opening drawer: do not fix body position */
body.menu-open{ position: static !important; top: auto !important; width: auto !important; }

/* Tour fullscreen popup */
.tour-popup-overlay{ position:fixed; inset:0; background:rgba(55,47,28,.55); display:none; align-items:center; justify-content:center; z-index:10000; padding:24px; }
.tour-popup-overlay.is-open{ display:flex; }
.tour-popup-panel{ background:var(--sf-cream); width:100%; max-width: 1100px; max-height: calc(100vh - 48px); overflow:auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); position:relative; border-radius:16px; }
/* Prevent rare horizontal overflow on mobile (long words/URLs in content) */
.tour-popup-panel{ overflow-x:hidden; }
.tour-popup__close{ position:absolute; top:12px; right:12px; border:0; background:transparent; width:36px; height:36px; display:grid; place-items:center; cursor:pointer; z-index:20; padding:0; box-shadow:none; }
.tour-popup__close::before,.tour-popup__close::after{ content:none !important; }
.tour-popup__close svg{ width:22px; height:22px; stroke: var(--sf-ash); stroke-width:2.2; stroke-linecap:round; fill:none; }
.tour-popup{ background:var(--sf-paper); padding:70px; }

/* Ensure image never covers the close button */
.tour-popup__media{ position:relative; z-index:0; }

@media (max-width:960px){ .tour-popup{ padding:24px; } .tour-popup__close{ top:8px; right:8px; width:34px; height:34px; } }

/* Popup refined layout */
.tour-popup-overlay{ background: rgba(55,47,28,.55); }
.tour-popup-panel{ max-width: 1100px; }
.tour-popup{ background:var(--sf-paper); }
.tour-popup__head{ border:0; padding-bottom:0; display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start; }
.tour-popup__badges{ display:flex; gap:6px; margin-bottom:6px; }
.tour-popup__subtitle{ color: var(--sf-ash); margin:4px 0 10px; }
.tour-popup__facts{ list-style:none; padding:0; margin:8px 0 0; color: var(--sf-charcoal); font-size:14px; }
.tour-popup__facts li{ margin:3px 0; }
.tour-popup__price{ font-family: var(--sf-font-heading); font-size:28px; margin:8px 0; }
.tour-popup__cta .btn{ margin-top:0; }
.tour-popup__cta{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.tour-popup__cta .popup__paypal{ display:inline-flex; align-items:center; line-height:0; }
.tour-popup__cta .popup__paypal img{ height:40px; width:auto; display:block; }
.tour-popup__media{ grid-column:1 / 2; }
.tour-popup__media img{ border-radius:14px; }
.tour-popup__body{ background:var(--sf-cream); border-radius:14px; padding:18px; margin-top:18px; }
.tour-popup__booking{ background:transparent; border-radius:0; padding:0; margin-top:22px; box-shadow:none; }
@media (max-width:860px){ .tour-popup__head{ grid-template-columns: 1fr; } }

/* Strict two-column hero for popup */
.tour-popup__head{ display:grid; grid-template-columns: 380px 1fr; gap:22px; align-items:start; }
.tour-popup__media{ grid-column:1; }
.tour-popup__media img{ display:block; width:100%; height:auto; border-radius:18px; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.tour-popup__info{ grid-column:2; }
.tour-popup__title{ font-size:26px; margin:6px 0; }
.tour-popup__desc{ color:var(--sf-ash); font-size:14px; margin:6px 0 10px; }
.tour-popup__facts{ display:block; margin:10px 0 12px; }
.tour-popup__price{ font-size:32px; margin:10px 0; }
@media (max-width:960px){ .tour-popup__head{ grid-template-columns: 1fr; } .tour-popup__media{ grid-column:auto; } .tour-popup__info{ grid-column:auto; } }

/* Popup spacing + image ratio like tour cards */
.tour-popup{ background:var(--sf-paper); padding:70px; }
.tour-popup__head{ grid-template-columns: 380px 1fr; gap:26px; }
.tour-popup__media{ aspect-ratio: 2 / 2.5; overflow:hidden; border-radius:18px; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.tour-popup__media img{ width:100%; height:100%; object-fit:cover; border-radius:18px; box-shadow:none; }

/* Details/facts vertical list with icons */
.tour-popup__facts{ list-style:none; padding:0; margin:16px 0 12px; border:0; background:transparent; display:block; }
.tour-popup__facts li{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--sf-border-warm); }
.tour-popup__facts li:last-child{ border-bottom:0; }
.tour-popup__facts li::before{ content:""; display:inline-block; width:18px; height:18px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.08)); }
.tour-popup__facts li.fact--duration::before{ content:"\23F1"; }
.tour-popup__facts li.fact--departure::before{ content:"\1F4CD"; }
.tour-popup__facts li.fact--type::before{ content:"\1F3F7"; }
.tour-popup__facts li.fact--max::before{ content:"\1F465"; }
.tour-popup__facts .fact-label{ font-weight:800; color:var(--sf-charcoal); min-width:120px; }
.tour-popup__facts .fact-value{ font-weight:700; color:var(--sf-charcoal); }

/* Price and CTA spacing */
.tour-popup__price{ font-size:34px; margin:14px 0 8px; }
.tour-popup__price{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:10px;
}
.tour-popup__price .sf-price-was{ font-size: 18px; }
.tour-popup__price .sf-price-unit{ font-size: 18px; }
.tour-popup__cta{ margin-top:8px; }

/* Section cards: remove white backgrounds */
.tour-popup__body, .tour-popup__booking{ background:transparent; border:0; padding:0; margin-top:22px; }
.tour-popup__body{
  /* Keep words intact; only break very long strings */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.tour-popup__body p,
.tour-popup__body li,
.tour-popup__body a{
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.tour-popup__body ul,
.tour-popup__body ol{
  max-width:100%;
}
@media (max-width:960px){ .tour-popup{ padding:24px; } .tour-popup__head{ grid-template-columns:1fr; gap:18px; } }
/* Ensure embedded iframe fits */
.tour-popup__booking iframe{ width:100%; max-width:100%; border:0; background:transparent; height: 1500px; }
.tour-popup__booking a{ pointer-events:auto !important; }
/* Solo notice box */
.solo-notice{ margin-top:12px; background:var(--sf-notice-bg); border:1px solid var(--sf-border-warm); border-radius:10px; padding:10px 12px; color:var(--sf-charcoal); box-shadow: 0 2px 0 var(--sf-border-warm); }
.solo-notice a{ color: var(--sf-brown-dark); font-weight:800; }
/* Ensure Bokun overlays are clickable above our layout */
#home-booking-test, .tour-popup__booking{ position: relative; z-index: 1; }
@media (max-width:960px){ .tour-popup__booking iframe{ height: 1200px; } }

/* Hide runtime-inserted <noscript> fallbacks inside booking block */
.tour-popup__booking noscript{ display:none !important; }

/* Includes and FAQs */
.tour-popup__includes{ margin:8px 0 0; padding-left:18px; }
.tour-popup__includes li{ margin:4px 0; }
.tour-prices{ width:100%; border-collapse:collapse; margin-top:8px; background:var(--sf-cream); color:var(--sf-charcoal); border-radius:10px; overflow:hidden; box-shadow: 0 2px 0 var(--sf-border-warm); }
.tour-prices th, .tour-prices td{ border-bottom:1px solid var(--sf-border-warm); padding:12px 14px; font-size:16px; color:var(--sf-charcoal); }
.tour-prices thead th{ background:var(--sf-notice-bg); font-weight:800; }
.tour-prices tr:last-child td{ border-bottom:0; }
.tour-prices .right{ text-align:right; }

/* Prevent mobile horizontal overflow (tables / long strings) */
.tour-prices-wrap{ max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tour-prices{
  width: 100%;
  table-layout: fixed; /* allows table to shrink on mobile */
}
.tour-prices th, .tour-prices td{
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.tour-prices .right{ white-space: nowrap; }
@media (max-width: 720px){
  .tour-prices-wrap{ margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; }
  body.single-tour .tour-prices-wrap{ margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .tour-prices th, .tour-prices td{ padding: 10px 10px; font-size: 14px; }
}
.tour-prices__amount{
  font-family: var(--sf-font-heading);
  font-size: 22px;
  color: var(--sf-brown-dark);
  display:inline-flex;
  align-items:baseline;
  gap:8px;
}
.tour-prices__amount .sf-price-was{ font-size: 16px; }

/* Tour itinerary (multi-day) */
.tour-itinerary{ margin-top:10px; display:grid; gap:10px; }
.tour-itinerary__item{ border:1px solid var(--sf-border-warm); border-radius:14px; background:var(--sf-cream); box-shadow: 0 2px 0 var(--sf-border-warm); overflow:hidden; }
.tour-itinerary__toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  background: linear-gradient(180deg, var(--sf-notice-bg) 0%, var(--sf-cream) 80%);
  border:0;
  cursor:pointer;
  text-align:left;
  box-shadow:none;
}
.tour-itinerary__toggle:hover{ filter: brightness(1.01); transform:none; }
.tour-itinerary__toggle:active{ transform:none; box-shadow:none; }
.tour-itinerary__toggleText{
  font-family: var(--sf-font-heading);
  letter-spacing:.3px;
  font-size:15px;
  color:var(--sf-charcoal);
}
.tour-itinerary__chev{
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:var(--sf-cream);
  position:relative;
}
.tour-itinerary__chev::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:8px;
  height:8px;
  border-right:2px solid var(--sf-brown-dark);
  border-bottom:2px solid var(--sf-brown-dark);
  transform: translate(-50%,-60%) rotate(45deg);
  transition: transform .16s ease;
}
.tour-itinerary__toggle[aria-expanded="true"] .tour-itinerary__chev::before{
  transform: translate(-50%,-40%) rotate(-135deg);
}
.tour-itinerary__panel{ padding:0 14px 14px; }
.tour-itinerary__text{ color:var(--sf-charcoal); }
.tour-itinerary__text p{ margin:0 0 8px; line-height:1.7; }
.tour-itinerary__text p:last-child{ margin-bottom:0; }
.tour-itinerary__text ul, .tour-itinerary__text ol{ margin:8px 0 0 18px; }
.tour-itinerary__text li{ margin:4px 0; }

/* Stay option selector (Standard / Premium) */
.tour-stay{ margin:18px 0 10px; }
.tour-stay__label{ font-weight:800; letter-spacing:.2px; margin:0 0 6px; color:var(--sf-charcoal); }
.tour-stay__options{ display:flex; flex-wrap:wrap; gap:12px; }
.tour-stay__option{ display:block; cursor:pointer; }
.tour-stay__input{ position:absolute; opacity:0; pointer-events:none; }
.tour-stay__pill{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--sf-border-warm);
  background: linear-gradient(180deg, var(--sf-notice-bg) 0%, var(--sf-cream) 80%);
  box-shadow: 0 2px 0 var(--sf-border-warm);
  transition: transform .12s ease, filter .12s ease;
}
.tour-stay__option{
  /* 3 per row on desktop */
  flex: 0 0 calc((100% - 24px) / 3);
  max-width: calc((100% - 24px) / 3);
}
.tour-stay__name{ font-size:15px; }
.tour-stay__desc{ font-size:12.5px; }
.tour-stay--body{ margin: 35px 0 10px; }
.tour-stay__input:checked + .tour-stay__pill{
  border-color: rgba(212,149,42,.9);
  box-shadow: 0 2px 0 var(--sf-brown-effect), 0 0 0 2px rgba(212,149,42,.28) inset;
}

@media (max-width: 980px){
  .tour-stay__option{
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}
@media (max-width: 560px){
  .tour-stay{ margin:14px 0 8px; }
  .tour-stay__option{ flex: 1 1 100%; max-width: 100%; }
}

/* Important notes (tour page + popup) */
.tour-notes{
  margin-top: 14px;
  padding: 14px 14px 14px 54px;
  border: 1px solid rgba(65,60,40,.22);
  border-left: 8px solid var(--sf-brown-dark);
  border-radius: 16px;
  background: rgba(212,149,42,.18);
  box-shadow: none;
  position: relative;
}
.tour-notes::before{
  content: "!";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sf-gold);
  color: var(--sf-dark);
  font-family: var(--sf-font-heading);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 0 var(--sf-brown-effect);
}
.tour-notes .tour-popup__h3{
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  color: var(--sf-charcoal);
}
.tour-notes__list{
  margin: 8px 0 0 18px;
  padding: 0;
  color:var(--sf-charcoal);
}
.tour-notes__list li{ margin: 6px 0; line-height: 1.6; }

/* Booking form */
.sf-booking{
  margin-top:18px;
  background: var(--sf-linen);
  border: 1px solid var(--sf-border-soft);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(30, 22, 16, 0.08);
}
.sf-booking, .sf-booking *{ box-sizing:border-box; }
.sf-booking .tour-popup__h3{
  margin:0 0 14px !important;
  font-family: var(--sf-font-heading);
  letter-spacing: .4px;
  font-size: 26px;
  color:var(--sf-charcoal);
}
.sf-booking-form{ margin:0; }
.sf-booking-form[data-step="details"] .sf-step-contact{ display:none; }
.sf-booking-form[data-step="contact"] .sf-step-details{ display:none; }
.sf-booking-form[data-step="details"] .sf-booking-back,
.sf-booking-form[data-step="details"] .sf-booking-submit{ display:none; }
.sf-booking-form[data-step="contact"] .sf-booking-next{ display:none; }
.sf-booking-bar__actions{ display:flex; gap:10px; align-items:center; }
.sf-booking-back{ background: transparent !important; color: var(--sf-rust) !important; border:0 !important; box-shadow:none !important; padding: 14px 14px; font-weight: 600; }
.sf-booking-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}
.sf-field{ margin:0; min-width:0; }
.sf-field label{
  display:block;
  /* font-family: var(--sf-font-body); */
  font-weight: 700;
  margin:0 0 7px;
  color: var(--sf-charcoal);
  /* text-transform: uppercase; */
  /* letter-spacing: .6px; */
  font-size: 15px;
}
.sf-field input, .sf-field textarea{
  width:100%;
  max-width:100%;
  border:1px solid var(--sf-border-soft);
  border-radius:14px;
  padding:14px 14px;
  font-size:16px;
  background:var(--sf-cream);
}
.sf-field select{
  width:100%;
  max-width:100%;
  border:1px solid var(--sf-border-soft);
  border-radius:14px;
  padding:14px 14px;
  font-size:16px;
  background:var(--sf-cream);
}
.sf-field input:focus, .sf-field textarea:focus, .sf-field select:focus{
  outline: none;
  border-color: var(--sf-gold);
  box-shadow: 0 0 0 3px var(--sf-gold-mid);
}
.sf-field textarea{ resize: vertical; }
.sf-field--full, .sf-field--phone, .sf-field--notes{ grid-column: 1 / -1; }
.sf-help.sf-availability{ margin-top:6px; font-size:13px; opacity:.85; }

/* Add-ons (booking form) */
.sf-field--addons .sf-addons{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Guest types (people) */
.sf-field--people-types .sf-people-types{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
.sf-people-type{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.sf-people-type__label{
  font-weight: 500;
  font-size: 12px;
  line-height:1.15;
  color: var(--sf-charcoal) !important;
  min-width: 0;
  margin: 0;
}
.sf-people-type .sf-stepper{
  width: 100%;
  max-width: 100%;
}
.sf-people-total{
  font-weight:900;
  opacity:.85;
  padding:4px 2px 0;
  display:flex;
  justify-content:flex-end;
  grid-column: 1 / -1;
}
@media (min-width: 720px){
  .sf-people-type{ gap:8px; }
  .sf-people-type__label{ font-size: 12px; }
  .sf-people-type .sf-stepper{ width: 100%; }
}
@media (max-width: 520px){
  .sf-people-type{
    grid-template-columns: 1fr;
    align-items:flex-start;
  }
  .sf-people-type .sf-stepper{
    width:100%;
  }
  .sf-people-total{ justify-content:flex-start; }
}
.sf-field--addons .sf-addon{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border: 1px solid var(--sf-border-soft);
  background:var(--sf-cream);
  cursor:pointer;
  user-select:none;
}
.sf-field--addons .sf-addon:hover{
  border-color: var(--sf-gold);
  box-shadow: 0 0 0 3px var(--sf-gold-soft);
}
.sf-field--addons .sf-addon__check{
  display:grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap:10px;
  row-gap: 2px;
  align-items:start;
}
.sf-field--addons .sf-addon input[type="checkbox"]{
  width:20px;
  height:20px;
  margin:2px 0 0;
  flex:0 0 auto;
  accent-color: var(--sf-rust);
  border-radius: 6px;
  grid-column: 1;
  grid-row: 1 / span 2;
}
.sf-field--addons .sf-addon__label{
  flex:1;
  min-width:0;
  font-weight:800;
  color:var(--sf-charcoal);
  display:block;
  grid-column: 2;
  grid-row: 1;
}
.sf-field--addons .sf-addon__price{
  display:block;
  white-space: normal;
  font-weight: 700;
  font-size: 16px;
  opacity: .72;
  color: var(--sf-charcoal);
  margin-top: 0;
  grid-column: 2;
  grid-row: 2;
}
@media (max-width: 520px){
  .sf-field--addons .sf-addon{
    grid-template-columns: 1fr;
    align-items:stretch;
  }
  .sf-addon__qty{ justify-self:start; }
}
.sf-quote{
  margin:12px 0 12px;
  padding:10px 12px;
  border-radius:12px;
  background: var(--sf-orange-light-bg);
  border:1px solid var(--sf-border-warm);
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
}
.sf-quote__pp, .sf-quote__total{ font-size:16px; }
.sf-quote__total{ color: var(--sf-brown-dark); }
.sf-booking-result{ margin-top:10px; font-weight:700; }

/* Date + people controls */
.sf-control{ width:100%; }
.sf-field--people .sf-control,
.sf-field--rooms .sf-control,
.sf-field--nights .sf-control,
.sf-addon__qty .sf-control{
  display:flex;
}
.sf-field--people .sf-stepper,
.sf-field--rooms .sf-stepper,
.sf-field--nights .sf-stepper,
.sf-addon__qty .sf-stepper{
  flex: 0 0 auto;
  width: 100%;
  max-width: 360px; /* compact like guest-type controls */
}
@media (max-width: 720px){
  .sf-field--people .sf-stepper,
  .sf-field--rooms .sf-stepper,
  .sf-field--nights .sf-stepper,
  .sf-addon__qty .sf-stepper{
    max-width: 100%;
  }
}
.sf-date{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
}
.sf-date__display{
  flex:1;
  cursor:pointer;
}
.sf-cal{
  position:absolute;
  left:0;
  right:0;
  top: calc(100% + 8px);
  background:var(--sf-cream);
  border:1px solid var(--sf-border-soft);
  border-radius:14px;
  padding:12px;
  box-shadow: 0 12px 32px rgba(30, 22, 16, 0.1);
  z-index: 50;
}
.sf-cal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.sf-cal__month{ font-weight:900; color:var(--sf-charcoal); }
.sf-cal__nav{
  width:34px;
  height:34px;
  padding:0 !important;
  border-radius:12px;
  border:1px solid var(--sf-border-soft);
  background:var(--sf-cream) !important;
  font-weight:900;
  cursor:pointer;
  box-shadow:none !important;
  color:var(--sf-charcoal) !important;
  transform:none !important;
  transition: background .15s ease, border-color .15s ease !important;
}
.sf-cal__nav:hover{ background: var(--sf-paper) !important; border-color: var(--sf-border-warm) !important; }
.sf-cal__nav:focus-visible{ outline:2px dashed var(--sf-gold); outline-offset:3px; }
.sf-cal__dow{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:6px;
  margin-bottom:6px;
}
.sf-cal__dowCell{ text-align:center; font-size:12px; font-weight:900; opacity:.7; }
.sf-cal__days{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:6px;
}
.sf-cal__day{
  height:34px;
  padding:0 !important;
  border-radius:12px;
  border:1px solid var(--sf-border-soft);
  background:var(--sf-cream) !important;
  font-weight:800;
  cursor:pointer;
  box-shadow:none !important;
  color:var(--sf-charcoal) !important;
  transform:none !important;
  transition: background .12s ease, border-color .12s ease !important;
}
.sf-cal__day:focus-visible{ outline:2px dashed var(--sf-gold); outline-offset:3px; }
.sf-cal__day.is-disabled{ opacity:.35; cursor:not-allowed; }
.sf-cal__day:not(.is-disabled):hover{ background: rgba(212,149,42,.14) !important; }

.sf-stepper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  border:1px solid var(--sf-border-soft);
  border-radius:14px;
  padding:6px;
  background:var(--sf-cream);
}
.sf-stepper__btn{
  width:32px;
  height:32px;
  padding:0 !important;
  border-radius:12px;
  border:0 !important;
  background: var(--sf-clay) !important;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
  box-shadow: inset 0 -2px 0 var(--sf-rust) !important;
  color:var(--sf-paper) !important;
  transform:none !important;
  transition: filter .15s ease, background .15s ease !important;
}
.sf-stepper__btn:focus-visible{ outline:2px dashed var(--sf-gold); outline-offset:3px; }
.sf-stepper__btn:hover{ filter: brightness(1.06); background: var(--sf-gold) !important; }
.sf-stepper__value{
  flex:1;
  text-align:center;
  font-weight:900;
  font-size:14px;
}

/* Sticky bottom bar: total + breakdown left, button right */
.sf-booking-bar{
  position: sticky;
  bottom: 10px;
  margin-top: 12px;
  padding: 12px;
  background: var(--sf-dark);
  border: 1px solid rgba(212, 149, 42, 0.15);
  border-radius:16px;
  box-shadow: 0 14px 34px rgba(18, 13, 8, 0.35);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  z-index: 5;
}
.sf-booking-bar__left{ min-width:0; }
.sf-booking-bar__total{
  font-weight:900;
  font-size:18px;
  color: var(--sf-paper);
}
.sf-booking-bar__details{
  margin-top:2px;
  font-size:13px;
  color: rgba(242, 234, 216, 0.78);
  opacity:1;
}
.sf-booking-form--no-quote .sf-booking-bar__total,
.sf-booking-form--no-quote .sf-booking-bar__details{
  display: none !important;
}

/* Booking bar: same pill chrome as site CTAs */
.sf-booking-bar .btn,
.sf-booking-bar .btn.btn--solid{
  font-size: var(--sf-btn-font-size);
  padding: var(--sf-btn-padding);
  font-weight: var(--sf-btn-font-weight);
  letter-spacing: var(--sf-btn-letter-spacing);
  text-transform: var(--sf-btn-text-transform);
  border-radius: var(--sf-btn-radius);
  line-height: 1.3;
}

/* Send request / Pay securely (not PayPal buttons): orange CTA on dark bar */
.sf-booking-bar .sf-booking-submit:not(.sf-booking-submit--paypal):not(.sf-booking-submit--paypal-card){
  color: #fff !important;
  background: var(--sf-cta-orange) !important;
  box-shadow: none !important;
  border-radius: var(--sf-btn-radius) !important;
  font-weight: var(--sf-btn-font-weight) !important;
  font-size: var(--sf-btn-font-size) !important;
  letter-spacing: var(--sf-btn-letter-spacing) !important;
  text-transform: var(--sf-btn-text-transform) !important;
  padding: var(--sf-btn-padding) !important;
  line-height: 1.3 !important;
  transition: var(--sf-btn-transition) !important;
}

/* Hover/focus: global touch reset + .btn:hover can inherit bar colors — keep labels readable */
.sf-booking-bar .btn.btn--solid:hover,
.sf-booking-bar .btn.btn--solid:focus-visible{
  color: #fff !important;
  background: var(--sf-cta-orange) !important;
  box-shadow: none !important;
  filter: brightness(1.05) !important;
  transform: translateY(-1px) !important;
  opacity: 1 !important;
}
.sf-booking-bar .sf-booking-back:hover,
.sf-booking-bar .sf-booking-back:focus-visible{
  color: #fff !important;
  background: var(--sf-cta-orange) !important;
  box-shadow: none !important;
  filter: brightness(1.06) !important;
  opacity: 1 !important;
}
.sf-booking-bar .sf-booking-submit--paypal:hover,
.sf-booking-bar .sf-booking-submit--paypal:focus-visible{
  background: #ffc439 !important;
  color: #003087 !important;
  border: 0 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.12) !important;
  filter: brightness(0.97) !important;
  opacity: 1 !important;
}
.sf-booking-bar .sf-booking-submit--paypal-card:hover,
.sf-booking-bar .sf-booking-submit--paypal-card:focus-visible{
  background: #2c2e2f !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.15) !important;
  filter: brightness(1.06) !important;
  opacity: 1 !important;
}
.sf-booking-bar .sf-booking-submit:not(.sf-booking-submit--paypal):not(.sf-booking-submit--paypal-card):hover,
.sf-booking-bar .sf-booking-submit:not(.sf-booking-submit--paypal):not(.sf-booking-submit--paypal-card):focus-visible{
  color: #fff !important;
  background: var(--sf-cta-orange) !important;
  box-shadow: none !important;
  filter: brightness(1.06) !important;
  opacity: 1 !important;
}

.sf-booking-bar__actions{ flex-wrap: wrap; justify-content:flex-end; }

/* Sidebar/mobile typography tuning */
@media (max-width: 720px){
  .sf-booking{ padding: 14px; border-radius: 16px; }
  .sf-booking .tour-popup__h3{
    font-size: 22px;
    letter-spacing: .6px;
    margin-bottom: 12px !important;
  }
  .sf-field label{ font-size: 16px;  }
  .sf-field input, .sf-field textarea, .sf-field select{
    font-size: 15px;
    padding: 12px 12px;
    border-radius: 12px;
  }
  .sf-stepper{ border-radius: 14px; }
  .sf-stepper__value{ font-size: 15px; }
  .sf-booking-bar{
    padding: 10px;
    border-radius: 14px;
    gap: 10px;
  }
  .sf-booking-bar__total{ font-size: 16px; }
  .sf-booking-bar__details{ font-size: 12px; }
  .sf-booking-bar__actions{ width:100%; }
  .sf-booking-bar__actions .btn{ flex: 1 1 0; text-align:center; justify-content:center; }
}
.sf-booking-submit{ margin:0; white-space:nowrap; }
@media (max-width: 720px){
  .sf-booking-grid{ grid-template-columns: 1fr; }
  .sf-quote{ flex-direction:column; align-items:flex-start; }
  .sf-booking-bar{ flex-direction:column; align-items:stretch; }
  .sf-booking-submit{ width:100%; text-align:center; }
}
.tour-stay__option:hover .tour-stay__pill{ transform: translateY(-1px); filter: brightness(1.01); }
.tour-stay__name{ font-family: var(--sf-font-heading); letter-spacing:.3px; color:var(--sf-charcoal); }
.tour-stay__desc{ font-size:13px; opacity:.85; line-height:1.35; color:var(--sf-charcoal); }
.tour-stay__input:checked + .tour-stay__pill{
  border-color: rgba(212,149,42,.9);
  box-shadow: 0 2px 0 var(--sf-brown-effect), 0 0 0 2px rgba(212,149,42,.35) inset;
}
.tour-popup__faqs{ margin-top:6px; }
.tour-popup__faqs details{ border-top:1px solid var(--sf-border-warm); padding:8px 0; }
.tour-popup__faqs details:first-child{ border-top:0; }
.tour-popup__faqs summary{ cursor:pointer; font-weight:800; list-style:none; }
.tour-popup__faqs .faq-body{ margin-top:6px; color:var(--sf-ash); }

/* Align badges and title area */
.tour-popup__badges{ display:flex; gap:6px; flex-wrap:nowrap; overflow:auto; padding-bottom:4px; }
.tour-popup__title{ margin-top:4px; }

/* Close button tweaks */
.tour-popup__close{ position:absolute; top:12px; right:12px; border:0; background:transparent; width:36px; height:36px; display:grid; place-items:center; cursor:pointer; z-index:20; padding:0; box-shadow:none; }
.tour-popup__close::before,.tour-popup__close::after{ content:none !important; }
.tour-popup__close svg{ width:22px; height:22px; stroke: var(--sf-ash); stroke-width:2.2; stroke-linecap:round; fill:none; }
@media (max-width:640px){ .tour-popup__close{ top:10px; right:10px; width:34px; height:34px; } }

/* Prevent image/close collision on mobile by adding a little top gap */
@media (max-width:640px){ .tour-popup__head{ margin-top:26px; } }

/* Footer */
.site-footer{ padding: 20px 0px 0 0px; border-top:1px solid rgba(140, 74, 32, 0.12); background: var(--sf-cream); color: var(--sf-ash); }
.site-footer a{ color: var(--sf-charcoal); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }
.site-footer .footer__left{ display:flex; flex-direction:column; gap:6px; }
.site-footer .footer__paypal{ display:flex; align-items:center; justify-content:flex-start; width:100%; margin-top:8px; line-height:0; }
.site-footer .footer__paypal img{ height:70px; width:auto; display:block; }
@media (max-width:640px){
  .site-footer .footer__inner{ flex-direction: column-reverse !important; align-items:center !important; text-align:center; gap:10px; }
  .site-footer .footer-legal{ width:100%; display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
  .site-footer .footer-legal a{ display:inline-block; color: var(--sf-brown-dark) !important; font-weight:700;  letter-spacing:.2px; }
  .site-footer .footer-legal a:hover{ filter:none; }
  .site-footer .footer-legal span{ display:none; }
}

/* Footer image banner */
.footer-image{ height: 300px; overflow:hidden; }
.footer-image img{ width:100%; height: 460px; display:block; object-fit:cover; object-position: top center; }

/* Performance: avoid delaying the above-the-fold hero */
/* Removed content-visibility on hero to improve LCP */
/* Note: image lazy-loading is handled via HTML attributes where needed */

/* -------------------------------------------------------------------------- */
/* Hotel / Camp Landing Page                                                   */
/* -------------------------------------------------------------------------- */
.sf-hotel-landing{ background:var(--sf-cream); }
.sf-hotel-hero{
  position:relative;
  padding: 54px 0 44px;
  background:
    linear-gradient(180deg, rgba(20,16,12,.70), rgba(20,16,12,.25) 55%, var(--sf-cream) 100%),
    var(--hero),
    radial-gradient(1200px 500px at 30% 10%, rgba(212,149,42,.18), transparent 60%),
    linear-gradient(180deg, #2b241c, var(--sf-paper) 70%, var(--sf-cream));
  background-size: cover;
  background-position: center;
  color:#fff;
  overflow:hidden;
}
.sf-hotel-hero__inner{ max-width: 980px; }
.sf-hotel-hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:800;
  letter-spacing:.3px;
  font-size: 12px;
}
.sf-hotel-hero__title{
  margin: 10px 0 6px;
  font-family: var(--sf-font-heading);
  font-size: 46px;
  line-height: 1.02;
  letter-spacing:.6px;
  font-weight: 700;
}
.sf-hotel-hero__subtitle{
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.45;
  opacity: .95;
}
.sf-hotel-hero__actions{ margin-top: 16px; display:flex; gap:10px; flex-wrap:wrap; }
.sf-hotel-section{ padding: 28px 0; }
.sf-hotel-section--intro{ padding-top: 18px; }
.sf-hotel-h2{
  margin: 0 0 8px;
  font-family: var(--sf-font-heading);
  letter-spacing: .4px;
  font-size: 34px;
  font-weight: 700;
  color: var(--sf-charcoal);
}
.sf-hotel-muted{ margin: 0 0 14px; opacity:.85; color:var(--sf-charcoal); }
.sf-hotel-grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sf-hotel-card{
  border:1px solid var(--sf-border-warm);
  background: var(--sf-cream);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
}
.sf-hotel-card__title{ font-weight:900; margin: 0 0 6px; color: var(--sf-charcoal); }
.sf-hotel-card__text{ margin:0; color:var(--sf-charcoal); opacity:.9; line-height:1.45; }
.sf-hotel-steps{
  margin: 10px 0 0;
  padding-left: 18px;
  color:var(--sf-charcoal);
}
.sf-hotel-steps li{ margin: 8px 0; line-height: 1.45; }
.sf-hotel-stays{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sf-hotel-section--cta{ padding-bottom: 44px; }
.sf-hotel-cta{
  border-radius: 16px;
  padding: 18px;
  border:1px solid var(--sf-border-warm);
  background:
    radial-gradient(900px 360px at 20% 0%, rgba(212,149,42,.16), transparent 55%),
    linear-gradient(180deg, var(--sf-cream), var(--sf-paper));
}
.sf-hotel-cta__title{ font-weight: 900; font-size: 18px; color: var(--sf-charcoal); }
.sf-hotel-cta__text{ margin-top: 6px; color:var(--sf-charcoal); opacity:.9; max-width: 70ch; }
.sf-hotel-cta__actions{ margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; }
@media (max-width: 980px){
  .sf-hotel-stays{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-hotel-grid3{ grid-template-columns: 1fr; }
  .sf-hotel-hero__title{ font-size: 38px; }
}
@media (max-width: 640px){
  .sf-hotel-hero{ padding: 44px 0 34px; }
  .sf-hotel-hero__title{ font-size: 34px; }
  .sf-hotel-stays{ grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------- */
/* Hotel-style single tour (per-night)                                         */
/* -------------------------------------------------------------------------- */

/* Sticky bottom CTA: visible until booking form is in view */
.sf-sticky-cta{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--sf-dark);
  box-shadow: 0 -4px 20px rgba(18, 13, 8, 0.45);
  transform: translateY(0);
  transition: transform .25s ease, opacity .25s ease;
}
.sf-sticky-cta.is-hidden{
  transform: translateY(100%);
  pointer-events: none;
  opacity: 0;
}
.sf-sticky-cta__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: min(1200px, 96%);
  margin: 0 auto;
}
.sf-sticky-cta__price{
  font-family: var(--sf-font-heading);
  font-size: 18px;
  color: var(--sf-paper);
}
.sf-sticky-cta__from{ font-family: var(--sf-font-body); font-size: 12px; text-transform: lowercase; opacity: .9; margin-right: 6px; font-weight: 500; }
.sf-sticky-cta__amount{ font-size: 32px; font-weight: 700; }
.sf-sticky-cta__amount{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
}
.sf-sticky-cta__amount .sf-price-was{ font-size: 18px; }
.sf-sticky-cta__unit{ font-size: 14px; opacity: .85; margin-left: 2px; }
.sf-sticky-cta__btn{
  flex-shrink: 0;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  background: var(--sf-cta-orange) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--sf-cta-radius);
  box-shadow: none;
}
.sf-sticky-cta__btn:hover{ filter: brightness(1.06); background: var(--sf-cta-orange) !important; color: #fff !important; }
.sf-sticky-cta__btn:focus-visible{ outline: 2px dashed rgba(255, 255, 255, 0.85); outline-offset: 3px; }
@media (min-width: 981px){
  .sf-sticky-cta{ padding: 14px 24px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .sf-sticky-cta__price{ font-size: 20px; }
  .sf-sticky-cta__from{ font-size: 13px; }
  .sf-sticky-cta__amount{ font-size: 26px; }
  .sf-sticky-cta__btn{ padding: 14px 24px; font-size: 18px; }
}

.sf-stay-hero-desktop{ display:none; }
.sf-stay{ background:var(--sf-cream); border-radius: 16px; overflow:hidden; }
.sf-stay.sf-stay--hotel{ overflow: visible; }
.sf-stay.sf-stay--tour{ overflow: visible; }

/* Horizontal clip: must NOT live on `article.sf-stay` — it traps `position:sticky` for `.sf-stay-nav` (sibling of layout). Clip content columns instead. */
.sf-stay.sf-stay--tour .sf-stay-layout,
.sf-stay.sf-stay--hotel .sf-stay-layout,
.sf-stay.sf-stay--tour .sf-tour-reviews-below,
.sf-stay.sf-stay--hotel .sf-tour-reviews-below{
  overflow-x: clip;
}
.sf-stay.sf-stay--tour .sf-stay-main,
.sf-stay.sf-stay--hotel .sf-stay-main{
  /* Keep words intact; only break very long strings */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.sf-stay-hero{
  position:relative;
  min-height: 800px;
  background:
    radial-gradient(1200px 520px at 18% 10%, rgba(212,149,42,.18), transparent 60%),
    var(--hero, none),
    linear-gradient(180deg, #0f0c08, #2b241c 55%, var(--sf-paper));
  background-size: cover;
  background-position: center;
  color:#fff;
  display:block;
  padding: 0;
  overflow:hidden;
}
.sf-stay-hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  opacity:0; /* only used on mobile */
}
.sf-stay-hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0%), rgba(0, 0, 0, .82));
  z-index: 1;
}
.sf-stay-hero__inner{
  position:relative;
  padding: 0;
  min-height: 800px;
  display:flex;
  align-items:flex-start;
  padding-top: clamp(240px, 18vh, 340px);
  padding-bottom: 30px;
  z-index: 2;
}
.sf-stay-hero__grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 18px;
  align-items:start;
  width:100%;
}
.sf-stay-hero__copy{ min-width:0; }
.sf-stay-hero__copy{ color:#fff; }
.sf-stay-hero__copy h1,
.sf-stay-hero__copy h2,
.sf-stay-hero__copy .sf-stay-hero__title,
.sf-stay-hero__copy .sf-stay-hero__subtitle,
.sf-stay-hero__copy .sf-stay-hero__price,
.sf-stay-hero__copy .sf-stay-price__from,
.sf-stay-hero__copy .sf-stay-price__amount,
.sf-stay-hero__copy .sf-stay-price__unit,
.sf-stay-hero__copy .sf-hero-social-proof{ color:#fff; }
.sf-stay-hero__subtitle{ color: rgba(255,255,255,.92); }
.sf-stay-hero__price{ color:#fff; }
.sf-stay-hero__price{
  margin-top: 12px;
  letter-spacing: .2px;
  font-family: var(--sf-font-heading);
}
.sf-stay-price__from{
  font-family: var(--sf-font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
  opacity: .9;
  margin-right: 6px;
}
.sf-stay-price__amount{
  font-family: var(--sf-font-heading);
  font-size: 32px;
  font-weight: 700;
}
.sf-stay-price__amount{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
}
.sf-stay-price__amount .sf-price-was{ font-size: 18px; }
.sf-stay-price__unit{
  font-family: var(--sf-font-body);
  font-size: 16px;
  font-weight: 500;
  opacity: .9;
  margin-left: 6px;
}

.sf-stay-slider{
  margin: 0 0 16px;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: var(--sf-dark);
  outline: none;
}
.sf-stay-slider:focus-visible{
  box-shadow: 0 0 0 3px rgba(212,149,42,.55);
}
.sf-stay-slider__track{
  display: flex;
  transition: none; /* no animation */
  will-change: transform;
  position: relative;
  z-index: 1;
  border: 0;
}
.sf-stay-slider__slide{
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  background: var(--sf-dark);
  border: 0;
}
.sf-stay-slider__img,
.sf-stay-slider__slide img{
  display:block;
  width:100%;
  height:100%;
  border: 0;
  outline: 0;
}
.sf-stay-slider__slide img{ object-fit: cover; }

.sf-stay-slider__btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  /* Hard reset (avoid inheriting global button styles) */
  -webkit-appearance: none;
  appearance: none;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;            /* no border */
  border-radius: 0 !important;
  background: none !important;     /* no background */
  box-shadow: none !important;
  color: #fff;                     /* buttons only white */
  transition: none !important;     /* no animation */
  cursor: pointer;
  z-index: 5;                  /* ensure above slide links */
  pointer-events: auto !important;
}
.sf-stay-slider__btn:hover{
  opacity: 1;
  transform: translateY(-50%) !important; /* prevent hover/active movement */
}
.sf-stay-slider__btn:hover::before{
  background: transparent;
  opacity: 1;
}
.sf-stay-slider__btn:active{
  transform: translateY(-50%) !important; /* prevent click movement */
}
.sf-stay-slider__btn--prev{ left: 12px; }
.sf-stay-slider__btn--next{ right: 12px; }
.sf-stay-slider__btn::before{
  position: absolute;
  background: transparent;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  content: "\2039"; /* single left-pointing angle — compact prev */
  margin: 0;
  border: 0;
  border-radius: 0;
  text-shadow: 0 0 2px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35);
  pointer-events: none;         /* click always hits the button */
}
.sf-stay-slider__btn--next::before{ content: "\203A"; /* single right-pointing angle */ }

.sf-stay-slider__dots{
  position:absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display:flex;
  gap: 8px;
  z-index: 2;
}
.sf-stay-slider__dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;                 /* no border */
  background: var(--sf-cream);          /* one color */
  opacity: .35;              /* inactive state */
  cursor: pointer;
  padding: 0;
}
.sf-stay-slider__dot.is-active{
  opacity: 1;
}

.sf-stay-slider.is-single .sf-stay-slider__btn,
.sf-stay-slider.is-single .sf-stay-slider__dots{ display:none; }

@media (max-width: 640px){
  .sf-stay-slider__slide{ aspect-ratio: 4 / 3; }
  .sf-stay-slider__btn{ width: 40px; height: 40px; }
  .sf-stay-slider__btn--prev{ left: 10px; }
  .sf-stay-slider__btn--next{ right: 10px; }
}
.sf-stay-hero__media{ justify-self:end; }
.sf-stay-hero__media img{
  width: 100%;
  height: 800px;
  display:block;
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.sf-stay-hero__badges{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.sf-stay-badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:800;
  font-size: 12px;
  letter-spacing:.2px;
}
.sf-stay-hero__title{
  margin: 0 0 6px;
  font-family: var(--sf-font-heading);
  font-size: 44px;
  line-height: 1.02;
  letter-spacing:.6px;
  font-weight: 700;

}
.sf-stay-hero__subtitle{ max-width: 65ch; opacity:.95; }

/* Hotel / per-night hero: display headline + left-aligned tagline */
.sf-stay--hotel .sf-stay-hero__title{
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
}
.sf-stay--hotel .sf-stay-hero__subtitle{
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  max-width: 38rem;
  font-size: clamp(15px, 2.1vw, 19px);
  line-height: 1.45;
}
.sf-stay--hotel .sf-stay-hero__copy{
  text-align: left;
}
.sf-stay--hotel .sf-hero-cta-wrap{
  justify-content: flex-start;
}
.sf-hero-cta-wrap{ margin-top: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sf-hero-cta-wrap .sf-stay-hero__cta{ margin-top: 0; }
.sf-hero-social-proof{
  font-family: var(--sf-font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  letter-spacing: .02em;
}
a.sf-hero-social-proof{
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s ease;
}
a.sf-hero-social-proof:hover{ opacity: 1; color: #fff; }
a.sf-hero-social-proof:focus-visible{ outline: 2px solid rgba(255,255,255,.8); outline-offset: 4px; }
.sf-stay-hero__cta{ margin-top: 14px; display:inline-flex; }
.sf-stay-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "main aside";
  gap: 18px;
  /* Match single-tour "panel" feel (tour-popup padding) */
  padding: 18px 70px 24px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.sf-stay-layout.sf-stay-layout--no-booking{
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "main";
}
.sf-stay-main{ min-width:0; grid-area: main; }
.sf-stay-aside{
  position: sticky;
  top: 16px;
  align-self:start;
  grid-area: aside;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sf-booking--aside{ border:1px solid var(--sf-border-warm); border-radius: 14px; padding: 14px; background:var(--sf-cream); box-shadow: 0 10px 34px rgba(0,0,0,.06); }
.sf-booking--aside{
  border: 1px solid var(--sf-border-soft);
  background: var(--sf-linen);
}
.sf-booking--aside{ overflow: visible; }
.sf-booking--aside .sf-booking-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-booking--aside .sf-field--full,
.sf-booking--aside .sf-field--phone,
.sf-booking--aside .sf-field--notes,
.sf-booking--aside .sf-field--date{ grid-column: 1 / -1; }
.sf-booking--aside .sf-date{ width:100%; }
.sf-booking--aside .sf-cal{ max-width: 100%; }

@media (max-width: 720px){
  .sf-booking--aside .sf-booking-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Below 1250px: move booking form under content */
@media (max-width: 1250px){
  .sf-stay-layout{
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "aside";
    /* Avoid 70px sides + container margins eating the whole row on tablets. */
    padding-left: clamp(12px, 4vw, 40px);
    padding-right: clamp(12px, 4vw, 40px);
  }
  .sf-stay-aside{ position: static; }
}

.sf-stay{ border-radius: 0; }

.sf-stay-h2{
  margin: 14px 0 10px;
  font-family: var(--sf-font-heading);
  letter-spacing: .4px;
  font-size: 30px;
  color: var(--sf-charcoal);
}

@media (max-width: 980px){
  .sf-stay-layout{
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "aside";
    padding-left: 10px;
    padding-right: 10px;
  }
  body.single-tour .sf-stay-layout{
    padding-left: 20px;
    padding-right: 20px;
  }
  .sf-stay-aside{ position: static; }
  .sf-stay-hero__title{ font-size: 36px; }
  .sf-stay--hotel .sf-stay-hero__title{ font-size: clamp(28px, 7.5vw, 52px); }
  .sf-stay-hero__grid{ grid-template-columns: 1fr; align-items:start; }
  .sf-stay-hero{ min-height: 460px; padding: 44px 0 0px }
  .sf-stay-hero__inner{ min-height: 0; display:block; }
  /* Tablet: keep the image as a normal block (not background). */
  .sf-stay-hero__media{ justify-self:start; }
  .sf-stay-hero__media img{ height: 320px; border-radius: 16px; }
  .sf-stay-hero__overlay{
    background: linear-gradient(180deg, rgb(0 0 0 / 0%), rgba(0, 0, 0, .82));
  }
}

/* Single tour: site header is position:absolute (≤1280px) — it does not push content down, so pad the hero */
@media (max-width: 1280px) and (min-width: 981px){
  body.single-tour .sf-stay-hero-desktop{
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--sticky-offset, 56px) + 14px);
    padding-bottom: 10px;
  }
}
@media (max-width: 980px){
  body.single-tour .sf-stay-hero{
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--sticky-offset, 56px) + 12px);
  }
}

/* Desktop hero (separate, like old single tour) */
@media (min-width: 981px){
  .sf-stay-hero-desktop{ display:block; padding: 22px 0 10px; background: var(--sf-dark); }
  .sf-stay-hero--mobile{ display:none; }
  .sf-stay-hero-desktop__wrap{
    display:grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 22px;
    align-items:start;
    padding-left: 70px;
    padding-right: 70px;
    box-sizing: border-box;
  }
  .sf-stay-hero-desktop__media{
    aspect-ratio: 2 / 2.5;
    border-radius: 18px;
    overflow:hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    background:var(--sf-cream);
  }
  .sf-stay-hero-desktop__media img{ width:100%; height:100%; object-fit:cover; display:block; }
  .sf-stay-hero-desktop__badges{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
  /* Single tour/stay desktop hero: compact uppercase display title */
  .sf-stay-hero-desktop__title{
    margin: 0 0 6px;
    font-family: var(--sf-font-heading);
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color:#fff;
    font-weight: 700;
    text-transform: uppercase;
  }
  .sf-stay-hero-desktop__subtitle{ max-width: 70ch; color: rgba(255,255,255,.90); opacity:1; }
  .sf-stay--hotel .sf-stay-hero-desktop__subtitle{
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    max-width: 38rem;
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 1.45;
  }
  .sf-stay--hotel .sf-stay-hero-desktop__info{
    text-align: left;
  }
  .sf-stay--hotel .sf-hero-cta-wrap{
    justify-content: flex-start;
  }
  .sf-stay-hero-desktop__price{
    margin-top: 14px;
    letter-spacing: .2px;
    font-family: var(--sf-font-heading);
    color: #fff;
  }
  .sf-stay-hero-desktop__price .sf-stay-price__from{ font-size: 13px; }
  .sf-stay-hero-desktop__price .sf-stay-price__amount{ font-size: 56px; font-weight: 700; }
  .sf-stay-hero-desktop__price .sf-stay-price__unit{ font-size: 20px; }
  .sf-hero-cta-wrap{ margin-top: 14px; }
  .sf-hero-cta-wrap .sf-stay-hero-desktop__cta{ margin-top: 0; }
  .sf-hero-social-proof{ font-size: 15px; color: rgba(255,255,255,.92); }
  .sf-stay-hero-desktop__cta{ margin-top: 14px; display:inline-flex; }
}

/* Mobile-ish: use the hero image as background (no image card). */
@media (max-width: 840px){
  .sf-stay-hero__media{ display:none !important; }
  .sf-stay-hero__bg{ opacity:1; }
  .sf-stay-hero{
    background: linear-gradient(180deg, #0f0c08, #2b241c 55%, var(--sf-paper));
  }
  .sf-stay-hero__overlay{
      background: linear-gradient(180deg, rgb(0 0 0 / 0%), var(--sf-dark));
  
  }
}