/* ==========================================================================
   Addy & Evelien — Save the weekend
   Sfeer: zomers magazine × beachclub × persoonlijke uitnodiging.
   Zand/gebroken wit als rustige basis, zeeblauw + terracotta als accent.
   ========================================================================== */

:root {
  --offwhite: #F6F1E8;
  --sand: #E8DDCC;
  --sand-line: #D9CBB4;
  --sea: #55747A;
  --sea-dark: #415C61;
  --terracotta: #B96F58;
  --terracotta-dark: #A85F4C;
  --terracotta-light: var(--rose);
  --navy: #1F3A4D;        /* donkerblauw: alle inhoudelijke koppen en subkoppen */
  --ink: #3A3F44;         /* donker antraciet: alle gewone tekst (nergens puur zwart) */
  --ink-soft: var(--ink); /* zelfde antraciet, zodat alle lopende tekst gelijk oogt */
  --rose: #F1C9B6;        /* zachtroze accent op foto's/donkere achtergronden */
  --rose-deep: #D59A90;   /* zachtroze accent op lichte achtergronden (leesbaar op zand/wit) */
  --white: #ffffff;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Parisienne', 'Brush Script MT', cursive;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-space: clamp(5rem, 11vw, 9rem);
  --radius: 4px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea); }

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---------- Typografie ---------- */

.title {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.title em { font-style: italic; color: var(--rose-deep); }

/* Handgeschreven accent: alleen voor korte zinnetjes. */
.hand {
  font-family: var(--hand);
  font-weight: 400;
  color: var(--rose-deep);
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 38rem;
}

.intro-lead {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  color: var(--ink);
}

.highlight {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.3;
  color: var(--rose-deep);
  margin: 1.75rem 0;
}

/* ---------- Opbouw ---------- */

.section { padding: var(--section-space) 0; position: relative; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Knoppen ---------- */

.button, button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--white);
  background: var(--sea);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover, button:hover { background: var(--sea-dark); color: var(--white); }

.button--terracotta { background: var(--terracotta-dark); }
.button--terracotta:hover { background: #94513F; }

.button--large { font-size: 1.05rem; padding: 1.05rem 2.6rem; }

.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(63, 59, 55, 0.6); }

/* ---------- Scroll-animatie ---------- */
/* Alleen verborgen zodra het script draait (html.reveal-ready); anders altijd zichtbaar. */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Blok 1 — hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(40, 38, 35, 0.05) 0%, rgba(40, 38, 35, 0.1) 45%, rgba(40, 38, 35, 0.55) 100%),
    url('../images/strand-duinen.jpg') center 40% / cover no-repeat,
    var(--sea);
  padding: 6rem var(--gutter) clamp(5rem, 12vh, 8rem);
}

/* Hero en afsluiter: witte tekst over foto/donkere achtergrond. */
.hero h1, .section--rsvp h2 { color: inherit; }

.hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(30, 28, 25, 0.35);
}

.hero-eyebrow {
  display: inline-block;
  color: var(--white);
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  transform: rotate(-5deg);
  margin: 0 0 0.15em 0.2em; /* iets lucht tussen 'Save the weekend' en de namen */
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3.9rem, 14vw, 9.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-title .amp { font-style: italic; color: var(--terracotta-light); }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin: 0.4rem 0 2rem;
}

.hero-dates {
  display: inline-block;
  font-size: clamp(0.78rem, 1.6vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  margin: 0 0 0.6rem;
}

.hero-yes { font-size: clamp(0.98rem, 1.8vw, 1.1rem); margin: 0; opacity: 0.95; }
/* 'JA' in script (zachtroze accent) en '3 juli' iets groter in de serif; de
   rest van de regel blijft gelijk. Alles op één basislijn, ook op mobiel. */
.hero-yes-ja {
  font-family: 'Italianno', var(--hand);
  font-size: 2.3em;
  line-height: 0;
  color: var(--terracotta-light);
  margin: 0 0.06em;
  position: relative;
  top: 0.06em;
}
.hero-yes-date {
  font-family: var(--serif);
  font-size: 1.3em;
  font-weight: 600;
  line-height: 0;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  margin-left: 0.04em;
}

/* Aftelteller: serif-cijfers met kleine, gespatieerde labels, gescheiden door
   dunne lijntjes; past bij de datumregel erboven. */
.countdown {
  display: flex;
  align-items: flex-start;
  margin-top: 1.6rem;
}
.countdown-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.4rem;
  padding: 0 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}
.countdown-part:first-child { border-left: 0; padding-left: 0; align-items: flex-start; }
.countdown-number {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown-label {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 1px;
  height: 3rem;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.scroll-cue span {
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: scroll-cue 2.4s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ==========================================================================
   Blok 2 — intro met slideshow
   ========================================================================== */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}

.intro-photo { position: relative; z-index: 0; }

/* Zandvlak achter de foto voor wat diepte. */
.intro-photo::before {
  content: '';
  position: absolute;
  inset: 2.5rem -1.5rem -1.5rem 2.5rem;
  background: var(--sand);
  z-index: -1;
}

.slideshow {
  position: relative;
  touch-action: pan-y; /* horizontaal swipen voor de slideshow, verticaal scrollt de pagina */
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slideshow img.is-active { opacity: 1; }

/* Brede foto die niet bijgesneden mag worden: helemaal tonen, met een vervaagde
   versie van dezelfde foto als achtergrond (via background-image op de img). */
.slideshow img.slide-contain { object-fit: contain; background-size: cover; background-position: center; }

.slideshow-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem;
}

.slideshow-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--white);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.slideshow-dots button:hover { background: rgba(255, 255, 255, 0.7); }
.slideshow-dots button[aria-current="true"] { background: var(--white); width: 22px; }

/* ==========================================================================
   Blok 3 — het weekend (tijdlijn)
   ========================================================================== */

.section--weekend {
  background:
    linear-gradient(rgba(246, 241, 232, 0.88), rgba(246, 241, 232, 0.93)),
    url('../images/strand-duinen.jpg') center / cover no-repeat,
    var(--offwhite);
}

.days { border-top: 1px solid var(--sand-line); }

.day {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--sand-line);
}

.day-header { align-self: start; }

.day-header h3 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 400;
}

.day-tagline {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0.35rem 0 0 0.15rem;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.day--main .day-header h3 { color: var(--navy); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
  border-left: 1px solid rgba(85, 116, 122, 0.35);
}

.timeline li {
  position: relative;
  padding: 0 0 1.6rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: calc(-1.75rem - 5px);
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 1px solid var(--sea);
}

.timeline .time {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.timeline strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}

.timeline p { margin: 0.3rem 0 0; color: var(--ink-soft); max-width: 34rem; }

.timeline li.timeline-key::before {
  background: var(--terracotta);
  border-color: var(--terracotta);
  width: 13px;
  height: 13px;
  left: calc(-1.75rem - 7px);
  top: 0.35rem;
}

.timeline-key strong { color: var(--navy); font-size: 2rem; }

/* ==========================================================================
   Blok 4 — blijf lekker slapen
   ========================================================================== */

.section--stay { background: var(--sand); }

.stay-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.stay-title { font-size: clamp(3rem, 8vw, 6.25rem); line-height: 0.95; }
.stay-title .stay-title-accent { display: block; color: var(--rose-deep); white-space: nowrap; }

.stay-photo {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.stay-times {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-line);
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Blok 5 — hier moet je zijn (kaartje)
   ========================================================================== */

.section--map { background: var(--offwhite); }

.island-map { max-width: 1180px; margin: 0 auto clamp(4rem, 8vw, 6rem); }
.island-map-scroll { display: block; border-radius: var(--radius); overflow: hidden; }

.island-map-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.island-map-link img { width: 100%; height: auto; transition: transform 0.6s ease; }
.island-map-link:hover img { transform: scale(1.02); }

.island-map-cta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--sea);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  box-shadow: 0 8px 20px -10px rgba(63, 59, 55, 0.6);
}

.island-map-link:hover .island-map-cta { background: var(--sea-dark); }

.routes {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
}

.routes li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--sand-line);
}

.routes .bike { grid-row: span 2; }
.route-path { font-weight: 500; }
.arrow { color: var(--rose-deep); }
.distance { color: var(--ink-soft); font-size: 0.92rem; }

.bike {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Drie plekken: foto's en teksten recht naast elkaar. */
.places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

.place-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
}

.place h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); margin-bottom: 0.6rem; }
.place p { color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Blok 6 — naar Ameland
   ========================================================================== */

.section--ferry { background: var(--sand); }

.ferry-inner { max-width: 860px; }
.ferry-inner::after { content: ''; display: block; clear: both; }

/* Foto van Addy als schuin 'fotootje' tussen de tekst. */
.ferry-photo {
  float: right;
  width: 38%;
  margin: 0.5rem 0 1.5rem clamp(1.5rem, 4vw, 3rem);
  padding: 0.6rem 0.6rem 2rem;
  background: var(--white);
  transform: rotate(3deg);
  box-shadow: 0 18px 40px -22px rgba(63, 59, 55, 0.6);
}

.ferry-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% 50%; }

.ferry-inner h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 2rem 0 0.5rem;
}

.note {
  overflow: hidden; /* blijft naast de foto in plaats van eronder door te lopen */
  background: var(--offwhite);
  border-left: 3px solid var(--terracotta);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.ferry-inner .button { margin-top: 1.5rem; }

/* ==========================================================================
   Blok 7 — op ontdekking (foto's) en handige info
   ========================================================================== */

.section--tips { background: var(--offwhite); }

/* Drie foto's op één lijn; de fietstip is een kleine slideshow. */
.tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.tip-photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 1.4rem;
}

.tip-photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.tip h3 { font-size: clamp(1.5rem, 2vw, 1.75rem); margin-bottom: 0.6rem; }
.tip p { color: var(--ink-soft); margin: 0; }

.section--info {
  background: var(--sand);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* Dresscode: het grootste, meest visuele deel van de spread. */
.dress {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.dress-mood { position: relative; padding: 0 12% 14% 0; }

.dress-mood-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 45% 50%;
  border-radius: var(--radius);
}

.dress-mood-detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 47% 35%;
  border: 0.6rem solid var(--offwhite);
  box-shadow: 0 24px 50px -28px rgba(63, 59, 55, 0.7);
}

/* Verfijnde lijnillustraties: alleen een dunne lijn, geen vlakken. */
.dress-sun,
.gift-envelope {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dress-sun { position: absolute; top: -2rem; right: 3%; width: clamp(3.5rem, 7vw, 5rem); }

.dress-question {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.dress-text p { color: var(--ink-soft); }

.dress-text .dress-code {
  position: relative;
  z-index: 1;
  color: var(--rose-deep);
  font-size: clamp(3.4rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  /* steekt speels een stukje over de foto heen */
  margin: 0.55em 0 0.5em clamp(-6rem, -6vw, -0.1rem);
  transform: rotate(-4deg);
  transform-origin: left center;
  white-space: nowrap;
}

.dress-aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.4;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-line);
}

/* Cadeautip en side note: asymmetrisch, klein, met veel lucht eromheen. */
.info-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 5rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(6rem, 12vw, 10rem);
  align-items: start;
}

.gift { padding-left: 1.75rem; border-left: 1px solid var(--terracotta); }
.gift-envelope { width: 3.6rem; height: 2.6rem; margin: 0.4rem 0 1.1rem; display: block; }
.gift h3 { font-size: clamp(1.5rem, 2.2vw, 1.8rem); font-weight: 400; margin-bottom: 1rem; }
.gift p { color: var(--ink-soft); font-size: 0.98rem; }

.side-note {
  padding-left: 1.75rem;
  border-left: 1px solid var(--terracotta);
}

.side-note .side-note-psst { color: var(--rose-deep); font-size: clamp(2.4rem, 4.5vw, 3.2rem); margin: 0 0 0.1rem; transform: rotate(-3deg); transform-origin: left; }
.side-note h3 { font-size: clamp(1.5rem, 2.2vw, 1.8rem); font-weight: 400; margin-bottom: 1rem; }
.side-note p { color: var(--ink-soft); font-size: 0.98rem; }

.side-note-contacts { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.side-note-contacts li { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--sand-line); }
.side-note-contacts span { font-family: var(--serif); font-size: 1.35rem; min-width: 3.5rem; }
.side-note-contacts a { font-weight: 500; text-decoration: none; letter-spacing: 0.03em; }
.side-note-contacts a:hover { text-decoration: underline; }

/* ==========================================================================
   Blok 8 — ben jij erbij?
   ========================================================================== */

.section--rsvp {
  background:
    /* zachte overgang vanuit het zandkleurige tussendeel */
    linear-gradient(180deg, var(--sand) 0, rgba(232, 221, 204, 0) clamp(6rem, 14vw, 11rem)),
    linear-gradient(rgba(85, 116, 122, 0.93), rgba(65, 92, 97, 0.96)),
    url('../images/zonsondergang.jpg') center 30% / cover no-repeat,
    var(--sea);
  color: var(--white);
  text-align: center;
  padding: clamp(6rem, 14vw, 11rem) 0;
}

.rsvp-inner { max-width: 44rem; }

.section--rsvp .title { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 0.25rem; }

.section--rsvp .rsvp-hope { color: var(--terracotta-light); font-size: clamp(2.1rem, 5.5vw, 3rem); margin: 0 0 2.25rem; transform: rotate(-2deg); opacity: 1; }

.section--rsvp p { font-size: 1.1rem; opacity: 0.95; }

.section--rsvp .button { margin-top: 1.5rem; }

/* Save the Date-video tussen 'Ben jij erbij?' en de footer. */
.section--video { background: var(--offwhite); padding: clamp(4rem, 8vw, 6rem) 0; }
.video-inner { max-width: 520px; text-align: center; }
.video-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.video-frame { position: relative; max-width: 400px; margin: 0 auto; aspect-ratio: 9 / 16; /* staande video (YouTube Short) */ border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.video-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
.video-play:hover { background: none; transform: none; box-shadow: none; }
.video-play img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 0.6s ease; }
.video-play:hover img { transform: scale(1.02); }
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.25rem;
  height: 4.25rem;
  margin: -2.125rem 0 0 -2.125rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(63, 59, 55, 0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.video-play:hover .video-play-icon { background: rgba(63, 59, 55, 0.4); }
.video-play-icon svg { width: 1.6rem; height: 1.6rem; fill: var(--white); margin-left: 0.15rem; }
.video-media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #1c1c1c; object-fit: contain; }

.site-footer {
  background: #3F3B37; /* oorspronkelijke footerkleur, los van de tekstkleur */
  color: var(--sand);
  text-align: center;
  padding: 3rem var(--gutter) calc(3rem + env(safe-area-inset-bottom));
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }

.site-footer .footer-names {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.4rem;
  color: var(--offwhite);
}

/* ==========================================================================
   Account rechtsboven
   ========================================================================== */

.account {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 10;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  background: rgba(246, 241, 232, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  box-shadow: 0 4px 18px -8px rgba(0, 0, 0, 0.35);
  max-width: calc(100vw - 2rem);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.account-button:hover { background: var(--offwhite); color: var(--ink); }

.account-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-icon {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  padding: 0.35rem;
  border-radius: 50%;
  background: var(--terracotta);
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
}

.account-button.is-logged-in .account-icon { background: var(--sea); }

.account-menu {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  min-width: 14rem;
  background: var(--offwhite);
  border-radius: 8px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
  padding: 0.5rem;
}

.account-menu-label {
  margin: 0.25rem 0.5rem 0.5rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.account-menu a[hidden] { display: none; }

.account-menu button,
.account-menu a {
  display: block;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  color: var(--ink);
  background: none;
  border-radius: 6px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0.55rem 0.6rem;
}

.account-menu a:hover,
.account-menu a:focus-visible,
.account-menu button:hover,
.account-menu button:focus-visible { background: var(--sand); color: var(--ink); }

/* ==========================================================================
   Aanmeldpopup (de site eronder wordt vaag)
   ========================================================================== */

body.modal-open > :not(dialog) {
  filter: blur(5px);
  transition: filter 0.2s ease;
}

.rsvp-dialog {
  width: min(600px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  border: none;
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow-y: auto;
  background: var(--offwhite);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}

.rsvp-dialog::backdrop { background: rgba(63, 59, 55, 0.4); }

.rsvp-dialog h2 { font-size: 2.4rem; font-weight: 400; margin: 0 0 1rem; padding-right: 2rem; }

.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  color: var(--ink);
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.dialog-close:hover { background: var(--sand); color: var(--ink); }

.rsvp-dialog label { display: block; font-weight: 500; margin-top: 1.25rem; }
.rsvp-dialog fieldset label { font-weight: 400; margin-top: 0.4rem; }

.rsvp-dialog input[type="text"],
.rsvp-dialog input[type="email"],
.rsvp-dialog input[type="number"],
.rsvp-dialog textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--sand-line);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem; /* 16px: voorkomt inzoomen op iPhone */
  color: var(--ink);
  background: var(--white);
}

.rsvp-dialog input:focus,
.rsvp-dialog textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(85, 116, 122, 0.18); }

.rsvp-dialog input[type="number"] { max-width: 8rem; }
.rsvp-dialog input[type="radio"] { accent-color: var(--terracotta); width: 1.05rem; height: 1.05rem; vertical-align: -0.15rem; margin: 0 0.35rem 0 0; }

.rsvp-dialog fieldset {
  border: 1px solid var(--sand-line);
  border-radius: 6px;
  margin: 1.4rem 0 0;
  padding: 0.85rem 1.1rem 1.1rem;
}

.rsvp-dialog fieldset.plain { border: none; padding: 0; margin: 0; }
.rsvp-dialog legend { font-weight: 500; padding: 0 0.4rem; }

.rsvp-dialog textarea { min-height: 4.5rem; }
.form-deadline { font-family: var(--serif); font-style: italic; font-variant-numeric: lining-nums; font-size: 1.1rem; color: var(--rose-deep); margin: -0.25rem 0 0.75rem; }
.section--rsvp .rsvp-deadline { font-family: var(--serif); font-style: italic; font-variant-numeric: lining-nums; font-size: 1.3rem; margin-top: 1.25rem; }
.field-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0.35rem 0 0; }

#rsvp-save {
  margin-top: 1.75rem;
  background: var(--terracotta-dark);
  padding: 0.95rem 2.2rem;
}

#rsvp-save:hover { background: #94513F; }

.other-input { margin-left: 1.6rem; width: calc(100% - 1.6rem) !important; }
.inline-field { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; }
.inline-field input { flex: 1 1 12rem; width: auto !important; margin-top: 0 !important; text-transform: uppercase; letter-spacing: 0.1em; }

.notice {
  background: rgba(185, 111, 88, 0.12);
  border-left: 3px solid var(--terracotta);
  padding: 0.6rem 0.9rem;
}

.error { color: #A3412C; }


/* ==========================================================================
   Interactieve kaart (Leaflet)
   ========================================================================== */

.map {
  height: 440px;
  border-radius: var(--radius);
  border: 1px solid var(--sand-line);
  z-index: 0;
}

/* Losse kaartpagina (kaart.html): kaart vult de rest van het scherm. */
body.map-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.map-page-header { padding: clamp(1.25rem, 4vw, 2.5rem) var(--gutter) 1rem; max-width: 1180px; width: 100%; margin: 0 auto; }
.map-page-back { display: inline-block; font-size: 0.9rem; font-weight: 500; text-decoration: none; margin-bottom: 1rem; }
.map-page-title { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 400; margin-bottom: 0.5rem; }
.map-intro { color: var(--ink-soft); max-width: 46rem; }
.map-page-main { flex: 1; display: flex; padding: 0 var(--gutter) var(--gutter); max-width: 1180px; width: 100%; margin: 0 auto; }
.map-page-main { flex-direction: column; }
.map-page .map { flex: 1; height: auto; min-height: 60vh; }
.map-houses-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-deep);
  margin: 0 0 0.5rem;
  min-height: 1.6em; /* vaste hoogte: de kaart verspringt niet als de tekst wisselt */
  /* Ruimte blijft gereserveerd, zodat de kaart niet verspringt. */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.map-houses-hint.is-visible { visibility: visible; opacity: 1; }

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.map-controls button {
  color: var(--navy);
  background: transparent;
  border-color: var(--sea);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.map-controls button:hover { background: var(--sea); color: var(--white); }

.map-house span {
  display: inline-block;
  transform: translate(-50%, -50%);
  background: var(--sea);
  color: white;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.map-favorite span,
.map-info span,
.map-ring span,
.map-house-group span {
  display: inline-flex;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* Huisjes iets rechts van het midden, zodat ze vrij blijven van de trouwlocatie
   (The Sunset ligt ten westen van de huisjes). */
.map-house-group span { transform: translate(-15%, -60%); }

/* Losse illustraties met een witte rand en zachte schaduw, zodat ze leesbaar
   blijven op de waterverfkaart. */
.map-illu { display: block; overflow: visible; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95)) drop-shadow(0 2px 3px rgba(63, 59, 55, 0.35)); }
.map-illu--house { width: 2.65rem; height: 2.4rem; }
.map-illu--ring { width: 1.55rem; height: 2.25rem; }
.map-illu--heart { width: 1.65rem; height: 1.5rem; }
.map-illu--ferry { width: 2.75rem; height: 1.9rem; }
.map-illu--bike { width: 2.4rem; height: 1.6rem; }
.map-illu--lighthouse { width: 1.5rem; height: 2.85rem; }

.map-illu--cheers { width: 2.75rem; height: 2.75rem; }

/* Plaatsnamen: klein, cursief, zacht donkerblauw met een witte gloed. */
.leaflet-marker-icon.map-village { width: 0; height: 0; overflow: visible; }
.map-village span {
  display: inline-block;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(31, 58, 77, 0.8);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  pointer-events: none;
}
.map:not(.is-zoomed-out) .map-village { display: none; }

.map.is-zoomed-out .map-house,
.map:not(.is-zoomed-out) .map-house-group { display: none; }

/* Leaflet-kader van de labels zonder afmeting: alleen het (verschoven) label
   zelf is zichtbaar en klikbaar, zodat labels elkaars klikvlak niet blokkeren. */
.leaflet-marker-icon.map-ring,
.leaflet-marker-icon.map-house-group,
.leaflet-marker-icon.map-house,
.leaflet-marker-icon.map-favorite,
.leaflet-marker-icon.map-info {
  width: 0;
  height: 0;
  overflow: visible;
}


/* Gouden ring met ocean-blue steen. */
.ring-band { fill: none; stroke: #B8964F; stroke-width: 2; }
.ring-setting { fill: #D8BE7E; stroke: #B8964F; stroke-width: 0.9; stroke-linejoin: round; }
.ring-stone { fill: #3E8FB0; stroke: #2B6F8C; stroke-width: 0.8; stroke-linejoin: round; }
.ring-facets { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 0.5; stroke-linecap: round; }

.favorite-heart { color: var(--rose-deep); }

.leaflet-container { font-family: var(--sans); }
/* Waterverfkaart: plaatsnamen zacht, detailkaart iets warmer zodat hij aansluit. */
.leaflet-container { background: #EFE7D8; }
.map-watercolor { filter: saturate(0.6) sepia(0.15) brightness(1.06); }
.map-labels { opacity: 0.7; }
.map-detail { filter: sepia(0.25) saturate(0.85) brightness(1.02); }
.leaflet-popup-content p { margin: 0.25rem 0 0.5rem; }
.leaflet-popup-content p.popup-route { margin: 0.35rem 0 0.15rem; }
.popup-photos { display: flex; gap: 6px; margin: 0.4rem 0 0.2rem; }
.popup-photos img { width: 96px; height: 128px; object-fit: cover; border-radius: 4px; }

/* ==========================================================================
   Tablet en mobiel
   ========================================================================== */

@media (max-width: 960px) {
  .dress { grid-template-columns: minmax(0, 1fr); }
  .dress-mood { max-width: 34rem; }
  .dress-text { max-width: 34rem; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }

  .hero { padding-bottom: 6.5rem; background-position: center, 62% 40%, center; }
  .hero-eyebrow { margin-left: 0; }
  .countdown-part { min-width: 0; padding: 0 0.75rem; }
  .countdown { margin-top: 1.3rem; }

  .intro-grid,
  .stay-grid,
  .places,
  .routes { grid-template-columns: minmax(0, 1fr); }

  .intro-photo { margin-right: 1rem; }
  .intro-photo::before { inset: 1.5rem -1rem -1rem 1.5rem; }

  .day { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .timeline { padding-left: 1.4rem; }
  .timeline li::before { left: calc(-1.4rem - 5px); }
  .timeline li.timeline-key::before { left: calc(-1.4rem - 7px); }
  .timeline strong { font-size: 1.4rem; }
  .timeline-key strong { font-size: 1.7rem; }

  .stay-photo { max-width: none; margin-top: 1.5rem; }

  /* Brede kaart: op mobiel hoger tonen en horizontaal laten schuiven, zodat de
     namen leesbaar blijven. De knop staat dan onder de kaart. */
  .island-map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .island-map-scroll::-webkit-scrollbar { display: none; }
  .island-map-link img { width: auto; max-width: none; height: 260px; }
  .island-map-link:hover img { transform: none; }
  .island-map-link { overflow: visible; }
  .island-map-cta { position: static; display: inline-block; margin-top: 0.9rem; font-size: 0.82rem; }
  .places { gap: 3rem; }

  .ferry-photo { float: none; width: 72%; margin: 2rem auto 2.5rem; }

  /* Onder elkaar, alle drie de foto's even groot. */
  .tips { grid-template-columns: minmax(0, 1fr); gap: 3rem; }

  .dress { gap: 2.5rem; }
  .dress-sun { top: -1.5rem; right: 0; }
  .info-notes { grid-template-columns: minmax(0, 1fr); gap: 4.5rem; margin-top: 5rem; }
  .dress-text .dress-code { margin-left: -0.05em; }
  .tip-photos img, .tip-photos .slideshow { aspect-ratio: 4 / 3; }
  .tip-photos { margin-bottom: 1rem; }

  .map { height: 360px; }

  .rsvp-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: 1.5rem 1.25rem; }
  #rsvp-save { width: 100%; }

  .video-inner { padding: 0 0.75rem; }
}

/* ==========================================================================
   Beheerpagina
   ========================================================================== */

body.admin { background: var(--offwhite); }
body.admin header, body.admin main { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
body.admin h1 { font-size: 2.4rem; }
body.admin h2 { font-size: 1.8rem; margin: 2rem 0 0.75rem; }
body.admin label { display: inline-block; margin-top: 0.5rem; }
body.admin input, body.admin textarea, body.admin select { font: inherit; padding: 0.4rem 0.5rem; }
body.admin td button { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.1); vertical-align: top; }
th { white-space: nowrap; }

/* Beheer: uitnodigingen versturen */
body.admin textarea { width: 100%; font: inherit; }
.invite-actions { white-space: nowrap; }
.invite-actions button { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
.whatsapp-link { white-space: nowrap; font-size: 0.85rem; }
.sent-toggle { white-space: nowrap; }
.delete-guest { background: #a3342c; color: white; }
body.admin pre { background: white; padding: 0.75rem; border-radius: 6px; overflow-x: auto; }
body.admin .invitation-row td { background: rgba(255, 255, 255, 0.7); border-top: 2px solid rgba(0, 0, 0, 0.12); }
body.admin .member-row td { border-bottom: none; padding-top: 0.25rem; padding-bottom: 0.25rem; }
body.admin .member-name { padding-left: 1.25rem; white-space: nowrap; }
body.admin .hint { color: #6b6b6b; font-size: 0.85rem; }
.edit-dialog { width: min(560px, calc(100vw - 2rem)); border: none; border-radius: 12px; padding: 1.5rem; }
.edit-dialog input { width: 100%; font: inherit; padding: 0.4rem; margin-bottom: 0.75rem; }
.edit-dialog::backdrop { background: rgba(47, 59, 58, 0.35); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.12); padding-bottom: 0.6rem; }
.admin-tabs button { background: transparent; color: var(--ink); border: 1px solid rgba(0, 0, 0, 0.15); }
.admin-tabs button.is-active { background: var(--ink); color: white; border-color: var(--ink); }

/* ---- Beheer in de huisstijl van de site ---- */
body.admin { color: var(--ink); font-family: var(--sans); }
body.admin h1, body.admin h2, body.admin h3 { font-family: var(--serif); color: var(--navy); font-weight: 500; }
body.admin h3 { font-size: 1.35rem; margin: 0 0 0.9rem; }
body.admin h3 small { font-family: var(--sans); font-size: 0.8rem; color: var(--ink); opacity: 0.7; }
.admin-header { padding-top: 2.5rem !important; }
.admin-kicker { font-family: var(--hand); color: var(--terracotta); font-size: 1.6rem; margin: 0; }
body.admin .admin-header h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); margin: 0; }
.admin-tabs button { font-family: var(--sans); border-radius: 999px; }
.admin-tabs button.is-active { background: var(--navy); border-color: var(--navy); }
body.admin section[data-tab-panel] > h2:first-child { margin-top: 0.5rem; }
body.admin table th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sea-dark); font-weight: 600; }

/* Dashboard */
.dashboard {
  --chart-yes: #1F7AA8;   /* zeeblauw, gevalideerd paar met terracotta */
  --chart-no: #C0674A;    /* terracotta */
  --chart-track: var(--sand);
  display: grid;
  gap: 1rem;
}
.dash-card, .stat-tile, .dash-hero {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.hero-value { font-family: var(--sans); font-size: clamp(3rem, 8vw, 4.2rem); font-weight: 600; line-height: 1; margin: 0.25rem 0 0; color: var(--navy); }
.hero-value span { font-size: 1rem; font-weight: 400; color: var(--ink); }
.dash-countdown { margin: 0; font-family: var(--serif); font-size: 1.4rem; color: var(--sea-dark); }
.dash-countdown strong { font-family: var(--sans); font-weight: 600; color: var(--terracotta-dark); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat-label { margin: 0; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sea-dark); font-weight: 600; }
.stat-value { margin: 0.35rem 0 0; font-size: 1.9rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.stat-detail { margin: 0.2rem 0 0.6rem; font-size: 0.85rem; opacity: 0.75; }
.meter { height: 8px; border-radius: 4px; background: var(--chart-track); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--chart-yes); border-radius: 4px; }
.stacked-bar { display: flex; gap: 2px; height: 16px; border-radius: 4px; background: var(--chart-track); overflow: hidden; }
.stacked-bar span { height: 100%; }
.seg-yes { background: var(--chart-yes); }
.seg-no { background: var(--chart-no); }
.seg-pending { background: var(--chart-track); border: 1px solid var(--sand-line); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0.9rem 0 0; font-size: 0.9rem; }
.legend li { display: flex; align-items: center; gap: 0.45rem; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.group-table td { font-variant-numeric: tabular-nums; }
.cell-meter { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.cell-meter .meter { width: 90px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.bar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.bar-list li { display: grid; grid-template-columns: 5.5rem 1fr 2rem; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.bar-track { height: 10px; background: var(--chart-track); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--chart-yes); border-radius: 0 4px 4px 0; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mini-stats p { margin: 0 0 0.5rem; }
.mini-stats strong { font-size: 1.3rem; color: var(--navy); margin-right: 0.3rem; }
.diet-list { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
.diet-list li { margin-bottom: 0.35rem; }
/* Brede tabellen scrollen binnen hun kaart in plaats van de pagina op te rekken. */
.dashboard > *, .dash-grid > *, .kpi-row > * { min-width: 0; }
body.admin .table-scroll { overflow-x: auto; max-width: 100%; }
@media (max-width: 600px) {
  body.admin header, body.admin main { padding: 1rem; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1.5rem; }
}

/* Beheer: fotostrook, werkbalk, gastenlijst, bericht, bewerken */
.admin-hero {
  background:
    linear-gradient(180deg, rgba(31, 58, 77, 0.55) 0%, rgba(31, 58, 77, 0.35) 100%),
    url('../images/strand-duinen.jpg') center 40% / cover no-repeat,
    var(--sea);
  color: var(--white);
}
.admin-hero-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2.25rem; }
body.admin .admin-hero h1 { color: var(--white); margin: 0; font-size: clamp(2.4rem, 5vw, 3.2rem); }
body.admin .admin-hero .admin-kicker { color: var(--rose); }
body.admin #auth-status { margin-top: 0.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.75rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-bottom: 0.5rem; }
.toolbar input[type="search"] { flex: 1 1 260px; min-width: 0; border: 1px solid var(--sand-line); border-radius: var(--radius); background: var(--white); }
.toolbar label { margin: 0; font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.2rem; }
.button-quiet { background: transparent; color: var(--sea-dark); border: 1px solid var(--sand-line); }
.button-quiet:hover { background: var(--white); }
.status-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; white-space: nowrap; background: var(--sand); }
.status-yes { background: #DCEAF2; color: #17607F; }
.status-no { background: #F3DED6; color: #8E4A35; }
.opened { color: #17607F; white-space: nowrap; font-size: 0.85rem; }
.last-name-input { width: 9rem; padding: 0.25rem 0.4rem !important; border: 1px solid transparent; border-radius: var(--radius); background: transparent; }
.last-name-input:hover, .last-name-input:focus { border-color: var(--sand-line); background: var(--white); }
.last-name-input.is-saved { border-color: #9CC3D6; }
.last-name-input.is-error { border-color: var(--terracotta); }
.answers-table td { vertical-align: top; }
.message-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.message-preview-wrap { display: grid; gap: 0.6rem; justify-items: start; }
.message-preview {
  background: #DCF8C6; color: #111; border-radius: 10px 10px 10px 2px; padding: 0.7rem 0.9rem; max-width: 34rem;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
@media (max-width: 760px) { .message-editor { grid-template-columns: 1fr; } }
.edit-dialog { width: min(760px, calc(100vw - 2rem)); }
.edit-dialog label { display: block; margin: 0.4rem 0 0.2rem; }
.member-editor-head, .member-editor-row { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr 0.8fr 2.2rem; gap: 0.4rem; align-items: center; }
.member-editor-head { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sea-dark); font-weight: 600; margin-bottom: 0.25rem; }
.member-editor-row { margin-bottom: 0.4rem; }
.member-editor-row input { margin: 0 !important; min-width: 0; }
.m-remove { padding: 0.3rem 0 !important; font-size: 1.1rem; }
.dialog-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
@media (max-width: 600px) {
  .member-editor-head { display: none; }
  .member-editor-row { grid-template-columns: 1fr 1fr; padding-bottom: 0.4rem; border-bottom: 1px solid var(--sand-line); }
}
body.admin header.admin-hero { max-width: none; margin: 0; padding: 0; }
.admin-tabs button { transition: none; box-shadow: none; transform: none; }
.admin-tabs button:hover { background: var(--white); color: var(--navy); border-color: var(--sand-line); }
.admin-tabs button.is-active, .admin-tabs button.is-active:hover, .admin-tabs button.is-active:focus { background: var(--navy); color: var(--white); border-color: var(--navy); }
.admin-tabs button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
/* Compacte gastenlijst: korte actieknoppen zodat de tabel binnen de pagina past. */
.guest-table th, .guest-table td { padding: 0.45rem 0.4rem; }
.guest-table .invite-actions { display: flex; gap: 0.3rem; flex-wrap: nowrap; }
.action-button, body.admin td button.action-button {
  display: inline-block; padding: 0.3rem 0.6rem; font-size: 0.8rem; line-height: 1.3; border-radius: 999px;
  background: var(--sea); color: var(--white); border: none; text-decoration: none; white-space: nowrap; letter-spacing: 0;
}
.action-button:hover { background: var(--sea-dark); color: var(--white); }
.whatsapp-button { background: #1F8A5B; }
.whatsapp-button:hover { background: #18704A; }
.guest-table .last-name-input { width: 7.5rem; }
.guest-table td:first-child { white-space: nowrap; }
.guest-table .invite-actions button.edit-guest, .guest-table .invite-actions button.delete-guest { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.icon-button, body.admin td button.icon-button {
  width: 2rem; height: 2rem; padding: 0; border-radius: 50%; font-size: 0.95rem; line-height: 1;
  background: transparent; color: var(--sea-dark); border: 1px solid var(--sand-line);
}
.icon-button:hover { background: var(--white); }
body.admin td button.delete-guest.icon-button { background: transparent; color: #a3342c; }
body.admin td button.delete-guest.icon-button:hover { background: #F3DED6; }
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]::after { content: ' ↕'; opacity: 0.3; }
th[aria-sort="ascending"]::after { content: ' ↑'; opacity: 1; }
th[aria-sort="descending"]::after { content: ' ↓'; opacity: 1; }
th[data-sort]:hover { color: var(--navy); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guest-table .last-name-input { width: 7rem; }
.guest-table .action-button, body.admin .guest-table td button.action-button { padding: 0.3rem 0.5rem; }
.opened { font-size: 1.05rem; font-weight: 600; cursor: help; }
