/* Desert tours, all tours and why Morocco (gen_index.py: desert_page, all_tours_page, why_page).
   Built on the shared parts of styles.css and grupos.css (hero, headings, intro, tips, FAQ, closing band). */

.lp-page .section { scroll-margin-top: 90px; }
.lp-head--light .ab3-title { color: var(--white); }
.lp-head--light .ab3-sub { color: rgba(255, 255, 255, .78); }
.lp-hero .gp-hero__title { max-width: 900px; }
.lp-desert .lp-hero .tour-hero__bg { object-position: 50% 70%; }
.lp-all .lp-hero .tour-hero__bg { object-position: 50% 40%; }
.lp-why .lp-hero .tour-hero__bg { object-position: 50% 55%; }

/* ---------- The desert experience: four photo cards ---------- */
.lp-xp { background: var(--cream); }
.lp-xp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.lp-xp__item { overflow: hidden; display: flex; flex-direction: column; background: var(--white); border-radius: 20px; box-shadow: 0 14px 34px rgba(10, 24, 56, .08); }
.lp-xp__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.lp-xp__item:hover img { transform: scale(1.04); }
.lp-xp__body { position: relative; flex: 1; padding: 30px 22px 24px; }
.lp-xp__n { position: absolute; top: -22px; left: 22px; display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--white); border-radius: 50%; background: var(--gold); color: var(--night); font-family: var(--f-cond); font-size: 16px; font-weight: 700; }
.lp-xp__body h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--f-display); font-size: 21px; font-weight: 600; line-height: 1.25; }
.lp-xp__body p { margin: 0; color: var(--text); font-family: var(--f-ui); font-size: 15px; line-height: 1.65; }

/* ---------- Tour catalogue with filters ---------- */
.lp-catalog { background: var(--sand); }
.lp-filters { max-width: 1060px; margin: 0 auto 34px; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 40px rgba(10, 24, 56, .07); }
.lp-filters--simple { padding: 18px 20px; text-align: center; }
.lp-filters--simple .lp-chips { justify-content: center; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 42px; padding: 7px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--night); font-family: var(--f-cond); font-size: 15px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.lp-chip span { display: grid; place-items: center; min-width: 26px; height: 26px; margin-right: -9px; padding: 0 7px; background: var(--sand); border-radius: 999px; color: var(--night); font-family: var(--f-ui); font-size: 12px; letter-spacing: 0; }
.lp-chip:hover { border-color: var(--gold); background: var(--gold-tint); }
.lp-chip.is-active:hover { background: var(--gold-600); border-color: var(--gold-600); }
.lp-chip.is-active { background: var(--gold); border-color: var(--gold); color: #12161D; box-shadow: 0 8px 22px rgba(221, 153, 51, .35); }
.lp-chip.is-active span { background: var(--night); color: var(--white); }
.lp-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lp-note { display: flex; align-items: flex-start; justify-content: center; gap: 10px; max-width: 820px; margin: 16px auto 0; padding: 12px 18px; background: var(--gold-tint); border-radius: 14px; color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.6; text-align: left; }
.lp-note .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-ink); }
.lp-note[hidden] { display: none; }
.lp-search { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 0 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.lp-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.lp-search .icon { flex: none; width: 19px; height: 19px; color: var(--gold-ink); }
.lp-search input { flex: 1; min-width: 0; height: 52px; padding: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-family: var(--f-ui); font-size: 16px; }
.lp-search input::placeholder { color: var(--muted); }
.lp-filters__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line); }
.lp-filters__label { color: var(--muted); font-family: var(--f-ui); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lp-filters__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lp-count { margin: 0; color: var(--ink); font-family: var(--f-ui); font-size: 15px; font-weight: 700; }
.lp-reset { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; background: none; border: 0; color: var(--gold-ink); font-family: var(--f-ui); font-size: 14px; font-weight: 700; cursor: pointer; }
.lp-reset .icon { width: 14px; height: 14px; }
.lp-reset[hidden] { display: none; }
.lp-grid > [hidden] { display: none; }
.lp-empty { max-width: 560px; margin: 10px auto 0; padding: 34px 28px; background: var(--white); border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
.lp-empty[hidden] { display: none; }
.lp-empty__ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-ink); }
.lp-empty__ico .icon { width: 22px; height: 22px; }
.lp-empty p { margin: 14px 0 20px; color: var(--text); font-family: var(--f-ui); font-size: 16px; line-height: 1.65; }

/* ---------- Places on the road: a row of cards that scrolls ---------- */
.lp-places__wrap { position: relative; }
.lp-places__track { display: flex; gap: 22px; margin: 0; padding: 6px 4px 26px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.lp-place { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); }
.lp-place img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-place__body { padding: 18px 20px 22px; }
.lp-place__tag { display: inline-block; margin-bottom: 8px; padding: 4px 10px; background: var(--gold-tint); border-radius: 999px; color: var(--gold-ink); font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lp-place h3 { margin: 0 0 6px; color: var(--ink); font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.lp-place p { margin: 0; color: var(--text); font-family: var(--f-ui); font-size: 14.5px; line-height: 1.65; }
.lp-places__btn { position: absolute; top: 34%; left: -22px; z-index: 2; box-shadow: var(--shadow-lift); }
.lp-places__btn--next { right: -22px; left: auto; }

/* ---------- Departure cities ---------- */
.lp-cities__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.lp-city a { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); color: inherit; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.lp-city a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.lp-city img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lp-city__count { position: absolute; top: 14px; left: 14px; padding: 6px 12px; background: rgba(10, 24, 56, .82); border-radius: 999px; color: var(--white); font-family: var(--f-ui); font-size: 13px; font-weight: 700; }
.lp-city__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.lp-city__body strong { color: var(--night); font-family: var(--f-cond); font-size: 22px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lp-city__body > span { color: var(--text); font-family: var(--f-ui); font-size: 15px; line-height: 1.6; }
.lp-city__body em { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--gold-ink); font-family: var(--f-ui); font-size: 14.5px; font-style: normal; font-weight: 700; }
.lp-city__body em .icon { width: 15px; height: 15px; transition: transform .2s; }
.lp-city a:hover em .icon { transform: translateX(4px); }

/* ---------- Navy band of reasons (all tours, why Morocco) ---------- */
.lp-features { position: relative; overflow: hidden; background: var(--night); color: var(--white); }
.lp-features::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 0%, rgba(221, 153, 51, .18), transparent 45%), radial-gradient(circle at 92% 100%, rgba(221, 153, 51, .12), transparent 40%); pointer-events: none; }
.lp-features .container { position: relative; }
.lp-features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.lp-features__grid li { padding: 28px 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; }
.lp-features__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; background: var(--gold); color: var(--night); }
.lp-features__ico .icon { width: 22px; height: 22px; }
.lp-features__grid h3 { margin: 0 0 8px; color: var(--white); font-family: var(--f-cond); font-size: 19px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lp-features__grid p { margin: 0; color: rgba(255, 255, 255, .78); font-family: var(--f-ui); font-size: 15px; line-height: 1.65; }
.lp-choose__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; margin-top: 38px; text-align: center; }
.lp-choose__foot p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .86); font-family: var(--f-display); font-size: 20px; font-style: italic; line-height: 1.5; }

/* ---------- Why Morocco ---------- */
.lp-why-intro { padding-bottom: 20px; }
.lp-lead { max-width: 820px; margin: 0 auto; color: var(--text); font-family: var(--f-ui); font-size: 18px; line-height: 1.8; text-align: center; }
.lp-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 34px auto 0; padding: 0; list-style: none; }
.lp-index a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--night); font-family: var(--f-ui); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: border-color .2s, background-color .2s; }
.lp-index a:hover { background: var(--cream); border-color: var(--gold); }
.lp-index span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: var(--gold-soft); font-family: var(--f-cond); font-size: 14px; }
.lp-reasons { padding-top: 40px; }
.lp-reasons .container { display: grid; gap: clamp(56px, 7vw, 96px); }
.lp-reason { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 84px); scroll-margin-top: 110px; }
.lp-reason--flip .lp-reason__media { order: 2; }
.lp-reason__media { position: relative; margin: 0; }
.lp-reason__media::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; z-index: 0; border: 2px solid rgba(221, 153, 51, .55); border-radius: 26px; }
.lp-reason--flip .lp-reason__media::before { inset: 22px 22px -18px -18px; }
.lp-reason__media img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 26px 54px rgba(10, 24, 56, .18); }
.lp-reason__text { max-width: 540px; }
.lp-reason__n { display: block; margin-bottom: 4px; color: var(--gold); font-family: var(--f-display); font-size: clamp(56px, 6vw, 84px); font-weight: 700; line-height: 1; opacity: .9; }
.lp-reason__text h3 { margin: 0 0 14px; color: var(--ink); font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1.15; }
.lp-reason__text p { margin: 0 0 18px; color: var(--text); font-family: var(--f-ui); font-size: 17px; line-height: 1.8; }
.lp-reason__link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-ink); font-family: var(--f-ui); font-size: 15.5px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lp-reason__link .icon { width: 15px; height: 15px; transition: transform .2s; }
.lp-reason__link:hover .icon { transform: translateX(4px); }
.lp-gallery { background: var(--cream); }
.lp-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.lp-gallery__item { position: relative; overflow: hidden; padding: 0; background: var(--sand); border: 0; border-radius: 16px; cursor: zoom-in; }
.lp-gallery__item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.lp-gallery__item:nth-child(6n + 4) { grid-column: span 2; }
.lp-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lp-gallery__item:hover img { transform: scale(1.06); }
.lp-gallery__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--night); opacity: 0; transition: opacity .25s; }
.lp-gallery__zoom .icon { width: 17px; height: 17px; }
.lp-gallery__item:hover .lp-gallery__zoom, .lp-gallery__item:focus-visible .lp-gallery__zoom { opacity: 1; }
.lp-gallery__item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lp-more { margin: 34px 0 0; text-align: center; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1140px) {
  .lp-xp__grid, .lp-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-places__btn { display: none; }
}
@media (max-width: 960px) {
  .lp-reason { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-reason--flip .lp-reason__media { order: 0; }
  .lp-reason__text { max-width: none; }
  .lp-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .lp-gallery__item:nth-child(6n + 4) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .lp-features__grid { grid-template-columns: minmax(0, 1fr); }
  .lp-xp__grid, .lp-cities__grid { display: flex; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .lp-xp__grid::-webkit-scrollbar, .lp-cities__grid::-webkit-scrollbar { display: none; }
  .lp-xp__item, .lp-city { flex: 0 0 82%; scroll-snap-align: start; }
  .lp-xp__item:hover img { transform: none; }
  .lp-city a:hover { transform: none; }
  .lp-filters { margin-bottom: 26px; padding: 16px; border-radius: 18px; }
  .lp-filters--simple { padding: 14px 12px; }
  .lp-chips { flex-wrap: nowrap; margin-inline: -16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
  .lp-chips::-webkit-scrollbar { display: none; }
  .lp-filters--simple .lp-chips { justify-content: flex-start; margin-inline: -12px; padding-inline: 12px; }
  .lp-chip { min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .lp-filters__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lp-search input { height: 48px; font-size: 16px; }
  .lp-note { font-size: 14.5px; }
  .lp-reason__media::before, .lp-reason--flip .lp-reason__media::before { inset: 14px -8px -10px 14px; }
  .lp-reason__text p { font-size: 16px; }
  .lp-lead { font-size: 16.5px; text-align: left; }
  .lp-index { flex-wrap: nowrap; justify-content: flex-start; margin: 26px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; }
  .lp-index::-webkit-scrollbar { display: none; }
  .lp-index li { flex: none; }
  .lp-index a { font-size: 13.5px; white-space: nowrap; }
  .lp-gallery__grid { grid-auto-rows: 130px; gap: 10px; }
  .lp-choose__foot p { font-size: 18px; }
}
