/* Morocco Desert Trips — main stylesheet
   Palette: cool stone, deep teal-slate, sun copper */

:root {
  --navy: #1a2f36;
  --navy-dark: #0f1c21;
  --navy-card: #243a42;
  --gold: #d4a056;
  --gold-light: #e6bc7a;
  --orange: #c17a3a;
  --orange-dark: #9e5f2c;
  --cream: #eef2f3;
  --cream-dark: #d5dee2;
  --ink: #182328;
  --muted: #5a6870;
  --white: #ffffff;
  --border: #c8d2d6;
  --border-strong: #9aaeb4;
  --radius: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 0 rgba(26, 47, 54, 0.06), 0 8px 24px rgba(26, 47, 54, 0.06);
  --shadow-lg: 0 2px 0 rgba(26, 47, 54, 0.05), 0 16px 40px rgba(26, 47, 54, 0.12);
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", "Poppins", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f5f8f9 0%, var(--cream) 40%, #e8eef0 100%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.container.narrow { max-width: 860px; }

.center { text-align: center; }

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.eyebrow.gold { color: var(--gold); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 8px;
}

.section-header .section-title::after,
.section > .container > .center .section-title::after,
.section-title.with-rule::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin-top: 14px;
}

.center .section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 14px auto 0;
}

.section-title.light::after,
.center .section-title.light::after {
  background: var(--gold);
}

.section-title.light { color: var(--cream); }

.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 20px;
}

.section-sub.light { color: rgba(255, 255, 255, 0.75); }

.section { padding: 90px 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-sm { padding: 9px 20px; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.section-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding: 0 20px;
  overflow: visible;
}

.site-header .container.header-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 32px;
  padding: 12px 0;
  min-height: 80px;
  box-sizing: border-box;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 0;
  min-width: 0;
  padding: 0;
}

/* Fallback if header-right wrapper is missing */
.header-inner > .main-nav { margin-left: auto; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0;
  margin-right: auto;
  padding: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: auto;
  height: 64px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  line-height: 0;
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.02);
}

.logo-mark svg,
.logo-mark img {
  width: auto;
  height: 64px;
  max-width: min(280px, 58vw);
  display: block;
  object-fit: contain;
  filter: none;
}

.logo.light .logo-mark {
  height: 72px;
}

.logo.light .logo-mark img {
  max-width: min(340px, 92vw);
  height: 72px;
  background: transparent;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; gap: 3px; }

.logo-text[hidden] { display: none !important; }

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #222222;
  letter-spacing: 0.15px;
}

.logo-text small {
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #b8a48a;
  font-weight: 500;
}

.logo.light .logo-text strong { color: var(--cream); }
.logo.light .logo-text small { color: var(--gold-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
}

.main-nav > .nav-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > .nav-item > a {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 0;
  transition: color 0.2s;
  white-space: nowrap;
  display: inline-block;
}

.main-nav > .nav-item > a[aria-current="page"] {
  color: var(--orange);
}

.main-nav > .nav-item > a:hover,
.main-nav > .nav-item:hover > a { color: var(--orange); }

.caret {
  font-size: 8px;
  color: var(--muted);
  margin-left: 3px;
  vertical-align: middle;
}

.clear-filters {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 14px;
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.clear-filters:hover { color: var(--orange); border-color: var(--orange); }

/* Dropdown menus */
.nav-item { position: relative; }

.nav-item .dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: -12px;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 60;
  border: 1px solid var(--border);
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item .dropdown a {
  display: block;
  padding: 10px 20px;
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

.nav-item .dropdown a:hover {
  background: var(--cream);
  color: var(--orange);
}

.nav-item .dropdown .dropdown-label {
  display: block;
  padding: 10px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8a8f9a;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-actions .btn-primary.btn-sm {
  background: var(--orange);
  color: #fff;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: none;
}

.header-actions .btn-primary.btn-sm:hover {
  background: var(--orange-dark);
  transform: none;
}

.lang-pill {
  display: none !important;
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lang-switch-btn:hover,
.lang-switch.open .lang-switch-btn {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  background: var(--white);
}

.lang-switch-icon {
  display: grid;
  place-items: center;
  color: var(--orange);
}

.lang-switch-code {
  min-width: 1.6em;
}

.lang-switch-caret {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.2s;
}

.lang-switch.open .lang-switch-caret {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(20, 32, 58, 0.14);
  z-index: 200;
}

.lang-switch-menu[hidden] {
  display: none !important;
}

.lang-switch-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-switch-menu li:hover {
  background: #f7f3ec;
}

.lang-switch-menu li.active {
  background: #fff0e6;
  color: var(--orange);
  font-weight: 600;
}

.lang-flag {
  font-size: 15px;
  line-height: 1;
}

.lang-opt-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f3eee6;
  color: #5c5348;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lang-switch-menu li.active .lang-opt-code {
  background: var(--orange);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  position: relative;
  z-index: 130;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  background: #fff8f1;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(15, 28, 33, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-backdrop.is-visible {
  display: block;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0f1c21;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0f1c21;
  background-image: url("images/desierto/b1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: slowZoom 24s ease-in-out infinite alternate;
}

.hero .hero-bg-next {
  opacity: 0;
  transition: opacity 0.8s ease;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 28, 33, 0.90) 0%,
    rgba(26, 47, 54, 0.68) 45%,
    rgba(26, 47, 54, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 140px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 28, 33, 0.45);
  border: 1px solid rgba(212, 160, 86, 0.45);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px 8px 12px;
  border-radius: var(--radius);
  margin-bottom: 26px;
}

.hero-badge-star {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: var(--gold);
  filter: drop-shadow(0 0 4px rgba(217, 164, 55, 0.55));
}

.hero-eyebrow { color: var(--gold); }

.hero-title {
  font-family: var(--font-serif);
  line-height: 1.05;
  margin: 10px 0 22px;
}

.hero-title .line-1 {
  display: block;
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-title .line-2 {
  display: block;
  font-size: clamp(38px, 6.2vw, 74px);
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-cue .chevron {
  font-size: 22px;
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Trust strip (under hero) ---------- */

.trust-strip {
  background: var(--navy-dark);
  border-bottom: 3px solid var(--orange);
  padding: 26px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item:last-child { border-right: none; }

.trust-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: transparent;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.trust-item h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 4px;
}

.trust-item p {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  line-height: 1.35;
}

/* ---------- Tours ---------- */

.tours-section { background: var(--cream); }

.glance-box {
  background: var(--white);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 900px;
  margin: 30px auto 34px;
}

.glance-box strong { color: var(--navy); }

/* Keyword emphasis — bold terms with color hover (site-wide) */
.kw {
  color: #9e1a1a;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 2px;
}
.kw:hover {
  color: var(--orange);
  background: rgba(154, 115, 64, 0.12);
}
.kw-gold {
  color: var(--orange);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 2px;
}
.kw-gold:hover {
  color: #9e1a1a;
  background: rgba(158, 26, 26, 0.08);
}
.kw-navy {
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 2px;
}
.kw-navy:hover {
  color: var(--orange);
  background: rgba(154, 115, 64, 0.12);
}

/* Hero subcopy: keywords on photo backgrounds — white, orange on hover */
.hero .hero-sub .kw,
.hero .hero-sub .kw-navy,
.hero .hero-sub .kw-gold,
.page-hero .hero-sub .kw,
.page-hero .hero-sub .kw-navy,
.page-hero .hero-sub .kw-gold,
.cat-hero .hero-sub .kw,
.cat-hero .hero-sub .kw-navy,
.cat-hero .hero-sub .kw-gold {
  color: #fff;
  background: transparent;
}
.hero .hero-sub .kw:hover,
.hero .hero-sub .kw-navy:hover,
.hero .hero-sub .kw-gold:hover,
.page-hero .hero-sub .kw:hover,
.page-hero .hero-sub .kw-navy:hover,
.page-hero .hero-sub .kw-gold:hover,
.cat-hero .hero-sub .kw:hover,
.cat-hero .hero-sub .kw-navy:hover,
.cat-hero .hero-sub .kw-gold:hover {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.12);
}

/* Dark sections: keywords must stay visible without hover */
.why-section .kw,
.why-section .kw-navy,
.why-section .kw-gold,
.why-card .kw,
.why-card .kw-navy,
.why-card .kw-gold,
.trust-strip .kw,
.trust-strip .kw-navy,
.trust-strip .kw-gold,
.cta-section .kw,
.cta-section .kw-navy,
.cta-section .kw-gold,
.site-footer .kw,
.site-footer .kw-navy,
.site-footer .kw-gold {
  color: var(--gold-light);
  background: transparent;
}
.why-section .kw:hover,
.why-section .kw-navy:hover,
.why-section .kw-gold:hover,
.why-card .kw:hover,
.why-card .kw-navy:hover,
.why-card .kw-gold:hover,
.trust-strip .kw:hover,
.trust-strip .kw-navy:hover,
.trust-strip .kw-gold:hover,
.cta-section .kw:hover,
.cta-section .kw-navy:hover,
.cta-section .kw-gold:hover,
.site-footer .kw:hover,
.site-footer .kw-navy:hover,
.site-footer .kw-gold:hover {
  color: #fff;
  background: rgba(201, 166, 107, 0.18);
}

.guide-prose {
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.75;
  font-size: 15px;
}

.glance-box .kw,
.glance-box .kw-navy {
  color: var(--navy-dark);
  font-weight: 700;
}
.glance-box .kw:hover,
.glance-box .kw-navy:hover {
  color: var(--orange);
  background: rgba(154, 115, 64, 0.12);
}

.filter-note {
  background: #faf3e0;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 12.5px;
  color: var(--navy);
  max-width: 900px;
  margin: 0 auto 26px;
}

.tour-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--cream-dark);
}

.tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.tab:hover { color: var(--orange); }

.tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tours-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  text-align: center;
}

.tours-load-more[hidden] {
  display: none;
}

.tours-load-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.tours-load-more .btn {
  min-width: 200px;
}

.tour-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tour-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow);
}

.tour-media { position: relative; }

.tour-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.tour-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tour-price-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 28, 33, 0.88);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 160, 86, 0.35);
}

.tour-body {
  padding: 22px 24px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-body h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 10px;
}

.tour-body p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--cream-dark);
  margin-top: 16px;
  padding-top: 14px;
}

.tour-foot .from {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.tour-foot .price {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
}

.tour-foot .rating { text-align: right; }

.tour-foot .stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }

.tour-foot .count { font-size: 11px; color: var(--muted); display: block; }

/* ---------- Comparison table ---------- */

.compare-section { background: var(--white); }

.table-wrap {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--white);
}

.hours-table-wrap .compare-table {
  min-width: 0;
  width: 100%;
}

.facts-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--cream-dark);
}

.compare-table thead th {
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
}

.compare-table tbody tr:hover td { background: #fdf9f0; }
.compare-table tbody tr:hover td:first-child { background: var(--cream-dark); }

/* ---------- Why us ---------- */

.why-section {
  background: var(--navy);
  color: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.why-card {
  background: var(--navy-card);
  border: 1px solid rgba(212, 160, 86, 0.22);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 36px 26px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 86, 0.45);
}

.why-figure {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.why-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  border: 1.5px solid rgba(212, 160, 86, 0.4);
  border-radius: 50%;
  background: rgba(212, 160, 86, 0.08);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.why-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.why-card:hover .why-icon {
  border-color: rgba(212, 160, 86, 0.7);
  background: rgba(212, 160, 86, 0.14);
  transform: scale(1.05);
}

.why-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.why-card p { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }

/* ---------- About / stats ---------- */

.about-section { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: none;
  border: 1px solid var(--border);
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.about-content .section-title { margin-bottom: 18px; }

.about-content > p { color: var(--muted); margin-bottom: 30px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
  margin-bottom: 34px;
}

.stat strong {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  display: block;
  line-height: 1.1;
}

.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- Reviews ---------- */

.reviews-section { background: var(--white); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 32px 28px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.review-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; }

.review-card blockquote {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.55;
  color: var(--navy);
  flex: 1;
  margin-bottom: 20px;
}

.review-card figcaption strong { display: block; color: var(--navy); font-size: 14px; }

.review-card figcaption span { font-size: 12px; color: var(--muted); display: block; }

.verified {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  color: #2e7d4f;
}

/* ---------- FAQ ---------- */

.faq-section { background: var(--cream); }

.faq-list { margin-top: 40px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 54px 20px 26px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.25s;
}

.faq-item[open] summary { color: var(--orange); }

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding: 0 26px 22px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Guides ---------- */

.guides-section { background: var(--white); }

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
}

.guide-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow);
}

.guide-img img { height: 200px; width: 100%; object-fit: cover; }

.guide-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.guide-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.guide-body h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
}

.guide-body p { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 16px; }

.read-more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- Blog / Travel Guide listing (guides.html) ---------- */

.cat-hero .hero-chips { margin-top: 28px; }

.cat-includes .why-card {
  background: var(--navy-card);
}

.cat-includes .why-card h3 {
  color: var(--cream);
  font-size: 18px;
  margin-bottom: 10px;
}

.cat-includes .why-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
}

.blog-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://www.civitatis.com/f/marruecos/marrakech/galeria/big/camellos-desierto.jpg") center / cover no-repeat;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.55) 0%, rgba(20, 32, 58, 0.78) 100%);
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px;
  max-width: 820px;
}

.blog-hero-title {
  margin-bottom: 22px;
  line-height: 1.1;
}

.blog-hero-title-main {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}

.blog-hero-title-script {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: clamp(52px, 7vw, 82px);
  font-weight: 400;
  color: var(--gold-light);
  margin-top: -8px;
  line-height: 1.2;
}

.blog-hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}

.blog-hero-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.3px;
}

.blog-filters-wrap {
  background: var(--cream);
  padding: 28px 0 8px;
  position: relative;
  z-index: 2;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.blog-filter-btn {
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.blog-filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.blog-filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.blog-content {
  padding: 36px 0 90px;
  background: var(--cream);
}

.blog-featured-block {
  margin-bottom: 48px;
}

.blog-featured-block[hidden] { display: none; }

.blog-featured-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-featured-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.82) 100%);
}

.blog-featured-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  z-index: 1;
}

.blog-featured-tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  border-radius: 3px;
  margin-bottom: 12px;
}

.blog-featured-body h2 {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
}

.blog-featured-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.blog-featured-body time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(20, 32, 58, 0.07);
  border: 1px solid rgba(20, 32, 58, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 32, 58, 0.12);
}

.blog-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card-body p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid #f0ebe3;
  margin-top: auto;
}

.blog-card-foot time {
  font-size: 12px;
  color: var(--muted);
}

.blog-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

/* ---------- CTA ---------- */

.cta-section {
  background:
    linear-gradient(rgba(15, 28, 33, 0.88), rgba(26, 47, 54, 0.82)),
    url("https://www.civitatis.com/f/marruecos/marrakech/galeria/big/campamento-estandar-merzouga.jpg") center / cover no-repeat fixed;
  padding: 110px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.72);
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: 44px;
  padding: 70px 0 50px;
}

.footer-brand p { font-size: 13px; margin: 18px 0 20px; }

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; font-size: 13px; }

.footer-col a { transition: color 0.2s; }

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Floating buttons ---------- */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #25d366 0%, #1ebe57 42%, #128c7e 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.45);
}

.wa-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #34df73;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.wa-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: #fff;
}

.wa-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-right: 6px;
}

.wa-text strong {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
}

.wa-text em {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 88px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(194, 87, 27, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--orange-dark);
  box-shadow: 0 12px 26px rgba(194, 87, 27, 0.42);
}

/* ============================================================
   Inner pages (tour detail, about, contact)
   ============================================================ */

/* ---------- Page hero (small banner) ---------- */

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .hero-bg { animation: none; }

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 70px;
}

.page-hero .breadcrumb {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.page-hero .breadcrumb a:hover { color: var(--gold-light); }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 820px;
}

.page-hero .hero-sub { max-width: 640px; }

.page-hero .route-line {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---------- Quick facts strip ---------- */

.facts-strip {
  background: var(--navy);
  padding: 26px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.fact {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.fact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-light);
}

.fact span { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Tour layout ---------- */

.tour-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

.tour-main > .section-title { margin-top: 50px; }
.tour-main > .section-title:first-child { margin-top: 0; }

/* At a glance grid */

.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 10px;
}

.glance-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.glance-item span {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.glance-item strong {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.25s;
}

.gallery-grid img:hover { transform: scale(1.03); }

/* Itinerary */

.itinerary { margin-top: 30px; }

.day-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

.day-block summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
}

.day-block summary::-webkit-details-marker { display: none; }

.day-num {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.day-num small {
  display: block;
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.day-title h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.day-title p { font-size: 12.5px; color: var(--muted); }

.day-toggle {
  margin-left: auto;
  font-size: 24px;
  color: var(--gold);
  flex: none;
}

.day-block[open] .day-toggle .plus { display: none; }
.day-block:not([open]) .day-toggle .minus { display: none; }

.day-body { padding: 0 26px 26px 98px; }

.day-body h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--orange);
  margin: 18px 0 6px;
}

.day-body p { font-size: 13.5px; color: var(--muted); }

.day-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.day-tags span {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  font-size: 11.5px;
  color: var(--navy);
  padding: 5px 14px;
}

/* Pricing table */

.price-table-wrap {
  overflow-x: auto;
  margin-top: 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 560px;
}

.price-table th, .price-table td {
  padding: 14px 18px;
  text-align: center;
  font-size: 13.5px;
  border-bottom: 1px solid var(--cream-dark);
}

.price-table thead th {
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 15px;
}

.price-table td:first-child, .price-table th:first-child { text-align: left; }

.price-table .best {
  background: #fdf4dd;
  font-weight: 700;
  color: var(--orange);
}

.price-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* Inclusions */

.inclusions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 26px;
}

.inc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.inc-card.included { border-top: 4px solid #2e7d4f; }
.inc-card.excluded { border-top: 4px solid var(--orange); }

.inc-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.inc-card ul { list-style: none; }

.inc-card li {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px dashed var(--cream-dark);
}

.inc-card li:last-child { border-bottom: none; }

.inc-card.included li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2e7d4f;
  font-weight: 700;
}

.inc-card.excluded li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* Booking sidebar */

.booking-card {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.booking-head {
  background: var(--navy);
  color: var(--white);
  padding: 22px 26px;
  text-align: center;
}

.booking-head .from-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.booking-head .big-price {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.booking-head .per { font-size: 12px; color: rgba(255, 255, 255, 0.65); }

.booking-body { padding: 24px 26px; }

.booking-body .form-row { margin-bottom: 14px; }

.booking-body label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 5px;
}

.booking-body input,
.booking-body select,
.booking-body textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.booking-body input:focus,
.booking-body select:focus,
.booking-body textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--gold); background: var(--white); }

.booking-body .btn, .contact-form .btn { width: 100%; text-align: center; }

.booking-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
}

.booking-perks {
  border-top: 1px solid var(--cream-dark);
  padding: 18px 26px 24px;
}

.booking-perks li {
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
  padding: 5px 0 5px 24px;
  position: relative;
}

.booking-perks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2e7d4f;
  font-weight: 700;
}

/* Related tours */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

/* ---------- About page ---------- */

.stats-band {
  background: var(--navy);
  padding: 34px 0;
}

.stats-band .facts-grid { grid-template-columns: repeat(5, 1fr); }

.prose { max-width: 800px; }

.prose p { color: var(--muted); margin-bottom: 16px; }

.prose .section-title { margin-top: 46px; }
.prose .section-title:first-child { margin-top: 0; }

.offer-table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

/* ---------- About page: hero chips + sidebar layout ---------- */

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  text-align: center;
}

.hero-chip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-light);
  line-height: 1.2;
}

.hero-chip span {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Atlas Mountains Trekking page ---------- */

.trek-why {
  max-width: 920px;
  margin: 0 auto;
}

.trek-why-copy {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.trek-why-copy p + p { margin-top: 18px; }

.trek-why-stats {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trek-table-wrap { margin-top: 36px; }

.trek-table td.trek-peak,
.trek-table td.trek-good,
.trek-table td.trek-winter,
.trek-table td.trek-avoid {
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.trek-table td.trek-peak { color: #1a7a3a; }
.trek-table td.trek-good { color: #2f6b4f; }
.trek-table td.trek-winter { color: #2a5a8c; }
.trek-table td.trek-avoid { color: #b33a2b; }

@media (max-width: 900px) {
  .trek-why-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .trek-hero .hero-chips { gap: 8px; }
  .trek-hero .hero-chip { padding: 8px 12px; flex: 1 1 calc(50% - 8px); }
}

.updated-badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 26px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  align-items: start;
}

.about-sidebar { position: sticky; top: 90px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 22px;
}

.sidebar-widget h5 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.sidebar-widget ul { list-style: none; }

.sidebar-widget li { border-bottom: 1px dashed var(--cream-dark); }

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget a {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.sidebar-widget a:hover { color: var(--orange); }

.mini-tour {
  display: block;
  padding: 11px 0;
}

.mini-tour strong {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
}

.mini-tour em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}

.mini-tour .mt-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
}

.sidebar-cta {
  display: block;
  text-align: center;
  background: #25d366;
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}

.sidebar-cta:hover { opacity: 0.9; }

.sidebar-email {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
}

/* ---------- Contact page ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  position: relative;
}

.contact-card .tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #e8f8ee;
  color: #2e7d4f;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-md);
}

.contact-card .cc-icon { font-size: 30px; margin-bottom: 12px; }

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-card .cc-value {
  font-weight: 600;
  color: var(--orange);
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}

.contact-card p { font-size: 13px; color: var(--muted); }

.hours-table-wrap {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow-x: auto;
  margin-top: 30px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  margin-top: 36px;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 5px;
}

.contact-form .form-row { margin-bottom: 18px; }

.form-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

/* Form success / error modal */
body.form-modal-open { overflow: hidden; }

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.form-modal[hidden] { display: none !important; }

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 34, 0.55);
  backdrop-filter: blur(2px);
}

.form-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px 26px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-dark);
  animation: formModalIn 0.28s ease;
}

@keyframes formModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

.form-modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 166, 107, 0.18);
  color: var(--orange-dark);
  font-size: 26px;
  font-weight: 700;
}

.form-modal.is-error .form-modal-icon {
  background: rgba(158, 26, 26, 0.12);
  color: #9e1a1a;
}

.form-modal-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.2;
}

.form-modal-text {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.form-modal-ok { min-width: 140px; }


/* ---------- Responsive ---------- */

@media (min-width: 1280px) {
  .container { width: min(1240px, 92%); }
  .main-nav { gap: 26px; }
  .hero-content { padding: 140px 0 150px; }
}

@media (max-width: 1024px) {
  .tour-grid, .reviews-grid, .guides-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured-grid { grid-template-columns: 1fr; }
  .why-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 12px;
  }
  .trust-item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.12); }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
  .tour-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .facts-grid, .stats-band .facts-grid, .facts-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }

  .site-header { padding: 0 14px; }
  .header-inner {
    gap: 12px;
    min-height: 64px;
    padding: 8px 0;
  }
  .header-right {
    margin-left: auto;
    gap: 8px;
    flex: 0 0 auto;
    align-items: center;
  }

  .main-nav {
    display: none;
    list-style: none;
  }
  .nav-toggle { display: inline-flex; }

  /* Panel is moved to <body> while open so header doesn't clip it */
  .main-nav.open,
  body > .main-nav.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 18px calc(28px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(15, 28, 33, 0.18);
    gap: 0;
    z-index: 190;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open > .nav-item > a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 1.1px;
  }

  .main-nav.open .nav-item .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 10px;
    display: none;
    min-width: 0;
    background: transparent;
  }

  .main-nav.open .nav-item.open .dropdown { display: block; }
  .main-nav.open .dropdown-label {
    padding: 12px 4px 4px;
    color: var(--muted);
  }
  .main-nav.open .dropdown a {
    padding: 12px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eef2f3;
    white-space: normal;
  }
  .main-nav.open .nav-item.open > a .caret {
    transform: rotate(180deg);
    display: inline-block;
  }
}

@media (max-width: 640px) {
  body { overflow-x: hidden; }

  .section { padding: 56px 0; }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .section-sub { font-size: 14.5px; margin-bottom: 16px; }

  .tour-grid, .reviews-grid, .guides-grid, .blog-grid, .why-grid, .trust-grid { grid-template-columns: 1fr; }
  .trust-item,
  .trust-item:nth-child(odd),
  .trust-item:nth-last-child(-n+2) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .trust-item:last-child { border-bottom: none; }
  .blog-filters { gap: 8px; }
  .blog-filter-btn { padding: 10px 14px; font-size: 11.5px; min-height: 40px; }
  .blog-hero-inner { padding: 80px 0 60px; }
  .glance-grid, .gallery-grid, .inclusions-grid, .contact-cards { grid-template-columns: 1fr; }
  .facts-grid, .stats-band .facts-grid, .facts-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .day-body { padding: 0 18px 22px; }
  .contact-form { padding: 24px 16px; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 36px; }

  .site-header { padding: 0 12px; }
  .site-header .logo-mark {
    height: 52px;
  }
  .site-header .logo-mark img {
    height: 52px;
    max-width: min(220px, 58vw);
  }
  .site-header .logo { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary.btn-sm {
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .main-nav.open {
    top: 60px;
    padding: 8px 14px calc(24px + env(safe-area-inset-bottom));
  }

  .page-hero { min-height: 320px; }
  .page-hero-content { padding: 72px 0 48px; }

  .compare-table th,
  .compare-table td { padding: 12px 14px; font-size: 12.5px; }
  .compare-table { min-width: 560px; }
  .hours-table-wrap .compare-table { min-width: 0; font-size: 13px; }
  .hours-table-wrap .compare-table th,
  .hours-table-wrap .compare-table td { padding: 12px; }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .form-field input,
  .form-field select,
  .form-field textarea,
  .booking-body input,
  .booking-body select,
  .booking-body textarea {
    font-size: 16px;
  }

  .tour-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin: 0 0 28px;
    padding: 4px 2px 14px;
    border-bottom: 1px solid var(--border);
  }
  .tour-tabs::-webkit-scrollbar {
    height: 4px;
  }
  .tour-tabs::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
  }
  .tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    min-height: 40px;
    font-size: 11px;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
  }
  .tab:hover {
    border-color: var(--orange);
    color: var(--orange);
  }
  .tab.active {
    color: #fff;
    background: var(--orange);
    border-color: var(--orange);
    border-bottom-color: var(--orange);
  }

  .glance-box {
    display: none;
  }

  .filter-note {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .hero {
    min-height: auto;
    min-height: calc(100svh - 60px);
    align-items: flex-end;
  }
  .hero-content {
    padding: 72px 0 56px;
    width: 100%;
  }
  .hero-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    font-size: 11px;
  }
  .hero-title .line-1,
  .hero-title .line-2 {
    font-size: clamp(28px, 8.5vw, 40px);
  }
  .hero-sub {
    font-size: 14.5px;
    margin-bottom: 20px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta .btn { width: 100%; text-align: center; }
  .scroll-cue { display: none; }

  .wa-text { display: none; }
  .whatsapp-float {
    padding: 8px;
    gap: 0;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .back-to-top {
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .btn { padding: 14px 22px; min-height: 44px; }
  .section-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .section-cta .btn { width: 100%; text-align: center; }

  .lang-pill { display: none !important; }
  .lang-switch { display: inline-flex; }
  .lang-switch-btn { min-height: 40px; padding: 10px 12px; }

  .cta-section { background-attachment: scroll; }
  .about-image img { height: 280px; object-fit: cover; }
  .trek-why-stats { grid-template-columns: 1fr; }
  .tour-card .tour-media img { height: 200px; }
  .tour-grid { gap: 20px; }
  .container { width: min(1180px, 94%); }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .facts-grid, .stats-band .facts-grid, .facts-grid-3, .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .header-actions .btn-primary.btn-sm { display: none; }
  .hero {
    min-height: calc(100svh - 56px);
  }
  .hero-content { padding: 56px 0 48px; }
  .hero-title .line-1,
  .hero-title .line-2 {
    font-size: clamp(26px, 9vw, 34px);
  }
  .hero-sub { font-size: 14px; }
  .tab {
    padding: 9px 12px;
    font-size: 10.5px;
  }
  .tour-body { padding: 18px 16px 14px; }
  .tour-body h3 { font-size: 18px; }
}

/* Ultra-narrow / DevTools extremes (< 320px) */
@media (max-width: 360px) {
  .container { width: 94%; }
  .site-header { padding: 0 8px; }
  .site-header .logo-mark {
    height: 44px;
  }
  .site-header .logo-mark img {
    height: 44px;
    max-width: min(180px, 62vw);
  }
  .hero-content { padding: 48px 0 40px; }
  .hero-badge { font-size: 10px; padding: 6px 10px; }
  .hero-title .line-1,
  .hero-title .line-2 {
    font-size: clamp(22px, 9vw, 28px);
  }
  .hero-sub { font-size: 13px; }
  .btn {
    padding: 12px 14px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  .trust-item h3 { font-size: 13px; }
  .trust-item p { font-size: 11px; }
  .section-title { font-size: clamp(22px, 8vw, 28px); }
}
