/* Parks Path Park Explorer: pine/cream cut-paper chrome over a MapLibre terrain map. */
.pe-root {
  --pe-ink: #1e2a2f; --pe-paper: #fbf5ea; --pe-line: #e2d6c1; --pe-plum: #1f6b2e; --pe-wine: #0a3a48;
  --pe-sand: #f28a3b; --pe-glow: #e8691e; --pe-teal: #0e4a5c; --pe-teal-tint: #dce7ea;
  /* v2 tokens (detail panel, list groups): a re-theme only needs to override these. */
  --pe-muted: #55636a; --pe-ink-2: #48565c; --pe-accent: var(--pe-glow); --pe-accent-ink: #0e4a5c; --pe-accent-2: var(--pe-sand);
  --pe-on-accent: #ffffff; --pe-card: #ffffff; --pe-sel: #dce7ea; --pe-warn-bg: #fff4ec; --pe-star-off: #d5c7ae;
  --pe-shade: 45, 45, 45; --pe-skeleton: #f1e7d6; --pe-skeleton-2: #f1e7d6;
  /* Category colors (Pine Green / Sky Blue family). Trail Orange (--pe-accent) is for actions only. */
  --pe-cat-attraction: #0e4a5c; --pe-cat-campground: #1f6b2e; --pe-cat-trail: #1f6b2e; --pe-cat-trailhead: #0a3a48;
  --pe-cat-visitor: #0e4a5c; --pe-cat-hotel: #4a5a6a;
  --pe-bn-bg: var(--pe-card); --pe-bn-line: var(--pe-line); --pe-bn-tint: var(--pe-teal-tint); --pe-closed: #9f1d1d; --pe-closed-bg: #fdecec;
  position: absolute; inset: 0; z-index: 40; overflow: hidden; background: #f1e7d6;
  opacity: 0; transform: scale(1.015); transition: opacity .38s ease, transform .5s cubic-bezier(.2,.8,.2,1);
  font-family: inherit; color: var(--pe-ink);
}
.pe-root.pe-visible { opacity: 1; transform: none; }
.pe-root.pe-leaving { opacity: 0; transform: scale(1.02); pointer-events: none; }
.pe-root [hidden] { display: none !important; }
.pe-root .pe-map, .pe-root .pe-map.maplibregl-map { position: absolute; inset: 0; }
/* Sit at the left of the map. left: 112px used to clear a hanging wordmark that has been retired. */
.pe-top { position: absolute; top: 18px; left: 16px; right: 56px; z-index: 8; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  container-type: inline-size; container-name: pe-top; }
.pe-top > * { pointer-events: auto; }
.pe-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%;
  background: var(--pe-plum); color: #fbf5ea; padding: 6px 8px 6px 14px; border-radius: 14px;
  box-shadow: 0 8px 22px rgba(45, 45, 45, .32); }
.pe-heading { min-width: 0; flex: 0 0 auto; margin-right: 0; max-width: calc(100% - 150px); }
.pe-title { margin: 0; font-family: "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; font-size: 18px; line-height: 1.15; font-weight: 800; letter-spacing: .01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28ch; }
.pe-seg { display: inline-flex; border-radius: 999px; background: rgba(0,0,0,.22); padding: 2px; }
.pe-seg button { border: 0; background: transparent; color: #fbf5ea; font: 600 12px/1 inherit; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.pe-seg button.on { background: var(--pe-teal); color: #ffffff; }
.pe-btn { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fbf5ea; border-radius: 999px; padding: 6px 11px; font: 600 12px/1 inherit; cursor: pointer; }
.pe-btn.on, .pe-btn[aria-pressed="true"] { background: var(--pe-glow); border-color: var(--pe-glow); color: #1E2A2F; }
.pe-btn:hover { border-color: #fff; }
.pe-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.pe-chip { --c: #1e2a2f; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--pe-line); background: rgba(248, 243, 234,.94);
  color: #48565c; border-radius: 999px; padding: 5px 10px; font: 600 12px/1 inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(45, 45, 45,.12); }
.pe-chip .pe-chip-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); background: transparent; }
.pe-chip.on { color: var(--pe-ink); border-color: var(--c); }
.pe-chip.on .pe-chip-dot { background: var(--c); }
.pe-chip-n { font-weight: 500; color: #55636a; }
.pe-chip-saved.on { background: #fdeedf; border-color: #f28a3b; }
.pe-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: rgba(248, 243, 234,.96); border: 1px solid var(--pe-line);
  border-radius: 10px; padding: 6px 10px; font-size: 12px; color: #48565c; box-shadow: 0 2px 8px rgba(45, 45, 45,.12); }
.pe-status-error { border-color: #ef9a9a; color: #b71c1c; }
.pe-spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--pe-sand); border-top-color: var(--pe-wine); animation: pe-spin .8s linear infinite; }
@keyframes pe-spin { to { transform: rotate(360deg); } }
.pe-curatebar { align-self: flex-start; display: flex; align-items: center; gap: 10px; background: #1e2a2f; color: #fbf5ea; border-radius: 10px; padding: 6px 10px; font-size: 12px; }
.pe-curatebar .pe-btn { border-color: var(--pe-sand); }
.pe-link { border: 0; background: none; color: var(--pe-wine); font: 600 12px/1.2 inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.pe-list { position: absolute; z-index: 2; left: 10px; top: 150px; bottom: 34px; width: 300px; display: flex; flex-direction: column;
  background: rgba(248, 243, 234,.97); border: 1px solid var(--pe-line); border-radius: 14px; box-shadow: 0 10px 26px rgba(45, 45, 45,.2); overflow: hidden; }
.pe-sheet-handle { display: none; }
.pe-sheet-head, .pe-sheet-title, .pe-sheet-search { display: none; }
.pe-search { display: flex; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid var(--pe-line); }
.pe-search input { flex: 1; min-width: 0; border: 1px solid var(--pe-line); border-radius: 999px; padding: 7px 12px; font: 13px inherit; background: #fff; }
.pe-search input:focus { outline: 2px solid var(--pe-sand); }
.pe-nav-search { display: flex; align-items: center; flex: 0 1 240px; max-width: 280px; min-width: 80px; }
.pe-nav-search .pe-search { flex: 1; min-width: 0; padding: 0; border: 0; gap: 6px; }
.pe-nav-search .pe-search input { background: #fff; color: #1e2a2f; border-color: rgba(255,255,255,.45); height: 32px; min-height: 32px; padding: 0 12px; box-sizing: border-box; }
.pe-nav-search .pe-count { color: #fbf5ea; font-size: 11px; font-weight: 600; white-space: nowrap; }
@container pe-top (max-width: 520px) {
  .pe-nav-search .pe-count { display: none; }
  .pe-nav-search { min-width: 80px; flex: 0 1 140px; max-width: 160px; }
}
.pe-d-dir { margin: 2px 0 12px; }
.pe-pk-dir { margin: 0 0 14px; }
.pe-pk-dir-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-act-dir { text-decoration: none; }
.pe-count { font-size: 11px; color: #55636a; white-space: nowrap; }
.pe-items { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1; }
.pe-item { display: flex; gap: 9px; align-items: flex-start; padding: 7px 12px; cursor: pointer; border-left: 3px solid transparent; }
.pe-item:hover, .pe-item.hl, .pe-item:focus-visible { background: var(--pe-teal-tint); border-left-color: var(--pe-teal); outline: none; }
.pe-item.pe-hidden { opacity: .5; }
.pe-item-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex: none; box-shadow: 0 0 0 2px #fff; }
.pe-item-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.pe-item-sub { font-size: 11px; color: #55636a; margin-top: 2px; line-height: 1.3; }
.pe-item-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pe-item-chip { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; line-height: 1; color: var(--pe-teal); background: var(--pe-paper); border: 1px solid var(--pe-teal); border-radius: 999px; padding: 3px 7px; }
.pe-item-chip-permit { color: var(--pe-teal); }
.pe-item-note { font-size: 11px; color: var(--pe-ink-2); margin-top: 3px; line-height: 1.35; }
.pe-item-access, .pe-pk-place-access, .pe-d-access { margin: 2px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--pe-muted); font-weight: 600; }
.pe-d-access { margin: 0 0 8px; }

.pe-star { color: #f28a3b; }
.pe-saved-tag { margin-left: 6px; font-size: 10px; font-weight: 700; color: #8a5a00; background: #fdeedf; border-radius: 6px; padding: 1px 5px; }
.pe-empty { padding: 14px; font-size: 12px; color: #55636a; }

.pe-tip { position: absolute; z-index: 4; pointer-events: none; transform: translate(12px, -130%); background: #1e2a2f; color: #fbf5ea;
  font-size: 12px; padding: 5px 8px; border-radius: 8px; max-width: 260px; box-shadow: 0 4px 10px rgba(0,0,0,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-toast { position: absolute; z-index: 5; left: 50%; bottom: 46px; transform: translateX(-50%); background: #1e2a2f; color: #fbf5ea;
  padding: 9px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

.pe-popup .maplibregl-popup-content { background: var(--pe-paper, #fbf5ea); border-radius: 12px; padding: 12px 14px 10px; box-shadow: 0 10px 28px rgba(45, 45, 45,.3); font-family: inherit; }
.pe-popup .maplibregl-popup-close-button { font-size: 18px; color: #1e2a2f; right: 4px; top: 2px; }
.pe-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #fbf5ea; }
.pe-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: #fbf5ea; }
.pe-pop { color: #1e2a2f; }
.pe-pop-head { display: flex; gap: 6px; align-items: center; margin-right: 16px; }
.pe-pop-cat { --c: #1e2a2f; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--c); border-radius: 6px; padding: 2px 6px; }
.pe-pop-feat { font-size: 11px; font-weight: 700; color: #0e4a5c; }
.pe-pop-hidden { font-size: 11px; font-weight: 700; color: #b71c1c; }
.pe-pop-name { margin: 6px 0 2px; font-family: "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: .01em; }
.pe-pop-info { margin: 0 0 4px; font-size: 12px; color: #48565c; }
.pe-pop-note { margin: 4px 0; font-size: 12px; color: #1e2a2f; }
.pe-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pe-act { display: inline-flex; align-items: center; border: 1px solid #e2d6c1; background: #fff; color: #1e2a2f; border-radius: 10px; padding: 5px 10px;
  font: 600 12px/1.1 inherit; cursor: pointer; text-decoration: none; }
.pe-act:hover { background: #dce7ea; }
.pe-act-book { background: #e8691e; color: #1E2A2F; border-color: #e8691e; }
.pe-act-book:hover { background: #e65400; }
.pe-act-save.on { background: #fdeedf; border-color: #f28a3b; color: #7a4f00; }
.pe-pop-disc, .pe-pop-src { margin: 6px 0 0; font-size: 10px; color: #55636a; }
.pe-tripmenu { margin-top: 6px; border: 1px solid #e2d6c1; border-radius: 10px; background: #fff; overflow: hidden; }
.pe-tripopt { display: flex; width: 100%; gap: 8px; align-items: center; border: 0; background: none; padding: 7px 10px; font: 12px inherit; text-align: left; cursor: pointer; }
.pe-tripopt:hover { background: #dce7ea; }
.pe-trip-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pe-trip-n { margin-left: auto; color: #55636a; font-size: 11px; }
.pe-tripnew { color: #1e2a2f; font-weight: 600; border-top: 1px solid #e2d6c1; }
.pe-profile { margin-top: 6px; }
.pe-profile-svg { width: 100%; height: 64px; display: block; background: #f1e7d6; border-radius: 8px; }
.pe-profile-area { fill: rgba(0, 144, 173, .22); }
.pe-profile-line { fill: none; stroke: #0e4a5c; stroke-width: 1.6; }
.pe-profile-stats, .pe-profile-loading { font-size: 11px; color: #48565c; margin-top: 3px; display: block; }
.pe-curate-box { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #f28a3b; }
.pe-curate-title { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #0e4a5c; font-weight: 700; }
.pe-curate-form, .pe-addform { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pe-curate-form input, .pe-curate-form textarea, .pe-addform input, .pe-addform textarea, .pe-addform select {
  border: 1px solid #e2d6c1; border-radius: 8px; padding: 6px 8px; font: 12px inherit; background: #fff; }
.pe-curating .pe-bar { box-shadow: 0 0 0 2px #f5a623, 0 8px 22px rgba(45, 45, 45, .32); }

.pe-root .maplibregl-ctrl-group { border-radius: 10px; box-shadow: 0 2px 10px rgba(45, 45, 45,.2); }
.pe-root .maplibregl-ctrl-group button + button { border-top-color: #e2d6c1; }
.pe-root .maplibregl-ctrl-scale { border-color: #1e2a2f; color: #1e2a2f; background: rgba(248, 243, 234,.85); }
.pe-root .maplibregl-ctrl-attrib { background: rgba(248, 243, 234,.9); font-size: 10px; }
.pe-root .maplibregl-ctrl-attrib a { color: #1e2a2f; }

/* The card's Explore Park button and clickable park name. */
.np-explore { border: 1px solid #1e2a2f; background: #ffffff; color: #1e2a2f; border-radius: 10px; padding: 6px 11px; font: 600 12px/1 inherit; cursor: pointer; margin-left: auto; margin-right: 6px; white-space: nowrap; }
.np-explore:hover { background: #dce7ea; }
.np-name-link { cursor: pointer; }
.np-name-link:hover { text-decoration: underline; text-decoration-color: #f28a3b; text-underline-offset: 3px; }

@media (max-width: 760px), (max-height: 500px) {
  .pe-root { position: fixed; inset: 0; z-index: 1000; }
  .pe-root { --pe-sheet-peek: 24dvh; --pe-sheet-half: 50dvh; --pe-sheet-full: 90dvh; }
  .pe-top { left: max(8px, env(safe-area-inset-left, 0px)); right: max(52px, calc(52px + env(safe-area-inset-right, 0px))); top: max(8px, env(safe-area-inset-top, 0px)); gap: 6px; }
  .pe-bar { padding: 6px 8px; gap: 6px; border-radius: 12px; }
  .pe-title { font-size: 16px; max-width: none; }
  .pe-kicker { display: none; }
  .pe-seg button { padding: 5px 7px; font-size: 11px; }
  .pe-btn { padding: 5px 8px; font-size: 11px; }
  .pe-chips { flex-wrap: nowrap; overflow-x: auto; max-width: calc(100vw - 64px); padding-bottom: 2px; scrollbar-width: none; }
  .pe-chip { flex: none; }
  .pe-list { left: 0; right: 0; width: auto; top: auto; bottom: 0; height: var(--pe-sheet-peek, 24dvh); border-radius: 16px 16px 0 0; transition: height .28s ease; padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 5; }
  .pe-root.pe-sheet-open .pe-list { height: var(--pe-sheet-half, 50dvh); }
  .pe-root.pe-sheet-full .pe-list { height: var(--pe-sheet-full, 90dvh); }
  .pe-sheet-handle { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 0; background: none; padding: 10px 0 6px; cursor: pointer; touch-action: none; }
  .pe-sheet-handle span { display: block; width: 44px; height: 5px; border-radius: 3px; background: #f28a3b; margin: 0 auto; }
  .pe-root .maplibregl-ctrl-bottom-left, .pe-root .maplibregl-ctrl-bottom-right { bottom: var(--pe-sheet-h, var(--pe-sheet-peek, 24dvh)); transition: bottom .28s ease; }
  .pe-root.pe-sheet-open .maplibregl-ctrl-bottom-left, .pe-root.pe-sheet-open .maplibregl-ctrl-bottom-right { bottom: var(--pe-sheet-h, var(--pe-sheet-half, 50dvh)); }
  .pe-root.pe-sheet-full .maplibregl-ctrl-bottom-left, .pe-root.pe-sheet-full .maplibregl-ctrl-bottom-right { bottom: var(--pe-sheet-h, var(--pe-sheet-full, 90dvh)); }
  .pe-root.pe-detail-open .maplibregl-ctrl-bottom-left, .pe-root.pe-detail-open .maplibregl-ctrl-bottom-right { bottom: var(--pe-sheet-h, var(--pe-sheet-half, 50dvh)); }
  .pe-toast { bottom: calc(var(--pe-sheet-h, var(--pe-sheet-peek, 24dvh)) + 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .pe-root, .pe-list { transition: none; }
}

/* ---------- Explorer v2: grouped top-rated list, show-all, detail panel ---------- */
.pe-chip-all { background: var(--pe-ink); color: var(--pe-paper); border-color: var(--pe-ink); }
.pe-chip-all.on { background: var(--pe-accent); border-color: var(--pe-accent); color: var(--pe-paper); }
.pe-group { display: flex; align-items: center; gap: 7px; padding: 9px 12px 4px; position: sticky; top: 0; z-index: 1; background: var(--pe-paper);
  border-top: 1px solid var(--pe-line); font-size: 11px; }
.pe-group:first-child { border-top: 0; }
.pe-group-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pe-group-name { font-family: "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--pe-ink); }
.pe-group-n { color: var(--pe-muted); }
.pe-showall { margin-left: auto; border: 1px solid var(--pe-accent); background: var(--pe-card); color: var(--pe-accent-ink); border-radius: 999px; padding: 3px 9px; font: 700 11px/1.1 inherit; cursor: pointer; white-space: nowrap; }
.pe-showall:hover, .pe-showall:focus-visible { background: var(--pe-accent); color: var(--pe-paper); outline: none; }
.pe-showall[aria-pressed="true"] { border-color: var(--pe-wine); color: var(--pe-wine); }
.pe-item.sel { background: var(--pe-sel); border-left-color: var(--pe-accent); }
.pe-item-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; background: var(--pe-line); }
.pe-rank { display: inline-block; min-width: 20px; margin-right: 5px; font-size: 10px; font-weight: 800; color: var(--pe-accent-ink); }
.pe-prof-tag { margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--pe-wine); background: var(--pe-teal-tint); border-radius: 6px; padding: 1px 5px; }

.pe-detail { position: absolute; z-index: 6; top: 10px; right: 10px; bottom: 34px; width: 380px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--pe-paper); border: 1px solid var(--pe-line); border-radius: 14px; box-shadow: 0 14px 34px rgba(var(--pe-shade), .3); color: var(--pe-ink); }
.pe-root.pe-detail-open .pe-top { right: 436px; }
.pe-root.pe-detail-open .maplibregl-ctrl-top-right { right: 392px; }
.pe-d-close { position: absolute; z-index: 3; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(var(--pe-shade), .72); color: var(--pe-paper); font-size: 20px; line-height: 1; cursor: pointer; }
.pe-d-close:hover { background: var(--pe-ink); }
.pe-car { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--pe-line); border-radius: 14px 14px 0 0; }
.pe-car-loading { background: linear-gradient(90deg, var(--pe-skeleton), var(--pe-skeleton-2), var(--pe-skeleton)); background-size: 200% 100%; animation: pe-shimmer 1.2s linear infinite; }
@keyframes pe-shimmer { to { background-position: -200% 0; } }
.pe-car-track { display: flex; height: 100%; transition: transform .35s ease; }
.pe-car-slide { flex: 0 0 100%; margin: 0; position: relative; height: 100%; }
.pe-car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-car-broken img { visibility: hidden; }
.pe-car-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 5px; font-size: 10px; color: var(--pe-paper); background: linear-gradient(transparent, rgba(var(--pe-shade), .78)); }
.pe-car-credit a { color: var(--pe-paper); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); }
.pe-car-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--pe-paper); color: var(--pe-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.pe-car-prev { left: 8px; } .pe-car-next { right: 8px; }
@media (hover: hover) and (pointer: fine) {
  .pe-car-nav { opacity: 0; transition: opacity .15s ease; }
  .pe-car:hover .pe-car-nav, .pe-car:focus-within .pe-car-nav { opacity: 1; }
}
.pe-car-count {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(30, 42, 47, .62);
  color: #fbf5ea;
  font: 700 11px/1 "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif;
  letter-spacing: .04em;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(14, 74, 92, .2);
}
.pe-pk-hero .pe-car-count { top: 10px; right: 12px; }
.pe-car-lightbox .pe-car-slide img { cursor: zoom-in; }
.pe-car { touch-action: pan-y; }
.pe-car-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.pe-car-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.pe-car-dots span.on { background: var(--pe-accent-2); }
.pe-d-body { padding: 12px 16px 16px; }
.pe-d-name { margin: 6px 0 2px; font-family: "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: .01em; }
.pe-d-aka { margin: 0 0 6px; font-size: 13px; color: var(--pe-muted); font-style: italic; }
.pe-d-rank { font-size: 11px; font-weight: 700; color: var(--pe-wine); }
.pe-d-summary { margin: 8px 0; font-size: 13.5px; line-height: 1.5; }
.pe-d-muted { color: var(--pe-muted); font-size: 12px; }
.pe-d-rate { margin: 8px 0 4px; padding: 8px 10px; background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 10px; }
.pe-d-rate-row, .pe-d-rate-mine { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pe-d-rate-mine { margin-top: 6px; }
.pe-d-rate-n { font-size: 12px; color: var(--pe-ink-2); }
.pe-stars { display: inline-flex; gap: 1px; }
.pe-star-i { font-size: 17px; line-height: 1; color: var(--pe-star-off); }
.pe-star-i.on { color: var(--pe-accent); }
.pe-star-i.half { color: var(--pe-accent-2); opacity: .6; }
.pe-stars-input .pe-star-i { border: 0; background: none; padding: 0 1px; cursor: pointer; font-size: 22px; }
.pe-stars-input .pe-star-i:hover { color: var(--pe-accent); }
.pe-stars-guest .pe-star-i { opacity: .55; }
.pe-d-signup { font-size: 12px; }
.pe-d-sec { margin-top: 12px; }
.pe-d-sec h4 { margin: 0 0 5px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pe-accent-ink); }
.pe-d-sec ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.45; }
.pe-d-warn { background: var(--pe-warn-bg); border-left: 3px solid var(--pe-accent); padding: 6px 8px 7px; border-radius: 0 8px 8px 0; }
.pe-d-conditions { margin: 8px 0 10px; padding: 7px 9px 8px; background: var(--pe-card); border: 1px solid var(--pe-line); border-left: 3px solid var(--pe-accent-2); border-radius: 0 8px 8px 0; font-size: 12.5px; line-height: 1.45; }
.pe-d-conditions h4 { margin: 0 0 4px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pe-accent-ink); font-weight: 700; }
.pe-d-conditions time { letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--pe-muted); }
.pe-d-conditions p { margin: 0; }
.pe-d-conditions-scope { margin: 0 0 4px; font-size: 11px; color: var(--pe-muted); font-weight: 600; }
.pe-d-live { margin-top: 8px; }
.pe-car-dist { font-weight: 700; }
.pe-wild-window { margin: 0 0 8px; font-size: 11.5px; color: var(--pe-muted); font-weight: 600; }
.pe-wild-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 4px; -webkit-overflow-scrolling: touch; }
.pe-wild-card { flex: 0 0 148px; margin: 0; background: #f6f9fa; border: 1px solid var(--pe-line); border-radius: 9px; overflow: hidden; }
.pe-wild-link { display: flex; flex-direction: column; color: var(--pe-ink); text-decoration: none; }
.pe-wild-link img { display: block; width: 100%; height: 100px; object-fit: cover; background: var(--pe-line); }
.pe-wild-name { display: block; padding: 6px 8px 2px; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.pe-wild-attr { display: block; padding: 0 8px 8px; font-size: 10.5px; line-height: 1.35; color: var(--pe-muted); }

.pe-d-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.pe-d-facts dt { color: var(--pe-muted); }
.pe-d-facts dd { margin: 0; font-weight: 600; }
.pe-d-facts .pe-d-permit-link { white-space: nowrap; }
.pe-match-you { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: #E7F3EA; color: #1F6B2E; font-size: 10px; font-weight: 700; letter-spacing: .02em;
  line-height: 1.4; white-space: nowrap; cursor: help; vertical-align: middle; }
.pe-pk-title .pe-fit-tag, .pe-pop-head .pe-fit-tag, .pe-pk-place-name .pe-fit-tag { background: #E7F3EA; color: #1F6B2E; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; }
/* Keep trail rows inside the 360px park column so the For you pill stays on-screen. */
.pe-pk-list > li { min-width: 0; }
.pe-pk-place { max-width: 100%; min-width: 0; }
.pe-pk-place-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pe-pk-place-name .pe-fit-tag { margin-left: 6px; flex: 0 0 auto; white-space: nowrap; }
.pe-d-facts dt.pe-d-fact-paw { display: flex; align-items: center; gap: 5px; }
.pe-d-facts .pe-paw { width: 12px; height: 12px; flex: none; fill: currentColor; }
.pe-d-th { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin: 3px 0; }
.pe-d-th .pe-link { margin-left: auto; }
.pe-d-th-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pe-wine); box-shadow: 0 0 0 2px var(--pe-card); flex: none; }
.pe-d-acts { margin-top: 14px; }
.pe-d-acts .pe-act { padding: 8px 12px; font-size: 13px; }
.pe-d-official { display: inline-block; margin-top: 8px; }
.pe-d-sources { font-size: 11px; color: var(--pe-muted); }
.pe-d-sources ul { font-size: 11px; }
.pe-d-sources a { color: var(--pe-wine); }

@media (max-width: 760px), (max-height: 500px) {
  .pe-detail { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: var(--pe-sheet-peek, 24dvh); max-height: none; border-radius: 16px 16px 0 0; z-index: 1001; padding-bottom: env(safe-area-inset-bottom, 0px); overflow-y: auto; overscroll-behavior: contain; transition: height .28s ease; }
  .pe-root.pe-sheet-open .pe-detail { height: var(--pe-sheet-half, 50dvh); }
  .pe-root.pe-sheet-full .pe-detail { height: var(--pe-sheet-full, 90dvh); }
  .pe-root.pe-detail-open .pe-top { right: 52px; }
  .pe-root.pe-detail-open .maplibregl-ctrl-top-right { right: 0; }
  .pe-car { border-radius: 16px 16px 0 0; }
}

/* ---- Plan your visit + Book nearby (partner links) ---- */
.pe-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 4px; }
.pe-plan-h { width: 100%; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--pe-muted); font-weight: 700; }
.pe-plan-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--pe-line); background: var(--pe-card); color: var(--pe-ink);
  border-radius: 999px; padding: 6px 11px; font: 600 12px/1 inherit; cursor: pointer; text-decoration: none; }
.pe-plan-btn:hover, .pe-plan-btn:focus-visible { border-color: var(--pe-accent); color: var(--pe-accent-ink); }
.pe-plan-directions { background: var(--pe-accent); border-color: var(--pe-accent); color: var(--pe-on-accent); }
.pe-plan-directions:hover, .pe-plan-directions:focus-visible { color: var(--pe-on-accent); filter: brightness(1.05); }
.pe-bn { border-top: 1px solid var(--pe-line); padding-top: 10px; }
.pe-bn-slot:empty { display: none; }
.pe-bn-loading h4::after { content: ""; display: block; height: 52px; margin-top: 8px; border-radius: 10px;
  background: linear-gradient(90deg, var(--pe-skeleton), var(--pe-skeleton-2), var(--pe-skeleton)); background-size: 200% 100%; animation: pe-shimmer 1.2s linear infinite; }
.pe-bn-disc { margin: 0 0 8px; font-size: 11px; color: var(--pe-muted); }
.pe-bn-group { margin: 10px 0 0; }
.pe-bn-group h5 { margin: 0 0 4px; font-size: 12px; font-weight: 800; color: var(--pe-plum); letter-spacing: .01em; }
.pe-bn-main { background: var(--pe-bn-tint); border-radius: 12px; padding: 10px; }
.pe-bn-note { margin: 0 0 6px; font-size: 11px; color: var(--pe-muted); }
.pe-bn-links { display: grid; gap: 6px; }
.pe-bn-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--pe-bn-line);
  border-radius: 10px; background: var(--pe-bn-bg); color: var(--pe-ink); text-decoration: none; font-size: 13px; }
.pe-bn-link:hover, .pe-bn-link:focus-visible { border-color: var(--pe-accent); }
.pe-bn-label { font-weight: 600; min-width: 0; }
.pe-bn-partner { flex: none; font-size: 11px; font-weight: 700; color: var(--pe-wine); }
.pe-bn-primary { background: var(--pe-accent); border-color: var(--pe-accent); color: var(--pe-on-accent); }
.pe-bn-primary .pe-bn-partner { color: var(--pe-on-accent); opacity: .9; }
.pe-tour-tag { margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--pe-wine); background: var(--pe-teal-tint); border-radius: 6px; padding: 1px 5px; }
.pe-closed-tag { margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--pe-closed); background: var(--pe-closed-bg); border-radius: 6px; padding: 1px 5px; }
.pe-d-closed { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: var(--pe-closed-bg); color: var(--pe-closed); font-size: 13px; }

.pe-item-alert { margin-left: 6px; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 1px 5px; }
.pe-item-alert-closure, .pe-item-alert-danger { color: var(--pe-closed); background: var(--pe-closed-bg); }
.pe-item-alert-caution { color: #8a5a00; background: var(--pe-warn-bg); }
.pe-item-alert-info { color: var(--pe-accent-ink); background: #e8eef0; }
.pe-item-flag { margin: 4px 0 0; padding: 4px 7px; border-radius: 7px; font-size: 11.5px; line-height: 1.35; font-weight: 600; }
.pe-item-flag-closure, .pe-item-flag-danger { color: var(--pe-closed); background: var(--pe-closed-bg); }
.pe-item-flag-caution { color: #8a5a00; background: var(--pe-warn-bg); }
.pe-item-flag-info { color: var(--pe-ink); background: #e8eef0; }
.pe-d-alerts { margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.pe-d-alert { padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.pe-d-alert strong { letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.pe-d-alert-closure, .pe-d-alert-danger { background: var(--pe-closed-bg); color: var(--pe-closed); }
.pe-d-alert-caution { background: var(--pe-warn-bg); color: #8a5a00; }
.pe-d-alert-info { background: #e8eef0; color: var(--pe-ink); }
.pe-d-linked { margin: 6px 0; font-size: 12px; color: var(--pe-ink-2); }
.pe-d-pin { display: none; }
@media (max-width: 760px), (max-height: 500px) {
  .pe-root.pe-mobile .pe-d-pin { display: block; position: sticky; bottom: 0; margin: 0 -1px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--pe-paper); border-top: 1px solid var(--pe-line); z-index: 2; }
  .pe-pin-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
    background: var(--pe-accent); color: var(--pe-on-accent); text-decoration: none; font-weight: 700; font-size: 14px; }
  .pe-pin-act .pe-bn-partner { color: var(--pe-on-accent); }
}

/* ---- Park panel: the app's right column becomes a park page while a park is open ---- */
.pe-park, .pe-park-return {
  --pe-ink: #1e2a2f; --pe-paper: #fbf5ea; --pe-line: #e2d6c1; --pe-plum: #1f6b2e; --pe-wine: #0a3a48;
  --pe-sand: #f28a3b; --pe-glow: #e8691e; --pe-teal: #0e4a5c; --pe-teal-tint: #dce7ea;
  --pe-muted: #55636a; --pe-ink-2: #48565c; --pe-accent: var(--pe-glow); --pe-accent-ink: #0e4a5c; --pe-accent-2: var(--pe-sand);
  --pe-on-accent: #ffffff; --pe-card: #ffffff; --pe-sel: #dce7ea; --pe-warn-bg: #fff4ec; --pe-star-off: #d5c7ae;
  --pe-shade: 45, 45, 45; --pe-skeleton: #f1e7d6; --pe-skeleton-2: #f1e7d6;
  --pe-bn-bg: var(--pe-card); --pe-bn-line: var(--pe-line); --pe-bn-tint: var(--pe-teal-tint); --pe-closed: #9f1d1d; --pe-closed-bg: #fdecec;
  color: var(--pe-ink);
}
.pe-park [hidden] { display: none !important; }
aside.panel > .pe-park { display: none; }
aside.panel.pe-park-mode { width: 360px; overflow: hidden; visibility: visible; border-left: 1px solid var(--line, #e2d6c1); box-shadow: var(--shadow, 0 6px 18px rgba(0,0,0,.15)); }
aside.panel.pe-park-mode > .panel-head, aside.panel.pe-park-mode > .park-list, aside.panel.pe-park-mode > .pe-park-return { display: none; }
aside.panel.pe-park-mode > .pe-park { display: block; position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--pe-paper); outline: none; }
.pe-pk-top { position: static; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px 8px 14px; background: var(--pe-paper, #fbf5ea); }
.pe-pk-top-actions { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.pe-pk-crumb { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: 1;
  color: #0e4a5c; padding: 0;
  font: 600 13px/1.2 "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; }
.pe-pk-crumb button { border: 0; background: none; color: #0e4a5c; font: inherit; cursor: pointer; padding: 0; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-pk-crumb button:hover, .pe-pk-crumb button:focus-visible { color: #0a3a48; text-decoration: underline; outline: none; }
.pe-pk-crumb-sep { color: #55636a; font-weight: 500; flex: none; }
.pe-pk-top .pe-pk-close { position: static; flex: none; width: 28px; height: 28px; border-radius: 0;
  background: none; color: #0e4a5c; border: 0; box-shadow: none; font-size: 22px; line-height: 1; }
.pe-pk-top .pe-pk-close:hover, .pe-pk-top .pe-pk-close:focus-visible { background: none; color: #0a3a48; outline: none; }
/* In the flow on its own line (the × sits on the same row, top right), so it never
   covers the photo or the category / Visited tags below. */
.pe-d-backpark {
  position: relative; z-index: 3; margin: 0; max-width: none; vertical-align: top;
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1;
  background: none; color: #0e4a5c; border: 0; border-radius: 0; padding: 0; min-height: 0; cursor: pointer;
  box-shadow: none;
  font: 600 13px/1.2 "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif;
}
.pe-d-backpark:hover, .pe-d-backpark:focus-visible { background: none; color: #0a3a48; text-decoration: underline; outline: none; }
.pe-d-photobar { padding-right: 48px; } /* room for the place-detail close */
.pe-d-backpark .pe-d-backarrow { flex: none; }
.pe-d-backpark .pe-d-backtxt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-park .pe-car { border-radius: 0; }
.pe-park .pe-car-credit { padding-bottom: 14px; }
.pe-park .pe-car-dots { bottom: 30px; }
.pe-park .pe-car-empty:not(.pe-car-loading) { display: none; }
.pe-park .pe-d-body { padding-top: 8px; }
.pe-park .pe-d-name { font-size: clamp(16px, 1.15rem, 18px); }

/* Park identity badge: overlaps the torn carousel edge, sits beside the name. */
.pe-pk-ident {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  z-index: 3;
}
.pe-pk-ident.pe-pk-has-badge { min-height: 52px; }
.pe-park .pe-d-body.pe-pk-has-badge { padding-top: 0; }
.pe-pk-badge {
  flex: none;
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(28, 42, 34, .35));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.pe-pk-title { min-width: 0; flex: 1; padding-bottom: 2px; }
.pe-pk-ident .pe-d-name { margin-top: 4px; }
/* Pull the badge over the torn edge; keep the name on the cream paper. */
.pe-pk-hero:has(.pe-car:not(.pe-car-empty)) + .pe-d-body .pe-pk-ident.pe-pk-has-badge,
.pe-pk-hero:has(.pe-car-loading) + .pe-d-body .pe-pk-ident.pe-pk-has-badge {
  margin-top: -44px;
  align-items: flex-start;
}
.pe-pk-hero:has(.pe-car:not(.pe-car-empty)) + .pe-d-body .pe-pk-ident.pe-pk-has-badge .pe-pk-title,
.pe-pk-hero:has(.pe-car-loading) + .pe-d-body .pe-pk-ident.pe-pk-has-badge .pe-pk-title {
  padding-top: 50px;
}
.pe-pk-hero:has(+ .pe-d-body .pe-pk-has-badge) .pe-car-credit {
  padding: 16px 12px 16px 118px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pe-pk-hero:has(+ .pe-d-body .pe-pk-has-badge) .pe-car-dots { left: 110px; right: 12px; bottom: 40px; }

@media (max-width: 760px), (max-height: 500px) {
  .pe-pk-badge { width: 96px; height: 96px; }
  .pe-pk-hero:has(.pe-car:not(.pe-car-empty)) + .pe-d-body .pe-pk-ident.pe-pk-has-badge,
  .pe-pk-hero:has(.pe-car-loading) + .pe-d-body .pe-pk-ident.pe-pk-has-badge {
    margin-top: -36px;
  }
  .pe-pk-hero:has(.pe-car:not(.pe-car-empty)) + .pe-d-body .pe-pk-ident.pe-pk-has-badge .pe-pk-title,
  .pe-pk-hero:has(.pe-car-loading) + .pe-d-body .pe-pk-ident.pe-pk-has-badge .pe-pk-title {
    padding-top: 42px;
  }
  .pe-pk-hero:has(+ .pe-d-body .pe-pk-has-badge) .pe-car-credit { padding-left: 102px; }
  .pe-pk-hero:has(+ .pe-d-body .pe-pk-has-badge) .pe-car-dots { left: 96px; bottom: 36px; }
}
.pe-pk-cond-list { margin: 4px 0 0; padding-left: 16px; }
.pe-pk-cond-list li { margin: 0 0 5px; }
.pe-pk-cond-list .pe-link { font-size: 12.5px; text-align: left; }
.pe-pk-closed strong { color: var(--pe-closed); }
.pe-pk-cond-place { font-weight: 700; }
.pe-pk-asof { color: var(--pe-muted); font-size: 11.5px; }
.pe-pk-more { display: inline-block; margin-top: 6px; }
.pe-pk-offcond { display: block; margin-top: 6px; }
.pe-pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pe-pk-place { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 1px solid #D9D0C1; border-radius: 10px; background: #FAF7F0;
  color: #1E2A2F; text-align: left; cursor: pointer; font: inherit; }
.pe-pk-place-visited { background: #E3F0DF; border-color: #39834E; }
.pe-pk-place-planned { background: #FFF0DC; border-color: #E97829; }
.pe-pk-place-none { background: #FAF7F0; border-color: #D9D0C1; }
.pe-pk-place:hover, .pe-pk-place:focus-visible { outline: none; }
.pe-pk-place-visited:hover, .pe-pk-place-visited:focus-visible { background: #d4e8ce; border-color: #2f6b3f; }
.pe-pk-place-planned:hover, .pe-pk-place-planned:focus-visible { background: #ffe4c2; border-color: #d4651c; }
.pe-pk-place-none:hover, .pe-pk-place-none:focus-visible { background: #f3eee4; border-color: #c4b8a4; }
.pe-pk-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin: 0 14px 0 14px; box-shadow: 0 0 0 2px #fff; }
.pe-pk-place-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pe-pk-place-name { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; font-weight: 700; line-height: 1.25; }
.pe-pk-place-sub { font-size: 11px; color: var(--pe-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-pk-permits { margin-top: 16px; }
.pe-pk-permit-note { margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.pe-pk-permit-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.pe-pk-go { flex: none; font-size: 18px; color: var(--pe-accent-ink); }
.pe-pk-p { margin: 0 0 6px; font-size: 12.5px; }
.pe-pk-there .pe-plan { margin-top: 4px; }
.pe-park-return { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 10px 18px; border: 0; border-bottom: 1px solid var(--pe-line);
  background: var(--pe-plum); color: #fbf5ea; cursor: pointer; text-align: left; font: 700 15px/1.1 "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; letter-spacing: .02em; }
.pe-park-return:hover, .pe-park-return:focus-visible { background: #04692a; outline: none; }
.pe-park-return-k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pe-sand); }
.pe-tabs { display: none; }
.pe-list > .pe-park { display: none; }
@media (max-width: 840px) {
  aside.panel.pe-park-mode { width: 100%; height: 58%; z-index: 50; }
}
@media (max-width: 760px), (max-height: 500px) {
  .pe-tabs { display: flex; gap: 4px; margin: 2px 12px 6px; padding: 3px; border-radius: 999px; background: var(--pe-line); }
  .pe-tab { flex: 1; border: 0; border-radius: 999px; padding: 7px 0; background: transparent; color: var(--pe-ink-2); cursor: pointer;
    font: 800 14px/1 "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
  .pe-tab.on { background: var(--pe-plum); color: #fbf5ea; }
  .pe-root.pe-park-tab .pe-list > .pe-search, .pe-root.pe-park-tab .pe-list > .pe-items { display: none; }
  .pe-root.pe-park-tab .pe-list > .pe-park { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; }
  .pe-park-sheet .pe-pk-top { position: static; padding: 0 12px 8px 14px; }
  .pe-park-sheet .pe-car { margin: 0 12px; border-radius: 12px 12px 0 0; }
  .pe-park-sheet .pe-pk-hero { margin: 0 12px; }
  .pe-park-sheet .pe-pk-hero .pe-car { margin: 0; }
  .pe-park-sheet .pe-d-body { padding: 8px 14px 18px; }
  .pe-park-sheet .pe-d-body.pe-pk-has-badge { padding-top: 0; }
  .pe-park-sheet .pe-pk-ident.pe-pk-has-badge { margin-left: -2px; }
}
.pe-pk-cond-list li:not(.pe-pk-closed):not(.pe-pk-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; cursor: pointer; }
.pe-pk-cond-all .pe-pk-cond-list li { display: list-item !important; -webkit-line-clamp: unset; }
.pe-pk-cond-list li[hidden] { display: none !important; }

/* ---- v2: one right-hand park panel (search moved in), bigger header ---- */
.pe-root:not(.pe-mobile) .pe-list { display: none; }
.pe-tabs, .pe-root .pe-tabs { display: none !important; }
.pe-park .pe-pop-info { margin: 4px 0 14px; font-size: 13px; line-height: 1.4; color: var(--pe-ink-2); }
.pe-park .pe-d-summary { margin: 0 0 12px; }
.pe-park .pe-pk-cond { margin: 4px 0 14px; }
.pe-pk-search .pe-search { padding: 0 0 6px; border-bottom: 0; }
.pe-pk-search .pe-items { overflow: visible; flex: none; padding: 0; margin: 4px -16px 0; border-top: 1px solid var(--pe-line); }
.pe-park:not(.pe-pk-browsing) .pe-pk-search,
.pe-park:not(.pe-pk-browsing) .pe-pk-search .pe-items { display: none; }
.pe-root:not(.pe-browsing) .pe-sheet-search { display: none; }
.pe-park.pe-pk-browsing .pe-pk-places,
.pe-park.pe-pk-browsing .pe-pk-explore-h,
.pe-park.pe-pk-browsing .pe-mf-card { display: none; }
.pe-pk-search .pe-group { position: static; }
aside.panel.pe-park-mode.pe-detail-up { display: none; }
.pe-bar { padding: 6px 8px 6px 14px; gap: 10px; border-radius: 16px; }
.pe-title { font-size: 18px; line-height: 1.15; letter-spacing: .01em; max-width: 28ch; min-width: 0; }
@media (max-width: 760px), (max-height: 500px) {
  .pe-bar { padding: 6px 8px; }
  .pe-title { font-size: 16px; max-width: none; }
  .pe-root.pe-mobile .pe-list > .pe-park { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; }
  .pe-root.pe-mobile .pe-list > .pe-search, .pe-root.pe-mobile .pe-list > .pe-items { display: none; }
  .pe-pk-search .pe-items { margin: 4px -14px 0; }
}
@container pe-top (max-width: 520px) {
  .pe-bar .pe-title { font-size: 15px; letter-spacing: 0.01em; }
  .pe-nav-search .pe-count { display: none; }
}


/* ---- Mobile sheet: three snaps, sticky title + search, landscape cap ---- */
@media (max-width: 760px), (max-height: 500px) {
  .pe-sheet-head { display: flex; flex-direction: column; align-items: stretch; position: sticky; top: 0; z-index: 6; flex: none; background: rgba(248, 243, 234, .97); touch-action: none; }
  .pe-sheet-title { display: block; font-family: "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; font-weight: 800; font-size: 18px; line-height: 1.1; letter-spacing: .01em; text-align: center; padding: 0 16px 8px; -webkit-user-select: none; user-select: none; cursor: pointer; }
  /* Peek keeps the sheet title so the collapsed snap still names the park.
     Half/full already show the name under the hero — hide the duplicate. */
  .pe-root.pe-sheet-open .pe-list > .pe-sheet-head > .pe-sheet-title { display: none; }
  .pe-sheet-search { display: block; padding: 0 12px 8px; touch-action: auto; }
  .pe-sheet-search > .pe-pk-search > h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pe-sheet-search .pe-search { padding: 0 0 4px; border-bottom: 0; }
  .pe-sheet-search .pe-items { margin: 4px -12px 0; max-height: 36dvh; overflow-y: auto; }
  .pe-d-close { width: 44px; height: 44px; }
  .pe-d-backpark { position: sticky; top: 8px; left: auto; margin: 8px 56px 0 8px; max-width: calc(100% - 64px); align-self: flex-start; z-index: 4; }
  .pe-root.pe-sheet-dragging .pe-list,
  .pe-root.pe-sheet-dragging .pe-detail,
  .pe-root.pe-sheet-dragging .maplibregl-ctrl-bottom-left,
  .pe-root.pe-sheet-dragging .maplibregl-ctrl-bottom-right { transition: none; }
  .pe-detail-head { display: flex; padding-bottom: 0; }
  .pe-root.pe-detail-open .pe-list { visibility: hidden; pointer-events: none; }
}
/* Short landscape phones: keep ~140px of map, collapse the app header while a park is open, compact the green bar. */
@media (max-height: 500px) {
  body.pe-open header.top { display: none; }
  .pe-root { --pe-sheet-peek: min(24dvh, calc(100dvh - 140px)); --pe-sheet-half: min(50dvh, calc(100dvh - 140px)); --pe-sheet-full: min(90dvh, calc(100dvh - 140px)); }
  .pe-root .pe-bar { padding: 4px 8px; gap: 4px; }
  .pe-root .pe-title { font-size: 16px; }
  .pe-root .pe-top { top: max(4px, env(safe-area-inset-top, 0px)); gap: 4px; }
  .pe-root:not(.pe-sheet-open) .pe-sheet-search { display: none; }
  .pe-detail { max-height: none; }
  header.top { padding-top: 4px; padding-bottom: 4px; }
  header.top .stats { display: none; }
  .brand h1.wordmark .brand-logo { height: 26px; width: auto; margin: 0; max-width: 220px; }
}

/* ---- Map menu (desktop and mobile): Terrain / Topo / Satellite / 3D) ---- */
.pe-maptools { display: block; position: relative; flex: none; }
.pe-mapmenu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
}
.pe-mapmenu-btn:hover, .pe-mapmenu-btn:focus-visible,
.pe-mapmenu-btn[aria-expanded="true"] { background: rgba(255,255,255,.22); }
.pe-mapmenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 6;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  background: var(--pe-plum);
  color: #fbf5ea;
  box-shadow: 0 10px 24px rgba(45, 45, 45, .4);
}
.pe-mapmenu-btn[aria-expanded="true"] + .pe-mapmenu { display: flex; }
.pe-mapmenu .pe-seg { width: 100%; }
.pe-mapmenu .pe-3d, .pe-mapmenu .pe-lands { width: 100%; }
.pe-mm-lands { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.pe-mapmenu .pe-seg button,
.pe-mapmenu .pe-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px), (max-height: 500px) {
  .pe-top { left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); top: max(8px, env(safe-area-inset-top, 0px)); gap: 6px; }
  .pe-root.pe-detail-open .pe-top { right: max(8px, env(safe-area-inset-right, 0px)); }
  .pe-bar {
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    gap: 8px;
  }
  .pe-heading { flex: 0 0 auto; min-width: 0; margin-right: 0; max-width: calc(100% - 150px); }
  .pe-title {
    font-size: 16px;
    line-height: 1.15;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pe-mapmenu-btn {
    min-height: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
  }
  .pe-mapmenu .pe-seg button,
  .pe-mapmenu .pe-btn {
    min-height: 44px;
    min-width: 44px;
  }
  .pe-nav-search { flex: 0 1 120px; max-width: 160px; min-width: 80px; }
  .pe-nav-search .pe-search input { height: 44px; min-height: 44px; }
  .pe-nav-search .pe-count { display: none; }
  .pe-pk-crumb { padding: 0; font-size: 13px; min-height: 0; }

  .pe-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    padding: 0 24px 2px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pe-chips::after { content: ""; flex: none; width: 8px; height: 1px; }
  .pe-chip {
    flex: none;
    min-height: 44px;
    padding: 0 12px;
  }

  .pe-root .maplibregl-ctrl-top-right,
  .pe-root.pe-detail-open .maplibregl-ctrl-top-right {
    top: var(--pe-controls-top, 118px);
    right: max(8px, env(safe-area-inset-right, 0px));
  }
  .pe-root .maplibregl-ctrl-group button {
    width: 44px;
    height: 44px;
  }

  /* MapLibre 6 starts compact attribution expanded (compact-show). Keep it collapsed
     until the user opens the ⓘ button. */
  .pe-root .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 8px;
    overflow: hidden;
  }
  .pe-root .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner {
    display: none !important;
  }
  .pe-root .maplibregl-ctrl-attrib-button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-size: 24px 24px;
    background-position: center;
  }

  .pe-d-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
  }
  .pe-car-nav { display: none; }
  .pe-plan-btn, .pe-bn-link, .pe-d-acts .pe-act, .pe-d-official, .pe-pin-act {
    min-height: 44px;
    box-sizing: border-box;
  }
  .pe-plan-btn, .pe-d-acts .pe-act, .pe-d-official {
    display: inline-flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* App chrome (US map header / tools): 44px taps. Desktop rules are unchanged. */
  .mode-switch button {
    min-height: 44px;
    min-width: 44px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }
  .account-menu-toggle {
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
  }
  #btn-reset-view, #btn-trip-zoom, .map-tools button {
    min-height: 44px;
    box-sizing: border-box;
  }
}
@media (max-width: 520px) {
  /* Keep Layers below the taller 44px Reset on the phone landing.
     Higher specificity so this wins over poster.css, which loads later. */
  .app .layer-control { top: 128px; }
}

/* Curator header photo uploads */
.pe-car-blank { background: linear-gradient(135deg, var(--pe-line), var(--pe-paper)); }
.pe-car-blank-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--pe-ink); opacity: .55; font: 600 13px/1.2 inherit; }
.pe-car-add { position: absolute; z-index: 3; right: 10px; bottom: 40px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .94); color: #1f6b2e; font: 700 13px/1 inherit; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); -webkit-tap-highlight-color: transparent; }
.pe-car-add:hover { background: #fff; }
.pe-car-add-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1f6b2e; color: #fff; font: 700 18px/1 inherit; }
.pe-car-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pe-car-blank .pe-car-add { right: 50%; bottom: 50%; transform: translate(50%, 50%); }
.pe-car-blank-msg { padding-top: 0; }
/* Slim toolbar control: sits in the row above the photo, not over it. */
.pe-car-add-bar { position: static; right: auto; bottom: auto; transform: none;
  min-height: 0; padding: 0; gap: 4px;
  border-radius: 0; background: none; color: #0e4a5c; font: 600 13px/1.2 "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif;
  box-shadow: none; white-space: nowrap; }
.pe-car-add-bar:hover { background: none; color: #0a3a48; text-decoration: underline; }
.pe-car-add-bar .pe-car-add-ico { width: 16px; height: 16px; font-size: 13px; background: #0e4a5c; color: #fbf5ea; }
@media (max-width: 760px), (max-height: 500px) {
  .pe-car-add-bar .pe-car-add-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pe-car-add-bar { min-width: 32px; min-height: 32px; justify-content: center; }
}
.pe-car-manage { position: absolute; z-index: 3; left: 8px; top: 54px; right: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.pe-car-manage button, .pe-car-cover { min-height: 34px; padding: 0 11px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #1c2a22; font: 700 12px/34px inherit; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.pe-car-cover { background: #1f6b2e; color: #fff; cursor: default; }
.pe-car-manage .pe-car-del { color: #9f1d1d; }
@media (pointer: coarse) { .pe-car-manage button, .pe-car-cover { min-height: 44px; line-height: 44px; } }
/* Mobile: the pinned sheet search only shows its result list while searching / Show all / Saved,
   so the park page (header gallery, facts) is not buried under a sticky list. */
.pe-root:not(.pe-browsing) .pe-sheet-search .pe-items { display: none; }

/* ---------- POI icon system (public/poi/categories.js + marker.js) ---------- */
.pe-ico, .pp-poi-badge { line-height: 0; }
.pe-ico svg, .pp-poi-badge svg { display: block; }
.pe-chip.pe-chip-cat { padding: 4px 10px 4px 4px; border-width: 1.5px; }
.pe-chip.pe-chip-cat:not(.on) { color: #55636a; background: rgba(248, 243, 234, .94); border-color: var(--pe-line); }
.pe-chip.pe-chip-cat:not(.on) .pe-chip-ico { filter: saturate(.25); opacity: .7; }
.pe-chip.pe-chip-cat.on { color: var(--pe-ink); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fbf5ea); }
.pe-chip-saved, .pe-chip-dna { gap: 5px; }
.pe-chip-cats { color: var(--pe-teal); }
.pe-chip:focus-visible, .pe-ln-pill:focus-visible, .pe-ln-link:focus-visible, .pe-pick-item:focus-visible, .pe-act:focus-visible,
.pe-ln-layer input:focus-visible + i { outline: 3px solid #f28a3b; outline-offset: 2px; }
.pe-item:focus-visible { outline: 3px solid #f28a3b; outline-offset: -3px; }
.pe-group-ico { margin-right: 2px; }
.pe-item-ico { margin-top: 1px; }
.pe-item-thumbwrap { position: relative; flex: none; line-height: 0; }
.pe-item-thumbwrap .pe-item-ico-on { position: absolute; right: -5px; bottom: -5px; box-shadow: 0 0 0 2px #fff; }
.pe-item-thumbs-2 { width: 52px; height: 38px; }
.pe-item-thumbs-2 .pe-item-thumb { position: absolute; top: 0; width: 32px; height: 38px; }
.pe-item-thumbs-2 .pe-item-thumb:first-child { left: 0; z-index: 1; box-shadow: 2px 0 0 rgba(14, 74, 92, .18); }
.pe-item-thumbs-2 .pe-item-thumb:nth-child(2) { left: 20px; z-index: 0; }
.pe-saved-tag, .pe-fit-tag { display: inline-flex; align-items: center; gap: 3px; }
.pe-pop-cat { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: 999px; }
.pe-pop-cat .pe-pop-ico { box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
.pe-pop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pe-pop-head .pe-saved-tag, .pe-pop-head .pe-fit-tag { margin-left: 0; }
.pe-act-save { display: inline-flex; align-items: center; gap: 4px; }
.pe-d-filtered { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px;
  background: #fff4ec; border: 1px solid #f2c9a6; color: #7a3410; font-size: 12px; }

/* Hover / tap tooltip: name, category icon + name, Saved / For you. */
.pe-tip { transform: none; white-space: normal; max-width: 280px; padding: 8px 10px; background: #1e2a2f; border-radius: 10px; }
.pe-tip-head { display: flex; align-items: center; gap: 7px; }
.pe-tip-name { font-size: 13px; line-height: 1.2; color: #fff; }
.pe-tip-meta { margin-top: 3px; font-size: 11.5px; color: #d9e3e5; }
.pe-tip-tags { display: flex; gap: 5px; margin-top: 5px; }
.pe-tip-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.pe-tip-saved { background: #fbf5ea; color: #102f4b; }
.pe-tip-rec { background: #d9a52b; color: #1e2a2f; }
.pe-tip-hint { margin-top: 4px; font-size: 10.5px; color: #f2b483; }
.pe-mobile .pe-tip, .pe-root .pe-tip { pointer-events: none; }

/* Selectable list for pins that overlap at max zoom. */
.pe-pick { position: absolute; z-index: 8; width: 240px; max-height: 300px; overflow: auto; background: #fbf5ea; border: 1px solid var(--pe-line);
  border-radius: 12px; box-shadow: 0 10px 26px rgba(45, 45, 45, .28); padding: 6px; }
.pe-pick-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pe-teal); padding: 4px 6px 6px; }
.pe-pick-list { list-style: none; margin: 0; padding: 0; }
.pe-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; border: 0; background: none; text-align: left;
  font: 600 13px/1.25 inherit; color: var(--pe-ink); padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.pe-pick-item:hover { background: var(--pe-teal-tint); }

.pe-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Map B: the left "Map legend & layers" panel stays in the park and place views. */
.pe-leftnav { position: absolute; left: 12px; top: 12px; z-index: 7; width: 196px; max-height: calc(100% - 60px); overflow: auto;
  background: rgba(251, 245, 234, .97); border: 1px solid rgba(14, 74, 92, .16); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(14, 74, 92, .14); font-size: 13px; color: #1e2a2f; }
.pe-leftnav h4 { margin: 12px 0 6px; font: 600 12px Jost, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #0e4a5c; }
.pe-leftnav h4:first-child { margin-top: 0; }
.pe-ln-layers { display: flex; flex-direction: column; gap: 2px; }
.pe-ln-layer { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 30px; cursor: pointer; }
.pe-ln-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.pe-ln-layer:not(.on) .pp-poi-badge { filter: saturate(.25); opacity: .7; }
.pe-ln-n { color: #55636a; font-size: 11.5px; }
.pe-ln-switch { position: relative; flex: none; width: 30px; height: 17px; }
.pe-ln-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.pe-ln-switch i { position: absolute; inset: 0; border-radius: 999px; background: #cfd8da; transition: background .15s; }
.pe-ln-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.pe-ln-switch input:checked + i { background: var(--c, #0e4a5c); }
.pe-ln-switch input:checked + i::after { transform: translateX(13px); }
.pe-ln-link { border: 0; background: none; padding: 4px 0 0; color: #0e4a5c; font: 600 12px inherit; text-decoration: underline; cursor: pointer; }
.pe-ln-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.pe-ln-pill { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid rgba(14, 74, 92, .25); background: #fff; color: #0e4a5c;
  border-radius: 999px; padding: 4px 9px; font: 600 12px/1.1 inherit; cursor: pointer; }
.pe-ln-pill.on { background: #0e4a5c; border-color: #0e4a5c; color: #fff; }
.pe-ln-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #48565c; }
.pe-ln-legend li { display: flex; align-items: center; gap: 8px; }
.pe-ln-key { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; line-height: 0;
  font: 700 10px/1 inherit; color: #fff; }
.pe-ln-key.k-saved { background: #102f4b; box-shadow: 0 0 0 1.5px #fff; }
.pe-ln-key.k-rec { background: #d9a52b; box-shadow: 0 0 0 1.5px #fff; }
.pe-ln-key.k-sel { background: #0f6173; box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #f28a3b; width: 13px; height: 13px; margin: 0 2.5px; }
.pe-ln-key.k-mixed { background: #073b46; box-shadow: 0 0 0 2px #fff; }
.pe-root.pe-leftnav-on .pe-chips { display: none; }
.pe-root.pe-leftnav-on .pe-top { left: 222px; }
.pe-root.pe-leftnav-on .pe-list { left: 222px; }
@media (prefers-reduced-motion: reduce) {
  .pe-ln-switch i, .pe-ln-switch i::after { transition: none; }
}
/* No hero photo (e.g. BLM/USFS monuments): keep the title clear of the floating breadcrumb. */
.pe-pk-nohero > .pe-d-body { padding-top: 54px; }
@media (max-width: 760px) { .pe-park-sheet.pe-pk-nohero > .pe-d-body { padding-top: 0; } }

/* Place marks (member Visited / Planned + own rating; shared styles in /marks/marks.css). */
.pe-d-rate .ppm-ctl { margin: 8px 0 0; padding: 8px 0 0; border: 0; border-top: 1px solid var(--pe-line); border-radius: 0; background: none; }
.pe-pop-head .ppm-tag { margin-left: 0; }
.pe-item-name .ppm-tag, .pe-pk-place-name .ppm-tag { margin-left: 6px; }
.pe-tip-mark-visited { background: #fbf5ea; color: #0e4a5c; }
.pe-tip-mark-planned { background: #dce7ea; color: #0e4a5c; }
.pe-pk-mine .ppm-card { background: #fff; border: 1px solid var(--pe-line); border-radius: 10px; padding: 8px 10px; }

/* ---------- Public lands (BLM + national forest) in the park view ---------- */
.pe-root .maplibregl-ctrl.pe-lands-ctrl { position: relative; clear: both; float: right; margin-top: 10px; background: none; box-shadow: none; }
.pe-root .maplibregl-ctrl button.pe-lands-fab { width: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fbf5ea; color: #0e4a5c; font: 600 12.5px Jost, system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 0 0 1.5px rgba(14, 74, 92, .28), 0 2px 6px rgba(30, 42, 47, .18); }
.pe-root .maplibregl-ctrl button.pe-lands-fab:hover { background: #f1e7d6; }
.pe-root .maplibregl-ctrl button.pe-lands-fab.on, .pe-root .maplibregl-ctrl button.pe-lands-fab.on:hover { background: #0e4a5c; color: #fff; box-shadow: 0 0 0 1.5px #0e4a5c, 0 2px 6px rgba(30, 42, 47, .25); }
.pe-lands-fab:focus-visible { outline: 3px solid #f28a3b; outline-offset: 2px; }
.pe-lands-fab-ico { display: inline-flex; line-height: 0; }
.pe-lands-panel { position: absolute; top: 0; right: calc(100% + 8px); width: 252px; padding: 10px 12px 10px; border-radius: 12px; z-index: 5;
  background: #fbf5ea; color: #1e2a2f; font-family: Jost, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(30, 42, 47, .25), 0 0 0 1px rgba(14, 74, 92, .12); }
.pe-lands-panel[hidden] { display: none; }
.pe-lp-title { font: 600 12px Jost, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #0e4a5c; margin-bottom: 4px; }
.pe-lp-row, .pe-ln-lands .pe-ln-layer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; cursor: pointer; }
.pe-lp-row { padding: 3px 0; }
.pe-lp-row + .pe-lp-row { border-top: 1px solid #f1e7d6; }
.pe-lp-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pe-lp-name .pp-lands-sw { flex: none; width: 14px; height: 14px; }
.pe-lp-text { display: flex; flex-direction: column; min-width: 0; }
.pe-lp-label { font-size: 13.5px; font-weight: 600; color: #0e4a5c; line-height: 1.2; }
.pe-ln-lands .pe-lp-label { font-size: 13px; font-weight: 500; color: #1e2a2f; }
.pe-lp-sub { font-size: 11.5px; color: #55636a; line-height: 1.25; }
.pe-lp-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 2px; font-size: 12px; color: #1e2a2f; }
.pe-lp-key[hidden] { display: none; }
.pe-lp-key span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pe-lp-key .pp-lands-sw { width: 11px; height: 11px; }
.pe-lp-hint { margin-top: 6px; font-size: 11.5px; line-height: 1.35; color: #55636a; }
.pe-root.pe-leftnav-on .pe-lands-ctrl { display: none; }
@media (max-width: 760px), (max-height: 500px) {
  .pe-root .maplibregl-ctrl button.pe-lands-fab { height: 29px; padding: 0 9px 0 8px; font-size: 12px; }
  /* Sit to the left of the 44px compact attribution button so "Public lands" is not clipped. */
  .pe-root .maplibregl-ctrl.pe-lands-ctrl { margin-right: 52px; }
  .pe-lands-panel { width: min(252px, calc(100vw - 124px)); }
}

/* Conditions snapshot on the park page (explorer.js conditionsSnapshot). */
.pe-cs { margin: 10px 0 8px; border: 1px solid var(--pe-line); border-radius: 12px; overflow: hidden; background: var(--pe-card); }
.pe-cs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: var(--pe-teal); color: #fff; }
.pe-cs-head h4 { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #fff; }
.pe-cs-stamp { font-size: 11px; color: #dce7ea; font-weight: 600; }
.pe-cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.pe-cs-tile { min-width: 0; padding: 7px 9px 8px; border-radius: 9px; border: 1px solid var(--pe-line); background: #f6f9fa; display: flex; flex-direction: column; gap: 2px; }
.pe-cs-wide { grid-column: 1 / -1; }
.pe-cs-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--pe-accent-ink); }
.pe-cs-body { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; line-height: 1.35; color: var(--pe-ink); }
.pe-cs-big { font-size: 19px; font-weight: 800; line-height: 1.15; }
.pe-cs-main { font-weight: 600; overflow-wrap: anywhere; }
.pe-cs-strong { font-weight: 800; }
.pe-cs-sub { font-size: 11.5px; color: var(--pe-muted); }
.pe-cs-loading { font-size: 11.5px; color: var(--pe-muted); }
.pe-cs-weather { background: #eaf3fb; border-color: #cfe1f1; }
.pe-cs-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pe-cs-day { min-width: 0; text-align: center; padding: 6px 4px 7px; border-radius: 8px; background: rgba(255,255,255,.62); border: 1px solid #d5e4f0; }
.pe-cs-day-name { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--pe-accent-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-cs-day-icon { display: block; width: 32px; height: 32px; margin: 2px auto; object-fit: contain; }
.pe-cs-day-hl { font-size: 12px; font-weight: 800; line-height: 1.3; color: var(--pe-ink); white-space: nowrap; }
.pe-cs-day-sky { font-size: 11px; line-height: 1.25; color: var(--pe-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .pe-cs-days { gap: 4px; }
  .pe-cs-day { padding: 5px 2px 6px; }
  .pe-cs-day-name { letter-spacing: .06em; }
  .pe-cs-day-hl { font-size: 11px; }
  .pe-cs-day-sky { font-size: 10px; }
}
.pe-cs-wxal { margin-top: 7px; padding-top: 6px; border-top: 1px solid #cfe1f1; }
.pe-cs-wxal-none, .pe-cs-wxal .pe-cs-sub, .pe-cs-wxal .pe-cs-loading { font-size: 11.5px; color: var(--pe-muted); }
.pe-cs-wxal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.pe-cs-wxal-item { position: relative; border-radius: 7px; background: #fff; border: 1px solid #d5e4f0; }
.pe-cs-wxal-warn .pe-cs-wxal-item { background: var(--pe-warn-bg); border-color: #f3c9a6; }
.pe-cs-wxal-bad .pe-cs-wxal-item { background: var(--pe-closed-bg); border-color: #efb9b9; }
.pe-cs-wxal-line { display: flex; align-items: baseline; gap: 6px; padding: 5px 8px; cursor: pointer; font-size: 12.5px; line-height: 1.35; outline-offset: 2px; }
.pe-cs-wxal-ev { font-weight: 800; color: #0E4A5C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pe-cs-wxal-bad .pe-cs-wxal-ev { color: var(--pe-closed); }
.pe-cs-wxal-warn .pe-cs-wxal-ev { color: #9a3d0c; }
.pe-cs-wxal-sev { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pe-muted); }
.pe-cs-wxal-pop { display: none; padding: 0 8px 7px; font-size: 12px; line-height: 1.4; color: var(--pe-ink); }
.pe-cs-wxal-item.pe-cs-wxal-open .pe-cs-wxal-pop { display: block; }
@media (hover: hover) { .pe-cs-wxal-item:hover .pe-cs-wxal-pop, .pe-cs-wxal-item:focus-within .pe-cs-wxal-pop { display: block; } }
.pe-cs-wxal-when { font-size: 11px; font-weight: 700; color: var(--pe-muted); margin-bottom: 2px; }
.pe-cs-wxal-text { margin: 0 0 4px; }
.pe-cs-wxal-text:last-child { margin-bottom: 0; }
.pe-cs-air { background: #edf6e9; border-color: #d3e6cb; }
.pe-cs-sun { background: #fdf1e6; border-color: #f3d9c0; }
.pe-cs-fire { background: #fbf3ea; border-color: #ecd9c4; }
.pe-cs-wildlife { background: #f3f5ea; border-color: #dfe3c9; }
.pe-cs-webcam { background: #eef3f5; }
.pe-cs-alerts.pe-cs-ok, .pe-cs-alerts.pe-cs-na { background: #eef3f5; }
.pe-cs-tile.pe-cs-warn { background: var(--pe-warn-bg); border-color: #f3c9a6; }
.pe-cs-tile.pe-cs-bad { background: var(--pe-closed-bg); border-color: #efb9b9; }
.pe-cs-tile.pe-cs-bad .pe-cs-big { color: var(--pe-closed); }
.pe-cs-air.pe-cs-ok .pe-cs-big { color: #1f6b2e; }
.pe-cs-air.pe-cs-warn .pe-cs-big { color: #8a5a00; }
.pe-cs-firewx { color: #9a3d0c; }
dl.pe-cs-suntimes { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; margin: 0; background: none; }
dl.pe-cs-suntimes dt { color: var(--pe-muted); }
dl.pe-cs-suntimes dd { margin: 0; font-weight: 800; text-align: right; }
.pe-cs-cam { position: relative; display: block; border-radius: 8px; overflow: hidden; color: var(--pe-ink); text-decoration: none; }
.pe-cs-cam img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pe-cs-cam img + .pe-cs-cam-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.pe-cs-cam-cap { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.pe-cs-live { padding: 1px 6px; border-radius: 999px; background: #1f6b2e; color: #fff; font-size: 10.5px; font-weight: 800; }
.pe-cs-src { margin: 0; padding: 0 10px 8px; font-size: 10.5px; line-height: 1.4; color: var(--pe-muted); }

/* Park page header status pill (Visited / Planned). */
.pe-pk-status { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.pe-pk-status .pe-ico { display: inline-flex; flex: none; }
.pe-pk-status-visited { background: #1F6B2E; color: #fff; }
.pe-pk-status-visited .pe-ico svg { stroke: #fff; }
.pe-pk-status-planned { background: #F1E7D6; color: #0E4A5C; border: 1px solid rgba(14,74,92,.28); }
.pe-pk-status-x { font-weight: 600; opacity: .92; overflow: hidden; text-overflow: ellipsis; }
.pe-pk-status-x::before { content: "·"; margin: 0 4px 0 1px; }

/* Visited / Planned / Not visited place filter. */
.pe-mf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 4px 0 10px; padding: 6px 9px; border: 1px solid var(--pe-line); border-radius: 9px; background: var(--pe-card); }
.pe-pk-explore-h { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pe-accent-ink); line-height: 1; }
.pe-pk-explore-h::after { content: ""; flex: 1 1 auto; height: 1px; background: currentColor; opacity: .45; }
.pe-d-summary .pe-d-more, .pe-d-summary .pe-d-less { margin-left: 2px; font-size: 12.5px; }
.pe-mf-opt { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--pe-ink); cursor: pointer; white-space: nowrap; }
.pe-mf-opt input { margin: 0; width: 14px; height: 14px; accent-color: #1F6B2E; }
.pe-mf-opt:not(.on) { color: var(--pe-muted); }
.pe-mf-ico { display: inline-flex; color: var(--pe-accent-ink); }
.pe-mf-nav { margin: 6px 0 10px; flex-direction: column; align-items: flex-start; gap: 4px; }

/* Alerts (above the Conditions snapshot). */
.pe-al { position: relative; margin: 10px 0 8px; padding: 8px 10px 9px; border: 1px solid var(--pe-line); border-left: 3px solid var(--pe-closed); border-radius: 0 10px 10px 0; background: var(--pe-card); }
.pe-al h4.pe-al-h { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--pe-closed); }
.pe-al-n { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; align-items: center; justify-content: center; border-radius: 999px; background: var(--pe-closed); color: #fff; font-size: 11px; letter-spacing: 0; }
.pe-al-none { margin: 2px 0 4px; font-size: 12.5px; color: var(--pe-muted); }
.pe-al-list { list-style: none; margin: 0 0 4px; padding: 0; }
.pe-al-item { position: relative; border-top: 1px solid var(--pe-line); }
.pe-al-item:first-child { border-top: 0; }
.pe-al-line { display: block; padding: 5px 0; font-size: 12.5px; line-height: 1.4; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline-offset: 2px; }
.pe-al-pre { font-weight: 800; }
.pe-al-closure .pe-al-pre, .pe-al-danger .pe-al-pre { color: var(--pe-closed); }
.pe-al-caution .pe-al-pre { color: #9a3d0c; }
.pe-al-info .pe-al-pre, .pe-al-update .pe-al-pre { color: var(--pe-accent-ink); }
.pe-al-title { font-weight: 600; }
.pe-al-pop { display: none; position: absolute; z-index: 30; left: -4px; right: -4px; top: 100%; padding: 8px 10px 9px; border: 1px solid var(--pe-line); border-radius: 9px; background: #fff; box-shadow: 0 8px 22px rgba(30,42,47,.18); font-size: 12.5px; line-height: 1.45; color: var(--pe-ink); }
.pe-al-item.pe-al-open .pe-al-pop { display: block; }
@media (hover: hover) { .pe-al-item:hover .pe-al-pop, .pe-al-item:focus-within .pe-al-pop { display: block; } .pe-al-item:hover { z-index: 31; } }
.pe-al-when { font-size: 11px; font-weight: 700; color: var(--pe-muted); margin-bottom: 3px; }
.pe-al-text { margin: 0 0 5px; white-space: normal; }
.pe-al-places { margin: 0 0 4px; }
.pe-al-places .pe-link { font-size: 12.5px; }
.pe-al-link { display: inline-block; font-size: 12px; }
.pe-al-official { display: inline-block; margin-top: 2px; font-size: 12.5px; font-weight: 700; }
.pe-al-more { display: block; margin: 0 0 4px; font-size: 12px; }
.pe-al-pop { max-height: 60vh; overflow: auto; }

/* Park hero lightbox (opened from the hero gallery). */
.pe-photo-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 42, 47, .88);
  align-items: center;
  justify-content: center;
  padding: 48px 56px 80px;
}
.pe-photo-lb.open { display: flex; }
.pe-lb-fig {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pe-lb-fig img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 8px;
  background: #1e2a2f;
}
.pe-lb-cap {
  margin-top: 10px;
  color: #fbf5ea;
  font-size: 12px;
  text-align: center;
  max-width: 640px;
  line-height: 1.4;
}
.pe-lb-cap a { color: #fbf5ea; }
.pe-lb-close, .pe-lb-nav {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: #fbf5ea;
  color: #1e2a2f;
  cursor: pointer;
  font: 700 26px/1 "Jost", "Josefin Sans", sans-serif;
}
.pe-lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
.pe-lb-nav { top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 28px; }
.pe-lb-prev { left: 12px; }
.pe-lb-next { right: 12px; }
.pe-lb-close:focus-visible, .pe-lb-nav:focus-visible { outline: 2px solid #e8691e; outline-offset: 2px; }
@media (max-width: 520px) {
  .pe-photo-lb { padding: 56px 12px 88px; }
  .pe-lb-nav, .pe-lb-close { width: 36px; height: 36px; }
  .pe-lb-cap { font-size: 11px; padding: 0 8px; }
}

/* Wildlife log: entry in the Conditions snapshot Wildlife tile + the log dialog (explorer.js wlOpen). */
.pe-wl-entry { margin-top: 6px; display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; text-align: left; cursor: pointer;
  border: 1px solid #c9d3b0; background: #fff; color: #1e2a2f; border-radius: 8px; padding: 5px 7px; font: inherit; }
.pe-wl-entry:hover { border-color: #1f6b2e; }
.pe-wl-entry:focus-visible { outline: 2px solid #0e4a5c; outline-offset: 1px; }
.pe-wl-entry-ico { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #dce7ea; color: #0e4a5c; display: grid; place-items: center; }
.pe-wl-entry-ico .pe-paw { width: 13px; height: 13px; fill: currentColor; }
.pe-wl-entry-some .pe-wl-entry-ico { background: #1f6b2e; color: #fff; }
.pe-wl-entry-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pe-wl-entry-lab { font-size: 12px; font-weight: 800; color: #0e4a5c; }
.pe-wl-entry-cnt { font-size: 11px; color: #55636a; overflow-wrap: anywhere; }
.pe-wl-entry-some .pe-wl-entry-cnt { color: #1f6b2e; font-weight: 700; }
.pe-wl-entry-go { flex: 0 0 auto; font-size: 18px; line-height: 1; color: #0e4a5c; }

.pe-wl-modal { position: fixed; inset: 0; z-index: 2400; background: rgba(14, 30, 36, .55); display: flex; align-items: center; justify-content: center; padding: 24px;
  font-family: "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif; color: #1e2a2f; }
.pe-wl-modal [hidden] { display: none !important; }
.pe-wl-dialog { position: relative; width: min(620px, 100%); max-height: min(780px, calc(100dvh - 48px)); display: flex; flex-direction: column; overflow: hidden;
  background: #fbf5ea; border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); outline: none; }
.pe-wl-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; background: #0e4a5c; color: #fff; }
.pe-wl-head-txt { flex: 1 1 auto; min-width: 0; }
.pe-wl-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .01em; color: #fff; }
.pe-wl-park { margin: 1px 0 0; font-size: 12.5px; color: #dce7ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-wl-count { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pe-wl-count:empty { display: none; }
.pe-wl-x { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.pe-wl-x:hover { background: rgba(255,255,255,.26); }
.pe-wl-body { overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 14px; }
.pe-wl-hint { margin: 0 0 10px; font-size: 13px; color: #48565c; }
.pe-wl-guest { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #dce7ea; border: 1px solid #bcd0d6; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pe-wl-guest p { margin: 0; flex: 1 1 240px; font-size: 13px; color: #1e2a2f; }
.pe-wl-flash { animation: pe-wl-flash .9s ease; }
@keyframes pe-wl-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px #e8691e; } }
.pe-wl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pe-wl-loading { font-size: 13px; color: #55636a; padding: 8px 0; }
.pe-wl-row { border: 1px solid #e2d6c1; border-radius: 12px; background: #faf7f0; transition: background .15s, border-color .15s; }
.pe-wl-row.pe-wl-seen { background: #e3f0df; border-color: #39834e; }
.pe-wl-row.pe-wl-busy { opacity: .7; }
.pe-wl-line { display: flex; align-items: center; }
.pe-wl-stamp { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 10px; cursor: pointer; }
.pe-wl-cb { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: #1f6b2e; cursor: pointer; }
.pe-wl-icon { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: #fff; border: 2px dashed #c9bda6; filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s, border-color .2s; }
.pe-wl-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pe-wl-icon-fb { background: #f1e7d6; color: #0e4a5c; }
.pe-wl-icon-fb .pe-paw { width: 26px; height: 26px; fill: currentColor; }
.pe-wl-seen .pe-wl-icon { filter: none; opacity: 1; border: 2px solid #1f6b2e; box-shadow: 0 0 0 3px #fff inset; }
.pe-wl-seen .pe-wl-icon-fb { background: #1f6b2e; color: #fff; }
.pe-wl-name-wrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pe-wl-name { font-size: 15px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.pe-wl-name::first-letter { text-transform: uppercase; }
.pe-wl-row:not(.pe-wl-seen) .pe-wl-name { color: #48565c; }
.pe-wl-status { font-size: 12px; color: #55636a; }
.pe-wl-status:empty { display: none; }
.pe-wl-seen .pe-wl-status { color: #1f6b2e; font-weight: 700; }
.pe-wl-mark { display: none; flex: 0 0 auto; transform: rotate(-8deg); border: 2px solid #1f6b2e; color: #1f6b2e; border-radius: 6px; padding: 2px 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.6); }
.pe-wl-seen .pe-wl-mark { display: inline-block; }
.pe-wl-more { display: flex; gap: 12px; align-items: flex-start; padding: 0 12px 10px 42px; }
.pe-wl-photo { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 118px; }
.pe-wl-thumb { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; width: 118px; height: 84px; background: #dce7ea; }
.pe-wl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #0e4a5c; background: #fff; color: #0e4a5c;
  border-radius: 999px; padding: 6px 12px; font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.1; cursor: pointer; white-space: nowrap; }
.pe-wl-btn:hover { background: #dce7ea; }
.pe-wl-btn:disabled { opacity: .5; cursor: default; }
.pe-wl-btn-primary { background: #0e4a5c; color: #fff; }
.pe-wl-btn-primary:hover { background: #0a3a48; }
.pe-wl-btn-primary:disabled:hover { background: #0e4a5c; }
.pe-wl-add { position: relative; overflow: hidden; }
.pe-wl-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.pe-wl-uploading { pointer-events: none; opacity: .7; }
.pe-wl-link { border: 0; background: none; padding: 0 2px; color: #0e4a5c; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: underline; cursor: pointer; }
.pe-wl-comment { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pe-wl-comment textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 56px; border: 1px solid #c9bda6; border-radius: 8px; background: #fff;
  padding: 7px 9px; font-family: inherit; font-size: 13.5px; line-height: 1.35; color: #1e2a2f; }
.pe-wl-comment textarea:focus { outline: 2px solid #0e4a5c; outline-offset: 0; border-color: #0e4a5c; }
.pe-wl-comment-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pe-wl-left { font-size: 11.5px; color: #55636a; }
.pe-wl-foot { margin: 12px 0 0; font-size: 11.5px; color: #55636a; }
.pe-wl-viewer { position: absolute; inset: 0; z-index: 3; background: rgba(10, 20, 24, .92); display: flex; align-items: center; justify-content: center; padding: 48px 16px 16px; cursor: zoom-out; }
.pe-wl-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.pe-wl-viewer-x { position: absolute; top: 10px; right: 10px; }
.pe-wl-toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; background: #1e2a2f; color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.3); max-width: calc(100% - 32px); text-align: center; }
@media (max-width: 560px) {
  .pe-wl-modal { padding: 0; align-items: flex-end; }
  .pe-wl-dialog { width: 100%; max-height: calc(100dvh - 40px); border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pe-wl-head { padding: 10px 10px 10px 14px; flex-wrap: wrap; row-gap: 6px; }
  .pe-wl-head-txt { flex-basis: calc(100% - 60px); }
  .pe-wl-count { order: 3; }
  .pe-wl-body { padding: 10px 12px 14px; }
  .pe-wl-stamp { gap: 10px; padding: 8px 10px 8px 8px; }
  .pe-wl-icon { width: 50px; height: 50px; }
  .pe-wl-name { font-size: 14px; }
  .pe-wl-more { flex-direction: column; gap: 8px; padding: 0 10px 10px 10px; }
  .pe-wl-photo { flex-direction: row; flex-wrap: wrap; align-items: center; width: auto; }
  .pe-wl-thumb { width: 96px; height: 68px; }
  .pe-wl-comment { width: 100%; }
}
/* Wildlife stamp PNGs (public/wildlife-icons, round stamps with their own border): no extra frame;
   unseen = greyscale and faded, seen = full color with a Pine ring. The paw fallback keeps the dashed frame. */
.pe-wl-icon:not(.pe-wl-icon-fb) { width: 60px; height: 60px; background: transparent; border: 0; border-radius: 50%; filter: grayscale(1) contrast(.9); opacity: .5; }
.pe-wl-seen .pe-wl-icon:not(.pe-wl-icon-fb) { filter: none; opacity: 1; border: 0; box-shadow: 0 0 0 2px #fbf5ea, 0 0 0 4px #1f6b2e; }
@media (max-width: 560px) { .pe-wl-icon:not(.pe-wl-icon-fb) { width: 50px; height: 50px; } }

/* ---- Header live-condition chips (Option 1 inline chips) ---- */
.pe-bar { flex-wrap: wrap; }
.pe-heading { flex: 0 1 auto; min-width: 0; order: 1; }
.pe-nav-search { order: 2; }
.pe-maptools { margin-left: auto; order: 3; align-self: flex-start; }
.pe-cond-chips { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; order: 4; }
.pe-hchip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: rgba(255,255,255,.12); color: #fbf5ea;
  border-radius: 999px; padding: 4px 10px 4px 8px;
  font: 600 12px/1.15 "Jost", "Josefin Sans", Futura, "Century Gothic", sans-serif;
  cursor: pointer; white-space: nowrap; max-width: 100%;
}
.pe-hchip:hover, .pe-hchip.on, .pe-hchip[aria-expanded="true"] { background: rgba(255,255,255,.2); }
.pe-hchip:focus-visible { outline: 2px solid #e8691e; outline-offset: 2px; }
.pe-hchip-ico { display: inline-flex; width: 16px; height: 16px; flex: none; color: #fbf5ea; }
.pe-hchip-ico-alerts { color: #f5c04e; }
.pe-hchip-ico-air { color: #8fd08a; }
.pe-hchip-ico-sun { color: #f2c14e; }
.pe-hchip-ico-fire { color: #e8691e; }
.pe-hchip-text { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
.pe-hchip-main { font-weight: 700; }
.pe-hchip-sub { font-weight: 500; opacity: .92; overflow: hidden; text-overflow: ellipsis; }
.pe-hchip-warn { background: rgba(232, 105, 30, .22); }
.pe-hchip-bad { background: rgba(159, 29, 29, .4); }
.pe-hchip-pop {
  position: fixed; z-index: 30; box-sizing: border-box;
  min-width: min(360px, calc(100vw - 16px)); max-width: min(440px, calc(100vw - 16px));
  overflow: auto; overscroll-behavior: contain;
  background: #fbf5ea; color: #1e2a2f;
  border: 1px solid #e2d6c1; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(30, 42, 47, .28);
  padding: 10px 12px 10px; font-family: inherit;
}
.pe-hchip-pop-title {
  margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800; color: #0e4a5c;
}
.pe-hchip-pop-body { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.35; color: #1e2a2f; }
.pe-hchip-pop-body .pe-cs-days { margin: 0; }
.pe-hchip-pop-body .pe-cs-wxal { margin-top: 8px; }
.pe-hchip-pop-src { margin: 8px 0 0; font-size: 10.5px; line-height: 1.4; color: #55636a; }
.pe-hchip-al-list .pe-cs-wxal-item { padding-bottom: 6px; }
.pe-hchip-al-list .pe-cs-wxal-line { cursor: default; }
.pe-hchip-al-list .pe-link { display: inline-block; margin: 0 8px 6px; font-size: 12px; }
.pe-wl-sec, .pe-cam-sec { margin: 10px 0 8px; }
@container pe-top (max-width: 820px) {
  .pe-bar { width: 100%; }
  .pe-cond-chips { flex: 1 1 100%; }
  .pe-hchip-sub { display: none; }
  .pe-heading { max-width: min(22ch, calc(100% - 150px)); }
}
@media (max-width: 760px), (max-height: 500px) {
  .pe-bar { width: 100%; flex-wrap: wrap !important; }
  .pe-maptools { order: 3; align-self: flex-start; margin-left: auto; }
  .pe-cond-chips {
    flex: 1 1 100%;
    width: 100%;
    order: 4;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 1px 16px 2px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pe-cond-chips::-webkit-scrollbar { display: none; }
  .pe-hchip { flex: none; min-height: 36px; padding: 0 10px 0 8px; }
  .pe-hchip-sub { display: none; }
  .pe-hchip-pop { max-width: calc(100vw - 16px); }
}


/* Park header: use the full width between the left nav and the right panel;
   let the park name wrap up to two lines instead of ellipsizing. */
.pe-root .pe-bar,
.pe-bar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.pe-heading {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
.pe-title,
.pe-bar .pe-title,
.pe-root .pe-title {
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  max-width: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
@container pe-top (max-width: 820px) {
  .pe-heading { max-width: none; }
}
@media (max-width: 760px), (max-height: 500px) {
  /* Full-width title row so long names wrap instead of ellipsizing. */
  .pe-heading {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
    order: 1;
  }
  .pe-nav-search { order: 2; }
  .pe-maptools { order: 3; margin-left: auto; align-self: flex-start; }
  .pe-title,
  .pe-bar .pe-title,
  .pe-root .pe-title {
    white-space: normal;
    overflow: hidden;
    text-overflow: unset;
    max-width: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Park-alert items expand inline inside the header alerts popover. */
.pe-hchip-pop .pe-al-pop {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  box-shadow: none;
  border: 0;
  border-top: 1px solid var(--pe-line);
  border-radius: 0;
  padding: 0 0 8px;
  max-height: none;
  background: transparent;
}
.pe-hchip-pop .pe-al-list { margin: 0 0 6px; }
.pe-hchip-pop .pe-al-official { margin-top: 8px; }
.pe-hchip-pop .pe-cs-wxal { margin-top: 8px; }
.pe-hchip-pop .pe-al-line { white-space: normal; overflow: visible; text-overflow: unset; }
.pe-hchip-pop { max-height: min(72vh, 560px); }
