/* First-party availability search bar on the mirrored site pages — styled
   after the old Lodgify portable search bar: separate white blocks for the
   dates and the guests dropdown, our dark Check availability button. The
   mirror pages don't load booking.css, so the widget scopes its own --bk-*
   palette; calendar.css picks the variables up from here. Söhne faces come
   from the mirrored site stylesheet. */
.ck-widget {
  --bk-bg: #faf8f4;
  --bk-panel: #ffffff;
  --bk-ink: #1c1a17;
  --bk-muted: #6f6a61;
  --bk-line: #e5e0d6;
  --bk-accent: #8a7350;
  --bk-accent-ink: #ffffff;
  --bk-font: "Sohne Leicht", Arial, sans-serif;
  --bk-font-wide: "Sohnebreit Leicht", Arial, sans-serif;

  font-family: var(--bk-font);
  font-size: 15px;
  line-height: 1.4;
  color: var(--bk-ink);
  text-align: left;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  /* The home hero's .container-11 layer sits at z-index 997 and would
     swallow clicks (Lodgify's widget ran at 999 for the same reason). */
  position: relative;
  z-index: 998;
}

/* The bar: [check-in | check-out]  [guests ▾]  [check availability] */
.ck-bar { display: flex; align-items: stretch; gap: 14px; }
.ck-dates {
  display: flex;
  align-items: stretch;
  background: var(--bk-panel);
  border-radius: 6px;
  overflow: hidden;
}
.ck-field {
  border: none;
  background: none;
  font-family: var(--bk-font);
  font-size: 15px;
  color: var(--bk-ink);
  padding: 22px 26px;
  min-width: 148px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.ck-field:hover { background: var(--bk-bg); }
.ck-sep { width: 1px; background: var(--bk-line); margin: 12px 0; }

.ck-guests {
  display: flex;
  align-items: center;
  gap: 24px;
  border: none;
  background: var(--bk-panel);
  border-radius: 6px;
  font-family: var(--bk-font);
  color: var(--bk-ink);
  padding: 10px 20px 10px 24px;
  min-width: 210px;
  text-align: left;
  cursor: pointer;
}
.ck-guests:hover { background: var(--bk-bg); }
.ck-gtext { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.ck-l {
  font-size: 12px;
  font-weight: 600;
  color: var(--bk-ink);
  white-space: nowrap;
}
.ck-v { font-size: 15px; color: var(--bk-ink); white-space: nowrap; }
.ck-chev {
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--bk-ink);
  border-bottom: 1.5px solid var(--bk-ink);
  transform: rotate(45deg) translateY(-2px);
  flex: none;
}

.ck-search {
  border: none;
  background: var(--bk-ink);
  color: #fff;
  font-family: var(--bk-font-wide);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 28px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.ck-search:hover { background: var(--bk-accent); }
.ck-search:disabled { background: #b9b2a6; cursor: default; }

/* Calendar popover: only visible while picking; outside click dismisses. */
.ck-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
  background: var(--bk-panel);
  border: 1px solid var(--bk-line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(28, 26, 23, 0.25);
  padding: 20px 24px;
}
.ck-pop .bk-hint a { color: var(--bk-accent); }
/* Flipped above the bar when the viewport has no room below (widget.js
   toggles this on open, scroll, and resize). */
.ck-pop.ck-up, .ck-gpop.ck-up { top: auto; bottom: calc(100% + 10px); }

/* Guests breakdown: per-type rows with age hints, like the old dropdown. */
.ck-gpop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--bk-panel);
  border: 1px solid var(--bk-line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(28, 26, 23, 0.25);
  padding: 8px 20px 16px;
}
.ck-grow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bk-line);
}
.ck-gwho { display: flex; flex-direction: column; gap: 1px; }
.ck-gname { font-size: 15px; }
.ck-gage { font-size: 13px; color: var(--bk-muted); }
.ck-gctl { display: flex; align-items: center; gap: 12px; }
.ck-gctl output { min-width: 18px; text-align: center; font-size: 15px; }
.ck-step {
  width: 30px; height: 30px;
  border-radius: 5px;
  border: 1px solid var(--bk-line);
  background: var(--bk-panel);
  color: var(--bk-ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.ck-step:hover { border-color: var(--bk-accent); }
.ck-done {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid var(--bk-line);
  border-radius: 5px;
  background: var(--bk-panel);
  font-family: var(--bk-font);
  font-size: 15px;
  color: var(--bk-ink);
  cursor: pointer;
}
.ck-done:hover { border-color: var(--bk-accent); }

@media (max-width: 760px) {
  .ck-bar { flex-wrap: wrap; justify-content: center; }
  .ck-search { flex: 1 1 100%; padding: 14px; }
  .ck-gpop { right: auto; left: 50%; transform: translateX(-50%); }
}

/* The home page's next section ("A dream home…", .container-11 inside
   .div-block-4) floats at z-index 997 with 270px of transparent top padding
   that would swallow clicks on the popovers. Its only content is static
   text, so let clicks pass through; children regain normal hit-testing.
   Loaded only on pages that embed the widget. */
.div-block-4 > .container-11 { pointer-events: none; }
.div-block-4 > .container-11 * { pointer-events: auto; }
