/* ---------- Design tokens ---------- */
:root {
  --green-dark: #1e3d2b;
  --green: #2e5a3e;
  --green-light: #4a7a5c;
  --terracotta: #c97b3d;
  --terracotta-dark: #a8632d;
  --cream: #f5efe3;
  --white: #ffffff;
  --charcoal: #26241f;
  --gray: #6b6459;
  --whatsapp: #25d366;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 61, 43, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--green-dark); line-height: 1.2; }

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(201, 123, 61, 0.35);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

.lang-switch {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(30, 61, 43, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.gt-wrap { display: none; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

[dir="rtl"] { text-align: right; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn-whatsapp:hover { background: #1ebc59; }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.icon-wa { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 61, 43, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-dark);
  line-height: 1.2;
}
.brand-name span { color: var(--terracotta); font-weight: 600; font-size: 0.85em; }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--green); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background-size: cover;
  background-position: center;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero-inner { max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 800;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Strip ---------- */
.strip { background: var(--green-dark); color: var(--white); padding: 28px 0; }
.strip-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}
.strip-item { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.strip-item strong { font-family: var(--font-head); font-size: 1.05rem; }
.strip-item span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--white); }
.section-dark {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.85); }

.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
.section-title.center { text-align: center; }
.section-sub { color: var(--gray); max-width: 560px; margin-bottom: 48px; }
.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Tour grid ---------- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tour-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(30, 61, 43, 0.18); }
.tour-card img { height: 220px; width: 100%; object-fit: cover; }
.tour-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-body h3 { font-size: 1.2rem; }
.tour-body p { color: var(--gray); font-size: 0.95rem; flex: 1; }
.tour-link { color: var(--terracotta); font-weight: 600; font-size: 0.92rem; margin-top: 6px; }
.tour-link:hover { color: var(--terracotta-dark); }

.tour-card-custom {
  background: var(--green-dark);
  color: var(--white);
  justify-content: center;
}
.tour-body-custom h3 { color: var(--white); }
.tour-body-custom p { color: rgba(255, 255, 255, 0.8); }
.tour-body-custom .tour-link { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

.tour-picker { display: flex; flex-direction: column; gap: 10px; }
.tour-picker-row { display: flex; align-items: center; gap: 8px; }
.tour-picker-select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.tour-picker-select option { color: var(--charcoal); }
.tour-picker-remove {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.tour-picker-remove:hover { background: rgba(255, 255, 255, 0.12); }
.tour-picker-add {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
}

/* ---------- Tour card link + meta ---------- */
.tour-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.tour-card > .tour-link { display: block; padding: 0 24px 24px; }
.tour-meta { color: var(--terracotta-dark); font-weight: 600; font-size: 0.88rem; }
.tour-meta:empty { display: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-text p { color: var(--gray); margin-bottom: 18px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.gallery-grid img:hover { transform: scale(1.03); opacity: 0.92; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact-inner .eyebrow { text-align: center; }

.location-block { margin-top: 40px; width: 100%; }
.location-label { font-weight: 500; margin-bottom: 12px; }
.map-embed { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.map-link { display: inline-block; margin-top: 12px; color: var(--white); font-weight: 500; text-decoration: underline; }
.map-link:hover { opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(245, 239, 227, 0.85); padding: 48px 0 28px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--cream); }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--terracotta); }
.footer-copy { width: 100%; text-align: center; font-size: 0.85rem; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(245, 239, 227, 0.12); color: rgba(245, 239, 227, 0.5); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transition: transform 0.2s ease;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- Tour detail page ---------- */
.tour-detail-header { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.tour-detail-meta { color: var(--terracotta-dark); font-weight: 600; margin: 12px 0 0; }
.tour-detail-desc { max-width: 720px; margin: 0 auto 32px; color: var(--gray); text-align: center; }
.tour-detail-extra:empty { display: none; }
.tour-detail-cta { text-align: center; }
.tour-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.tour-photo-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease; }
.tour-photo-grid img:hover { transform: scale(1.03); opacity: 0.92; }
.tour-video-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.tour-video-wrap:empty { display: none; }
.tour-video-embed { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; border: none; }
.tour-not-found { text-align: center; padding: 80px 0; }
.tour-not-found h1 { margin-bottom: 16px; }
.tour-not-found p { color: var(--gray); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; margin: 0 auto; }
  .tour-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-video-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(30, 61, 43, 0.08);
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid rgba(30, 61, 43, 0.06); }
  .header-actions { display: flex; align-items: center; gap: 8px; }
  .header-actions .btn-whatsapp { display: none; }
  .lang-switch { font-size: 0.75rem; padding: 6px 8px; }
  .nav-toggle { display: flex; }

  .tour-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { min-height: 92vh; }
  .tour-photo-grid { grid-template-columns: 1fr; }
}
