/* The flagship tours and activities page (Paris first, 3 Nov 2026): Victor's master
   (docs/victor-handoffs/2026-11-02-TEC1-Paris-Tours-Activities-MASTER-LOCK-9-buttons-checked.html) in the site's look.
   His layout and order; the site's colors, type and corners (tokens.css): the action blue for his yellow buttons, light
   blue for his cream booking grounds, sand behind the questions, navy for the closing band, Caslon for his Georgia. Built
   by tours_flagship() in gen-pages.py; the filters, search and rows run in js/search-tabs.js (the tours market block). */

.tf section{scroll-margin-top:88px}
.tf h2{font-size:var(--fs-h2);line-height:var(--lh-tight);letter-spacing:var(--track-display);margin:0 0 8px}
.tf .eyebrow{display:block;margin:0 0 8px}

/* ---------- the photo header with the search and the category tabs ---------- */
.tf-hero{background-color:var(--navy);background-size:cover;background-position:center 46%;color:var(--white);padding:16px 0 24px}
/* the breadcrumb's layout (city.css, which this page doesn't load) */
.tf-hero .crumbs{display:flex;gap:8px;flex-wrap:wrap;font-size:var(--fs-sm);letter-spacing:var(--track-caps);padding:0;margin:0 0 22px}
.tf-hero .crumbs,.tf-hero .crumbs a,.tf-hero .crumbs span{color:rgba(255,255,255,.88)}
.tf-hero .crumbs a{text-decoration-color:rgba(255,255,255,.5)}
.tf-hero .eyebrow{color:var(--gold-2)}
.tf-copy{max-width:900px}
.tf-hero h1{color:var(--white);font-size:clamp(40px,5vw,62px);line-height:1.05;letter-spacing:var(--track-display);margin:0 0 16px;text-shadow:0 2px 18px rgba(0,0,0,.25)}
.tf-hero .lede{max-width:820px;margin:0;color:var(--white);font-size:var(--fs-lg);line-height:var(--lh-body);text-shadow:0 1px 9px rgba(0,0,0,.3)}
.tf-search{margin-top:22px;max-width:980px}
.tf-search label{display:block;margin:0 0 8px;font-size:var(--fs-sm);font-weight:600;color:var(--white)}
.tf-search>div{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:8px;padding:8px;background:var(--white);border-radius:var(--r-card);box-shadow:var(--float)}
.tf-search input{width:100%;min-height:54px;border:1px solid var(--field-line);border-radius:var(--r-pill);padding:0 18px;font:inherit;font-size:var(--fs-md);color:var(--ink);background:var(--white)}
.tf-search input:focus{border-color:var(--forest);outline:0}
.tf-search input:focus-visible{outline:var(--focus);outline-offset:1px}
.tf-search input::placeholder{color:var(--pewter);opacity:1}
.tf-search .pill{min-height:54px;justify-content:center}
.tf-hero :is(a,button):focus-visible{outline-color:var(--white)}
.tf-search :is(input,button):focus-visible,.tf-tabs button:focus-visible{outline-color:var(--forest)}
/* the categories sit in the marketplace, right above the cards (Sharod, 4 Nov 2026: "move the catagories right above the pictures") */
.tf-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:7px;margin:0 0 18px;padding:8px;background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-card);box-shadow:0 4px 16px -8px rgba(27,48,72,.18)}
.tf-tab{min-height:58px;border:1px solid var(--card-line);background:var(--sky-1);color:var(--navy);border-radius:var(--r-inner);padding:8px 7px;font:600 var(--fs-sm)/1.2 var(--sans);cursor:pointer;
  transition:background-color var(--dur-fast) var(--ease-hover),border-color var(--dur-fast) var(--ease-hover)}
.tf-tab span{display:block;margin-top:3px;font-size:var(--fs-xs);font-weight:500;opacity:.75}
@media(hover:hover){.tf-tab:hover{border-color:var(--forest)}}
/* the chosen tab is plain blue, with no gold line under it (Sharod, 4 Nov 2026) */
.tf-tab.on{background:var(--forest);border-color:var(--forest);color:var(--white)}
.tf-tabbar{position:relative}
.tf-nudge,.tf-swipe{display:none}
.tf-tab.on span{opacity:1}

/* ---------- the marketplace: the cards, nine at first ---------- */
.tf-market{padding:40px 0 44px;background:var(--sky-1);border-bottom:1px solid var(--blue-line)}
.tf-head{max-width:880px;margin:0 0 26px}
.tf-head p{margin:0;color:var(--graphite)}
.tf-head.split{max-width:none;display:flex;align-items:flex-end;justify-content:space-between;gap:28px}
/* the count stands out in blue, with no pill (Sharod, 4 Nov 2026: "no bubble just the text in a different color") */
.tf-head.split strong{font-size:var(--fs-md);font-weight:600;line-height:1.2;color:var(--forest);white-space:nowrap}
#tf-count b{font-size:var(--fs-xl);font-weight:600;line-height:1}
.tf-grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tf-card{display:flex;flex-direction:column;min-width:0;background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-card);overflow:hidden;
  box-shadow:0 4px 16px -8px rgba(15,43,76,.14);transition:transform var(--dur-med) var(--ease-out),box-shadow var(--dur-med) var(--ease-out)}
@media(hover:hover){.tf-card:hover{transform:translateY(-2px);box-shadow:var(--lift)}}
/* a card past the first nine keeps hidden="until-found", so Find in page still reaches it: no display:none, and out of the
   grid's flow, so it takes no cell (review, 3 Nov 2026). A card the tabs or the search leave out has plain hidden. */
.tf-card[hidden]:not([hidden="until-found"]){display:none}
.tf-card[hidden="until-found"]{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;box-shadow:none;overflow:hidden;clip-path:inset(50%)}
.tf-photo{position:relative;display:block;aspect-ratio:16/10;background:var(--stone);overflow:hidden}
.tf-photo img{width:100%;height:100%;object-fit:cover;transition:transform .35s var(--ease-out)}
@media(hover:hover){.tf-card:hover .tf-photo img{transform:scale(1.02)}}
/* the city badge sits on the photo, outside its link, so it is plain text (Sharod, 8 Nov 2026: "Paris shouldn't be a link") */
.tf-pic{position:relative}
.tf-where{position:absolute;top:11px;left:11px;z-index:1;background:rgba(255,255,255,.95);color:var(--navy);border-radius:var(--r-pill);padding:4px 10px;font-size:var(--fs-xs);font-weight:600;cursor:default}
/* a card or row with no photo keeps the photo's place as a pale panel with the arch (decoration only), as the
   neighborhood pages do; the card's title is below it, so the panel doesn't repeat it (8 Nov 2026, the other cities) */
.tf-photo.np{background:var(--tec-soft,var(--sky-1)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56' fill='none' stroke='%23B9CAE0' stroke-width='2'%3E%3Cpath d='M9 52V24a15 15 0 0 1 30 0v28z'/%3E%3Cpath d='M5 52h38'/%3E%3C/svg%3E") center/46px auto no-repeat;border-bottom:1px solid var(--tec-card-line,var(--moss));text-decoration:none}
.tf-body{display:flex;flex-direction:column;flex:1;padding:16px 16px 18px}
.tf-badge{align-self:flex-start;background:var(--forest);color:var(--white);border-radius:var(--r-pill);padding:4px 10px;font-size:var(--fs-xs);font-weight:600;margin:0 0 8px}
.tf-cat{color:var(--forest);font-size:var(--fs-xs);font-weight:600;text-transform:uppercase;letter-spacing:var(--track-caps)}
.tf-card h3{font-size:var(--fs-xl);line-height:var(--lh-snug);margin:6px 0 8px}
.tf-card h3 a{color:var(--navy);text-decoration:none}
@media(hover:hover){.tf-card h3 a:hover{text-decoration:underline;text-underline-offset:3px}}
.tf-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:0 0 10px;color:var(--graphite);font-size:var(--fs-sm);line-height:var(--lh-body)}
.tf-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.tf-chips span{display:inline-flex;align-items:center;min-height:26px;padding:4px 10px;border-radius:var(--r-pill);background:var(--sky-1);border:1px solid var(--blue-line);color:var(--navy);font-size:var(--fs-xs);font-weight:600;line-height:1}
.tf-go{justify-content:center}
.tf-body .tf-go{margin-top:auto;width:100%}
.tf-empty{text-align:center;background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-card);padding:34px 22px;color:var(--graphite);margin-top:4px}
.tf-empty[hidden]{display:none}
.tf-empty strong{display:block;color:var(--navy);font-size:var(--fs-lg);margin-bottom:6px}
.tf-empty .pill{margin-top:14px}
.tf-more{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:24px}
.tf-more[hidden],.tf-more [hidden]{display:none}
.tf-reset{background:none;border:0;min-height:44px;padding:8px 14px;font:inherit;font-size:var(--fs-sm);font-weight:600;color:var(--forest);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(hover:hover){.tf-reset:hover{color:var(--navy)}}
.tf-disc{max-width:760px;margin:20px auto 0;text-align:center;font-size:var(--fs-sm);color:var(--graphite)}
.tf-disc-lib{max-width:880px;margin:-12px 0 20px;text-align:left}

/* ---------- the comparison library: a row per experience, opened one at a time ---------- */
.tf-lib{padding:64px 0;background:var(--white)}
/* the group tabs are the marketplace's category tabs, with their counts, at every width (Sharod, 8 Nov 2026: "Make it
   exactly likw that one"): the same frame, the same boxes on a computer, the same scrolling row and pills below */
.tf-gbar{position:relative;margin:0 0 32px}
/* a row of boxes that share the width by their labels, since the library has a tab more than the categories and longer names */
.tf-gnav{display:flex;gap:7px;padding:8px;background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-card);box-shadow:0 4px 16px -8px rgba(27,48,72,.18)}
.tf-gnav a{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;border:1px solid var(--card-line);background:var(--sky-1);color:var(--navy);border-radius:var(--r-inner);padding:8px 7px;
  font:600 var(--fs-sm)/1.2 var(--sans);text-align:center;text-decoration:none;transition:background-color var(--dur-fast) var(--ease-hover),border-color var(--dur-fast) var(--ease-hover)}
.tf-gnav a span{display:block;margin-top:3px;font-size:var(--fs-xs);font-weight:500;opacity:.75}
@media(hover:hover){.tf-gnav a:hover{border-color:var(--forest)}}
.tf-gnav a.on{background:var(--forest);border-color:var(--forest);color:var(--white)}
.tf-gnav a.on span{opacity:1}
.tf-gnav a:focus-visible{outline-color:var(--forest)}
.tf-group{margin-top:38px}
.tf-group[hidden]{display:none}
.tf-ghead{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:11px;padding-bottom:9px;border-bottom:1px solid var(--hair)}
.tf-ghead h3{font-size:var(--fs-2xl);margin:0}
.tf-ghead span{color:var(--pewter);font-size:var(--fs-sm)}
.tf-rows{display:grid;gap:10px}
/* each group a dropdown (Sharod, 11 Nov 2026, on Paris's 110 rows: "need to be significantly reduced. Make them drop
   downs"): js/search-tabs.js folds the library (.tf-folded) and makes each head a button over its whole bar; an open group
   shows six rows, then "View all". Without the script the heads stay headings and every row shows */
.tf-folded .tf-gbar{margin-bottom:20px}
.tf-folded .tf-group{margin-top:12px}
.tf-ghead .tf-gthumbs{display:none}
.tf-ghead.tf-gtoggle{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"th h ch" "th n ch";column-gap:16px;row-gap:2px;
  align-items:center;margin:0;padding:14px 16px 14px 14px;background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-inner);
  box-shadow:0 3px 12px -6px rgba(15,43,76,.12);transition:border-color var(--dur-fast) var(--ease-hover),background-color var(--dur-fast) var(--ease-hover)}
@media(hover:hover){.tf-ghead.tf-gtoggle:hover{border-color:var(--forest)}}
.tf-group.open .tf-ghead.tf-gtoggle{border-color:var(--sky-3);background:var(--sky-1)}
.tf-gtoggle .tf-gthumbs{grid-area:th;display:flex;width:108px}   /* three photos' width whatever the group has, so the titles line up (review, 12 Nov 2026) */
.tf-gthumbs img{width:48px;height:48px;object-fit:cover;border-radius:10px;border:2px solid var(--white);box-shadow:0 1px 4px rgba(15,43,76,.2)}
.tf-gthumbs img+img{margin-left:-18px}
.tf-gtoggle h3{grid-area:h;align-self:end;font-size:var(--fs-xl);line-height:var(--lh-snug)}
.tf-gtoggle .tf-gcount{grid-area:n;align-self:start}
.tf-gtoggle::after{content:"";grid-area:ch;width:34px;height:34px;border-radius:50%;background:var(--sky-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B4EA2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/18px no-repeat;
  border:1px solid var(--blue-line);transition:transform var(--dur-med) var(--ease-out);pointer-events:none}
.tf-group.open .tf-gtoggle::after{transform:rotate(180deg);background-color:var(--white)}
.tf-gbtn{font:inherit;color:inherit;letter-spacing:inherit;text-align:left;background:none;border:0;padding:0;margin:0;cursor:pointer}
.tf-gbtn::before{content:"";position:absolute;inset:0;border-radius:var(--r-inner)}
.tf-gbtn:focus-visible{outline:none}
.tf-gbtn:focus-visible::before{outline:var(--focus);outline-offset:2px}
.tf-group.open .tf-rows{margin-top:10px}
.tf-rows[hidden]:not([hidden="until-found"]),.tf-row[hidden]:not([hidden="until-found"]){display:none}
.tf-row[hidden="until-found"]{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;box-shadow:none;overflow:hidden;clip-path:inset(50%)}
.tf-gmore{display:flex;justify-content:center;margin-top:14px}
.tf-gmore[hidden]{display:none}
.tf-row{background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-inner);overflow:hidden;overflow-anchor:none;box-shadow:0 3px 12px -6px rgba(15,43,76,.12);
  transition:border-color var(--dur-fast) var(--ease-hover),box-shadow var(--dur-fast) var(--ease-hover)}
@media(hover:hover){.tf-row:hover{border-color:var(--line-strong)}}
.tf-row[open]{border-color:var(--sky-3)}
.tf-row summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:112px minmax(0,1fr) 34px;gap:17px;align-items:center;padding:10px 13px 10px 10px}
.tf-row summary::-webkit-details-marker{display:none}
/* the row clips its corners, so the focus ring draws inside it */
.tf-row summary:focus-visible,.tf-q summary:focus-visible{outline-offset:-3px}
.tf-row summary img{width:112px;height:78px;object-fit:cover;border-radius:8px}
.tf-row summary .tf-nph{display:block;width:112px;height:78px;border-radius:8px;border:1px solid var(--tec-card-line,var(--moss));background:var(--tec-soft,var(--sky-1)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56' fill='none' stroke='%23B9CAE0' stroke-width='2'%3E%3Cpath d='M9 52V24a15 15 0 0 1 30 0v28z'/%3E%3Cpath d='M5 52h38'/%3E%3C/svg%3E") center/26px auto no-repeat}
.tf-row summary>span{min-width:0}
.tf-row small{display:block;color:var(--forest);font-size:var(--fs-xs);font-weight:600;text-transform:uppercase;letter-spacing:var(--track-caps)}
.tf-row summary strong{display:block;font-size:var(--fs-md);font-weight:600;line-height:var(--lh-snug);color:var(--navy);margin:3px 0 4px}
.tf-row summary em{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;color:var(--pewter);font-size:var(--fs-sm);font-style:normal;line-height:1.4}
.tf-row summary b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--sky-1);border:1px solid var(--blue-line);color:var(--forest);font-size:19px;line-height:1;transition:transform var(--dur-med) var(--ease-out)}
.tf-row[open] summary b{transform:rotate(45deg)}
.tf-rbody{padding:17px 22px 19px 139px;background:#FCFDFE;border-top:1px solid var(--hair)}
.tf-rbody p{margin:0 0 10px;font-size:var(--fs-sm);line-height:var(--lh-body);color:var(--graphite)}
.tf-rbody strong{color:var(--navy);font-weight:600}
.tf-choice{border-left:3px solid var(--sky-3);padding-left:12px}
.tf-glink a{color:var(--forest);font-weight:600;text-decoration:none}
@media(hover:hover){.tf-glink a:hover{text-decoration:underline}}
.tf-checks{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 14px}
.tf-checks span{display:inline-flex;align-items:center;padding:4px 10px;border-radius:var(--r-pill);background:var(--white);border:1px solid var(--line);color:var(--graphite);font-size:var(--fs-xs);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.tf-rbody .tf-go{min-height:44px}

/* ---------- the four checks before booking ---------- */
.tf-decide{padding:72px 0;background:var(--white);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.tf-dhead{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:40px;align-items:end;margin-bottom:28px}
.tf-dhead h2{margin:0;max-width:760px}
.tf-dhead>p{margin:0;color:var(--graphite);line-height:var(--lh-body);max-width:560px;justify-self:end}
.tf-dgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tf-dgrid article{display:flex;flex-direction:column;padding:24px;border:1px solid var(--card-line);border-radius:var(--r-card);background:var(--white);box-shadow:0 8px 24px -14px rgba(15,43,76,.18)}
.tf-dtop{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.tf-num{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:var(--navy);color:var(--white);font-weight:600;font-size:var(--fs-sm);box-shadow:0 0 0 3px var(--sky-2)}
.tf-dtop small{color:var(--clay);font-weight:600;text-transform:uppercase;letter-spacing:var(--track-caps);font-size:var(--fs-xs)}
.tf-dgrid h3{margin:0 0 10px;font-size:var(--fs-xl);line-height:var(--lh-snug)}
.tf-dgrid article>p{margin:0 0 20px;color:var(--graphite);line-height:var(--lh-body)}
.tf-dcheck{margin-top:auto;padding-top:14px;border-top:1px solid var(--hair);color:var(--navy);font-size:var(--fs-sm);font-weight:600}

/* ---------- questions: two columns of cards, one open at a time ---------- */
.tf-faq{padding:68px 0;background:linear-gradient(180deg,var(--sand) 0%,var(--white) 100%);border-bottom:1px solid var(--hair)}
.tf-fhead{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:end;margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid var(--sand-line)}
.tf-fhead h2{margin:0}
.tf-fhead>p{margin:0;color:var(--graphite);max-width:520px}
.tf-flist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;align-items:start}
.tf-q{background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-inner);overflow:hidden;overflow-anchor:none;transition:border-color var(--dur-fast) var(--ease-hover),box-shadow var(--dur-fast) var(--ease-hover)}
@media(hover:hover){.tf-q:hover{border-color:var(--line-strong)}}
.tf-q[open]{border-color:var(--sky-3);box-shadow:0 8px 22px -12px rgba(15,43,76,.2)}
.tf-q summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr 30px;align-items:center;gap:14px;padding:18px;min-height:72px;font-weight:600;line-height:var(--lh-snug);color:var(--navy)}
.tf-q summary::-webkit-details-marker{display:none}
.tf-plus{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--navy);color:var(--white);font-size:18px;line-height:1;transition:transform var(--dur-med) var(--ease-out),background-color var(--dur-fast)}
.tf-q[open] .tf-plus{transform:rotate(45deg);background:var(--forest)}
.tf-q>div{padding:0 20px 18px}
.tf-q p{margin:0;color:var(--graphite);font-size:var(--fs-sm);line-height:1.6}

/* ---------- the rest of the trip, the closing band, the credits ---------- */
.tf-cross{padding:48px 0;background:var(--sky-1);border-top:1px solid var(--blue-line)}
.tf-cross-in{display:grid;grid-template-columns:1.25fr .75fr;gap:30px;align-items:center}
.tf-cross h2{margin:0}
.tf-clinks{display:grid;gap:9px}
.tf-clinks a{border:1px solid var(--card-line);border-radius:var(--r-inner);padding:14px 16px;text-decoration:none;font-weight:600;color:var(--forest);background:var(--white)}
@media(hover:hover){.tf-clinks a:hover{border-color:var(--forest);box-shadow:0 3px 10px -4px rgba(15,43,76,.2)}}
.tf-final{padding:28px 0;background:linear-gradient(160deg,var(--navy),#0A1F38);border-top:2px solid var(--brass);color:var(--white)}
.tf-final-in{display:flex;justify-content:space-between;align-items:center;gap:30px}
.tf-final-in>div{min-width:0}
.tf-final-in>.pill{flex:none}   /* a long city name ("Back to Palma de Mallorca experiences") ran past a button squeezed to its minimum; the text column gives way instead, 8 Nov 2026 */
.tf-final .eyebrow{color:var(--gold-2)}
.tf-final h2{color:var(--white);font-size:clamp(25px,3vw,34px);margin:0 0 5px}
.tf-final p{margin:0;color:rgba(255,255,255,.85)}
.tf-final .pill.fill{background:var(--white);border-color:var(--white);color:var(--navy);min-width:220px;justify-content:center}
@media(hover:hover){.tf-final .pill.fill:hover{background:var(--sand);border-color:var(--sand)}}
.tf-final a:focus-visible{outline-color:var(--white)}
.tf-credits{padding:22px 0;background:var(--white);border-top:1px solid var(--hair)}
.tf-credits summary{cursor:pointer;font-weight:600;color:var(--graphite)}
.tf-cgrid{columns:2;column-gap:28px;margin-top:16px}
.tf-cgrid p{break-inside:avoid;margin:0 0 10px;font-size:var(--fs-sm);color:var(--graphite)}
.tf-cgrid small{font-size:var(--fs-xs);color:var(--pewter);overflow-wrap:anywhere}
.tf-cgrid a,.tf-cmore a{color:var(--forest)}
.tf-cmore{font-size:var(--fs-sm);color:var(--graphite)}
.tf-top{position:fixed;right:20px;bottom:20px;z-index:40;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--forest);color:var(--white);text-decoration:none;font-weight:600;box-shadow:var(--lift)}
.tf-top[hidden]{display:none}

@media(max-width:1040px){
  /* the row scrolls inside the white bar, fading at its right edge, so no scrollbar line under it; the room after the
     last tab lets it scroll clear of the fade (review, 4 Nov 2026: at 390 px two whole tabs filled the bar and hid the rest) */
  .tf-tabbar{margin:0 0 14px;padding:8px;background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-card);box-shadow:0 4px 16px -8px rgba(27,48,72,.18)}
  /* 4px inside the scroller (and out again with the margin) keeps a tab's focus ring from being cut off */
  .tf-tabs{display:flex;overflow-x:auto;scrollbar-width:none;margin:-4px 0 -4px -4px;padding:4px 36px 4px 4px;background:none;border:0;border-radius:0;box-shadow:none;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
  /* the script marks which ends have more (data-edge), so the fade and an arrow sit on each side that does */
  .tf-tabs[data-edge="mid"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent)}
  .tf-tabs[data-edge="end"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px);mask-image:linear-gradient(90deg,transparent,#000 36px)}
  .tf-tabs[data-edge="none"]{-webkit-mask-image:none;mask-image:none}
  .tf-tabs::-webkit-scrollbar{display:none}
  .tf-tab{min-width:145px;flex:none}
  .tf-gbar{margin:0 0 28px;padding:8px;background:var(--white);border:1px solid var(--card-line);border-radius:var(--r-card);box-shadow:0 4px 16px -8px rgba(27,48,72,.18)}
  .tf-gnav{display:flex;overflow-x:auto;scrollbar-width:none;margin:-4px 0 -4px -4px;padding:4px 36px 4px 4px;background:none;border:0;border-radius:0;box-shadow:none;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
  /* the group tabs fade on each end that has more, with an arrow there, as the category bar does (12 Nov 2026) */
  .tf-gnav[data-edge="mid"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent)}
  .tf-gnav[data-edge="end"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px);mask-image:linear-gradient(90deg,transparent,#000 36px)}
  .tf-gnav[data-edge="none"]{-webkit-mask-image:none;mask-image:none}
  .tf-gnav::-webkit-scrollbar{display:none}
  .tf-gnav a{min-width:145px;flex:none}
  .tf-nudge{position:absolute;top:50%;z-index:1;display:grid;place-items:center;width:44px;height:44px;margin-top:-22px;padding:0;border:0;background:none;color:var(--navy);cursor:pointer}
  .tf-nudge::before{content:"";position:absolute;inset:7px;z-index:-1;border-radius:50%;background:var(--white);border:1px solid var(--card-line);box-shadow:0 2px 8px -2px rgba(15,43,76,.3)}
  .tf-nudge.prev{left:0}
  .tf-nudge.next{right:0}
  .tf-nudge[hidden]{display:none}
  .tf-nudge:focus-visible{outline:var(--focus);outline-offset:-4px}
  .tf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tf-fhead{grid-template-columns:1fr;gap:12px;align-items:start}
  .tf-flist{grid-template-columns:1fr}
}
@media(max-width:900px){
  .tf-row summary{grid-template-columns:96px minmax(0,1fr) 32px}
  .tf-row summary img,.tf-row summary .tf-nph{width:96px;height:70px}
  .tf-rbody{padding-left:22px}
}
@media(max-width:760px){
  .tf-decide{padding:52px 0}
  .tf-dhead{grid-template-columns:1fr;gap:12px;margin-bottom:22px}
  .tf-dhead>p{justify-self:start}
  .tf-dgrid{grid-template-columns:1fr}
  .tf-dgrid article{padding:20px}
}
/* no search on a phone held sideways either */
@media(pointer:coarse) and (max-height:500px){.tf-search{display:none}}
@media(max-width:700px){
  .tf-hero{padding-bottom:24px}
  .tf-hero .crumbs{margin-bottom:16px}
  .tf-hero h1{font-size:40px}
  .tf-hero .lede{font-size:var(--fs-md)}
  /* no search on phones (Sharod, 3 Nov 2026: "Remove the search feature on mobile for this page"): the tabs and the cards do it */
  .tf-search{display:none}
  /* the filters and the cards each in one row that scrolls sideways, like Booking.com's trip planner (Sharod, 4 Nov
     2026); the next card shows at the edge, so the row says it goes on */
  .tf-tabbar{margin-inline:-2px;padding:7px}
  .tf-tabs{gap:8px}
  .tf-tab{min-width:0;min-height:44px;padding:8px 15px;border-radius:var(--r-pill);white-space:nowrap}
  .tf-tab span{display:inline;margin:0 0 0 3px}
  /* "Most popular N <city> experiences" wraps on a narrow phone, so a long city name stays on the screen (8 Nov 2026) */
  .tf-head.split strong{white-space:normal}
  .tf-gbar{margin-inline:-2px;padding:7px}
  .tf-gnav{gap:8px}
  .tf-gnav a{flex-direction:row;min-width:0;min-height:44px;padding:8px 15px;border-radius:var(--r-pill);white-space:nowrap}
  .tf-gnav a span{display:inline;margin:0 0 0 6px}
  /* the row says it swipes, with arrows for anyone who would rather tap (Sharod, 4 Nov 2026) */
  .tf-swipe{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
  .tf-swipe[hidden]{display:none}
  .tf-swipe-hint{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-sm);font-weight:600;color:var(--graphite)}
  .tf-swipe-hint svg{width:22px;height:22px;flex:none;color:var(--forest)}
  .tf-swipe-btns{display:flex;gap:8px}
  .tf-swipe-btns button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--card-line);background:var(--white);color:var(--navy);cursor:pointer}
  .tf-swipe-btns button:disabled{opacity:.4;cursor:default}
  .tf-swipe-btns button:focus-visible{outline:var(--focus);outline-offset:2px}
  /* less dead space on phones (Sharod, 4 Nov 2026: "reduce the dead space so it's not as much scrolling") */
  .tf-market,.tf-lib,.tf-faq,.tf-cross{padding:32px 0}
  .tf-decide{padding:36px 0}
  .tf-more{margin-top:0}
  .tf-head.split{display:block}
  .tf-head.split strong{display:block;margin-top:10px}
  .tf-head{margin-bottom:18px}
  .tf-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(80%,320px);gap:12px;overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);margin-inline:calc(-1 * var(--gutter));padding:2px var(--gutter) 8px;scrollbar-width:none;
    align-items:start}
  .tf-grid::-webkit-scrollbar{display:none}
  /* each card only as tall as its own content; "Featured" on the photo's top right, opposite its place label, so a
     featured card isn't taller than the rest (Sharod, 4 Nov 2026) */
  .tf-card{position:relative;scroll-snap-align:start;box-shadow:0 3px 10px -6px rgba(15,43,76,.18)}
  .tf-body>.tf-badge{position:absolute;top:11px;right:11px;z-index:1;margin:0}
  .tf-photo{aspect-ratio:16/10}
  .tf-body{padding:14px}
  .tf-ghead.tf-gtoggle{column-gap:12px;padding:12px 12px 12px 11px}
  .tf-gtoggle h3{font-size:var(--fs-lg)}
  .tf-gthumbs img{width:36px;height:36px;border-radius:8px}
  .tf-gtoggle .tf-gthumbs{width:72px}
  .tf-gthumbs img+img{margin-left:-18px}
  .tf-gtoggle::after{width:30px;height:30px;background-size:16px}
  .tf-gmore .pill{width:100%;justify-content:center}
  .tf-row summary{grid-template-columns:80px minmax(0,1fr) 30px;gap:11px;padding:9px}
  .tf-row summary img,.tf-row summary .tf-nph{width:80px;height:62px}
  .tf-row summary strong{font-size:var(--fs-md)}
  .tf-row summary em{display:none}
  .tf-rbody{padding:15px 14px 16px}
  .tf-rbody .tf-go{width:100%}
  .tf-q summary{grid-template-columns:1fr 28px;padding:15px 14px;min-height:64px}
  .tf-q>div{padding:0 14px 16px}
  .tf-cross-in{grid-template-columns:1fr}
  .tf-clinks a{overflow-wrap:anywhere}
  .tf-final-in{display:block}
  .tf-final .pill.fill{margin-top:18px;width:100%}
  .tf-cgrid{columns:1}
  /* the booking bar takes the bottom of a phone screen */
  .tf-top{display:none}
}
@media(prefers-reduced-motion:reduce){
  .tf-card,.tf-photo img,.tf-row summary b,.tf-plus,.tf-gtoggle::after{transition:none}
  .tf-card:hover{transform:none}
}
