/* Thrifty Drifts — theme-owned CSS: fonts, shortcode output, JS states, form + a11y polish.
   Layout/components built in Bricks live in Bricks global classes, not here. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --td-ink: var(--ink, #0F2A33); --td-spruce: var(--spruce, #1F5A4A); --td-marigold: var(--marigold, #F2A516);
  --td-ember: var(--ember, #D9481C); --td-glacier: var(--glacier, #DCEBEA); --td-snow: var(--snow, #F7F5EF);
  --td-granite: var(--granite, #55616A); --td-border: rgb(85 97 106 / 0.2);
  --td-radius: 14px; --td-shadow: 0 6px 24px rgb(15 42 51 / 0.10);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "Figtree", system-ui, sans-serif; color: var(--td-ink); background: var(--td-snow); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--td-marigold); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; background: var(--td-marigold); color: var(--td-ink); padding: 12px 18px; border-radius: 999px; font-weight: 700; }

/* currency switch */
html[data-currency="eur"] .td-cur--gbp, html[data-currency="gbp"] .td-cur--eur { display: none; }
.td-currency { font: 700 14px/1 "Figtree", sans-serif; cursor: pointer; border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 9px 14px; opacity: .9; }
.td-currency:hover { opacity: 1; }
html[data-currency="eur"] .td-currency [data-cur="eur"], html[data-currency="gbp"] .td-currency [data-cur="gbp"] { color: var(--td-marigold); }

/* logo */
.td-logo::before { content: ""; display: inline-block; width: 36px; height: 36px; background: url("logo-mark.svg") center / contain no-repeat; flex: none; }
#brx-header { position: sticky; top: 0; z-index: 100; }

/* header states (toggled by td.js) */
.td-header { transition: background-color .2s ease-out, box-shadow .2s ease-out; }
.td-header.is-stuck { box-shadow: 0 2px 18px rgb(0 0 0 / .18); }
.td-nav-toggle { display: none; }
@media (max-width: 991px) {
  .td-nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid rgb(247 245 239 / .6); color: var(--td-snow); border-radius: 999px; padding: 10px 16px; font: 700 15px/1 "Figtree", sans-serif; cursor: pointer; }
  .td-nav { display: none !important; }
  .td-header.is-open .td-nav { display: flex !important; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--td-ink); padding: 16px 24px 28px; box-shadow: 0 18px 30px rgb(0 0 0 / .25); }
  .td-header.is-open .td-nav a { padding: 12px 0; font-size: 19px; width: 100%; }
}

/* upcoming departures list */
.td-upcoming { list-style: none; margin: 0; padding: 0; border: 1px solid var(--td-border); border-radius: var(--td-radius); background: #fff; overflow: hidden; }
.td-upcoming__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 70px 150px 130px; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--td-border); font-variant-numeric: tabular-nums; }
.td-upcoming__row:last-child { border-bottom: 0; }
.td-upcoming__date { font-weight: 700; }
.td-upcoming__title { color: var(--td-ink); font-weight: 700; text-decoration: none; }
.td-upcoming__title:hover { color: var(--td-spruce); text-decoration: underline; }
.td-upcoming__meta { color: var(--td-granite); font-size: 15px; }
.td-upcoming__price { font-weight: 700; text-align: right; }
@media (max-width: 767px) { .td-upcoming__row { grid-template-columns: 1fr auto; gap: 6px 12px; } .td-upcoming__meta { display: none; } .td-upcoming__price { text-align: left; } }

/* reveal on scroll */
.td-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
.td-reveal.is-in { opacity: 1; transform: none; }
.no-js .td-reveal { opacity: 1; transform: none; }

/* stretched link: makes a whole card clickable from one real link */
.td-card { position: relative; }
.td-card .td-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* price tag */
.td-tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--td-ink); }

/* lists */
.td-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.td-list li { position: relative; padding-left: 34px; line-height: 1.5; }
.td-list li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.td-list--tick li::before { content: "✓"; background: var(--td-glacier); color: var(--td-spruce); }
.td-list--cross li::before { content: "×"; background: #f3e3dc; color: var(--td-ember); font-size: 16px; }
.td-list--star li::before { content: "★"; background: var(--td-marigold); color: var(--td-ink); font-size: 11px; }
.td-list--honest li::before { content: "!"; background: var(--td-ink); color: var(--td-marigold); }
.td-list--kit li::before { content: "•"; background: var(--td-glacier); color: var(--td-spruce); font-size: 18px; }

.td-prose p { margin: 0 0 18px; font-size: 18px; line-height: 1.65; max-width: 68ch; }

/* facts strip */
.td-factstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0; background: var(--td-border); border: 1px solid var(--td-border); border-radius: var(--td-radius); overflow: hidden; }
.td-factstrip > div { background: #fff; padding: 18px 20px; }
.td-factstrip dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--td-granite); margin-bottom: 6px; }
.td-factstrip dd { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.td-boots { display: inline-flex; gap: 4px; vertical-align: middle; }
.td-boots i { width: 14px; height: 14px; border-radius: 50%; background: var(--td-glacier); border: 1.5px solid var(--td-spruce); }
.td-boots i.is-on { background: var(--td-spruce); }

/* accordions (native <details>) */
.td-accordion { display: grid; gap: 10px; }
.td-day { background: #fff; border: 1px solid var(--td-border); border-radius: var(--td-radius); overflow: hidden; }
.td-day summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 52px 18px 22px; position: relative; font-weight: 700; font-size: 18px; }
.td-day summary::-webkit-details-marker { display: none; }
.td-day summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--td-glacier); color: var(--td-spruce); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.td-day[open] summary::after { content: "–"; background: var(--td-marigold); color: var(--td-ink); }
.td-day__n { color: var(--td-spruce); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; min-width: 54px; }
.td-day__stats { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--td-granite); font-variant-numeric: tabular-nums; }
.td-day p { margin: 0; padding: 0 22px 22px; line-height: 1.65; max-width: 72ch; }

/* money bar */
.td-money__bar { display: flex; height: 46px; border-radius: 10px; overflow: hidden; gap: 2px; }
.td-money__seg--0 { background: var(--td-marigold); } .td-money__seg--1 { background: #f6c566; } .td-money__seg--2 { background: var(--td-glacier); }
.td-money__seg--3 { background: #a9cfc9; } .td-money__seg--4 { background: #6fa89d; } .td-money__seg--5 { background: var(--td-snow); }
.td-money__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; padding: 0; font-size: 15px; }
.td-money__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; }
.td-money__note { margin: 14px 0 0; font-size: 14px; opacity: .75; }

/* departures */
.td-tablewrap { overflow-x: auto; border: 1px solid var(--td-border); border-radius: var(--td-radius); background: #fff; }
.td-dep { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
.td-dep th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--td-granite); padding: 14px 20px; border-bottom: 1px solid var(--td-border); }
.td-dep td { padding: 16px 20px; border-bottom: 1px solid var(--td-border); font-weight: 500; }
.td-dep tr:last-child td { border-bottom: 0; }
.td-dep__price { font-weight: 700; }
.td-dep__cta { display: inline-block; background: var(--td-marigold); color: var(--td-ink); font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.td-dep__cta:hover { background: #D98F05; }
.td-dep__na { font-size: 14px; color: var(--td-granite); }
.td-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.td-status--open { background: var(--td-glacier); color: var(--td-spruce); }
.td-status--filling { background: #fdecc8; color: #7a4d00; }
.td-status--full { background: #ecebe8; color: var(--td-granite); }

/* filters */
.td-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; background: #fff; border: 1px solid var(--td-border); border-radius: var(--td-radius); padding: 20px; box-shadow: var(--td-shadow); }
.td-filter span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--td-granite); margin-bottom: 6px; }
.td-filter select { width: 100%; font: 500 16px/1.2 "Figtree", sans-serif; color: var(--td-ink); background: var(--td-snow); border: 1.5px solid var(--td-border); border-radius: 10px; padding: 12px; min-height: 46px; }
.td-filters__reset { font: 700 15px/1 "Figtree", sans-serif; background: transparent; border: 0; color: var(--td-spruce); text-decoration: underline; cursor: pointer; min-height: 46px; text-align: left; }
.td-filters__count { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--td-granite); }
.td-card[hidden] { display: none !important; }
.td-noresults { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: #fff; border-radius: var(--td-radius); border: 1px dashed var(--td-border); }

/* Bricks form polish */
.td-form .form-group label { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.td-form input:not([type=checkbox]):not([type=radio]), .td-form select, .td-form textarea { font: 500 16px/1.4 "Figtree", sans-serif; background: #fff; border: 1.5px solid var(--td-border); border-radius: 10px; padding: 13px 14px; color: var(--td-ink); width: 100%; }
.td-form input:focus, .td-form select:focus, .td-form textarea:focus { border-color: var(--td-spruce); outline: 3px solid rgb(31 90 74 / .2); }
.td-form button[type=submit] { background: var(--td-marigold); color: var(--td-ink); font: 700 17px/1 "Figtree", sans-serif; border: 0; border-radius: 999px; padding: 17px 30px; cursor: pointer; transition: background .2s ease-out, transform .2s ease-out; }
.td-form button[type=submit]:hover { background: #D98F05; transform: translateY(-1px); }
.td-enquiry-context { background: var(--td-glacier); border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; }

@media (max-width: 478px) {
  .td-day summary { font-size: 16px; padding-left: 16px; }
  .td-day p { padding: 0 16px 18px; }
  .td-day__stats { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .td-reveal { opacity: 1; transform: none; }
}

/* --- robustness overrides: Bricks theme styles / element defaults vs. our modifier classes --- */
body h1, body h2, body h3, body h4 { color: inherit; }
body .td-btn.td-btn--ghost { background: transparent; color: var(--td-snow); border: 1.5px solid rgb(247 245 239 / .55); }
body .td-btn.td-btn--ghost:hover { background: rgb(247 245 239 / .12); }
body .td-btn.td-btn--dark { background: var(--td-ink); color: var(--td-snow); }
body .td-btn.td-btn--dark:hover { background: var(--td-spruce); }
body .td-btn.td-btn--small { font-size: 15px; padding: 13px 22px; }
.td-logo { gap: 0 !important; }
.td-logo::before { margin-right: 10px; }
.td-logo > * { display: inline; }
.td-eyebrow.td-eyebrow--light { color: var(--td-marigold); }
.td-section.td-section--white { background: #fff; }
.td-section.td-section--tint { background: var(--td-glacier); }
.td-section.td-section--dark { background: var(--td-ink); color: var(--td-snow); }
.td-section--dark .td-money__note, .td-section--dark .td-money__legend { color: #DCEBEA; }
.td-value.td-value--dark { background: rgb(247 245 239 / .06); border-color: rgb(247 245 239 / .18); }
.td-head.td-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.td-h1.td-h1--page { font-size: clamp(38px, 5vw, 64px); max-width: 18ch; }
.td-panel.td-panel--honest { background: var(--td-ink); color: var(--td-snow); border: 0; }
.td-panel.td-panel--tint { background: var(--td-glacier); border: 0; }
.td-pagehero.td-pagehero--tour { padding-top: 160px; padding-bottom: 72px; min-height: 62vh; justify-content: flex-end; }
.td-hero__content, .td-pagehero__content { position: relative; z-index: 2; }
.td-hero__img { z-index: 0; }
.td-trust__item { display: flex; align-items: baseline; margin: 0; }
.td-shortcode { width: 100%; }
@media (max-width: 767px) { .td-pagehero.td-pagehero--tour { padding-top: 110px; min-height: 0; } .td-head.td-head--row { flex-direction: column; align-items: flex-start; } }

/* importer sets a 10px base on imported roots; restore a sane inherited size */
#brx-content > section, #brx-content > .brxe-section, #brx-header > *, #brx-footer > * { font-size: 17px !important; line-height: 1.6; }
.td-link { font-size: 16px; }
.td-footer__legal p { margin: 0; }
/* journal article body */
.td-postcontent { font-size: 18px; line-height: 1.7; }
.td-postcontent h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 44px 0 14px; }
.td-postcontent p, .td-postcontent ul, .td-postcontent ol { margin: 0 0 20px; }
.td-postcontent li { margin-bottom: 8px; }
.td-postcontent a { color: var(--td-spruce); font-weight: 700; }
.td-book__price .td-cur { font-family: "Bricolage Grotesque", sans-serif; }
.td-form { display: grid; gap: 6px; }
.td-form .form-group { margin-bottom: 12px; }

/* mobile header: keep logo + actions on one row */
@media (max-width: 991px) {
  .td-header__inner { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; min-height: 64px; gap: 10px; }
  .td-header__actions { flex-wrap: nowrap; flex: none; gap: 8px; }
  .td-header .td-logo { font-size: 22px; white-space: nowrap; }
  .td-header .td-logo::before { width: 30px; height: 30px; margin-right: 8px; }
}
@media (max-width: 478px) {
  .td-header { padding-left: 16px !important; padding-right: 16px !important; }
  .td-currency { padding: 9px 10px; font-size: 13px; }
  .td-nav-toggle { padding: 9px 13px !important; }
  .td-header__actions .td-btn { display: none !important; }
}

/* contain wide shortcode output (departures table) inside flex/grid columns */
.brxe-shortcode, .td-shortcode { width: 100%; min-width: 0; max-width: 100%; }
.td-tablewrap { max-width: 100%; }
.td-tour__main, .td-tour__block { min-width: 0; max-width: 100%; }

.td-tablewrap, .td-dep th { position: relative; }
html { overflow-x: clip; }
