/* Archivo (headings) is a neutral, sturdy modern grotesque - clean and
   confident without the whimsy of a display serif or the softness of a
   rounded sans. Paired with Inter for clean, neutral body text. */

/* Fonts are stored locally in /fonts (no requests to Google, no tracking).
   Licenses: fonts/LICENSE-Inter.txt and fonts/LICENSE-Archivo.txt (SIL OFL 1.1). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2");
}

/* =================================================
   CSS VARIABLES - change colors/spacing here globally
   ================================================= */
:root {
  /* Colors - jungle green + warm accent */
  --color-primary: #2d5f3f;
  --color-primary-dark: #1e4029;
  --color-accent: #d99a3d;
  --color-accent-dark: #b87f2b;  --color-accent-soft: rgba(217, 154, 61, 0.14);
  --color-accent-soft-border: rgba(217, 154, 61, 0.28);  --color-danger-dark: #b5443d;
  --color-danger-soft: rgba(197, 68, 61, 0.1);
  --color-danger-soft-border: rgba(197, 68, 61, 0.3);  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1eab52;
  --color-instagram: #c1327a;
  --color-instagram-dark: #9c2762;
  --color-text: #2b2b2b;
  --color-text-light: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f1ea;
  --color-bg-accent: #f8dda2;
  --color-border: #e0ddd4;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Layout */
  --max-width: 1100px;
  --radius: 14px;
  /* Fallback before nav.js measures the real header height; kept close to it
     so there's no visible layout jump once JS runs. */
  --header-height: 73px;

  /* A gentle wave silhouette (solid fill on transparent) used purely as a
     mask shape - see .tours/.whats-included below - so the actual visible
     color still comes from each element's own background-color variable. */
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,32 C240,90 480,0 720,40 C960,80 1200,10 1440,56 L1440,100 L0,100 Z' fill='%23000'/%3E%3C/svg%3E");

  /* Elevation - subtle shadows for depth (used on cards, buttons, sticky header) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.14);

  /* Diagonal hairline pattern shown behind images that have no src yet */
  --image-missing: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 14px
  );
}

/* =================================================
   RESET / BASE
   ================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  /* Reserves the header's own height since it's now position: fixed and no
     longer occupies space in normal flow. */
  padding-top: var(--header-height);
}

/* Anchor targets for the nav's #hero/#about/#contact links, so the fixed
   header (shown or freshly revealed) doesn't cover the section's heading. */
section[id] {
  scroll-margin-top: var(--header-height);
}

h1, h2, h3 {
  font-family: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
  position: relative;
  padding-bottom: var(--spacing-md);
}

/* Short accent rule under every section heading, gives sections a visual anchor
   instead of just centered bold text. */
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--color-accent);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* Consistent keyboard-focus ring across links, buttons, and the FAQ toggles.
   :focus-visible skips the ring for mouse clicks and only shows it for keyboard/assistive use. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

/* =================================================
   BUTTONS
   ================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
}

.btn-instagram {
  background-color: var(--color-instagram);
  color: #fff;
}
.btn-instagram:hover {
  background-color: var(--color-instagram-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* =================================================
   HEADER / NAVIGATION
   ================================================= */
/* Fixed so it can float over page content once it reappears mid-page (see
   nav.js): visible by default, slides up out of view while scrolling down
   or after a few seconds of no scrolling, and slides back in on any
   upward scroll. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.navbar {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  gap: var(--spacing-md);
}

.nav-logo {
  font-family: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Chip-style links: a soft accent background/border on hover and keyboard
   focus, instead of only a text color change, so they read as interactive. */
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  color: var(--color-text);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: var(--color-accent-soft);
  border-color: var(--color-accent-soft-border);
  color: var(--color-primary-dark);
}

/* Hamburger toggle - hidden on wide screens, shown once the nav links no
   longer fit in one row (see the max-width: 700px block below). */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background-color: var(--color-accent-soft);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background-color: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown submenu (the "Info" item, see nav.js): the parent link keeps
   going to the hub page, the arrow button next to it opens the submenu. */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-row {
  display: flex;
  align-items: center;
}

.nav-dropdown-row a {
  padding-right: 0.4rem;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  background-color: var(--color-accent-soft);
  border-color: var(--color-accent-soft-border);
}

/* Small chevron drawn with borders, so no icon font or image is needed. */
.nav-dropdown-arrow {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: translateY(2px) rotate(-135deg);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  padding: var(--spacing-sm);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 110;
}

.nav-dropdown.is-open .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: block;
  font-weight: 500;
}

/* Open on mouse hover on wide screens only; touch devices use the button. */
@media (hover: hover) and (min-width: 701px) {
  .nav-dropdown:hover .nav-submenu {
    display: block;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.is-open {
    /* Fits all links plus an expanded submenu; scrolls on very short screens. */
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }

  /* Inside the mobile menu the submenu expands in place, indented. */
  .nav-dropdown-row {
    justify-content: space-between;
  }

  .nav-dropdown-row a {
    flex: 1;
  }

  .nav-dropdown-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    padding: 0 0 0 var(--spacing-md);
    border: none;
    box-shadow: none;
  }
}


/* =================================================
   HERO SECTION
   ================================================= */
.hero {
  position: relative;
  max-width: none;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: var(--color-primary-dark);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn,
.contact-buttons .btn {
  flex: 1 1 220px;
  max-width: 320px;
}

@media (max-width: 560px) {
  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
    /* stretch (not center) + width: fit-content below: the group shrinks
       to whichever button's label is widest, and align-items: stretch
       makes the other button match that width instead of hugging its own
       (shorter) text - that's what kept both buttons the same width
       before, without going back to a fragile fixed pixel value. */
    align-items: stretch;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons .btn,
  .contact-buttons .btn {
    /* Width used to be a fixed 260px, but that left the WhatsApp button's
       label only a few px of breathing room after the Inter font swap -
       any slightly wider font rendering (browser/device differences) was
       enough to wrap it to two lines. Sizing to content (via the fit-content
       group above) instead removes that fragility entirely. */
    width: 100%;
    max-width: min(100%, 300px);
    flex-basis: auto;
    white-space: nowrap;
  }
}

/* =================================================
   ABOUT SECTION
   ================================================= */
.about-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 300px;
  width: min(100%, 400px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-color: var(--color-bg-alt);
  background-image: var(--image-missing);
  background-size: cover;
  background-position: center;
  object-fit: cover; /* crop instead of stretching photos with another ratio */
  box-shadow: var(--shadow-sm);
}

/* Upright photo variant (e.g. about.html) */
.about-image-portrait {
  aspect-ratio: 3 / 4;
  max-width: 340px;
}

.about-text {
  flex: 1 1 400px;
}

.about-text p {
  margin-bottom: var(--spacing-md);
}

/* Once image and text stack (narrow screens), center the "More about Jos"
   button under the centered heading */
@media (max-width: 800px) {
  .about-text > .btn {
    display: flex;
    width: fit-content;
    margin: 0 auto;
  }
}

/* =================================================
   TOURS SECTION
   ================================================= */
.tours {
  position: relative;
  max-width: none;
}

/* .is-tinted marks which .tours sections get the beige wash - a page can
   have several .tours sections back to back (see all-tours.html) and they
   should alternate white/tinted/white, not all render the same color. */
.tours.is-tinted,
.whats-included,
.page-header {
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-bg-alt) 88%, var(--color-accent) 12%), var(--color-bg-alt) 50%);
}

/* The top wave dips up to ~55px into the section (see --wave-mask below),
   which barely clears the default section padding-top (64px) - the heading
   ended up looking cramped right against it. Extra top padding here only,
   since .tours sections without .is-tinted don't own a top wave at all. */
.tours.is-tinted,
.whats-included {
  padding-top: calc(var(--spacing-xl) + 32px);
}

.tours > h2,
.tours > .section-subtitle,
.tour-cards,
.tour-table-wrapper {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* auto-fit sizes columns to the available width (up to 4 per row on desktop)
   instead of a fixed column count, so cards stay a readable width on
   in-between screen sizes instead of being squeezed into 3-4 fixed columns. */
.tour-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

/* Tour cards are simple link cards - the whole card links to the tour's detail page */
.tour-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-accent-soft-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tour-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: var(--color-border);
  background-image: var(--image-missing);
  flex-shrink: 0;
}

.tour-card-body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tour-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: var(--spacing-sm);
}

.tour-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Preview text: clamp to 2 lines with a fade-out, consistent with the card's compact size */
.tour-description-preview {
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tour-description-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.4em;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}

.tour-card-link {
  align-self: flex-start;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.tour-card:hover .tour-card-link {
  text-decoration: underline;
}

/* Tour comparison table */
/* Link to the full tour list below the main tour cards */
.tours-cta {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tours-cta p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.tour-table-wrapper h3 {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.tour-table {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.tour-table th,
.tour-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.tour-table th {
  background-color: var(--color-primary);
  color: #fff;
}

/* =================================================
   GALLERY SECTION
   ================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--color-bg-alt);
  background-image: var(--image-missing);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* =================================================
   CONTACT SECTION
   ================================================= */
.contact {
  text-align: center;
}

.contact-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.contact-location {
  color: var(--color-text-light);
}

/* =================================================
   FOOTER
   ================================================= */
.site-footer {
  text-align: center;
  padding: var(--spacing-md);
  /* Darkens toward the corner using the existing primary color, no separate
     "darkest" variable to keep in sync if --color-primary-dark ever changes. */
  background: linear-gradient(165deg, var(--color-primary-dark), color-mix(in srgb, var(--color-primary-dark) 55%, black));
  color: #fff;
  font-size: 0.85rem;
  border-radius: 28px 28px 0 0;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
}

/* =================================================
   PAGE HEADER (for sub-pages like FAQ, tour details)
   ================================================= */
/* Reuses the .tours.is-tinted/.whats-included gradient + wave treatment
   below, rather than introducing a separate decorative language just for
   this element - every sub-page effectively opens with the same "hero-lite"
   band before its first white section. */
.page-header {
  position: relative;
  text-align: center;
  max-width: none;
  padding: var(--spacing-lg) var(--spacing-md) calc(var(--spacing-lg) + 40px);
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-sm);
}

/* =================================================
   FAQ ACCORDION
   ================================================= */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Category headings between groups of FAQ items */
.faq-category {
  font-size: 1.3rem;
  margin-top: var(--spacing-lg);
}

.faq-category:first-child {
  margin-top: 0;
}

/* Friendly note for answers that are not written yet */
.faq-answer .faq-pending {
  font-style: italic;
  color: var(--color-text-light);
}

.faq-item {
  border: 1px solid var(--color-accent-soft-border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-bg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-height) + var(--spacing-md)); /* keeps the opened item clear of the header when it's visible */
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: var(--color-bg-alt);
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: var(--spacing-md);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.25rem;
}

.faq-item.is-open .faq-answer {
  max-height: 1000px; /* large enough to fit content; not a hard content limit */
  padding: 1rem 1.25rem 1.25rem;
}

.faq-answer p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.faq-answer ul {
  margin: 0 0 var(--spacing-sm) 0;
}

.faq-answer ul:last-child {
  margin-bottom: 0;
}

/* Small accent-gold dot bullets, matching the same --color-accent dots
   already used on the itinerary steps, instead of the site-wide
   `ul { list-style: none }` reset leaving these as unmarked plain lines. */
.faq-answer li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-light);
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

.faq-answer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.faq-image {
  width: 100%;
  max-width: 400px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--color-bg-alt);
  background-image: var(--image-missing);
  margin-bottom: var(--spacing-sm);
}

/* =================================================
   TOUR DETAIL PAGE - Intro / Quick Facts
   ================================================= */
.tour-detail-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--color-bg-alt);
  background-image: var(--image-missing);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

.tour-quick-facts {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
}

.quick-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.quick-fact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}

.quick-fact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.quick-fact-unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.tour-detail-description {
  margin-bottom: var(--spacing-lg);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tour-detail-intro {
  text-align: center;
}

.tour-detail-intro .btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* =================================================
   ITINERARY
   ================================================= */
.itinerary-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 0;
}

.itinerary-step {
  position: relative;
  padding: 0 0 var(--spacing-lg) calc(var(--spacing-lg) - 3px);
  border-left: 3px solid var(--color-primary);
}

.itinerary-step:last-child {
  padding-bottom: 0;
}

.itinerary-step::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 2px solid var(--color-bg);
}

.itinerary-day-break {
  position: relative;
  margin: var(--spacing-lg) 0;
  text-align: center;
  list-style: none;
}

.itinerary-day-break::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(217, 154, 61, 0.45);
  transform: translateY(-50%);
}

.itinerary-day-break span {
  position: relative;
  display: inline-block;
  background: var(--color-bg);
  padding: 0 0.85rem;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.itinerary-time {
  display: block;
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.itinerary-content h3 {
  margin-bottom: var(--spacing-xs);
}

.itinerary-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* =================================================
   WHAT'S INCLUDED
   ================================================= */
.whats-included {
  position: relative;
  max-width: none;
}

/* Wave dividers: replace the hard straight line where these beige bands meet
   the white sections above/below with a soft curve. The mask supplies only
   the shape - background-color still comes from a variable, so the wave
   automatically matches whatever color the neighboring section actually is. */
.tours.is-tinted::before,
.tours.is-tinted::after,
.whats-included::before,
.whats-included::after,
.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 56px;
  background-color: var(--color-bg);
  -webkit-mask-image: var(--wave-mask);
  mask-image: var(--wave-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.tours.is-tinted::before,
.whats-included::before {
  top: -1px;
  transform: scaleY(-1);
}

.tours.is-tinted::after,
.whats-included::after,
.page-header::after {
  bottom: -1px;
}

.whats-included > h2,
.whats-included > .included-list,
.whats-included > .whats-included-note {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.included-list {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.included-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.whats-included-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
}

.whats-included-note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* =================================================
   TOUR CTA SECTION
   ================================================= */
.tour-cta {
  text-align: center;
}

.tour-cta .contact-buttons {
  margin-bottom: 0;
}

/* =================================================
   GROUP SIZE NOTE (all-tours page)
   ================================================= */
/* A quiet, self-contained info box - kept small and muted on purpose so it
   reads as a helpful aside rather than competing with the tour cards above
   it. No top margin: the preceding section's own bottom padding already
   provides that clearance, so adding more on top of it was doubling up.
   Bottom margin keeps it from sitting flush against the footer. */
.group-size-note {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-accent-soft-border);
  border-radius: var(--radius);
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.group-size-note-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--color-accent-dark);
}

.group-size-note p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.group-size-note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* =================================================
   CONSTRUCTION NOTE (tour pages not yet filled in)
   ================================================= */
/* Same layout as .group-size-note, recolored red so an unfinished tour
   page reads as a clear heads-up rather than a routine info aside. */
.construction-note {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  background-color: var(--color-danger-soft);
  border: 1px solid var(--color-danger-soft-border);
  border-radius: var(--radius);
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.construction-note-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--color-danger-dark);
}

.construction-note p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Below ~700px (both boxes' own max-width) there's no leftover width for the
   margin: auto centering to distribute, so the card's border/background
   were rendering flush against the screen edges instead of just its text.
   Declared after both boxes' base rules so it actually wins the cascade. */
@media (max-width: 700px) {
  .group-size-note,
  .construction-note {
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
  }
}

/* =================================================
   INFO PAGES (getting-there.html etc.)
   ================================================= */
/* A readable text column for longer info texts */
.info-content {
  max-width: 800px;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.info-content h2 {
  margin-bottom: var(--spacing-md);
}

.info-content p {
  margin-bottom: var(--spacing-md);
}

.info-content a:not(.btn) {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Side-by-side option boxes (e.g. transport options), stacked on small screens */
.info-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.info-option {
  padding: var(--spacing-md);
  background-color: var(--color-bg);
  border: 1px solid var(--color-accent-soft-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.info-option h3 {
  margin-bottom: var(--spacing-xs);
}

.info-option .tour-image {
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: var(--spacing-md);
}

.info-option p:last-child {
  margin-bottom: 0;
}

.info-option-meta {
  font-weight: 600;
  color: var(--color-accent-dark);
}

.info-map-link {
  text-align: center;
}

/* Info hub grid: two wider cards per row instead of four narrow ones */
.tour-cards.info-cards {
  max-width: 900px;
}

@media (min-width: 700px) {
  .tour-cards.info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Info hub cards (info.html): reuse .tour-card, but with a subheading,
   unclamped preview text and a short topic list */
.info-card-subheading {
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: var(--spacing-sm);
}

.info-card-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.info-card-topics {
  list-style: none;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.info-card-topics li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.25rem;
}

.info-card-topics li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* =================================================
   RESPONSIVE - small screens
   ================================================= */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
}
