/* Time Walk footer (markup: tools/patch_footer.py, strings: tools/tw_i18n.py). Tokens from tw-tokens.css.
   Phone layout approved by the owner 2026-11-17 (centred brand, WhatsApp/Email as buttons), made compact in
   round 4 (2026-11-19): about 0.8 of a phone screen. */
.tw-foot { background: var(--c-bg-raised); border-top: 1px solid var(--c-line); color: var(--c-text-muted); font: 400 var(--fs-small)/1.6 var(--f-body); }
.tw-foot a { color: var(--c-text-muted); text-decoration: none; transition: color var(--d-fast) ease; }
.tw-foot a[aria-current="page"] { color: var(--c-text-strong); }
.tw-foot a:focus-visible { outline: 2px solid var(--c-gold-bright); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .tw-foot a:not(.tw-btn):hover { color: var(--c-text-strong); } }
.tw-foot ul { list-style: none; margin: 0; padding: 0; }
.tw-foot h2 { margin: 0 0 var(--s-4); color: var(--c-gold); font: 700 var(--fs-eyebrow)/1.3 var(--f-body); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.tw-foot-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--s-7) var(--s-6);
  width: min(100% - 2 * var(--gutter), var(--w-content)); margin-inline: auto; padding: var(--s-8) 0 var(--s-7); }

/* brand + main action */
.tw-foot-logo { display: inline-block; margin: 0 0 var(--s-4); }
.tw-foot-brand img { display: block; width: auto; height: 64px; }   /* the owner's full logo with the footsteps (tw-logo.svg), 155px wide */
.tw-foot-desc { margin: 0 0 var(--s-3); max-width: 32ch; }
.tw-foot-rating { margin: 0; color: var(--c-text); font-weight: 700; }
.tw-foot-rating b { color: var(--c-gold); letter-spacing: .08em; }
.tw-foot-rating b span { letter-spacing: inherit; }
.tw-foot .tw-foot-book { margin-top: var(--s-4); }
.tw-foot .tw-foot-book svg { flex: none; }
.tw-foot .tw-foot-off { display: none; }   /* off-season twin of "Book your walk" (final round B, 2026-11-20) */
@media (max-width: 767px) {
  html.tw-off .tw-foot .tw-foot-book:not(.tw-foot-off) { display: none; }   /* group walks paused: point to the private tours */
  html.tw-off .tw-foot .tw-foot-off { display: inline-flex; }
}

/* link lists */
.tw-foot li { margin: 0 0 var(--s-2); }
.tw-foot li a { display: inline-block; padding: 2px 0; }
.tw-foot-langs { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }

/* contact */
.tw-foot-contact li { display: flex; gap: var(--s-3); align-items: baseline; }
.tw-foot-contact li > span { flex: none; min-width: 72px; max-width: 8.5em; color: var(--c-text-faint); font-size: var(--fs-caption); line-height: 1.4; }
.tw-foot-contact a b { display: none; }
.tw-foot-contact a i { font-style: normal; }
.tw-foot .tw-foot-sms { display: none; }   /* (a11y S4: beats ".tw-foot li a", so no invisible Tab stop on desktop) */                                     /* desktop: "Call or text" + the number as text */
/* Follow us: Instagram + Facebook, 44px round targets */
.tw-foot-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); }
.tw-foot-social { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.tw-foot-social span { margin-inline-end: var(--s-1); color: var(--c-text-faint); font-size: var(--fs-caption); }
.tw-foot .tw-foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--c-line-strong); color: var(--c-gold); transition: color var(--d-fast) ease, box-shadow var(--d-fast) ease; }
@media (hover: hover) and (pointer: fine) { .tw-foot .tw-foot-social a:hover { color: var(--c-gold-bright); box-shadow: inset 0 0 0 1.5px var(--c-gold-line); } }

/* bottom line */
.tw-foot-bottom { border-top: 1px solid var(--c-line); }
.tw-foot-bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5);
  width: min(100% - 2 * var(--gutter), var(--w-content)); margin-inline: auto; padding: var(--s-5) 0; color: var(--c-text-faint); font-size: var(--fs-caption); }
.tw-foot-copy { order: -1; }
.tw-foot-legal { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.tw-foot-legal a { color: var(--c-text-faint); }
.tw-foot-support { display: flex; align-items: center; gap: var(--s-3); }
.tw-foot-support img { display: block; width: 92px; height: auto; filter: brightness(0) invert(1); opacity: .6; }   /* white mark: the blue logo vanished on the dark footer */

@media (max-width: 991px) {
  .tw-foot-main { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
  .tw-foot-brand { grid-column: 1 / -1; }
}

/* Phones: one centred column, every row as short as it can be (owner: centred, compact). */
@media (max-width: 767px) {
  .tw-foot-main { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); padding: var(--s-5) 0 var(--s-4); text-align: center; }
  .tw-foot-brand { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .tw-foot-logo { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 var(--s-2); }   /* 44px tap target */
  .tw-foot-brand img { height: 52px; }                              /* full logo, about 126px wide */
  .tw-foot-desc { display: none; }                                   /* long description: tablet/desktop only */
  .tw-foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2) var(--s-4); }
  .tw-foot-rating b span { display: none; }                          /* one star on phones */
  .tw-foot .tw-foot-book { margin: 0; }
  .tw-foot h2 { margin: 0 0 var(--s-1); }
  .tw-foot li { margin: 0; }
  .tw-foot li a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s-2); }
  /* tours: one centred inline list, like the rows below it (a 2-column grid left ragged edges) */
  .tw-foot-tours { width: 100%; padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
  .tw-foot-tours h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* like the other two groups */
  .tw-foot-tours ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-3); }
  .tw-foot-tours li a { line-height: 1.25; }
  /* about / blog / book on one line, languages on the next */
  .tw-foot-site { width: 100%; margin-top: calc(-1 * var(--s-4)); }
  .tw-foot-site h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tw-foot-site ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-3); }
  .tw-foot-langs { flex-basis: 100%; justify-content: center; gap: 0 var(--s-3); }
  /* contact: WhatsApp + Email pills on one line, meeting point below */
  .tw-foot-contact { width: 100%; padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
  .tw-foot-contact h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tw-foot-contact ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
  .tw-foot-c-wa > span, .tw-foot-c-mail > span { display: none !important; }
  /* Call or text: label + two buttons on one line */
  .tw-foot-c-tel { flex-basis: 100%; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2) var(--s-3); }
  .tw-foot-contact .tw-foot-c-tel > span { min-width: 0; max-width: none; color: var(--c-text-muted); }
  .tw-foot .tw-foot-sms { display: inline-flex; }
  .tw-foot-c-tel a i { display: none; }
  .tw-foot-contact li a { min-height: var(--h-btn-sm); padding: 0 var(--s-4); border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1.5px var(--c-line-strong); color: var(--c-text-strong); }
  .tw-foot-contact a b { display: inline; color: var(--c-gold); font-weight: 700; }
  .tw-foot-c-wa a i { display: none; }
  .tw-foot-c-mail a b::after { content: "·"; margin: 0 6px; color: var(--c-text-faint); font-weight: 400; }
  /* "Meet at Gregory of Nin statue, ..." as one centred line of text with a normal space (no flex gap) */
  .tw-foot-c-meet { display: block !important; flex-basis: 100%; font-size: var(--fs-caption); line-height: 1.4; color: var(--c-text-muted); text-align: center; }
  .tw-foot-c-meet > span { min-width: 0; max-width: none; display: inline; }
  /* WhatsApp + Email on row 1, Call or text on row 2, meeting point on row 3 */
  .tw-foot-c-tel { order: 1; }
  .tw-foot-c-meet { order: 2; }
  .tw-foot-end { justify-content: center; gap: 0 var(--s-5); }

  .tw-foot-bottom-in { flex-direction: column; justify-content: center; gap: 0; padding: var(--s-2) 0 var(--s-4); text-align: center; }
  .tw-foot-copy { order: 0; }
  .tw-foot-legal { justify-content: center; gap: 0 var(--s-4); }
  .tw-foot-legal a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .tw-foot-support { gap: var(--s-2); min-height: 44px; margin-top: 0; }
  .tw-foot-support img { width: 64px; }
}

/* 360-379: the icons + "Supported by" stay on one row; the icons keep their names ("Time Walk on Instagram") */
@media (max-width: 379px) {
  .tw-foot-social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
