/*
 * components.css — shared component class library.
 *
 * Named design decisions composed from raw tokens. Components consume
 * recipes; themes override recipes. Every rule below reads only from
 * recipe / token custom properties — no literal hex or px decisions
 * belong here.
 */

.eyebrow {
    display: block;
    font-size: 10.5px;
    letter-spacing: var(--type-eyebrow-letter-spacing);
    text-transform: uppercase;
    font-weight: var(--type-eyebrow-weight);
    color: var(--eyebrow-colour);
    margin-bottom: 4px;
}

.eyebrow--muted {
    color: var(--kohsanuk-text-muted);
}

.section-title {
    font-family: var(--type-display-font);
    font-size: 18px;
    font-weight: var(--type-display-weight);
    letter-spacing: var(--type-display-letter-spacing);
    color: var(--kohsanuk-text);
    line-height: 1.3;
    margin: 0;
}

.card {
    background: var(--surface-card);
    border: var(--border-card);
    border-radius: var(--kohsanuk-radius-xl);
    box-shadow: var(--shadow-card);
    transition: border-color var(--ease), box-shadow var(--ease);
}

.card--collapsed {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card--selected,
.card--has-picks {
    background: var(--surface-card-selected);
    background-image: var(--gradient-card-selected);
    border: var(--border-card-selected);
    padding-left: 18px;
    box-shadow: var(--shadow-card-selected);
    position: relative;
}

.card--selected::before,
.card--has-picks::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 14px;
    bottom: 14px;
    width: var(--border-accent-bar-width);
    background: var(--border-accent-bar-colour);
    border-radius: 0 4px 4px 0;
}

.card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--kohsanuk-radius-pill);
    font-size: 10.5px;
    font-weight: var(--type-eyebrow-weight);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pill--paid {
    background: var(--status-paid-bg);
    color: var(--status-paid-text);
}

.pill--unpaid {
    background: var(--status-unpaid-bg);
    color: var(--status-unpaid-text);
}

.pill--hold {
    background: var(--status-hold-bg);
    color: var(--status-hold-text);
}

.pill--neutral {
    background: var(--status-neutral-bg);
    color: var(--status-neutral-text);
}

.pill--selected {
    background: var(--kohsanuk-action);
    color: var(--button-primary-fg);
    padding: 2px 6px;
    font-size: 9.5px;
    letter-spacing: .08em;
    border-radius: 4px;
}

.counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.counter__btn {
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    border-radius: var(--kohsanuk-radius-md);
    border: 1px solid var(--kohsanuk-border-subtle);
    background: var(--kohsanuk-surface);
    color: var(--kohsanuk-text-muted);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.counter__btn--add {
    background: var(--kohsanuk-action);
    border-color: var(--kohsanuk-action);
    color: #fff;
}

.counter__btn--add-outline {
    background: var(--kohsanuk-surface);
    color: var(--kohsanuk-action);
    border-color: var(--kohsanuk-action);
}

.counter__val {
    min-width: 22px;
    text-align: center;
    font-weight: 700;
    color: var(--kohsanuk-text);
    font-size: 14px;
}

.counter__val--has {
    color: var(--kohsanuk-action);
}

.option-row {
    background: var(--surface-field);
    border: 1px solid var(--kohsanuk-border-accent-soft);
    border-radius: var(--kohsanuk-radius-lg);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.option-row--extra {
    border: var(--border-extra-dashed);
}

.refund-bar {
    display: flex;
    height: 6px;
    border-radius: var(--kohsanuk-radius-pill);
    overflow: hidden;
}

.refund-bar__tier--full {
    background: var(--refund-full);
    flex: 1;
}

.refund-bar__tier--half {
    background: var(--refund-half);
    flex: 1;
}

.refund-bar__tier--none {
    background: var(--refund-none);
    flex: 1;
}

.button {
    font-family: var(--type-body-font);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--kohsanuk-radius-md);
    padding: 7px 16px;
    border: 1px solid;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.button--primary {
    background: var(--button-primary-bg);
    color: var(--button-primary-fg);
    border-color: var(--button-primary-bg);
}

.button--primary:hover {
    background: var(--button-primary-bg-hover);
    border-color: var(--button-primary-bg-hover);
    color: var(--button-primary-fg);
}

.button--outline {
    background: transparent;
    color: var(--button-outline-fg);
    border-color: var(--button-outline-border);
}

.button--outline:hover {
    background: var(--button-outline-bg-hover);
    color: var(--button-outline-fg);
    border-color: var(--button-outline-border);
}

/* ─── Theme-aware base ────────────────────────────────────────────────────
   Apply page-bg + text recipes at body level. Uses html body to outrank
   bootstrap-styles.min.css `body` rule, so light themes keep the same
   white-ish bg they had via Bootstrap default while dark themes (Midnight
   Lagoon) actually pick up the dark page colour. */
html body {
    background-color: var(--kohsanuk-bg-page);
    color: var(--kohsanuk-text);
}

/* Common content wrappers used by the public layout (Bootstrap admin
   theme leaves these white via .page-container / .content-wrapper /
   .content). Push the theme surface through them so dark mode doesn't
   leave bright bands across the page. Scoped to non-admin to keep the
   admin console unchanged (admin pages don't load this file anyway). */
.page-container,
.content-wrapper,
.page-content,
.content {
    background-color: transparent;
    color: var(--kohsanuk-text);
}


/* ─── Bootstrap btn-warning theme bridge ──────────────────────────────────
   The compiled Bootstrap theme hardcodes .btn-warning as the brand orange
   (#ff5722). The booking wizard's jquery-steps plugin renders its Next /
   Previous controls as `.btn-warning`, so they were stuck as orange in
   every theme. Re-route the colour through the theme action token so
   they recolour with the theme. */
.btn.btn-warning {
    background-color: var(--kohsanuk-action);
    border-color: var(--kohsanuk-action);
    color: var(--button-primary-fg, #fff);
}
.btn.btn-warning:hover,
.btn.btn-warning:focus,
.btn.btn-warning:active,
.btn.btn-warning.active,
.btn.btn-warning.focus,
.open > .dropdown-toggle.btn-warning {
    background-color: var(--kohsanuk-action-dark);
    border-color: var(--kohsanuk-action-dark);
    color: var(--button-primary-fg, #fff);
}

/* Bootstrap btn-primary is hardcoded to teal #0097a7 in bootstrap-styles —
   the legacy brand colour. Re-route through --kohsanuk-brand so each
   theme swaps it (teal in Classic, theme brand elsewhere). Distinct from
   .btn-warning, which is the booking-orange ACTION. Used by review-sort
   pills and other secondary CTAs. */
.btn.btn-primary {
    background-color: var(--kohsanuk-brand);
    border-color: var(--kohsanuk-brand);
    color: #fff;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active,
.btn.btn-primary.focus,
.open > .dropdown-toggle.btn-primary {
    background-color: var(--kohsanuk-brand);
    border-color: var(--kohsanuk-brand);
    color: #fff;
    filter: brightness(0.88);
}


/* ============================================================================
   DOSSIER — the unified summary-card system.
   Single component used four ways across the booking flow:
     1. Payment page right rail        (Order summary)
     2. Voucher page                   (Trip dossier)
     3. Booking wizard right rail      (Order summary, live-updated by wizard JS)
     4. Tour detail right rail         (3 stacked variants: TOC, Book Now, Specs)
   DRY: one set of rules + token-driven so all 6 themes recolour without forks.

   Variant content lives in the blade templates; this file owns the visual
   contract: cream-50 head with eyebrow + Fraunces title, white body of icon
   rows with brand-coloured icons, cream-50 amount band with Fraunces serial.
   ============================================================================ */
.dossier {
    background: var(--kohsanuk-surface);
    border: 1px solid var(--kohsanuk-rule);
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Public Sans', 'Maven Pro', system-ui, sans-serif;
    color: var(--kohsanuk-text);
}

.dossier__head {
    padding: 22px 26px 18px;
    background: var(--kohsanuk-cream-50);
    border-bottom: 1px solid var(--kohsanuk-rule);
}
.dossier__eyebrow {
    font: 600 10px/1 'Public Sans', sans-serif;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--kohsanuk-brand-dark);
    margin: 0 0 6px;
}
.dossier__title {
    font: 600 19px/1.22 'Fraunces', Georgia, serif;
    margin: 0;
    letter-spacing: -.01em;
    color: var(--kohsanuk-text);
}
.dossier__sub {
    margin: 4px 0 0;
    font: 400 12.5px/1.4 'Public Sans', sans-serif;
    color: var(--kohsanuk-text-soft);
}

.dossier__body {
    margin: 0;
    padding: 18px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dossier__row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 13.5px;
    margin: 0;
    padding: 0;
    border: none;
}
/* jQuery 2.2.4 .show() writes inline `display: block` on the row when the
   wizard reveals previously hidden facts (e.g. tour duration). Snap back
   to flex so icon/label/value stay horizontal. See order-sidebar comment. */
.dossier__row[style*="display: block"],
.dossier__row[style*="display:block"] {
    display: flex !important;
}
.dossier__row .ico {
    flex: 0 0 18px;
    height: 18px;
    color: var(--kohsanuk-brand);
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dossier__row svg.ico,
.dossier__row > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--kohsanuk-brand);
    margin-top: 1px;
}
.dossier__row dt {
    flex: 0 0 92px;
    color: var(--kohsanuk-text-soft);
    font-size: 12.5px;
    margin: 0;
    padding: 0;
}
.dossier__row dd {
    margin: 0;
    padding: 0;
    color: var(--kohsanuk-text);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    /* Wrap at word boundaries (no mid-word breaks). overflow-wrap covers
       the rare unbreakable long token. */
    word-break: normal;
    overflow-wrap: break-word;
}
.dossier__row dd small {
    display: block;
    color: var(--kohsanuk-text-muted);
    font-size: 11.5px;
    font-weight: 400;
    margin-top: 1px;
}
.dossier__row img {
    vertical-align: middle;
    height: 14px;
    width: auto;
    margin-right: 2px;
}

/* "Your selection" panel — dynamic list of picked options across the
   booking-wizard steps. Driven by update_dossier_picks() in summary_info.js
   on every count change so the user sees their cart take shape live, even
   when the underlying card on the wizard page is collapsed (single-expand
   model means only one package per step is open at a time). */
.dossier__picks {
    padding: 14px 26px 18px;
    border-top: 1px solid var(--kohsanuk-rule);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dossier__picks[hidden] { display: none; }
.dossier__picks-eyebrow {
    margin: 0;
    font: 600 10px/1 'Public Sans', sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--kohsanuk-brand-dark);
}
.dossier__picks-group { display: flex; flex-direction: column; gap: 6px; }
.dossier__picks-group[hidden] { display: none; }
.dossier__picks-section {
    margin: 0;
    font: 600 9.5px/1 'Public Sans', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--kohsanuk-text-muted, #8aa0b0);
}
.dossier__picks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dossier__picks-pkg { padding: 0; margin: 0; list-style: none; }
.dossier__picks-pkg-name {
    font: 600 13px/1.3 'Public Sans', sans-serif;
    color: var(--kohsanuk-text);
    margin-bottom: 2px;
}
.dossier__picks-opts {
    list-style: none;
    margin: 0;
    padding: 0 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dossier__picks-opt {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: baseline;
    font: 400 12.5px/1.4 'Public Sans', sans-serif;
    color: var(--kohsanuk-text-soft);
}
.dossier__picks-opt-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dossier__picks-opt-qty {
    font-variant-numeric: tabular-nums;
    color: var(--kohsanuk-text-muted, #8aa0b0);
    font-weight: 600;
}
.dossier__picks-opt-price {
    font-variant-numeric: tabular-nums;
    color: var(--kohsanuk-text);
    font-weight: 600;
    white-space: nowrap;
}

.dossier__status {
    display: flex;
    gap: 8px;
    padding: 14px 26px;
    border-top: 1px solid var(--kohsanuk-rule);
    align-items: center;
    flex-wrap: wrap;
}
.dossier__status .label {
    padding: 4px 10px;
    border-radius: 999px;
    font: 600 10.5px/1.4 'Public Sans', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.dossier__status .label-info { background: #dbeef2; color: var(--kohsanuk-brand-dark); }
.dossier__status .label-default { background: #eef0f2; color: #566876; }
.dossier__status .label-success { background: #d9efde; color: #1f6f3a; }
.dossier__status .label-danger { background: #fadcdc; color: #842029; }
.dossier__status .label-warning { background: #fde9c6; color: #8a5a17; }

.dossier__amount {
    padding: 18px 26px 22px;
    border-top: 1px solid var(--kohsanuk-rule);
    background: var(--kohsanuk-cream-50);
}
.dossier__amount__label {
    display: block;
    font: 600 10px/1.2 'Public Sans', sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--kohsanuk-text-soft);
    margin-bottom: 4px;
    text-align: right;
}
.dossier__amount__value {
    display: block;
    font: 600 28px/1 'Fraunces', Georgia, serif;
    color: var(--kohsanuk-action-dark);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.dossier__amount__hint {
    display: block;
    font: italic 400 12.5px/1.4 'Fraunces', Georgia, serif;
    color: var(--kohsanuk-text-soft);
    text-align: right;
    margin-top: 4px;
}
/* Legacy wizard live-calc table used inside .dossier__amount on the wizard sidebar. */
.dossier__amount table.table { width: 100%; border-collapse: collapse; margin: 0; }
.dossier__amount table.table td {
    padding: 4px 0;
    border: none;
    font-size: 13px;
    color: var(--kohsanuk-text-soft);
}
.dossier__amount table.table td.text-right {
    text-align: right;
    color: var(--kohsanuk-text);
    font-weight: 500;
}
.dossier__amount table.table h4,
.dossier__amount table.table h5,
.dossier__amount table.table h6 { margin: 0; font-weight: 600; }
.dossier__amount table.table h4 {
    font: 600 22px/1 'Fraunces', Georgia, serif;
    color: var(--kohsanuk-action-dark);
}
.dossier__amount table.table .text-warning { color: var(--kohsanuk-action-dark) !important; }
.dossier__amount table.table .text-success { color: #1f6f3a !important; }

/* When a .dossier sits inside the legacy .sidebar-content wrapper (sidebar
   shells used on tour detail + booking wizard), drop the wrapper's white bg
   and padding so the dossier reads as a free-standing card. */
.sidebar.sidebar-opposite.sidebar-default:has(.dossier) { background: transparent !important; border: none !important; }
.sidebar-content:has(.dossier) { padding: 0 !important; }

/* Every dossier consumer (wizard sidebar, payment page, voucher, tour
   detail rail) now uses the single .dossier prefix — the legacy
   .trip-dossier migration bridge has been removed. */


/* ─── DOSSIER VARIANT: TOC (Table of Contents) ───────────────────────────
   Used by the tour detail page right rail. Body becomes a vertical link
   list rather than a row of label/value pairs.
   ──────────────────────────────────────────────────────────────────────── */
.dossier--toc .dossier__body {
    gap: 0;
    padding: 14px 18px;
}
.dossier__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--kohsanuk-text-soft);
    font: 500 13.5px/1.3 'Public Sans', sans-serif;
    transition: background var(--ease), color var(--ease);
}
.dossier__link:hover {
    background: var(--kohsanuk-cream-100);
    color: var(--kohsanuk-brand-dark);
    text-decoration: none;
}
.dossier__link.is-active,
.dossier__link.tour-toc-link-active { /* tour-toc.js scrollspy state */
    background: var(--kohsanuk-brand-tint);
    color: var(--kohsanuk-brand-dark);
    font-weight: 600;
}
.dossier__link svg {
    width: 14px;
    height: 14px;
    color: var(--kohsanuk-brand);
    opacity: .5;
    flex-shrink: 0;
}
.dossier__link:hover svg,
.dossier__link.is-active svg,
.dossier__link.tour-toc-link-active svg { opacity: 1; }


/* ─── DOSSIER VARIANT: Book Now ──────────────────────────────────────────
   Used by the tour detail page right rail. Price + Chat (ghost) + Book Now
   (orange CTA) on a single dossier card.
   ──────────────────────────────────────────────────────────────────────── */
.dossier--book .dossier__price {
    padding: 18px 26px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.dossier--book .dossier__price-val {
    font: 600 28px/1 'Fraunces', Georgia, serif;
    color: var(--kohsanuk-brand-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
.dossier--book .dossier__price-sfx {
    font: 500 13px/1 'Public Sans', sans-serif;
    color: var(--kohsanuk-text-soft);
    margin-left: auto;
}
.dossier--book .dossier__buttons {
    padding: 18px 26px 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: stretch;
}

.btn-dossier-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--kohsanuk-surface);
    border: 1px solid var(--kohsanuk-rule);
    color: var(--kohsanuk-brand-dark);
    font: 600 14px/1 'Public Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease);
}
.btn-dossier-ghost:hover {
    border-color: var(--kohsanuk-brand);
    background: var(--kohsanuk-cream-100);
    color: var(--kohsanuk-brand-dark);
    text-decoration: none;
}
.btn-dossier-ghost i,
.btn-dossier-ghost svg { font-size: 16px; width: 16px; height: 16px; color: var(--kohsanuk-brand); flex-shrink: 0; }

.btn-dossier-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 12px;
    background: var(--kohsanuk-action);
    color: #fff;
    border: none;
    cursor: pointer;
    font: 600 15px/1 'Public Sans', sans-serif;
    letter-spacing: .02em;
    text-decoration: none;
    box-shadow: 0 8px 18px var(--kohsanuk-action-shadow, rgba(253,126,20,.30));
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-dossier-cta:hover {
    background: var(--kohsanuk-action-dark);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.btn-dossier-cta i,
.btn-dossier-cta svg { font-size: 16px; width: 16px; height: 16px; color: #fff; flex-shrink: 0; }


/* ─── DOSSIER stacked-rail layout helper ─────────────────────────────────
   Wrap multiple stacked dossier cards in .dossier-rail for consistent
   spacing + a stagger-in animation. Used on the tour detail right rail.
   ──────────────────────────────────────────────────────────────────────── */
.dossier-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dossier-rail .dossier {
    opacity: 0;
    transform: translateY(8px);
    animation: dossier-rise .55s cubic-bezier(.2,.7,.2,1) forwards;
}
.dossier-rail .dossier:nth-child(1) { animation-delay: .04s; }
.dossier-rail .dossier:nth-child(2) { animation-delay: .12s; }
.dossier-rail .dossier:nth-child(3) { animation-delay: .20s; }
@keyframes dossier-rise {
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .dossier-rail .dossier { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 768px) {
    .dossier { border-radius: 16px; }
    .dossier__head { padding: 18px 20px 14px; }
    .dossier__body { padding: 14px 20px 18px; }
    .dossier__amount { padding: 14px 20px 18px; }
    .dossier__amount__value { font-size: 24px; }
    .dossier--book .dossier__price { padding: 14px 20px 0; }
    .dossier--book .dossier__buttons { padding: 14px 20px 18px; grid-template-columns: 1fr; }
}


/* ─── DOSSIER VARIANT: Unified TOC + Summary tabs with shared footer ─────
   Used by the tour detail right rail to show ON THIS PAGE links and
   SUMMARY specs as switchable tabs inside ONE card, with a permanent
   Price + Book Now footer below.
   ──────────────────────────────────────────────────────────────────────── */
.dossier--unified .dossier__head--tabs {
    /* Override the default head: keep the cream-50 background, but lay
       the tab buttons out as a horizontal pair. Bottom rule comes from
       the parent rule already. */
    display: flex;
    gap: 6px;
    padding: 10px 12px;
}
.dossier__tab {
    flex: 1 1 0;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font: 600 11px/1 'Public Sans', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--kohsanuk-text-soft);
    cursor: pointer;
    transition: color var(--ease), background var(--ease), box-shadow var(--ease);
}
.dossier__tab:hover { color: var(--kohsanuk-text); }
.dossier__tab.is-active {
    color: var(--kohsanuk-brand-dark);
    background: var(--kohsanuk-surface);
    box-shadow: 0 2px 6px rgba(15, 30, 45, .08);
}

.dossier__panes {
    background: var(--kohsanuk-surface);
}
.dossier__pane { display: none; }
.dossier__pane.is-active { display: flex; }   /* .dossier__body sets `flex-direction: column` */
/* The summary pane is a <dl> with flex column already from .dossier__body;
   no extra rule needed. */

.dossier__footer {
    border-top: 1px solid var(--kohsanuk-rule);
    background: var(--kohsanuk-cream-50);
    padding: 18px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dossier__footer-eyebrow {
    font: 600 10px/1 'Public Sans', sans-serif;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--kohsanuk-brand-dark);
    margin: 0 0 4px;
}
/* Reuse the existing .dossier--book price + buttons styling inside the
   unified card's footer. Scope rules so the spacing fits the smaller
   footer container (no extra horizontal padding — the footer owns it). */
.dossier--unified .dossier__footer .dossier__price {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.dossier--unified .dossier__footer .dossier__price-val {
    /* 22px so the typical "25,000 - 70,000 THB" range fits a single line
       inside the 360px sidebar without wrapping the currency suffix. */
    font: 600 22px/1.1 'Fraunces', Georgia, serif;
    color: var(--kohsanuk-brand-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    white-space: nowrap;
}
/* Very narrow rails — allow wrapping so we don't overflow. */
@media (max-width: 380px) {
    .dossier--unified .dossier__footer .dossier__price-val {
        font-size: 20px;
        white-space: normal;
    }
}
.dossier--unified .dossier__footer .dossier__buttons {
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: stretch;
}

/* ─── Spacing above the rail so it doesn't kiss the trust-signals strip
   that sits right above. The legacy .sidebar-content / .sidebar-fixed
   structure gave us no breathing room. */
.dossier-rail--unified {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .dossier--unified .dossier__head--tabs { padding: 8px 10px; }
    .dossier__tab { padding: 9px 10px; letter-spacing: .14em; }
    .dossier__footer { padding: 14px 20px 18px; }
    .dossier--unified .dossier__footer .dossier__buttons { grid-template-columns: 1fr; }
}

/* ═══ Unified site navbar (parts/site-navbar.blade.php) ═══════════════════
   One navbar for every page family — public pages, booking flow and the
   admin console. Framework-free (no Bootstrap 3/4 dependency) so the same
   include works on both legacy stacks. All colours come from the
   --kohsanuk-* tokens, so each site theme retints it automatically.

   --ks-nav-h is declared at :root because page chrome OUTSIDE the navbar
   (layouts/app content padding, tour-page sticky sidebar offsets) aligns
   to the bar height too. */
:root { --ks-nav-h: 64px; }
@media (max-width: 991.98px) { :root { --ks-nav-h: 56px; } }

.ks-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    height: var(--ks-nav-h);
    background: var(--kohsanuk-surface);
    box-shadow: 0 1px 0 var(--kohsanuk-rule), 0 4px 16px rgba(18, 41, 57, 0.05);
    transition: background .25s ease, box-shadow .25s ease;
    font-family: var(--kohsanuk-font-sans);
}
.ks-nav *, .ks-nav *::before, .ks-nav *::after { box-sizing: border-box; }
.ks-nav [hidden] { display: none !important; }
.ks-nav__inner {
    max-width: 1400px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; gap: 8px;
    padding: 0 24px;
}

/* ─── Wordmark ── */
.ks-nav__brand {
    display: flex; flex-direction: column; justify-content: center;
    text-decoration: none; margin-right: 28px; line-height: 1.05;
}
.ks-nav__brand:hover, .ks-nav__brand:focus { text-decoration: none; }
.ks-nav__brand-name {
    font-family: var(--kohsanuk-font-serif);
    font-size: 23px; font-weight: 700; letter-spacing: .01em;
    color: var(--kohsanuk-text); white-space: nowrap;
}
.ks-nav__brand-name em { font-style: normal; color: var(--kohsanuk-brand); }
.ks-nav__brand-tag {
    font-size: 9.5px; font-weight: 600; letter-spacing: .24em;
    text-transform: uppercase; color: var(--kohsanuk-text-muted);
    margin-top: 3px; white-space: nowrap;
}

/* ─── Primary links (desktop) ── */
.ks-nav__links { display: flex; align-items: center; gap: 2px; height: 100%; }
.ks-nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.ks-nav__utils .ks-nav__item { height: auto; }
.ks-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 5px;
    height: 100%; padding: 0 14px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    color: var(--kohsanuk-text-soft); text-decoration: none;
    transition: color .15s ease;
    background: none; border: 0; cursor: pointer; font-family: inherit;
}
.ks-nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px;
    height: 2px; background: var(--kohsanuk-brand);
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.ks-nav__link:hover, .ks-nav__link:focus,
.ks-nav__link[aria-expanded="true"], .ks-nav__link.is-active {
    color: var(--kohsanuk-brand); text-decoration: none;
}
.ks-nav__link:hover::after, .ks-nav__link.is-active::after { transform: scaleX(1); }
.ks-nav__caret {
    width: 8px; height: 8px; flex: none;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.ks-nav__link[aria-expanded="true"] .ks-nav__caret,
.ks-nav__pill[aria-expanded="true"] .ks-nav__caret { transform: rotate(225deg) translateY(-1px); }

/* ─── Utility cluster (desktop right side) ── */
.ks-nav__utils { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ks-nav__divider { width: 1px; height: 22px; background: var(--kohsanuk-rule); margin: 0 10px; flex: none; }
.ks-nav__icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; flex: none;
    color: var(--kohsanuk-text-soft); text-decoration: none;
    font-size: 16px; line-height: 1;
    transition: background .15s ease, color .15s ease;
    background: none; border: 0; cursor: pointer; padding: 0;
}
.ks-nav__icon-btn:hover, .ks-nav__icon-btn:focus {
    background: var(--kohsanuk-brand-tint); color: var(--kohsanuk-brand); text-decoration: none;
}
.ks-nav__icon-btn--wa { color: #25D366; }
.ks-nav__icon-btn--wa:hover, .ks-nav__icon-btn--wa:focus { background: rgba(37, 211, 102, .12); color: #25D366; }
.ks-nav__pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: var(--kohsanuk-radius-pill);
    font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
    color: var(--kohsanuk-text-soft);
    background: none; border: 0; cursor: pointer; font-family: inherit;
    transition: background .15s ease, color .15s ease;
}
.ks-nav__pill:hover, .ks-nav__pill:focus, .ks-nav__pill[aria-expanded="true"] {
    background: var(--kohsanuk-brand-tint); color: var(--kohsanuk-brand);
}
.ks-nav__avatar {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: var(--kohsanuk-brand); color: #fff; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; font-style: normal;
}
.ks-nav__avatar--sm { width: 28px; height: 28px; font-size: 12px; }
.ks-nav__avatar--lg { width: 38px; height: 38px; font-size: 15px; }
.ks-nav__login {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: var(--kohsanuk-radius-pill);
    font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    color: var(--kohsanuk-brand); text-decoration: none; white-space: nowrap;
    border: 1.5px solid var(--kohsanuk-brand-soft);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ks-nav__login:hover, .ks-nav__login:focus {
    background: var(--kohsanuk-brand); color: #fff; border-color: var(--kohsanuk-brand);
    text-decoration: none;
}

/* ─── Dropdown cards ── */
.ks-dd {
    position: absolute; top: calc(100% - 8px); left: 0; min-width: 230px;
    background: var(--kohsanuk-surface); border-radius: var(--kohsanuk-radius-xl);
    box-shadow: var(--kohsanuk-shadow-popup);
    border: 1px solid var(--kohsanuk-border-subtle);
    padding: 8px; z-index: 1031;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.ks-nav__utils .ks-dd { top: calc(100% + 10px); }
.ks-dd--right { left: auto; right: 0; }
.ks-dd--scroll { max-height: 380px; overflow-y: auto; min-width: 260px; }
.ks-dd.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.ks-dd__label {
    padding: 8px 12px 6px;
    font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--kohsanuk-text-muted);
}
.ks-dd__item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border-radius: var(--kohsanuk-radius-lg);
    font-size: 14px; color: var(--kohsanuk-text); text-decoration: none;
    transition: background .12s ease, color .12s ease;
}
.ks-dd__item:hover, .ks-dd__item:focus { background: var(--kohsanuk-brand); color: #fff; text-decoration: none; }
.ks-dd__item:hover .ks-nav-muted, .ks-dd__item:focus .ks-nav-muted { color: rgba(255, 255, 255, .75); }
.ks-dd__item.is-current { color: var(--kohsanuk-brand); font-weight: 600; }
.ks-dd__item.is-current::after { content: "\2713"; }
.ks-dd__item.is-current:hover, .ks-dd__item.is-current:focus {
    background: var(--kohsanuk-brand-tint); color: var(--kohsanuk-brand);
}
.ks-nav-muted { color: var(--kohsanuk-text-muted); font-size: 12.5px; }

/* ─── Flags (positions; sprite URL set inline in the blade) ── */
.ks-flag {
    display: inline-block; width: 16px; height: 11px; flex: none;
    background-repeat: no-repeat; margin-right: 7px; vertical-align: -1px;
}
.ks-flag--cn, .ks-flag--zh-CN { background-position: 0 0; }
.ks-flag--de { background-position: -16px 0; }
.ks-flag--en { background-position: -32px 0; }
.ks-flag--fr { background-position: -48px 0; }
.ks-flag--ru { background-position: -64px 0; }
.ks-flag--th { background-position: -80px 0; }
.ks-flag--ja { background-position: -96px 0; }
.ks-flag--ko { background-position: -112px 0; }

/* ─── Hero (homepage) — transparent until scrolled, desktop only ── */
@media (min-width: 992px) {
    .ks-nav--hero.is-clear {
        background: linear-gradient(rgba(10, 30, 42, .45), rgba(10, 30, 42, 0));
        box-shadow: none;
    }
    .ks-nav--hero.is-clear .ks-nav__brand-name,
    .ks-nav--hero.is-clear .ks-nav__brand-name em { color: #fff; }
    .ks-nav--hero.is-clear .ks-nav__brand-tag { color: rgba(255, 255, 255, .75); }
    .ks-nav--hero.is-clear .ks-nav__link { color: rgba(255, 255, 255, .92); }
    .ks-nav--hero.is-clear .ks-nav__link::after { background: #fff; }
    .ks-nav--hero.is-clear .ks-nav__link:hover,
    .ks-nav--hero.is-clear .ks-nav__link[aria-expanded="true"],
    .ks-nav--hero.is-clear .ks-nav__link.is-active { color: #fff; }
    .ks-nav--hero.is-clear .ks-nav__pill { color: rgba(255, 255, 255, .92); }
    .ks-nav--hero.is-clear .ks-nav__pill:hover,
    .ks-nav--hero.is-clear .ks-nav__pill[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
    .ks-nav--hero.is-clear .ks-nav__icon-btn { color: rgba(255, 255, 255, .92); }
    .ks-nav--hero.is-clear .ks-nav__icon-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
    .ks-nav--hero.is-clear .ks-nav__icon-btn--wa { color: #fff; }
    .ks-nav--hero.is-clear .ks-nav__divider { background: rgba(255, 255, 255, .3); }
    .ks-nav--hero.is-clear .ks-nav__login { color: #fff; border-color: rgba(255, 255, 255, .55); }
    .ks-nav--hero.is-clear .ks-nav__login:hover { background: #fff; color: var(--kohsanuk-text); border-color: #fff; }
}

/* ─── Console (admin) — dark variant ── */
.ks-nav--console { background: #263238; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.ks-nav--console .ks-nav__brand-name,
.ks-nav--console .ks-nav__brand-name em { color: #fff; }
.ks-nav--console .ks-nav__brand-tag { color: rgba(255, 255, 255, .6); }
.ks-nav--console .ks-nav__pill { color: rgba(255, 255, 255, .85); }
.ks-nav--console .ks-nav__pill:hover,
.ks-nav--console .ks-nav__pill[aria-expanded="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.ks-nav--console .ks-nav__divider { background: rgba(255, 255, 255, .2); }
.ks-nav--console .ks-nav__burger { color: #fff; }

/* ─── Mobile bar ── */
.ks-nav__burger { display: none; }
.ks-nav__m-utils { display: none; }
@media (max-width: 991.98px) {
    .ks-nav__inner { padding: 0 6px 0 4px; }
    .ks-nav__links, .ks-nav__utils { display: none; }
    .ks-nav__brand { margin-right: 0; }
    .ks-nav__brand-name { font-size: 20px; }
    .ks-nav__brand-tag { display: none; }
    .ks-nav__burger {
        display: inline-flex; align-items: center; justify-content: center;
        width: 48px; height: 48px; flex: none;
        background: none; border: 0; cursor: pointer; padding: 0;
        color: var(--kohsanuk-text); font-size: 20px;
    }
    .ks-nav__m-utils { display: flex; align-items: center; margin-left: auto; }
    .ks-nav__m-utils .ks-nav__icon-btn { width: 44px; height: 44px; font-size: 17px; }
}

/* ─── Mobile drawer ── */
.ks-scrim {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040;
    background: rgba(13, 32, 44, .5);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.ks-scrim.is-open { opacity: 1; visibility: visible; }
.ks-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1050;
    width: min(86vw, 340px);
    background: var(--kohsanuk-surface);
    display: flex; flex-direction: column;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.32, .72, .28, 1);
    box-shadow: 12px 0 40px rgba(13, 32, 44, .18);
    font-family: var(--kohsanuk-font-sans);
}
.ks-drawer *, .ks-drawer *::before, .ks-drawer *::after { box-sizing: border-box; }
.ks-drawer.is-open { transform: translateX(0); }
body.ks-drawer-locked { overflow: hidden; }
.ks-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 8px 8px 20px; flex: none;
    border-bottom: 1px solid var(--kohsanuk-border-subtle);
}
.ks-nav__brand-name--drawer { font-size: 19px; }
.ks-drawer__close {
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
    color: var(--kohsanuk-text-soft); font-size: 24px; line-height: 1; padding: 0;
}
.ks-drawer__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }

.ks-drawer__user {
    display: flex; align-items: center; gap: 12px;
    width: 100%; text-align: left; font-family: inherit; cursor: pointer;
    padding: 14px 20px; background: var(--kohsanuk-cream-50);
    border: 0; border-bottom: 1px solid var(--kohsanuk-border-subtle);
}
.ks-drawer__user-text { flex: 1; min-width: 0; }
.ks-drawer__user-name { display: block; font-weight: 700; font-size: 15px; color: var(--kohsanuk-text); }
.ks-drawer__user-hint { display: block; font-size: 12px; color: var(--kohsanuk-text-muted); margin-top: 1px; }

.ks-drawer__section-label {
    padding: 18px 20px 6px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--kohsanuk-text-muted);
}
.ks-drawer__item {
    display: flex; align-items: center; gap: 13px;
    min-height: 48px; padding: 0 20px;
    font-size: 15px; color: var(--kohsanuk-text); text-decoration: none;
    background: none; border: 0; width: 100%; cursor: pointer;
    font-family: inherit; text-align: left;
}
.ks-drawer__item:hover, .ks-drawer__item:focus { color: var(--kohsanuk-text); text-decoration: none; }
.ks-drawer__item:active { background: var(--kohsanuk-brand-tint); }
.ks-drawer__item.is-active {
    color: var(--kohsanuk-brand); font-weight: 600;
    box-shadow: inset 3px 0 0 var(--kohsanuk-brand);
}
.ks-drawer__ico { width: 20px; text-align: center; color: var(--kohsanuk-text-muted); font-size: 15px; flex: none; }
.ks-drawer__chev {
    margin-left: auto; width: 8px; height: 8px; flex: none;
    border-right: 1.5px solid var(--kohsanuk-text-muted); border-bottom: 1.5px solid var(--kohsanuk-text-muted);
    transform: rotate(45deg); transition: transform .2s ease;
}
[aria-expanded="true"] > .ks-drawer__chev,
[aria-expanded="true"] > .ks-drawer__value > .ks-drawer__chev { transform: rotate(225deg); }
.ks-drawer__value {
    margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--kohsanuk-brand);
    display: flex; align-items: center; gap: 8px;
}
.ks-acc { max-height: 0; overflow: hidden; transition: max-height .25s ease; background: var(--kohsanuk-cream-50); }
.ks-acc.is-open { max-height: 480px; }
.ks-acc--scroll.is-open { overflow-y: auto; }
.ks-acc .ks-drawer__item {
    padding-left: 53px; font-size: 14.5px; min-height: 44px;
    color: var(--kohsanuk-text-soft); justify-content: space-between;
}
.ks-acc .ks-drawer__item.is-current { color: var(--kohsanuk-brand); font-weight: 600; }
.ks-acc .ks-drawer__item.is-current::after { content: "\2713"; }
.ks-acc .ks-drawer__sub-label {
    padding: 10px 20px 4px 53px;
    font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--kohsanuk-text-muted);
}
.ks-drawer__rule { height: 1px; background: var(--kohsanuk-border-subtle); margin: 10px 0 0; }
.ks-drawer__foot {
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); flex: none;
    border-top: 1px solid var(--kohsanuk-border-subtle);
}
.ks-drawer__wa {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; border-radius: var(--kohsanuk-radius-pill);
    background: #25D366; color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 700;
}
.ks-drawer__wa:hover, .ks-drawer__wa:focus { color: #fff; text-decoration: none; background: #1fb959; }
.ks-drawer__wa .fa { font-size: 18px; }
.ks-drawer__login-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; border-radius: var(--kohsanuk-radius-pill); margin: 16px 20px 4px;
    background: var(--kohsanuk-brand); color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 700;
}
.ks-drawer__login-cta:hover, .ks-drawer__login-cta:focus {
    color: #fff; text-decoration: none; background: var(--kohsanuk-brand-dark);
}
