:root {
  --bg: #f3eee4;
  --ink: #1e2a1c;
  --muted: #5c6758;
  --pine: #2f5d3d;
  --pine-dark: #214530;
  --moss: #6d8f62;
  --sand: #e6dccb;
  --card: #fffcf6;
  --line: rgba(33, 69, 48, 0.16);
  --terracotta: #c45c26;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  color: #fff;
  background: #1a2a1c;
  transition: min-height 0.7s ease;
}

.hero.is-set {
  min-height: 315px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transform: scale(1.14);
  transition: opacity 0.9s ease;
}

.hero-bg-leaf {
  background-image: url("header-blad.jpg?v=5");
  opacity: 1;
  transform: scale(1.06);
}

.hero.is-set .hero-bg-leaf {
  opacity: 0;
}

.hero-bg-bos { background-image: url("header-bos.jpg?v=7"); }
.hero-bg-meer { background-image: url("header-meer.jpg?v=7"); }
.hero-bg-stad { background-image: url("header-stad.jpg?v=7"); }

.hero.is-set[data-plek="bos"] .hero-bg-bos,
.hero.is-set[data-plek="meer"] .hero-bg-meer,
.hero.is-set[data-plek="stad"] .hero-bg-stad {
  opacity: 1;
  animation: hero-ken 18s ease-out forwards;
}

@keyframes hero-ken {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(12, 18, 12, 0.42) 0%, rgba(12, 18, 12, 0.22) 42%, rgba(12, 18, 12, 0.5) 100%);
  transition: background 0.8s ease;
}

.hero.is-set .hero-shade {
  background:
    linear-gradient(180deg, rgba(12, 18, 12, 0.38) 0%, rgba(12, 18, 12, 0.18) 42%, rgba(12, 18, 12, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.35rem 0 1.4rem;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.brand-kicker,
.brand-tag,
.eyebrow {
  margin: 0;
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .brand-kicker,
.hero .brand-tag,
.hero .demo-note {
  color: rgba(255, 255, 255, 0.86);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #d7efc4;
  background-image: linear-gradient(180deg, #f3fbe8 0%, #c6e59a 52%, #e7f6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.place-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.25rem;
}

.place-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.55rem 0.45rem;
  border: 2px solid rgba(47, 93, 61, 0.22);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.92);
  color: var(--pine-dark);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.place-name {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
}

.place-btn:hover,
.place-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--pine);
}

.place-btn.is-on {
  border-color: var(--pine);
  background: #fff;
  box-shadow: 0 8px 20px rgba(33, 69, 48, 0.12);
}

.hero.is-set .place-btn {
  background: rgba(16, 24, 16, 0.42);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero.is-set .place-btn.is-on {
  background: #fff;
  border-color: #fff;
  color: var(--pine-dark);
}

.page {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.25rem 0 2.4rem;
}

.intro {
  margin-bottom: 1.1rem;
}

.intro h1 {
  margin: 0.2rem 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.intro p {
  margin: 0;
  color: var(--muted);
}

.crumb {
  margin-top: 0.55rem !important;
}

.crumb a {
  color: var(--pine);
  font-weight: 600;
}

.flash {
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.flash-error {
  background: #f8e4dc;
  color: #8a3318;
}

.thumbs-wrap,
.search-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s ease, opacity 0.4s ease 0.08s;
}

.thumbs-wrap.is-open,
.search-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.thumbs-inner,
.search-wrap-inner {
  min-height: 0;
  overflow: hidden;
}

.thumbs-wrap {
  margin-bottom: 1rem;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.thumb {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.thumb img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(33, 69, 48, 0.12);
}

.thumb:hover img,
.thumb:focus-visible img {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.thumb-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 14, 10, 0.86);
}

.preview[hidden] { display: none; }

.preview-frame {
  margin: 0;
  text-align: center;
}

.preview img {
  max-width: min(1100px, 78vw);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.preview-cap {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--pine-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.preview-prev { left: 1.1rem; }
.preview-next { right: 1.1rem; }

.preview-nav:hover,
.preview-nav:focus-visible {
  background: var(--pine);
  color: #fff;
}

.preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: #fff;
  color: var(--pine-dark);
  font: inherit;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

body.is-preview { overflow: hidden; }

.search-card,
.stay-card,
.empty-card,
.confirm-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(33, 69, 48, 0.06);
}

.search-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  padding: 1.15rem 1.15rem 1.05rem;
}

.search-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--pine-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.span-2 { grid-column: 1 / -1; }

.search-card input,
.search-card select,
.search-card textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.search-card textarea { resize: vertical; }

.optional {
  color: var(--muted);
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.15rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--pine);
  border-radius: 8px;
  background: #fff;
  color: var(--pine);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--pine-dark);
  border-color: var(--pine-dark);
}

.btn.primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.stay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stay-card,
.empty-card,
.confirm-card {
  padding: 1.1rem 1.15rem 1rem;
}

.stay-card {
  padding: 0;
  overflow: hidden;
}

.stay-shot {
  height: 168px;
  background: center / cover no-repeat;
}

.stay-card-inline {
  margin-bottom: 1rem;
}

.stay-card-inline .stay-shot {
  height: 140px;
}

.stay-body,
.empty-card,
.confirm-card {
  padding: 1.1rem 1.15rem 1rem;
}

.stay-card h2 {
  margin: 0.15rem 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.stay-type {
  display: inline-block;
  margin: 0;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.type-bos { background: #e4eedc; color: #3d5c32; }
.type-meer { background: #d7e6ef; color: #1f4a63; }
.type-stad { background: #f6e2d6; color: #8a3318; }

.stay-meta,
.stay-summary {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.stay-price {
  margin: 0 0 0.7rem;
}

.stay-price span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.empty-card p:first-child { margin-top: 0; }

.confirm-card dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.confirm-card dt {
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm-card dd {
  margin: 0.1rem 0 0;
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 640px) {
  .search-card {
    grid-template-columns: 1fr;
  }

  .span-2 { grid-column: auto; }

  .brand-name { font-size: 1.32rem; }

  .hero.is-set { min-height: 270px; }

  .place-name { font-size: 0.72rem; }

  .thumb img { height: 72px; }

  .preview-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .preview-prev { left: 0.5rem; }
  .preview-next { right: 0.5rem; }
}
