:root {
  --bg: #f7f4ef;
  --bg-strong: #efe3d0;
  --card: rgba(255, 255, 255, 0.72);
  --text: #0f1712;
  --muted: #3f4843;
  --primary: #2d6b47;
  --primary-dark: #1c4d34;
  --primary-soft: #edf6ef;
  --accent: #caa96d;
  --border: rgba(15, 23, 18, 0.09);
  --shadow: 0 16px 40px rgba(15, 23, 18, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 18, 0.06);

  /* Typography Pairing Option 2: Fraunces (Headings) + Inter (Body) */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 65px;
  font-size: 88%;
}

[id] {
  scroll-margin-top: 65px;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(157, 185, 160, 0.22), transparent 24%),
    radial-gradient(circle at bottom right, rgba(202, 169, 109, 0.14), transparent 20%),
    linear-gradient(180deg, #faf7f2 0%, #f4ebdc 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

.page-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 950px;
  background-image: url('/hero-bg.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0.9;
  z-index: -2;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
}

.page-home::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 950px;
  background:
    linear-gradient(180deg,
      rgba(250, 247, 242, 0.12) 0%,
      rgba(247, 244, 239, 0.08) 30%,
      rgba(244, 235, 220, 0.35) 70%,
      rgba(239, 227, 208, 0.88) 100%);
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Offset all anchor targets so sticky header (78px) never covers headings */
section[id],
[id].scroll-target {
  scroll-margin-top: 90px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 246, 241, 0.76);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: inherit;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  text-decoration: none;
  line-height: 1.05;
}

.brand-line-1 {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
}

.brand-line-2 {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.05;
  margin-top: 1px;
}

.brand-lockup {
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}

.brand-mark-top {
  display: block;
  width: 92px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.main-nav a,
.footer-links a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 24px rgba(45, 107, 71, 0.12);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 28px rgba(45, 107, 71, 0.16);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 12px 22px rgba(47, 109, 70, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: min(920px, 115vh);
  background-image: url('/hero-bg.jpg');
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: -2;
  border-radius: 0 0 60px 60px;
  mask-image: linear-gradient(to bottom, black 0%, black 52%, transparent 94%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 52%, transparent 94%);
}

.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: min(920px, 115vh);
  background:
    linear-gradient(105deg,
      rgba(250, 247, 242, 0.78) 0%,
      rgba(250, 247, 242, 0.5) 30%,
      rgba(247, 240, 228, 0.2) 55%,
      rgba(244, 232, 214, 0.05) 75%,
      transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(244, 235, 220, 0.32) 80%, transparent 100%);
  z-index: -1;
  border-radius: 0 0 60px 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 44px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 105px;
}

.eyebrow {
  font-family: var(--font-heading);
  margin: 0 0 20px !important;
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.35rem, 4.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  max-width: 640px;
  color: var(--text);
  font-weight: 800;
}

.hero-copy .eyebrow {
  color: var(--primary);
  font-weight: 800;
  margin: 0 !important;
}

.hero-copy h1 {
  color: var(--text);
  font-weight: 800;
  margin: 0;
}

.hero-copy .lede {
  margin: 0;
}

.hero-copy .cta-row {
  margin: 0;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 500;
}

.section-heading {
  margin-bottom: 44px;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading .eyebrow {
  margin-bottom: 12px !important;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  margin-bottom: 0;
  max-width: 760px;
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.22;
  color: var(--text);
  font-weight: 800;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading .lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stats strong {
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.image-card {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.main-card {
  inset: 32px 0 0 52px;
  height: 440px;
}

.main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.badge-top {
  left: 0;
  top: 0;
}

.badge-bottom {
  right: 18px;
  bottom: 22px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #67c87c, #2f6d46);
  box-shadow: 0 0 0 8px rgba(47, 109, 70, 0.12);
}

.feature-showcase,
.featured,
.resource-grid,
.guide,
.about,
.month-guide,
.areas,
.essentials,
.faq-section,
.plan {
  padding: 90px 0;
  position: relative;
}

.guide {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.guide > .container {
  position: relative;
  z-index: 1;
}

.guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/guide-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.88;
  z-index: -2;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
}

.guide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg,
      rgba(250, 247, 242, 0.06) 0%,
      rgba(247, 244, 239, 0.05) 30%,
      rgba(244, 235, 220, 0.28) 65%,
      rgba(239, 227, 208, 0.78) 100%);
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: center;
}

.showcase-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem 1.8rem;
  box-shadow: 0 18px 34px rgba(24, 42, 29, 0.05);
}

.showcase-copy h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.showcase-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.2rem 0 1.5rem;
}

.showcase-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 109, 70, 0.08);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-image-wrap {
  height: 360px;
}

.showcase-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-panel {
  padding: 1.4rem 1.4rem 1.5rem;
}

.showcase-panel strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.showcase-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.left-aligned {
  margin-bottom: 26px;
}

.trail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.view-all-row {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.view-all-btn {
  min-width: 220px;
}

/* ===== Filter Bar & Search Container ===== */
.filter-bar-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(250, 246, 238, 0.72) 100%);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 14px 18px;
  margin-bottom: 32px;
  box-shadow: 0 10px 28px rgba(24, 42, 29, 0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.filter-chip {
  appearance: none;
  border: 1px solid rgba(29, 43, 30, 0.12);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  border-radius: 999px;
  padding: 0.58rem 1.15rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(24, 42, 29, 0.03);
}

.filter-chip .chip-count {
  font-size: 0.74rem;
  padding: 0.15rem 0.48rem;
  border-radius: 999px;
  background: rgba(29, 43, 30, 0.07);
  color: var(--muted);
  font-weight: 700;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(47, 109, 70, 0.28);
}

.filter-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

/* Search Box & Live Counter */
.filter-search-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-grow: 1;
  justify-content: flex-end;
}

.search-box {
  position: relative;
  width: min(320px, 100%);
}

.search-input {
  width: 100%;
  padding: 0.62rem 2.4rem 0.62rem 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 30, 0.14);
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 107, 71, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.search-clear-btn:hover {
  color: var(--text);
}

.results-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== Trail Cards & Grid Layout ===== */
.trail-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.trail-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 24px;
}

.trail-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(29, 43, 30, 0.09);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(24, 42, 29, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.trail-card-link:hover .trail-card,
.trail-card-link:focus-visible .trail-card {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(24, 42, 29, 0.1);
  border-color: rgba(45, 107, 71, 0.35);
}

.trail-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #e8e2d7;
}

.trail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.trail-card-link:hover .trail-image img {
  transform: scale(1.06);
}

.trail-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, transparent 42%, rgba(0, 0, 0, 0.18) 100%);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.trail-image-overlay .tag {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trail-image-overlay .distance {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.trail-body {
  position: relative;
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Distance badge — top-right corner of the card body */
.distance-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(45, 107, 71, 0.09);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(45, 107, 71, 0.14);
}

.distance-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 109, 70, 0.08);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-easy,
[data-difficulty="easy"] .tag {
  background: rgba(47, 109, 70, 0.1);
  color: #245c38;
}

.tag-moderate,
[data-difficulty="moderate"] .tag {
  background: rgba(217, 119, 6, 0.12);
  color: #9a4805;
}

.tag-hard,
.tag-challenging,
[data-difficulty="hard"] .tag,
[data-difficulty="challenging"] .tag {
  background: rgba(225, 29, 72, 0.12);
  color: #b91c1c;
}

.distance {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.distance svg {
  color: var(--primary);
  flex-shrink: 0;
}

.trail-area-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0.45rem;
}

.location-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.trail-area {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trail-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.trail-body p,
.trail-desc,
.about-copy p,
.guide-item p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.trail-desc {
  margin: 0 0 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.trail-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(29, 43, 30, 0.06);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: auto;
}

.arrow-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.trail-card-link:hover .arrow-icon {
  transform: translateX(4px);
}

/* Empty State */
.no-results-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(29, 43, 30, 0.16);
  border-radius: 22px;
}

.no-results-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

.no-results-state p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: start;
}

/* ===== Bento Grid Layout (Trail Guide & Essentials) ===== */
.guide-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  padding: 1.5rem 1.45rem;
  box-shadow: 0 12px 30px -4px rgba(24, 42, 29, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
  border-color: #ffffff;
  box-shadow: 0 20px 42px -6px rgba(24, 42, 29, 0.12), inset 0 1px 0 #ffffff;
}

/* Hero Bento Card (Spans 2 columns) */
.bento-hero {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(22, 45, 31, 0.90) 0%, rgba(31, 64, 44, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 40px -4px rgba(18, 38, 25, 0.25);
  color: #ffffff;
}

.bento-hero:hover {
  background: linear-gradient(135deg, rgba(24, 50, 34, 0.95) 0%, rgba(35, 72, 50, 0.88) 100%);
  box-shadow: 0 24px 48px -4px rgba(18, 38, 25, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
}

.bento-hero h3 {
  color: #ffffff !important;
  font-size: 1.35rem !important;
}

.bento-hero p {
  color: rgba(245, 242, 236, 0.88) !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  width: 100%;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(47, 109, 70, 0.12);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 109, 70, 0.2);
}

.bento-badge.badge-alert {
  background: rgba(243, 156, 18, 0.18);
  color: #f39c12;
  border-color: rgba(243, 156, 18, 0.35);
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.bento-spec {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  opacity: 0.75;
}

.bento-hero .bento-spec {
  color: rgba(255, 255, 255, 0.85);
}

.bento-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.bento-card p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.6;
  color: #425246;
}

/* ===== Expanding Accordion Guide ===== */
.acc-guide {
  display: flex;
  height: 460px;
  gap: 6px;
  border-radius: 24px;
  overflow: hidden;
}

/* Each accordion panel */
.acc-panel {
  flex: 0.35;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease;
  display: flex;
  align-items: stretch;
}

.acc-panel.acc-active {
  flex: 4.75;
  cursor: default;
}

/* Per-panel color themes — frosted transparent glass style */
.acc-panel[data-color="terracotta"] {
  background: linear-gradient(160deg, rgba(196, 107, 58, 0.12) 0%, rgba(220, 150, 90, 0.05) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(220, 140, 80, 0.16);
}
.acc-panel[data-color="water"] {
  background: linear-gradient(160deg, rgba(26, 111, 138, 0.12) 0%, rgba(60, 155, 185, 0.05) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(60, 155, 185, 0.16);
}
.acc-panel[data-color="solar"] {
  background: linear-gradient(160deg, rgba(184, 134, 11, 0.12) 0%, rgba(212, 168, 32, 0.05) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 168, 32, 0.16);
}
.acc-panel[data-color="sage"] {
  background: linear-gradient(160deg, rgba(45, 106, 54, 0.12) 0%, rgba(75, 145, 85, 0.05) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(75, 145, 85, 0.16);
}
.acc-panel[data-color="stone"] {
  background: linear-gradient(160deg, rgba(107, 94, 80, 0.12) 0%, rgba(145, 130, 112, 0.05) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(145, 130, 112, 0.16);
}
.acc-panel[data-color="dusk"] {
  background: linear-gradient(160deg, rgba(61, 52, 120, 0.12) 0%, rgba(100, 90, 165, 0.05) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(100, 90, 165, 0.16);
}

/* Checked (done) state — overlay a soft green tint */
.acc-panel.acc-done {
  box-shadow: inset 0 0 0 2px rgba(47, 158, 88, 0.4);
}

/* Collapsed spine — rotated vertical label */
.acc-spine {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1;
  visibility: visible;
}

.acc-panel.acc-active .acc-spine {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.acc-spine-num {
  display: none !important;
}

.acc-spine-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
  margin: 0 auto;
}

/* Expanded body content */
.acc-body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
  overflow: hidden;
  z-index: 2;
  box-sizing: border-box;
}

.acc-panel.acc-active .acc-body {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.acc-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
  margin: 0 0 10px;
  text-align: center;
}

.acc-title {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 12px;
  text-align: center;
}

.acc-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto;
  max-width: 480px;
  text-align: center;
}

/* Mark ready checkbox */
.acc-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.acc-check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.acc-check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.acc-check-box svg {
  width: 13px;
  height: 13px;
  stroke: transparent;
  transition: stroke 0.2s ease;
}

.acc-check-label input:checked ~ .acc-check-box {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(47, 158, 88, 0.35);
}

.acc-check-label input:checked ~ .acc-check-box svg {
  stroke: #fff;
}

.acc-check-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.acc-check-label input:checked ~ .acc-check-text {
  color: #ffffff;
}

/* Bottom footer progress strip */
.acc-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.acc-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(47, 109, 70, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.acc-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, #2ecc71 100%);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #7a8f7e;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.acc-progress-label.all-done {
  color: var(--primary);
}

.about-grid {
  display: block;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.about {
  padding-top: 100px !important;
  padding-bottom: 120px !important;
}

.why-yuma-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 0 !important;
  margin-top: 40px;
  margin-bottom: 60px;
}

.ecosystem-section {
  padding-top: 100px !important;
  padding-bottom: 120px !important;
}

.about-copy p,
.guide-prose p,
.why-yuma-prose p {
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  font-size: 0.90rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.about-copy p strong,
.guide-prose p strong,
.why-yuma-prose p strong {
  color: var(--text);
  font-weight: 700;
}

.about-copy p:last-child,
.guide-prose p:last-child,
.why-yuma-prose p:last-child {
  margin-bottom: 0;
}

.about-copy .section-heading,
.why-yuma-section .section-heading,
.guide .section-heading {
  margin-bottom: 44px;
}

.about-copy .section-heading .eyebrow,
.why-yuma-section .section-heading .eyebrow,
.guide .section-heading .eyebrow {
  color: var(--primary);
  margin-bottom: 50px !important;
}

.about-copy .section-heading h2 {
  color: var(--text);
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.04em;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Why Yuma Section: Photo Background (Matching Guide Section) ===== */
.why-yuma-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0 !important;
}

.why-yuma-section > .container {
  position: relative;
  z-index: 1;
}

.why-yuma-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/trail-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.92;
  z-index: -2;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
}

.why-yuma-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg,
      rgba(250, 247, 242, 0.22) 0%,
      rgba(247, 244, 239, 0.38) 30%,
      rgba(244, 235, 220, 0.48) 65%,
      rgba(239, 227, 208, 0.78) 100%);
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
}

.why-yuma-section .section-heading h2 {
  color: var(--text);
  font-weight: 800;
}

.why-yuma-section .section-heading .eyebrow {
  color: var(--primary);
  font-weight: 700;
}

.why-yuma-prose .guide-label {
  background: rgba(45, 107, 71, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.2em 0.55em;
  border-radius: 6px;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mini-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.65));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 14px 26px rgba(24, 42, 29, 0.04);
}

.mini-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.22rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- Editorial Prose Block (resource-grid) ---- */
.guide-prose {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.guide-prose p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
  text-align: center;
}

.guide-label {
  display: inline;
  background: rgba(47, 109, 70, 0.09);
  color: var(--primary-dark);
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== Sexy Month Carousel ===== */

/* Season Tabs Bar */
.month-season-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.month-season-tabs::-webkit-scrollbar {
  display: none;
}

.month-tab {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(47, 109, 70, 0.15);
  color: #4a5c4e;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.month-tab:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  border-color: rgba(47, 109, 70, 0.3);
}

.month-tab.active {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(24, 50, 34, 0.2);
}

/* Carousel Track & Cards */
.month-carousel-wrap {
  position: relative;
  margin: 0 -16px;
  padding: 8px 16px 20px;
}

.month-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.month-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Base Card Style */
.month-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 245, 238, 0.82) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: 0 12px 30px rgba(24, 42, 29, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.month-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 45px rgba(24, 42, 29, 0.12);
}

.month-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.month-watermark {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-dark);
  opacity: 0.12;
  font-family: inherit;
  letter-spacing: -0.04em;
}

.month-label {
  display: inline-flex;
  align-items: center;
  background: rgba(47, 109, 70, 0.08);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

/* Seasonal Vibe Badges */
.month-vibe-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.vibe-prime {
  background: rgba(46, 204, 113, 0.12);
  color: #1e7e44;
  border: 1px solid rgba(46, 204, 113, 0.25);
}
.vibe-bloom {
  background: rgba(224, 130, 60, 0.12);
  color: #aa5010;
  border: 1px solid rgba(224, 130, 60, 0.25);
}
.vibe-dawn {
  background: rgba(230, 160, 30, 0.12);
  color: #9c6800;
  border: 1px solid rgba(230, 160, 30, 0.25);
}
.vibe-solar {
  background: rgba(231, 76, 60, 0.12);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.25);
}
.vibe-shoulder {
  background: rgba(142, 68, 173, 0.12);
  color: #6c3483;
  border: 1px solid rgba(142, 68, 173, 0.25);
}
.vibe-starlight {
  background: rgba(52, 152, 219, 0.12);
  color: #1b6aaa;
  border: 1px solid rgba(52, 152, 219, 0.25);
}

.month-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text);
}

.month-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.90rem;
  line-height: 1.65;
}

.month-card-footer {
  border-top: 1px dashed rgba(47, 109, 70, 0.15);
  padding-top: 0.85rem;
}

.month-rec-tag {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--primary-dark);
  opacity: 0.85;
}

.month-guide {
  padding-top: 48px;
  padding-bottom: 52px;
  position: relative;
}

.month-guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/season-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0.86;
  z-index: -2;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
}

.month-guide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg,
      rgba(250, 247, 242, 0.05) 0%,
      rgba(247, 244, 239, 0.04) 30%,
      rgba(244, 235, 220, 0.26) 65%,
      rgba(239, 227, 208, 0.78) 100%);
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 65%, transparent 100%);
}

.essentials {
  padding-top: 18px;
  padding-bottom: 80px;
  text-align: center;
}

.essentials-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.compact {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.essentials-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  width: 100%;
  text-align: center;
}

.essentials-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.essentials-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.essentials-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.area-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 245, 238, 0.82) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(24, 42, 29, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.area-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 45px rgba(24, 42, 29, 0.12);
}

.area-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.area-watermark {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-dark);
  opacity: 0.1;
  letter-spacing: -0.04em;
}

.area-type-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(47, 109, 70, 0.08);
  color: var(--primary-dark);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  width: fit-content;
}

.area-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text);
}

.area-card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.90rem;
  line-height: 1.65;
  flex: 1;
}

.area-card-footer {
  border-top: 1px dashed rgba(47, 109, 70, 0.15);
  padding-top: 0.75rem;
}

.area-terrain-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  opacity: 0.8;
}

.plan-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 2rem 2.2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #1f4d33 0%, #2f6d46 100%);
  color: white;
  box-shadow: 0 20px 40px rgba(28, 77, 52, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.plan-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/hero-bg.jpg');
  background-size: cover;
  background-position: center 45%;
  opacity: 0.18;
  z-index: 0;
  mix-blend-mode: soft-light;
}

.plan-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(31, 77, 51, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(47, 109, 70, 0.4) 0%, transparent 60%);
  z-index: 0;
  mix-blend-mode: multiply;
}

.plan-box > * {
  position: relative;
  z-index: 1;
}

.plan-box .eyebrow {
  color: #d8efd8;
}

.plan-box h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.plan-box .btn-primary {
  background: #ffffff;
  color: #1f4d33;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  align-self: center;
}

.plan-box .btn-primary:hover {
  background: #f7f4ef;
  color: #1c4d34;
}

.trails-page-hero {
  padding: 48px 0 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.back-link:hover {
  color: var(--primary-dark);
}

.trails-page-heading {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.trails-page-heading .eyebrow {
  margin-left: auto;
  margin-right: auto;
  color: var(--primary);
}

.trails-page-heading h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  max-width: 720px;
  color: var(--text);
}

.trails-page-heading .lede {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.trails-page-meta {
  margin-top: 24px;
}

.trail-count {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 109, 70, 0.08);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.trails-page-content {
  padding: 12px 0 80px;
}

.trails-page-grid {
  margin-top: 4px;
}

.trail-detail-page-hero {
  padding: 48px 0 80px;
}

.trail-detail-shell {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.trail-detail-hero {
  height: clamp(300px, 42vw, 440px);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trail-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trail-detail-intro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: 0 16px 30px rgba(24, 42, 29, 0.05);
}

.trail-detail-intro h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
  max-width: 820px;
}

.trail-detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.trail-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trail-detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 109, 70, 0.08);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trail-detail-summary {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 30px;
}

.detail-summary-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.3rem 1.35rem;
  box-shadow: 0 14px 26px rgba(24, 42, 29, 0.04);
}

.detail-summary-card h2 {
  font-size: 1.28rem;
  margin-bottom: 0.8rem;
}

.detail-summary-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.detail-pill-list {
  display: grid;
  gap: 12px;
}

.detail-pill {
  display: grid;
  gap: 4px;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(47, 109, 70, 0.06);
}

.detail-pill strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.map-pill {
  border: 1px solid rgba(47, 109, 70, 0.18);
  background: rgba(47, 109, 70, 0.09);
}

.map-pill a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 6px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-pill a:hover {
  color: var(--primary);
}

.detail-pill span {
  color: var(--muted);
  line-height: 1.6;
}

.detail-pill-full {
  grid-column: 1 / -1;
}

.trail-detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.trail-detail-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.62));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.3rem 1.35rem;
  box-shadow: 0 14px 26px rgba(24, 42, 29, 0.04);
}

.trail-detail-section h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.trail-detail-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.trail-detail-list li + li {
  margin-top: 0.45rem;
}

.trail-not-found {
  max-width: 560px;
}

.trail-not-found h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.trail-not-found .lede {
  margin-bottom: 24px;
}

.site-footer {
  padding: 26px 0 50px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.footer-row p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

/* ===== Mobile Menu Toggle ===== */

.menu-toggle {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  z-index: 30;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== Tablet (≤ 900px) ===== */

@media (max-width: 900px) {
  /* Make header seamlessly transparent on homepage mobile */
  .page-home .site-header {
    border-bottom: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }

  .site-header:has(.main-nav.open),
  .site-header.menu-open,
  .page-home .site-header:has(.main-nav.open),
  .page-home .site-header.menu-open {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  /* Mobile background: single non-repeating hero image with smooth fade */
  .page-home::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(650px, 100vh, 900px);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 25%;
    opacity: 0.9;
  }

  .page-home::after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(650px, 100vh, 900px);
  }

  /* Remove hero overlay pseudo-elements to prevent double-image cutoff bands */
  .hero::before,
  .hero::after {
    display: none !important;
  }

  /* Remove showcase-copy border on mobile */
  .showcase-copy {
    border: none;
  }

  /* -- Header & Mobile Menu -- */
  .nav-wrap {
    flex-wrap: wrap;
  }

  .brand-mark-top {
    width: 68px;
  }

  .brand-line-1 {
    font-size: 0.92rem;
  }

  .brand-line-2 {
    font-size: 0.78rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    order: 2;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    order: 10;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
    padding: 0;
    background: transparent;
  }

  .main-nav.open {
    max-height: 320px;
    opacity: 1;
    padding: 10px 0 16px;
  }

  .main-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(29, 43, 30, 0.09);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav a:active {
    color: var(--primary-dark);
    transform: translateX(4px);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .nav-wrap > .btn {
    display: none;
  }

  /* -- Hero -- */
  .hero {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    min-height: calc(100svh - 78px);
    min-height: calc(100vh - 78px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 0 36px;
    box-sizing: border-box;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 75px;
    flex: 1;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding-top: 10px;
  }

  .hero-copy .eyebrow {
    margin: 0;
    letter-spacing: 0.18em;
    color: var(--primary);
    font-weight: 800;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 8.2vw, 3.95rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 0 auto;
    max-width: 100%;
    color: var(--text);
    font-weight: 800;
  }

  .hero-copy .lede {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-copy .cta-row {
    width: 100%;
    max-width: 440px;
    justify-content: center;
    gap: 16px;
    margin: 0 auto;
  }

  .hero-copy .btn {
    padding: 0.95rem 1.4rem;
    font-size: 0.98rem;
  }

  /* -- Grids → single-column -- */
  .guide-grid,
  .about-grid,
  .showcase-grid,
  .trail-detail-shell,
  .trail-detail-summary {
    grid-template-columns: 1fr;
  }

  .trail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-grid,
  .resource-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-hero {
    grid-column: span 1;
  }

  .acc-guide {
    height: 400px;
  }

  .acc-body {
    padding: 22px 20px;
  }

  .acc-title {
    font-size: 1.1rem;
  }

  .essentials-grid {
    grid-template-columns: 1fr;
  }

  .essentials-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trail-detail-sections {
    grid-template-columns: 1fr;
  }

  /* -- Showcase -- */
  .showcase-card {
    display: none !important;
  }

  .showcase-copy {
    position: relative;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.25) 100%),
      url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 36px rgba(24, 42, 29, 0.1);
  }

  .showcase-copy p {
    color: var(--text);
    font-weight: 400;
  }

  .showcase-meta span {
    background: rgba(255, 255, 255, 0.75);
    color: var(--primary-dark);
  }

  /* -- Section Padding -- */
  .feature-showcase,
  .featured,
  .resource-grid,
  .guide,
  .about,
  .month-guide,
  .areas,
  .plan {
    padding: 40px 0 52px;
  }

  /* -- Plan CTA -- */
  .plan-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 1.5rem;
    gap: 18px;
  }

  .plan-box h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }
}

@media (max-width: 640px) {
  html {
    font-size: 91.5%;
  }

  .site-header {
    position: relative;
    top: auto;
  }

  .nav-wrap {
    min-height: 64px;
    gap: 14px;
  }

  .page-home .site-header {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }

  .brand-line-1 {
    font-size: 0.86rem;
  }

  .brand-line-2 {
    font-size: 0.72rem;
  }

  .brand-mark-top {
    width: 58px;
  }

  /* -- Hero -- */
  .hero {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    min-height: calc(100svh - 64px);
    min-height: calc(100vh - 64px);
  }

  .hero-grid {
    padding: 20px 0 24px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 75px;
    flex: 1;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 8px 0 10px;
    min-height: auto;
  }

  .hero-copy .eyebrow {
    margin: 0;
    letter-spacing: 0.18em;
    font-size: clamp(0.72rem, 3.2vw, 0.85rem);
    color: var(--primary);
    font-weight: 800;
  }

  .hero-copy h1 {
    font-size: clamp(1.5rem, 5vw, 2.05rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 0 auto;
    width: min(100%, 22rem);
    max-width: 100%;
    color: var(--text);
    font-weight: 800;
  }

  .hero-copy .lede {
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 320px;
    width: 100%;
    margin: 0 auto 2px;
    padding-top: 2px;
  }

  .section-heading h2 {
    font-size: clamp(1.2rem, 3.8vw, 1.5rem);
  }

  .hero-copy .cta-row {
    width: 100%;
    max-width: 250px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 2px auto 0;
  }

  .hero-copy .btn {
    width: auto;
    max-width: 140px;
    min-width: 0;
    padding: 0.55rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stats strong {
    font-size: 1.1rem;
  }

  .hero-stats span {
    font-size: 0.82rem;
  }

  /* ===== Clean Professional Mobile Layout (≤ 640px) ===== */

  /* ---- Section Spacing & Vertical Rhythm ---- */
  .feature-showcase,
  .featured,
  .resource-grid,
  .guide,
  .about,
  .month-guide,
  .areas,
  .plan,
  .why-yuma-section {
    padding: 60px 0 68px !important;
  }

  .feature-showcase {
    padding-top: 16px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .eyebrow,
  .section-heading .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    margin-bottom: 10px !important;
  }

  .section-heading h2 {
    font-size: 1.3rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text);
  }

  /* ---- Feature Showcase (Full-width immersive card) ---- */
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .showcase-copy {
    order: 1;
    border-radius: 22px;
    padding: 1.5rem 1.3rem 1.6rem;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.35) 100%),
      url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center 40%;
    box-shadow: 0 8px 28px rgba(24, 42, 29, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
  }

  .showcase-copy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(247, 244, 239, 0.82) 60%, rgba(244, 235, 220, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
  }

  .showcase-copy > * {
    position: relative;
    z-index: 1;
  }

  .showcase-copy h2 {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin-bottom: 0.6rem;
    color: var(--text);
  }

  .showcase-copy p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
  }

  .showcase-meta {
    margin: 1rem 0 1.2rem;
  }

  .showcase-meta span {
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-dark);
    font-size: 0.7rem;
    padding: 0.38rem 0.75rem;
    backdrop-filter: blur(4px);
  }

  .showcase-copy .cta-row {
    margin: 16px 0 4px;
    gap: 10px;
  }

  .showcase-copy .btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.82rem;
  }

  .showcase-card {
    display: none !important;
  }

  /* ---- Filter Row (Horizontal scroll) ---- */
  .filter-row {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 4px;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(24, 42, 29, 0.1);
    color: var(--muted);
    box-shadow: 0 1px 4px rgba(24, 42, 29, 0.04);
  }

  .filter-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(47, 109, 70, 0.22);
  }

  /* ---- Trail Cards (Single-column full-width) ---- */
  .trail-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .trail-card-link {
    min-height: auto;
  }

  .trail-card {
    display: flex;
    flex-direction: row;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 42, 29, 0.07);
    box-shadow: 0 2px 12px rgba(24, 42, 29, 0.04);
    overflow: hidden;
    min-height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .trail-image {
    width: 120px;
    min-width: 120px;
    height: auto;
    position: relative;
    flex-shrink: 0;
  }

  .trail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .trail-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .meta-row {
    margin-bottom: 4px;
    gap: 8px;
  }

  .tag {
    padding: 0.2rem 0.55rem;
    font-size: 0.66rem;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.04em;
  }

  .trail-image-overlay {
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
  }

  .trail-image-overlay .tag {
    white-space: nowrap;
    font-size: 0.65rem;
    padding: 0.18rem 0.45rem;
  }

  .distance-badge {
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
    gap: 3px;
  }

  .distance svg {
    width: 13px;
    height: 13px;
  }

  .trail-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 3px 0 2px;
    color: var(--text);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .trail-area {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.06em;
    margin: 0 0 4px;
    text-transform: uppercase;
  }

  .trail-body p,
  .trail-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .view-all-row {
    margin-top: 20px;
  }

  .view-all-btn {
    width: 100%;
    min-width: 0;
    padding: 0.82rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(24, 42, 29, 0.1);
  }

  /* ---- Guide Section ---- */
  .guide .section-heading.left-aligned {
    margin-bottom: 32px !important;
  }

  .guide .lede {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .guide-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .bento-card {
    padding: 16px 18px;
    border-radius: 18px;
  }

  .bento-hero {
    padding: 20px 18px;
  }

  .acc-guide {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .acc-panel {
    flex: none !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 58px;
    height: auto;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
  }

  .acc-spine {
    position: relative;
    inset: auto;
    flex: 0 0 58px;
    width: 100%;
    height: 58px;
    min-height: 58px;
    flex-direction: row;
    gap: 12px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: opacity 0.28s ease,
                flex-basis 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                min-height 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                height 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s linear 0s;
  }

  .acc-spine-label {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  .acc-body {
    display: flex !important;
    flex: 0 1 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    height: auto !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.85s cubic-bezier(0.45, 0.05, 0.2, 1),
                opacity 0.7s ease,
                padding 0.85s cubic-bezier(0.45, 0.05, 0.2, 1),
                visibility 0s linear 0.7s;
  }

  .acc-panel.acc-active .acc-body {
    max-height: 220px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 18px 20px 22px;
    transition: max-height 0.85s cubic-bezier(0.45, 0.05, 0.2, 1),
                opacity 0.7s ease,
                padding 0.85s cubic-bezier(0.45, 0.05, 0.2, 1),
                visibility 0s linear 0s;
  }

  /* Keep the label row visible on mobile */
  .acc-panel.acc-active .acc-spine {
    flex-basis: 58px;
    height: 58px;
    min-height: 58px;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    padding: 0 20px;
  }

  .step-num {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
    font-size: 0.88rem;
  }

  .guide-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.3;
    color: var(--text);
  }

  .guide-item p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
  }

  /* ---- About Section ---- */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .about-copy .eyebrow {
    margin-bottom: 10px !important;
  }

  .about-copy h2 {
    font-size: clamp(1.2rem, 4.5vw, 1.55rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
  }

  .about-copy p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 10px;
  }

  .info-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .fact-card {
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(24, 42, 29, 0.07);
    box-shadow: 0 1px 6px rgba(24, 42, 29, 0.03);
  }

  .fact-card strong {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    display: block;
  }

  .fact-card span {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text);
    font-weight: 500;
    display: block;
  }

  /* ---- Resource Cards (Accent-bordered single-col) ---- */
  .resource-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mini-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(24, 42, 29, 0.07);
    box-shadow: 0 1px 6px rgba(24, 42, 29, 0.03);
    border-left: 3px solid var(--primary);
  }

  .mini-kicker {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mini-card h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 5px;
    color: var(--text);
  }

  .mini-card p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
  }

  /* ---- Month Guide ---- */
  .month-guide {
    padding-top: 40px;
    padding-bottom: 36px;
  }

  .month-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .month-card {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(24, 42, 29, 0.07);
    box-shadow: 0 2px 10px rgba(24, 42, 29, 0.05);
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .month-card-header {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }

  .month-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(47, 109, 70, 0.08);
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .month-vibe-tag {
    margin: 0 auto;
    text-align: center;
    width: fit-content;
    font-size: 0.72rem;
  }

  .month-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: var(--text);
    text-align: center;
  }

  .month-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
    text-align: center;
  }

  .month-card-footer {
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px dashed rgba(47, 109, 70, 0.15);
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .month-rec-tag {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-dark);
    opacity: 1;
  }

  /* ---- Local Favorites / Area Grid (single column clean) ---- */
  .area-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .area-card {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(24, 42, 29, 0.07);
    box-shadow: 0 2px 10px rgba(24, 42, 29, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .area-card-header {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
  }

  .area-type-tag {
    font-size: 0.64rem;
    padding: 0.22rem 0.55rem;
    margin-bottom: 0;
  }

  .area-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    text-align: center;
  }

  .area-card p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
    text-align: center;
  }

  .area-card-footer {
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px dashed rgba(47, 109, 70, 0.15);
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .area-terrain-tag {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-dark);
    opacity: 1;
    text-align: center;
  }

  /* ---- Essentials List (No cards, centered text lining) ---- */
  .essentials-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .compact {
    text-align: center;
    margin-bottom: 28px;
  }

  .essentials-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    text-align: center;
  }

  .essentials-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: center;
    align-items: center;
  }

  .essentials-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px;
    text-align: center;
  }

  .essentials-card p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    text-align: center;
  }

  /* ---- Plan CTA Box ---- */
  .plan {
    padding-bottom: 28px;
  }

  .plan-box {
    padding: 28px 22px 32px;
    border-radius: 22px;
    background: linear-gradient(140deg, #163d27 0%, #2d6b47 55%, #3a7d55 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(24, 66, 43, 0.22);
  }

  .plan-box .eyebrow {
    color: rgba(216, 239, 216, 0.85);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .plan-box h2 {
    font-size: clamp(1.15rem, 4.2vw, 1.45rem);
    line-height: 1.22;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .plan-box .btn-primary {
    width: 100%;
    max-width: 220px;
    padding: 0.78rem 1.3rem;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 999px;
    background: #ffffff;
    color: #163d27;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
  }

  /* ---- Trail Detail Page ---- */
  .trails-page-hero {
    padding: 28px 0 16px;
  }

  .trails-page-heading h1 {
    font-size: clamp(1.45rem, 5.2vw, 2.0rem);
  }

  .trail-detail-page-hero {
    padding: 28px 0 48px;
  }

  .trail-detail-hero {
    height: clamp(200px, 50vw, 300px);
    border-radius: 22px;
  }

  .trail-detail-intro {
    padding: 1.3rem 1.2rem;
    border-radius: 22px;
  }

  .trail-detail-intro h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  }

  .trail-detail-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-summary-card {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .trail-detail-sections {
    gap: 16px;
  }

  .trail-detail-section {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .trail-detail-section h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .back-link {
    margin-bottom: 18px;
    font-size: 0.85rem;
  }

  /* ---- Footer ---- */
  .site-footer {
    padding: 14px 0 28px;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 16px;
  }

  .footer-row p {
    font-size: 0.82rem;
    color: var(--muted);
  }

  .footer-links {
    gap: 16px;
    font-size: 0.88rem;
    justify-content: center;
  }
}

/* ===== Very Small Screens (≤ 380px) ===== */

@media (max-width: 380px) {
  .container {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 1.75rem;
  }

  .section-heading h2 {
    font-size: 1.4rem;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand small {
    display: none;
  }

  .hero-visual {
    min-height: 220px;
  }

  .main-card {
    inset: 8px 0 0 8px;
    height: 195px;
  }

  .floating-badge {
    font-size: 0.62rem;
    padding: 0.45rem 0.6rem;
  }

  .badge-top {
    left: 0;
    top: 0;
  }
}

/* ===== Homepage: Center all section headings & titles ===== */
body.page-home .section-heading,
body.page-home .section-heading h2,
body.page-home .section-heading .eyebrow {
  text-align: center;
}

body.page-home .section-heading {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body.page-home .about-copy .eyebrow,
body.page-home .about-copy h2 {
  text-align: center;
}

body.page-home .guide .lede {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

body.page-home .plan-box .eyebrow,
body.page-home .plan-box h2 {
  text-align: center;
}

/* ===== FAQ Section Accordion ===== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 245, 238, 0.82) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(47, 109, 70, 0.15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(24, 42, 29, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.faq-active {
  border-color: rgba(47, 109, 70, 0.4);
  box-shadow: 0 8px 24px rgba(24, 42, 29, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1.1rem 1.4rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary-dark);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-dark);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.faq-active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
  padding: 0 1.4rem;
}

.faq-item.faq-active .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding: 0 1.4rem 1.2rem;
}

.faq-answer p {
  margin: 0;
  color: #546358;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Photo Gallery & Lightbox Styles */
.gallery-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin: -0.4rem 0 1.2rem;
}

.trail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-thumb-btn {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 14px rgba(15, 23, 18, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.gallery-thumb-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 18, 0.16);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb-btn:hover img {
  transform: scale(1.06);
}

.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 18, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-thumb-btn:hover .gallery-zoom-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 12, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 1000px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.lightbox-prev {
  left: -55px;
}

.lightbox-next {
  right: -55px;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-caption {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.lightbox-counter {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
  }
}

/* ---- Full scrollable gallery modal ---- */
.full-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.full-gallery-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.full-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 12, 0.92);
  backdrop-filter: blur(8px);
}

.full-gallery-dialog {
  position: relative;
  z-index: 2;
  width: min(96vw, 1200px);
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.full-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  color: #fff;
  flex-shrink: 0;
}

.full-gallery-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.full-gallery-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.full-gallery-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  white-space: nowrap;
}

.full-gallery-close {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.full-gallery-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.full-gallery-grid {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.full-gallery-grid::-webkit-scrollbar {
  width: 8px;
}

.full-gallery-grid::-webkit-scrollbar-track {
  background: transparent;
}

.full-gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.full-gallery-item {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  width: 100%;
}

.full-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.full-gallery-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .full-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 16px 24px;
  }
  .full-gallery-header {
    padding: 16px;
  }
  .full-gallery-heading h2 {
    font-size: 1.1rem;
  }
}

/* ============================================================
   TD2 — Full Trail Detail Page Redesign
   ============================================================ */

/* ---- Hero ---- */
.td2-hero {
  position: relative;
  width: 100%;
  height: clamp(380px, 52vw, 580px);
  overflow: hidden;
}

.td2-hero-img {
  position: absolute;
  inset: 0;
}

.td2-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.td2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 14, 0.18) 0%,
    rgba(10, 20, 14, 0.35) 40%,
    rgba(10, 20, 14, 0.78) 100%
  );
}

.td2-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
}

.td2-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  transition: color 0.18s;
}

.td2-back:hover {
  color: #fff;
}

.td2-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.td2-area-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.td2-diff-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
}

.td2-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.td2-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.td2-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
}

.td2-stat svg {
  opacity: 0.8;
  flex-shrink: 0;
}

/* ---- Body Layout ---- */
.td2-body {
  padding: 52px 0 80px;
}

.td2-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ---- Main Column ---- */
.td2-main {
  min-width: 0;
}

.td2-section {
  margin-bottom: 48px;
}

.td2-section:last-child {
  margin-bottom: 0;
}

.td2-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.td2-section-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.td2-lead {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--muted);
  margin: 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.6));
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(4px);
}

/* ---- Gallery ---- */
.td2-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.td2-gallery-btn {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  width: 100%;
}

.td2-gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.td2-gallery-btn:hover img {
  transform: scale(1.06);
}

.td2-gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 14, 0.42);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.td2-gallery-btn:hover .td2-gallery-zoom,
.td2-gallery-btn:focus-visible .td2-gallery-zoom {
  opacity: 1;
}

.td2-more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 18, 0.72);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  backdrop-filter: blur(4px);
  gap: 4px;
  transition: background 0.2s;
}

.td2-gallery-btn:hover .td2-more-overlay {
  background: rgba(15, 23, 18, 0.85);
}

.td2-view-all-photos-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.td2-view-all-photos-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #1c3525;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 53, 37, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.td2-view-all-photos-btn:hover {
  background: #254631;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 53, 37, 0.25);
}

.td2-view-all-photos-btn:active {
  transform: translateY(0);
}


/* ---- Lists ---- */
.td2-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td2-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text);
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
  border-radius: 10px;
  border: 1px solid var(--border);
}

.td2-highlights li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
}

.td2-tips li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text);
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
  border-radius: 10px;
  border: 1px solid var(--border);
}

.td2-tips li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ---- Trail Data ---- */
.td2-data-grid {
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.6));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.td2-data-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.td2-data-row:last-child {
  border-bottom: none;
}

.td2-data-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 140px;
  flex-shrink: 0;
  padding-top: 2px;
}

.td2-data-val {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

.td2-flags-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.td2-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  color: var(--text);
}

.td2-verified {
  color: var(--primary);
  font-weight: 700;
}

.td2-needs-review {
  color: #b07d2a;
  font-weight: 700;
}

/* ---- Sidebar ---- */
.td2-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.td2-sidebar-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.7));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.td2-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Quick Facts */
.td2-fact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.td2-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.td2-fact-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.td2-fact > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.td2-fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.td2-fact-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.td2-diff-inline {
  font-weight: 800;
}

/* Map Card */
.td2-map-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: transparent;
  text-align: center;
}

.td2-map-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 14px;
}

.td2-map-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.td2-map-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 18px;
  line-height: 1.5;
}

.td2-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}

.td2-map-btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* Getting There */
.td2-getting-there h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.td2-getting-there p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---- Related Trails ---- */
.td2-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid var(--border);
}

.td2-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.td2-related-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0;
}

.td2-see-all {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s;
}

.td2-see-all:hover {
  color: var(--primary-dark);
}

.td2-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.td2-related-card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.7));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s, box-shadow 0.22s;
}

.td2-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.td2-related-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.td2-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.td2-related-card:hover .td2-related-img img {
  transform: scale(1.05);
}

.td2-related-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
}

.td2-related-info {
  padding: 16px 18px 18px;
}

.td2-related-area {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 5px;
}

.td2-related-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.25;
}

.td2-related-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ---- Prev / Next Navigation ---- */
.td2-prevnext {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.td2-prevnext-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.td2-prevnext-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.7));
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, background 0.18s;
  box-shadow: var(--shadow-soft);
}

.td2-prevnext-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.95);
}

.td2-prevnext-next {
  justify-content: flex-end;
  text-align: right;
}

.td2-prevnext-btn svg {
  color: var(--primary);
  flex-shrink: 0;
}

.td2-prevnext-btn span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.td2-prevnext-btn small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.td2-prevnext-btn strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .td2-layout {
    grid-template-columns: 1fr 300px;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .td2-layout {
    grid-template-columns: 1fr;
  }

  .td2-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .td2-map-card {
    grid-column: 1 / -1;
  }

  .td2-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .td2-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .td2-hero {
    height: clamp(300px, 65vw, 420px);
  }

  .td2-hero-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .td2-hero-content {
    padding-bottom: 28px;
  }

  .td2-body {
    padding: 32px 0 60px;
  }

  .td2-sidebar {
    grid-template-columns: 1fr;
  }

  .td2-map-card {
    grid-column: auto;
  }

  .td2-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .td2-related-grid {
    grid-template-columns: 1fr;
  }

  .td2-prevnext-inner {
    grid-template-columns: 1fr;
  }

  .td2-prevnext-next {
    justify-content: flex-start;
    text-align: left;
  }

  .td2-data-label {
    min-width: 110px;
  }

  .td2-related-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .td2-lead {
    padding: 18px 20px;
    font-size: 0.97rem;
  }
}
