/* ==========================================================================
   Activiteiten (activiteiten.html): page-specific styles only
   Figma: 1440 frame "Activiteiten" (1853:953) and 393 frame (1518:3557,
   named "Contact Mobile" in Figma). Below 1200px the sidebar becomes a
   collapsible card between the activity rows and the advies form.
   ========================================================================== */

.page-activiteiten {
  --act-gap-craft: clamp(100px, calc(9.36vw + 63px), 198px);    /* hero → "Ontdek…" */
  --act-gap-advies: clamp(100px, calc(12.9vw + 50px), 235px);   /* rows → advies */
  --act-line: rgba(0, 0, 0, 0.1);
}
.page-activiteiten .site-footer { margin-top: var(--section-y); }

/* ---------- Layout: sidebar | main ---------- */
.act-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  --act-col-gap: clamp(32px, 3.4vw, 49px);
  column-gap: var(--act-col-gap);
  align-items: start;
  padding-top: 31px;
}
.act-main { min-width: 0; }
/* Figma centres the rows and the form on the full column right of the sidebar (gap included) */
.act-craft, .act-advies { margin-left: calc(-1 * var(--act-col-gap)); }

/* ---------- Shared bits on this page ---------- */
/* small pill (hero): Figma 12/16 padding, radius 40 */
.act-badge { padding: 12px 16px; border-radius: 40px; line-height: 1.3; }

.tag-list, .chip-list { display: flex; flex-wrap: wrap; align-items: center; }
.tag-list { gap: 18px; }
.tag {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.05);
  color: #000;
  font-size: 20px;
  line-height: 1.3;
  white-space: nowrap;
}
.chip-list { gap: 8px; }
.chip {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(178, 84, 33, 0.05);
  color: var(--c-orange-500);
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .chip:hover { background: var(--c-orange-500); color: var(--c-card); }
}

/* ---------- Back to the list: bottom link next to the sidebar, top link once the list sits below ---------- */
.act-back--top { display: none; }
.act-back--bottom { margin-top: 48px; }

/* ---------- Version 2 layout (every activity page): short rows with a small photo, slider,
   and real tabs when there is a "Friso vertelt…" text ---------- */
.pb2-tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 3px solid var(--c-green-500); }
.pb2-tab {
  padding: 15px 32px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--c-bg-3);
  color: var(--c-green-500);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.pb2-tab[aria-selected="true"] { background: var(--c-green-500); color: var(--c-card); }
@media (hover: hover) {
  .pb2-tab[aria-selected="false"]:hover { background: var(--c-orange-50); color: var(--c-orange-500); }
}
.pb2-panel[hidden] { display: none; }
.pb2-panel:focus-visible { outline-offset: 6px; }

/* In 't kort: two short sections with a small photo */
.pb2-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: center; color: rgba(0, 0, 0, 0.68); font-size: 18px; line-height: 1.65; }
.pb2-row + .pb2-row { margin-top: 40px; }
.pb2-row--flip { grid-template-columns: 220px minmax(0, 1fr); }
.pb2-row--flip .pb2-photo { order: -1; }
.pb2-row--text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pb2-row p + p { margin-top: 12px; }
.pb2-photo { width: 220px; height: 220px; border-radius: var(--r-lg); }
.pb2-title { margin-bottom: 12px; font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1.2; color: var(--c-green-500); }
.pb2-subtitle { margin-bottom: 8px; font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--c-green-500); }

/* In 't kort: photo slider, 3.4 photos in view so the next one peeks in */
.pb2-gallery { margin-top: 48px; }
.pb2-gallery__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pb2-gallery__head .pb2-subtitle { margin-bottom: 0; }
.pb2-gallery__nav { display: flex; gap: 8px; }
.pb2-gallery__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-green-500); color: var(--c-card); cursor: pointer; transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.pb2-gallery__btn:disabled { background: var(--c-bg-3); color: rgba(0, 0, 0, 0.35); cursor: default; }
@media (hover: hover) {
  .pb2-gallery__btn:not(:disabled):hover { background: var(--c-orange-500); }
}
.pb2-gallery .carousel__track { display: flex; gap: 16px; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; user-select: none; }
.pb2-gallery .carousel__track::-webkit-scrollbar { display: none; }
.pb2-gallery .carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.pb2-gallery .carousel__track > * { flex: 0 0 calc((100% - 48px) / 3.4); scroll-snap-align: start; }
.pb2-gallery__item { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }

/* Friso vertelt: his card */
.pb2-friso { overflow: hidden; border-radius: var(--r-xl); background: var(--c-card); box-shadow: var(--sh-card); color: rgba(0, 0, 0, 0.7); font-size: 16px; line-height: 1.6; }
.fr-side { display: flex; align-items: center; gap: 24px; padding: 24px 36px; background: var(--c-green-500); color: var(--c-card); }
.fr-face { flex: none; width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 4px var(--c-green-500), 0 0 0 6px var(--c-orange-200); }
.fr-id { flex: none; }
.fr-title { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.2; }
.fr-role { margin-top: 4px; font-size: 14px; color: var(--c-orange-100); }
.fr-quote { padding-left: 24px; border-left: 1px solid rgba(253, 253, 253, 0.25); font-family: var(--f-display); font-size: 20px; line-height: 1.35; }
.fr-body { padding: 36px; }
.fr-body::after { content: ""; display: block; clear: both; }
.fr-body p + p { margin-top: 12px; }
.fr-heading { clear: both; margin: 24px 0 8px; font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--c-green-500); }
.fr-thumb { float: right; width: 72px; height: 72px; margin: 4px 0 8px 16px; border-radius: var(--r-sm); object-fit: cover; }
.fr-body p.fr-end { clear: both; margin-top: 24px; font-family: var(--f-display); font-size: 19px; line-height: 1.35; color: var(--c-orange-700); }

/* Generated activity pages: photos sit centred, availability notice */
.page-activiteiten .act-hero__media--c img, .page-activiteiten .act-step__media--c img { object-position: 50% 50%; }
.act-notice { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-md); background: var(--c-orange-50); color: var(--c-orange-700); font-size: 16px; line-height: 1.4; }

/* ---------- Activity nav (sidebar) ---------- */
.act-nav__card {
  padding: 16px 16px 0;
  border-radius: 24px;
  background: var(--c-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.act-nav__summary { display: none; }
.act-nav__list { display: flex; flex-direction: column; }
.act-nav__item { border-bottom: 1px solid var(--act-line); }
.act-nav__item:last-child { border-bottom: 0; }
.act-nav__link {
  position: relative;
  display: block;
  padding: 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 32px;
  white-space: nowrap;
  color: var(--c-green-500);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
}
/* slim orange marker on hover / current item */
.act-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: var(--c-orange-500);
  transform: scaleY(0);
  transition: transform var(--dur) var(--ease-out);
}
.act-nav__link:hover, .act-nav__link:focus-visible,
.act-nav__link[aria-current="page"], .act-nav__item:target .act-nav__link { color: var(--c-orange-500); }
.act-nav__link:hover::before, .act-nav__link:focus-visible::before,
.act-nav__link[aria-current="page"]::before, .act-nav__item:target .act-nav__link::before { transform: scaleY(1); }
.act-nav__group { padding-block: 12px; font-weight: 600; font-size: 16px; line-height: 32px; color: #000; }

.act-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 17px;
}
.act-help__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-green-500);
  color: var(--c-white);
}
.act-help__icon svg { width: 16px; height: 16px; }
.act-help__text { display: flex; flex-direction: column; gap: 8px; }
.act-help__title { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--c-green-500); }
.act-help__sub { font-size: 12px; line-height: 1.3; color: rgba(0, 0, 0, 0.5); }
.act-help__cta { min-height: 32px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 12px; line-height: 1.3; }

/* ---------- Hero ---------- */
.act-hero { padding-top: 52px; }
.act-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 502fr) minmax(0, 412fr);
  column-gap: 57px;
  align-items: center;
  max-width: 971px;
  margin-left: auto;
  margin-right: 17px;
}
.act-hero__body { display: flex; flex-direction: column; align-items: flex-start; }
.act-hero__title {
  margin-top: 21px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(44px, calc(1.53vw + 42px), 64px);
  line-height: 1.33;
  color: var(--c-green-500);
}
.act-hero__text { margin-top: 27px; font-size: 20px; line-height: 32px; color: rgba(0, 0, 0, 0.5); }
.act-hero .tag-list { margin-top: 51px; }
.act-hero__media { aspect-ratio: 412 / 674; border-radius: 40px; }
.act-hero__media img { object-position: 8% 50%; }

/* ---------- Craft (Ontdek de kunst van het schieten) ---------- */
.act-craft { margin-top: var(--act-gap-craft); }
.act-craft__head .h2 { line-height: 44px; }
.act-craft__rows { display: flex; flex-direction: column; gap: 68px; max-width: 932px; margin: 68px auto 0; }
/* Figma 515 | 74 | 343, fluid so it also fits the narrower main column at 1200–1439 */
@media (min-width: 768px) {
  .act-step.split { grid-template-columns: minmax(0, 515fr) minmax(0, 343fr); column-gap: clamp(32px, 5.1vw, 74px); }
  .act-step.split--reverse { grid-template-columns: minmax(0, 343fr) minmax(0, 515fr); }
}
.act-step .chip-list { margin-top: 59px; }
.act-step__media--1 img { object-position: 82% 50%; }
.act-step__media--2 img { object-position: 77% 50%; }
.act-step__media--3 img { object-position: 50% 50%; }

/* ---------- Advies: shared block (base.css); here it sits in the main column ---------- */
.act-advies { margin-top: var(--act-gap-advies); }
@media (min-width: 1024px) { .act-advies .advies-card { max-width: 965px; margin-inline: auto; } }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* < 1200: single column; the sidebar turns into a collapsible card after the rows */
@media (max-width: 1199.98px) {
  .act-layout { display: flex; flex-direction: column; padding-top: 24px; }
  .act-main { display: contents; }
  .act-hero, .act-craft, .act-nav, .act-advies { width: 100%; max-width: var(--w-content); margin-inline: auto; }
  .act-back--top { display: inline-flex; order: -1; align-self: flex-start; width: auto; max-width: var(--w-content); margin-bottom: 20px; }
  .act-back--bottom { display: none; }
  .pb2-tabs { order: -2; width: 100%; max-width: var(--w-content); margin-inline: auto; }
  .pb2-panel { order: 0; width: 100%; max-width: var(--w-content); margin-inline: auto; }
  .act-hero { order: 0; padding-top: 0; }
  .act-craft { order: 1; }
  .act-nav { order: 2; margin-top: clamp(64px, 8vw, 100px); }
  .act-advies { order: 3; margin-top: clamp(64px, 8vw, 100px); }

  .act-hero__grid { max-width: none; margin: 0; column-gap: 40px; }

  .act-nav__card { padding: 0; border-radius: var(--r-lg); overflow: hidden; }
  .act-nav__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: var(--c-green-500);
    cursor: pointer;
    list-style: none;
    transition: color var(--dur-fast);
  }
  .act-nav__summary::-webkit-details-marker { display: none; }
  .act-nav__summary:hover { color: var(--c-orange-500); }
  .act-nav__summary:focus-visible { outline-offset: -4px; }
  .act-nav__chevron {
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    background: var(--c-orange-50);
    color: var(--c-orange-500);
    transition: transform var(--dur) var(--ease-out);
  }
  .act-nav__panel[open] .act-nav__chevron { transform: rotate(180deg); }
  .act-nav__body { padding: 0 24px 8px; overflow: hidden; }
  .act-nav__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; }
  .act-nav__item:last-child { border-bottom: 1px solid var(--act-line); }
  .act-nav__link { padding-inline: 12px 0; white-space: normal; }
  .act-nav__group { padding-top: 24px; }

  .act-help {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid var(--act-line);
    background: var(--c-orange-50);
  }
  .act-help__text { flex: 1; gap: 2px; }
  .act-help__sub { font-size: 14px; }
  .act-help__cta { min-height: 44px; padding: 8px 16px; font-size: 16px; }
}

/* Tablet: stacked hero (image first, cinematic crop) */
@media (max-width: 1023.98px) {
  .act-hero__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .act-hero__media { order: -1; aspect-ratio: 16 / 10; border-radius: 24px; }
  .act-hero__media img { object-position: 30% 50%; }
  .act-hero__body { max-width: 640px; }
  .act-hero__title { font-size: clamp(48px, 6.6vw, 60px); line-height: 1.2; }
  .act-hero__text { font-size: 18px; line-height: 1.6; }
  .act-hero .tag-list { margin-top: 32px; }
  .act-step .chip-list { margin-top: 12px; }
}

/* Mobile (Figma 393) */
@media (max-width: 767.98px) {
  .act-layout { padding-top: 26px; }
  .act-hero__grid { row-gap: 28px; }
  .act-hero__media { aspect-ratio: 361 / 460; border-radius: 30px; }
  .act-hero__title { margin-top: 16px; font-size: 48px; line-height: 1.17; }
  .act-hero__text { margin-top: 14px; font-size: 16px; line-height: 1.3; }
  .act-hero .tag-list { margin-top: 24px; gap: 16px; }
  .tag { font-size: 16px; }

  .act-craft__head .h2 { font-size: 40px; line-height: 1.1; }
  .act-craft__rows { gap: 32px; margin-top: 32px; }
  .act-step .chip-list { margin-top: 0; }
  .act-step__media img { object-position: 50% 50%; }
  .act-step__media--1 img { object-position: 45% 50%; }

  .act-nav__summary { padding: 18px 20px; font-size: 22px; }
  .act-nav__body { padding: 0 20px 8px; }
  .act-nav__list { grid-template-columns: 1fr; }
  .act-help { flex-wrap: wrap; padding: 20px; }
  .act-help__text { flex-basis: calc(100% - 56px); }
  .act-help__cta { width: 100%; }

}

/* Long single words (Rotswandklimmen) must fit the narrowest phones */
@media (max-width: 479.98px) {
  .act-hero__title { font-size: clamp(34px, 10.4vw, 44px); }
}

@media (max-width: 767.98px) {
  .pb2-tabs { gap: 6px; margin-bottom: 20px; }
  .pb2-tab { flex: 1; padding: 13px 8px; font-size: 16px; }
  .pb2-row, .pb2-row--flip { grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; align-items: start; font-size: 16px; }
  .pb2-row--flip .pb2-photo { order: 0; }
  .pb2-row--text { grid-template-columns: minmax(0, 1fr); }
  .pb2-photo { width: 110px; height: 110px; margin-top: 6px; }
  .pb2-row + .pb2-row { margin-top: 28px; }
  .pb2-title { font-size: 30px; }
  .pb2-subtitle { font-size: 22px; }
  .pb2-gallery { margin-top: 32px; }
  .pb2-gallery .carousel__track > * { flex-basis: 62%; }
  .fr-side { flex-wrap: wrap; gap: 14px 16px; padding: 20px; }
  .fr-face { width: 72px; height: 72px; }
  .fr-id { flex: 1; min-width: 0; }
  .fr-title { font-size: 24px; }
  .fr-quote { flex-basis: 100%; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(253, 253, 253, 0.25); font-size: 18px; }
  .fr-body { padding: 24px 20px; }
}
