/* Additions for the static rebuild (loaded after theme.css).
   Replaces styling that used to come from Cycle2 inline styles, Fancybox, RSForm and Google Maps. */

:root {
  /* Astora brand palette (brandbook): green = primary, bright orange = second main colour,
     light orange only sparingly (graphics on an orange background). Plenty of white. */
  --c-primary: #134420;        /* Astora Groen  PANTONE 2427 C */
  --c-primary-dark: #0e3318;
  --c-primary-darker: #0a2611;
  --c-primary-light: #1d5a2d;
  --c-accent: #e7411b;         /* Feloranje  PANTONE Bright Red C */
  --c-accent-dark: #c5340f;
  --c-accent-light: #e46c4a;   /* Lichtoranje  PANTONE 4011 C */
  --c-text: #1f2a22;
  --c-muted: #5d6a60;
  --c-line: #e3e6e1;
  --c-soft: #f5f6f3;
  --font-heading: "grtsk-vf", "Archivo", "Kumbh Sans", Helvetica, Arial, sans-serif;
  --font-body: "Kumbh Sans", Helvetica, Arial, sans-serif;
}

/* ---------- fading slideshows ---------- */
.is-fader { position: relative; }
#banner .banner-inner.is-fader > .banner {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  transition: opacity .5s linear;
}
#banner .banner-inner.is-fader > .banner.is-active { opacity: 1; z-index: 2; }
#logo-slider.is-fader > .logo-slide {
  position: absolute; top: 0; left: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s linear, visibility 0s linear .5s;
}
#logo-slider.is-fader > .logo-slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s linear; }

/* ---------- RSForm basics (was media/com_rsform/css/front.css) ---------- */
.formError { color: #CF4D4D; font-weight: bold; }
.formNoError { display: none; }
strong.formRequired { margin-left: 3px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin: 0 0 20px; }
.form-message.alert-success { font-size: 1.1em; }

/* ---------- lightbox (replaces Fancybox) ---------- */
.lightbox-lock, .lightbox-lock body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 8020; display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .8); padding: 40px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox-frame {
  position: relative; background: #f9f9f9; padding: 15px; border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .5); max-width: 100%; max-height: 100%;
}
.lightbox-frame img { display: block; max-width: calc(100vw - 70px); max-height: calc(100vh - 130px); width: auto; height: auto; }
.lightbox-caption { margin: 10px 0 0; text-align: center; color: #333; }
.lightbox button {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .55);
  font: 300 32px/1 var(--font-body); transition: background .2s;
}
.lightbox button:hover, .lightbox button:focus { background: var(--c-primary); }
.lightbox-close { top: -18px; right: -18px; width: 36px; height: 36px; border-radius: 50%; font-size: 26px !important; }
.lightbox-prev, .lightbox-next { top: 50%; width: 44px; height: 60px; margin-top: -30px; }
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }

/* ---------- maps (Leaflet) ---------- */
.js-map { background: #e5e3df; }
.map-pin { background: none; border: 0; }
.map-pin svg { display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.leaflet-container { font: inherit; }
.leaflet-popup-content a { color: var(--c-primary); font-weight: 600; }

/* ---------- social sidebar ---------- */
.fb-page-embed { max-width: 320px; }
