/* ParkPlan Trip Guides — editorial blog stylesheet. Shares the app's core palette
   (forest/sunset/cream) but uses a warmer editorial type pairing suited to long-form reading. */
:root {
  --forest: #1f4d3a;
  --forest-dark: #16362a;
  --forest-light: #2f6b4f;
  --sunset: #d97b3f;
  --sunset-light: #f0a868;
  --cream: #faf6ef;
  --card: #ffffff;
  --ink: #22291f;
  --ink-muted: #6b7266;
  --border: #e4e0d4;
  --shadow: 0 2px 10px rgba(31, 77, 58, 0.08);
  --shadow-lg: 0 10px 34px rgba(31, 77, 58, 0.16);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, "Times New Roman", serif; color: var(--forest-dark); text-wrap: balance; }
a { color: var(--forest); }
img { max-width: 100%; display: block; }

/* ---------- Mini site header / footer (matches parkplan.org's own header) ---------- */
.blog-topbar {
  background: var(--forest-dark); padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.blog-topbar-inner { max-width: 1100px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.blog-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.blog-brand img { width: 38px; height: 38px; border-radius: 8px; }
.blog-brand span { font-family: "Kaushan Script", cursive; color: #fff; font-size: 1.3rem; }
.blog-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.blog-nav a { color: #f0ece0; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.blog-nav a:hover { color: #fff; }
.blog-nav .blog-nav-cta {
  background: var(--sunset); color: #fff !important; padding: 8px 16px; border-radius: 8px;
}

.blog-footer {
  background: var(--forest-dark); color: #cfe0d5; padding: 34px 24px; margin-top: 60px;
  text-align: center; font-size: 0.85rem;
}
.blog-footer a { color: #fff; }
.blog-footer .footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Article shell ---------- */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.article-hero {
  position: relative; height: 62vh; min-height: 380px; max-height: 600px;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--forest);
}
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,54,42,0.05) 0%, rgba(22,54,42,0.85) 92%);
}
.article-hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 40px 24px 34px; width: 100%; }
.article-kicker {
  color: var(--sunset-light); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 10px;
}
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 0 0 10px; line-height: 1.1; }
.article-hero p.dek { color: #eef4ee; font-size: 1.08rem; max-width: 640px; margin: 0; }
.hero-credit { position: absolute; right: 10px; bottom: 6px; z-index: 2; font-size: 0.68rem; color: rgba(255,255,255,0.75); text-decoration: none; }

.article-body { padding: 40px 0 10px; font-size: 1.06rem; }
.article-body > p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.article-body h2 { font-size: 1.7rem; margin: 44px 0 14px; padding-top: 6px; border-top: 1px solid var(--border); padding-top: 26px; }
.article-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 30px; }
.article-body h3 { font-size: 1.24rem; margin: 26px 0 8px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 6px; }

/* Quick-facts strip */
.quickfacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 26px 0;
}
.quickfacts div { background: var(--card); padding: 14px 16px; }
.quickfacts .qf-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: 4px; }
.quickfacts .qf-value { font-weight: 700; color: var(--forest-dark); font-size: 0.95rem; }

/* At-a-glance day table */
.day-glance { display: grid; gap: 10px; margin: 22px 0 34px; }
.day-glance-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; align-items: start;
}
.day-glance-row .dg-day { font-family: "Fraunces", serif; color: var(--sunset); font-weight: 700; font-size: 1.05rem; }
.day-glance-row .dg-summary { color: var(--ink); font-size: 0.94rem; }

/* Inline photos within the article body */
figure.photo { margin: 26px 0; }
figure.photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
figure.photo figcaption { font-size: 0.82rem; color: var(--ink-muted); margin-top: 8px; line-height: 1.4; }
figure.photo figcaption a { color: var(--ink-muted); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.photo-grid figure.photo { margin: 0; }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }

/* Trail write-up cards */
.trail-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin: 20px 0; box-shadow: var(--shadow);
}
.trail-card h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trail-card .trail-stats { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.trail-card .trail-stats span { background: var(--cream); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; }
.trail-card .best-photo-tip { margin-top: 12px; font-size: 0.9rem; background: var(--cream); border-left: 3px solid var(--sunset); padding: 10px 14px; border-radius: 0 8px 8px 0; }

/* Parking / practical tip callouts */
.tip-box {
  background: #fff7ec; border: 1px solid #f0d9b8; border-left: 4px solid var(--sunset);
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 22px 0;
}
.tip-box strong { color: var(--forest-dark); }
.tip-box.forest { background: #eef5f0; border-color: #cfe3d6; border-left-color: var(--forest); }

/* Restaurant / lodging cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 20px 0 30px; }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.info-card h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--forest-dark); }
.info-card .tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.info-card .tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--cream); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; color: var(--ink-muted); }
.info-card p { margin: 0; font-size: 0.88rem; color: var(--ink); }
.info-card-photo { height: 120px; border-radius: 8px; overflow: hidden; margin: -16px -18px 12px; position: relative; }
.info-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px 8px 0 0; }
.info-card-photo-credit {
  position: absolute; right: 4px; bottom: 3px; font-size: 0.62rem; color: rgba(255,255,255,0.85);
  text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.info-card-link { display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--forest); text-decoration: none; }
.info-card-link:hover { text-decoration: underline; }

/* CTA blocks */
.cta-box {
  background: var(--forest); color: #fff; border-radius: var(--radius); padding: 32px 30px;
  margin: 40px 0; text-align: center;
}
.cta-box h3 { color: #fff; margin: 0 0 8px; font-size: 1.4rem; }
.cta-box p { color: #dcebe1; margin: 0 0 18px; }
.cta-btn {
  display: inline-block; background: var(--sunset); color: #fff; text-decoration: none;
  font-weight: 700; padding: 13px 26px; border-radius: 9px; font-size: 1rem;
}
.cta-btn:hover { background: #c56a30; }
.cta-secondary { display: block; margin-top: 12px; font-size: 0.85rem; color: #cfe0d5; }

.related-guides { margin: 40px 0; }
.related-guides .card-grid a.info-card { text-decoration: none; display: block; }

.disclaimer { font-size: 0.78rem; color: var(--ink-muted); margin: 30px 0; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- First-person comprehensive guides (one page per park, Day 1/2/3 sections) ---------- */
.day-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.day-nav a {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-size: 0.85rem; font-weight: 700; color: var(--forest-dark);
  text-decoration: none;
}
.day-nav a:hover { background: var(--cream); }
.author-line { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; }
.author-line .av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--sunset);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: "Fraunces", serif;
}
.author-line span { font-size: 0.85rem; color: var(--ink-muted); }
.skip-box { background: #fdf0ee; border: 1px solid #f1cfc9; border-left: 4px solid #c0503f; border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 22px 0; }
.skip-box strong { color: #8a3627; }

/* Breadcrumbs + nearby-parks block (SEO internal linking) */
.breadcrumbs { font-size: 0.82rem; color: var(--ink-muted); margin: 0 0 14px; }
.breadcrumbs a { color: var(--forest); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.nearby-parks { margin: 34px 0 8px; }
.nearby-parks h2 { margin-bottom: 4px; }
.nearby-parks > p { margin: 0 0 12px; color: var(--ink-muted); }
.nearby-parks .info-card { text-decoration: none; display: block; }
