/*
 * Sam Watcher stop template.
 *
 * The palette, type scale and section rhythm are lifted from the Slow Provence
 * landing page so a stop reads as the same family. The selectors are our own,
 * because the sections differ: a stop has an article that gets split, a
 * variable number of landmarks, and a video.
 *
 * Properties are alphabetised inside each rule, position first, then
 * bottom/left/right/top.
 */

:root {
  --cream: #FAF4E8;
  --gold: #C49A4A;
  --ink: #2C2820;
  --ink-soft: #5A5345;
  --lavender: #8C7AA8;
  --line: rgba(44, 40, 32, .16);
  --olive: #7E7C4F;
  --paper: #F3EAD7;
  --shadow: 0 30px 60px -25px rgba(44, 40, 32, .45);
  --terracotta: #B5572F;
  --terracotta-deep: #8F3F1E;
}

/* ---------- reset, scoped so wp_head output is not disturbed ---------- */

.sam-stop *,
.sam-stop *::before,
.sam-stop *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.sam-stop-body {
  -webkit-font-smoothing: antialiased;
  background: var(--cream);
  color: var(--ink);
  font-family: "Mulish", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

/* paper grain */
body.sam-stop-body::before {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(44, 40, 32, .035) 1px, transparent 1px);
  background-size: 4px 4px;
  content: "";
  opacity: .5;
  pointer-events: none;
  z-index: 1;
}

.sam-stop .wrap {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 28px;
}

/* ---------- shared type ---------- */

.sam-stop h1,
.sam-stop h2,
.sam-stop h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.06;
}

.sam-stop .eyebrow {
  color: var(--terracotta-deep);
  font-family: "Mulish", sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.sam-stop .rule {
  background: var(--terracotta);
  height: 2px;
  margin: 0 auto;
  width: 60px;
}

.sam-stop .sec-head {
  margin: 0 auto 50px;
  text-align: center;
}

.sam-stop .sec-head .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}

.sam-stop .sec-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

.sam-stop .sec-head h2 em {
  color: var(--terracotta);
  font-style: italic;
}

.sam-stop .sec-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 14px;
}

/* ---------- site menu ---------- */

/*
 * Sticky, so Enquire stays on screen the whole way down the page. The bar is
 * opaque cream rather than translucent, because it passes over the hero photo
 * and the dark enquiry panel and has to stay readable on both. The z-index
 * clears the Mapbox controls, which sit at 3 inside the map canvas.
 */
.sam-stop-nav {
  position: sticky;
  top: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(44, 40, 32, .08);
  z-index: 100;
}

.sam-stop-nav .nav-in {
  align-items: center;
  display: flex;
  gap: 18px 30px;
  justify-content: space-between;
  padding: 14px 0;
}

.sam-stop-nav .nav-logo {
  flex: none;
  line-height: 0;
}

.sam-stop-nav .nav-logo img {
  display: block;
  height: 52px;
  width: auto;
}

.sam-stop-nav .nav-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sam-stop-nav .nav-menu a {
  color: var(--ink-soft);
  font-family: "Mulish", sans-serif;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
  white-space: nowrap;
}

.sam-stop-nav .nav-menu a:hover,
.sam-stop-nav .nav-menu .current-menu-item > a {
  color: var(--terracotta);
}

/*
 * The home item is an icon, so it needs its own size. Font Awesome runs in
 * SVG with JS mode here, which replaces the <i> with an <svg> that inherits
 * the font size, and the svg needs the block display to sit on the baseline
 * of the uppercase labels beside it.
 */
.sam-stop-nav .nav-home a {
  display: block;
  font-size: 1.2rem;
  line-height: 28px;
}

.sam-stop-nav .nav-home svg {
  display: block;
}

.sam-stop-nav .nav-cta {
  background: var(--terracotta);
  border: 1px solid var(--terracotta);
  color: var(--cream);
  flex: none;
  font-family: "Mulish", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: 12px 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: .2s ease;
}

.sam-stop-nav .nav-cta:hover {
  background: transparent;
  color: var(--terracotta);
}

/* ---------- hero ---------- */

.sam-stop .hero {
  position: relative;
  align-items: flex-end;
  background: linear-gradient(135deg, #6f8a6a 0%, #b9a06a 42%, #caa05f 70%, #a98552 100%);
  display: flex;
  min-height: 62vh;
  padding-top: 20px;
}

.sam-stop .hero-img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
  z-index: 0;
}

.sam-stop .hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 11, .38) 0%, rgba(20, 17, 11, .2) 38%, rgba(20, 17, 11, .92) 100%);
  z-index: 1;
}

.sam-stop .hero-inner {
  position: relative;
  color: #FBF6EC;
  padding-bottom: 64px;
  z-index: 2;
}

/*
 * A pill rather than bare text. Over a photograph the letter-spaced caps
 * disappeared into whatever was behind them, and a text-shadow heavy enough to
 * fix that looked like a mistake. The tinted plate carries its own contrast, so
 * the label reads over a bright harbour or a dark alley without changing.
 */
.sam-stop .hero .eyebrow {
  align-items: center;
  backdrop-filter: blur(6px);
  background: rgba(24, 18, 12, .46);
  border: 1px solid rgba(240, 217, 168, .5);
  border-radius: 999px;
  color: #F4E2BC;
  display: inline-flex;
  font-size: .78rem;
  gap: 11px;
  letter-spacing: .26em;
  margin-bottom: 22px;
  padding: 9px 20px 9px 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

/* The icon sits on the same baseline as the caps and never wraps away. */
.sam-stop .hero .eyebrow .svg-inline--fa,
.sam-stop .hero .eyebrow i {
  color: var(--gold);
  flex: none;
  font-size: 1.05em;
}

.sam-stop .hero h1 {
  color: #FBF6EC;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  margin: .18em 0 .1em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6), 0 1px 4px rgba(0, 0, 0, .5);
}

.sam-stop .hero .sub {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  max-width: 44ch;
  opacity: .95;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .5);
}

.sam-stop .hero .meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: .82rem;
  font-weight: 600;
  gap: 14px 26px;
  letter-spacing: .16em;
  margin-top: 26px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
  text-transform: uppercase;
}

.sam-stop .hero .meta span {
  align-items: center;
  display: flex;
  gap: 9px;
}

.sam-stop .dot {
  background: var(--gold);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

/* ---------- intro and at a glance ---------- */

.sam-stop .intro {
  padding: 96px 0 40px;
}

/*
 * The article column, shared by the half above the gallery and the half below
 * it so the two read as one column rather than two different widths.
 */
.sam-stop .article-col {
  margin: 0 auto;
  max-width: 1144px;
}

/*
 * At a Glance is floated rather than a grid cell. In a grid the article is
 * stuck in a narrow column for its whole length, even the two thirds of it
 * that run past the bottom of the card. Floating lets the copy wrap beside the
 * card and then reclaim the full width underneath it.
 */
.sam-stop .intro-grid::after {
  clear: both;
  content: "";
  display: table;
}

.sam-stop .glance {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  float: right;
  margin: 6px 0 36px 54px;
  padding: 34px 32px;
  width: 320px;
}

.sam-stop .glance::before {
  position: absolute;
  left: -1px;
  top: -1px;
  border-left: 2px solid var(--terracotta);
  border-top: 2px solid var(--terracotta);
  content: "";
  height: 46px;
  width: 46px;
}

.sam-stop .glance h3 {
  font-size: 1.5rem;
  margin-bottom: .5em;
}

.sam-stop .glance .row {
  border-bottom: 1px dotted var(--line);
  display: flex;
  font-size: .95rem;
  gap: 14px;
  justify-content: space-between;
  padding: 11px 0;
}

.sam-stop .glance .row:last-child {
  border-bottom: 0;
}

.sam-stop .glance .row span {
  color: var(--ink-soft);
  flex: 0 0 auto;
}

.sam-stop .glance .row b {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: right;
}

/* a highlight line with no label spans the row */
.sam-stop .glance .row.plain {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}

/* ---------- article body ---------- */

.sam-stop .article {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.sam-stop .article p + p,
.sam-stop .article ul,
.sam-stop .article ol {
  margin-top: 1.1em;
}

.sam-stop .article h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 1.5em 0 .35em;
}

.sam-stop .article h2 em {
  color: var(--terracotta);
  font-style: italic;
}

.sam-stop .article h3 {
  color: var(--ink);
  font-size: 1.5rem;
  margin: 1.4em 0 .3em;
}

.sam-stop .article > *:first-child {
  margin-top: 0;
}

.sam-stop .article ul,
.sam-stop .article ol {
  padding-left: 1.3em;
}

.sam-stop .article li {
  margin-bottom: .4em;
}

.sam-stop .article strong {
  color: var(--ink);
  font-weight: 700;
}

.sam-stop .article-tail {
  padding-bottom: 20px;
  padding-top: 0;
}

/* ---------- map ---------- */

/*
 * The frame is the Travel Manager skeuomorphic quotation style, lifted from
 * includes/css/r24k-tm-flat-skeu-quotation-skeu.css: a raised paper card with
 * an inset highlight along the top edge and three stacked shadows, holding the
 * map inset so the map reads as a photograph laid on the card rather than as a
 * hole cut in it.
 */
.sam-stop .stop-map {
  padding: 62px 0;
}

.sam-stop .map-frame {
  background: linear-gradient(160deg, var(--paper) 0%, #E9DFC9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .85) inset,
    0 4px 12px rgba(0, 0, 0, .08),
    0 16px 40px rgba(0, 0, 0, .12),
    0 32px 64px rgba(0, 0, 0, .08);
  overflow: visible;
  padding: 24px;
}

.sam-stop .map-canvas {
  background: #F0EEE8;
  height: 460px;
  overflow: hidden;
  width: 100%;
}

.sam-stop .map-legend {
  color: var(--ink-soft);
  font-size: .9rem;
  margin-top: 16px;
  text-align: center;
}

/* the transport badge that sits halfway along a leg */
.sam-stop-marker-transport {
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  color: var(--terracotta);
  display: flex;
  height: 26px;
  justify-content: center;
  pointer-events: none;
  width: 26px;
}

.sam-stop-marker-transport svg {
  height: 14px;
  width: 14px;
}

.sam-stop-marker-place {
  cursor: pointer;
  line-height: 0;
}

/*
 * Beige, not the Mapbox default white. The light-v11 style is almost white
 * itself, so a white popup on it has no edge and reads as floating text.
 */
.sam-stop .mapboxgl-popup-content {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  color: var(--ink);
  font-family: "Mulish", sans-serif;
  font-size: .85rem;
  padding: 8px 12px;
}

/*
 * The tip is a CSS triangle: three borders transparent, one carrying the
 * colour. Which border that is depends on which side the popup opened, so
 * every anchor needs its own override or the tip stays white.
 */
.sam-stop .mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.sam-stop .mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.sam-stop .mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
  border-bottom-color: var(--paper);
}

.sam-stop .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.sam-stop .mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.sam-stop .mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
  border-top-color: var(--paper);
}

.sam-stop .mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  border-right-color: var(--paper);
}

.sam-stop .mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
  border-left-color: var(--paper);
}

/* ---------- gallery ---------- */

.sam-stop .gallery {
  padding: 62px 0;
}

.sam-stop .grid {
  display: grid;
  gap: 18px;
  grid-auto-rows: 300px;
  grid-template-columns: repeat(6, 1fr);
}

.sam-stop .grid figure {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.sam-stop .grid img {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sam-stop .grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(30, 26, 18, .72));
  color: #FBF6EC;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  padding: 18px 18px 16px;
  z-index: 2;
}

/* one image: full bleed and taller */
.sam-stop .grid.g-1 {
  grid-auto-rows: 460px;
}

.sam-stop .grid.g-1 figure {
  grid-column: span 6;
}

/* two: side by side */
.sam-stop .grid.g-2 figure {
  grid-column: span 3;
}

/* three: across */
.sam-stop .grid.g-3 figure {
  grid-column: span 2;
}

/* four: two by two */
.sam-stop .grid.g-4 figure {
  grid-column: span 3;
}

/* five or more: three across, first one wide so the row never looks orphaned */
.sam-stop .grid.g-many figure {
  grid-column: span 2;
}

.sam-stop .grid.g-many figure:first-child {
  grid-column: span 4;
}

/* ---------- landmarks ---------- */

.sam-stop .landmarks {
  background: var(--paper);
  padding: 84px 0;
}

/*
 * Six columns rather than three, so a row of three and a row of two can both
 * fill the width. On a three column grid five landmarks leave a hole where the
 * sixth card would be, which reads as a mistake rather than as a layout.
 */
.sam-stop .lm-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(6, 1fr);
}

.sam-stop .lm-grid .lm {
  grid-column: span 2;
}

/*
 * A single landmark is a feature row, not a lonely card. The card is the full
 * width and its picture floats inside it, because the card's children are a
 * flat list and a two column grid would drop the number, the heading and each
 * paragraph into a cell of its own.
 */
.sam-stop .lm-grid.lm-1 {
  grid-template-columns: 1fr;
}

.sam-stop .lm-grid.lm-1 .lm {
  grid-column: auto;
}

.sam-stop .lm-grid.lm-1 .lm::after {
  clear: both;
  content: "";
  display: table;
}

/* two across, and four as a two by two rather than three and an orphan */
.sam-stop .lm-grid.lm-2 .lm,
.sam-stop .lm-grid.lm-4 .lm {
  grid-column: span 3;
}

/* five is three across, then the last two share the row */
.sam-stop .lm-grid.lm-5 .lm:nth-child(n+4) {
  grid-column: span 3;
}

.sam-stop .lm {
  position: relative;
}

.sam-stop .lm .img {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  overflow: hidden;
}

.sam-stop .lm-grid.lm-1 .lm .img {
  aspect-ratio: 5 / 4;
  float: left;
  margin: 6px 44px 22px 0;
  width: 48%;
}

.sam-stop .lm .img img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sam-stop .lm .num {
  color: var(--terracotta-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .2em;
}

.sam-stop .lm h3 {
  font-size: 1.55rem;
  margin: 2px 0 .3em;
}

.sam-stop .lm .type {
  color: var(--olive);
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: .6em;
  text-transform: uppercase;
}

.sam-stop .lm p {
  color: var(--ink-soft);
  font-size: .96rem;
}

.sam-stop .lm .tip {
  border-top: 1px dotted var(--line);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  margin-top: 14px;
  padding-top: 12px;
}

/* a landmark with no photo still needs weight */
.sam-stop .lm.no-img {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 28px 26px;
}

/* ---------- video ---------- */

.sam-stop .video {
  padding: 84px 0 42px;
}

.sam-stop .video-frame {
    aspect-ratio: 16/9;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0 auto;
  padding-top: 56.25%;
}

.sam-stop .video-frame iframe {
  position: absolute;
  inset: 0;
  border: 0;
  height: 100%;
  width: 100%;
}

.sam-stop .video-note {
  color: var(--ink-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  margin: 22px auto 0;
  max-width: 640px;
  text-align: center;
}

/* ---------- quote from Sam ---------- */

/*
 * Its own paper band. On cream the quote sat in the same field as the article
 * above it, centred while the article is left aligned, which read as a stray
 * paragraph rather than as a section.
 */
.sam-stop .says {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 76px 0;
}

.sam-stop .says blockquote {
  position: relative;
  border-left: 2px solid var(--terracotta);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 760px;
  padding-left: 28px;
}

.sam-stop .says cite {
  color: var(--ink-soft);
  display: block;
  font-family: "Mulish", sans-serif;
  font-size: .74rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .24em;
  margin-top: 18px;
  text-transform: uppercase;
}

/* ---------- breadcrumb ---------- */

/*
 * Yoast prints its own markup here, so the selectors have to be its ones:
 * a span per crumb, an a per link, and .breadcrumb_last on the current page.
 */
.sam-stop .crumbs {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .82rem;
  letter-spacing: .04em;
  line-height: 1.6;
  padding: 14px 0;
}

.sam-stop .crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}

.sam-stop .crumbs a:hover {
  color: var(--terracotta);
}

.sam-stop .crumbs .breadcrumb_last {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- enquiry ---------- */

/*
 * Enquire in the menu is an anchor to the form further down the page, so the
 * jump is animated. This stylesheet only loads on a stop and on the stop
 * index, so no other page on the site is affected.
 */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.sam-stop .enquire {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 15, 10, .82), rgba(18, 15, 10, .92)), linear-gradient(135deg, #6b4a35, #8f3f1e 55%, #5a3a26);
  color: #FBF6EC;
  padding: 92px 0;
  /* the menu is sticky and 80px tall, so the section stops just under it */
  scroll-margin-top: 80px;
}

.sam-stop .enquire-img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  width: 100%;
  z-index: 0;
}

.sam-stop .enquire .inner {
  position: relative;
  margin: 0 auto;
  max-width: 780px;
  z-index: 2;
}

.sam-stop .enquire .eyebrow {
  color: #F0D9A8;
  display: block;
  margin-bottom: 12px;
  text-align: center;
}

.sam-stop .enquire h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: .3em;
  text-align: center;
}

.sam-stop .enquire h2 em {
  color: #F0D9A8;
  font-style: italic;
}

.sam-stop .enquire .lede {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-style: italic;
  margin: 0 auto 38px;
  max-width: 56ch;
  opacity: .92;
  text-align: center;
}

.sam-stop .enquire label {
  color: #F0D9A8;
  display: block;
  font-size: .9rem;
  margin-bottom: 14px;
}

.sam-stop .enquire input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.sam-stop .enquire select,
.sam-stop .enquire textarea {
  background: rgba(251, 246, 236, .96);
  border: 1px solid rgba(240, 217, 168, .4);
  color: var(--ink);
  font-family: "Mulish", sans-serif;
  font-size: .95rem;
  margin-top: 5px;
  padding: 12px 14px;
  width: 100%;
}

.sam-stop .enquire textarea {
  min-height: 96px;
  resize: vertical;
}

.sam-stop .enquire input[type=submit],
.sam-stop .enquire .wpcf7-submit {
  background: #FBF6EC;
  border: 1px solid #FBF6EC;
  color: var(--terracotta-deep);
  cursor: pointer;
  font-family: "Mulish", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  margin-top: 8px;
  padding: 16px 40px;
  text-transform: uppercase;
  transition: .2s ease;
  width: auto;
}

.sam-stop .enquire input[type=submit]:hover,
.sam-stop .enquire .wpcf7-submit:hover {
  background: transparent;
  color: #FBF6EC;
}

/*
 * The enquiry form is a Contact Form 7 form, kept in CF7 itself rather than in
 * this plugin. Its markup carries both UIkit classes, for ordinary YOOtheme
 * pages, and the sw- classes below, for here, since UIkit is dequeued on a
 * stop. Everything from here down is the sw- half.
 */

/*
 * The form sits on an opaque panel rather than straight on the hero image.
 * At .4 opacity the photo still ran behind every field and label, and a
 * photograph behind small text is unreadable whatever the overlay does.
 * The heading and the lede stay on the image, where the type is large enough
 * to carry it.
 */
.sam-stop .enquire .form-panel {
  background: #17120C;
  border: 1px solid rgba(240, 217, 168, .22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  margin-top: 6px;
  padding: 42px 44px 38px;
}

.sam-stop .enquire .sw-label {
  color: #F0D9A8;
  display: block;
  font-size: .9rem;
  margin-bottom: 16px;
}

.sam-stop .enquire .sw-req {
  color: #E09A82;
  font-size: 1rem;
}

.sam-stop .enquire .sw-hint {
  font-family: "Cormorant Garamond", serif;
  font-size: .95rem;
  font-style: italic;
  margin-left: 6px;
  opacity: .75;
  text-transform: none;
}

/* a fieldset has a border and padding of its own that nothing here wants */
.sam-stop .enquire .sw-fieldset {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.sam-stop .enquire .sw-fieldset legend {
  padding: 0;
}

/* CF7 wraps every checkbox and radio in its own span, one per answer */
.sam-stop .enquire .wpcf7-list-item {
  display: block;
  margin: 0 0 6px;
}

.sam-stop .enquire .wpcf7-list-item label {
  align-items: baseline;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  font-size: .95rem;
  gap: 10px;
  margin: 0;
}

.sam-stop .enquire .wpcf7-list-item input {
  accent-color: #F0D9A8;
  flex: none;
  margin: 0;
}

.sam-stop .enquire .sw-actions {
  margin: 4px 0 0;
}

/* CF7's own messages, which arrive unstyled once UIkit is gone */
.sam-stop .enquire .wpcf7-not-valid-tip {
  color: #F3B5A0;
  font-size: .82rem;
  margin-top: 5px;
}

.sam-stop .enquire .wpcf7-response-output {
  border: 1px solid rgba(240, 217, 168, .5);
  font-size: .92rem;
  margin: 24px 0 0;
  padding: 14px 18px;
  text-align: center;
}

/* CF7 lays its columns out with UIkit, which is not loaded here */
@media (min-width: 600px) {
  .sam-stop .enquire [uk-grid],
  .sam-stop .enquire .sw-form,
  .sam-stop .enquire .sw-pair {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  .sam-stop .enquire [uk-grid] > *,
  .sam-stop .enquire .sw-form > *,
  .sam-stop .enquire .sw-pair > * {
    flex: 1 1 100%;
    min-width: 0;
  }

  .sam-stop .enquire [uk-grid] > .uk-width-1-2\@s,
  .sam-stop .enquire .sw-form > .sw-col,
  .sam-stop .enquire .sw-pair > * {
    flex: 1 1 calc(50% - 12px);
  }
}

/* ---------- footer ---------- */

.sam-stop-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: "Mulish", sans-serif;
  font-size: .95rem;
  line-height: 1.7;
  padding: 72px 0 0;
}

.sam-stop-footer .sf-grid {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.sam-stop-footer .sf-logo {
  display: block;
  height: 90px;
  margin-bottom: 18px;
  width: auto;
}

.sam-stop-footer .sf-brand p {
  max-width: 44ch;
}

/*
 * The Ballan office map. The id and the height match the theme footer, so the
 * r24k-cartier-map init script finds its container and builds the same map it
 * builds everywhere else on the site.
 */
.sam-stop-footer #footer-map {
  height: 290px;
  margin-top: 24px;
  width: 100%;
}

.sam-stop-footer h4 {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 .35em;
}

.sam-stop-footer .sf-col p {
  margin-bottom: 1.5em;
}

.sam-stop-footer .sf-col p:last-child {
  margin-bottom: 0;
}

.sam-stop-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.sam-stop-footer a:hover {
  color: var(--terracotta);
}

.sam-stop-footer .sf-badges {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
  margin-top: 56px;
  padding: 46px 28px;
}

.sam-stop-footer .sf-badges img {
  height: 60px;
  opacity: .92;
  width: auto;
}

.sam-stop-footer .sf-bar {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.sam-stop-footer .sf-bar-in {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding: 22px 0;
}

.sam-stop-footer .sf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.sam-stop-footer .sf-nav a,
.sam-stop-footer .sf-copy {
  font-size: .82rem;
  letter-spacing: .04em;
}

/* ---------- accessibility ---------- */

.sam-stop a:focus-visible,
.sam-stop button:focus-visible,
.sam-stop input:focus-visible,
.sam-stop select:focus-visible,
.sam-stop textarea:focus-visible {
  border-radius: 1px;
  outline: 3px solid var(--terracotta-deep);
  outline-offset: 2px;
}

.sam-stop .hero a:focus-visible,
.sam-stop .enquire a:focus-visible {
  outline-color: #F0D9A8;
}

.sam-stop .skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #FBF6EC;
  font-weight: 600;
  padding: 12px 20px;
  text-decoration: none;
  z-index: 1100;
}

.sam-stop .skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- responsive ---------- */

/*
 * The shortened labels, the logo and the Enquire button measure a little over
 * 900px on one line, so below that the menu drops to its own row and scrolls
 * sideways rather than stacking seven lines tall. No hamburger, because that
 * needs JavaScript and this template ships none.
 */
@media (max-width: 920px) {
  .sam-stop-nav .nav-in {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 14px 0 0;
  }

  .sam-stop-nav .nav-menu {
    order: 3;
    overflow-x: auto;
    width: 100%;
  }

  .sam-stop-nav .nav-menu ul {
    flex-wrap: nowrap;
    padding: 14px 0 12px;
  }
}

@media (max-width: 880px) {
  .sam-stop-nav .nav-logo img {
    height: 42px;
  }

  .sam-stop-nav .nav-cta {
    font-size: .64rem;
    padding: 10px 16px;
  }

  /* too narrow to wrap around anything, so the card goes back above the copy */
  .sam-stop .glance {
    float: none;
    margin: 0 0 38px;
    width: auto;
  }

  .sam-stop .grid {
    grid-auto-rows: 260px;
    grid-template-columns: repeat(4, 1fr);
  }

  .sam-stop .grid.g-1 figure,
  .sam-stop .grid.g-2 figure,
  .sam-stop .grid.g-3 figure,
  .sam-stop .grid.g-4 figure,
  .sam-stop .grid.g-many figure,
  .sam-stop .grid.g-many figure:first-child {
    grid-column: span 2;
  }

  .sam-stop .grid.g-1 {
    grid-auto-rows: 340px;
  }

  .sam-stop .grid.g-1 figure {
    grid-column: span 4;
  }

  .sam-stop .map-frame {
    padding: 14px;
  }

  .sam-stop .map-canvas {
    height: 300px;
  }

  /* everything goes two across, except the single feature card */
  .sam-stop .lm-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sam-stop .lm-grid .lm,
  .sam-stop .lm-grid.lm-2 .lm,
  .sam-stop .lm-grid.lm-4 .lm,
  .sam-stop .lm-grid.lm-5 .lm:nth-child(n+4) {
    grid-column: auto;
  }

  .sam-stop-footer .sf-grid {
    gap: 36px;
    grid-template-columns: 1fr 1fr;
  }

  .sam-stop-footer .sf-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .sam-stop .wrap {
    padding: 0 20px;
  }

  .sam-stop .hero {
    min-height: 80vh;
  }

  .sam-stop .grid {
    grid-auto-rows: 220px;
    grid-template-columns: repeat(2, 1fr);
  }

  .sam-stop .grid figure,
  .sam-stop .grid.g-many figure:first-child {
    grid-column: span 2;
  }

  .sam-stop .lm-grid {
    grid-template-columns: 1fr;
  }

  .sam-stop .lm-grid .lm {
    grid-column: auto;
  }

  /* no room to wrap text beside a picture */
  .sam-stop .lm-grid.lm-1 .lm .img {
    float: none;
    margin: 0 0 16px;
    width: auto;
  }

  .sam-stop-footer .sf-grid {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .sam-stop-footer .sf-bar-in {
    justify-content: center;
    text-align: center;
  }

  .sam-stop-footer .sf-badges {
    gap: 22px;
    padding: 38px 20px;
  }

  .sam-stop-footer .sf-badges img {
    height: 46px;
  }
}

/* ======================================================================
 * THE INDEX at /travel-inspiration/
 *
 * Kept as one block at the foot of the file, its own breakpoints included,
 * rather than threaded through the four media queries above: everything the
 * archive adds is in one place, and nothing above it changes.
 *
 * The index reuses .hero, .sec-head, .stop-map, the nav and the footer as they
 * are. Only the shorter hero, the card grid and the pager are new.
 * ====================================================================== */

.sam-index .hero {
  min-height: 46vh;
}

/* The intro is a paragraph, not a one-line subtitle. */
.sam-index .hero .sub {
  max-width: 62ch;
}

.sam-index .stop-map {
  padding: 76px 0 20px;
}

/* Taller than a stop page map: this one carries the whole trip, not one town. */
.sam-index .map-canvas {
  height: 680px;
}

.sam-index .stop-list {
  padding: 76px 0 96px;
}

/* ---------- the popup on the index map ---------- */

/*
 * One pin can carry several stops, because a trip this long passes through the
 * same city more than once.
 */
.sam-map-pop strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.sam-map-pop a {
  color: var(--terracotta-deep);
  display: block;
  font-size: .82rem;
  line-height: 1.5;
  text-decoration: none;
}

.sam-map-pop a:hover {
  text-decoration: underline;
}

.sam-map-pop em {
  color: var(--ink-soft);
  font-size: .82rem;
}

/* A place with nothing to read yet does not invite a click. */
.sam-stop-marker-place.is-waiting {
  cursor: default;
}

/* Only an administrator ever sees this, so it looks like a notice, not design. */
.sam-index .map-admin-note {
  background: #FFF8F5;
  border: 2px dashed #C99;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.6;
  margin: 40px 0;
  padding: 18px 20px;
}

/* ---------- the cards ---------- */

.sam-index .stop-grid {
  display: grid;
  gap: 40px 34px;
  grid-template-columns: repeat(3, 1fr);
}

.sam-index .stop-card {
  color: inherit;
  display: block;
  text-decoration: none;
}

.sam-index .sc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  overflow: hidden;
}

.sam-index .sc-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  width: 100%;
}

.sam-index .stop-card:hover .sc-media img {
  transform: scale(1.04);
}

.sam-index .sc-day {
  position: absolute;
  left: 0;
  top: 16px;
  background: var(--terracotta);
  color: #FBF6EC;
  font-family: "Mulish", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: 7px 14px;
  text-transform: uppercase;
}

.sam-index .sc-body .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.sam-index .sc-body h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.sam-index .stop-card:hover .sc-body h3 {
  color: var(--terracotta-deep);
}

.sam-index .sc-body p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.sam-index .sc-more {
  color: var(--terracotta-deep);
  font-family: "Mulish", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- pagination ---------- */

/*
 * paginate_links emits a flat run of a.page-numbers and span.page-numbers, so
 * the current page is styled by the span and the rest by the anchors.
 */
.sam-index .pager {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 66px;
  padding-top: 40px;
}

.sam-index .pager .page-numbers {
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "Mulish", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  min-width: 44px;
  padding: 11px 14px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: .2s ease;
}

.sam-index .pager a.page-numbers:hover {
  background: var(--paper);
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}

.sam-index .pager .page-numbers.current {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FBF6EC;
}

.sam-index .pager .page-numbers.dots {
  border-color: transparent;
}

.sam-index .stop-empty {
  color: var(--ink-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  text-align: center;
}

@media (max-width: 920px) {
  .sam-index .map-canvas {
    height: 520px;
  }

  .sam-index .stop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .sam-index .map-canvas {
    height: 380px;
  }

  .sam-index .stop-grid {
    gap: 34px;
    grid-template-columns: 1fr;
  }

  .sam-index .stop-list {
    padding: 54px 0 72px;
  }
}
