/*
Theme Name: PinGuide
Theme URI:
Author: PinGuide
Description: Curated local guide site — Places, Guides, Maps.
Version: 0.7.0
License: GPL-2.0-or-later
Text Domain: pinguide
*/

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ─────────────────────────────────── */
:root {
  --cream:      #f5f2ec;
  --cream-soft: #f7f5f0;
  --paper:      #faf8f3;
  --ink:        #1a1a1a;
  --ink-soft:   #3a3733;
  --muted:      #8b8780;
  --muted-2:    #a8a39a;
  --coral:      #e0533c;
  --line:       #e6e2d9;
  --footer-bg:  #1c1a17;
  --green:      #cdf25a;
  --peach:      #f8d9b8;
  --ph:         #dad7d0;
  --serif:      'Fraunces', Georgia, serif;
  --sans:       'Inter', -apple-system, system-ui, sans-serif;
  --max-w:      1180px;
  --header-h:   72px;
}

/* ── Base ─────────────────────────────────── */
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
/* Direct children are flex items — keep them full-width so inner max-width centering works */
body > * { width: 100%; min-width: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Navbar ─────────────────────────────────── */
.site-header {
  position: static;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 11px 32px;
  display: flex; align-items: center; gap: 34px;
}
.site-logo {
  font-family: 'Orelega One', var(--serif); font-style: normal; font-weight: 400;
  font-size: 24px; letter-spacing: .01em; flex-shrink: 0;
  color: var(--ink);
}
.site-logo .logo-dot { color: var(--ink); }

.primary-nav { display: flex; align-items: center; }
.primary-nav ul { display: flex; list-style: none; gap: 26px; }
.primary-nav li { list-style: none; }
.primary-nav a,
.primary-nav li a {
  font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: #5c5852; display: block;
}
.primary-nav a:hover, .primary-nav li a:hover { color: var(--ink); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.btn-signin {
  font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #5c5852;
}
.btn-signin:hover { color: var(--ink); }
.btn-membership {
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 999px; display: inline-block;
}
.btn-membership:hover { background: #333; }

/* ── Home — Hero ─────────────────────────────── */
.home-head { background: var(--paper); padding: 30px 0 32px; }
.home-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.hero-h1 {
  font-family: var(--serif); font-weight: 700; font-size: 60px;
  line-height: 1.02; letter-spacing: -.015em;
}
.hero-h1 em { color: var(--coral); font-style: italic; }
.hero-sub { margin-top: 14px; color: var(--muted); font-size: 16px; }

.search-bar {
  margin-top: 22px; display: flex; align-items: center; gap: 12px;
  background: #eceae3; border: 1px solid #e2dfd6; border-radius: 999px;
  padding: 18px 26px; max-width: 760px;
}
.search-bar svg { flex-shrink: 0; color: #9a958c; }
.search-bar input {
  border: 0; background: transparent; outline: 0;
  font-family: var(--sans); font-size: 15px; color: var(--ink); width: 100%;
}
.search-bar input::placeholder { color: #a6a199; }

.filter-row { margin-top: 20px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 12px; }
.filter-label {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap;
}
.filter-divider { width: 1px; height: 30px; background: var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #ddd8cd; background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #4a4640;
}
.chip:hover { border-color: var(--ink); }

/* ── Home — Guides section ─────────────────── */
.guides-sec { background: var(--cream); padding: 28px 0 36px; }
.section-heading {
  font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: -.01em;
}
.section-heading em { font-style: italic; font-weight: 600; }

.guide-grid {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 290px)); gap: 30px;
}
.guide-card { display: block; }
.guide-card-img-wrap {
  aspect-ratio: 4/5; border-radius: 14px; overflow: hidden;
  background: #ddd; box-shadow: 0 6px 18px rgba(0,0,0,.10), 0 0 0 2px #fff;
}
.guide-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--ph); }
.guide-card-title { font-family: var(--serif); font-weight: 700; font-size: 21px; margin-top: 16px; letter-spacing: -.01em; }
.guide-card-author {
  margin-top: 7px; padding-top: 9px; border-top: 1px solid var(--line);
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ── Place cards (archive/home) ─────────────── */
.places-sec { background: var(--paper); padding: 28px 0 40px; border-top: 1px solid var(--line); }
.place-grid {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
.place-card { display: block; }
.place-card-img-wrap {
  aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--ph);
  box-shadow: 0 5px 16px rgba(0,0,0,.09), 0 0 0 2px #fff;
}
.place-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.place-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.place-cover-map { width: 100%; height: 100%; display: block; background-color: var(--ph); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
/* Non-interactive cover maps: hide the grab cursor / interaction affordances. */
.place-cover-map .maplibregl-canvas { cursor: default; }
.place-cover-map .maplibregl-ctrl-attrib { display: none; }
.place-cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-bg, rgba(224,83,60,.08));
  background: linear-gradient(135deg, rgba(224,83,60,.1), rgba(224,83,60,.04));
}
.place-cover-fallback span {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--coral); opacity: .8; letter-spacing: -.01em;
}
.place-card-info { margin-top: 10px; }
.place-card-name { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.place-card-address { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: flex-start; gap: 6px; }
.place-card-address span { flex: 1; min-width: 0; }
.copy-address {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--muted); cursor: pointer; padding: 0; line-height: 0;
  transition: color .12s ease, border-color .12s ease;
}
.copy-address:hover { color: var(--ink); border-color: var(--border-2, #cac7bf); }
.copy-address.copied { color: #2f8f4e; border-color: #2f8f4e; }
.cat-pill {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral);
  background: rgba(224,83,60,.1); padding: 3px 9px; border-radius: 999px; margin-bottom: 5px;
}

/* ── Footer ─────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: #cfcbc3; padding: 40px 0 26px; margin-top: auto; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; gap: 40px;
}
.footer-logo {
  font-family: 'Orelega One', var(--serif); font-style: normal; font-weight: 400;
  font-size: 27px; color: var(--coral); display: block; margin-bottom: 18px; letter-spacing: .01em;
}
.footer-tagline { font-size: 13px; color: #8e8a82; max-width: 320px; line-height: 1.6; }
.footer-privacy {
  display: inline-block; margin-top: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #9c9892;
}
.footer-privacy:hover { color: #fff; }
.footer-col-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 16px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 12px; }
.footer-col-links a {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #cfcbc3;
}
.footer-col-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 28px auto 0; padding: 18px 32px 0;
  border-top: 1px solid #2e2b27;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #6f6b63;
}

/* ── Archive pages ─────────────────────────── */
.archive-wrap { max-width: var(--max-w); margin: 0 auto; padding: 40px 32px 80px; }
.archive-title { font-family: var(--serif); font-weight: 700; font-size: 42px; letter-spacing: -.02em; margin-bottom: 6px; }
.archive-sub { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.archive-empty { color: var(--muted); padding: 3rem 0; text-align: center; font-family: var(--serif); font-style: italic; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-tab {
  padding: 9px 20px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #5c5852;
  border: 1px solid #ddd8cd; background: var(--paper);
}
.filter-tab:hover { border-color: var(--ink); color: var(--ink); }
.filter-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.archive-pagination { margin-top: 40px; display: flex; justify-content: center; }
.archive-pagination .nav-links { display: flex; gap: 6px; }
.archive-pagination .page-numbers {
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.archive-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Guide Detail Page ─────────────────────── */
.guide-bg { background: var(--cream-soft); min-height: 100vh; }
.guide-layout {
  max-width: var(--max-w); margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid; grid-template-columns: 300px 1fr; gap: 54px;
  align-items: start;
}

/* Sidebar */
.guide-sidebar { position: sticky; top: 30px; }
.badge-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.badge-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.tag-new {
  color: var(--coral); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.guide-sidebar-title {
  font-family: var(--serif); font-weight: 700; font-size: 46px;
  line-height: 1.02; letter-spacing: -.02em;
}
.guide-sidebar-sub {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: #9a958c; margin-top: 8px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.guide-author-row { display: flex; align-items: center; gap: 11px; margin: 22px 0; }
.guide-author-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  background: var(--coral); color: #fff;
  font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.guide-author-avatar .pg-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.guide-author-name {
  font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.guide-author-name a { color: var(--ink); }
.guide-author-name a:hover { color: var(--coral); }
.guide-author-stat { font-size: 11px; color: var(--muted-2); }
.guide-tag-film {
  display: inline-block; background: #edeae2; color: #8b8780;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.guide-sidebar-desc { font-style: italic; color: #6f6b63; font-size: 14px; margin: 18px 0 12px; }
.guide-reviewed {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 30px;
}

/* Trailmap */
.trailmap-label {
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.trailmap-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trailmap-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #efece4; border-radius: 999px;
  padding: 12px 16px; cursor: pointer;
  box-shadow: 0 6px 16px -12px rgba(0,0,0,.3);
}
.trailmap-item:hover { border-color: var(--line); }
.trailmap-item.active { border-color: var(--coral); }
.trailmap-item.active .trailmap-item-num { background: var(--coral); }
.trailmap-item-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trailmap-item-name {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #4a4640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Guide main content */
.guide-main {}

/* Hero */
.guide-hero-wrap { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/7; }
.guide-hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-hero-placeholder {
  width: 100%; height: 100%; background: var(--ph);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.nav-tip {
  position: absolute; right: 18px; bottom: 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(4px);
  border-radius: 14px; padding: 11px 18px; text-align: right;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.nav-tip-label {
  font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--coral);
}
.nav-tip-text { font-family: var(--serif); font-style: italic; font-size: 14px; color: #3a3733; margin-top: 2px; }

/* Guide body sections */
.guide-sec-heading {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  color: var(--coral); font-size: 26px; margin: 36px 0 14px; letter-spacing: -.01em;
}
.guide-body-text { font-size: 15px; color: #3f3c37; line-height: 1.75; max-width: 720px; }
.guide-body-text b { color: var(--ink); }

/* Trail divider */
.trail-head { position: relative; }
.trail-divider {
  display: flex; align-items: center; gap: 18px; margin: 46px 0 8px;
}
.trail-divider-line { height: 1px; background: var(--line); flex: 1; }
.trail-divider-title {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  color: var(--coral); font-size: 24px;
}
.trail-actions {
  position: absolute; right: 0; top: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.trail-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid #ddd8cd; background: #fff; border-radius: 999px;
  padding: 11px 22px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #3a3733; cursor: pointer;
}
.trail-btn:hover { border-color: var(--ink); }

/* Trail stops */
.trail-stop { margin-top: 26px; }
.stop-num-row { margin-bottom: 12px; }
.stop-separator { display: none; }
.stop-text-wrap { /* wrapper for clamp + toggle */ }
.stop-text.clamped {
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.stop-readmore {
  margin-top: 8px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  display: none;
}
.stop-readmore.show { display: inline-block; }
.stop-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.stop-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stop-cat {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.stop-cat.green { background: var(--green); color: #3a4710; }
.stop-cat.peach { background: var(--peach); color: #9a5a1c; }
.stop-cat.default { background: rgba(224,83,60,.12); color: var(--coral); }

.stop-title {
  font-family: var(--serif); font-weight: 700; font-size: 30px;
  line-height: 1; margin-top: 6px; letter-spacing: -.01em;
}
.stop-district {
  font-size: 10px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 4px;
}

.stop-body { padding-left: 0; }
.stop-text {
  border-left: 3px solid var(--coral); padding-left: 20px;
  font-style: italic; font-size: 14px; color: #4f4b45; line-height: 1.7;
}
.insider-tip {
  margin-top: 22px;
  border: 1px solid #f3e3de;
  background: linear-gradient(180deg, #fdf4f1, #fbeee9);
  border-left: 3px solid var(--coral);
  border-radius: 10px; padding: 16px 18px;
}
.insider-tip-label {
  font-size: 10px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--coral);
}
.insider-tip-text { font-style: italic; font-size: 13px; color: #6f6b63; margin-top: 4px; }
.insider-tip-head { display: flex; align-items: center; gap: 8px; }
.insider-tip-head .insider-tip-label { margin: 0; }
.insider-tip-img { margin-top: 12px; }
.insider-tip-img img { width: 100%; max-width: 200px; height: auto; border-radius: 8px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,.10); }

/* Round author avatar (shared) */
.pg-avatar { display: inline-flex; flex-shrink: 0; }
.pg-avatar-img { border-radius: 50%; display: block; }
.insider-tip-head .pg-avatar-img { width: 24px; height: 24px; }

/* Guide-only connective narrative line */
.stop-connective {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--ink-soft); line-height: 1.5; margin-bottom: 14px;
}

/* Place page — aggregated insider tips */
.place-tips { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.place-tips h3 {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 16px;
}
.place-tips-list { display: flex; flex-direction: column; gap: 18px; }
.place-tip {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--coral); border-radius: 10px; padding: 14px 16px;
}
.place-tip-img { flex: 0 0 96px; }
.place-tip-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
.place-tip-text { font-style: italic; font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 8px; }
.place-tip-attr { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.place-tip-attr .pg-avatar-img { width: 28px; height: 28px; }
.place-tip-attr a { color: var(--coral); }
.place-tip-attr a:hover { text-decoration: underline; }
.place-tip-from { color: var(--muted-2); }
.place-tip-from a { color: var(--coral); }
@media (max-width: 480px) {
  .place-tip { flex-direction: column; }
  .place-tip-img, .place-tip-img img { width: 100%; flex-basis: auto; height: 180px; }
}

.stop-text-wrap { margin: 14px 0; }

/* Compact image thumbnails on top of the card (fixed squares, wrap) */
.stop-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.stop-img {
  flex: 0 0 84px; width: 84px; height: 84px;
  border-radius: 10px; overflow: hidden; display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06); background: var(--ph);
}
.stop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stop-img .place-cover-map { width: 100%; height: 100%; }

/* Square mini-map + info beside it */
.stop-locrow { display: flex; gap: 14px; align-items: stretch; margin-top: 14px; }
.stop-map {
  flex: 0 0 150px; width: 150px; height: 150px; margin: 0;
  border-radius: 12px; overflow: hidden; background: var(--ph); border: 1px solid rgba(0,0,0,.12);
}
.stop-map .place-cover-map { width: 100%; height: 100%; }
.stop-locinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; justify-content: center; }
.stop-locinfo .place-meta-item { font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .stop-img { flex-basis: 72px; width: 72px; height: 72px; }
  .stop-locrow { flex-direction: column; }
  .stop-map { width: 100%; flex-basis: auto; height: 180px; }
}
.stop-separator { height: 1px; background: var(--line); margin: 42px 0 0 62px; }

/* ── Maps (MapLibre + MapTiler) ───────────── */
.guide-map-wrap { margin-top: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.guide-map { width: 100%; height: 320px; background: var(--ph); }
.place-map-wrap { border-radius: 14px; overflow: hidden; margin-bottom: 20px; border: 1px solid rgba(0,0,0,.12); }
.place-map { width: 100%; height: 300px; background: var(--ph); }

.map-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--ph); color: var(--muted); font-size: 13px; text-align: center; padding: 1.5rem;
}
.map-placeholder-icon { font-size: 1.75rem; }

/* Custom markers */
.pg-marker {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral); color: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: transform .12s ease;
}
.pg-marker.is-partner { background: #2f8f4e; }
.pg-marker.active { transform: scale(1.25); z-index: 5; }

/* Popups */
.pg-popup { font-family: var(--sans); min-width: 150px; }
.pg-popup strong { font-family: var(--serif); font-size: 15px; display: block; margin-bottom: 4px; color: var(--ink); }
.pg-popup-deal {
  font-size: 11px; font-weight: 700; color: #2f8f4e;
  background: rgba(47,143,78,.1); padding: 3px 8px; border-radius: 6px;
  margin-bottom: 6px; display: inline-block;
}
.pg-popup-btn {
  display: inline-block; margin-top: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--coral);
}
.pg-popup-btn:hover { text-decoration: underline; }

/* Partner deal banner on place page */
.place-deal {
  background: rgba(47,143,78,.1); border: 1px solid rgba(47,143,78,.25);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 20px;
  font-size: 14px; color: var(--ink-soft);
}
.place-deal-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #2f8f4e; margin-right: 6px;
}

/* Place photo gallery (up to 5) */
.place-gallery { display: grid; gap: 10px; margin-bottom: 24px; }
.place-gallery-item { border-radius: 12px; overflow: hidden; background: var(--ph); display: block; }
.place-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 1 photo: full width */
.place-gallery-1 { grid-template-columns: 1fr; }
.place-gallery-1 .place-gallery-item { aspect-ratio: 16/10; }
/* 2 photos: side by side */
.place-gallery-2 { grid-template-columns: 1fr 1fr; }
.place-gallery-2 .place-gallery-item { aspect-ratio: 4/5; }
/* 3+ : big lead image + the rest in one row underneath */
.place-gallery-3 { grid-template-columns: repeat(2, 1fr); }
.place-gallery-4 { grid-template-columns: repeat(3, 1fr); }
.place-gallery-5 { grid-template-columns: repeat(4, 1fr); }
.place-gallery-3 .place-gallery-item:first-child,
.place-gallery-4 .place-gallery-item:first-child,
.place-gallery-5 .place-gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.place-gallery-3 .place-gallery-item,
.place-gallery-4 .place-gallery-item,
.place-gallery-5 .place-gallery-item { aspect-ratio: 1/1; }
@media (max-width: 600px) {
  .place-gallery-3, .place-gallery-4, .place-gallery-5 { grid-template-columns: 1fr 1fr; }
}

.place-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.stop-meta-row { margin: 14px 0 0; }
.place-gmaps-btn {
  display: inline-flex; align-items: center;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 999px;
}
.place-gmaps-btn:hover { background: #333; }
.place-meta-item { font-size: 13px; color: var(--muted); }

/* ── Blog list ────────────────────────────── */
.blog-list { display: flex; flex-direction: column; gap: 28px; }
.blog-card { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.blog-card-img-wrap { border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; background: var(--ph); display: block; }
.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted-2); }
.blog-card-meta { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.blog-card-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 10px; }
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--coral); }
.blog-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.blog-card-more { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
@media (max-width: 640px) {
  .blog-card { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Author / curator page ────────────────── */
.author-wrap { max-width: var(--max-w); margin: 0 auto; padding: 48px 32px 80px; }
.author-header {
  display: flex; gap: 24px; align-items: center;
  padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--line);
}
.author-avatar .pg-avatar-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.author-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.author-name { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; margin: 4px 0 8px; }
.author-bio { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 640px; }
.author-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.author-social a {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--border-2, #cac7bf); border-radius: 999px; padding: 6px 14px;
}
.author-social a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.author-section { margin-top: 8px; }
@media (max-width: 600px) {
  .author-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .author-avatar .pg-avatar-img { width: 88px; height: 88px; }
}

/* ── Single article ───────────────────────── */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 48px 32px 80px; }
.article-header { text-align: center; margin-bottom: 32px; }
.article-header .cat-pill { margin-bottom: 16px; }
.article-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em;
  margin: 6px 0 18px;
}
.article-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.article-author { font-weight: 600; color: var(--ink-soft); }
.article-dot { color: var(--muted-2); }

.article-hero { border-radius: 16px; overflow: hidden; margin: 0 0 40px; border: 1px solid rgba(0,0,0,.08); }
.article-hero img { width: 100%; height: auto; display: block; }

.article-content { font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin-bottom: 1.3em; }
.article-content h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; margin: 1.6em 0 .5em; color: var(--ink); }
.article-content h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin: 1.4em 0 .4em; color: var(--ink); }
.article-content ul, .article-content ol { margin: 0 0 1.3em 1.4em; }
.article-content li { margin-bottom: .5em; }
.article-content a { color: var(--coral); text-decoration: underline; }
.article-content a:hover { text-decoration: none; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5em 0; }
.article-content blockquote {
  border-left: 3px solid var(--coral); padding-left: 1.2rem; margin: 1.5em 0;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); line-height: 1.5;
}
.article-content figure { margin: 1.5em 0; }
.article-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.article-content pre { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 14px; margin: 1.3em 0; }
.article-content code { background: var(--paper); border-radius: 4px; padding: 2px 6px; font-size: .9em; }
.article-content pre code { background: none; padding: 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.article-tag { font-size: 11px; font-weight: 600; color: var(--muted); background: rgba(0,0,0,.05); padding: 5px 12px; border-radius: 999px; }
.article-tag:hover { color: var(--ink); }

.article-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-author-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px; }
.article-author-avatar img { border-radius: 50%; display: block; }
.article-author-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.article-author-bio { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 4px; }

.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.article-nav-link { font-size: 13px; font-weight: 600; color: var(--ink-soft); max-width: 48%; line-height: 1.4; }
.article-nav-link:hover { color: var(--coral); }
.article-nav-next { text-align: right; margin-left: auto; }

.article-back { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }

/* ── Place card component (whole pin) ─────── */
.place-card-full {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 14px;
  padding: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

/* Gallery — shared */
.pc-gallery { margin: 12px 0 14px; position: relative; }
.pc-deck { position: relative; }
.scard { margin: 0; overflow: hidden; border-radius: 12px; }
.scard a { display: block; }
.scard img { width: 100%; height: auto; display: block; }

/* Dots / counter */
.pc-deck-ui { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.pc-deck-ui[hidden] { display: none; }
.pc-dots { display: flex; gap: 7px; }
.pc-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--border-2, #cac7bf); cursor: pointer; }
.pc-dot.on { background: var(--coral); }
.pc-dot:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.pc-counter { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }

/* Desktop: place-page-style grid (1 big lead + row of thumbnails) */
.pc-mode-desktop .pc-deck { display: grid; gap: 10px; }
.pc-mode-desktop .scard { display: block; position: relative; aspect-ratio: 1/1; }
.pc-mode-desktop .scard a { display: block; width: 100%; height: 100%; }
.pc-mode-desktop .scard img { width: 100%; height: 100%; object-fit: cover; }
.pc-mode-desktop .pc-deck-ui { display: none; }
.pc-mode-desktop.pc-count-1 .pc-deck { grid-template-columns: 1fr; }
.pc-mode-desktop.pc-count-2 .pc-deck { grid-template-columns: 1fr 1fr; }
.pc-mode-desktop.pc-count-3 .pc-deck { grid-template-columns: repeat(2, 1fr); }
.pc-mode-desktop.pc-count-4 .pc-deck { grid-template-columns: repeat(3, 1fr); }
.pc-mode-desktop.pc-count-5 .pc-deck { grid-template-columns: repeat(4, 1fr); }
/* Lead image spans the row (except when only 1–2 photos) */
.pc-mode-desktop.pc-count-3 .scard:first-child,
.pc-mode-desktop.pc-count-4 .scard:first-child,
.pc-mode-desktop.pc-count-5 .scard:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.pc-mode-desktop.pc-count-1 .scard:first-child { aspect-ratio: 16/9; }

/* Mobile: centre-aligned tilted swipe deck */
.pc-mode-mobile .scard {
  position: absolute; top: 50%; left: 0; right: 0;
  touch-action: pan-y; user-select: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.20); background: var(--ph);
  transition: transform .3s ease, opacity .3s ease;
}

/* Name + meta */
.pc-name { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; line-height: 1.2; }
.pc-name a { color: var(--ink); }
.pc-name a:hover { color: var(--coral); }
.pc-meta-line { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Description + read more */
.pc-desc-wrap { margin-top: 12px; }
.pc-desc { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.pc-desc p { margin-bottom: .85em; }
.pc-desc p:last-child { margin-bottom: 0; }
.pc-desc ul, .pc-desc ol { margin: 0 0 .85em 1.3em; }
.pc-desc li { margin-bottom: .3em; }
.pc-desc a { color: var(--coral); text-decoration: underline; }
.pc-desc.clamped { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pc-readmore {
  margin-top: 8px; padding: 0; background: none; border: 0; cursor: pointer; display: none;
  color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pc-readmore.show { display: inline-block; }

/* Meta row: hours + phone */
.pc-meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.pc-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pc-meta-item svg { color: var(--coral); flex-shrink: 0; }
a.pc-meta-item:hover { color: var(--ink); }

/* Location block: square map + button/address beside */
.pc-loc { display: flex; gap: 14px; align-items: stretch; margin-top: 16px; }
.pc-map { flex: 0 0 150px; width: 150px; height: 150px; border-radius: 12px; overflow: hidden; background: var(--ph); border: 1px solid rgba(0,0,0,.12); }
.pc-map .place-cover-map { width: 100%; height: 100%; }
.pc-loc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: flex-start; }
.pc-address { font-size: 13px; color: var(--muted); line-height: 1.5; display: flex; align-items: flex-start; gap: 6px; }
.pc-address span { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .pc-loc { flex-direction: column; }
  .pc-map { width: 100%; flex-basis: auto; height: 190px; }
}

/* Brand-orange underline (editor format: Formats → Orange underline) */
.pg-underline {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  -webkit-text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.pg-highlight {
  background-color: var(--coral); color: #fff;
  padding: .05em .2em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ── Rich content (ACF WYSIWYG output) ────── */
.guide-body-text h2, .place-description h2, .stop-text h2,
.guide-body-text h3, .place-description h3, .stop-text h3,
.guide-body-text h4, .place-description h4, .stop-text h4 {
  font-family: var(--serif); font-style: normal; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.2; color: var(--ink);
  margin: 1.1em 0 .35em;
}
.guide-body-text h2, .place-description h2, .stop-text h2 { font-size: 1.5rem; }
.guide-body-text h3, .place-description h3, .stop-text h3 { font-size: 1.2rem; }
.guide-body-text h4, .place-description h4, .stop-text h4 { font-size: 1.02rem; }
.guide-body-text p, .place-description p, .stop-text p { margin-bottom: .8em; }
.guide-body-text ul, .place-description ul, .stop-text ul,
.guide-body-text ol, .place-description ol, .stop-text ol { margin: .5em 0 .9em 1.3em; }
.guide-body-text li, .place-description li, .stop-text li { margin-bottom: .35em; }
.guide-body-text a, .place-description a, .stop-text a { color: var(--coral); text-decoration: underline; }
.guide-body-text a:hover, .place-description a:hover, .stop-text a:hover { text-decoration: none; }
.guide-body-text img, .place-description img, .stop-text img {
  max-width: 100%; height: auto; border-radius: 10px; margin: .8em 0;
}
.guide-body-text blockquote, .place-description blockquote {
  border-left: 3px solid var(--coral); padding-left: 1rem; margin: 1em 0;
  font-style: italic; color: var(--muted);
}

/* ── Single Place ─────────────────────────── */
.place-single-wrap { max-width: 720px; margin: 0 auto; padding: 40px 32px 80px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.place-single-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); letter-spacing: -.02em; margin: 8px 0 6px;
}
.place-address { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.place-description { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.place-description p { margin-bottom: 1rem; }
.place-in-guides { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.place-in-guides h3 {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.guide-backlink-list { display: flex; flex-direction: column; gap: 8px; }
.guide-backlink {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 18px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.guide-backlink:hover { border-color: #ccc8be; }
.guide-backlink-arrow { margin-left: auto; color: var(--muted); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 920px) {
  /* Prevent the swipe-deck fly-off (translate ~470px) from pushing the page sideways. */
  html, body { overflow-x: hidden; max-width: 100%; }
  /* Single column; reorder so trailmap sits BELOW the overview map */
  .guide-layout { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .guide-sidebar { position: static; display: contents; }
  .guide-main { display: contents; }
  .sidebar-head   { order: -3; }
  .guide-map-wrap { order: -2; }
  .trailmap-block { order: -1; }
  /* Collapse the large desktop section margins — the flex gap handles spacing now */
  .guide-sec-heading { margin: 4px 0 8px; }
  .guide-body-text { margin-bottom: 0; }
  .trail-divider { margin: 10px 0 4px; }
  .trail-stop { margin-top: 4px; }
  .stop-separator { margin: 18px 0 0 0; }
  /* Place links flow as wrapping chips instead of a vertical list */
  .trailmap-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .trailmap-item { width: auto; }
  .trailmap-item-name { flex: 0 0 auto; white-space: nowrap; overflow: visible; }
  .stop-body { grid-template-columns: 1fr; padding-left: 0; }
  .stop-separator { margin-left: 0; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .trail-actions { position: static; flex-direction: row; margin-top: 16px; }
  .hero-h1 { font-size: 42px; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 16px 20px; gap: 20px; }
  .primary-nav { display: none; }
  .home-wrap, .archive-wrap { padding-left: 20px; padding-right: 20px; }
  .guide-layout { padding: 24px 20px 60px; }
  .guide-sidebar-title { font-size: 34px; }
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-inner { padding: 0 20px; }
  .footer-bottom { padding: 20px 20px 0; }
}
@media (max-width: 400px) {
  .guide-grid { grid-template-columns: 1fr; }
}

/* ── Image lightbox ───────────────────────── */
.pg-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,18,16,.92);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.pg-lightbox.open { display: flex; }
.pg-lb-figure { margin: 0; }
.pg-lb-figure img {
  max-width: 90vw; max-height: 90vh; width: auto; height: auto;
  border-radius: 8px; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.pg-lb-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: 0; color: #fff; font-size: 36px; line-height: 1; cursor: pointer;
}
.pg-lb-prev, .pg-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  font-size: 30px; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pg-lb-prev { left: 24px; } .pg-lb-next { right: 24px; }
.pg-lb-prev:hover, .pg-lb-next:hover { background: rgba(255,255,255,.25); }
@media (max-width: 600px) {
  .pg-lightbox { padding: 16px; }
  .pg-lb-prev, .pg-lb-next { width: 40px; height: 40px; font-size: 24px; }
  .pg-lb-prev { left: 8px; } .pg-lb-next { right: 8px; }
}

/* ── Focus / motion ─────────────────────── */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
