/* Group tours popup of the home pages (markup: _build/grupos_popup.py, behaviour: assets/js/grupos.js) */
html.gt-lock { overflow: hidden; }
.gt-pop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.gt-pop[hidden] { display: none; }
.gt-pop__backdrop { position: absolute; inset: 0; background: rgba(10, 24, 56, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: gt-fade .3s ease; }
.gt-pop__dialog { position: relative; width: min(100%, 940px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
  border-radius: 22px; background: var(--cream, #FAF7F2); box-shadow: 0 40px 90px rgba(5, 12, 30, .45); outline: none; animation: gt-rise .35s cubic-bezier(.2, .8, .2, 1); }
.gt-pop__close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px rgba(5, 12, 30, .2); cursor: pointer; transition: transform .2s; }
.gt-pop__close:hover { transform: rotate(90deg); }
.gt-pop__close svg { width: 20px; height: 20px; fill: none; stroke: var(--night, #0A1838); stroke-width: 2.2; stroke-linecap: round; }
@keyframes gt-fade { from { opacity: 0; } }
@keyframes gt-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* Intro: Sahara photo, title, the two tours */
.gt-hero { position: relative; height: 290px; overflow: hidden; border-radius: 22px 22px 0 0; background: var(--night, #0A1838); }
.gt-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.gt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 24, 56, .92) 0%, rgba(10, 24, 56, .62) 50%, rgba(10, 24, 56, .3) 100%),
  linear-gradient(90deg, rgba(10, 24, 56, .4), rgba(10, 24, 56, 0) 70%); }
.gt-hero__text { position: absolute; right: 40px; bottom: 28px; left: 36px; z-index: 1; max-width: 660px; color: #fff; }
.gt-kicker { margin: 0; color: var(--gold-soft, #E6B56B); font-family: var(--f-cond, "Oswald", sans-serif); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gt-title { margin: 8px 0 8px; color: #fff; font-family: var(--f-display, Georgia, serif); font-size: clamp(28px, 3.7vw, 42px); font-weight: 700; line-height: 1.1; }
.gt-sub { margin: 0; color: rgba(255, 255, 255, .92); font-family: var(--f-ui, sans-serif); font-size: 16.5px; line-height: 1.5; }
.gt-body { padding: 26px 32px 26px; }
.gt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gt-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line, #E4DFD5); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(10, 24, 56, .08);
  transition: transform .25s, box-shadow .25s; }
.gt-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(10, 24, 56, .14); }
.gt-card__img { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--sand, #F4EFE6); }
.gt-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gt-card__badge { position: absolute; bottom: 12px; left: 12px; padding: 6px 12px; border-radius: 99px; background: var(--night, #0A1838); color: #fff;
  font-family: var(--f-ui, sans-serif); font-size: 12.5px; font-weight: 700; }
.gt-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.gt-card__title { margin: 0; color: var(--ink, #101B36); font-family: var(--f-display, Georgia, serif); font-size: 19px; font-weight: 700; line-height: 1.25; }
.gt-card__route { margin: -4px 0 0; color: var(--gold-ink, #B77A1F); font-family: var(--f-ui, sans-serif); font-size: 13.5px; font-weight: 700; }
.gt-days { display: grid; gap: 7px; margin: 2px 0 4px; padding: 0; list-style: none; }
.gt-days li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; color: var(--text, #3D4757); font-family: var(--f-ui, sans-serif); font-size: 13.5px; line-height: 1.45; }
.gt-days__n { padding: 2px 8px; border-radius: 6px; background: #F6E3D8; color: #A8502C; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.gt-card__dates { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted, #667085); font-family: var(--f-ui, sans-serif); font-size: 12.5px; }
.gt-card__dates strong { width: 100%; color: var(--ink, #101B36); font-size: 12.5px; }
.gt-card__dates span { padding: 3px 9px; border-radius: 99px; background: var(--gold-tint, rgba(221, 153, 51, .16)); color: var(--night, #0A1838); font-weight: 700; }
.gt-card .btn { justify-content: center; width: 100%; margin-top: auto; }
.gt-nodate { display: block; max-width: 640px; margin: 20px auto 0; padding: 4px 8px; border: 0; background: none; color: var(--night, #0A1838); font-family: var(--f-ui, sans-serif);
  font-size: 14.5px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: underline; text-decoration-color: var(--gold, #DD9933); text-decoration-thickness: 2px;
  text-underline-offset: 4px; cursor: pointer; }
.gt-nodate:hover { color: var(--gold-ink, #B77A1F); }

/* Registration form */
.gt-form-head { padding: 30px 32px 0; }
.gt-back { padding: 0; border: 0; background: none; color: var(--gold-ink, #B77A1F); font-family: var(--f-ui, sans-serif); font-size: 14px; font-weight: 700; cursor: pointer; }
.gt-form-title { margin: 12px 56px 6px 0; color: var(--ink, #101B36); font-family: var(--f-display, Georgia, serif); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; }
.gt-form-head p { margin: 0; color: var(--text, #3D4757); font-family: var(--f-ui, sans-serif); font-size: 14.5px; }
.gt-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; padding: 22px 32px 30px; font-family: var(--f-ui, sans-serif); }
.gt-field { display: grid; align-content: start; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gt-field--full { grid-column: 1 / -1; }
.gt-field > label, .gt-field legend { padding: 0; color: var(--ink, #101B36); font-size: 13.5px; font-weight: 700; }
.gt-field legend { margin-bottom: 7px; }
.gt-form input:not([type="checkbox"]):not([type="radio"]), .gt-form select, .gt-form textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line, #E4DFD5);
  border-radius: 11px; background: #fff; color: var(--ink, #101B36); font: 500 15px var(--f-ui, sans-serif); }
.gt-form textarea { min-height: 0; resize: vertical; }
.gt-form input:focus, .gt-form select:focus, .gt-form textarea:focus { border-color: var(--gold, #DD9933); outline: 3px solid rgba(221, 153, 51, .22); outline-offset: 0; }
.gt-form input:disabled { background: var(--sand, #F4EFE6); color: var(--muted, #667085); }
.gt-field.is-invalid input:not([type="checkbox"]):not([type="radio"]), .gt-field.is-invalid select { border-color: #B4372F; }
.gt-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gt-choices--inline { grid-template-columns: repeat(2, minmax(0, 120px)); }
.gt-choice { position: relative; display: grid; cursor: pointer; }
.gt-choice[hidden] { display: none; }
.gt-choice input { position: absolute; opacity: 0; pointer-events: none; }
.gt-choice span { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line, #E4DFD5); border-radius: 11px; background: #fff;
  color: var(--ink, #101B36); font-size: 14.5px; font-weight: 700; text-align: center; transition: border-color .2s, background .2s; }
.gt-choice input:checked + span { border-color: var(--gold, #DD9933); background: var(--gold-tint, rgba(221, 153, 51, .16)); box-shadow: inset 0 0 0 1px var(--gold, #DD9933); }
.gt-choice input:focus-visible + span { outline: 3px solid rgba(221, 153, 51, .4); outline-offset: 2px; }
.gt-field.is-invalid .gt-choice span { border-color: #E0A39D; }
.gt-check { display: flex; align-items: flex-start; gap: 9px; color: var(--text, #3D4757); font-size: 13.5px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.gt-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold-ink, #B77A1F); }
.gt-check--consent { color: var(--ink, #101B36); }
.gt-departures { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gt-departures[hidden] { display: none; }
.gt-departures__label { width: 100%; margin: 2px 0 0; color: var(--muted, #667085); font-size: 12.5px; font-weight: 700; }
.gt-date-chip { padding: 5px 10px; border: 1px solid var(--line, #E4DFD5); border-radius: 99px; background: #fff; color: var(--night, #0A1838); font: 700 12.5px var(--f-ui, sans-serif); cursor: pointer; }
.gt-date-chip:hover, .gt-date-chip.is-on { border-color: var(--gold, #DD9933); background: var(--gold-tint, rgba(221, 153, 51, .16)); }
.gt-error { margin: 0; color: #B4372F; font-size: 12.5px; font-weight: 600; }
.gt-error[hidden], .gt-alert[hidden] { display: none; }
.gt-privacy { margin: 2px 0 0; color: var(--muted, #667085); font-size: 12px; line-height: 1.55; }
.gt-privacy a { color: var(--gold-ink, #B77A1F); text-decoration: underline; }
.gt-alert { margin: 0; padding: 11px 14px; border-radius: 11px; background: #F9E3E1; color: #B4372F; font-size: 14px; font-weight: 600; }
.gt-actions { display: flex; justify-content: flex-end; }
.gt-submit { justify-content: center; min-width: 230px; }
.gt-submit:disabled { opacity: .7; cursor: wait; }
.gt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thank-you step */
.gt-done { display: grid; justify-items: center; gap: 12px; padding: 64px 40px 56px; text-align: center; font-family: var(--f-ui, sans-serif); }
.gt-done[hidden] { display: none; }
.gt-done__icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--gold-tint, rgba(221, 153, 51, .16)); }
.gt-done__icon svg { width: 36px; height: 36px; fill: none; stroke: var(--gold-ink, #B77A1F); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gt-done__title { margin: 6px 0 0; color: var(--ink, #101B36); font-family: var(--f-display, Georgia, serif); font-size: clamp(26px, 3vw, 34px); outline: none; }
.gt-done p { max-width: 520px; margin: 0; color: var(--text, #3D4757); font-size: 16px; line-height: 1.6; }
.gt-done .gt-done__note { color: var(--muted, #667085); font-size: 13.5px; }
.gt-done .btn { margin-top: 10px; }
.gt-step[hidden] { display: none; }

@media (max-width: 760px) {
  .gt-pop { padding: 0; place-items: end center; }
  .gt-pop__dialog { width: 100%; max-height: 100vh; max-height: 100dvh; height: 100%; border-radius: 0; }
  .gt-hero { height: 230px; border-radius: 0; }
  .gt-hero__text { right: 20px; bottom: 20px; left: 20px; }
  .gt-sub { font-size: 15px; }
  .gt-body { padding: 20px 16px 24px; }
  .gt-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gt-form-head { padding: 24px 20px 0; }
  .gt-form { grid-template-columns: minmax(0, 1fr); padding: 18px 20px 28px; }
  .gt-submit { width: 100%; min-width: 0; }
  .gt-done { padding: 72px 24px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .gt-pop__backdrop, .gt-pop__dialog { animation: none; }
  .gt-card, .gt-pop__close { transition: none; }
}

/* Floating button that brings the popup back, at the bottom of the left side (shown once the popup has been closed) */
.gt-float { position: fixed; left: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 11px; padding: 7px 20px 7px 7px;
  border: 1px solid rgba(221, 153, 51, .55); border-radius: 999px; background: linear-gradient(135deg, #12285A, var(--night, #0A1838)); color: #fff;
  box-shadow: 0 12px 30px rgba(10, 24, 56, .38); font-family: var(--f-ui, sans-serif); text-align: left; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s; animation: gt-float-in .55s cubic-bezier(.2, .8, .2, 1); }
.gt-float[hidden], .gt-lock .gt-float { display: none; }
.gt-float:hover { transform: translateY(-2px); border-color: var(--gold, #DD9933); box-shadow: 0 16px 36px rgba(10, 24, 56, .48); }
.gt-float:focus-visible { outline: 3px solid rgba(221, 153, 51, .55); outline-offset: 3px; }
.gt-float__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold, #DD9933), #C2643C);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.gt-float__ico svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gt-float__text { display: grid; gap: 1px; line-height: 1.15; }
.gt-float__text strong { font-size: 13.8px; font-weight: 700; }
.gt-float__text small { color: var(--gold-soft, #E6B56B); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.gt-float__dot { position: absolute; top: 5px; left: 38px; width: 11px; height: 11px; border: 2px solid #12285A; border-radius: 50%; background: #F2C46D; }
.gt-float__dot::after { content: ""; position: absolute; inset: -2px; border: 2px solid #F2C46D; border-radius: 50%; animation: gt-pulse 2.2s ease-out infinite; }
@keyframes gt-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
@keyframes gt-float-in { from { opacity: 0; transform: translateX(-40px); } }
@media (max-width: 640px) {
  .gt-float { left: 16px; bottom: 20px; gap: 9px; padding: 5px 16px 5px 5px; }
  .gt-float__ico { width: 36px; height: 36px; }
  .gt-float__ico svg { width: 21px; height: 21px; }
  .gt-float__text strong { font-size: 13px; }
  .gt-float__text small { font-size: 11px; }
  .gt-float__dot { left: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .gt-float { animation: none; transition: none; }
  .gt-float__dot::after { animation: none; }
}

/* Link from the home popup to the group tours page */
.gt-more { display: table; margin: 8px auto 0; color: var(--gold-ink, #B77A1F); font-family: var(--f-ui, sans-serif); font-size: 13.5px; font-weight: 700; }
.gt-more:hover { text-decoration: underline; }

/* ---------- Group tours page (built by group_tours_page() in gen_index.py) ---------- */
.gp-hero .gp-hero__title { max-width: 860px; font-family: var(--f-display, Georgia, serif); font-size: clamp(38px, 5vw, 66px); font-weight: 700; line-height: 1.08; text-transform: none; letter-spacing: 0; }
.gp-hero .tour-hero__bg { object-position: 50% 62%; }
.gp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.gp-hero__actions .btn .icon { width: 17px; height: 17px; }
.gp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.gp-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(10, 24, 56, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-family: var(--f-ui, sans-serif); font-size: 13.5px; font-weight: 600; }
.gp-facts .icon { width: 17px; height: 17px; color: var(--gold-soft, #E6B56B); }
.gp-intro { background: var(--cream, #FAF7F2); }
.gp-intro .tp-intro__text p:not(.eyebrow) { margin: 0 0 16px; color: var(--text, #3D4757); font-family: var(--f-ui, sans-serif); font-size: 16.5px; line-height: 1.8; }
.gp-steps-section { background: #fff; }
.gp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.gp-steps li { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line, #E4DFD5); border-radius: 18px; background: var(--cream, #FAF7F2); }
.gp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--gold, #DD9933), rgba(221, 153, 51, .2)); }
.gp-steps__n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--gold, #DD9933), #C2643C);
  color: #fff; font-family: var(--f-display, Georgia, serif); font-size: 20px; font-weight: 700; }
.gp-steps h3 { margin: 0 0 6px; color: var(--ink, #101B36); font-family: var(--f-ui, sans-serif); font-size: 17px; font-weight: 700; line-height: 1.3; }
.gp-steps p { margin: 0; color: var(--text, #3D4757); font-family: var(--f-ui, sans-serif); font-size: 14.5px; line-height: 1.65; }
.gp-routes { background: var(--sand, #F4EFE6); }
.gp-routes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 1120px; margin: 0 auto; }
.gp-route .gt-card__title { font-size: 22px; }
.gp-route .gt-days li { font-size: 14.5px; }
.gp-route .btn { margin-top: auto; }
.gp-route .btn .icon { width: 17px; height: 17px; }
.gp-route .gt-card__dates[hidden] { display: none; }
.gp-compare { background: #fff; }
.gp-compare__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.gp-compare__card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line, #E4DFD5); border-radius: 20px; background: var(--cream, #FAF7F2); }
.gp-compare__card--group { border-color: rgba(221, 153, 51, .6); background: #fff; box-shadow: 0 18px 40px rgba(10, 24, 56, .1); }
.gp-compare__card h3 { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink, #101B36); font-family: var(--f-display, Georgia, serif); font-size: 24px; font-weight: 700; }
.gp-compare__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-tint, rgba(221, 153, 51, .16)); color: var(--gold-ink, #B77A1F); }
.gp-compare__ico .icon { width: 21px; height: 21px; }
.gp-compare__card .checklist { margin: 0; }
.gp-compare__card .btn { align-self: flex-start; margin-top: auto; }
.gp-compare__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: auto 0 0; }
.gp-compare__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink, #B77A1F); font-family: var(--f-ui, sans-serif); font-weight: 700; text-decoration: underline;
  text-decoration-color: rgba(183, 122, 31, .35); text-underline-offset: 4px; }
.gp-compare__links a .icon { width: 15px; height: 15px; }
.group-page .ab2-cta::after { display: none; }
@media (max-width: 1140px) {
  .gp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-steps li::after { display: none; }
}
@media (max-width: 760px) {
  .gp-routes__grid, .gp-compare__grid { grid-template-columns: minmax(0, 1fr); }
  .gp-hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .gp-facts li { font-size: 12.5px; }
  .gp-compare__card { padding: 22px 18px; }
}
@media (max-width: 520px) {
  .gp-steps { grid-template-columns: minmax(0, 1fr); }
}
.gp-read { max-width: 1000px; margin: 26px auto 0; color: var(--text, #3D4757); font-family: var(--f-ui, sans-serif); font-size: 15px; text-align: center; }
.gp-read a { color: var(--gold-ink, #B77A1F); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(183, 122, 31, .35); text-underline-offset: 4px; }
