/* Kerstmenu pop-up, Restaurant Chung. Ivoor/groen/goud uit het kerstmenu, Poppins van de site. */
.ckm {
  --ckm-bg: #faf6ee;
  --ckm-green: #173a2d;
  --ckm-green-deep: #0f2a20;
  --ckm-gold: #b8913f;
  /* Goud als tekstkleur: donkerder voor contrast op ivoor (AA) */
  --ckm-gold-text: #84651f;
  --ckm-text: #173a2d;
  --ckm-muted: #4d5f56;
  --ckm-line: rgba(184, 145, 63, 0.45);
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ckm[hidden] { display: none !important; }
.ckm-lock, .ckm-lock body { overflow: hidden; }

.ckm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 15, 0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ckm__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  background: var(--ckm-bg);
  color: var(--ckm-text);
  border: 1px solid var(--ckm-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ckm__dialog:focus { outline: none; }
.ckm--open .ckm__backdrop { opacity: 1; }
.ckm--open .ckm__dialog { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ckm__backdrop, .ckm__dialog { transition: none; }
}

.ckm__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ckm-line);
  border-radius: 999px;
  background: rgba(250, 246, 238, 0.92);
  color: var(--ckm-green);
  cursor: pointer;
}
.ckm__close:hover { background: #fff; }

.ckm__view--intro {
  display: grid;
  grid-template-columns: 340px 1fr;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* Het thema zet p op line-height 35px; binnen de pop-up terugzetten */
.ckm p, .ckm li { line-height: 1.45; }
.ckm .ckm__text { line-height: 1.6; }

.ckm__media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--ckm-line);
  border-radius: 0;
  background: #f1ebdf;
  cursor: zoom-in;
}
.ckm__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  box-shadow: 0 6px 24px rgba(23, 58, 45, 0.18);
  transition: transform 0.2s ease;
}
.ckm__media:hover img { transform: scale(1.015); }

.ckm__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 34px;
}
.ckm__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ckm-gold-text);
}
.ckm__title {
  margin: 0 0 16px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ckm-green);
}
.ckm__date {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 10px 16px;
  border: 1px solid var(--ckm-gold);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ckm-green);
}
.ckm__date span + span { color: var(--ckm-muted); font-weight: 400; }
.ckm__date span + span::before { content: "·"; margin: 0 8px; color: var(--ckm-gold); }
.ckm__courses {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ckm-green);
}
.ckm__courses li {
  position: relative;
  margin: 0;
  padding: 3px 0 3px 18px;
}
.ckm__courses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: 2px solid var(--ckm-gold);
  border-radius: 50%;
}
.ckm__courses li:nth-child(even)::before { border-color: #9aa0a6; }
.ckm__text {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--ckm-muted);
}

.ckm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ckm__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 "Poppins", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ckm__btn--primary {
  border: 1px solid var(--ckm-green);
  background: var(--ckm-green);
  color: #fff;
}
.ckm__btn--primary:hover { background: var(--ckm-green-deep); border-color: var(--ckm-green-deep); color: #fff; }
.ckm__btn--ghost {
  border: 1px solid var(--ckm-gold);
  background: transparent;
  color: var(--ckm-green);
}
.ckm__btn--ghost:hover { background: rgba(184, 145, 63, 0.12); color: var(--ckm-green); }
.ckm__btn:focus-visible, .ckm__close:focus-visible, .ckm__media:focus-visible, .ckm-viewer__zoom button:focus-visible { outline: 2px solid var(--ckm-gold); outline-offset: 2px; }

/* ---------- Menukaart-kijker: schermvullend, knijpen/slepen/zoomen ---------- */
.ckm-viewer {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: #1b2420;
  color: #fff;
}
.ckm-viewer[hidden] { display: none !important; }
.ckm-viewer__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.ckm-viewer__stage:active { cursor: grabbing; }
.ckm .ckm-viewer__img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none !important;
  max-height: none !important;
  transform-origin: 0 0;
  will-change: transform;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.ckm-viewer.is-anim .ckm-viewer__img { transition: transform 0.22s ease; }

.ckm-viewer__hint {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  max-width: calc(100% - 150px);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23, 58, 45, 0.9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.ckm-viewer__hint.is-hidden { opacity: 0; }

.ckm-viewer__zoom {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ckm-viewer__zoom button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ckm-line);
  border-radius: 999px;
  background: rgba(250, 246, 238, 0.92);
  color: var(--ckm-green);
  font: 500 24px/1 "Poppins", system-ui, sans-serif;
  cursor: pointer;
}
.ckm-viewer__zoom button:hover { background: #fff; }
/* Touchscherm: knijpen is de hoofdroute; knoppen klein en rechtsonder zodat ze de kaart niet afdekken */
@media (pointer: coarse) {
  .ckm-viewer__zoom {
    top: auto;
    left: auto;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
  }
  .ckm-viewer__zoom button { width: 40px; height: 40px; font-size: 22px; }
}
.ckm-viewer .ckm__close { top: 12px; right: 12px; }

.ckm-viewer__bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ckm-line);
  background: var(--ckm-bg);
}
.ckm-viewer__bar .ckm__btn { min-width: 160px; }

/* Mobiel: geen afbeelding (de gangen staan als tekst), knoppen sticky onderin */
@media (max-width: 680px) {
  .ckm { padding: 12px; }
  .ckm__dialog, .ckm__view--intro { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .ckm__view--intro { grid-template-columns: 1fr; }
  .ckm__media { display: none; }
  .ckm__body { padding: 24px 20px 0; }
  .ckm__eyebrow { font-size: 11px; }
  .ckm__title { margin-bottom: 12px; padding-right: 44px; font-size: 26px; }
  .ckm__date { margin-bottom: 12px; padding: 8px 14px; font-size: 14px; }
  .ckm__courses { margin-bottom: 12px; font-size: 14px; }
  .ckm__courses li { padding-top: 2px; padding-bottom: 2px; }
  .ckm .ckm__text { margin-bottom: 4px; font-size: 12.5px; line-height: 1.5; }
  .ckm__view--intro .ckm__actions {
    position: sticky;
    bottom: 0;
    margin: 0 -20px;
    padding: 12px 20px 16px;
    gap: 8px;
    background: linear-gradient(to bottom, rgba(250, 246, 238, 0), var(--ckm-bg) 14px);
  }
  .ckm__view--intro .ckm__actions .ckm__btn { flex: 1 1 100%; min-height: 44px; }
  .ckm-viewer__bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .ckm-viewer__bar .ckm__btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 14px; }
  .ckm-viewer__hint { top: 18px; font-size: 12px; max-width: calc(100% - 130px); }
}
/* Liggend of lage schermen breder dan 680px: compacter en scrollbaar */
@media (min-width: 681px) and (max-height: 600px) {
  .ckm__view--intro { grid-template-columns: 220px 1fr; }
  .ckm__media { align-items: flex-start; padding: 14px; }
  .ckm__body { justify-content: flex-start; padding: 20px 56px 0 24px; }
  .ckm__title { font-size: 26px; margin-bottom: 10px; }
  .ckm__date { margin-bottom: 10px; padding: 6px 12px; font-size: 14px; }
  .ckm__courses { font-size: 13px; margin-bottom: 8px; }
  .ckm__courses li { padding-top: 1px; padding-bottom: 1px; }
  .ckm .ckm__text { font-size: 12px; margin-bottom: 4px; line-height: 1.5; }
  .ckm__btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
  .ckm__view--intro .ckm__actions {
    position: sticky;
    bottom: 0;
    margin: 0 -56px 0 -24px;
    padding: 10px 56px 14px 24px;
    background: linear-gradient(to bottom, rgba(250, 246, 238, 0), var(--ckm-bg) 10px);
  }
  .ckm-viewer__bar { padding-top: 6px; padding-bottom: 6px; }
  .ckm-viewer__zoom { flex-direction: row; }
}
