/* ============================================================
   CTC — Node landing page (Nodes:node)
   Loaded AFTER styles.css. Page-specific: hero, prose section,
   purpose-branched bodies (offers grid OR pages-list OR pages-inline).

   Prefix `nodepage-*` so we don't collide with `.ddetail-*`
   (destinations) or `.pdetail-*` (places) or `.detail-*` (offers).
   ============================================================ */

/* ============================================================
   COLLECTIONS LISTING (Nodes:default)
   Uniform grid (no asymmetric bento) — fits any number of tiles.
   Re-uses the `.dest` styling from index.css for the card body itself
   (image cover, gradient overlay, hover lift, arrow corner). We only
   override the container so the tiles size as uniform 320px-tall cells
   in a 3-col grid instead of the homepage's 1-large + 4-small layout.
   ============================================================ */
.nodepage-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 16px;
}
@media (max-width: 1000px) {
  .nodepage-collections-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }
}
@media (max-width: 600px) {
  .nodepage-collections-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
}

/* ---------- HERO ---------- */
.nodepage-hero {
  position: relative;
  min-height: 480px;
  padding: 64px 0 72px;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.nodepage-hero-overlay {
  position: absolute;
  inset: 0;
  /* Same darkening gradient as destination/place heroes — keeps the
     landing surfaces visually consistent. */
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.30) 0%,
    rgba(10, 10, 10, 0.55) 60%,
    rgba(10, 10, 10, 0.78) 100%);
  pointer-events: none;
}
.nodepage-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.nodepage-breadcrumb {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
}
.nodepage-breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.nodepage-breadcrumb a:hover { color: #ffffff; }
.nodepage-breadcrumb .sep { color: rgba(255, 255, 255, 0.32); }
.nodepage-breadcrumb .current { color: #ffffff; }

.nodepage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 88, 12, 0.16);
  color: #ffd9bf;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.nodepage-title {
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.nodepage-meta {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}
.nodepage-meta strong { color: #ffffff; font-weight: 700; }

@media (max-width: 720px) {
  .nodepage-hero { min-height: 360px; padding: 44px 0 56px; }
  .nodepage-title { margin-bottom: 14px; }
  .nodepage-meta { font-size: 14px; }
}

/* ---------- ABOUT PROSE ----------
   Identical shape to destinations/places — same 760px column, same
   typography. Mirrored deliberately so admins can paste the same
   rich-text content across all "landing" surfaces. */
.nodepage-prose-section { padding: 72px 0 28px; }
.nodepage-prose {
  max-width: 760px;
  margin: 0 auto;
}
.nodepage-prose .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
  display: inline-block;
}
.nodepage-prose-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.nodepage-prose-body h2,
.nodepage-prose-body h3,
.nodepage-prose-body h4 {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.nodepage-prose-body h2 { font-size: 28px; }
.nodepage-prose-body h3 { font-size: 22px; }
.nodepage-prose-body h4 { font-size: 18px; }
.nodepage-prose-body p { margin-bottom: 16px; }
.nodepage-prose-body ul,
.nodepage-prose-body ol { margin: 0 0 18px 22px; }
.nodepage-prose-body li { margin-bottom: 6px; }
.nodepage-prose-body a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nodepage-prose-body a:hover { color: var(--orange); }
.nodepage-prose-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-style: italic;
}
.nodepage-prose-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -14px rgba(10, 10, 10, 0.25);
  margin: 16px 0;
}

/* ---------- SECTION HEADINGS (shared by all branches) ---------- */
.nodepage-section-head {
  margin-bottom: 36px;
  max-width: 720px;
}
.nodepage-section-head .label { margin-bottom: 12px; }
.nodepage-section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.nodepage-section-title em {
  font-style: normal;
  color: var(--orange);
}
.nodepage-section-sub {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mute);
}

.nodepage-foot {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- PURPOSE = OFFERS — tour cards grid ----------
   Same 3/2/1 responsive grid used on the destination and place detail
   tours strips. TourCardControl outputs `.tour` which already has its
   own styling in styles.css, so we only need the container. */
.nodepage-tours-section { padding: 80px 0 96px; }
.nodepage-tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .nodepage-tours-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .nodepage-tours-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- PURPOSE = OFFERS — empty state ---------- */
.nodepage-empty {
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}
.nodepage-empty .nodepage-section-head { display: none; }
.nodepage-empty-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--orange);
  border: 1px solid var(--rule);
  border-radius: 50%;
  margin-bottom: 22px;
}
.nodepage-empty .nodepage-section-title { margin-bottom: 12px; }
.nodepage-empty .nodepage-section-sub {
  max-width: 520px;
  margin: 0 auto 4px;
}

/* ---------- PURPOSE = PAGES, render_as_list = 1 — page cards grid ---------- */
.nodepage-pages-section { padding: 72px 0 96px; }
.nodepage-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .nodepage-pages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .nodepage-pages-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Page card — text-first (no hero image, pages are typically prose-heavy).
   Subtle hover lift + accent on the title to signal it's clickable. */
.nodepage-page-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-fast);
  min-height: 200px;
}
.nodepage-page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(10, 10, 10, 0.25);
  border-color: rgba(234, 88, 12, 0.35);
}
.nodepage-page-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.nodepage-page-card:hover .nodepage-page-card-title { color: var(--orange-deep); }
.nodepage-page-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  margin-bottom: 16px;
}
.nodepage-page-card-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: auto;
}

/* ---------- PURPOSE = PAGES, render_as_list = 0 — inline-expanded ----------
   Each attached page renders as its own article with title + body, stacked
   vertically. Single column (max ~760px) so prose stays readable. */
.nodepage-inline-section { padding: 56px 0 96px; }
.nodepage-inline-page {
  max-width: 820px;
  margin: 0 auto 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.nodepage-inline-page:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.nodepage-inline-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 22px;
}
/* The body re-uses the same prose styling as .nodepage-prose-body so
   admins can paste the same kind of rich-text content. */
.nodepage-inline-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.nodepage-inline-body h2,
.nodepage-inline-body h3,
.nodepage-inline-body h4 {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.nodepage-inline-body h2 { font-size: 26px; }
.nodepage-inline-body h3 { font-size: 21px; }
.nodepage-inline-body h4 { font-size: 18px; }
.nodepage-inline-body p { margin-bottom: 16px; }
.nodepage-inline-body ul,
.nodepage-inline-body ol { margin: 0 0 18px 22px; }
.nodepage-inline-body li { margin-bottom: 6px; }
.nodepage-inline-body a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nodepage-inline-body a:hover { color: var(--orange); }
.nodepage-inline-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-style: italic;
}
.nodepage-inline-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -14px rgba(10, 10, 10, 0.25);
  margin: 16px 0;
}
