/* Charter booking: native 123boeken integration + plain widget embed */

.book { background: #fff; scroll-margin-top: 85px; }
.book-head { display: flex; flex-wrap: wrap; gap: 24px 72px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.book-head .copy { flex: 2 1 460px; }
.book-head p { max-width: 40em; }

.demo-note { display: flex; gap: 14px; align-items: flex-start; background: var(--blue-tint); border-left: 4px solid var(--blue); border-radius: 6px; padding: 16px 20px; font-size: 15px; color: var(--text); margin-bottom: 32px; }
.demo-note strong { color: var(--ink); }

/* Yacht picker: shared by both tabs */
.bk-yachts { border: 0; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.bk-yachts legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.bk-yacht { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px 48px; border: 1px solid #c9d2d9; border-radius: 10px; cursor: pointer; background: #fff; min-height: 44px; }
.bk-yacht input { position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.bk-yacht-name { font: 600 19px/1.2 var(--display); }
.bk-yacht-detail { font-size: 14px; color: var(--muted); }
.bk-yacht:hover { border-color: var(--ink); }
.bk-yacht:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bk-yacht:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Tabs */
.bk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.bk-tabs [role="tab"] { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 0 4px; margin-right: 24px; font: 600 16px/52px 'Inter', sans-serif; color: var(--muted); cursor: pointer; }
.bk-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.bk-tabs [role="tab"]:hover { color: var(--ink); }

/* Native booking */
.bk-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.bk-bar .field { flex: 0 1 220px; }
.bk-source { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.bk-source::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.bk-source[data-mode="live"]::before { background: #2e8b57; }

.bk-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 32px; align-items: start; }
@media (max-width: 899px) { .bk-body { grid-template-columns: minmax(0, 1fr); } }

.bk-cal { border: 1px solid var(--line); border-radius: 10px; padding: clamp(14px, 2.4vw, 24px); position: relative; }
.bk-cal-nav { position: absolute; top: clamp(10px, 2vw, 20px); right: clamp(10px, 2vw, 20px); display: flex; gap: 8px; z-index: 1; }
.bk-cal-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 600 20px/1 'Inter', sans-serif; cursor: pointer; }
.bk-cal-nav button:disabled { border-color: var(--line); color: #b8bec4; cursor: default; }
.bk-cal-nav button:not(:disabled):hover { background: var(--ink); color: #fff; }

.bk-months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px; transition: opacity 0.2s; }
.bk-months.is-loading { opacity: 0.45; }
.bk-month-title { font: 600 20px/44px var(--display); margin: 0 0 8px; }
.bk-weekdays, .bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.bk-weekdays span { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 6px; }

.bk-day { position: relative; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 6px; border: 0; background: none; padding: 4px 0; font: 500 15px/1.1 'Inter', sans-serif; color: var(--ink); }
button.bk-day { cursor: pointer; }
.bk-day.is-off { color: #b3bac0; }
.bk-day.is-pad { min-height: 0; }
.bk-num { font-variant-numeric: tabular-nums; }
.bk-hint { font-size: 11px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bk-hint-short { display: none; }
@media (max-width: 479px) { .bk-hint-long { display: none; } .bk-hint-short { display: inline; } }
.bk-day.is-today .bk-num { text-decoration: underline; text-underline-offset: 3px; }

.bk-day.is-start { background: #f6ecd2; color: var(--ink); }
.bk-day.is-start .bk-hint { color: var(--gold-text); }
@media (hover: hover) { button.bk-day.is-start:not(.is-arrival):not(.is-departure):hover { background: #eedcae; } }

/* While choosing a departure, other arrival days recede and departure options stand out */
.bk[data-phase="departure"] .bk-day.is-start:not(.is-arrival):not(.is-end-option) { background: #faf5e8; color: #8a8f94; }
.bk[data-phase="departure"] .bk-day.is-start:not(.is-arrival):not(.is-end-option) .bk-hint { display: none; }
.bk-day.is-end-option { background: var(--blue-tint); box-shadow: inset 0 0 0 2px var(--blue); }
.bk-day.is-end-option .bk-hint { color: #1f5f86; }
@media (hover: hover) { button.bk-day.is-end-option:not(.is-departure):hover { background: #dcedf9; } }

.bk-day.is-range { background: var(--blue-tint); border-radius: 0; }
.bk .bk-day.is-arrival, .bk .bk-day.is-departure { background: var(--ink); color: #fff; }
.bk-day.is-arrival .bk-hint, .bk-day.is-departure .bk-hint { color: #fff; }

.bk-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; font-size: 14px; color: var(--text); }
.bk-legend li { display: inline-flex; align-items: center; gap: 8px; }
.bk-legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.bk-legend .k-start { background: #f6ecd2; }
.bk-legend .k-end { background: var(--blue-tint); box-shadow: inset 0 0 0 2px var(--blue); }
.bk-legend .k-sel { background: var(--ink); }

/* Summary */
.bk-summary { border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; outline: none; }
@media (max-width: 899px) { .bk-summary { position: static; } }
.bk-sum-head { display: flex; flex-direction: column; gap: 2px; }
.bk-sum-kicker { font-size: 14px; color: var(--muted); }
.bk-summary h3 { font: 600 26px/1.15 var(--display); margin: 0; }
.bk-step { font-weight: 600; }
.bk-muted { color: var(--muted); font-size: 14px; }
.bk-dates, .bk-price { margin: 0; display: flex; flex-direction: column; }
.bk-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bk-row dt { color: var(--text); }
.bk-row dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bk-row.is-extra dt, .bk-row.is-extra dd { color: var(--muted); font-weight: 400; }
.bk-row.is-note { font-size: 14px; border-bottom: 0; padding: 4px 0; }
.bk-row.is-note dt, .bk-row.is-note dd { color: var(--muted); font-weight: 400; }
.bk-row.is-total + .bk-row.is-note { margin-top: 6px; }
.bk-row.is-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 14px; }
.bk-row.is-total dt, .bk-row.is-total dd { font: 600 20px/1.2 var(--display); color: var(--ink); }

.bk-options { display: flex; flex-direction: column; gap: 8px; }
.bk-option { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 12px; text-align: left; padding: 12px 16px; border: 1px solid var(--blue); background: var(--blue-tint); border-radius: 8px; font: 500 15px/1.35 'Inter', sans-serif; color: var(--ink); cursor: pointer; }
.bk-option strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 600 18px var(--display); }
.bk-option:hover { border-color: var(--ink); }
.bk-link { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 44px; font: 500 15px 'Inter', sans-serif; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk-link:hover { color: var(--gold-text); }

/* Guest step */
.bk-guest { margin-top: 32px; border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 24px; scroll-margin-top: 100px; }
.bk-guest > .full { grid-column: 1 / -1; }
.bk-guest h3 { font: 600 26px/1.15 var(--display); margin: 0 0 4px; }
.bk-guest input, .bk-guest textarea, .bk-bar select { height: 52px; padding: 0 14px; border: 1px solid #6b6b6b; border-radius: 6px; background: #fff; color: var(--ink); font: 400 16px 'Inter', sans-serif; width: 100%; }
.bk-guest textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.bk-guest-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bk-status { font-size: 15px; color: var(--text); }
.bk-status:not(:empty) { background: var(--blue-tint); border-radius: 6px; padding: 12px 16px; }
.bk.is-guest .bk-body { opacity: 0.55; }

.bk-debug { margin-top: 28px; max-height: 420px; overflow: auto; background: #0f1418; color: #d6e2ea; font: 12px/1.5 ui-monospace, Menlo, monospace; padding: 16px; border-radius: 8px; white-space: pre-wrap; }

/* Plain 123boeken widget: inherits a natural page height, so no footer overlap */
.bk-widget-intro { font-size: 15px; color: var(--text); margin-bottom: 20px; max-width: 46em; }
.boeken-embed { min-height: 200px; }
.boeken-embed:empty::before { content: 'Loading the 123boeken calendar…'; color: var(--muted); font-size: 15px; }
@media (max-width: 767px) {
  .boeken-embed { overflow-x: clip; }
  .boeken-embed *, .boeken-embed *::before, .boeken-embed *::after { box-sizing: border-box; max-width: 100%; }
  .boeken-embed table { table-layout: fixed; width: 100%; }
  .boeken-embed label, .boeken-embed div, .boeken-embed span { white-space: normal; overflow-wrap: anywhere; }
  .boeken-embed img { height: auto; }
}

@media (prefers-reduced-motion: reduce) { .bk-months { transition: none; } }
