/* ============================================================
   EMERALD — subpage components (loaded on generated pages)
   ============================================================ */

.subpage { background: var(--ink); }

.nav-back { text-decoration: none; }

/* ---- page hero ---- */
.page { padding-top: 5.5rem; }
.page-hero { padding: 5rem 0 3.5rem; }
.crumbs {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mist); margin-bottom: 2.2rem;
}
.crumbs a { color: var(--mist); text-decoration: none; transition: color 0.25s; }
.crumbs a:hover { color: var(--emerald); }
.crumbs i { font-style: normal; color: var(--emerald); margin: 0 0.6rem; }
.crumbs span { color: var(--fog); }
.page-title {
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.0;
  letter-spacing: -0.01em; color: var(--snow); margin: 1rem 0 1.8rem;
}
.page-title em { font-style: italic; color: var(--emerald); }
.lede {
  font-family: var(--serif); font-weight: 320;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.55;
  color: var(--fog); max-width: 720px;
}

.stamp {
  margin-top: 1.6rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--emerald);
  display: inline-block; border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 999px; padding: 0.4rem 1rem;
}

/* ---- essentials strip ---- */
.essentials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin: 1rem 0 3.5rem;
}
.ess { background: var(--ink-2); padding: 1.4rem 1.6rem; }
.ess span {
  display: block; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald);
  margin-bottom: 0.5rem;
}
.ess b { font-weight: 400; color: var(--fog); font-size: 0.92rem; line-height: 1.45; }
.ess a { color: var(--snow); text-decoration: underline; text-decoration-color: var(--emerald); text-underline-offset: 3px; }
.ess a:hover { color: var(--emerald); }

/* ---- prose ---- */
.prose { max-width: 760px; margin-bottom: 4rem; }
.prose p { font-size: 1.02rem; color: var(--fog); margin-bottom: 1.4rem; }

/* ---- map ---- */
.map-wrap { margin: 0 0 4.5rem; }
.map-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1rem;
}
.map-head .kicker { margin-bottom: 0; }
.map-note { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--mist); }
.map-frame {
  height: 440px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--ink-2); z-index: 1;
}
.leaflet-container { background: #0d1826; font-family: var(--sans); }
.leaflet-control-attribution { background: rgba(10, 20, 34, 0.7) !important; color: var(--mist) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--mist) !important; }
.pin-dot {
  display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--emerald); border: 2px solid var(--ink);
  box-shadow: 0 0 0 2px var(--emerald), 0 0 14px rgba(61, 220, 151, 0.6);
}
.leaflet-popup-content-wrapper {
  background: var(--panel); color: var(--fog); border-radius: 4px;
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(4, 10, 18, 0.7);
}
.leaflet-popup-tip { background: var(--panel); }
.leaflet-popup-content { font-family: var(--sans); font-size: 0.85rem; margin: 14px 16px; line-height: 1.5; }
.leaflet-popup-content b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 460; color: var(--snow); margin-bottom: 2px; }
.leaflet-popup-content .pp-addr { color: var(--mist); font-size: 0.78rem; display: block; margin-bottom: 6px; }
.leaflet-popup-content a {
  color: var(--emerald); text-decoration: none;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
}
.leaflet-container a.leaflet-popup-close-button { color: var(--mist); }

/* ---- stops ---- */
.stops-head { margin-bottom: 2rem; }
.stops-head .kicker { margin-bottom: 0; }
.stops { border-top: 1px solid var(--line); margin-bottom: 4rem; }
.stop {
  display: grid; grid-template-columns: 70px 1fr; gap: 2rem;
  padding: 2.2rem 0; border-bottom: 1px solid var(--line);
}
.stop-num {
  font-family: var(--mono); font-size: 0.8rem; color: var(--emerald);
  letter-spacing: 0.15em; padding-top: 0.35rem;
}
.stop-tag {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.stop h3 {
  font-family: var(--serif); font-weight: 440; font-size: 1.5rem;
  color: var(--snow); margin-bottom: 0.6rem;
}
.stop p { font-size: 0.94rem; color: var(--mist); max-width: 640px; }
.stop-foot {
  display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: baseline;
  margin-top: 1rem;
}
.stop-addr { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--fog); }
.stop-link {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--emerald); text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.stop-link:hover { border-bottom-color: var(--emerald); }
.stop-link.dim { color: var(--mist); }
.stop-link.dim:hover { color: var(--fog); border-bottom-color: var(--mist); }

/* ---- tip block ---- */
.tip-block {
  border-left: 2px solid var(--emerald); background: var(--ink-2);
  padding: 1.8rem 2.2rem; margin-bottom: 5rem; max-width: 760px;
}
.tip-label {
  display: block; font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald);
  margin-bottom: 0.7rem;
}
.tip-block p { font-family: var(--serif); font-weight: 340; font-size: 1.15rem; line-height: 1.6; color: var(--fog); }

/* ---- trip pages ---- */
.trip-hero { padding-bottom: 0; }
.trip-banner { margin-top: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trip-banner svg { display: block; width: 100%; height: clamp(220px, 32vw, 380px); }
.plan-band { padding: 5rem 0; margin: 3.5rem 0 4.5rem; }
.plan-band .kicker { color: var(--emerald-deep); }

.ntk { max-width: 820px; margin-bottom: 5rem; }
.ntk ul { list-style: none; margin: 1.6rem 0 2.4rem; }
.ntk li {
  position: relative; padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem; color: var(--mist);
}
.ntk li::before {
  content: "✦"; position: absolute; left: 0.2rem; color: var(--emerald);
  font-size: 0.7rem; top: 1.1rem;
}
.ntk-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- index grids ---- */
.idx-card { text-decoration: none; display: block; }
.idx-more {
  display: inline-block; margin-top: 1.4rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  color: var(--emerald);
}
.idx-row { text-decoration: none; }
.idx-row .menu-price { color: var(--emerald); font-size: 1.1rem; }
.trips-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem; padding-bottom: 2rem;
}
.idx-trip { text-decoration: none; display: block; flex: none; }

/* ---- prev / next ---- */
.pagenav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-bottom: 6rem;
}
.pn {
  background: var(--ink); padding: 1.6rem 1.8rem; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.35rem;
  transition: background 0.3s;
}
.pn:hover { background: var(--panel); }
.pn span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mist);
}
.pn b { font-family: var(--serif); font-weight: 440; font-size: 1.15rem; color: var(--snow); }
.pn.next { text-align: right; align-items: flex-end; }
.pn.all { justify-content: center; }
.pn.all span { color: var(--emerald); }
.pn.empty { background: var(--ink); }

/* ---- this weekend ---- */
.pick-day { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--gold); }
.stale-note {
  border: 1px dashed rgba(255, 217, 160, 0.4); background: rgba(255, 217, 160, 0.05);
  color: var(--fog); font-size: 0.9rem;
  padding: 1.1rem 1.5rem; margin-bottom: 2.5rem;
}
.stale-note b { color: var(--gold); font-weight: 500; }
.nl-band { padding-bottom: 5rem; }
.nl-band .newsletter { max-width: 640px; }

@media (max-width: 900px) {
  .stop { grid-template-columns: 1fr; gap: 0.4rem; }
  .pagenav { grid-template-columns: 1fr; }
  .pn.next { text-align: left; align-items: flex-start; }
  .map-frame { height: 340px; }
}
