/* ==========================================================================
   De Pilsgrims — componenten  ("glassy met een knipoog")
   Vereist tokens.css. Prefix: pg-. Klassen = latere template-parts.
   ========================================================================== */

/* ---------- 1. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.pg {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.pg [hidden] { display: none !important; }
.pg img { max-width: 100%; display: block; }
.pg a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pg a:hover { text-decoration-thickness: 2px; }
.pg :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.pg-skip {
  position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--r-m);
  background: var(--c-espresso); color: var(--c-perkament) !important; font-weight: 800; text-decoration: none;
}
.pg-skip:focus { top: 16px; }
.pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 2. Typografie ---------- */
.pg-display, .pg-h1, .pg-h2, .pg-h3, .pg-h4 {
  font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 50, "WONK" 0; text-wrap: balance;
}
.pg-display { font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.025em; font-weight: 700; }
.pg-h1 { font-size: var(--fs-h1); line-height: 1.05; }
.pg-h2 { font-size: var(--fs-h2); line-height: 1.1; }
.pg-h3 { font-size: var(--fs-h3); line-height: 1.2; }
.pg-h4 { font-size: var(--fs-h4); line-height: 1.3; }
.pg-display em, .pg-h1 em, .pg-h2 em { font-style: italic; font-weight: 500; color: var(--c-amber-deep); }
.pg-lead { font-size: calc(var(--fs-body) * 1.2); line-height: 1.55; color: var(--text-muted); margin: 0; text-wrap: pretty; }
.pg-p { margin: 0; text-wrap: pretty; }
.pg-small { font-size: var(--fs-small); color: var(--text-muted); }
.pg-eyebrow {
  font-size: var(--fs-micro); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); margin: 0;
}
.pg-num { font-variant-numeric: tabular-nums lining-nums; }
.pg-prose { display: flex; flex-direction: column; gap: var(--s-4); max-width: 66ch; }
.pg-prose p { margin: 0; text-wrap: pretty; }
.pg-prose blockquote {
  margin: var(--s-4) 0; padding: 0; font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h3); line-height: 1.3; color: var(--c-bosgroen);
}
[data-theme="dark"] .pg-prose blockquote { color: var(--link); }

/* ---------- 3. Layout ---------- */
.pg-wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.pg-section { padding-block: var(--s-9); }
.pg-stack { display: flex; flex-direction: column; }
.pg-row { display: flex; flex-wrap: wrap; align-items: center; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--s-6); }
.pg-cards--4 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--s-5); }
.pg-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.pg-split--hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pg-split--aside-l { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--s-5); }
.pg-split--aside-r { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s-5); }
.pg fieldset { min-width: 0; }
.pg-sechead { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-6); }
@media (max-width: 760px) {
  .pg-section { padding-block: var(--s-8); }
  .pg-split, .pg-split--hero, .pg-split--aside-l, .pg-split--aside-r { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .pg-cards { gap: var(--s-4); }
  .pg-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .pg-hide-m { display: none !important; }
}
@media (min-width: 761px) { .pg-hide-d { display: none !important; } }

/* ---------- 4. Glas ---------- */
.pg-glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  box-shadow: var(--glass-shadow);
}
/* donkere variant: verplicht boven foto's */
.pg-glass--dark {
  background: var(--glass-dark-bg);
  border-color: var(--glass-dark-border);
  color: var(--glass-dark-text);
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .18), 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.pg-glass--dark .pg-small, .pg-glass--dark .pg-eyebrow { color: #E8D6B4; }
/* amber onderlaag: de gloed "in het glas" */
.pg-underlay { position: relative; isolation: isolate; }
.pg-underlay::before {
  content: ""; position: absolute; inset: -12% 0 -30%; z-index: -1;
  background: var(--underlay); filter: blur(20px); pointer-events: none;
}

/* ---------- 5. Biermotieven: schuim, belletjes, schuimlijn ---------- */
.pg-foam { position: relative; }
.pg-foam::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: -9px; height: 18px;
  background:
    radial-gradient(circle at 9px 11px, var(--c-schuim) 8px, transparent 8.5px) 0 0 / 18px 18px repeat-x,
    radial-gradient(circle at 18px 13px, var(--c-schuim) 6px, transparent 6.5px) 4px 0 / 26px 18px repeat-x;
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, .8)) drop-shadow(0 2px 2px rgba(110, 62, 8, .12));
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  transform-origin: bottom; transform: scaleY(.0); opacity: 0; pointer-events: none;
}
.pg-foam.is-foamy::before,
.pg-foam:hover::before, .pg-foam:focus-within::before { transform: scaleY(1); opacity: 1; }
[data-theme="dark"] .pg-foam::before { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }

.pg-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.pg-bubbles span {
  position: absolute; bottom: -20px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(255, 246, 225, .35) 45%, rgba(255, 255, 255, 0) 70%);
  border: 1px solid rgba(255, 255, 255, .55);
  animation: pg-rise 14s linear infinite; opacity: 0;
}
.pg-bubbles span:nth-child(1) { left: 6%;  animation-delay: 0s;   width: 6px;  height: 6px; }
.pg-bubbles span:nth-child(2) { left: 14%; animation-delay: 3s;   animation-duration: 17s; }
.pg-bubbles span:nth-child(3) { left: 27%; animation-delay: 7s;   width: 5px;  height: 5px; }
.pg-bubbles span:nth-child(4) { left: 41%; animation-delay: 1.5s; animation-duration: 19s; width: 10px; height: 10px; }
.pg-bubbles span:nth-child(5) { left: 58%; animation-delay: 5s;   width: 6px;  height: 6px; }
.pg-bubbles span:nth-child(6) { left: 69%; animation-delay: 9s;   animation-duration: 16s; }
.pg-bubbles span:nth-child(7) { left: 81%; animation-delay: 2s;   width: 5px;  height: 5px; }
.pg-bubbles span:nth-child(8) { left: 92%; animation-delay: 6s;   animation-duration: 18s; width: 9px; height: 9px; }
@keyframes pg-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(6px, -45vh); }
  90% { opacity: .7; }
  100% { transform: translate(-4px, -90vh); opacity: 0; }
}
/* golvende schuimlijn tussen hero en inhoud */
.pg-foamline {
  height: 34px; margin-top: -33px; position: relative; z-index: 2;
  background:
    radial-gradient(circle at 20px 34px, var(--bg) 21px, transparent 22px) 0 0 / 40px 34px repeat-x,
    radial-gradient(circle at 10px 34px, var(--bg) 14px, transparent 15px) 17px 6px / 34px 28px repeat-x;
}

/* ---------- 6. Knoppen ---------- */
.pg-btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font: 800 15px/1 var(--font-body); letter-spacing: .01em; text-decoration: none !important;
  background: var(--btn-bg); color: var(--btn-fg) !important; border: 1px solid transparent; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -10px rgba(46, 85, 50, .7);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.pg-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 24px -10px rgba(46, 85, 50, .75); }
.pg-btn:active { transform: translateY(1px) scale(.98); }
.pg-btn svg { width: 18px; height: 18px; flex: none; }
.pg-btn--amber {
  --btn-bg: linear-gradient(180deg, var(--c-amber-2), var(--c-amber)); --btn-fg: var(--c-espresso);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(143, 86, 12, .25), 0 10px 22px -10px rgba(185, 110, 10, .8);
}
.pg-btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line); box-shadow: none; }
.pg-btn--ghost:hover { background: rgba(42, 28, 18, .05); box-shadow: none; }
[data-theme="dark"] .pg-btn--ghost:hover { background: rgba(244, 232, 208, .07); }
.pg-btn--glass {
  --btn-bg: var(--glass-bg); --btn-fg: var(--text);
  border-color: var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pg-btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.pg-btn--icon { width: 48px; padding: 0; }
.pg-btn[disabled], .pg-btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.pg-btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.pg-btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--on-primary) var(--on-primary) transparent transparent;
  animation: pg-spin .8s linear infinite;
}
.pg-btn.is-done { --btn-bg: var(--c-salie); --btn-fg: var(--c-espresso); }
@keyframes pg-spin { to { transform: rotate(360deg); } }

/* ---------- 7. Formulieren ---------- */
.pg-field { display: flex; flex-direction: column; gap: 6px; }
.pg-label { font-size: 14px; font-weight: 800; color: var(--text); }
.pg-help { font-size: 13px; color: var(--text-muted); }
.pg-input, .pg-textarea, .pg-select {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-m);
  font: 500 16px/1.4 var(--font-body); color: var(--text);
  background: rgba(255, 251, 242, .75); border: 1px solid rgba(42, 28, 18, .22);
  box-shadow: inset 0 1px 2px rgba(42, 28, 18, .06);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
[data-theme="dark"] .pg-input, [data-theme="dark"] .pg-textarea, [data-theme="dark"] .pg-select {
  background: rgba(255, 236, 200, .06); border-color: rgba(244, 232, 208, .22);
}
.pg-textarea { min-height: 140px; resize: vertical; }
.pg-input::placeholder, .pg-textarea::placeholder { color: rgba(74, 54, 38, .7); }
.pg-input:hover, .pg-textarea:hover { border-color: rgba(42, 28, 18, .4); }
.pg-input:focus, .pg-textarea:focus, .pg-select:focus, .pg-input.is-focus {
  outline: none; border-color: var(--c-bosgroen); background: var(--c-schuim);
  box-shadow: 0 0 0 4px rgba(46, 85, 50, .18);
}
.pg-input.is-error { border-color: var(--c-error); box-shadow: 0 0 0 4px rgba(163, 52, 31, .14); }
.pg-error { font-size: 13px; font-weight: 700; color: var(--c-error); display: flex; gap: 6px; align-items: center; }
.pg-input[disabled] { opacity: .55; cursor: not-allowed; }
.pg-check { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 44px; }
.pg-check input { width: 20px; height: 20px; accent-color: var(--c-bosgroen); }
.pg-dropzone {
  border: 2px dashed rgba(42, 28, 18, .28); border-radius: var(--r-l); padding: var(--s-7) var(--s-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center;
  background: rgba(255, 251, 242, .5);
}
.pg-dropzone.is-over { border-color: var(--c-amber); background: rgba(242, 192, 99, .14); }

/* ---------- 8. Kaarten ---------- */
.pg-card {
  display: flex; flex-direction: column; overflow: visible;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--r-l); box-shadow: var(--glass-shadow);
  color: inherit; text-decoration: none !important;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pg-card__media { border-radius: calc(var(--r-l) - 6px); margin: 6px 6px 0; overflow: hidden; position: relative; }
.pg-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.pg-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text-muted); align-items: center; }
.pg-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.pg-card__meta svg { width: 16px; height: 16px; }
.pg-card__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); margin-top: auto; }
.pg-tilt:hover { transform: perspective(900px) rotateX(2deg) rotateY(-2.5deg) translateY(-4px); box-shadow: var(--glass-shadow), 0 30px 50px -30px rgba(110, 62, 8, .5); }

/* ---------- 9. Tags & badges ---------- */
.pg-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: var(--text); background: rgba(42, 28, 18, .07); border: 1px solid var(--line);
  white-space: nowrap;
}
.pg-tag svg { width: 14px; height: 14px; }
.pg-tag--glass { background: rgba(30, 20, 12, .55); color: #FFF4DF; border-color: rgba(255, 236, 200, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pg-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-s);
  font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  background: var(--c-bosgroen); color: var(--c-schuim);
}
.pg-badge--amber { background: var(--c-amber); color: var(--c-espresso); }
.pg-badge--salie { background: var(--c-salie); color: var(--c-espresso); }
.pg-badge--leer { background: var(--c-leer); color: var(--c-schuim); }
.pg-badge--outline { background: transparent; color: var(--text); border: 1.5px solid currentColor; }
.pg-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  font: 700 15px/1 var(--font-body); color: var(--text); cursor: pointer;
  background: transparent; border: 1px solid var(--line); transition: background .2s, color .2s;
}
.pg-chip:hover { background: rgba(42, 28, 18, .06); }
.pg-chip.is-active { background: var(--c-espresso); color: var(--c-perkament); border-color: var(--c-espresso); }
[data-theme="dark"] .pg-chip.is-active { background: var(--c-perkament); color: var(--c-espresso); }
.pg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .pg-chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--s-4) * -1); padding-inline: var(--s-4); scrollbar-width: none; } }

/* ---------- 10. Hartje ---------- */
.pg-heart {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(255, 251, 242, .6);
  font: 800 15px/1 var(--font-body); color: var(--text); cursor: pointer; position: relative;
  transition: background .2s, border-color .2s;
}
[data-theme="dark"] .pg-heart { background: rgba(255, 236, 200, .06); }
.pg-heart__icon { width: 24px; height: 24px; position: relative; flex: none; }
.pg-heart__icon svg { width: 24px; height: 24px; overflow: visible; }
.pg-heart__icon path { fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill .2s; }
.pg-heart:hover { border-color: var(--c-amber); }
.pg-heart:hover .pg-heart__icon path { fill: rgba(229, 164, 58, .25); }
.pg-heart.is-on { background: rgba(242, 192, 99, .22); border-color: var(--c-amber); }
.pg-heart.is-on .pg-heart__icon path { fill: var(--c-amber); stroke: var(--c-amber-deep); }
.pg-heart.is-on .pg-heart__icon svg { animation: pg-pop .45s var(--ease); }
.pg-heart__foam { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.pg-heart__foam i {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--c-schuim);
  border: 1px solid rgba(143, 86, 12, .35); opacity: 0;
}
.pg-heart.is-on .pg-heart__foam i { animation: pg-foam .7s var(--ease) forwards; }
.pg-heart__foam i:nth-child(1) { --dx: -14px; --dy: -18px; }
.pg-heart__foam i:nth-child(2) { --dx: -3px;  --dy: -26px; width: 9px; height: 9px; animation-delay: .04s !important; }
.pg-heart__foam i:nth-child(3) { --dx: 10px;  --dy: -20px; animation-delay: .08s !important; }
.pg-heart__foam i:nth-child(4) { --dx: 16px;  --dy: -8px;  width: 5px; height: 5px; animation-delay: .1s !important; }
.pg-heart__foam i:nth-child(5) { --dx: -18px; --dy: -6px;  width: 5px; height: 5px; animation-delay: .06s !important; }
@keyframes pg-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes pg-foam {
  0% { transform: translate(-3px, 8px) scale(.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(calc(var(--dx) - 3px), var(--dy)) scale(1); opacity: 0; }
}
.pg-heart--lg { min-height: 56px; padding: 0 22px 0 16px; font-size: 17px; }
.pg-heart--lg .pg-heart__icon, .pg-heart--lg .pg-heart__icon svg { width: 28px; height: 28px; }
.pg-heart--static { pointer-events: none; border: 0; background: transparent; padding: 0; min-height: 0; gap: 6px; font-size: 14px; }
.pg-heart--static .pg-heart__icon, .pg-heart--static .pg-heart__icon svg { width: 18px; height: 18px; }

/* ---------- 11. Tellers ---------- */
.pg-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-counter { padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: 4px; }
.pg-counter + .pg-counter { border-left: 1px solid var(--line); }
.pg-counter__value {
  font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums; color: var(--text);
}
.pg-counter__value small { font-size: .45em; font-weight: 600; margin-left: 4px; color: var(--c-amber-deep); letter-spacing: 0; }
.pg-counter__label { font-size: 14px; font-weight: 700; color: var(--text-muted); }
@media (max-width: 760px) {
  .pg-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-counter { padding: var(--s-5) var(--s-4); }
  .pg-counter:nth-child(3) { border-left: 0; }
  .pg-counter:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pg-counter__value { font-size: 40px; }
}

/* statistiekenbalk (wandeling-detail) */
.pg-statbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--s-2); }
.pg-stat { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); }
.pg-stat + .pg-stat { border-left: 1px solid var(--line); }
.pg-stat__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(229, 164, 58, .2); color: var(--c-amber-deep); flex: none; }
.pg-stat__icon svg { width: 22px; height: 22px; }
.pg-stat__value { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pg-stat__value small { font-size: .55em; margin-left: 3px; font-weight: 600; }
.pg-stat__label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
@media (max-width: 760px) {
  .pg-statbar { padding: var(--s-1); }
  .pg-stat { flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: var(--s-3); }
  .pg-stat__icon { width: 36px; height: 36px; }
  .pg-stat__value { font-size: 22px; }
}

/* ---------- 12. Foto's (telefoonkiekjes mooi maken) ---------- */
.pg-photo {
  position: relative; overflow: hidden; background-color: #5B4A33; color: #FFF4DF;
  background-image:
    radial-gradient(120% 90% at 20% 10%, rgba(242, 192, 99, .55), transparent 55%),
    radial-gradient(90% 80% at 90% 100%, rgba(46, 85, 50, .85), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 12px);
  display: flex; align-items: flex-end; aspect-ratio: 4 / 3;
}
.pg-photo--tall { aspect-ratio: 3 / 4; }
.pg-photo--square { aspect-ratio: 1 / 1; }
.pg-photo--wide { aspect-ratio: 16 / 9; }
.pg-photo--hero { aspect-ratio: auto; }
.pg-photo--b { background-color: #3E4E36; }
.pg-photo--c { background-color: #6B4B2E; }
.pg-photo--d { background-color: #2F3B2C; }
/* standaard-behandeling: warme duotone + vignet + korrel, zodat elk kiekje in de familie past */
.pg-photo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 28, 18, 0) 45%, rgba(42, 28, 18, .72) 100%);
}
.pg-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 3px 3px;
}
.pg-photo__ph {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 244, 223, .75);
}
.pg-photo__ph span { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pg-photo__ph svg { width: 28px; height: 28px; opacity: .8; }
.pg-photo__cap { position: relative; z-index: 2; padding: var(--s-4); width: 100%; }
.pg-polaroid { background: var(--c-schuim); padding: 10px 10px 34px; border-radius: 6px; box-shadow: 0 18px 30px -18px rgba(42, 28, 18, .6); }
.pg-polaroid--l { transform: rotate(-3deg); }
.pg-polaroid--r { transform: rotate(2.5deg); }

/* ---------- 13. Avatars & leden ---------- */
.pg-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 800 15px/1 var(--font-body); color: var(--c-schuim); background: var(--c-leer);
  border: 2px solid var(--c-schuim); box-shadow: 0 2px 6px rgba(42, 28, 18, .2);
}
.pg-avatar--g { background: var(--c-bosgroen); }
.pg-avatar--s { background: var(--c-salie); color: var(--c-espresso); }
.pg-avatar--a { background: var(--c-amber); color: var(--c-espresso); }
.pg-avatar--e { background: var(--c-espresso); }
.pg-avatar--sm { width: 34px; height: 34px; font-size: 12px; }
.pg-avatar--lg { width: 96px; height: 96px; font-size: 32px; border-width: 3px; }
.pg-avatar--xl { width: 168px; height: 168px; font-size: 54px; border-width: 4px; font-family: var(--font-display); }
.pg-avatars { display: flex; align-items: center; }
.pg-avatars .pg-avatar + .pg-avatar { margin-left: -10px; }
.pg-avatars__more { margin-left: 10px; font-size: 14px; font-weight: 700; color: var(--text-muted); }

/* ---------- 14. Navigatie ---------- */
.pg-header { position: relative; z-index: 10; padding-block: var(--s-4); color: var(--text); }
.pg-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: 8px 8px 8px 12px; border-radius: var(--r-pill); }
.pg-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--text) !important; }
.pg-brand img { width: 52px; height: auto; filter: drop-shadow(0 4px 8px rgba(42, 28, 18, .25)); }
.pg-brand b { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.pg-nav { display: flex; align-items: center; gap: 2px; }
.pg-nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; color: var(--text) !important; text-decoration: none !important;
  transition: background .2s;
}
.pg-nav__link:hover { background: rgba(42, 28, 18, .06); }
[data-theme="dark"] .pg-nav__link:hover { background: rgba(244, 232, 208, .08); }
.pg-nav__link.is-active { background: var(--c-espresso); color: var(--c-perkament) !important; }
[data-theme="dark"] .pg-nav__link.is-active { background: var(--c-perkament); color: var(--c-espresso) !important; }
.pg-header__actions { display: flex; gap: 8px; align-items: center; }
.pg-burger { display: none; }
@media (max-width: 980px) {
  .pg-header .pg-nav, .pg-header__actions .pg-btn--login { display: none; }
  .pg-burger { display: inline-flex; }
  .pg-brand img { width: 44px; }
  .pg-brand b { font-size: 19px; }
}
.pg-drawer {
  margin-top: var(--s-2); padding: var(--s-3); display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-xl);
}
.pg-drawer .pg-nav__link { min-height: 52px; font-size: 18px; font-family: var(--font-display); font-weight: 600; justify-content: space-between; border-radius: var(--r-m); }
.pg-drawer__foot { display: flex; gap: 8px; padding: var(--s-3) var(--s-2) var(--s-1); border-top: 1px solid var(--line); margin-top: var(--s-2); }
.pg-drawer__foot .pg-btn { flex: 1; }
.pg-breadcrumb { display: flex; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-muted); align-items: center; flex-wrap: wrap; }
.pg-breadcrumb a { color: var(--text-muted); }

/* ---------- 15. Hero ---------- */
.pg-hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: var(--s-9); background: var(--hero-beer), var(--bg); }
.pg-hero--photo { background: #2A1C12; color: #FFF4DF; }
.pg-hero--photo .pg-photo { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
.pg-hero--photo .pg-photo::before { background: linear-gradient(180deg, rgba(42, 28, 18, .55) 0%, rgba(42, 28, 18, .15) 40%, rgba(42, 28, 18, .85) 100%); }
.pg-pagehead { padding-block: var(--s-7) var(--s-8); display: flex; flex-direction: column; gap: var(--s-4); position: relative; z-index: 1; }
.pg-pagehead--short { padding-bottom: var(--s-7); }
.pg-pagehead .pg-lead { max-width: 60ch; }

/* ---------- 16. Overig ---------- */
.pg-divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.pg-wink {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-6); align-items: center;
  padding: var(--s-6) var(--s-7); border-radius: var(--r-xl);
}
@media (max-width: 760px) { .pg-wink { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); gap: var(--s-4); } }
.pg-stamp {
  width: 112px; height: 112px; border-radius: 50%; border: 2px dashed var(--c-bosgroen); color: var(--c-bosgroen);
  display: grid; place-items: center; text-align: center; transform: rotate(-12deg);
  font: 900 13px/1.15 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
[data-theme="dark"] .pg-stamp { border-color: var(--link); color: var(--link); }
.pg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pg-list > li { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.pg-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.pg-dl dt { color: var(--text-muted); font-weight: 700; }
.pg-dl dd { margin: 0; font-weight: 600; }
.pg-datebox {
  width: 72px; flex: none; border-radius: var(--r-m); overflow: hidden; text-align: center;
  background: var(--c-schuim); border: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(42, 28, 18, .35);
}
.pg-datebox b { display: block; background: var(--c-bosgroen); color: var(--c-schuim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 0; }
.pg-datebox span { display: block; font: 700 30px/1.2 var(--font-display); padding: 4px 0 6px; color: var(--c-espresso); }
.pg-notice { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-m); font-size: 14px; font-weight: 600; background: rgba(157, 176, 119, .28); }
.pg-notice svg { width: 20px; height: 20px; flex: none; }
.pg-notice--amber { background: rgba(242, 192, 99, .3); }

/* kaart (GPX) */
.pg-map { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #E4DCC4; min-height: 420px; }
.pg-map svg.pg-map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-map__ctrl { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.pg-map__legend { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 12px 16px; display: flex; gap: var(--s-5); font-size: 13px; font-weight: 700; flex-wrap: wrap; border-radius: var(--r-m); }
@media (max-width: 760px) { .pg-map { min-height: 320px; border-radius: var(--r-l); } }

/* masonry */
.pg-masonry { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 120px; grid-auto-flow: dense; gap: 14px; }
.pg-masonry > * { border-radius: var(--r-l); overflow: hidden; position: relative; display: block; }
.pg-masonry .pg-photo { height: 100%; aspect-ratio: auto; transition: transform .5s var(--ease); }
.pg-masonry > *:hover .pg-photo { transform: scale(1.04); }
.pg-m-1 { grid-column: span 2; grid-row: span 2; }
.pg-m-2 { grid-column: span 2; grid-row: span 3; }
.pg-m-3 { grid-column: span 3; grid-row: span 2; }
.pg-m-4 { grid-column: span 1; grid-row: span 2; }
.pg-m-5 { grid-column: span 4; grid-row: span 3; }
.pg-m-6 { grid-column: span 2; grid-row: span 1; }
.pg-masonry__cap { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.pg-masonry > *:hover .pg-masonry__cap, .pg-masonry > *:focus-visible .pg-masonry__cap { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .pg-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 96px; gap: 8px; }
  .pg-m-1, .pg-m-6 { grid-column: span 1; grid-row: span 2; }
  .pg-m-2 { grid-column: span 1; grid-row: span 3; }
  .pg-m-3, .pg-m-5 { grid-column: span 2; grid-row: span 2; }
  .pg-m-4 { grid-column: span 1; grid-row: span 2; }
  .pg-masonry > * { border-radius: var(--r-m); }
}

/* lightbox */
.pg-lightbox { position: relative; background: #120C08; color: #FFF4DF; min-height: 100%; display: flex; flex-direction: column; }
.pg-lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) var(--s-5); gap: var(--s-4); }
.pg-lightbox__stage { flex: 1; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; gap: var(--s-4); padding: 0 var(--s-5); }
.pg-lightbox__img { border-radius: var(--r-l); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.pg-lightbox__img .pg-photo { aspect-ratio: 3 / 2; }
.pg-lightbox__cap { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; }
.pg-lightbox .pg-btn--glass { --btn-fg: #FFF4DF; --btn-bg: rgba(255, 236, 200, .1); border-color: rgba(255, 236, 200, .22); box-shadow: none; }
.pg-thumbs { display: flex; gap: 8px; }
.pg-thumbs > * { width: 56px; height: 42px; border-radius: 8px; overflow: hidden; opacity: .5; border: 2px solid transparent; }
.pg-thumbs > *.is-active { opacity: 1; border-color: var(--c-amber); }
.pg-thumbs .pg-photo { height: 100%; aspect-ratio: auto; }
@media (max-width: 760px) {
  .pg-lightbox__stage { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .pg-lightbox__stage > .pg-btn { display: none; }
  .pg-lightbox__img { border-radius: 0; }
  .pg-lightbox__img .pg-photo { aspect-ratio: 3 / 4; }
  .pg-thumbs { display: none; }
}

/* footer */
.pg-footer { position: relative; background: var(--c-espresso); color: var(--c-perkament); padding-block: var(--s-8) var(--s-6); overflow: hidden; }
.pg-footer a { color: var(--c-perkament); }
.pg-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--s-7); }
.pg-footer__base { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; border-top: 1px solid rgba(244, 232, 208, .16); margin-top: var(--s-7); padding-top: var(--s-5); font-size: 13px; color: #CDB894; }
.pg-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px;
  background: radial-gradient(circle at 14px 0, var(--bg) 14px, transparent 15px) 0 0 / 28px 22px repeat-x;
}
@media (max-width: 760px) { .pg-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

/* tellers die oplopen: start-state */


/* ---------- 17. Rustige variant ---------- */
@media (prefers-reduced-motion: reduce) {
  .pg *, .pg *::before, .pg *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pg-bubbles { display: none; }
  .pg-tilt:hover { transform: none; }
  .pg-heart.is-on .pg-heart__foam i { display: none; }
}

/* ---------- 18. Aanvullingen statische export ---------- */
.pg-drawer { position: absolute; left: var(--s-4); right: var(--s-4); top: 100%; z-index: 20;
  background: color-mix(in srgb, var(--surface) 94%, transparent); }
.pg-404 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(140px, 24vw, 300px); line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--c-schuim) 0%, var(--c-schuim) 26%, var(--c-amber-2) 27%, var(--c-amber) 70%, #B9761A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 18px 30px rgba(110, 62, 8, .35)); -webkit-text-stroke: 2px rgba(42, 28, 18, .25);
}
.pg-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pg-progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-amber-2), var(--c-amber)); }
.pg-linkbtn { background: none; border: 0; cursor: pointer; font: 700 14px/1 var(--font-body); color: var(--text-muted); text-decoration: underline; min-height: 32px; }
.pg-lightbox-page { height: 100vh; height: 100dvh; background: #120C08; }
.pg-lightbox__stage { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .pg-404 { filter: none; } }
.pg-hero--photo .pg-photo__ph { place-items: start end; padding: 104px var(--gutter) 0; }
.pg-heart.pg-glass--dark { background: var(--glass-dark-bg); border-color: var(--glass-dark-border); color: var(--glass-dark-text); }
.pg-heart.pg-glass--dark.is-on { background: rgba(229, 164, 58, .38); border-color: var(--c-amber); }
