/* ==========================================================
   Marruecos Tours — Home
   Layout after agenciamarruecostours.com; dark sections in dark blue.
   ========================================================== */

:root {
  --gold: #DD9933;
  --gold-600: #C8862A;
  --gold-soft: #E6B56B;
  --gold-ink: #B77A1F;
  --gold-tint: rgba(221, 153, 51, .16);

  --night: #0E2150;
  --night-2: #13295F;
  --night-deep: #0A1838;

  --ink: #101B36;
  --text: #3D4757;
  --muted: #667085;
  --cream: #FAF7F2;
  --sand: #F4EFE6;
  --line: #E4DFD5;
  --white: #FFFFFF;
  --wa: #25D366;

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-title: "Marcellus", Georgia, "Times New Roman", serif;
  --f-ui: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: Georgia, "Times New Roman", Times, serif;
  --f-cond: "Oswald", "Arial Narrow", sans-serif;
  --f-script: "Dancing Script", "Brush Script MT", cursive;

  --radius: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 2px 10px rgba(16, 27, 54, .06);
  --shadow-lift: 0 18px 40px rgba(16, 27, 54, .14);

  --container: 1240px;
  --gutter: 20px;
  --section-y: clamp(64px, 7vw, 92px);
  --topbar-h: 40px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16.3px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--f-title); font-weight: 400; line-height: 1.18; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flag { width: 18px; height: 12px; flex: none; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--ink); font-family: var(--f-ui); font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; line-height: 1.75;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow--dash::before { content: "— "; }
.eyebrow--dash::after { content: " —"; }
.eyebrow--light { color: var(--gold-soft); }

.h2 { font-size: clamp(30px, 2.9vw, 41.6px); line-height: 1.18; }
.section-sub { max-width: 880px; margin: 16px auto 0; color: var(--muted); font-size: 16.3px; line-height: 1.75; }

.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: rgba(255, 255, 255, .72); }
.section--night .h2, .section--night h3 { color: var(--white); }
.section--night .eyebrow { color: var(--gold-soft); }
.section--night .section-sub { color: rgba(255, 255, 255, .7); }

.section-head { margin-bottom: 44px; text-align: center; }
.rule { display: block; width: 56px; height: 2px; margin: 22px auto 0; background: var(--gold); }
.rule--start { margin: 0 0 24px; }

.center { display: flex; justify-content: center; margin-top: 44px; }
.center--gap { flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  border: 1.5px solid transparent; border-radius: 8px;
  font-family: var(--f-ui); font-size: 15.5px; font-weight: 700; line-height: 1.6; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { font-size: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn--pill { border-radius: 999px; }
.btn--gold { background: var(--gold); color: #12161D; }
.btn--gold:hover { background: var(--gold-600); box-shadow: 0 8px 22px rgba(221, 153, 51, .35); }
.btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.btn--outline { padding: 13px 26px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 14.9px; }
.btn--outline:hover { background: var(--gold); color: #12161D; }
.btn--sm { padding: 8px 18px; border-radius: 999px; font-size: 13.4px; }

/* ---------- Top bar ---------- */
.brand { width: 1em; height: 1em; flex: none; fill: currentColor; }
.topbar { position: relative; z-index: 60; background: var(--night-deep); color: rgba(255, 255, 255, .85); font-family: var(--f-ui); font-size: 12.8px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; min-height: 40px; padding-block: 6px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar__contact .icon, .topbar__contact .brand { font-size: 14px; color: var(--gold-soft); }
.topbar__contact a:hover { color: var(--gold-soft); }
.topbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.topbar__social, .footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.topbar__social a, .footer__social a {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
  color: rgba(255, 255, 255, .88); font-size: 13px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.topbar__social a:hover, .footer__social a:hover { background: var(--gold); border-color: var(--gold); color: #12161D; }
.topbar__social .icon { stroke-width: 2.2; }
.topbar__lang { display: flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .16); font-weight: 700; letter-spacing: .04em; }
.topbar__lang a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .7); transition: color .2s; }
.topbar__lang a:hover, .topbar__lang a[aria-current="true"] { color: var(--gold-soft); }
.topbar__lang .flag { width: 18px; height: 12px; }

.nav__langs { display: none; }

/* Languages: also in a dock fixed in the middle of the right edge, on every page */
.lang-dock {
  position: fixed; top: 50%; right: 0; z-index: 45; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; padding: 8px 6px;
  background: rgba(14, 33, 80, .94); border: 1px solid rgba(255, 255, 255, .12); border-right: 0; border-radius: 14px 0 0 14px;
  box-shadow: 0 10px 30px rgba(5, 12, 30, .3); font-family: var(--f-ui);
}
@supports (backdrop-filter: blur(8px)) { .lang-dock { background: rgba(14, 33, 80, .84); backdrop-filter: blur(10px); } }
.lang-dock a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 6px 5px; border-radius: 9px; color: rgba(255, 255, 255, .75); font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: .08em; transition: background-color .2s, color .2s; }
.lang-dock a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.lang-dock a[aria-current="true"] { background: var(--gold); color: #12161D; }
.lang-dock .flag { width: 22px; height: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* ---------- Header ---------- */
.header { position: absolute; top: var(--topbar-h); left: 0; right: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.header.is-fixed { position: fixed; top: 0; background: rgba(14, 33, 80, .96); box-shadow: 0 10px 30px rgba(5, 12, 30, .3); animation: header-in .35s ease; }
@supports (backdrop-filter: blur(8px)) { .header.is-fixed { background: rgba(14, 33, 80, .88); backdrop-filter: blur(10px); } }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
.header__inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.header.is-fixed .header__inner { min-height: 72px; }

.logo { flex: none; }
.logo img { width: auto; height: 56px; }
.header.is-fixed .logo img { height: 48px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; }
.nav__list > li { position: relative; }
.nav__list > li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
  color: var(--white); font-family: var(--f-ui); font-size: 13.9px; font-weight: 600; letter-spacing: .02em;
  transition: color .2s;
}
.nav__link .icon { font-size: 13px; transition: transform .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--gold); }
.header:not(.is-fixed) .nav__link { text-shadow: 0 1px 3px rgba(5, 12, 30, .55), 0 0 14px rgba(5, 12, 30, .35); }
.header:not(.is-fixed) .logo img { filter: drop-shadow(0 1px 4px rgba(5, 12, 30, .45)); }
.header:not(.is-fixed) .nav-toggle { background: rgba(10, 24, 56, .45); }
@media (min-width: 1141px) {
  .header:not(.is-fixed) .nav__list { padding: 4px 6px; background: rgba(10, 24, 56, .55); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; }
  .header:not(.is-fixed) .nav__list > li + li { border-left-color: rgba(255, 255, 255, .12); }
}

/* Mega menu: city categories with photos, spanning the header row */
.nav__list > li.nav__drop { position: static; }
.nav__drop > .nav__link { position: relative; }
.nav__drop > .nav__link::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 30px; }
.mega {
  position: absolute; top: calc(100% - 8px); left: var(--gutter); right: var(--gutter); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__drop:hover .mega, .nav__drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.nav__drop:hover .nav__link .icon, .nav__drop:focus-within .nav__link .icon { transform: rotate(180deg); }
.mega__inner { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; padding: 14px; background: var(--white); border-radius: 18px; box-shadow: 0 30px 70px rgba(5, 12, 30, .3); }
.mega__intro {
  display: flex; flex-direction: column; align-items: flex-start; padding: 30px 26px;
  background: linear-gradient(160deg, rgba(14, 33, 80, .9), rgba(10, 24, 56, .97)), url("../img/textura-dunas.webp") center / cover;
  border-radius: 12px; color: rgba(255, 255, 255, .74);
}
.mega__eyebrow { margin: 0 0 10px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.mega__title { margin: 0 0 12px; color: var(--white); font-family: var(--f-cond); font-size: 29px; font-weight: 600; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.mega__title span { color: var(--gold-soft); font-family: var(--f-script); font-size: 1.12em; font-weight: 700; text-transform: none; }
.mega__text { margin: 0 0 24px; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.6; }
.mega__intro .btn { margin-top: auto; }
.mega__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 14px; font-weight: 600; transition: gap .2s, color .2s; }
.mega__link:hover { gap: 12px; color: var(--white); }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mega-card { display: block; padding: 8px 8px 10px; border-radius: 12px; transition: background-color .2s; }
.mega-card:hover, .mega-card:focus-visible { background: var(--cream); }
.mega-card__img { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 9px; background: var(--sand); }
.mega-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mega-card:hover .mega-card__img img { transform: scale(1.06); }
.mega-card__name { display: block; margin-top: 8px; color: var(--night); font-family: var(--f-cond); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; }
.mega-card__count { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-family: var(--f-ui); font-size: 13px; font-weight: 600; transition: gap .2s; }
.mega-card__count .icon { font-size: 13px; }
.mega-card:hover .mega-card__count { gap: 10px; }

.header__cta { padding: 11px 22px; font-size: 14px; }

.nav-toggle { display: none; flex: none; width: 46px; height: 46px; padding: 12px 11px; background: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 760px;
  padding: calc(var(--header-h) + 40px) 0 56px;
  background: var(--night-deep);
  color: var(--white);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero__slide.is-active img { transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 24, 56, .86) 0%, rgba(10, 24, 56, .66) 30%, rgba(10, 24, 56, .3) 48%, rgba(10, 24, 56, 0) 62%);
}

.hero__kicker { margin-bottom: 18px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.hero__title { max-width: 760px; color: var(--white); font-family: var(--f-display); font-size: clamp(40px, 4.6vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 34px; }
.hero__title { text-shadow: 0 2px 18px rgba(5, 12, 30, .45); }
.hero__title em { color: var(--gold); font-style: italic; }
.hero__sub { max-width: 560px; margin: -14px 0 32px; text-shadow: 0 1px 10px rgba(5, 12, 30, .5); color: rgba(255, 255, 255, .85); font-family: var(--f-ui); font-size: 16.6px; line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tour search: frosted glass over the cover */
.search {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 6px;
  max-width: min(1080px, calc(100% - 100px)); margin-top: 30px; padding: 7px;
  background: rgba(10, 24, 56, .42); border: 1px solid rgba(255, 255, 255, .26); border-radius: 18px;
  box-shadow: 0 22px 50px rgba(5, 12, 30, .25);
}
@supports (backdrop-filter: blur(8px)) { .search { background: rgba(10, 24, 56, .28); backdrop-filter: blur(14px) saturate(1.2); } }
.search__field { display: grid; gap: 3px; min-width: 0; padding: 9px 14px; background: rgba(255, 255, 255, .06); border-radius: 11px; cursor: pointer; transition: background-color .2s; }
.search__field:hover, .search__field:focus-within { background: rgba(255, 255, 255, .13); }
.search__label { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.search__label .icon { font-size: 13px; }
.search__field input, .search__field select {
  width: 100%; min-width: 0; padding: 2px 0; background: transparent; border: 0; outline: 0;
  color: var(--white); font-family: var(--f-ui); font-size: 14.5px; font-weight: 600; color-scheme: dark; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.search__field select {
  padding-right: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 14px;
}
.search__field option { background: var(--white); color: var(--ink); }
.search__field input::-webkit-calendar-picker-indicator { margin-left: 0; opacity: .85; cursor: pointer; }
.search__btn { padding: 0 24px; border-radius: 12px; }
.search__note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: rgba(255, 255, 255, .78); font-family: var(--f-ui); font-size: 13px; text-shadow: 0 1px 6px rgba(5, 12, 30, .6); }
.search__note .brand { color: var(--wa); font-size: 15px; }

/* Slide thumbnails: three at a time in a column on the right of the cover */
.hero__thumbs {
  position: absolute; z-index: 2; top: calc(var(--header-h) + 24px); bottom: 56px;
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter) - 8px));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hero__thumbs-window { position: relative; width: 60px; height: 172px; padding: 8px; overflow: hidden; }
.hero__thumbs-track { display: flex; flex-direction: column; gap: 12px; }
.hero__thumbs-arrow {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 50%;
  color: var(--white); font-size: 14px; cursor: pointer; filter: drop-shadow(0 1px 4px rgba(5, 12, 30, .6));
  transition: background-color .2s, border-color .2s, color .2s;
}
.hero__thumbs-arrow:hover { background: var(--gold); border-color: var(--gold); color: #12161D; }
.hero__thumbs-arrow--prev .icon { transform: rotate(180deg); }
.hero__thumb {
  flex: none; width: 44px; height: 44px; padding: 0; overflow: hidden;
  background: var(--night); border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(5, 12, 30, .45); cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .25s; }
.hero__thumb:hover { transform: scale(1.08); border-color: var(--gold-soft); }
.hero__thumb:hover img, .hero__thumb.is-active img { opacity: 1; }
.hero__thumb.is-active { transform: scale(1.14); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(221, 153, 51, .35), 0 2px 10px rgba(5, 12, 30, .5); }
.hero__thumb:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--night-2); color: rgba(255, 255, 255, .62); font-family: var(--f-ui); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 16px; padding: 26px 20px; font-size: 12.8px; line-height: 1.75; }
.trust-item + .trust-item { border-left: 1px solid rgba(255, 255, 255, .1); }
.trust-item__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; background: var(--gold-tint); border-radius: 12px; color: var(--gold-soft); font-size: 20px; }
.trust-item strong { display: block; color: var(--white); font-size: 15.2px; line-height: 1.3; }

/* ---------- Carousels ---------- */
.carousel { min-width: 0; }
.carousel__track {
  display: grid; grid-auto-flow: column; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.carousel__controls--start { justify-content: flex-start; }
.carousel__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 18px; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s, border-color .2s; }
.carousel__btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #12161D; }
.carousel__btn:disabled { opacity: .4; cursor: default; }
.carousel__btn--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--white); }
.carousel__dots { display: flex; gap: 6px; }
.carousel__dot { width: 8px; height: 8px; padding: 0; background: #D9D2C5; border: 0; border-radius: 999px; cursor: pointer; transition: width .3s, background-color .3s; }
.carousel__dot.is-active { width: 24px; background: var(--gold); }
.section--night .carousel__dot { background: rgba(255, 255, 255, .25); }
.section--night .carousel__dot.is-active { background: var(--gold); }

/* ---------- Cities ---------- */
.city-track { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
.city-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 24, 56, .78), rgba(10, 24, 56, 0) 48%); }
.city-card:hover img { transform: scale(1.06); }
.city-card__count { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 12px; background: rgba(255, 255, 255, .92); border-radius: 999px; color: #12161D; font-family: var(--f-ui); font-size: 11.5px; font-weight: 800; line-height: 1.75; }
.city-card__name { position: absolute; left: 16px; right: 16px; bottom: 64px; z-index: 1; color: var(--white); font-family: var(--f-title); font-size: 19.5px; line-height: 1.25; }
.city-card__more { position: absolute; left: 16px; bottom: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--white); border-radius: 999px; box-shadow: 0 4px 14px rgba(5, 12, 30, .25); color: var(--night); font-family: var(--f-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.city-card__more .icon { transition: transform .2s; }
.city-card:hover .city-card__more .icon { transform: translateX(4px); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 500px 1fr; align-items: center; gap: clamp(36px, 5vw, 64px); }
.about__media { position: relative; margin-right: 24px; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 2px; box-shadow: 0 22px 50px rgba(16, 27, 54, .14); }
.about__label { position: absolute; right: -24px; bottom: -14px; padding: 16px 20px; background: var(--night); color: var(--white); font-family: var(--f-title); font-size: 19px; line-height: 1.3; }
.about__label span { display: block; margin-bottom: 4px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.about__quote { margin-bottom: 26px; padding-left: 26px; border-left: 2px solid var(--gold); color: var(--ink); font-family: var(--f-title); font-size: 20.8px; font-style: italic; line-height: 1.7; }
.about__content .h2 { margin-bottom: 18px; }
.about__content p strong { color: var(--ink); }
.about__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 24px 0 32px; }
.about__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.about__list .icon { font-size: 16px; color: var(--gold); }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Tours ---------- */
/* Zellige star pattern in the top-right corner, with a horseshoe arch over it */
.tours { position: relative; isolation: isolate; overflow: hidden; }
.tours::before {
  content: ""; position: absolute; top: 0; right: 0; z-index: -1; width: 620px; height: 560px;
  background: url("../img/deco/zellige.svg") right top / 96px 96px repeat;
  opacity: .26;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, #000 28%, transparent 70%);
  mask-image: radial-gradient(circle at 100% 0, #000 0, #000 28%, transparent 70%);
}
.tours::after {
  content: ""; position: absolute; z-index: -1; top: 34px;
  right: max(16px, calc((100% - var(--container)) / 2 + 8px));
  width: 290px; aspect-ratio: 320 / 420;
  background: url("../img/deco/arco.svg") center / contain no-repeat;
  opacity: .42;
}
.tours__head { max-width: 900px; margin-bottom: 34px; }
.tours__title { margin: 0; color: var(--night); font-family: var(--f-cond); font-size: clamp(38px, 3.6vw, 50px); font-weight: 700; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.tours__title span { margin-left: .12em; font-family: var(--f-script); font-size: 1.04em; letter-spacing: 0; text-transform: none; }
.tours__rule { display: block; width: 88px; height: 5px; margin: 16px 0 22px; background: var(--night); border-radius: 3px; }
.tours__sub { margin: 0; color: var(--ink); font-family: var(--f-ui); font-size: 18px; line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.filter { padding: 11px 26px; background: var(--white); border: 1.5px solid var(--night); border-radius: 6px; color: var(--night); font-family: var(--f-cond); font-size: 16.5px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.filter:hover { background: rgba(14, 33, 80, .07); }
.filter.is-active { background: var(--night); color: var(--white); }

.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.tour-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 2px solid var(--night); border-radius: var(--radius); transition: transform .3s, box-shadow .3s; }
.tour-card[hidden] { display: none; }
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 33, 80, .16); }
.tour-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.tour-card:hover .tour-card__media img { transform: scale(1.05); }
.tour-card__days, .tour-card__tag { position: absolute; top: 18px; padding: 6px 14px; border-radius: 5px; font-family: var(--f-cond); font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; }
.tour-card__days { left: 18px; background: var(--night); color: var(--white); }
.tour-card__tag { right: 18px; background: var(--white); color: var(--night); }
.tour-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.tour-card__title { margin: 0; color: var(--night); font-family: var(--f-cond); font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; }
.tour-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tour-card__from { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--gold-ink); font-family: var(--f-ui); font-size: 15px; font-weight: 600; }
.tour-card__from .icon { font-size: 16px; }
.tour-card__text { margin: 12px 0 20px; color: var(--text); font-family: var(--f-ui); font-size: 16px; line-height: 1.6; }
.tour-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--night); font-family: var(--f-cond); font-size: 15.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, gap .2s; }
.tour-card:hover .tour-card__more { gap: 12px; color: var(--gold-ink); }
.tour-card__tag--gold { background: var(--gold); color: #12161D; }

/* Best sellers: the same cards, four at a time in a slider */
.best-track { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; padding: 6px 0 18px; }
.best-track .tour-card__days, .best-track .tour-card__tag { top: 14px; padding: 5px 10px; font-size: 13.5px; letter-spacing: .05em; }
.best-track .tour-card__days { left: 14px; }
.best-track .tour-card__tag { top: auto; right: auto; bottom: 14px; left: 14px; }
.best-track .tour-card__body { padding: 20px 20px 22px; }
.best-track .tour-card__title { font-size: 21px; }
.best-track .tour-card__text { font-size: 15px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-card { padding: 30px 24px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); transition: border-color .3s, background-color .3s; }
.why-card:hover { border-color: rgba(230, 181, 107, .45); background: rgba(255, 255, 255, .06); }
.why-card__icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--gold-tint); border-radius: 10px; color: var(--gold-soft); font-size: 19px; }
.why-card h3 { margin: 18px 0 12px; font-size: 18.6px; }
.why-card p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 14.4px; line-height: 1.65; }

/* ---------- Best sellers ---------- */

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; padding: 80px 0; text-align: center; color: rgba(255, 255, 255, .85);
  background: linear-gradient(rgba(10, 24, 56, .74), rgba(10, 24, 56, .74)), url("../img/agencia-ait-ben-haddou.webp") center / cover;
}
.cta-band__inner { display: grid; justify-items: center; }
.cta-band .h2 { max-width: 680px; color: var(--white); font-size: clamp(32px, 3vw, 43.2px); }
.cta-band p:not(.eyebrow) { max-width: 560px; margin: 16px 0 28px; font-size: 16.3px; }

/* ---------- Connect: experiences that toggle open and drive a photo stage ---------- */
.connect__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
.connect__title { font-size: clamp(28px, 2.7vw, 38px); }
.connect .tours__rule { margin: 16px 0 20px; }
.connect__intro { margin: 0 0 26px; }

.xp { border-top: 1px solid rgba(16, 27, 54, .12); }
.xp__item { position: relative; border-bottom: 1px solid rgba(16, 27, 54, .12); }
.xp__heading { margin: 0; }
.xp__btn { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 2px; background: none; border: 0; color: var(--night); text-align: left; cursor: pointer; }
.xp__num {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px;
  border: 1.5px solid rgba(14, 33, 80, .22); border-radius: 50%;
  font-family: var(--f-cond); font-size: 14px; font-weight: 600; letter-spacing: .04em;
  transition: background-color .3s, border-color .3s, color .3s;
}
.xp__name { flex: 1; font-family: var(--f-cond); font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; opacity: .55; transition: opacity .25s; }
.xp__btn:hover .xp__name, .xp__item.is-open .xp__name { opacity: 1; }
.xp__item.is-open .xp__num { background: var(--gold); border-color: var(--gold); color: #12161D; }
.xp__toggle { position: relative; flex: none; width: 30px; height: 30px; border: 1.5px solid rgba(14, 33, 80, .22); border-radius: 50%; transition: background-color .3s, border-color .3s, transform .35s; }
.xp__toggle::before, .xp__toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; background: var(--night); transform: translate(-50%, -50%); transition: transform .35s, background-color .3s; }
.xp__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.xp__item.is-open .xp__toggle { background: var(--night); border-color: var(--night); transform: rotate(180deg); }
.xp__item.is-open .xp__toggle::before, .xp__item.is-open .xp__toggle::after { background: var(--white); }
.xp__item.is-open .xp__toggle::after { transform: translate(-50%, -50%); }

.xp__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.xp__item.is-open .xp__panel { grid-template-rows: 1fr; }
.xp__panel-inner { min-height: 0; overflow: hidden; padding-left: 54px; visibility: hidden; transition: visibility 0s .45s; }
.xp__item.is-open .xp__panel-inner { visibility: visible; transition-delay: 0s; }
.xp__panel-img { display: none; }
.xp__places { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--gold-ink); font-family: var(--f-ui); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.xp__text { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; }
.xp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.xp__chips li { padding: 5px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; }
.xp__link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--night); font-family: var(--f-cond); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: gap .2s, color .2s; }
.xp__link:hover { gap: 12px; color: var(--gold-ink); }

.xp-stage { position: relative; aspect-ratio: 4 / 5; margin: 0 22px 22px 0; }
.xp-stage::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: 24px; }
.xp-stage__frame { position: absolute; inset: 0; overflow: hidden; background: var(--night); border-radius: 22px; box-shadow: 0 30px 60px rgba(16, 27, 54, .25); }
.xp-stage__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 24, 56, .82) 0%, rgba(10, 24, 56, .25) 34%, rgba(10, 24, 56, 0) 55%); }
.xp-stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 7s ease-out; }
.xp-stage__img.is-active { opacity: 1; transform: scale(1); }
.xp-stage__count { position: absolute; top: 20px; left: 20px; z-index: 1; padding: 6px 14px; background: rgba(10, 24, 56, .45); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: rgba(255, 255, 255, .8); font-family: var(--f-cond); font-size: 14px; letter-spacing: .08em; }
@supports (backdrop-filter: blur(6px)) { .xp-stage__count { background: rgba(10, 24, 56, .3); backdrop-filter: blur(8px); } }
.xp-stage__count b { color: var(--white); font-weight: 600; }
.xp-stage__caption { position: absolute; left: 28px; right: 130px; bottom: 26px; z-index: 1; color: var(--white); }
.xp-stage__caption.is-in { animation: xp-caption .7s ease both; }
@keyframes xp-caption { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.xp-stage__places { margin: 0 0 2px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.xp-stage__title { margin: 0; font-family: var(--f-script); font-size: clamp(34px, 3.3vw, 48px); line-height: 1.15; text-shadow: 0 2px 14px rgba(5, 12, 30, .5); }
.xp-stage__nav { position: absolute; right: 24px; bottom: 28px; z-index: 1; display: flex; gap: 8px; }
.xp-stage__nav button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%;
  color: var(--white); font-size: 17px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.xp-stage__nav button:hover { background: var(--gold); border-color: var(--gold); color: #12161D; }

/* ---------- Reviews ---------- */
.reviews .section-head { margin-bottom: 36px; }
.rating { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; color: var(--white); font-family: var(--f-ui); font-size: 14px; font-weight: 600; }
.rating__score { color: var(--gold-soft); font-family: var(--f-title); font-size: 26px; line-height: 1; }
.rating > .icon { color: var(--gold-soft); font-size: 14px; }
.rating:hover span:last-of-type { text-decoration: underline; text-underline-offset: 3px; }

.review-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; }
.review-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); }
.review-card__text { margin: 0; color: rgba(255, 255, 255, .78); font-size: 14.4px; line-height: 1.65; }
.review-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.review-card__avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: var(--gold); border-radius: 50%; color: #12161D; font-family: var(--f-ui); font-size: 14px; font-weight: 800; }
.review-card__who { display: grid; font-family: var(--f-ui); line-height: 1.35; }
.review-card__who strong { color: var(--white); font-size: 14px; }
.review-card__who span { color: rgba(255, 255, 255, .55); font-size: 11.8px; }
.review-card__link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--gold-soft); font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; }
.review-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.reviews__note { margin: 18px 0 0; text-align: center; color: rgba(255, 255, 255, .45); font-family: var(--f-ui); font-size: 12px; }

/* ---------- Footer ---------- */
.footer {
  padding-top: 64px; color: rgba(255, 255, 255, .72); font-family: var(--f-ui); font-size: 14.4px;
  background: linear-gradient(rgba(10, 24, 56, .88), rgba(10, 24, 56, .95)), url("../img/textura-dunas.webp") center / cover;
}
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 44px; }
.footer__grid > * { padding-inline: 22px; }
.footer__grid > * + * { border-left: 1px solid rgba(255, 255, 255, .12); }
.footer__grid > :first-child { padding-left: 0; }
.footer h3 { margin-bottom: 18px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.footer li { margin-bottom: 8px; line-height: 1.75; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--gold-soft); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .icon { margin-top: 6px; color: var(--gold); font-size: 14px; }
.footer__contact a { word-break: break-word; }
.footer__bottom { background: rgba(5, 12, 30, .55); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; }
.footer__bottom p { margin: 0; color: rgba(255, 255, 255, .55); font-family: var(--f-body); font-size: 12.8px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px;
  background: var(--wa); border-radius: 999px; box-shadow: 0 10px 28px rgba(37, 211, 102, .4);
  color: var(--white); font-family: var(--f-ui); font-size: 13.8px; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.wa-float .icon { font-size: 19px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ==========================================================
   Tour page
   ========================================================== */
.tour-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 620px;
  padding: calc(var(--header-h) + 48px) 0 56px; background: var(--night-deep); color: var(--white);
}
.tour-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tour-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 24, 56, .6) 0%, rgba(10, 24, 56, .12) 32%, rgba(10, 24, 56, .5) 66%, rgba(10, 24, 56, .92) 100%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 18px; color: rgba(255, 255, 255, .7); font-family: var(--f-ui); font-size: 13px; font-weight: 600; }
.crumbs a { color: var(--white); transition: color .2s; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs [aria-current] { color: var(--gold-soft); }
.tour-hero__kicker { margin: 0 0 10px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.tour-hero__title { max-width: 900px; margin: 0 0 22px; color: var(--white); font-family: var(--f-cond); font-size: clamp(36px, 4.6vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(5, 12, 30, .45); }
.tour-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tour-hero__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; background: rgba(10, 24, 56, .5); border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; font-family: var(--f-ui); font-size: 14px; font-weight: 600; }
@supports (backdrop-filter: blur(6px)) { .tour-hero__facts li { background: rgba(10, 24, 56, .32); backdrop-filter: blur(8px); } }
.tour-hero__facts .icon { color: var(--gold-soft); }
.tour-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.rating--hero { margin: 0; }

/* City pages reuse the tour cover; a short description sits under the title */
.city-hero::before { background: linear-gradient(90deg, rgba(10, 24, 56, .78) 0%, rgba(10, 24, 56, .5) 45%, rgba(10, 24, 56, .15) 75%), linear-gradient(180deg, rgba(10, 24, 56, .55) 0%, rgba(10, 24, 56, 0) 30%, rgba(10, 24, 56, .55) 100%); }
.city-hero .crumbs { text-shadow: 0 1px 6px rgba(5, 12, 30, .6); }
.city-hero__sub { max-width: 640px; margin: -8px 0 22px; color: rgba(255, 255, 255, .88); font-family: var(--f-ui); font-size: 16.5px; line-height: 1.65; text-shadow: 0 1px 10px rgba(5, 12, 30, .55); }

/* Section tabs that stay under the fixed header */
.tour-tabs { position: sticky; top: 72px; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(16, 27, 54, .05); }
.tour-tabs__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tour-tabs__inner::-webkit-scrollbar { display: none; }
.tour-tabs a { flex: none; padding: 16px 16px 13px; border-bottom: 3px solid transparent; color: var(--muted); font-family: var(--f-cond); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.tour-tabs a:hover { color: var(--night); }
.tour-tabs a.is-active { border-bottom-color: var(--gold); color: var(--night); }

.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: clamp(32px, 4vw, 56px); padding-block: 56px 80px; }
.tour-block { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.tour-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.tour-block__title { margin: 0 0 18px; color: var(--night); font-family: var(--f-cond); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.tour-block__title span { margin-left: .08em; color: var(--gold-ink); font-family: var(--f-script); font-size: 1.08em; text-transform: none; }
.tour-block__sub { margin: -6px 0 20px; color: var(--muted); font-family: var(--f-ui); font-size: 15px; font-weight: 600; }
.tour-text p { margin: 0 0 16px; }
.tour-text strong, .day strong { color: var(--ink); }
/* Details: lead paragraph, the tour at a glance, highlights, and the rest behind "Leer más" */
.details-lead { margin: 0 0 24px; padding-left: 18px; border-left: 3px solid var(--gold); color: var(--ink); font-size: 18px; line-height: 1.75; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.fact { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.fact__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--night); border-radius: 50%; color: var(--gold-soft); font-size: 16px; }
.fact small { display: block; color: var(--muted); font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fact strong { display: block; color: var(--night); font-family: var(--f-ui); font-size: 14px; font-weight: 700; line-height: 1.3; }
.highlights { margin: 0 0 24px; }
.highlights__title { margin: 0 0 10px; color: var(--gold-ink); font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.highlights__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.highlights__list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--white); border: 1px solid rgba(221, 153, 51, .45); border-radius: 999px; color: var(--ink); font-family: var(--f-ui); font-size: 13.5px; font-weight: 600; }
.highlights__list .icon { color: var(--gold); font-size: 13px; }
.details-sub { margin: 22px 0 10px; color: var(--night); font-family: var(--f-cond); font-size: 19px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.checklist { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; top: .3em; left: 0; width: 20px; height: 20px; background: rgba(37, 211, 102, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E9E57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-radius: 50%; }
.details-more__btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 18px; background: none; border: 1.5px solid var(--night); border-radius: 999px; color: var(--night); font-family: var(--f-cond); font-size: 14.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.details-more__btn:hover { background: var(--night); color: var(--white); }
.details-more__btn .icon { transition: transform .3s; }
.details-more__close, .details-more.is-open .details-more__open { display: none; }
.details-more.is-open .details-more__close { display: inline; }
.details-more.is-open .details-more__btn .icon { transform: rotate(180deg); }
.details-more .acc-panel__inner > :first-child { margin-top: 0; }
.tour-figure { margin: 26px 0 0; }
.tour-figure img { width: 100%; border-radius: 16px; }

/* Gallery: three photos at a time in a slider that moves on its own; click to enlarge */
.gallery-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
.gallery-slide { display: block; padding: 0; overflow: hidden; background: var(--sand); border: 0; border-radius: 14px; cursor: zoom-in; }
.gallery-slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.gallery-slide:hover img { transform: scale(1.05); }

/* Toggles shared by the itinerary and the FAQ */
.acc-icon { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid rgba(14, 33, 80, .22); border-radius: 50%; transition: background-color .3s, border-color .3s, transform .35s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; background: var(--night); transform: translate(-50%, -50%); transition: transform .35s, background-color .3s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
[data-acc-item].is-open .acc-icon { background: var(--night); border-color: var(--night); transform: rotate(180deg); }
[data-acc-item].is-open .acc-icon::before, [data-acc-item].is-open .acc-icon::after { background: var(--white); }
[data-acc-item].is-open .acc-icon::after { transform: translate(-50%, -50%); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
[data-acc-item].is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .4s; }
[data-acc-item].is-open .acc-panel__inner { visibility: visible; transition-delay: 0s; }

.days { display: grid; gap: 12px; }
.day { background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s, box-shadow .3s; }
.day.is-open { border-color: rgba(221, 153, 51, .55); box-shadow: var(--shadow-card); }
.day__head { margin: 0; }
.day__btn { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; background: none; border: 0; text-align: left; cursor: pointer; }
.day__num { flex: none; padding: 6px 12px; background: var(--night); border-radius: 8px; color: var(--white); font-family: var(--f-cond); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.day.is-open .day__num { background: var(--gold); color: #12161D; }
.day__title { flex: 1; color: var(--night); font-family: var(--f-cond); font-size: 17.5px; font-weight: 600; line-height: 1.35; letter-spacing: .03em; text-transform: uppercase; }
.day .acc-panel__inner { padding: 0 22px; }
.day .acc-panel__inner p { margin: 0 0 14px; }
.day .acc-panel__inner p:last-child { margin-bottom: 20px; }

/* Route map: places visited (gold dots) and nights (dark blue pins), with the day list under it */
.route-map { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.route-map__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 210px; }
.route-map__canvas { position: relative; z-index: 0; height: 430px; background: var(--sand); }

/* Photo card of the selected place: a narrow column beside the map (a strip under it on smaller screens) */
.place-card { display: flex; flex-direction: column; min-width: 0; background: var(--cream); border-left: 1px solid var(--line); }
.place-card__photo { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.place-card__photo::before { content: ""; position: absolute; inset: 0; background: url("../img/deco/zellige.svg") center / 64px 64px; opacity: .14; }
.place-card__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.place-card__photo img.is-in { opacity: 1; }
.place-card__ph { position: absolute; inset: 0; display: none; place-items: center; color: var(--gold-soft); font-size: 28px; }
.place-card__photo.is-empty .place-card__ph { display: grid; }
.place-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 12px 14px 14px; }
.place-card__count { margin: 0 0 4px; color: var(--muted); font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.place-card__count b { color: var(--gold-ink); }
.place-card__name { margin: 0 0 4px; color: var(--night); font-family: var(--f-cond); font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.place-card__meta { margin: 0; color: var(--gold-ink); font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.place-card__nav { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; }
.place-card__nav button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 50%; color: var(--night); font-size: 14px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.place-card__nav button:hover { background: var(--gold); border-color: var(--gold); color: #12161D; }
@media (max-width: 1140px) {
  .route-map__stage { grid-template-columns: minmax(0, 1fr); }
  .route-map__canvas { height: 400px; }
  .place-card { flex-direction: row; align-items: center; gap: 0; background: var(--white); border-top: 1px solid var(--line); border-left: 0; }
  .place-card__photo { width: 120px; align-self: stretch; aspect-ratio: auto; min-height: 90px; }
  .place-card__body { position: relative; justify-content: center; padding: 10px 92px 10px 14px; }
  .place-card__nav { position: absolute; top: 50%; right: 12px; margin: 0; padding: 0; transform: translateY(-50%); }
}
.pin-wrap.is-active { z-index: 1000 !important; }
.pin-wrap.is-active .pin { box-shadow: 0 0 0 5px rgba(221, 153, 51, .45), 0 2px 8px rgba(5, 12, 30, .35); transform: scale(1.15); }
.route-map__loading { display: grid; place-items: center; height: 100%; margin: 0; color: var(--muted); font-family: var(--f-ui); font-size: 14px; }
.route-map__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--f-ui); font-size: 13px; font-weight: 600; }
.route-map__legend li { display: inline-flex; align-items: center; gap: 8px; }
.route-map__legend .pin--sleep { width: 22px; height: 22px; border-width: 2px; }
.route-map__legend .pin--sleep .icon { font-size: 11px; }
.route-map__line { width: 26px; height: 0; border-top: 3px dashed var(--gold-600); }
.pin-wrap { background: none; border: 0; }
.pin { display: grid; place-items: center; border-radius: 50%; box-shadow: 0 2px 8px rgba(5, 12, 30, .35); }
.pin--visit { width: 16px; height: 16px; background: var(--gold); border: 3px solid var(--white); }
.pin-wrap .pin--visit { width: 20px; height: 20px; }
.pin--sleep { width: 34px; height: 34px; background: var(--night); border: 3px solid var(--white); color: var(--gold-soft); }
.pin--sleep .icon { font-size: 16px; }
.route-map .leaflet-popup-content { margin: 10px 14px; color: var(--ink); font-family: var(--f-ui); font-size: 13.5px; line-height: 1.5; }
.route-map .leaflet-popup-content strong { color: var(--night); font-size: 14.5px; }
.map-pop__night { color: var(--gold-ink); font-weight: 700; }
.route-map .leaflet-container { font-family: var(--f-ui); }

.route-days { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.route-day { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; width: 100%; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-family: var(--f-ui); font-size: 14px; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.route-day:hover { border-color: rgba(221, 153, 51, .6); }
.route-day.is-active { background: var(--cream); border-color: var(--gold); }
.route-day__n { padding: 4px 10px; background: var(--night); border-radius: 7px; color: var(--white); font-family: var(--f-cond); font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.route-day.is-active .route-day__n { background: var(--gold); color: #12161D; }
.route-day__stops { font-weight: 600; line-height: 1.45; }
.route-day__night { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.route-day__night--end { color: var(--muted); }

/* Included / not included: one card like a travel ticket, the two halves split by a perforated tear line */
.incl { position: relative; background: var(--white); border-radius: 18px; box-shadow: 0 0 0 1px rgba(16, 27, 54, .07), 0 14px 34px rgba(16, 27, 54, .08); }
.incl::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: linear-gradient(var(--gold), var(--gold-600)); border-radius: 18px 0 0 18px; }
.incl__part { padding: 24px 28px 26px 32px; }
.incl__part--no { background: var(--cream); border-radius: 0 0 18px 18px; }
.incl__part--no:first-child { border-radius: 18px; }
.incl__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.incl__head h3 { flex: 1; margin: 0; color: var(--night); font-family: var(--f-cond); font-size: 21px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.incl__badge { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; }
.incl__badge .icon { stroke-width: 2.6; }
.incl__part--yes .incl__badge { background: var(--night); color: var(--gold-soft); }
.incl__part--no .incl__badge { background: var(--white); border: 1.5px solid rgba(192, 57, 43, .35); color: #C0392B; }
.incl__count { padding: 4px 11px; border-radius: 999px; font-family: var(--f-ui); font-size: 12px; font-weight: 700; white-space: nowrap; }
.incl__part--yes .incl__count { background: rgba(37, 211, 102, .12); color: #17824A; }
.incl__part--no .incl__count { background: rgba(192, 57, 43, .09); color: #A93226; }
.incl__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.incl__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.5; }
.incl__mark { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; font-size: 12px; }
.incl__mark .icon { stroke-width: 3; }
.incl__part--yes .incl__mark { background: rgba(37, 211, 102, .15); color: #1E9E57; }
.incl__part--no .incl__mark { background: rgba(192, 57, 43, .1); color: #C0392B; }
.incl__part--no .incl__list li { color: var(--text); }
/* Perforation with a half-circle notch on each side */
.incl__tear { position: relative; height: 0; margin: 0 22px; border-top: 2px dashed rgba(221, 153, 51, .55); }
.incl__tear::before, .incl__tear::after { content: ""; position: absolute; top: -16px; width: 32px; height: 32px; background: var(--white); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(16, 27, 54, .07); }
.incl__tear::before { left: -38px; clip-path: inset(0 0 0 50%); }
.incl__tear::after { right: -38px; clip-path: inset(0 50% 0 0); }
/* Booking information (some tours): contact card with WhatsApp and email, and a note */
.book-info { margin-top: 36px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.book-info__head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; }
.book-info__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; background: var(--night); border-radius: 50%; color: var(--gold-soft); font-size: 20px; }
.book-info__title { margin: 2px 0 6px; color: var(--night); font-family: var(--f-cond); font-size: 21px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.book-info__head p { margin: 0; font-size: 15.5px; }
.book-info__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 24px 20px; }
.book-info__contact { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background-color .2s, transform .2s; }
.book-info__contact:hover { background: var(--cream); border-color: var(--gold); transform: translateY(-2px); }
.book-info__ci { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--night); border-radius: 50%; color: var(--gold-soft); font-size: 18px; }
.book-info__contact--wa .book-info__ci { background: var(--wa); color: var(--white); }
.book-info__contact small { display: block; color: var(--muted); font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.book-info__contact strong { display: block; color: var(--ink); font-family: var(--f-ui); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.book-info__note { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 24px; background: var(--cream); border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.book-info__note .icon { flex: none; margin-top: 4px; color: var(--gold); font-size: 16px; }
.book-info__note strong { color: var(--night); }
.tour-note .notice { margin-top: 0; }
.notice { margin-top: 18px; padding: 22px 24px; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; }
.notice h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--night); font-family: var(--f-ui); font-size: 16px; font-weight: 800; }
.notice h3 .icon { color: var(--gold); }
.notice p { margin: 0; font-size: 15px; }
.notice a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__head { margin: 0; }
.faq__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 2px; background: none; border: 0; color: var(--ink); font-family: var(--f-ui); font-size: 16px; font-weight: 700; line-height: 1.45; text-align: left; cursor: pointer; transition: color .2s; }
.faq__btn:hover, .faq__item.is-open .faq__btn { color: var(--gold-ink); }
.faq .acc-panel__inner p { margin: 0 0 18px; padding-right: 44px; }

/* How to book: three numbered steps in a card that folds open and closed */
.steps__card { border: 1.5px solid rgba(221, 153, 51, .45); border-radius: 18px; }
.steps__head { margin: 0; }
.steps__btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 22px 26px; background: none; border: 0; color: var(--night); text-align: left; cursor: pointer; }
.steps__btn > .icon:first-child { color: var(--gold); font-size: 26px; }
.steps__title { flex: 1; font-family: var(--f-cond); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; }
.steps__title span { color: var(--gold-ink); font-family: var(--f-script); font-size: 1.1em; text-transform: none; }
.steps__chev { color: var(--gold-ink); font-size: 20px; transition: transform .35s; }
.steps__card.is-open .steps__chev { transform: rotate(180deg); }
.steps__list { margin: 0; padding: 2px 26px 28px; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; top: 60px; bottom: 8px; left: 25px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(221, 153, 51, .7) 0 6px, transparent 6px 12px); }
.step__num { display: grid; place-items: center; width: 52px; height: 52px; background: var(--night); border-radius: 50%; box-shadow: 0 0 0 5px rgba(221, 153, 51, .28); color: var(--gold-soft); font-family: var(--f-cond); font-size: 22px; font-weight: 700; }
.step__title { margin: 4px 0 6px; color: var(--night); font-family: var(--f-ui); font-size: 18px; font-weight: 800; line-height: 1.35; }
.step p { margin: 0 0 10px; }
.step p:last-child { margin-bottom: 0; }
.step a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.step__list li { position: relative; margin: 7px 0; padding-left: 22px; }
.step__list li::before { content: ""; position: absolute; top: .72em; left: 3px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* Reviews under the questions: light cards on the page background */
.tour-reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.tour-reviews__head .eyebrow { margin-bottom: 6px; }
.tour-reviews__title { margin: 0; }
.tour-reviews .rating { color: var(--ink); }
.tour-reviews .rating__score { color: var(--gold-ink); }
.tour-reviews__track { grid-auto-columns: calc((100% - 18px) / 2); padding: 4px 2px 12px; }
.tour-reviews .review-card { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-card); }
.tour-reviews .review-card__text { color: var(--text); }
.tour-reviews .review-card__foot { border-top-color: var(--line); }
.tour-reviews .review-card__who strong { color: var(--ink); }
.tour-reviews .review-card__who span { color: var(--muted); }
.tour-reviews .review-card__link { color: var(--gold-ink); }
.tour-reviews .carousel__controls { margin-top: 18px; }
.tour-reviews .reviews__note { color: var(--muted); }

/* Booking card: the sidebar form sends the request on WhatsApp */
/* The sidebar runs the full height of the tour, so the card can stay in view while the page scrolls */
.tour-side { display: flex; flex-direction: column; align-self: stretch; }
/* Each card sticks only inside its own part of the sidebar: main.js ends the form's part where "Cómo reservar" starts */
.side-seg--form { flex: none; min-height: 50%; }
.side-seg--story { flex: 1; padding-top: 22px; }
.book-card { position: sticky; z-index: 2; top: 132px; max-height: calc(100vh - 148px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; isolation: isolate; padding: 28px 26px; background: var(--night); border-radius: 18px; box-shadow: var(--shadow-lift); color: rgba(255, 255, 255, .8); }
.book-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/deco/zellige.svg") right top / 96px 96px; opacity: .1; }
.book-card__eyebrow { margin: 0 0 4px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.book-card__title { margin: 0 0 18px; color: var(--white); font-family: var(--f-cond); font-size: 28px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.book-form label { display: grid; gap: 6px; margin-bottom: 12px; color: rgba(255, 255, 255, .82); font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }
.book-form input, .book-form textarea {
  width: 100%; min-width: 0; padding: 11px 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
  color: var(--white); font-family: var(--f-ui); font-size: 15px; font-weight: 500; color-scheme: dark; transition: border-color .2s, background-color .2s;
}
.book-form textarea { resize: vertical; }
.book-form input:focus, .book-form textarea:focus { background: rgba(255, 255, 255, .12); border-color: var(--gold-soft); outline: 0; }
.book-form__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; gap: 10px; }
.book-form__via { margin: 6px 0 8px; color: rgba(255, 255, 255, .82); font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }
.book-form__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.book-form__btn { width: 100%; padding-inline: 12px; }
.book-form__btn .brand, .book-form__btn .icon { font-size: 18px; }
.book-form__btn:disabled { opacity: .6; cursor: wait; }
.book-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-form__status { margin: 12px 0 0; font-family: var(--f-ui); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.book-form__status:empty { display: none; }
.book-form__status.is-ok { padding: 10px 12px; background: rgba(37, 211, 102, .14); border: 1px solid rgba(37, 211, 102, .35); border-radius: 10px; color: #8FF0B5; }
.book-card__alt { margin: 14px 0 0; font-family: var(--f-ui); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.book-card__alt a { color: var(--gold-soft); }

/* Story card: stays in view from "Cómo reservar" to the end of the tour */
.story-card { position: sticky; top: 132px; max-height: calc(100vh - 148px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--white); border-radius: 18px; box-shadow: 0 0 0 1px rgba(16, 27, 54, .06), var(--shadow-lift); }
.story-card__body { position: relative; padding: 22px 24px 24px; }
.story-card__body::before { content: ""; position: absolute; top: -1px; right: 0; width: 120px; height: 120px; background: url("../img/deco/zellige.svg") right top / 64px 64px; opacity: .12; pointer-events: none; }
.story-card__eyebrow { margin: 0 0 6px; color: var(--gold-ink); font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.story-card__title { margin: 0 0 12px; color: var(--night); font-family: var(--f-cond); font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.story-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.story-card__avatar { flex: none; width: 74px; height: 74px; object-fit: cover; object-position: 50% 25%; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(16, 27, 54, .18); }
.story-card__head .story-card__title { margin: 0; }
.story-card__role { margin: 4px 0 0; color: var(--muted); font-family: var(--f-ui); font-size: 12.5px; line-height: 1.45; }
.story-card__body > p { margin: 0 0 12px; font-size: 14.6px; line-height: 1.65; }
.story-card__body > p:last-of-type { margin-bottom: 18px; }
.story-card__btn { width: 100%; }
@media (max-height: 820px) {
  .story-card__body { padding: 18px 20px 20px; }
  .story-card__head { gap: 14px; margin-bottom: 12px; padding-bottom: 12px; }
  .story-card__avatar { width: 60px; height: 60px; }
  .story-card__body > p { margin-bottom: 10px; font-size: 14px; line-height: 1.55; }
}

.related .tours__head { margin-bottom: 26px; }

.lightbox { max-width: none; max-height: none; padding: 0; overflow: visible; background: transparent; border: 0; }
.lightbox::backdrop { background: rgba(5, 12, 30, .9); }
.lightbox__img { display: block; max-width: min(1200px, 88vw); max-height: 84vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%; color: var(--white); font-size: 20px; cursor: pointer; transition: background-color .2s, color .2s; }
.lightbox__btn:hover { background: var(--gold); border-color: var(--gold); color: #12161D; }
.lightbox__btn--close { top: -58px; right: 0; font-size: 26px; line-height: 1; }
.lightbox__btn--prev { top: 50%; left: -66px; transform: translateY(-50%); }
.lightbox__btn--next { top: 50%; right: -66px; transform: translateY(-50%); }

/* ==========================================================
   Other pages (about us, guides, contact, lists, terms…)
   ========================================================== */
.page-hero { min-height: 460px; }
.page-body__inner { display: grid; gap: 40px; max-width: 980px; }
.page-head { margin-top: 12px; }
.page-head .eyebrow { margin-bottom: 6px; }
.page-h2 { margin: 0; color: var(--night); font-family: var(--f-cond); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.page-head .tours__rule { margin: 14px 0 0; }
.page-head__sub { margin: 16px 0 0; color: var(--text); font-size: 16.5px; }
.prose { color: var(--text); font-size: 16.3px; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose h3, .prose h4 { margin: 28px 0 10px; color: var(--night); font-family: var(--f-cond); font-size: 21px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.prose li { position: relative; margin: 8px 0; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; top: .72em; left: 3px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(28px, 4vw, 52px); }
.split--flip .split__media { order: 2; }
.split__media { margin: 0; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-lift); }
.split__media img { width: 100%; height: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.photo-grid figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); border-radius: 16px; box-shadow: var(--shadow-card); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-grid figure:hover img { transform: scale(1.05); }
.page-figure { width: min(100%, 560px); margin: 0 auto; overflow: hidden; border-radius: 18px; }
.page-figure img { width: 100%; height: auto; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat-card { padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.feat-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; background: var(--night); border-radius: 50%; color: var(--gold-soft); font-size: 20px; }
.feat-card h3 { margin: 0 0 10px; color: var(--night); font-family: var(--f-cond); font-size: 20px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.feat-card p { margin: 0; font-size: 15px; line-height: 1.7; }
.page-tours { margin-top: -8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: clamp(28px, 4vw, 52px); }
.contact-card { position: static; max-height: none; overflow: visible; }
.contact-list { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; font-family: var(--f-ui); font-size: 15px; }
.contact-list li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.contact-list .icon { color: var(--gold); font-size: 18px; }
.contact-list a:hover { color: var(--gold-ink); }
.page-reviews { background: var(--cream); }
.page-reviews .reviews__note { color: var(--muted); }

/* ---------- Contact (the contact cards also sit under the About cover) ---------- */
.page-hero--cards { padding-bottom: 124px; }
/* The ways to reach us, as cards over the bottom of the cover */
.ct-channels-wrap { position: relative; z-index: 2; margin-top: -76px; }
.ct-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ct-channel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; height: 100%; padding: 24px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); transition: transform .3s, border-color .3s; }
a.ct-channel:hover { transform: translateY(-4px); border-color: rgba(221, 153, 51, .55); }
.ct-channel__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; background: var(--night); border-radius: 50%; color: var(--gold-soft); font-size: 21px; }
.ct-channel--wa .ct-channel__icon { background: var(--wa); color: var(--white); font-size: 23px; }
.ct-channel__text { display: flex; flex-direction: column; flex: 1; gap: 3px; min-width: 0; }
.ct-channel__label { color: var(--muted); font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ct-channel__value { color: var(--night); font-family: var(--f-ui); font-size: 15.5px; font-weight: 800; line-height: 1.35; overflow-wrap: break-word; }
.ct-channel__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--gold-ink); font-family: var(--f-ui); font-size: 13.5px; font-weight: 700; }
.ct-channel__more .icon { transition: transform .2s; }
a.ct-channel:hover .ct-channel__more .icon { transform: translateX(3px); }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: clamp(36px, 5vw, 72px); }
.ct-intro__head .h2 { margin: 6px 0 18px; }
.ct-lead { margin: 0; color: var(--ink); font-family: var(--f-title); font-size: 19px; line-height: 1.65; }
.ct-steps { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.ct-steps__title { margin: 0 0 24px; color: var(--night); font-family: var(--f-cond); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; }
.ct-steps__title span { color: var(--gold-ink); font-family: var(--f-script); font-size: 1.1em; text-transform: none; }
.ct-steps .steps__list { padding: 0; }
@media (min-width: 961px) and (min-height: 860px) { .ct-grid .contact-card { position: sticky; top: 100px; } }
.ct-why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- About us ---------- */
.about-page .tour-hero__bg { object-position: 50% 32%; }
.ab-story__grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
.ab-story__media { position: relative; isolation: isolate; padding: 18px 64px 64px 18px; }
/* Horseshoe arch photo with a gold outline behind it, a round photo and the "based in" label over it */
.ab-story__media::before {
  content: ""; position: absolute; top: 0; left: 0; z-index: -1; width: calc(100% - 82px); aspect-ratio: 4 / 5;
  border: 2px solid var(--gold); border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; opacity: .6;
}
.ab-story__main { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; box-shadow: var(--shadow-lift); }
.ab-story__main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ab-story__inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; overflow: hidden; border: 8px solid var(--white); border-radius: 50%; box-shadow: var(--shadow-lift); }
.ab-story__inset img { width: 100%; height: 100%; object-fit: cover; }
.ab-story__badge { position: absolute; left: 0; bottom: 118px; margin: 0; padding: 14px 20px; background: var(--night); color: var(--white); font-family: var(--f-title); font-size: 19px; line-height: 1.3; box-shadow: var(--shadow-lift); }
.ab-story__badge span { display: block; margin-bottom: 4px; color: var(--gold-soft); font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ab-story__text .h2 { margin: 6px 0 18px; }
.ab-story__lead { color: var(--ink); font-family: var(--f-title); font-size: 20.5px; line-height: 1.6; }
.ab-story__lead a, .ab-story__lead strong { color: var(--night); }
.ab-story__quote { margin: 8px 0 0; padding: 18px 22px 18px 26px; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--night); font-family: var(--f-title); font-size: 19px; font-style: italic; line-height: 1.6; }

.ab-stats {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(56px, 7vw, 88px) 0 0; padding: 34px 20px;
  background: var(--night); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}
.ab-stats::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background: url("../img/deco/zellige.svg") right top / 96px 96px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 55%);
  mask-image: linear-gradient(to left, #000, transparent 55%);
}
.ab-stat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 14px; text-align: center; }
.ab-stat + .ab-stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.ab-stat strong { color: var(--gold-soft); font-family: var(--f-display); font-size: clamp(40px, 4vw, 54px); font-weight: 700; line-height: 1; }
.ab-stat span { color: rgba(255, 255, 255, .8); font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }

/* Guides: round photos with a navy band across, the name and the language they guide in */
.ab-team { position: relative; isolation: isolate; overflow: hidden; }
.ab-team::before {
  content: ""; position: absolute; top: 0; right: 0; z-index: -1; width: 620px; height: 560px; opacity: .1;
  background: url("../img/deco/zellige.svg") right top / 96px 96px repeat;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, #000 28%, transparent 70%);
  mask-image: radial-gradient(circle at 100% 0, #000 0, #000 28%, transparent 70%);
}
.ab-team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.guide__circle { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--night-2); border: 5px solid #D9DEE8; border-radius: 50%; box-shadow: 0 18px 40px rgba(3, 9, 25, .45); }
.guide__circle img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.guide:hover .guide__circle img { transform: scale(1.04); }
.guide__band { position: absolute; top: 72%; right: 0; bottom: 5%; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(14, 33, 80, .9); color: var(--white); text-align: center; }
.guide__name { margin: 0; color: var(--white); font-family: var(--f-ui); font-size: clamp(19px, 2.1vw, 28px); font-weight: 800; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.guide__lang { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--f-ui); font-size: clamp(13px, 1.35vw, 17px); font-weight: 500; line-height: 1.2; }
.guide__lang .icon { font-size: 1.05em; opacity: .85; }
.guide__lang .flag { width: 24px; height: 16px; }

.ab-why__grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; gap: clamp(40px, 6vw, 88px); }
.ab-why__intro { position: sticky; top: 110px; }
.ab-why__intro .h2 { margin: 6px 0 0; }
.ab-why__intro .section-sub { margin: 16px 0 34px; }
.ab-why__photo { overflow: hidden; margin: 0 10px 10px 0; border-radius: var(--radius-lg); outline: 1px solid rgba(230, 181, 107, .45); outline-offset: 10px; }
.ab-why__photo img { width: 100%; height: auto; }
.ab-why__list { margin: 0; padding: 0; list-style: none; }
.pillar { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 30px 0; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__num { color: var(--gold); font-family: var(--f-display); font-size: 46px; font-weight: 700; line-height: 1; }
.pillar h3 { margin: 2px 0 10px; color: var(--night); font-size: 23px; }
.pillar p { margin: 0; color: var(--text); font-size: 15.4px; line-height: 1.75; }
.pillar p strong { color: var(--ink); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .header__cta { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--night); border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 30px rgba(5, 12, 30, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list > li + li { border-left: 0; }
  .nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__link { display: flex; padding: 14px 0; font-size: 15.5px; }
  .nav__link .icon { display: none; }
  .nav { max-height: calc(100dvh - var(--topbar-h) - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .nav__drop > .nav__link::after { display: none; }
  /* The city list follows the menu: while the menu is closed it must not catch taps over the page */
  .mega, .nav__drop:hover .mega, .nav__drop:focus-within .mega { position: static; padding: 0 0 16px; opacity: 1; visibility: inherit; transform: none; transition: none; }
  .mega__inner { display: block; padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .mega__intro { display: none; }
  .mega__grid { gap: 10px; }
  .mega-card { position: relative; padding: 0; overflow: hidden; border-radius: 10px; }
  .mega-card:hover, .mega-card:focus-visible { background: none; }
  .mega-card__img { aspect-ratio: 2 / 1; border-radius: 10px; }
  .mega-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 24, 56, 0) 30%, rgba(10, 24, 56, .88) 100%); }
  .mega-card__name { position: absolute; left: 10px; right: 10px; bottom: 22px; margin: 0; color: var(--white); font-size: 13.5px; }
  .mega-card__count { position: absolute; left: 10px; bottom: 6px; color: var(--gold-soft); font-size: 11px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .best-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --topbar-h: 0px; }
  /* Phones and small tablets: no top bar; the languages move from the side dock into the menu */
  .topbar, .lang-dock { display: none; }
  .nav__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 4px; font-family: var(--f-ui); }
  .nav__langs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
  .nav__langs a[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: #12161D; }
  .nav__langs .flag { width: 20px; height: 13px; }
  .hero { min-height: 0; padding-bottom: 44px; }
  .search { max-width: none; }
  .hero__thumbs { position: static; flex-direction: row; justify-content: flex-start; margin-top: 22px; }
  .hero__thumbs-window { width: 172px; height: 60px; }
  .hero__thumbs-track { flex-direction: row; }
  .hero__thumbs-arrow--prev .icon { transform: rotate(90deg); }
  .hero__thumbs-arrow--next .icon { transform: rotate(-90deg); }
  .hero::before { background: linear-gradient(180deg, rgba(10, 24, 56, .38) 0%, rgba(10, 24, 56, .55) 45%, rgba(10, 24, 56, .85) 100%); }
  .hero__title, .hero__kicker { text-shadow: 0 2px 14px rgba(5, 12, 30, .55); }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .city-track { grid-auto-columns: calc((100% - 20px) / 2.3); }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { width: min(420px, 100%); margin: 0 auto 24px; }
  .about__label { right: -12px; }
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .best-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .gallery-track { grid-auto-columns: calc((100% - 14px) / 2); }
  .connect__grid { grid-template-columns: minmax(0, 1fr); }
  .tour-layout { grid-template-columns: minmax(0, 1fr); }
  .split, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__media { order: 0; }
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { min-height: 380px; }
  .book-card { position: static; max-height: none; overflow: visible; }
  .side-seg--form { min-height: 0 !important; }
  .story-card { position: relative; top: auto; max-height: none; overflow: hidden; }
  .tour-hero { min-height: 520px; }
  .xp-stage { display: none; }
  .xp__panel-img { display: block; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 16px; object-fit: cover; border-radius: 12px; }
  .review-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer__grid > :nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .ab-story__grid, .ab-why__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* One column: the form comes right after the introduction, the steps after it */
  .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ct-intro { display: contents; }
  .ct-grid .contact-card { order: 1; margin-top: 30px; }
  .ct-steps { order: 2; margin-top: 44px; }
  .ct-why-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .ab-story__media { width: min(100%, 500px); margin-inline: auto; }
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 16px; }
  .ab-stat { padding: 22px 10px; }
  .ab-stat + .ab-stat { border-left: 0; }
  .ab-stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .14); }
  .ab-stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .ab-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }
  .ab-why__intro { position: static; }
  .ab-why__photo { max-width: 560px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 72px; --topbar-h: 0px; }
  .logo img { height: 46px; }
  .header__cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero__sub { font-size: 15.5px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .search { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px; }
  .search__field { padding: 9px 12px; }
  .search__field:nth-child(5), .search__btn { grid-column: 1 / -1; }
  .search__field input, .search__field select { font-size: 14px; }
  .search__btn { padding: 14px 20px; }
  .search__note { font-size: 12.5px; }
  .trustbar__grid { grid-template-columns: 1fr; }
  .trust-item { padding: 18px 4px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .city-track { grid-auto-columns: 72%; gap: 14px; }
  .about__list { grid-template-columns: 1fr; }
  .about__label { right: 0; bottom: -18px; }
  .tour-grid, .why-grid { grid-template-columns: 1fr; }
  .best-track { grid-auto-columns: 86%; gap: 16px; }
  .tour-hero { padding-bottom: 40px; }
  .tour-hero__facts li { padding: 6px 12px; font-size: 13px; }
  .tour-tabs a { padding: 14px 12px 11px; font-size: 14px; }
  .tour-layout { padding-block: 40px 56px; }
  .incl__part { padding: 20px 18px 22px 22px; }
  .incl__list { grid-template-columns: minmax(0, 1fr); }
  .incl__head { flex-wrap: wrap; }
  .incl__tear { margin: 0 14px; }
  .incl__tear::before { left: -30px; }
  .incl__tear::after { right: -30px; }
  .day__btn { gap: 12px; padding: 14px; }
  .day__title { font-size: 15.5px; }
  .day .acc-panel__inner { padding: 0 16px; }
  .faq .acc-panel__inner p { padding-right: 0; }
  .gallery-track { grid-auto-columns: 78%; gap: 10px; }
  .route-map__canvas { height: 340px; }
  .place-card__photo { width: 100px; min-height: 80px; }
  .place-card__name { font-size: 16.5px; }
  .route-day { grid-template-columns: auto minmax(0, 1fr); }
  .route-day__night { grid-column: 2; white-space: normal; }
  .tour-reviews__track { grid-auto-columns: 88%; }
  .steps__btn { gap: 10px; padding: 18px 16px; }
  .details-lead { font-size: 16.5px; padding-left: 14px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-info__head { padding: 18px 16px 14px; gap: 12px; }
  .book-info__contacts { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; }
  .book-info__note { padding: 12px 16px; }
  .steps__btn > .icon:first-child { font-size: 22px; }
  .steps__list { padding: 0 16px 22px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .step__num { width: 40px; height: 40px; font-size: 18px; box-shadow: 0 0 0 4px rgba(221, 153, 51, .28); }
  .step:not(:last-child)::before { top: 48px; left: 19px; }
  .step__title { margin-top: 6px; font-size: 16.5px; }
  .lightbox__btn--prev { left: 8px; }
  .lightbox__btn--next { right: 8px; }
  .lightbox__img { max-width: 94vw; }
  .mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tours__sub { font-size: 16.5px; }
  .tours::after { top: 18px; right: 6px; width: 150px; opacity: .3; }
  .tours::before { width: 300px; height: 300px; }
  .filters { gap: 8px; }
  .filter { padding: 9px 16px; font-size: 15px; }
  .tour-card__title { font-size: 23px; }
  .tour-card__body { padding: 20px 20px 22px; }
  .xp__panel-inner { padding-left: 0; }
  .xp__name { font-size: 18px; }
  .xp__btn { gap: 12px; }
  .about__actions .btn { flex: 1 1 auto; }
  .review-track { grid-auto-columns: 86%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > * { padding-inline: 0; }
  .footer__grid > * + * { border-left: 0; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
  .wa-float { padding: 14px; }
  .wa-float span { display: none; }
  .about-page .tour-hero__bg { object-position: 80% 32%; }  /* keep the host on the right in view */
  .page-hero--cards { padding-bottom: 96px; }
  .ct-channels-wrap { margin-top: -56px; }
  .ct-channels { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ct-channel { flex-direction: row; align-items: center; padding: 16px 18px; }
  .ct-channel__icon { width: 44px; height: 44px; font-size: 19px; }
  .ct-channel__more { padding-top: 2px; }
  .ct-lead { font-size: 17.5px; }
  .ab-story__media { padding: 12px 40px 44px 12px; }
  .ab-story__media::before { width: calc(100% - 52px); }
  .ab-story__inset { width: 44%; border-width: 6px; }
  .ab-story__badge { bottom: 84px; padding: 12px 16px; font-size: 17px; }
  .ab-story__lead { font-size: 18.5px; }
  .ab-story__quote { font-size: 17.5px; }
  .ab-stat strong { font-size: 38px; }
  .ab-stat span { font-size: 11px; letter-spacing: .1em; }
  .ab-team__grid { gap: 18px 14px; }
  .guide__circle { border-width: 4px; }
  .guide__band { top: 69%; bottom: 4%; gap: 2px; }
  .guide__name { font-size: 18px; }
  .guide__lang { gap: 6px; font-size: 12.5px; }
  .guide__lang .flag { width: 18px; height: 12px; }
  .pillar { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .pillar__num { font-size: 34px; }
  .pillar h3 { font-size: 20px; }
}
