/**
 * /find-a-trip/{id}/ — the journeys a place belongs to.
 *
 * Revised 2026-08-14 to Chiran's marked-up screenshots:
 *   • 60px of clear air between the navigation and the eyebrow;
 *   • everything LEFT aligned, on the theme's own left margin — the page reads
 *     from the left like the rest of the site, not down a centre line;
 *   • the listing name capped at 40px;
 *   • the eyebrow in sentence case, bold violet, with the short rule (image 35),
 *     rather than letter-spaced uppercase;
 *   • ratings on every card, and no "See this trip" link — the whole card is
 *     already the link;
 *   • 30px between the rule and "Not quite what you had in mind?", and ~60px
 *     before the newsletter band.
 *
 * TYPEFACE: the brand faces, Google Sans with DM Sans behind it — self-hosted
 * and licensed under the SIL Open Font License. Declared in
 * assets/css/sarisara-fonts.css. Certainly not Poppins.
 * (Circular Std and Graphik were removed on 13 September 2026: never licensed.)
 */

.sft-wrap {
  --sft-primary: #7700FF;
  --sft-primary-dark: #5C00CC;
  --sft-primary-light: #F0E5FF;
  --sft-primary-ultra: #F8F4FF;
  --sft-text-1: #090902;
  --sft-text-2: #5A5A6E;
  --sft-text-3: #8E8EA0;
  --sft-surface: #FFFFFF;
  --sft-border: #E8E8EE;
  --sft-star: #FFB700;
  --sft-shadow: 0 1px 2px rgba(10, 11, 31, .04), 0 12px 32px rgba(10, 11, 31, .05);
  --sft-shadow-hover: 0 4px 8px rgba(9, 9, 2, .06), 0 8px 24px rgba(9, 9, 2, .12);
  --sft-ease: cubic-bezier(.25, .1, .25, 1);
  --sft-font: "Google Sans", -apple-system,
              BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* 60px of clear air under the navigation. find-a-trip.js adds whatever more
     the absolutely-positioned theme header needs on top of this. */
  /* --sft-nav is measured by find-a-trip.js; the 60px is Chiran's clear air. */
  padding-top: calc(var(--sft-nav, 0px) + 60px);
  padding-bottom: 60px;
  font-family: var(--sft-font);
  color: var(--sft-text-1);
}

/* ─────────────────────────── the head ─────────────────────────── */

/* Left aligned, not centred (Chiran 2026-08-14). */
.sft-head {
  max-width: 760px;
  margin: 0 0 40px;
  text-align: left;
}

/* Sentence case, bold, violet, with the short rule — image 35. */
.sft-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--sft-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sft-primary);
}

.sft-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  flex: none;
  background: var(--sft-primary);
}

/* 40px, capped — the listing name is the page's subject, not its billboard. */
.sft-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--sft-text-1);
}

.sft-sub {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sft-text-2);
}

/* ─────────────────────────── the filters ─────────────────────────── */

.sft-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.sft-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1.5px solid var(--sft-border);
  background: var(--sft-surface);
  font-family: var(--sft-font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sft-text-2);
  cursor: pointer;
  transition: border-color 160ms var(--sft-ease), color 160ms var(--sft-ease),
              background-color 160ms var(--sft-ease);
}

.sft-chip:hover { border-color: var(--sft-primary); color: var(--sft-primary); }

.sft-chip.is-on {
  background: var(--sft-primary-light);
  border-color: var(--sft-primary);
  color: var(--sft-primary-dark);
}

.sft-chip:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(119, 0, 255, .12); }

.sft-chip-n {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sft-text-3);
}

.sft-chip.is-on .sft-chip-n { color: var(--sft-primary); }

/* ─────────────────────────── the cards ─────────────────────────── */

/* Left aligned: the grid starts at the left margin and fills rightwards, so one
   card sits where a reader expects it rather than in the middle of the page. */
.sft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 320px));
  justify-content: start;
  gap: 24px;
  margin: 0;
}

.sft-card {
  display: block;
  background: var(--sft-surface);
  border: 1px solid var(--sft-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sft-shadow);
  transition: transform 200ms var(--sft-ease), box-shadow 200ms var(--sft-ease);
}

.sft-card[hidden] { display: none; }

.sft-card:hover,
.sft-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--sft-shadow-hover);
}

.sft-card:focus-visible {
  outline: 0;
  box-shadow: var(--sft-shadow-hover), 0 0 0 4px rgba(119, 0, 255, .12);
}

.sft-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sft-primary-ultra);
}

.sft-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sft-card-body { padding: 18px 20px 22px; }

.sft-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.015em;
  color: var(--sft-text-1);
}

/* What travellers said — the reason to choose this journey over that one. */
.sft-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1;
}

.sft-stars { display: inline-flex; gap: 1px; }

.sft-star { color: #DDDDE5; font-size: 15px; line-height: 1; }
.sft-star.is-on { color: var(--sft-star); }

.sft-score { font-weight: 700; color: var(--sft-text-1); }
.sft-count { color: var(--sft-text-3); }

.sft-card-rating--none { color: var(--sft-text-3); font-size: 13.5px; }

.sft-card-meta {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sft-text-3);
}

.sft-empty-filter {
  margin: 24px 0 0;
  font-size: 15px;
  color: var(--sft-text-2);
}

/* ─────────────────────────── the empty state ─────────────────────────── */

.sft-head--empty { margin-bottom: 0; max-width: 640px; }

.sft-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 17px 38px;
  border-radius: 9999px;
  background: var(--sft-primary);
  color: #fff !important;
  font-family: var(--sft-font);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 200ms var(--sft-ease);
}

.sft-btn:hover,
.sft-btn:focus { background: var(--sft-primary-dark); color: #fff !important; }
.sft-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(119, 0, 255, .12); }

.sft-small { margin: 16px 0 0; font-size: 14.5px; color: var(--sft-text-3); }

/* ─────────────────────────── the feet ─────────────────────────── */

/* 30px between the rule and the line beneath it (Chiran's image 30). */
.sft-foot {
  margin: 48px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--sft-border);
  font-size: 15.5px;
  color: var(--sft-text-2);
  text-align: left;
}

/* ~60px of air before the newsletter band, which used to sit right underneath. */
.sft-back {
  margin: 22px 0 60px;
  font-size: 15px;
  text-align: left;
}

.sft-foot a,
.sft-back a {
  color: var(--sft-primary);
  font-weight: 700;
  text-decoration: none;
}

.sft-foot a:hover,
.sft-back a:hover { color: var(--sft-primary-dark); text-decoration: underline; }

@media (max-width: 640px) {
  .sft-wrap { padding-top: 40px; padding-bottom: 40px; }
  .sft-head { margin-bottom: 28px; }
  .sft-grid { grid-template-columns: minmax(0, 1fr); }
  .sft-back { margin-bottom: 48px; }
}


/* ─────────────────────────── specificity ───────────────────────────
   `.single.st-header-9 p` is a GLOBAL rule for body copy on listing pages
   (15px / 23px / padding 0). This page borrows the listing as its queried
   object so the theme's header works, which means that rule lands here too and
   out-specifies a single class — it was flattening the eyebrow to 15px and
   eating the foot's 30px. These carry the page's voice, so they are pinned. */
.sft-wrap .sft-eyebrow {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  padding: 0 !important;
}
.sft-wrap .sft-sub { font-size: 16px !important; line-height: 1.6 !important; }
.sft-wrap .sft-foot { padding-top: 30px !important; font-size: 15.5px !important; }
.sft-wrap .sft-back { font-size: 15px !important; margin-bottom: 60px !important; }
.sft-wrap .sft-card-meta { font-size: 13.5px !important; line-height: 1.5 !important; }
.sft-wrap .sft-card-rating { font-size: 14px !important; line-height: 1 !important; }
.sft-wrap .sft-small { font-size: 14.5px !important; }

/* The page container is the theme's own .container, and a global listing-page
   rule zeroes its padding — measured: --sft-nav resolved to 90px while
   padding-top computed to 0. Pinned, so the 60px of clear air Chiran asked for
   survives whatever the theme does to .container. */
.sft-wrap.sft-wrap {
  padding-top: calc(var(--sft-nav, 0px) + 60px) !important;
  padding-bottom: 60px !important;
}

/* ONE HEIGHT FOR EVERY CARD (Chiran, 21 Oct 2026): titles stop at 2 lines with
   "…" and always take 2 lines' room; the card's last line sits at the bottom,
   so every card in a row is the same height whatever its text. */
.sft-card { display: flex; flex-direction: column; height: 100%; }
.sft-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.sft-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(2 * 1.32em);
}
.sft-card-body > :last-child { margin-top: auto; }
