/* Calypso Mekong — cabin booking form ([yacht_booking_search]). Colours follow the theme. */
.yb {
    --yb-gold: var(--color-accent, #DD9C00);
    --yb-bg: var(--color-bg-main, #0a1420);
    --yb-surface: var(--color-bg-surface, #152B46);
    --yb-line: rgba(255, 255, 255, 0.12);
    --yb-muted: rgba(255, 255, 255, 0.62);
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) var(--spacing-md, 2rem);
    color: #fff;
    font-family: var(--font-body, 'Inter', sans-serif);
}
.yb *, .yb *::before, .yb *::after { box-sizing: border-box; }
.yb [hidden] { display: none !important; }
.yb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.yb-layout.is-loading .yb-summary-card { opacity: 0.75; }

/* Steps */
.yb-step { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--yb-line); }
.yb-main { counter-reset: yb-step; }
.yb-step:not([hidden]) { counter-increment: yb-step; }
.yb-step-title span::before { content: counter(yb-step); }
.yb-step:last-child { border-bottom: 0; }
.yb-step-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading, serif); font-size: 1.45rem; font-weight: 400; margin: 0 0 18px; color: #fff; }
.yb-step-title span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--yb-gold); color: var(--yb-gold);
    font-family: var(--font-body, sans-serif); font-size: 0.8rem; font-weight: 600;
}
.yb-hint { color: var(--yb-muted); font-size: 0.85rem; line-height: 1.6; margin: 10px 0 0; }

/* Voyage cards */
.yb-trips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yb-trip { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--yb-line); border-radius: 6px; cursor: pointer; transition: border-color .2s, background .2s; }
.yb-trip input, .yb-pill input { position: absolute; opacity: 0; pointer-events: none; }
.yb-trip:hover { border-color: rgba(221, 156, 0, 0.5); }
.yb-trip:has(input:checked) { border-color: var(--yb-gold); background: rgba(221, 156, 0, 0.08); }
.yb-trip:has(input:focus-visible), .yb-pill:has(input:focus-visible) { outline: 2px solid var(--yb-gold); outline-offset: 2px; }
.yb-trip-nights { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-gold); }
.yb-trip-name { font-family: var(--font-heading, serif); font-size: 1.15rem; line-height: 1.25; }
.yb-trip-meta { font-size: 0.78rem; color: var(--yb-muted); }

/* Direction pills */
.yb-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.yb-pill { position: relative; cursor: pointer; }
.yb-pill span { display: inline-block; padding: 12px 20px; border: 1px solid var(--yb-line); border-radius: 40px; font-size: 0.9rem; transition: all .2s; }
.yb-pill input:checked + span { border-color: var(--yb-gold); background: var(--yb-gold); color: var(--yb-bg); font-weight: 600; }

/* Inputs */
.yb input[type="date"], .yb input[type="text"], .yb input[type="email"], .yb input[type="tel"], .yb select, .yb textarea {
    width: 100%; max-width: 100%; padding: 13px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--yb-line);
    border-radius: 4px; color: #fff; font: inherit; font-size: 0.95rem;
}
.yb input[type="date"] { max-width: 280px; color-scheme: dark; }
.yb select { max-width: 280px; }
.yb select option { background: var(--yb-bg); }
.yb input:focus, .yb select:focus, .yb textarea:focus { outline: none; border-color: var(--yb-gold); }

/* Availability */
.yb-status { margin-top: 16px; padding: 16px 18px; border-left: 3px solid var(--yb-gold); background: rgba(255, 255, 255, 0.04); font-size: 0.9rem; line-height: 1.6; }
.yb-status.is-no { border-left-color: #e07a5f; }
.yb-status p { margin: 0; }
.yb-status .yb-sub { margin: 12px 0 8px; color: var(--yb-muted); font-size: 0.82rem; }
.yb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yb-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; background: transparent; border: 1px solid var(--yb-line); border-radius: 4px; color: #fff; font: inherit; font-size: 0.82rem; cursor: pointer; }
.yb-chip small { color: var(--yb-muted); font-size: 0.72rem; }
.yb-chip:hover { border-color: var(--yb-gold); }

/* Scheduled departures + whole-yacht charter */
.yb-charter-ask { margin: 18px 0 0; padding: 14px 16px; border: 1px dashed var(--yb-line); border-radius: 6px; font-size: 0.88rem; line-height: 1.6; color: var(--yb-muted); }
.yb-charter-ask strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.yb-charter-ask a { display: inline-block; margin-top: 4px; color: var(--yb-gold); text-decoration: underline; text-underline-offset: 3px; }
.yb-departures { display: block; }
.yb-dep { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; background: transparent; border: 1px solid var(--yb-line); border-radius: 6px; color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.yb-dep strong { font-weight: 600; font-size: 0.95rem; }
.yb-dep span { font-size: 0.85rem; }
.yb-dep small { color: var(--yb-muted); font-size: 0.76rem; }
.yb-dep:hover { border-color: rgba(221, 156, 0, 0.5); }
.yb-dep.is-active { border-color: var(--yb-gold); background: rgba(221, 156, 0, 0.08); }
.yb-dep:focus-visible { outline: 2px solid var(--yb-gold); outline-offset: 2px; }
.yb-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--yb-line); border-radius: 6px; color: var(--yb-muted); font-size: 0.88rem; line-height: 1.6; }
.yb-charter { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--yb-line); border-radius: 6px; cursor: pointer; }
.yb-charter:has(input:checked) { border-color: var(--yb-gold); background: rgba(221, 156, 0, 0.08); }
.yb-charter input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--yb-gold); }
.yb-charter span { display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; }
.yb-charter small { color: var(--yb-muted); font-size: 0.8rem; }
.yb-date-row + .yb-charter, .yb-departures + .yb-hint + .yb-date-row { margin-top: 14px; }

/* Guests */
.yb-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.yb-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--yb-line); }
.yb-count-label span { display: block; }
.yb-count-label small { display: block; color: var(--yb-muted); font-size: 0.75rem; margin-top: 2px; }
.yb-stepper { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.yb-stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--yb-line); background: transparent; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.yb-stepper button:hover:not(:disabled) { border-color: var(--yb-gold); color: var(--yb-gold); }
.yb-stepper button:disabled { opacity: 0.3; cursor: default; }
.yb-stepper input { width: 38px; padding: 0; background: none; border: 0; color: #fff; text-align: center; font: inherit; font-size: 1rem; -moz-appearance: textfield; }
.yb-stepper input::-webkit-inner-spin-button, .yb-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.yb-language-fixed { margin: 0; color: var(--yb-muted); }

/* Details */
.yb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.yb-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--yb-muted); }
.yb-field-wide { grid-column: 1 / -1; }

/* Summary */
.yb-summary { position: sticky; top: calc(var(--cm-header-h, 72px) + 20px); }
.yb-summary-card { background: var(--yb-surface); border: 1px solid var(--yb-line); border-radius: 6px; padding: 26px; transition: opacity .2s; }
.yb-summary-eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yb-gold); margin: 0 0 6px; }
.yb-summary-title { font-family: var(--font-heading, serif); font-size: 1.35rem; font-weight: 400; margin: 0 0 16px; color: #fff; }
.yb-summary-facts { margin: 0 0 16px; border-top: 1px solid var(--yb-line); }
.yb-summary-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--yb-line); font-size: 0.85rem; }
.yb-summary-facts dt { color: var(--yb-muted); }
.yb-summary-facts dd { margin: 0; text-align: right; }
.yb-lines { margin-bottom: 12px; }
.yb-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.85); }
.yb-line.is-note { color: var(--yb-muted); font-style: italic; }
.yb-total, .yb-pay-now { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--yb-line); }
.yb-total strong { font-family: var(--font-heading, serif); font-size: 1.5rem; font-weight: 400; color: #fff; }
.yb-pay-now strong { font-size: 1.1rem; color: var(--yb-gold); }
.yb-balance { margin: 0 0 16px; color: var(--yb-muted); font-size: 0.8rem; line-height: 1.5; }
.yb-accept { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; line-height: 1.5; color: rgba(255, 255, 255, 0.8); margin-bottom: 16px; cursor: pointer; }
.yb-accept input { margin-top: 3px; accent-color: var(--yb-gold); }
.yb-submit { width: 100%; padding: 15px; border: 1px solid var(--yb-gold); background: var(--yb-gold); color: var(--yb-bg); font: inherit; font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; cursor: pointer; transition: all .2s; }
.yb-submit:hover:not(:disabled) { background: transparent; color: var(--yb-gold); }
.yb-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.yb-submit.is-busy { opacity: 0.7; cursor: progress; }
.yb-message { margin: 12px 0 0; padding: 10px 12px; background: rgba(224, 122, 95, 0.12); border-left: 3px solid #e07a5f; font-size: 0.85rem; }
.yb-notes { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--yb-line); }
.yb-notes li { position: relative; padding-left: 14px; margin-bottom: 8px; font-size: 0.78rem; line-height: 1.6; color: var(--yb-muted); }
.yb-notes li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--yb-gold); }

.yb-retired { text-align: center; padding: 3rem 1rem; }

@media (max-width: 992px) {
    .yb-layout { grid-template-columns: 1fr; }
    .yb-summary { position: static; }
}
@media (max-width: 640px) {
    .yb-trips, .yb-counts, .yb-fields { grid-template-columns: 1fr; }
    .yb input[type="date"], .yb select { max-width: none; }
    .yb-pill { flex: 1 1 100%; }
    .yb-pill span { display: block; text-align: center; }
}

/* Departure picker: a table like the itinerary pages' "Departures & prices", with filters */
.yb-hint-top { margin: -6px 0 16px; }
.yb-dep-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.yb-dep-dirs { display: flex; flex-wrap: wrap; gap: 6px; }
.yb-dep-filter { padding: 8px 14px; border: 1px solid var(--yb-line); border-radius: 40px; background: transparent; color: var(--yb-muted); font: inherit; font-size: 0.82rem; cursor: pointer; transition: all .2s; }
.yb-dep-filter:hover { color: #fff; border-color: rgba(221, 156, 0, 0.5); }
.yb-dep-filter.is-on { background: var(--yb-gold); border-color: var(--yb-gold); color: var(--yb-bg); font-weight: 600; }
.yb .yb-dep-month { width: auto; min-width: 170px; padding: 9px 12px; font-size: 0.85rem; }
.yb-dep-wrap { container-type: inline-size; border: 1px solid var(--yb-line); border-radius: 6px; overflow: hidden; }
.yb-dep-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.yb-dep-table th { padding: 13px 14px; background: rgba(255, 255, 255, 0.05); color: var(--yb-muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.yb-dep-table td { padding: 14px; border-top: 1px solid var(--yb-line); vertical-align: middle; }
.yb-dep-table th:first-child, .yb-dep-table td:first-child { padding-left: 18px; }
.yb-dep-row { cursor: pointer; transition: background .15s; }
.yb-dep-row:hover { background: rgba(221, 156, 0, 0.06); }
.yb-dep-row:focus-visible { outline: 2px solid var(--yb-gold); outline-offset: -2px; }
.yb-dep-row.is-active { background: rgba(221, 156, 0, 0.12); box-shadow: inset 3px 0 0 var(--yb-gold); }
.yb-dep-row.is-full { cursor: default; opacity: 0.55; }
.yb-dep-row.is-full:hover { background: none; }
.yb-dep-first strong { display: block; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.yb-dep-first small { display: block; margin-top: 3px; color: var(--yb-muted); font-size: 0.78rem; }
.yb-dep-table td[data-label="Arrives"], .yb-dep-table td[data-label="Per cabin"] { white-space: nowrap; }
.yb-dep-cab { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.yb-dep-cab i { width: 11px; height: 11px; border-radius: 2px; background: var(--yb-gold); }
.yb-dep-cab i.is-taken { background: rgba(255, 255, 255, 0.18); }
.yb-dep-cab em { margin-left: 5px; font-style: normal; font-size: 0.78rem; color: var(--yb-muted); }
.yb-dep-sold { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #e07a5f; }
.yb-dep-go { text-align: right; padding-right: 18px !important; }
.yb-dep-pick { display: inline-block; padding: 8px 14px; border: 1px solid var(--yb-gold); border-radius: 4px; color: var(--yb-gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.yb-dep-row.is-active .yb-dep-pick { background: var(--yb-gold); color: var(--yb-bg); }
.yb-dep-more { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 1px dashed var(--yb-line); border-radius: 6px; background: transparent; color: var(--yb-gold); font: inherit; font-size: 0.85rem; cursor: pointer; }
.yb-dep-more:hover { border-color: var(--yb-gold); }
.yb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Narrow column → one card per departure */
@container (max-width: 560px) {
    .yb-dep-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .yb-dep-table, .yb-dep-table tbody, .yb-dep-table tr, .yb-dep-table td { display: block; }
    .yb-dep-table tr { padding: 12px 16px; border-top: 1px solid var(--yb-line); }
    .yb-dep-table tr:first-child { border-top: 0; }
    .yb-dep-table td { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0 !important; border: 0; }
    .yb-dep-table td[data-label]::before { content: attr(data-label); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yb-muted); }
    .yb-dep-table td.yb-dep-first { display: block; padding-bottom: 8px !important; }
    .yb-dep-table td.yb-dep-go { padding-top: 10px !important; }
    .yb-dep-table td.yb-dep-go:empty { display: none; }
    .yb-dep-pick { display: block; width: 100%; text-align: center; }
}

/* Choose state: every scheduled departure, full width */
.yb-choose { margin-bottom: 8px; }
.yb-choose-title { font-family: var(--font-heading, serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; color: #fff; margin: 0 0 10px; }
.yb-choose .yb-hint-top { margin: 0 0 20px; max-width: 70ch; }
.yb-choose .yb-dep-tools { justify-content: flex-start; gap: 10px 18px; }
.yb-choose .yb-dep-month { margin-left: auto; }
.yb-dep-it { margin-left: 4px; color: var(--yb-gold); text-decoration: none; }
.yb-dep-it:hover { color: #fff; }
.yb-choose .yb-charter-ask { margin-top: 22px; }

/* Checkout state: the chosen departure */
.yb-dep-card { margin-bottom: 28px; padding: 22px 24px; border: 1px solid rgba(221, 156, 0, 0.45); border-radius: 6px; background: rgba(221, 156, 0, 0.06); }
.yb-dep-card-k { margin: 0 0 4px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yb-gold); }
.yb-dep-card-title { margin: 0 0 16px; font-family: var(--font-heading, serif); font-size: 1.55rem; font-weight: 400; color: #fff; }
.yb-dep-card-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; padding: 16px 0; border-top: 1px solid var(--yb-line); border-bottom: 1px solid var(--yb-line); }
.yb-dep-card-facts span { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yb-muted); margin-bottom: 3px; }
.yb-dep-card-facts b { font-weight: 500; font-size: 0.95rem; color: #fff; }
.yb-dep-card-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 0.85rem; }
.yb-dep-change { padding: 0; border: 0; background: none; color: var(--yb-gold); font: inherit; font-weight: 600; cursor: pointer; }
.yb-dep-change:hover, .yb-dep-card-links a:hover { color: #fff; }
.yb-dep-card-links a { color: var(--yb-muted); text-decoration: underline; text-underline-offset: 3px; }
.yb-main > .yb-status { margin: -12px 0 24px; }
@media (max-width: 640px) {
    .yb-dep-card { padding: 18px; }
    .yb-dep-card-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yb-choose .yb-dep-month { margin-left: 0; }
}
.yb-dep-pick { text-decoration: none; }
