/* ── Color Palette ──
   Primary:     #1b6b40  (forest green — rainforest, sustainability)
   Accent:      #b44c29  (terracotta — Madagascar red earth, optimized for contrast)
   Warm:        #d4943a  (golden amber — baobab sunsets)
   Dark:        #1a2e25  (deep green-black — header, footer)
   Background:  #faf8f5  (warm off-white)
   Alt BG:      #f0ede8  (warm light gray)
── */

/* ── Fonts ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  color: #2c2c2a;
  background: #faf8f5;
  /* Use the active language's hyphenation dictionary (set via
     language_attributes() on <html>) to break long compound words at
     proper syllable points with a visible hyphen, instead of letting
     overflow-wrap: break-word chop them mid-word. */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}
/* Disable hyphenation on large/wide headings and short interactive labels.
   Card titles (.tour-card h3 etc.) are intentionally NOT in this list:
   they sit in narrow grid cells and can carry long German/Italian compound
   words that need proper hyphenation. The browser uses the language set on
   <html> (via language_attributes()) to pick the correct dictionary. */
.section-title,
.tour-detail-hero h1,
.tour-detail-hero h2,
.footer-grid h3,
.cta-btn,
.book-btn,
.tour-card .meta span,
.category-tag,
.experience-tag,
.detail-list span,
.lang-switcher {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Wireframe Style ── */
.placeholder-img {
  background: #e2ddd6; display: flex; align-items: center; justify-content: center;
  color: #5d635a; font-size: 13px; border: 2px dashed #c5bfb5; border-radius: 8px;
}

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 32px; z-index: 100; background: #fff;
  border-bottom: 2px solid #1a2e25; padding: 0;
}
.header-main {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
}
.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: #1a2e25; display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo small { font-weight: 300; font-size: 12px; color: #5d635a; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; margin: 0; padding: 0; }
.main-nav li::marker { content: ''; }
.main-nav a {
  font-size: 14px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: border-color 0.2s;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: #1b6b40; color: #1b6b40; }
.main-nav .cta-btn {
  background: #b44c29; color: #fff; padding: 8px 20px; border-radius: 6px;
  border: none; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background 0.2s;
}
.main-nav .cta-btn:hover { background: #b04e2d; }
.hamburger { display: none; cursor: pointer; font-size: 24px; background: none; border: none; }

/* ── Hero ── */
.hero {
  background: #d5cfc6; border: 2px dashed #c5bfb5; padding: 0;
  text-align: left; position: relative; min-height: calc(100vh - 90px);
  display: flex; align-items: flex-end;
}
.hero-label { position: absolute; top: 16px; left: 16px; font-size: 11px; color: #5d635a; background: #fff; padding: 4px 8px; border-radius: 4px; z-index: 2; }
.hero .hero-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  width: 100%; gap: 48px; padding: 0 2rem 60px 2rem;
}
.hero .hero-text { flex: 0 0 38%; max-width: 38%; }
.hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 16px; line-height: 1.15; color: #1a2e25; }
.hero p { font-size: 17px; color: #3d3b38; line-height: 1.6; }
.hero .hero-ctas {
  flex: 0 0 auto; display: flex; flex-direction: row; gap: 16px; align-items: flex-end;
}
.hero .cta-btn {
  background: #b44c29; color: #fff; padding: 18px 36px; border-radius: 8px;
  font-size: 16px; font-weight: 600; display: inline-block; text-align: center;
  white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
}
.hero .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(180,76,41,0.25); background: #b04e2d; }
.hero .cta-btn.secondary { background: transparent; color: #1a2e25; border: 2px solid #1a2e25; }
.hero .cta-btn.secondary:hover { background: #1a2e25; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,46,37,0.2); }

/* When a real photo is set, darken the bottom so text stays readable */
.hero.has-hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  pointer-events: none;
}
.hero.has-hero-image .hero-inner { position: relative; z-index: 1; }
.hero.has-hero-image h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.hero.has-hero-image p  { color: rgba(255,255,255,0.9); }
.hero.has-hero-image .cta-btn.secondary { color: #fff; border-color: #fff; }
.hero.has-hero-image .cta-btn.secondary:hover { background: #fff; color: #1a2e25; }

/* ── Section Titles ── */
.section { padding: 60px 0; }
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: #1a2e25; }
.section-subtitle { color: #61685e; margin-bottom: 32px; font-size: 15px; }

/* ── Tour Cards ── */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
a.tour-card { color: inherit; text-decoration: none; display: block; }
.tour-card { border: 2px solid #ddd8d1; border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.tour-card:hover { box-shadow: 0 4px 20px rgba(26,46,37,0.08); }
.tour-card .card-img { height: 180px; }
.tour-card .card-body { padding: 20px; }
.tour-card h3 { font-size: 18px; margin-bottom: 8px; color: #1a2e25; overflow-wrap: break-word; }
.tour-card .meta { display: flex; gap: 16px; font-size: 12px; color: #5d635a; margin-bottom: 10px; flex-wrap: wrap; }
.tour-card .meta span { border: 1px solid #e8e4dd; padding: 3px 8px; border-radius: 4px; overflow-wrap: break-word; }
.tour-card p {
  font-size: 14px;
  color: #5e6259;
  line-height: 1.5;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tour-card .price { font-weight: 700; font-size: 18px; color: #b44c29; }
.tour-card .price small { font-weight: 400; font-size: 13px; color: #5d635a; }

/* ── Testimonials ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { border: 2px solid #e8e4dd; border-radius: 12px; padding: 24px; background: #fff; }
.testimonial-card .stars { color: #d4943a; margin-bottom: 12px; font-size: 16px; }
.testimonial-card blockquote { font-size: 14px; line-height: 1.6; color: #5e6259; margin-bottom: 16px; font-style: italic; overflow-wrap: break-word; }
.testimonial-card .author { font-weight: 600; font-size: 14px; color: #1a2e25; overflow-wrap: break-word; }
.testimonial-card .author span { font-weight: 400; color: #5d635a; display: block; font-size: 12px; overflow-wrap: break-word; }

/* ── About ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-layout .placeholder-img { height: 320px; }
.about-layout h2 { font-size: 28px; margin-bottom: 16px; color: #1a2e25; }
.about-layout p { font-size: 15px; line-height: 1.7; color: #5e6259; margin-bottom: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.value-card { text-align: center; padding: 24px; border: 2px solid #e8e4dd; border-radius: 10px; background: #fff; }
.value-card .icon { font-size: 32px; margin-bottom: 12px; }
.value-card h3 { font-size: 15px; margin-bottom: 6px; color: #1a2e25; }
.value-card p { font-size: 13px; color: #5d635a; }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; margin-top: 14px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 10px 14px; border: 1px solid #d8d4ce; border-radius: 6px; font-size: 14px; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button { margin-top: 20px; background: #b44c29; color: #fff; padding: 12px 32px; border: none; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.contact-form button:hover { background: #b04e2d; }
.contact-info { padding: 24px; border: 2px solid #e8e4dd; border-radius: 12px; }
.contact-info h3 { margin-bottom: 16px; font-size: 18px; color: #1a2e25; }
.contact-info p { font-size: 14px; line-height: 1.8; color: #5e6259; }
.contact-info .map-placeholder { height: 200px; margin-top: 20px; }

/* ── Single Tour Detail ── */
.tour-detail-hero {
  position: relative; height: 300px; display: flex; align-items: flex-end;
  padding: 32px; border-radius: 0 0 16px 16px; overflow: hidden;
  background: #e2ddd6;
}
.tour-detail-hero.placeholder-img { border: 2px dashed #c5bfb5; }
.tour-detail-hero.has-image { border: none; }
.tour-detail-hero .hero-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.tour-detail-hero.has-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 70%);
  z-index: 1; pointer-events: none;
}
.tour-detail-hero h1 {
  position: relative; z-index: 2; font-size: 32px; color: #1a2e25;
  overflow-wrap: break-word;
  max-width: 100%;
}
.tour-detail-hero.has-image h1 {
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.tour-detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 40px; min-width: 0; }
.tour-content { min-width: 0; overflow-wrap: break-word; }
.tour-sidebar { border: 2px solid #e8e4dd; border-radius: 12px; padding: 24px; height: fit-content; position: sticky; top: 100px; min-width: 0; }
.tour-sidebar .price-block { font-size: 28px; font-weight: 700; margin-bottom: 20px; color: #b44c29; }
.tour-sidebar .price-block small { font-size: 14px; color: #5d635a; font-weight: 400; }
.tour-sidebar .book-btn { display: block; width: 100%; background: #b44c29; color: #fff; padding: 14px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; margin-bottom: 16px; transition: background 0.2s; text-decoration: none; }
.tour-sidebar .book-btn:hover { background: #b04e2d; }
.tour-sidebar .detail-list { list-style: none; min-width: 0; }
.tour-sidebar .detail-list > li {
  padding: 10px 0;
  border-bottom: 1px solid #e8e4dd;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.tour-sidebar .detail-list > li span {
  flex-shrink: 0;
}
.tour-sidebar .detail-list > li strong {
  font-weight: 600;
  text-align: left;
  overflow-wrap: break-word;
  white-space: pre-line;
  min-width: 0;
}
.tour-sidebar .detail-list > li.detail-list-stacked { flex-direction: column; align-items: flex-start; gap: 6px; }
.tour-sidebar .includes-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.tour-sidebar .includes-list li { padding: 2px 0; border: none; font-weight: 600; display: block; overflow-wrap: break-word; }
.tour-sidebar .includes-list li::before { content: "• "; color: #b44c29; margin-right: 4px; }
.itinerary-day { border-left: 3px solid #1b6b40; padding: 16px 0 16px 24px; margin-bottom: 16px; }
.itinerary-day h4 { font-size: 15px; margin-bottom: 6px; color: #1a2e25; }
.itinerary-day p { font-size: 14px; color: #5e6259; line-height: 1.6; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; cursor: pointer; }
.gallery-grid .placeholder-img { aspect-ratio: 4 / 3; }

/* ── Experience Cards ── */
.experience-card .experience-tours { font-size: 12px; color: #5d635a; font-weight: 500; }
.category-tag { font-weight: 600; overflow-wrap: break-word; }
.category-tag.wildlife { background: #e8f0eb; color: #1b6b40; border-color: #c5dece; }
.category-tag.culture { background: #fdf0e6; color: #b44c29; border-color: #f5d4c0; }
.category-tag.nature { background: #e6f0ee; color: #1a7a63; border-color: #bdd9d0; }
.category-tag.water { background: #e3eef8; color: #2a6fa8; border-color: #b8d4ea; }
.category-tag.adventure { background: #fce9e4; color: #a8432a; border-color: #f0c8bb; }

/* ── Experience Tag (itinerary) ── */
.experience-tag {
  display: inline-block; margin-top: 10px; padding: 4px 12px; font-size: 12px; font-weight: 600;
  background: #fdf0e6; color: #b44c29; border: 1px solid #f5d4c0; border-radius: 20px;
  transition: background 0.2s;
  overflow-wrap: break-word;
}
.experience-tag:hover { background: #f9e2d2; }

/* ── Lightbox ── */
#im-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
#im-lightbox.active { display: flex; }
.im-lb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.im-lb-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; line-height: 1;
}
.im-lb-prev, .im-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 24px; padding: 12px 16px; cursor: pointer; border-radius: 4px;
  transition: background 0.2s;
}
.im-lb-prev:hover, .im-lb-next:hover { background: rgba(255,255,255,0.3); }
.im-lb-prev { left: 16px; }
.im-lb-next { right: 16px; }
.gallery-link { display: block; cursor: zoom-in; }
.gallery-link img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; transition: opacity 0.2s; }
.gallery-link:hover img { opacity: 0.85; }

/* ── Experience Detail Checklist ── */
.detail-checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.detail-checklist li {
  font-size: 14px; color: #5e6259; line-height: 1.7;
  padding: 6px 0 6px 28px; position: relative;
  border-bottom: 1px solid #f0ede8;
}
.detail-checklist li::before {
  content: '✓'; position: absolute; left: 0;
  color: #1b6b40; font-weight: 700;
}

/* ── Experience Detail Sidebar Tours ── */
.sidebar-tours-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e8e4dd; }
.sidebar-tours-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #1a2e25; overflow-wrap: break-word; }
.sidebar-tours-section ul { list-style: none; }
.sidebar-tours-section ul li { padding: 6px 0; font-size: 14px; overflow-wrap: break-word; }
.sidebar-tours-section ul li a { color: #1b6b40; border-bottom: 1px solid #c5dece; overflow-wrap: break-word; }
.sidebar-tours-section ul li a:hover { color: #14523a; border-bottom-color: #1b6b40; }

/* ── Footer ── */
.site-footer {
  background-color: #1a2e25;
  color: #c0c8bc;
  padding: 48px 0 24px;
  margin-top: 60px;
  display: block;
  position: relative;
  z-index: 10;
  width: 100%;
}
.site-footer .container {
  background-color: #1a2e25;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  background-color: #1a2e25;
}
.footer-grid > div {
  background-color: #1a2e25;
}
.footer-grid h3 { color: #fff; font-size: 14px; margin-bottom: 14px; background-color: #1a2e25; overflow-wrap: break-word; }
.footer-grid p, .footer-grid a { font-size: 13px; color: #a8b0a5; line-height: 1.8; background-color: #1a2e25; overflow-wrap: break-word; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; background-color: #1a2e25; }
.footer-grid ul li { margin-bottom: 6px; background-color: #1a2e25; }
.footer-bottom { border-top: 1px solid #2e4a3d; padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; background-color: #1a2e25; overflow-wrap: break-word; }

/* ── Wireframe annotation ── */
.wire-note { background: #fdf8ec; border: 1px solid #e8d9a8; padding: 8px 14px; font-size: 11px; color: #8a7030; border-radius: 6px; margin-bottom: 24px; }


/* ── Tablet: collapse nav to hamburger + stack hero CTAs ── */
@media (max-width: 1024px) {
  .site-header .container { position: relative; }
  .main-nav {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: -24px; right: -24px;
    background: #fff; border-bottom: 2px solid #1a2e25;
    padding: 20px 24px; gap: 8px; z-index: 200;
    box-shadow: 0 8px 24px rgba(26,46,37,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: none; font-size: 16px; }
  .main-nav a:hover, .main-nav a.active { border-bottom: none; color: #1b6b40; }
  .main-nav .cta-btn {
    margin-top: 8px; text-align: center; padding: 12px 20px;
    border-bottom: none; font-size: 16px;
  }
  .main-nav .cta-btn:hover { border-bottom: none; }
  .hamburger { display: block; }
  .hero .hero-ctas {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero .hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  .hero .hero-text { flex: 1; max-width: 100%; }
  .hero .hero-ctas { align-items: center; width: 100%; }
  .hero .cta-btn { min-width: 220px; }
  .about-layout, .contact-layout, .tour-detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
}

/* ── Utility bar (language switcher strip above the main header) ── */
.utility-bar {
  position: sticky;
  top: 0;
  z-index: 101; /* one above .site-header so they stack cleanly */
  background: #1a2e25;
  color: #e8e4dd;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.lang-switcher li { margin: 0; padding: 0; }
.lang-switcher li a {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
  border-bottom: none !important;
}
.lang-switcher li a:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.08);
}
.lang-switcher li.current-lang a {
  color: #fff;
  background-color: rgba(255,255,255,0.12);
  pointer-events: none;
}

@media (max-width: 640px) {
  .utility-bar .container { justify-content: center; }
}

