:root {
  --ink: #1d2a2c;
  --muted: #66737a;
  --bg: #f7f4ee;
  --card: #fff;
  --line: #e7e1d6;
  --sand: #efe8dc;
  --brand: #0f5e5c;
  --brand-dark: #0a4341;
  --accent: #d9913a;
  --ok: #1f7a4d;
  --ok-bg: #e6f3eb;
  --info: #2a5d9a;
  --info-bg: #e9f0f8;
  --warn: #94590b;
  --warn-bg: #fcf1df;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 40, .05), 0 6px 20px rgba(20, 40, 40, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: .15em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- header */

.logo {
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: .01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 2px 12px rgba(0, 0, 0, .5);
}
.logo span { color: var(--accent); }

.hero, .top {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--brand-dark) center / cover;
}
.hero::after, .top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 25, 25, .55) 0%, rgba(5, 25, 25, .2) 45%, rgba(5, 25, 25, .6) 100%);
}
.hero > :not(.slides), .top > * { position: relative; z-index: 1; }
.hero { padding: 1.4rem 1rem 4.5rem; min-height: 19rem; display: flex; flex-direction: column; justify-content: center; }
.top { padding: 1.4rem 1rem 5.5rem; background-image: url(img/header-4.jpg); background-position: center 85%; }
.slides div {
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0;
  animation: slide 40s infinite;
}
.slides div:nth-child(2) { animation-delay: 8s; }
.slides div:nth-child(3) { animation-delay: 16s; }
.slides div:nth-child(4) { animation-delay: 24s; }
.slides div:nth-child(5) { animation-delay: 32s; }
.slides div:first-child { opacity: 1; animation-name: slide-first; }
@keyframes slide { 0% { opacity: 0; transform: scale(1.08); } 5%, 20% { opacity: 1; } 25%, 100% { opacity: 0; transform: scale(1); } }
@keyframes slide-first { 0%, 20% { opacity: 1; } 25%, 95% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slides div { animation: none; } }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin: 0 auto;
  max-width: 20ch;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55), 0 4px 28px rgba(0, 0, 0, .6);
}

/* --- layout and search panel */

main {
  position: relative;
  z-index: 1;
  max-width: 74rem;
  margin: -3rem auto 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 20.5rem 1fr;
  gap: 1.75rem;
  align-items: start;
}
#results { padding-top: 3rem; }
@media (max-width: 820px) { main { grid-template-columns: 1fr; } #results { padding-top: 0; } }

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(20, 40, 40, .06), 0 16px 40px rgba(20, 40, 40, .12);
  padding: 1.2rem 1.25rem .6rem;
  position: sticky;
  top: 1rem; /* moved by app.js when the panel is taller than the window */
}
@media (max-width: 820px) { .panel { position: static; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 1rem; }
legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand-dark);
  margin-bottom: .55rem;
}
legend { float: left; width: 100%; padding: 0; }
legend + * { clear: both; }
label, .label { display: block; margin: 0 0 .7rem; font-size: .9rem; color: #3a4649; }
label.check { display: flex; gap: .55rem; align-items: flex-start; }
label.check input { margin-top: .28rem; accent-color: var(--brand); }
select, input[type=number], input[type=date], input[type=email] {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .55rem .65rem;
  border: 1px solid #ddd5c8;
  border-radius: 9px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fdfcfa;
  transition: border-color .15s, box-shadow .15s;
}
select:hover, input:hover { border-color: #c9bfae; }
select:focus, input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 94, 92, .15); }
input.small { width: 5.5rem; display: inline-block; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; }
.row label { flex: 1; }
.vacation { display: flex; gap: .25rem; align-items: flex-end; margin-bottom: .7rem; }
.vacation > span { flex: 1; }
#edit-dates { font-size: 1.2rem; margin-bottom: .3rem; }
.kid { display: inline-flex; align-items: center; gap: .15rem; margin: 0 .4rem .4rem 0; }
.kid input { margin: 0; }
.filter { display: block; background: none; border: 0; padding: 0; margin: 0 0 .55rem; font-size: .9rem; color: #3a4649; text-align: left; }
.filter span { color: var(--brand); text-decoration: underline; text-decoration-color: #b9d3d1; text-underline-offset: .2em; }
.filter:hover span { text-decoration-color: currentColor; }
#filters .check { margin-bottom: .45rem; }
.filter.on, #filters .check:has(input:checked) { font-weight: 600; }

/* --- buttons and chips */

button { font: inherit; cursor: pointer; }
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .6rem 1.15rem;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 1px 2px rgba(10, 67, 65, .25);
  transition: background .15s, transform .15s;
}
.button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.link { background: none; border: 0; color: var(--brand); padding: .25rem; }
.link:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.chip {
  border: 1px solid #ddd5c8;
  background: #fdfcfa;
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .85rem;
  color: #3a4649;
}
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- results */

.results-head {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.75rem 0 1rem;
}
#count { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0; }
.sort { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--muted); }
.sort select { width: auto; margin: 0; }
@media (max-width: 820px) { .results-head { margin-top: .5rem; } }

#list { list-style: none; padding: 0; margin: 0; }
.photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11.5rem;
  overflow: hidden;
  background: var(--sand) radial-gradient(circle at 30% 20%, #f7f2ea 0, transparent 60%);
  text-decoration: none;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.placeholder { font-family: var(--serif); font-size: 1.15rem; color: #9b8f7c; padding: 1rem; text-align: center; }
.what { padding: 1rem 1.15rem; min-width: 0; }
.what h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.what h3 a { color: var(--ink); text-decoration: none; }
.what h3 a:hover { color: var(--brand); }
.badges { margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.badge {
  display: inline-block;
  padding: .12rem .6rem;
  border-radius: 999px;
  background: #f1eee8;
  color: #4a5558;
  font-size: .78rem;
  font-weight: 600;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.tour {
  display: grid;
  grid-template-columns: 11rem 1fr;
  margin-bottom: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tour .photo { min-height: 7rem; border-radius: var(--radius) 0 0 var(--radius); }
.tour .photos { position: absolute; inset: 0; display: flex; flex-direction: column; }
.tour .photos img { position: static; flex: 1; min-height: 0; }
.tour .photos img + img { border-top: 3px solid var(--card); }
.tour .photos .more, .tour .dots { display: none; }
.tour .what { padding: .8rem 1.1rem .5rem; }
.tour .head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem 1rem; }
.tour h3 { margin: 0 0 .1rem; font-size: 1.2rem; }
.tour .head .small { margin: 0; }
.tour .badge { font-size: .72rem; padding: .08rem .5rem; }
.tour .head .button { padding: .45rem 1rem; font-size: .88rem; white-space: nowrap; }
.departures { list-style: none; padding: 0; margin: .5rem 0 0; }
.departure {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .3rem .5rem;
  padding: .35rem 0;
  border-top: 1px solid var(--line);
}
.departure .when { margin-right: .3rem; font-size: .88rem; font-weight: 600; color: var(--brand); white-space: nowrap; text-decoration: underline; text-decoration-color: #b9d3d1; text-underline-offset: .2em; }
.departure .when:hover { text-decoration-color: currentColor; }
.departure .badges { margin: 0; gap: .25rem; align-items: center; }
.amount { display: flex; align-items: center; gap: .3rem; }
.amount strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.excl { background: none; border: 0; padding: 0; color: var(--warn); font-size: .85rem; cursor: help; }
.button.bell { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; font-size: .88rem; white-space: nowrap; }
.bell svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button.bell.on { background: #fdf5e2; border-color: #e8cf94; color: #8a5a00; }
.bell.on svg path:first-child { fill: #e0a01b; stroke: #c98a0c; }
.bell.on svg path { stroke: #c98a0c; }
/* a text shown on hover, or on a click or tap */
.tipped { position: relative; }
.tip {
  display: none;
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 6px);
  left: 0;
  width: max-content;
  max-width: 16rem;
  padding: .4rem .6rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 400;
  font-size: .8rem;
  text-align: left;
  white-space: normal;
}
.excl .tip { left: auto; right: -.5rem; }
.tipped:hover .tip, .tipped:focus .tip { display: block; }
/* who booked: a bar per participant, as tall as they are old, in groups of adults, girls, boys and children
   of unknown sex, all grey but the girls and boys */
:root { --girl: #e0569a; --boy: #2f7fd0; }
.booked { border: 0; display: inline-flex; align-items: center; gap: .35rem; cursor: help; }
.figures { display: inline-flex; align-items: flex-end; height: 12px; }
.figures > span { display: inline-flex; align-items: flex-end; gap: 2px; }
.figures > span + span { margin-left: 5px; }
.figures i { width: 3px; height: 12px; border-radius: 1.5px; background: #7d8a8f; }
.figures .girl i { background: var(--girl); }
.figures .boy i { background: var(--boy); }
@media (max-width: 1150px) {
  .tour { grid-template-columns: 8rem 1fr; }
}
@media (max-width: 560px) {
  .tour { grid-template-columns: 1fr; }
  .tour .photo { min-height: 10rem; border-radius: var(--radius) var(--radius) 0 0; }
  .tour .photos { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tour .photos::-webkit-scrollbar { display: none; }
  .tour .photos img, .tour .photos .more { display: block; flex: 0 0 100%; scroll-snap-align: start; }
  .tour .photos img + img { border-top: 0; }
  .tour .dots { display: flex; gap: 5px; position: absolute; bottom: .55rem; left: 50%; transform: translateX(-50%); pointer-events: none; }
  .tour .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .35); }
  .tour .dots i.on { background: #fff; }
  .tour .dots i:only-child { display: none; }
  .tour .head { flex-wrap: wrap; }
}
.alert-buttons { display: flex; align-items: center; gap: .9rem; }
.empty { background: var(--card); border: 1px dashed #d6cdbf; border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }

/* --- dialog */

dialog {
  border: 0;
  border-radius: 18px;
  padding: 1.5rem 1.6rem 1.2rem;
  max-width: 31rem;
  width: calc(100% - 2rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(1rem) scale(.97);
  transition: opacity .2s, transform .2s, overlay .2s allow-discrete, display .2s allow-discrete;
}
dialog[open] { opacity: 1; transform: none; }
dialog::backdrop { background: rgba(15, 30, 30, .5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s, overlay .2s allow-discrete, display .2s allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style {
  dialog[open] { opacity: 0; transform: translateY(1rem) scale(.97); }
  dialog[open]::backdrop { opacity: 0; }
}
dialog h2 { margin: 0 0 .3rem; font-size: 1.5rem; outline: none; }
dialog fieldset { border-top: 1px solid var(--line); padding-top: .9rem; }
.actions { display: flex; justify-content: flex-end; gap: .75rem; align-items: center; }
#alert-message { font-weight: 600; color: var(--brand); }

/* --- below the search: what search engines read */

.about {
  max-width: 74rem;
  margin: 4rem auto 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 0; } }
.about h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
@media (max-width: 820px) { .about h2 { margin-top: 1.75rem; } }
.about p { margin: 0 0 .8rem; }
.links { list-style: none; padding: 0; margin: 0 0 .8rem; columns: 2; column-gap: 1.5rem; }
.links li { margin-bottom: .3rem; break-inside: avoid; white-space: nowrap; }

/* --- footer and subpages */

footer {
  max-width: 46rem;
  margin: 3.5rem auto 0;
  padding: 1.75rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.page { max-width: 44rem; margin: -1.5rem auto 3rem; padding: 0 1rem; position: relative; z-index: 1; }
.page .card { background: var(--card); border-radius: var(--radius); padding: 1.75rem 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.page h1 { margin-top: 0; font-size: 2rem; }
.page h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.page.wide { max-width: 62rem; }
.page.wide #list { margin-top: 1.5rem; }

/* --- the account dialog: what the address follows, and its settings */

.hero > .account {
  position: absolute;
  top: 1.2rem;
  right: max(1rem, (100% - 74rem) / 2 + 1rem);
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  padding: .3rem .85rem;
  font-size: .85rem;
  backdrop-filter: blur(4px);
}
.account:hover { background: rgba(255, 255, 255, .28); }
@media (max-width: 600px) { .account span { display: none; } }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin: .8rem 0 .4rem; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: .45rem .8rem; color: var(--muted); font-weight: 600; }
.tabs button[aria-selected=true] { color: var(--brand); border-bottom-color: var(--brand); }
.tab { min-height: 8rem; margin-bottom: 1rem; }
.alerts { list-style: none; padding: 0; margin: .5rem 0; max-height: 50vh; overflow-y: auto; }
.alerts li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.alerts li a { flex: 1; color: var(--ink); }
.kind { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.alerts .delete { color: var(--muted); padding: 0 .1rem 0 .3rem; }
.alerts .trip-name { flex: 1; font-weight: 600; }
.alerts .dates { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .3rem; }
.alerts .badge a { color: inherit; font-weight: 600; }
#follow-dates label { margin-bottom: .4rem; }
.tour .head .buttons { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.notice { background: var(--warn-bg); border-radius: 12px; padding: .9rem 1.1rem; margin: 1rem 0; }
.notice p { margin: 0 0 .6rem; color: var(--warn); font-weight: 600; }
.button.quiet { background: #fff; color: var(--brand); border: 1px solid #cfc6b6; box-shadow: none; }
.button.quiet:hover { background: var(--sand); }

/* Tables of figures (/cijfers, /prijs-in-de-schoolvakantie) */
.numbers { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-variant-numeric: tabular-nums; }
.numbers th, .numbers td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.numbers th:first-child, .numbers td:first-child { text-align: left; }
.numbers th { font-weight: 600; color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .numbers th, .numbers td { padding: .4rem .3rem; font-size: .9rem; } }
