:root {
  color-scheme: light dark;
  /* Kleuren/lettertypes overgenomen van de originele WordPress-site (thema "Agama Pro"):
     titel/koppen in Crete Round, rood accent #DD3333, platte tekst in Roboto Condensed. */
  --bg: #ffffff;
  --fg: #333333;
  --muted: #767676;
  --accent: #DD3333;
  --accent-2: #b52a2a;
  --card: #ffffff;
  --line: #e5e5e5;
  --font-display: 'Crete Round', Georgia, serif;
  --font-body: 'Roboto Condensed', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1c;
    --fg: #e5e5e5;
    --muted: #a3a3a3;
    --accent: #ea5b5b;
    --accent-2: #f08080;
    --card: #262626;
    --line: #3a3a3a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
}
/* Sticky header met shrink-effect bij scrollen (net als de originele site). */
header#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 40px;
  transition: padding 0.25s ease;
}
header#site-header.is-shrunk .header-inner { padding: 8px 40px; }
header#site-header.is-shrunk { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.header-spacer { height: 108px; }

.lang-switcher { display: flex; align-items: center; gap: 0.35rem; }
.lang-flag {
  background: none; border: none; cursor: pointer; font-size: 1.1rem; line-height: 1;
  padding: 0.2rem; border-radius: 4px; opacity: 0.6; filter: grayscale(40%);
  transition: opacity 0.15s, filter 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.lang-flag img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; display: block; }
.lang-flag:hover { opacity: 0.9; filter: grayscale(0%); }
.lang-flag.is-active { opacity: 1; filter: grayscale(0%); background: rgba(255,255,255,0.15); }
.lang-flag-reset { position: relative; }
.lang-flag-x {
  position: absolute; bottom: -2px; right: -2px; font-size: 0.6rem; line-height: 1;
  background: var(--accent); color: #fff; border-radius: 50%; width: 11px; height: 11px;
  display: flex; align-items: center; justify-content: center;
}
.lang-flag-reset.is-active .lang-flag-x { display: none; }

/* Google Translate voegt standaard een banner + iframe + body-margin toe; we gebruiken alleen
   het cookie-mechanisme via onze eigen vlaggetjes, dus die eigen UI blijft verborgen. */
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
/* Let op: #google_translate_element krijgt zelf ook de class "skiptranslate" van Google —
   die mag NIET verborgen worden (anders initialiseert de vertaalwidget niet), dus we verbergen
   hier alleen de banner die los in <body> hangt, niet ons eigen widget-element. */
body > .skiptranslate:not(#google_translate_element) { display: none !important; }

.topbar-row { background: var(--accent-2); }
.topbar-inner {
  max-width: 1500px; margin: 0 auto; padding: 6px 40px;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem;
}
.topbar-inner .lang-switcher { margin-left: auto; }
.topbar-label { color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.03em; }
.topbar-inner a { color: rgba(255,255,255,0.92); text-decoration: none; }
.topbar-inner a:hover { color: #fff; text-decoration: underline; }
header#site-header.is-shrunk .topbar-row { display: none; }
header#site-header.is-shrunk ~ .header-spacer { height: 60px; }

.live-link { display: flex; align-items: center; gap: 0.4rem; }
.account-menu > span { font-size: 1.3rem; line-height: 1; cursor: pointer; }
.admin-dashboard-link:hover { color: var(--accent); }
.account-menu .dropdown { right: 0; left: auto; min-width: 220px; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #9ca3af; display: inline-block; flex-shrink: 0;
}
.live-dot.is-live { background: #22c55e; }
.live-dot.is-moving { animation: live-blink 1s ease-in-out infinite; }
@keyframes live-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50% { opacity: 0.4; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: height 0.25s ease;
  border-radius: 0;
}
header#site-header.is-shrunk .brand-logo { height: 34px; }
.brand {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
nav.main-nav { display: flex; gap: 2.5rem; font-size: 0.95rem; }
nav.main-nav > a, .has-dropdown > span {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
nav.main-nav > a:hover { color: var(--accent); }
nav.main-nav > a i, .has-dropdown > span i { font-size: 0.9em; width: 1em; text-align: center; }
.has-dropdown { position: relative; }
.has-dropdown:hover > span { color: var(--accent); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 340px;
  max-height: 75vh;
  overflow-y: auto;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.trip-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  white-space: nowrap;
}
.topbar-inner a { display: inline-flex; align-items: center; gap: 0.4rem; }
.dropdown a:hover { background: var(--bg); color: var(--accent); }

.dropdown-item { position: relative; }
.dropdown-item.dropdown-divider { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.4rem; }
.dropdown-item.dropdown-divider-below { border-bottom: 1px solid var(--line); margin-bottom: 0.4rem; padding-bottom: 0.4rem; }
.tier-badge {
  margin-left: auto; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; padding: 0.1rem 0.4rem;
}
.post-lock-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; flex-shrink: 0;
}

.tier-pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1rem;
  max-width: 1400px; margin: 0 auto;
}
.tier-pricing-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 2rem 1.5rem 1.75rem; text-align: center; display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.tier-pricing-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.3); }
.tier-pricing-card.is-current { border-color: var(--accent); border-width: 2px; }
.tier-pricing-current-badge {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.3rem 0.8rem; border-radius: 999px;
}
.tier-pricing-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.tier-pricing-price { font-size: 2rem; font-weight: 700; color: var(--accent); margin: 0.6rem 0 0.5rem; }
.tier-pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.tier-pricing-saving {
  color: #15803d; background: rgba(21,128,61,0.12); display: inline-block;
  font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px;
  margin: -0.2rem 0 0.6rem;
}

.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  margin: 0 auto 2rem;
}
.billing-toggle-label { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.billing-toggle-badge {
  background: rgba(221,51,51,0.12); color: var(--accent); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em; padding: 0.1rem 0.45rem; border-radius: 999px;
  margin-left: 0.3rem;
}
.billing-toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.billing-toggle-switch input { opacity: 0; width: 0; height: 0; }
.billing-toggle-slider {
  position: absolute; inset: 0; cursor: pointer; background: var(--line);
  border-radius: 999px; transition: background 0.2s ease;
}
.billing-toggle-slider::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.billing-toggle-switch input:checked + .billing-toggle-slider { background: var(--accent); }
.billing-toggle-switch input:checked + .billing-toggle-slider::before { transform: translateX(20px); }
.billing-toggle-switch input:focus-visible + .billing-toggle-slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier-pricing-desc { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.25rem; }
.tier-pricing-features {
  list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; flex: 1;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.tier-pricing-features li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; }
.tier-pricing-features i { color: var(--accent); margin-top: 0.2rem; flex-shrink: 0; }
.tier-pricing-cta { margin-top: auto; }
.tier-pricing-cta form { margin: 0; }
.upgrade-badge {
  margin-left: 0.4rem; color: #fff; background: var(--accent); border-color: var(--accent);
}
.nav-upgrade-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important; font-weight: 700; font-size: 0.85rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; line-height: 1;
  box-shadow: 0 4px 14px -4px rgba(221,51,51,0.55);
  animation: nav-upgrade-pulse 2.2s ease-in-out infinite;
}
.nav-upgrade-pill:hover { filter: brightness(1.08); }
@keyframes nav-upgrade-pulse {
  0%, 100% { box-shadow: 0 4px 14px -4px rgba(221,51,51,0.55); }
  50% { box-shadow: 0 4px 20px -2px rgba(221,51,51,0.85); }
}
.submenu {
  display: none;
  flex-direction: column;
  margin: 0.15rem 0 0.4rem 1.1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--line);
}
.dropdown-item.has-submenu.is-open .submenu,
.dropdown-item.has-submenu:hover .submenu { display: flex; }
.dropdown-item.has-submenu > a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.dropdown-item.has-submenu .submenu-toggle {
  cursor: pointer;
  transition: transform 0.15s ease;
  font-size: 0.75rem;
  color: var(--muted);
}
.dropdown-item.has-submenu.is-open .submenu-toggle,
.dropdown-item.has-submenu:hover .submenu-toggle { transform: rotate(90deg); }

/* In de topbalk (horizontale rij) moet het submenu als los uitklap-kaartje verschijnen
   i.p.v. inline mee te schuiven zoals in de verticale Vacations-dropdown. */
.topbar-item { position: relative; }
.topbar-item .submenu {
  display: none;
  position: absolute;
  /* Geen marge t.o.v. de link: in de lege tussenruimte verliest de muis anders de
     hover-status vlak vóórdat hij het submenu bereikt. Daarom sluit dit direct aan
     (top: 100%, geen margin) — de padding zorgt voor visuele ademruimte zonder dat er
     een "dood" stukje tussen link en kaartje ontstaat. */
  top: 100%;
  left: 0;
  padding: 0.4rem;
  border-left: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.35);
  z-index: 20;
}
/* Onzichtbare brug tussen de link en het submenu, zodat de hover-status niet wegvalt
   terwijl de muis van de link naar het submenu beweegt. */
.topbar-item.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.topbar-item .submenu a { color: var(--fg); padding: 0.4rem 0.6rem; border-radius: 6px; }
.topbar-item .submenu a:hover { background: var(--bg); color: var(--accent); }
.topbar-item.has-submenu.is-open .submenu,
.topbar-item.has-submenu:hover .submenu { display: flex; }
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}
main.wide {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}
main.wide > * {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
main.wide .breakout {
  padding-left: 0;
  padding-right: 0;
}
.breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
img { max-width: 100%; height: auto; border-radius: 4px; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
a { color: var(--accent); }
p a { text-decoration-color: var(--line); }
.muted { color: var(--muted); font-size: 0.9rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -10px rgba(0,0,0,0.25); }
.card-locked .thumb { filter: grayscale(30%) brightness(0.85); }
.upgrade-ribbon {
  position: absolute; bottom: 22px; right: -52px; width: 210px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; text-align: center; font-size: 0.65rem; font-weight: 700;
  line-height: 1.35; white-space: normal;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.35rem 0;
  transform: rotate(-45deg); box-shadow: 0 2px 8px rgba(0,0,0,0.25); z-index: 2;
}
.upgrade-ribbon .tier-name { display: block; }
.card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.card .body { padding: 0.9rem 1.1rem 1.1rem; }
.card h3 { margin: 0.15rem 0 0; font-size: 1.1rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.grid-6col { grid-template-columns: repeat(6, 1fr); }
.card-wrap { display: flex; flex-direction: column; }
.card-subtrips { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.card-subtrips a { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.card-subtrips a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 1100px) { .grid-6col { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .grid-6col { grid-template-columns: repeat(2, 1fr); } }

.thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.thumb.thumb-empty { background: var(--bg); }
.thumb.thumb-flag {
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 4rem; line-height: 1;
}
.thumb.thumb-flag img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.card-flag {
  position: absolute; top: 8px; right: 8px; font-size: 1.3rem; line-height: 1;
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.card-flag img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.state-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: var(--fg); gap: 0.6rem; padding: 1.1rem 0.9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.state-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -10px rgba(0,0,0,0.25); }
.state-card:hover h3 { color: var(--accent); }
.state-card-thumb {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg);
}
.state-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.state-card h3 { margin: 0; font-size: 0.9rem; font-weight: 600; }
.prose { font-size: 1.05rem; }
.prose::after { content: ""; display: table; clear: both; }
.prose p { margin: 1.1em 0; }
.prose img { margin: 1.5rem 0; }
.prose a { text-decoration-color: var(--line); }
/* Op brede pagina's (reispagina's) mag het Inhoudsblok echt edge-to-edge: geen zijmarge meer
   i.p.v. de standaard 1.5rem die main.wide > * normaal aan elke directe child geeft. */
main.wide .prose { padding-left: 0; padding-right: 0; margin-top: 0; }
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--muted); display: flex; }
.footer-social a:hover { color: var(--accent); }
.hero { position: relative; height: min(60vh, 480px); min-height: 320px; margin-bottom: 3rem; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,8,0.15) 0%, rgba(20,14,8,0.75) 100%); }
.hero-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 1.5rem; max-width: 1080px; margin: 0 auto; color: #fff; }
.hero-text h1 { color: #fff; margin: 0.25rem 0 0.5rem; }
.hero-text p:last-child { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin: 0; max-width: 40ch; }
.hero-text .eyebrow { color: #f0c9a2; }
.hero-banner { height: min(45vh, 380px); margin-bottom: 2rem; overflow: hidden; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* Reisverslag-pagina gebruikt main.wide zodat de banner exact aansluit op de header (geen
   gat), maar de tekst zelf blijft smal/leesbaar zoals een normale (niet-brede) pagina. */
.post-narrow { max-width: 1080px; margin: 0 auto; }
/* Homepage hero-carousel (vervanger van de oude Revolution Slider) */
.hero-carousel { position: relative; height: calc(100vh - 108px); min-height: 380px; overflow: hidden; margin-bottom: 3rem; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-carousel-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.hero-carousel-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: #fff; padding: 1.5rem;
}
.hero-logo { max-width: min(320px, 70vw); height: auto; margin-bottom: 1rem; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4)); }
.hero-tagline { font-family: var(--font-display); font-size: clamp(1.3rem, 3.5vw, 2rem); margin: 0 0 1.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-hero {
  background: var(--accent); color: #fff; padding: 0.7rem 1.6rem; border-radius: 4px;
  text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.03em;
}
.btn-hero-outline { background: transparent; border: 2px solid #fff; }

.feature-boxes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; text-align: center; margin-bottom: 3rem; padding: 0 1.5rem;
}
.feature-box .feature-icon { color: var(--accent); margin-bottom: 0.75rem; display: flex; justify-content: center; }
.feature-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.5rem; }
.feature-box p { font-size: 0.9rem; color: var(--muted); margin: 0; }

.home-section { padding: 0 1.5rem; margin-bottom: 3rem; max-width: 1500px; margin-left: auto; margin-right: auto; }
.home-section h2 { margin-bottom: 1.25rem; }

/* Trip-banner: paginabrede kop met de reisfoto als achtergrond, titel links, voortgang rechts. */
.trip-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
}
.trip-banner:not(.has-image) { background: var(--card); border-bottom: 1px solid var(--line); }
.trip-banner-overlay {
  position: absolute; inset: 0;
  /* Vlakkere, donkerdere overlay (i.p.v. een links-naar-rechts verloop) zodat de tekst altijd
     leesbaar blijft, ook wanneer een lange introtekst de banner erg hoog maakt en er dus veel
     (mogelijk lichte/drukke) achtergrondfoto achter de tekst zichtbaar is. */
  background: rgba(15,10,6,0.62);
}
.trip-banner.has-image .trip-banner-title h1,
.trip-banner.has-image .trip-intro-text {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.trip-banner-inner {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: 3rem 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.trip-banner-title { min-width: 260px; max-width: none; flex: 1 1 600px; }
.trip-banner.has-image .trip-banner-title h1 { color: #fff; }
.trip-banner.has-image .trip-banner-title p a { color: rgba(255,255,255,0.85); }
.trip-banner.has-image .trip-intro-text { color: rgba(255,255,255,0.9); }
.trip-banner-title h1 { margin: 0; }
.trip-intro-text { margin-top: 1rem; line-height: 1.6; }

/* Vlag/land-afbeelding rechtsboven, met de voortgangsbalken er direct onder — samen als één
   rechterkolom in de banner (zie /admin/trips.php: "Vlag / land-afbeelding" + "Voortgang"). */
.trip-flag-progress { display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0; width: min(320px, 100%); }
.trip-flag-image { width: 100%; border-radius: 6px; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4); }

.trip-progress {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.3);
}
.progress-item .progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.35rem; }
.progress-track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; }

.weather-widget {
  width: 100%; text-align: center;
  color: inherit; padding: 0.5rem 0;
}
.weather-place { margin: 0 0 0.5rem; font-weight: 600; font-size: 1.15rem; }
.weather-icon { font-size: 3.6rem; line-height: 1.2; }
.weather-temp { margin: 0.35rem 0 0; font-size: 1.6rem; font-weight: 700; }

.trip-timeline .timeline-month { margin-bottom: 1.5rem; }
.trip-timeline .timeline-month h3 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; margin-bottom: 0.4rem;
}

.post-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.post-list a { display: flex; gap: 1rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.post-list a:hover { color: var(--accent); }
.post-list .muted { flex-shrink: 0; width: 6.5rem; }
.post-list-thumb { flex-shrink: 0; width: 64px; height: 44px; border-radius: 4px; overflow: hidden; }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.agenda-row {
  display: flex; gap: 1rem; align-items: center; padding: 0.85rem 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg);
}
a.agenda-row:hover { color: var(--accent); }
.agenda-dates { flex-shrink: 0; width: 11rem; }

/* Admin */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-main { flex: 1; min-width: 0; padding: 2rem 2.5rem 4rem; max-width: 1400px; }
.admin-main h1 { margin-bottom: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.admin-table th { background: var(--bg); font-weight: 600; }
.admin-table .title-flag img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }

/* Herbruikbare pop-up voor grote editors (GrapesJS-inhoud, introtekst) — houdt de rest van het
   formulier compact i.p.v. dat die editors altijd de hele paginahoogte innemen. */
.admin-modal {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.6); align-items: center; justify-content: center;
}
.admin-modal.is-open { display: flex; }
.admin-modal-dialog {
  background: var(--bg); border-radius: 10px; border: 1px solid var(--line);
  width: min(1100px, 95vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.admin-modal-header {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.admin-modal-header .admin-modal-title { flex: 1; }
.admin-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; }
/* Zwevende melding onderaan (voor admins) dat een pagina/reis nog concept is — vast
   gepositioneerd zodat 'ie los van de paginastroom over de content heen "zweeft", maar smal
   genoeg blijft om de rest van de content niet in de weg te zitten. */
.draft-notice {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 500;
  max-width: 340px; background: #a16207; color: #fff;
  padding: 0.6rem 1rem; border-radius: 6px; font-size: 0.85rem;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4);
}

.field-preview {
  color: var(--muted); font-size: 0.85rem; margin: 0.4rem 0 0.6rem; max-width: 70ch;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.admin-sidebar {
  flex-shrink: 0; width: 230px; height: 100vh;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 1.25rem 1rem 0; position: sticky; top: 0; align-self: flex-start;
}
.admin-sidebar-brand {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--fg);
  padding: 0.4rem 0.7rem 1rem; flex-shrink: 0;
}
.admin-sidebar-scroll {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.15rem;
  min-height: 0;
}
.admin-sidebar-footer {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid var(--line); padding: 0.6rem 0; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem;
}
.admin-sidebar-footer a {
  color: var(--fg); font-size: 1.05rem; padding: 0.5rem; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.admin-sidebar-footer a:hover { background: var(--bg); color: var(--accent); }
.admin-sidebar a {
  color: var(--fg); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 0.55rem 0.7rem; border-radius: 6px; transition: background 0.12s, color 0.12s;
  display: flex; align-items: center; gap: 0.6rem;
}
.admin-sidebar a i { width: 1.1em; text-align: center; font-size: 0.85em; opacity: 0.75; }
.admin-sidebar a:hover { background: var(--bg); }
.admin-sidebar a.is-active { background: var(--accent); color: #fff; }
.admin-sidebar a.is-active i { opacity: 1; }
.admin-sidebar-group-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); padding: 0.9rem 0.2rem 0.5rem; margin-top: 0.3rem;
}
.admin-sidebar-group-label::before,
.admin-sidebar-group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.admin-sidebar-group-label:first-of-type { margin-top: 0; }

@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 1.5rem 1.25rem 3rem; }
}
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.55rem 1.1rem; border-radius: 6px; text-decoration: none; font-weight: 500; border: none; cursor: pointer; font-size: 0.9rem; }
.btn.secondary { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.btn.danger { background: #b3341c; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; align-items: start; }
@media (max-width: 900px) { .form-columns { grid-template-columns: 1fr; } }
.field { margin-bottom: 0.85rem; }
.weather-location-suggestions {
  display: none; position: absolute; z-index: 20; top: 100%; left: 0; max-width: 300px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; margin-top: 2px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.3); max-height: 220px; overflow-y: auto;
}
.weather-location-suggestion { padding: 0.5rem 0.7rem; cursor: pointer; font-size: 0.9rem; }
.weather-location-suggestion:hover { background: var(--bg); }
.field label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.9rem; }
.field input[type=text], .field input[type=date], .field input[type=email],
.field input[type=password], .field input[type=number], .field textarea {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--card); color: var(--fg);
  box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input[type=text]:focus, .field input[type=date]:focus, .field input[type=email]:focus,
.field input[type=password]:focus, .field input[type=number]:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(221,51,51,0.15);
}
.login-box { max-width: 360px; margin: 4rem auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 2rem; }
.login-modal-overlay {
  position: fixed; inset: 0; background: rgba(20,15,10,0.55); backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: login-modal-fade 0.18s ease;
}
.login-modal-overlay[hidden] { display: none; }
@keyframes login-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes login-modal-rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.login-modal-box {
  position: relative; width: 100%; max-width: 380px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45), 0 4px 16px -4px rgba(0,0,0,0.15);
  animation: login-modal-rise 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-modal-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 1.1rem;
  background: linear-gradient(155deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; box-shadow: 0 8px 20px -6px rgba(221,51,51,0.5);
}
.login-modal-box h2 {
  font-family: var(--font-display); text-align: center; font-size: 1.4rem !important;
  margin: 0 0 0.35rem !important;
}
.login-modal-subtitle { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 0 0 1.5rem; }
.login-modal-box .field { margin-bottom: 1.1rem; }
.login-modal-box .field label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
}
.login-modal-box .btn { width: 100%; padding: 0.75rem 1rem; font-size: 0.95rem; border-radius: 8px; }
.login-modal-box .muted { text-align: center; font-size: 0.85rem; }
.login-modal-close {
  position: absolute; top: 1rem; right: 1rem; background: var(--bg); border: 1px solid var(--line);
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
}
.login-modal-close:hover { background: var(--line); color: var(--fg); }
.login-modal-box .error-msg {
  background: rgba(179,52,28,0.1); border: 1px solid rgba(179,52,28,0.25); border-radius: 8px;
  padding: 0.6rem 0.8rem; margin-bottom: 1rem; text-align: center;
}
.error-msg { color: #b3341c; font-size: 0.9rem; margin-bottom: 1rem; }
.success-msg { color: #15803d; font-size: 0.9rem; margin-bottom: 1rem; }

/* Zwevende knop rechtsonder: alleen zichtbaar voor leden die via de Login Portal zijn
   ingelogd (portal_user_id gezet) — een popout-menu naar hun portal-account. Eigen kleur
   (portal-indigo) i.p.v. het site-rood, zodat 'm meteen als "ander systeem" herkent. */
.portal-fab-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}
/* Onzichtbaar, groter "vang-gebied": zodra de knop tot een bolletje is gekrompen (.is-idle)
   reageert hij al zodra je muis in de buurt komt, niet pas als je 'm precies raakt. */
.portal-fab-wrap::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 92px;
  height: 92px;
}
.portal-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(155deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 25px -8px rgba(79, 70, 229, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
}
.portal-fab:hover, .portal-fab:focus {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 30px -8px rgba(79, 70, 229, 0.7);
  color: #fff;
}
/* Sluimerstand: na een paar seconden zonder interactie krimpt de knop tot een bolletje
   (zie het setTimeout-scriptje bij deze markup), en groeit weer terug zodra je in de buurt
   komt (via het grotere vang-gebied hierboven) of 'm met toetsenbord-focus bereikt. */
.portal-fab-wrap.is-idle .portal-fab {
  width: 14px;
  height: 14px;
  font-size: 0;
  opacity: 0.55;
  box-shadow: 0 4px 10px -4px rgba(79, 70, 229, 0.5);
}
.portal-fab-wrap.is-idle:hover .portal-fab,
.portal-fab-wrap.is-idle:focus-within .portal-fab {
  width: 52px;
  height: 52px;
  font-size: 1rem;
  opacity: 1;
}
/* Waaier: kleine rondjes die achter de hoofdknop schuilgaan en er bij hover/focus in een
   kwartcirkel uitklappen (van recht omhoog tot recht naar links), elk met een klein
   "streepje" als verbinding. De exacte richting/afstand per rondje (--tx/--ty voor het
   rondje zelf, --dashx/--dashy/--rot voor het streepje) wordt server-side uitgerekend in
   layout_footer.php, zodat hier geen CSS trig-functies nodig zijn. */
.portal-fab-mini {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 8px 18px -6px rgba(79, 70, 229, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0) scale(0.4);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.15s ease, visibility 0.2s;
}
.portal-fab-mini::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 12px;
  border-radius: 1.5px;
  background: #7c3aed;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translate(-50%, -50%) translate(0, 0) rotate(0deg);
  transition: opacity 0.15s ease, transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.portal-fab-wrap:hover .portal-fab-mini,
.portal-fab-wrap:focus-within .portal-fab-mini {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--tx), var(--ty)) scale(1);
  transition-delay: var(--delay);
}
.portal-fab-wrap:hover .portal-fab-mini::after,
.portal-fab-wrap:focus-within .portal-fab-mini::after {
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--dashx), var(--dashy)) rotate(var(--rot));
  transition-delay: var(--delay);
}

.portal-fab-mini-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #14171f;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.portal-fab-wrap:hover .portal-fab-mini-label,
.portal-fab-wrap:focus-within .portal-fab-mini-label {
  opacity: 1;
  /* Verder in dezelfde spaakrichting als het rondje zelf, zodat labels van rondjes die
     dicht bij elkaar in de waaier staan niet over elkaar heen vallen. */
  transform: translate(-50%, -50%) translate(var(--labelx), var(--labely));
  transition-delay: var(--delay);
}

/* Favicon van de gekoppelde website, boven op het generieke wereldbol-icoon (dat als
   fallback zichtbaar blijft áls het favicon niet laadt, want dan blijft dit element leeg). */
.portal-fab-mini-favicon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

@media (max-width: 640px) {
  .portal-fab-mini-label { display: none; }
}
