/*
Theme Name:  Three Black Sheep
Theme URI:   https://threeblacksheep.com
Author:      Three Black Sheep
Author URI:  https://threeblacksheep.com
Description: A travel blog theme for families who wander differently. Pack Light. Raise Explorers. Live Adventure. Built for itineraries, stories, galleries and long-form content. WCAG AA accessible, mobile-first, and easy to manage.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: three-black-sheep
Tags:        blog, travel, carry-on, family, custom-menu, custom-logo, featured-images, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-linen:        #F7F4EF;
  --color-linen-dark:   #EDE8DE;
  --color-ink:          #1E1E1C;
  --color-charcoal:     #3C3C3A;
  --color-stone:        #7A7872;
  --color-border:       rgba(30, 30, 28, 0.10);
  --color-sage:         #5A7A5C;
  --color-sage-light:   #EBF1EB;
  --color-rust:         #B85C38;
  --color-rust-light:   #F9EDE7;
  --color-white:        #FFFFFF;

  --font-serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm:     4px;
  --radius-md:     6px;
  --radius-lg:     8px;

  --shadow-card:  0 1px 3px rgba(30,30,28,0.06);

  --max-width:    1160px;
  --content-width: 740px;
  --sidebar-width: 300px;
	:root {
  /* ...existing tokens... */
  --color-sage-text: #4a6a4c; /* AA-safe sage for text on light backgrounds */
}

  /* Global Button Design Tokens */
  --btn-padding:        0.75rem 1.5rem;
  --btn-font-size:      0.8125rem;
  --btn-letter-spacing: 0.03em;
  --btn-radius:         var(--radius-sm);
  --btn-transition:     background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-ink);
  background-color: var(--color-linen);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-sage-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-rust); }
a:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: normal;
  line-height: 1.2;
  color: var(--color-ink);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); } /* 18–22px */
h5 { font-size: clamp(1rem, 1.6vw, 1.1875rem); }  /* 16–19px */
h6 {
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--color-ink);
  border-left: 2px solid var(--color-sage);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 2rem 0;
}
h1 strong, h1 b, h2 strong, h2 b, h3 strong, h3 b,
h4 strong, h4 b, h5 strong, h5 b, h6 strong, h6 b {
  font-weight: inherit;
}
/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.container--narrow { max-width: var(--content-width); }

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-ink);
  color: var(--color-linen);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   TAGLINE STRIP
   ============================================================ */
.tagline-strip {
  background: var(--color-ink);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.tagline-strip__item {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.75);
}
.tagline-strip__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-sage);
  flex-shrink: 0;
}

/* ============================================================
   SITE HEADER & NAV
   ============================================================ */
.site-header {
  background: var(--color-linen);
  border-bottom: 0.5px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-ink);
}
.site-logo:hover { color: var(--color-ink); }
.site-logo__dots {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}
.site-logo__dot {
  border-radius: 50%;
  background: var(--color-ink);
  flex-shrink: 0;
}
.site-logo__dot--sm { width: 8px; height: 8px; }
.site-logo__dot--md { width: 10px; height: 10px; }
.site-logo__dot--lg { width: 12px; height: 12px; }
.site-logo__text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
}
.site-logo__text em { font-style: italic; }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.primary-nav a {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
  text-decoration: none;
  transition: color 0.15s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--color-ink); }

/* Mobile menu toggle */
.site-header button.nav-toggle,
.site-header .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  width: 32px !important;
  height: 32px !important;
  color: var(--color-ink);
}

.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 1.25px;
  background: currentColor;
  margin: 1.75px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   HERO — HOME
   ============================================================ */
.hero {
  background: var(--color-linen-dark);
  padding: 5rem 2.5rem 5.5rem;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-sage-light);
  color: var(--color-sage);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3125rem 0.875rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero__eyebrow-dots { display: flex; gap: 3px; align-items: center; }
.hero__eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-sage); }

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-ink);
  max-width: 560px;
  margin: 0 auto 0.875rem;
}
.hero__title em { font-style: italic; color: var(--color-sage); }

.hero__tagline {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--color-charcoal);
  margin-bottom: 0.625rem;
}
.hero__tagline .sep { color: var(--color-sage); margin: 0 0.375rem; font-style: normal; }

.hero__descriptor {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-stone);
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}
.hero__descriptor em {
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-rust);
}

.hero__description {
  font-size: 0.9375rem;
  color: var(--color-stone);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 2rem;
}

.hero__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__images {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 0.75rem;
  margin-top: 3rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  height: 220px;
}
.hero__image { border-radius: var(--radius-md); overflow: visible; }
.hero__image:nth-child(1),
.hero__image:nth-child(3) { margin-top: 1.5rem; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   BUTTONS
   ============================================================ */
/* Core Base Button Style — Forces consistency across HTML elements and blocks */
.btn,
button:not(.tbs-filter-btn):not(.nav-toggle),
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: var(--btn-font-size);
  font-weight: 500;
  letter-spacing: var(--btn-letter-spacing);
  text-decoration: none;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  cursor: pointer;
  border: 1px solid transparent; /* Prevents layout shifting when shifting styles */
  transition: var(--btn-transition);
  line-height: 1;
}

/* Master Accessibility Focus States */
.btn:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
}

/* Primary / Solid Ink Variant (Default theme buttons & WP block buttons) */
.btn--primary,
button:not(.btn--ghost):not(.btn--sage):not(.tbs-filter-btn):not(.nav-toggle):not(.social-share__btn),
input[type="submit"],
input[type="button"],
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--color-ink) !important;
  color: var(--color-linen) !important;
}

.btn--primary:hover,
button:not(.btn--ghost):not(.btn--sage):not(.tbs-filter-btn):not(.nav-toggle):not(.social-share__btn):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--color-charcoal) !important;
  color: var(--color-linen) !important;
}

/* Ghost / Bordered Variant */
.btn--ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--color-ink) !important;
  border-color: var(--color-border) !important;
}

.btn--ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--color-linen-dark) !important;
  color: var(--color-ink) !important;
  border-color: var(--color-charcoal) !important;
}

/* Sage Variant */
.btn--sage {
  background: var(--color-sage) !important;
  color: white !important;
}

.btn--sage:hover {
  background: #4a6a4c !important;
  color: white !important;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--color-ink);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stats-strip__stat { text-align: center; }
.stats-strip__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-linen);
  line-height: 1.2;
}
.stats-strip__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.5);
  margin-top: 0.25rem;
}
.stats-strip__divider {
  width: 0.5px;
  height: 28px;
  background: rgba(247, 244, 239, 0.15);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 2rem; }
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage-text);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
}

.section-title a {
  color: inherit;
  text-decoration: none;
}

.section-title a:hover {
  color: var(--color-sage);
  text-decoration: none;
}
.section-sub {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-stone);
  line-height: 1.6;
}

/* ============================================================
   CARDS — BLOG POSTS
   ============================================================ */
.cards-section { padding: 3.5rem 2.5rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(30,30,28,0.09);
  transform: translateY(-2px);
}

.card__thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card__thumbnail img { transform: scale(1.03); }

.card__body { padding: 1rem 1.125rem 1.25rem; }
.card__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.375rem;
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-decoration: none;
}
.card__title:hover { color: var(--color-sage); }
.card__meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-stone);
}

/* ============================================================
   MANIFESTO BAND
   ============================================================ */
.manifesto {
  background: var(--color-sage);
  padding: 3rem 2.5rem;
  text-align: center;
}
.manifesto__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-style: italic;
  color: white;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}
.manifesto__cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ============================================================
   ITINERARY TEMPLATE
   ============================================================ */
.itinerary-header {
  background: var(--color-linen-dark);
  padding: 3rem 2.5rem 0;
}
.itinerary-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: end;
}
.itinerary-header__meta { padding-bottom: 1.25rem; }
.itinerary-header__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.625rem;
  line-height: 1.2;
}
.itinerary-header__desc { font-size: 0.875rem; color: var(--color-stone); line-height: 1.7; }
.itinerary-header__image {
  height: 200px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
.itinerary-header__image img { width: 100%; height: 100%; object-fit: cover; }

.itinerary-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

.itinerary-body {
  padding: 2rem 2.5rem 3.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.itinerary-sidebar { position: sticky; top: 80px; align-self: start; }
.itinerary-sidebar__title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 0.75rem;
}

.day-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.875rem;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  margin-bottom: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}
.day-btn:hover,
.day-btn[aria-selected="true"] {
  border-color: var(--color-sage);
  background: var(--color-sage-light);
}
.day-btn__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-sage-light);
  color: var(--color-sage);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.day-btn[aria-selected="true"] .day-btn__circle {
  background: var(--color-sage);
  color: white;
}
.day-btn__label h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 1px;
}
.day-btn__label p { font-family: var(--font-sans); font-size: 0.6875rem; color: var(--color-stone); }

.itinerary-content {
  background: white;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--color-border);
  padding: 1.75rem 2rem;
}
.itinerary-content__day-title { font-size: 1.375rem; margin-bottom: 0.375rem; }
.itinerary-content__day-sub {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-sage);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.tip-box {
  background: var(--color-sage-light);
  border-left: 2px solid var(--color-sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1rem;
  margin: 1.25rem 0;
}
.tip-box p {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-sage-text);  margin-bottom: 0;
  line-height: 1.6;
}
.tip-box strong { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.activity-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.activity-tag {
  background: var(--color-linen-dark);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
}

/* ============================================================
   CHIPS / BADGES
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.3125rem 0.75rem;
  border-radius: 20px;
}
.chip--sage { background: var(--color-sage-light); color: var(--color-sage); }
.chip--rust { background: var(--color-rust-light); color: var(--color-rust); }
.chip--ink { background: var(--color-linen-dark); color: var(--color-charcoal); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: var(--color-linen-dark);
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.about-hero__photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__blockquote { font-size: 1.5rem; margin-bottom: 1.75rem; }
.about-hero__text p { font-family: var(--font-sans); font-size: 0.900rem; color: var(--color-stone); margin-bottom: 0.875rem; }
.about-hero__text .wander-line { font-style: italic; color: var(--color-rust); font-family: var(--font-serif); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  gap: 1.30rem;
  padding: 3rem 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
.value-card {
  background: white;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
}
.value-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}
.value-card__icon--sage { background: var(--color-sage-light); }
.value-card__icon--rust { background: var(--color-rust-light); }
.value-card__icon--dark { background: var(--color-linen-dark); }
.value-card h3 { font-size: 1rem; font-weight: 400; color: var(--color-ink); margin-bottom: 0.5rem; }
.value-card p { font-family: var(--font-sans); font-size: 0.8125rem; color: var(--color-stone); line-height: 1.7; margin-bottom: 0; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { padding: 3rem 2.5rem 3.5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.625rem;
}
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header {
  background: var(--color-linen-dark);
  padding: 3.5rem 2.5rem 2.5rem;
  text-align: center;
}
.post-header__category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1rem;
}
.post-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 660px;
  margin: 0 auto 1rem;
  line-height: 1.15;
}
.post-header__meta { font-family: var(--font-sans); font-size: 0.8125rem; color: var(--color-stone); }
.post-header__meta a { color: var(--color-stone); }

.post-featured-image {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.post-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.post-body {
  max-width: var(--content-width);
  margin: 2.5rem auto;
  padding: 0 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--color-ink);
}
.post-body h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 2.5rem 0 1rem; }
.post-body h2, .post-body h3 { margin: 2rem 0 0.80rem; }
.post-body h4, .post-body h5 { margin: 1.5rem 0 0.5rem; }
.post-body h6 { margin: 1.25rem 0 0.5rem; }
.post-body p { margin-bottom: 1.5rem; }
.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.5rem; }
.post-body li { margin-bottom: 0.375rem; }
.post-body img { border-radius: var(--radius-md); margin: 2rem 0; }
.post-body a { color: var(--color-sage); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-sidebar-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 3rem;
}
.widget { margin-bottom: 2rem; }
.widget-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  border-bottom: 0.5px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-ink);
  padding: 2rem 2.5rem;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 3px; }
.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-linen);
}
.footer-brand__name em { font-style: italic; color: rgba(247,244,239,0.5); }
.footer-brand__descriptor {
  font-family: var(--font-serif);
  font-size: 0.6875rem;
  font-style: italic;
  color: rgba(247,244,239,0.45);
}
.footer-brand__tagline {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.3);
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(247,244,239,0.45);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(247,244,239,0.8); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(247,244,239,0.1);
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: rgba(247,244,239,0.3);
  text-align: center;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--color-stone);
  border: 0.5px solid var(--color-border);
  transition: background 0.15s, color 0.15s;
}
.page-numbers.current { background: var(--color-ink); color: var(--color-linen); border-color: var(--color-ink); }
.page-numbers:hover:not(.current) { background: var(--color-linen-dark); color: var(--color-ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__images { grid-template-columns: 1fr 1fr 1fr; height: 160px; }
  .hero__title { font-size: 2rem; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__photo { aspect-ratio: 16/9; max-height: 320px; }
  .itinerary-header__inner { grid-template-columns: 1fr; }
  .itinerary-header__image { display: none; }
  .itinerary-body { grid-template-columns: 1fr; }
  .itinerary-sidebar { position: static; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: flex-start;
  }
  .site-logo { margin-right: auto; }
  .site-search { order: 3; }
  .site-header button.nav-toggle,
  .site-header .nav-toggle {
    display: flex;
    flex-direction: column;
    order: 2;
    margin-right: 0.75rem;
  }
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-linen);
    padding: 1rem 1.5rem;
    border-bottom: 0.5px solid var(--color-border);
    gap: 1rem;
    z-index: 99;
  }
  .hero { padding: 3rem 1.25rem 3.5rem; }
  .hero__images { height: 120px; gap: 0.5rem; }
  .hero__title { font-size: 1.875rem; }
  .cards-section, .itinerary-body { padding: 2rem 1.25rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item--wide { grid-column: span 2; }
  .stats-strip { gap: 1.5rem; }
  .stats-strip__divider { display: none; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .tagline-strip { padding: 0.5rem 1rem; }
}

/* ============================================================
   ACCESSIBILITY UTILITIES
   ============================================================ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   BREADCRUMBS
   Single-line horizontal trail with separator chevrons.
   ============================================================ */
.breadcrumbs {
  padding: .875rem var(--space-md);
  background: transparent;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--color-stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.breadcrumbs__item a {
  color: var(--color-stone);
  text-decoration: none;
  transition: color .2s ease;
}

.breadcrumbs__item a:hover {
  color: var(--color-sage);
  text-decoration: underline;
}

/* Separator — rendered as a › chevron via CSS pseudo-element */
.breadcrumbs__item--separator {
  width: 1.25rem;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-stone);
  opacity: .5;
}

.breadcrumbs__item--separator::before {
  content: '›';
  font-size: .9rem;
  line-height: 1;
}

/* Current page (last crumb) */
.breadcrumbs__item[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}

@media (max-width: 600px) {
  .breadcrumbs__item[aria-current="page"] {
    max-width: 14ch;
  }
}

/* ============================================================
   ITINERARY FILTER BUTTONS
   ============================================================ */
.tbs-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  border: 1px solid transparent !important;
  background: var(--color-linen-dark) !important;
  color: var(--color-ink) !important;
  padding: 0.5rem 1.25rem !important;
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  border-radius: 100px !important;
  letter-spacing: normal !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: background .2s, color .2s, border-color .2s;
}

.tbs-filter-btn:hover:not(.tbs-filter-btn--active) {
  background: var(--color-border) !important;
  color: var(--color-ink) !important;
}

.tbs-filter-btn--active {
  background: var(--color-sage) !important;
  color: white !important;
}

/* ============================================================
   LOAD MORE SYSTEM — CARDS ADJUSTMENT
   ============================================================ */
#post-wrapper .card:nth-child(n+10) {
    display: none;
}

/* ============================================================
   BREADCRUMBS BUTTON RESET
   ============================================================ */
.breadcrumbs__item a,
.breadcrumbs__item--separator {
  display: inline !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--color-stone) !important;
  border: none !important;
  border-radius: 0 !important;
  letter-spacing: normal !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.breadcrumbs__item a:hover {
  color: var(--color-sage) !important;
  background: transparent !important;
  text-decoration: underline !important;
}

/* DELETE OR REMOVE THIS WHOLE BLOCK TO RESTORE THEM: */
.wp-block-buttons .wp-block-button__link,
.itineraries-filter-btn,
.tag-cloud-link,
.chip {
  border: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.site-search-link {
    display: flex;
    align-items: center;
    color: inherit;
    margin-left: 1rem;
}
.site-search-link:hover {
    opacity: 0.7;
}

/* ============================================================
   SOCIAL SHARE
   ============================================================ */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}
.social-share__label {
    font-weight: 600;
    margin-right: 6px;
    color: var(--color-ink);
}
.social-share .social-share__btn {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--color-linen-dark) !important;
    color: var(--color-sage) !important;
    cursor: pointer !important;
}
.social-share .social-share__btn svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    pointer-events: none !important;
}
.social-share .social-share__btn.social-share__copy {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--color-linen-dark) !important;
    color: var(--color-sage) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.social-share .social-share__btn.social-share__copy svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    pointer-events: none !important;
    color: var(--color-sage) !important;
}
.social-share .social-share__btn:hover,
.social-share .social-share__btn:focus,
.social-share .social-share__btn:active {
    background: var(--color-ink) !important;
    color: var(--color-linen) !important;
}
.social-share .social-share__btn.social-share__copy:hover,
.social-share .social-share__btn.social-share__copy:focus,
.social-share .social-share__btn.social-share__copy:active {
    background: var(--color-ink) !important;
    color: var(--color-linen) !important;
}

/* ============================================================
   IMAGE CAPTIONS
   ============================================================ */
.post-body figcaption,
.wp-caption-text,
.gallery-caption {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--color-stone);
    text-align: left;
    line-height: 1.4;
    margin-top: 0.25rem;
    padding: 0;
}

/* ============================================================
   ITINERARIES LISTING
   Loaded only on the Itineraries page and /itineraries/ archive.
   Uses the design tokens from style.css.
   ============================================================ */

.tbs-itins { padding-top: 2.5rem; }

/* ---------- Region tiles ---------- */
.tbs-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.tbs-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-ink);
  background-size: cover;
  background-position: center;
  color: var(--color-linen);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
}
.tbs-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,28,0.72) 0%, rgba(30,30,28,0.18) 55%, rgba(30,30,28,0) 100%);
}
.tbs-tile > * { position: relative; }
.tbs-tile:hover {
  color: var(--color-linen);
  box-shadow: 0 4px 16px rgba(30,30,28,0.09);
  transform: translateY(-2px);
}
.tbs-tile.is-empty { opacity: 0.45; }
.tbs-tile__name {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-linen);
}
.tbs-tile__count {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.8);
  margin-top: 0.375rem;
}

/* ---------- Sticky filter bar ---------- */
.tbs-filterbar {
  position: sticky;
  top: 64px; /* height of .site-header */
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem 1.5rem;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  background: var(--color-linen);
  border-bottom: 0.5px solid var(--color-border);
}
.tbs-filterbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}
.tbs-filterbar__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-right: 0.25rem;
}
.tbs-filterbar .tbs-filter-btn {
  padding: 0.4375rem 1rem !important;
}

/* ---------- Region sections ---------- */
.tbs-region {
  padding-bottom: 3rem;
  scroll-margin-top: 9rem; /* clears the sticky header + filter bar */
}
.tbs-region + .tbs-region {
  padding-top: 3rem;
  border-top: 0.5px solid var(--color-border);
}
.tbs-region__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.75rem;
}
.tbs-region__head .section-sub { margin-top: 0.25rem; }
.tbs-region__start {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-rust);
  text-decoration: none;
  white-space: nowrap;
}
.tbs-region__start:hover {
  color: var(--color-rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Sub-groups (Ontario, Quebec…) ---------- */
.tbs-group + .tbs-group { margin-top: 2.25rem; }
.tbs-group__title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.tbs-group__count {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-stone);
}
.tbs-group__more {
  margin-top: 1.25rem;
  text-align: center;
}

/* ---------- Cards: 4 across, with trip-length badge ---------- */
.tbs-itins .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tbs-itins .card__thumbnail { height: 170px; }
.card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.3125rem 0.75rem;
  border-radius: 20px;
  background: var(--color-linen);
  color: var(--color-ink);
  pointer-events: none;
}

/* ---------- Show / hide ---------- */
.tbs-js .tbs-itins:not(.is-filtering) .tbs-group:not(.is-expanded) .tbs-card--extra { display: none; }
.tbs-itins .card[hidden],
.tbs-itins .tbs-group[hidden],
.tbs-itins .tbs-region[hidden],
.tbs-itins [data-region-link][hidden],
.tbs-itins .tbs-more-btn[hidden],
.tbs-itins .tbs-empty[hidden] { display: none !important; }
.tbs-empty {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-stone);
  text-align: center;
  padding: 2rem 0 3rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tbs-itins .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tbs-tiles,
  .tbs-itins .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tbs-itins { padding-top: 1.5rem; }
  .tbs-tile { aspect-ratio: 1 / 1; padding: 0.875rem; }
  .tbs-filterbar { position: static; }
  .tbs-filterbar__jump { display: none; }
  .tbs-region { scroll-margin-top: 5rem; }
}
@media (max-width: 560px) {
  .tbs-itins .cards-grid { grid-template-columns: 1fr; }
  .tbs-itins .card__thumbnail { height: 200px; }
}

/* ============================================================
   HIDE ALL LABELS ON CARD PHOTOS
   ============================================================ */
.card__badge { display: none !important; }