/*
 * Tour content typography + section styling (Phase 2 of tour-page redesign).
 *
 * Goals (per the redesign plan):
 *   - Tighter typographic hierarchy (smaller h2/h3, heavier bold)
 *   - Better body line-height + readable measure
 *   - Generous rhythm between sections, tight rhythm within
 *   - Scroll-margin so anchored sections clear any sticky header
 *
 * Loaded on /tours/* and /boats/* detail pages only — not on listing pages.
 */

/* ─── Theme tokens (Phase 2) ────────────────────────────────────────────
   Single source of truth for the warm-editorial palette + surface
   primitives. Tokens prefixed --tc- (tour-content) so they don't collide
   with any global custom properties further down the stack.

   Coverage as of this PR — tokens are used by:
     .tour-specs-grid, .tour-feature-disc,
     .tour-package-tabs, the Itinerary list-feed overrides, and the
     Phase 2 additions to .tour-prices (card chrome).

   Earlier Phase 1 rules (`.tour-prices` body, `.tour-currency-switch`,
   `.tour-price-list`, `.tour-price-extras`) still hard-code hex
   values. Migrating them is a separate follow-up sweep — kept
   non-blocking here to keep the PR diff scoped to picked-variant
   visuals, not a palette refactor. */
/* ─── Section rhythm + anchors ─────────────────────────────────────────── */
.tour-section {
    margin: 32px 0;
    scroll-margin-top: 80px;
}
.tour-section:first-child { margin-top: 0; }
.tour-section:last-child { margin-bottom: 0; }
/* When a tour-section is itself a Bootstrap column (Itinerary + Included
   render as side-by-side col-md-6 inside a .row), drop the vertical margin
   so both columns top-align regardless of which one is the row's
   :first-child. Without this, the second column ends up ~32px lower than
   the first. */
[class*="col-"].tour-section { margin-top: 0; margin-bottom: 0; }
.tour-section-heading {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--kohsanuk-text);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

/* ─── Body typography refresh ──────────────────────────────────────────── */
.tour-section p,
.tour-section li,
.tour-summary-lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--kohsanuk-text);
}
.tour-section strong { font-weight: 700; }
.tour-section em { font-style: italic; }

/* ─── Hero summary (editorial lead) ────────────────────────────────────
   A confident pitch that sits between the page title and the long
   description. Treated as a magazine pull-quote with a warm vertical
   accent rule, a subtle cream background, and a slightly bolder first
   line so the reader catches the hook before the prose begins. */
.tour-section-summary {
    margin: 16px 0 32px;
    padding: 20px 26px;
    background: linear-gradient(180deg, var(--kohsanuk-cream-100) 0%, var(--kohsanuk-cream-50) 100%);
    border-left: 3px solid var(--kohsanuk-brand);
    border-radius: 0 6px 6px 0;
    box-shadow: inset 0 0 0 1px var(--kohsanuk-brand-tint);
    position: relative;
}
.tour-section-summary::before {
    content: "\201C"; /* opening quote */
    position: absolute;
    top: 6px;
    left: 10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 44px;
    line-height: 1;
    color: var(--kohsanuk-brand-soft);
    pointer-events: none;
}
.tour-summary-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--kohsanuk-text);
    font-weight: 450;
    margin: 0;
    letter-spacing: -0.003em;
}
.tour-summary-lead::first-line {
    font-weight: 600;
}

/* ─── Highlights (compact tag pills, both desktop sidebar + mobile inline) ──
   Each highlight is a small chip that flows inline; the whole list wraps like
   a tag cloud. No icons — the chip itself is the affordance. The block sits
   below the booking widgets on desktop (last sidebar item) and below the
   Overview on mobile. */
.tour-section-highlights {
    margin: 14px 0 0 0;
}
.tour-section-highlights .tour-section-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kohsanuk-text-muted);
    margin: 0 0 10px 0;
}
.tour-highlights-list {
    margin: 0;
    padding: 0;
    list-style: none;
    /* Plain block so each <li> flows inline (the sidebar-default Bootstrap
       theme overrides flex-basis on <li>s nested in .sidebar — using inline-block
       on the children avoids the override entirely). */
    font-size: 0; /* eat the inter-element whitespace gaps between inline-blocks */
}
.tour-highlights-list li {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
    vertical-align: middle;
    margin: 0 3px 4px 0;
    padding: 4px 11px;
    background: var(--kohsanuk-cream-200);
    border-radius: 100px;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--kohsanuk-text-soft);
    font-weight: 500;
    transition: background 0.18s ease;
    opacity: 0;
    transform: translateY(4px);
    animation: tour-highlight-in 380ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.tour-highlights-list li:nth-child(1) { animation-delay: 40ms; }
.tour-highlights-list li:nth-child(2) { animation-delay: 80ms; }
.tour-highlights-list li:nth-child(3) { animation-delay: 120ms; }
.tour-highlights-list li:nth-child(4) { animation-delay: 160ms; }
.tour-highlights-list li:nth-child(5) { animation-delay: 200ms; }
.tour-highlights-list li:nth-child(6) { animation-delay: 240ms; }
@keyframes tour-highlight-in {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .tour-highlights-list li {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
.tour-highlights-list li:hover {
    background: var(--kohsanuk-cream-200);
    border-color: var(--kohsanuk-cream-300);
}
/* The chip is text-only — the sprite icon coming from _highlights.blade.php is
   visually redundant in pill form, so hide it. */
.tour-highlights-list .tour-highlight-icon { display: none; }

/* ─── Overview (description) ───────────────────────────────────────────── */
.tour-section-overview .details-row { padding: 0; }

/* ─── Menu (editorial "tasting menu" treatment) ────────────────────────
   Replaces the gray-card bulleted list with a typographic block: serif
   italic category titles flanked by short rules, items flowing inline as
   middot-separated text. Reads like a printed menu, not a feature list.
   Section heading stays LEFT-aligned to match the other section headings;
   the menu body itself contains the centred tasting-menu vocabulary. */
.tour-section-menu .tour-section-heading::after {
    /* Override the section-heading underline rule — the menu has its own
       decorative ornaments per category. */
    display: none;
}
.tour-menu-body {
    background: var(--kohsanuk-cream-50);
    border: 1px solid var(--kohsanuk-cream-300);
    border-radius: 4px;
    padding: 28px 24px 24px;
}
.tour-menu-category-block {
    text-align: center;
    margin: 0 auto 28px;
    max-width: 720px;
}
.tour-menu-category-block:last-child {
    margin-bottom: 0;
}
.tour-menu-category {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    color: var(--kohsanuk-brand);
    text-transform: none;
    letter-spacing: 0.01em;
    margin: 0 0 10px;
    position: relative;
    display: inline-block;
    padding: 0 32px;
}
.tour-menu-category::before,
.tour-menu-category::after {
    content: "";
    position: absolute;
    top: 55%;
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--kohsanuk-brand-soft) 100%);
}
.tour-menu-category::before {
    left: 0;
    transform: scaleX(-1);
}
.tour-menu-category::after {
    right: 0;
}
.tour-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15.5px;
    color: var(--kohsanuk-text);
    line-height: 1.8;
    column-count: auto;
    column-width: auto;
}
.tour-menu-items li {
    display: inline;
    padding: 0;
}
.tour-menu-items li::after {
    content: " \00b7 ";  /* middle dot with surrounding spaces */
    color: var(--kohsanuk-brand-soft);
    font-weight: 700;
    margin: 0 2px;
}
.tour-menu-items li:last-child::after {
    content: "";
}

@media (max-width: 767px) {
    /* Mobile: items still inline + middot-separated, but left-aligned so the
       reading width is narrower and the dots are easier to track on small
       screens. Category title stays centred. */
    .tour-menu-body { padding: 22px 18px 18px; }
    .tour-menu-category { font-size: 16px; padding: 0 26px; }
    .tour-menu-items { font-size: 14.5px; line-height: 1.75; }
    .tour-menu-category-block { text-align: center; }
    .tour-menu-items {
        display: block;
        text-align: left;
        margin-top: 4px;
    }
}

/* ─── Menu collapse (content-aware show-more) ──────────────────────────
   Engaged only when the blade marks the menu as "big" (>3 categories or
   >10 items). Re-uses the showMoreClick/showLessClick helpers from
   page-details.js + the .details-container / .details-height base styles
   in my.css. The overrides below specialise the look for the tasting-menu
   aesthetic — taller clamp, parchment-coloured fade, italic bronze toggle. */
.tour-section-menu .tour-menu-collapsible {
    /* Reset the section-heading sibling spacing so the toggle sits inside
       the parchment card. The base .details-container has no extra margin
       so this is mostly documentary. */
    margin-top: 0;
}
.tour-section-menu .details-container .details-content.details-height {
    /* Default base is 154px which cuts mid-category. 280px lands cleanly
       just after the second category on the cooking-classes tour. */
    max-height: 280px !important;
}
.tour-section-menu .details-container .details-content.details-height::after {
    /* The base rule uses url('.../white_gradient.png') which clashes with the
       cream parchment background. Override with a transparent → parchment
       linear-gradient so the cutoff dissolves into the card colour. */
    background: linear-gradient(180deg,
                                transparent 0%,
                                var(--kohsanuk-cream-50) 90%) !important;
    height: 80px !important;
    pointer-events: none;
}

/* Bronze italic toggle — echoes the category title typography */
.tour-section-menu .tour-menu-toggle {
    text-align: center;
    margin-top: 18px;
    padding: 12px 16px 4px;
    border-top: 1px solid var(--kohsanuk-cream-300);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--kohsanuk-brand);
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.18s ease;
}
.tour-section-menu .tour-menu-toggle:hover {
    color: var(--kohsanuk-brand);
    filter: brightness(0.85);
}
.tour-section-menu .tour-menu-toggle i {
    margin-left: 6px;
    font-size: 11px;
    vertical-align: middle;
    transition: transform 0.18s ease;
    color: inherit;
}
.tour-section-menu .details-more.tour-menu-toggle:hover i {
    transform: translateY(2px);
}
.tour-section-menu .details-less.tour-menu-toggle:hover i {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .tour-section-menu .details-container .details-content.details-height {
        max-height: 220px !important;
    }
}

/* ─── What to bring (horizontal icon grid) ─────────────────────────────
   Switched from vertical text-list to a grid of icon-above-label tiles.
   Auto-fit fills the row with as many ~84px tiles as the container will
   take. Mobile drops the tile/icon/font another notch. */
.tour-what-to-bring-list {
    margin: 0;
    padding: 0;
    display: grid;
    /* Cap tile max-width so a row with only a few items doesn't stretch them
       into wide rectangles with tiny centred icons. Tracks centre within the
       container so short rows aren't left-aligned. */
    grid-template-columns: repeat(auto-fit, minmax(84px, 120px));
    gap: 8px;
    justify-content: center;
    list-style: none;
}
/* Specificity bumped to (0,2,1) so font-size beats the later mobile rule
   `.tour-section li { font-size: 15px }` lower in the file. */
.tour-section .tour-what-to-bring-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 4px 6px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    color: var(--kohsanuk-text);
    font-weight: 500;
    background: var(--kohsanuk-bg-page);
    border: 1px solid var(--kohsanuk-rule);
    border-radius: 8px;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.tour-what-to-bring-list li:hover {
    border-color: var(--kohsanuk-brand-soft);
    transform: translateY(-1px);
}
.tour-what-to-bring-list .wtb-text {
    flex: 0 0 auto;
    padding: 0;
}
.wtb-tile-icon {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    flex-shrink: 0;
    /* Slight contrast lift so the line-art icons read on the off-white tile */
    opacity: 0.92;
}
.tour-what-to-bring-list li:hover .wtb-tile-icon { opacity: 1; }

@media (max-width: 767px) {
    .tour-what-to-bring-list {
        grid-template-columns: repeat(auto-fit, minmax(68px, 96px));
        gap: 6px;
    }
    .tour-section .tour-what-to-bring-list li {
        padding: 6px 3px 5px;
        font-size: 11px;
    }
    .wtb-tile-icon {
        width: 24px;
        height: 24px;
    }
}

/* ─── Overview show-more/less — give the toggle some breathing room so it
   doesn't butt up against the next section's heading. */
.tour-section-overview .details-row {
    padding-bottom: 4px;
}
.tour-section-overview .details-more,
.tour-section-overview .details-less {
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Sprite-based icon cells. 4 cols × 6 rows of 24px cells = 96 × 144px sprite.
   Slug order matches WhatToBringIconResolver::SLUGS. */
.wtb-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: 96px 144px;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url('/images/what-to-bring-sprite.png');
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .wtb-icon { background-image: url('/images/what-to-bring-sprite@2x.png'); }
}

/* Per-slug positions — same order as WhatToBringIconResolver::SLUGS. */
.wtb-icon-swimwear          { background-position:    0   0; }
.wtb-icon-towel             { background-position: -24px  0; }
.wtb-icon-sunscreen         { background-position: -48px  0; }
.wtb-icon-hat               { background-position: -72px  0; }
.wtb-icon-sunglasses        { background-position:    0 -24px; }
.wtb-icon-camera            { background-position: -24px -24px; }
.wtb-icon-waterproof_camera { background-position: -48px -24px; }
.wtb-icon-waterproof_bag    { background-position: -72px -24px; }
.wtb-icon-water_bottle      { background-position:    0 -48px; }
.wtb-icon-walking_shoes     { background-position: -24px -48px; }
.wtb-icon-water_shoes       { background-position: -48px -48px; }
.wtb-icon-snorkel_gear      { background-position: -72px -48px; }
.wtb-icon-insect_repellent  { background-position:    0 -72px; }
.wtb-icon-change_clothes    { background-position: -24px -72px; }
.wtb-icon-light_jacket      { background-position: -48px -72px; }
.wtb-icon-toiletries        { background-position: -72px -72px; }
.wtb-icon-cash              { background-position:    0 -96px; }
.wtb-icon-medication        { background-position: -24px -96px; }
.wtb-icon-passport          { background-position: -48px -96px; }
.wtb-icon-phone             { background-position: -72px -96px; }
.wtb-icon-backpack          { background-position:    0 -120px; }
.wtb-icon-default           { background-position: -24px -120px; }

.wtb-text { flex: 1; }

/* ─── Callouts ─────────────────────────────────────────────────────────── */
.tour-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 16px 0;
    border-left: 4px solid;
    background: #f6f8fa;
}
.tour-callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.tour-callout-text { font-size: 15px; line-height: 1.5; }
.tour-callout-info { background: #eef4fb; border-color: #3a8dde; }
.tour-callout-info .tour-callout-icon { color: #3a8dde; }
.tour-callout-tip { background: #eef9f1; border-color: #29b96f; }
.tour-callout-tip .tour-callout-icon { color: #29b96f; }
.tour-callout-warning { background: #fdf3e6; border-color: #e07a1c; }
.tour-callout-warning .tour-callout-icon { color: #e07a1c; }

/* ─── FAQ ──────────────────────────────────────────────────────────────── */
.tour-faq-list { display: flex; flex-direction: column; gap: 4px; }
.tour-faq-item {
    border: 1px solid var(--kohsanuk-rule);
    border-radius: 6px;
    overflow: hidden;
    background: var(--kohsanuk-surface);
    transition: box-shadow 0.15s ease;
}
.tour-faq-item[open] { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.tour-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--kohsanuk-text);
    list-style: none;
    user-select: none;
}
.tour-faq-question::-webkit-details-marker { display: none; }
.tour-faq-chevron { transition: transform 0.2s ease; color: var(--kohsanuk-text-muted); }
.tour-faq-item[open] .tour-faq-chevron { transform: rotate(180deg); }
.tour-faq-answer {
    padding: 0 16px 16px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--kohsanuk-text-soft);
}

/* ─── TOC (sticky on desktop, accordion on mobile) ─────────────────────── */
.tour-toc {
    border: 1px solid var(--kohsanuk-rule);
    border-radius: 8px;
    padding: 14px 16px;
    background: var(--kohsanuk-surface);
}
.tour-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.tour-toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kohsanuk-text-muted);
    margin: 0;
}
.tour-toc-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    color: var(--kohsanuk-text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.tour-toc-list { list-style: none; margin: 0; padding: 0; }
.tour-toc-list li { margin: 0; padding: 0; }
/* Desktop: split the TOC into 2 columns to save vertical real estate in the
   sidebar — there's a lot of competition above the fold (price + Book Now). */
@media (min-width: 992px) {
    .tour-toc-list {
        column-count: 2;
        column-gap: 8px;
    }
    .tour-toc-list li {
        break-inside: avoid;
    }
}
.tour-toc-list a {
    display: block;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--kohsanuk-text-soft);
    border-radius: 4px;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tour-toc-list a:hover { background: var(--kohsanuk-cream-100); color: var(--kohsanuk-text); }
.tour-toc-list a.tour-toc-link-active {
    background: var(--kohsanuk-brand-tint);
    color: var(--kohsanuk-brand);
    border-left-color: var(--kohsanuk-brand);
    font-weight: 600;
}

@media (max-width: 991px) {
    .tour-toc { margin: 16px 0; }
    .tour-toc-toggle { display: inline-block; }
    .tour-toc.is-collapsed .tour-toc-list { display: none; }
    .tour-toc.is-collapsed .tour-toc-toggle { transform: rotate(0deg); }
    .tour-toc:not(.is-collapsed) .tour-toc-toggle { transform: rotate(180deg); }
}

/* ─── Sticky mobile CTA ────────────────────────────────────────────────── */
.tour-sticky-cta-mobile {
    /* Always visible: the partial only renders on the phone-UA mobile view,
       and the old ≤767px gate left landscape phones (768-991px) with no
       Book Now affordance at all — the inline summary buttons are
       .summary-wide-only and also hidden on mobile. */
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--kohsanuk-surface);
    border-top: 1px solid var(--kohsanuk-rule);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) 14px;
    z-index: 1040;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tour-sticky-cta-price {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.tour-sticky-cta-from {
    font-size: 10px;
    color: #8a8f98;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.tour-sticky-cta-amount-row {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-top: 2px;
}
.tour-sticky-cta-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}
.tour-sticky-cta-currency {
    font-size: 13px;
    font-weight: 700;
    color: #4a4f57;
}
.tour-sticky-cta-per {
    font-size: 11px;
    color: #8a8f98;
    font-style: italic;
    margin-top: 1px;
}
/* Single-line wrapper keeps the legacy column layout now that the split
   variant shares .tour-sticky-cta-price. */
.tour-sticky-cta-single {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
/* Group/private split — two compact lines for tours offering both types. */
.tour-sticky-cta-split {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    min-width: 0;
}
.tour-sticky-cta-split-row {
    font-size: 12.5px;
    color: #8a8f98;
    white-space: nowrap;
}
.tour-sticky-cta-split-row strong {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--kohsanuk-brand-dark); /* tour-page price colour — one identity everywhere */
    letter-spacing: -0.01em;
}
.tour-sticky-cta-split-row small {
    font-size: 11px;
    color: #8a8f98;
    font-style: italic;
}
.tour-sticky-cta-btn {
    flex-shrink: 0;
    margin-left: auto;
    min-width: 152px;
    height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.28);
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.tour-sticky-cta-btn:hover,
.tour-sticky-cta-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.32);
}
.tour-sticky-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 87, 34, 0.24);
}
.tour-sticky-cta-btn-arrow {
    font-size: 13px;
    transition: transform 160ms ease;
}
.tour-sticky-cta-btn:hover .tour-sticky-cta-btn-arrow {
    transform: translateX(2px);
}

/* push page content above the (always-visible) sticky bar so the last
   section is reachable at any phone width */
body.tour-detail-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* ─── Hide aging tour-spec scroll position when sticky CTA shows ───────── */
@media (max-width: 767px) {
    .tour-section { margin: 24px 0; }
    .tour-section-heading { font-size: 19px; }
    .tour-section p, .tour-section li { font-size: 15px; }
    .tour-section-summary {
        margin: 12px -4px 24px;
        padding: 16px 18px 16px 22px;
    }
    .tour-summary-lead { font-size: 16.5px; line-height: 1.5; }
    .tour-section-summary::before { font-size: 38px; top: 4px; left: 6px; }
    .tour-highlights-list li { padding: 12px 14px; gap: 12px; }
    .tour-highlight-icon { width: 24px; height: 24px; font-size: 11px; }
}

/* ===== Tour description prose — Editorial Lite baseline ===== */
.tour-section-overview .details-content.tour-prose {
    font-family: 'Ubuntu', system-ui, sans-serif;
    font-size: 17px; line-height: 1.7; color: var(--kohsanuk-text-soft);
}
.tour-prose p   { margin: 0 0 16px; }
.tour-prose h2,
.tour-prose h3,
.tour-prose h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700; color: var(--kohsanuk-text);
    letter-spacing: -0.01em; line-height: 1.3;
    margin: 40px 0 14px; padding-top: 20px;
    border-top: 1px solid var(--kohsanuk-rule);
}
.tour-prose h2 { font-size: 26px; }
.tour-prose h3 { font-size: 24px; }
.tour-prose h4 { font-size: 22px; }
.tour-prose h2 strong,
.tour-prose h3 strong,
.tour-prose h4 strong { font-weight: inherit; }
.tour-prose strong { color: var(--kohsanuk-text); font-weight: 700; }
.tour-prose i,
.tour-prose em { font-family: Georgia, serif; font-style: italic; color: var(--kohsanuk-text); }
.tour-prose a {
    color: var(--kohsanuk-brand); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.tour-prose a:hover { color: var(--kohsanuk-brand); filter: brightness(0.85); }
.tour-prose ul { list-style: none; padding: 0; margin: 16px 0; }
.tour-prose ul li {
    position: relative; padding-left: 22px; margin-bottom: 10px; line-height: 1.6;
}
.tour-prose ul li::before {
    content: "•"; color: var(--kohsanuk-brand);
    position: absolute; left: 4px; top: -2px;
    font-size: 20px; font-weight: 700;
}
.tour-prose ol { padding-left: 24px; margin: 16px 0; }
.tour-prose ol li { padding-left: 6px; margin-bottom: 10px; color: var(--kohsanuk-text-soft); }
.tour-prose ol li::marker { color: var(--kohsanuk-brand); font-weight: 700; }
.tour-prose blockquote {
    margin: 24px 0; padding: 18px 22px;
    background: var(--kohsanuk-cream-50); border-left: 3px solid var(--kohsanuk-brand);
    font-family: Georgia, serif; font-style: italic;
    font-size: 18px; color: var(--kohsanuk-text);
}
.tour-prose img {
    max-width: 100%; height: auto;
    border-radius: 4px; margin: 24px 0;
}
.tour-prose table {
    width: 100%; border-collapse: collapse;
    margin: 20px 0; font-size: 16px;
}
.tour-prose th,
.tour-prose td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--kohsanuk-rule);
    text-align: left;
}
.tour-prose th { background: var(--kohsanuk-cream-100); color: var(--kohsanuk-text); font-weight: 700; }

/* ===== Truncation + softer fade + pill CTA ===== */
.tour-section-overview .details-content.details-height {
    max-height: 480px !important;
}
.tour-section-overview .details-content.details-height::after {
    height: 80px;
}
.tour-section-overview .details-more,
.tour-section-overview .details-less {
    width: fit-content;
    margin: 16px 0 8px;
    padding: 9px 22px;
    border: 1px solid var(--kohsanuk-brand); border-radius: 999px;
    color: var(--kohsanuk-brand); font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.tour-section-overview .details-more:hover,
.tour-section-overview .details-less:hover {
    background: var(--kohsanuk-brand); color: var(--kohsanuk-surface);
    text-decoration: none;
}
/* The complex-tour markup nests an <a> inside .details-less (for scroll-back to
   #main-caption); without this, the link's global teal color overrides the pill. */
.tour-section-overview .details-less a {
    color: inherit;
    text-decoration: none;
}
.tour-section-overview .details-less:hover a {
    color: inherit;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
    .tour-section-overview .details-content.tour-prose { font-size: 16px; }
    .tour-prose h2 { font-size: 22px; }
    .tour-prose h3 { font-size: 21px; }
    .tour-prose h4 { font-size: 20px; }
    .tour-section-overview .details-content.details-height {
        max-height: 360px !important;
    }
    .tour-section-overview .details-content.details-height::after {
        height: 60px;
    }
}

/* ===== Magazine Feature modifier (additive) ===== */
.tour-section-overview .details-content.tour-prose--feature { line-height: 1.75; color: var(--kohsanuk-text); }
.tour-prose--feature h2 { font-size: 30px; }
.tour-prose--feature h3 { font-size: 28px; }
.tour-prose--feature h4 { font-size: 26px; }
.tour-prose--feature h2,
.tour-prose--feature h3,
.tour-prose--feature h4 {
    border-top: none; padding-top: 22px; position: relative;
}
.tour-prose--feature h2::before,
.tour-prose--feature h3::before,
.tour-prose--feature h4::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 36px; height: 2px; background: var(--kohsanuk-brand);
}
.tour-prose--feature > p:nth-of-type(3)::first-letter {
    font-family: Georgia, serif; font-size: 64px;
    line-height: .85; font-weight: 400; color: var(--kohsanuk-brand);
    float: left; padding: 8px 12px 0 0; margin-top: 2px;
}
.tour-prose--feature i,
.tour-prose--feature em { color: var(--kohsanuk-text-soft); }

@media (max-width: 767px) {
    .tour-prose--feature h2 { font-size: 24px; }
    .tour-prose--feature h3 { font-size: 23px; }
    .tour-prose--feature h4 { font-size: 22px; }
}

/* ===== Itinerary day tabs (active when Itinerary::useDays = true) ===== */
.tour-section-itinerary .tour-itinerary-tabs {
    /* Container — scope hook only */
}
.tour-section-itinerary .tour-itinerary-tabs__nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    gap: 6px;
    border-bottom: 1px solid var(--kohsanuk-rule);
    -webkit-overflow-scrolling: touch;
}
.tour-section-itinerary .tour-itinerary-tabs__nav::-webkit-scrollbar {
    display: none;
}
.tour-section-itinerary .tour-itinerary-tabs__nav li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}
.tour-section-itinerary .tour-itinerary-tabs__tab {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    color: var(--kohsanuk-text-soft);
    font-family: 'Ubuntu', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 18px;
    margin-bottom: -1px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, background .15s, border-color .15s;
}
.tour-section-itinerary .tour-itinerary-tabs__tab:hover {
    color: var(--kohsanuk-brand);
    background: var(--kohsanuk-cream-50);
}
.tour-section-itinerary .tour-itinerary-tabs__tab.active {
    color: var(--kohsanuk-brand);
    background: var(--kohsanuk-cream-100);
    border-color: var(--kohsanuk-rule) var(--kohsanuk-rule) var(--kohsanuk-cream-100);
}
.tour-section-itinerary .tour-itinerary-tabs__panel {
    display: none;
}
.tour-section-itinerary .tour-itinerary-tabs__panel.active {
    display: block;
}

@media (max-width: 767px) {
    .tour-section-itinerary .tour-itinerary-tabs__tab {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* ===== Reusable editorial pill CTA =====
   Same look as `.tour-section-overview .details-more` (terracotta outline,
   hover-fills) but available on any element so we don't have to wrap each
   button in a `.tour-section-overview` ancestor. Used by the
   "Show more reviews" button in reviews-section.blade.php. */
.tour-pill-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 9px 22px;
    background: transparent;
    border: 1px solid var(--kohsanuk-brand);
    border-radius: 999px;
    color: var(--kohsanuk-brand);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.tour-pill-cta:hover,
.tour-pill-cta:focus-visible {
    background: var(--kohsanuk-brand);
    color: var(--kohsanuk-surface);
    text-decoration: none;
    outline: none;
}

/* ===== Prices section (replaces dark Bootstrap panel-group accordion) =====
   Layout: optional currency switcher (right of header), optional package
   tabs (when multi-package), single clean borderless table, optional extras
   disclosure cards stacked beneath. Used in three contexts:
     1. Main column of desktop tour page
     2. Main column of mobile tour page (show_mobile=true → hides <thead>)
     3. Right-hand sidebar / mobile features box (narrow column)
   The .tour-prices wrapper sits inside tours/sections/_prices.blade.php's
   <section class="content-group">. Its h4 is decorative (not a section
   heading — _prices is already inside a section). */
.tour-prices {
    font-family: 'Ubuntu', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--kohsanuk-text);
    margin: 24px 0 18px;     /* extra top margin so the Book Now badge has clean air above */
    /* Louder card chrome (post-Phase-2 follow-up): bigger top accent
       rule, two-layer shadow, room at the top for the protruding
       Book Now badge. */
    background: var(--kohsanuk-surface);
    border: 1px solid var(--kohsanuk-rule);
    border-radius: var(--tc-radius-lg);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 30px 22px 18px;
    position: relative;
}
.tour-prices::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    height: 6px;
    background: linear-gradient(90deg, var(--tc-accent-deep) 0%, var(--tc-accent) 50%, var(--kohsanuk-accent-soft) 100%);
    border-radius: var(--tc-radius-lg) var(--tc-radius-lg) 0 0;
}
.tour-prices__hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}
.tour-prices__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--kohsanuk-text);
    margin: 0;
    letter-spacing: -.02em;
    line-height: 1.1;
}

/* Book Now badge — protrudes from the top-left of the .tour-prices card.
   Clickable; calls bookTour(slug) which redirects to /book/{slug}
   (definition lives in resources/assets/js/src/page-details.js,
   already loaded on every tour page). */
.tour-prices__book-now {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--tc-accent);
    color: var(--kohsanuk-surface);
    padding: 8px 16px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px var(--kohsanuk-action-shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, transform .2s, box-shadow .2s;
    z-index: 2;       /* clears the ::before accent rule */
}
.tour-prices__book-now::after {
    content: "\2192";   /* → */
    font-weight: 400;
}
.tour-prices__book-now:hover,
.tour-prices__book-now:focus-visible {
    background: var(--tc-accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--kohsanuk-action-shadow);
    color: var(--kohsanuk-surface);
    text-decoration: none;
    outline: none;
}
.tour-prices__alert {
    background: var(--kohsanuk-hold-bg);
    border-left: 3px solid var(--kohsanuk-hold-text);
    padding: 10px 14px 10px 16px;
    font-size: 14px;
    margin: 0 0 14px;
    border-radius: 0 4px 4px 0;
    color: var(--kohsanuk-text-soft);
    position: relative;
}
.tour-prices__alert .close {
    position: absolute;
    top: 6px;
    right: 10px;
    opacity: .55;
    background: transparent;
    border: 0;
    font-size: 18px;
    cursor: pointer;
}
.tour-prices__taxes {
    text-align: right;
    font-size: 12.5px;
    color: var(--kohsanuk-text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Currency switcher — chips with caret dropdown.
   Reuses the existing #currentCurrency JS / onCurrencySwitch() handler so
   only the visual chrome changes. */
.tour-currency-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tour-currency-switch__btn {
    appearance: none;
    padding: 5px 11px;
    border: 1px solid #d8d2c4;
    background: var(--kohsanuk-surface);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--kohsanuk-text);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1.4;
}
.tour-currency-switch__btn:hover {
    background: var(--kohsanuk-cream-100);
    border-color: var(--kohsanuk-accent);
}
.tour-currency-switch__btn.active {
    background: var(--kohsanuk-accent);
    border-color: var(--kohsanuk-accent);
    color: var(--kohsanuk-surface);
}
.tour-currency-switch .btn-group {
    margin: 0;
}
.tour-currency-switch .dropdown-menu {
    max-height: 380px;
    width: 240px;
    overflow-y: auto;
    font-size: 13px;
}

/* Package tabs — same visual family as the itinerary day tabs but a
   separate component (we don't refactor the itinerary scope class names).
   Used only when count($price_packages) > 1. */
.tour-price-tabs {
    margin: 0 0 16px;
}
/* V3 gradient cards — same family as .tour-package-tabs. The same tab
   component is reused by three callers (the price-table sub-package
   switcher, the boat-only "About the boat" tabs, and any future inline
   tab). Cards stretch to fill the available row, gap between siblings. */
.tour-price-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    gap: 10px;
}
.tour-price-tabs__nav li {
    margin: 0;
    padding: 0;
    flex: 1 1 180px;
    min-width: 0;
    /* Stretch the <li> in the cross axis so the inline-flex button
       inside can reliably grow to height: 100%. */
    display: flex;
}
.tour-price-tabs__tab {
    appearance: none;
    /* flex column + height/width 100% so cards always match the height
       of the tallest sibling — same equal-height logic as
       .tour-package-tabs above. */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    background: var(--kohsanuk-surface);
    border: 1.5px solid var(--kohsanuk-cream-300);
    border-radius: 12px;
    color: var(--kohsanuk-text);
    /* Maven Pro is the body font and has a real 700 face loaded; inherit
       to avoid the synthetic-bold rendering that switching to Ubuntu
       caused on Safari and Chrome. */
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.005em;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.tour-price-tabs__tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tc-accent), var(--kohsanuk-accent-shadow));
    opacity: 0;
    transition: opacity .2s;
}
.tour-price-tabs__tab:hover {
    border-color: var(--tc-accent);
    transform: translateY(-1px);
}
.tour-price-tabs__tab:hover::before { opacity: 1; }
.tour-price-tabs__tab.active {
    background: linear-gradient(135deg, var(--kohsanuk-cream-50) 0%, var(--kohsanuk-surface) 50%, var(--kohsanuk-action-tint) 100%);
    border-color: var(--kohsanuk-action);
    border-width: 2px;
    padding: 13.5px 15.5px;       /* compensates for +0.5 px border */
    box-shadow: 0 6px 18px var(--kohsanuk-action-soft);
    transform: translateY(-2px);
}
.tour-price-tabs__tab.active::before { opacity: 1; }
/* Optional subtitle slot — same hide-when-empty rule as the package
   tabs so a tab without a subtitle still reads clean. */
.tour-price-tabs__sub {
    display: block;
    font-size: 12px;
    color: var(--tc-text-soft);
    margin-top: 2px;
    font-weight: 400;
    letter-spacing: 0;
}
.tour-price-tabs__sub:empty { display: none; }
.tour-price-tabs__panel { display: none; }
.tour-price-tabs__panel.active { display: block; }
@media (max-width: 480px) {
    .tour-price-tabs__nav li { flex-basis: 100%; }
}

/* Borderless price list — one row per option, hairline separators.
   Replaces the old `table table-sm` with bg-info-700 panel headings and
   tr.active even-row striping. Works for both the main per-package list
   and (with the --extras modifier) the nested extras-card list. */
.tour-price-list {
    width: 100%;
    border-collapse: collapse;
}
.tour-price-list__head {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--kohsanuk-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 4px 8px;
    border-bottom: 1px solid var(--kohsanuk-rule);
}
.tour-price-list__head--right { text-align: right; }
.tour-price-list__row > td {
    padding: 13px 4px;
    border-bottom: 1px solid var(--kohsanuk-cream-300);
    vertical-align: top;
    font-size: 14.5px;
    color: var(--kohsanuk-text);
}
.tour-price-list__row:last-child > td { border-bottom: none; }
.tour-price-list__name {
    font-weight: 500;
}
.tour-price-list__meta {
    display: block;
    font-size: 12.5px;
    color: var(--kohsanuk-text-muted);
    font-weight: 400;
    margin-top: 2px;
}
.tour-price-list__price {
    text-align: right;
    white-space: nowrap;
    /* The price is the row's payload — render it clearly larger than the
       option name (which stays 14.5px) so it scans first, especially on
       mobile where the card competes with the rest of the page. */
    font-weight: 700;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}
.tour-price-list__price h6 {
    /* PriceUtils::renderPriceLabel emits a <h6 class="text-semibold
       no-margin pull-right-sm">. Strip the inherited Bootstrap admin
       theme weight/margin/colour so the price reads as plain warm-text. */
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--kohsanuk-text);
    line-height: 1.2;
    display: inline;
}

/* Inline seasonal-price disclosure on a price row.
   Closed: a clickable price range with a small chevron.
   Open: a tiny dl underneath listing season → price. */
.tour-price-list__season-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0 0 0 6px;
    color: var(--kohsanuk-accent);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}
.tour-price-list__season-toggle::after {
    content: "\25BE"; /* ▾ */
    margin-left: 2px;
    display: inline-block;
    transition: transform .15s;
}
.tour-price-list__season-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.tour-price-list__seasons {
    display: none;
    margin: 8px 0 0;
    padding: 8px 12px;
    background: var(--kohsanuk-cream-50);
    border-radius: 4px;
    font-size: 13px;
    color: var(--kohsanuk-text-soft);
}
.tour-price-list__seasons[data-open="true"] { display: block; }
.tour-price-list__seasons dt {
    display: inline-block;
    width: 60%;
    font-weight: 500;
}
.tour-price-list__seasons dd {
    display: inline-block;
    width: 39%;
    text-align: right;
    margin: 0;
    font-weight: 600;
    color: var(--kohsanuk-text);
}

/* Extras disclosure card (replaces extra-options.blade panel-group accordion).
   Used as:
     - per-package extras inside a <tr><td colspan="2"> footer
     - per-tour standalone extras_groups between the joined/private tables
     - "Show more prices" private-price disclosure
   Same visual treatment in all three positions. */
.tour-price-extras {
    border: 1px dashed var(--kohsanuk-cream-300);
    background: var(--kohsanuk-cream-50);
    border-radius: 6px;
    padding: 0;
    margin: 8px 0 0;
}
.tour-price-extras + .tour-price-extras { margin-top: 8px; }
.tour-price-extras__toggle {
    appearance: none;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--kohsanuk-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}
.tour-price-extras__toggle:focus-visible { outline: 2px solid var(--kohsanuk-accent); outline-offset: -2px; }
.tour-price-extras__count {
    color: var(--kohsanuk-text-muted);
    font-weight: 400;
    margin-left: 8px;
}
.tour-price-extras__toggle::after {
    content: "\203A"; /* › */
    font-size: 20px;
    color: var(--kohsanuk-accent);
    transition: transform .18s;
    line-height: 1;
}
.tour-price-extras__toggle[aria-expanded="true"]::after { transform: rotate(90deg); }
.tour-price-extras__panel {
    display: none;
    padding: 4px 16px 14px;
    border-top: 1px dashed var(--kohsanuk-cream-300);
}
.tour-price-extras__panel[data-open="true"] { display: block; }
/* Extras list reuses .tour-price-list with slightly tighter padding. */
.tour-price-extras .tour-price-list__row > td {
    padding: 10px 0;
    font-size: 14px;
}

/* Nested per-row extras footer cell: the <tr><td colspan="2"> wrapper
   that hosts a tour-price-extras card inside a price table. Drop the
   default table-cell padding so the card sits flush with the row above. */
.tour-price-list__extras-cell {
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent;
}
.tour-price-list__extras-cell .tour-price-extras { margin: 0; border-top: none; border-radius: 0 0 6px 6px; }

/* "Editor mode" pencil affordance — kept above the price block. */
.tour-prices__edit {
    text-align: right;
    padding-top: 14px;
}
.tour-prices__edit a {
    color: var(--kohsanuk-accent);
    text-decoration: none;
    font-size: 14px;
}

/* ===== Yacht specs / equipment / amenities / service ===== */

/* Specifications: warm-cream rounded card with two-column definition grid.
   Replaces the old `table table-sm` striped data table. Always rendered
   inside a <section class="tour-section"> with an h3.tour-section-heading. */
.tour-specs-grid {
    background: var(--kohsanuk-surface);
    border: 1px solid var(--tc-rule);
    border-radius: var(--tc-radius-lg);
    padding: 6px 18px 6px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    box-shadow: var(--tc-card-shadow);
    position: relative;
    overflow: hidden;
}
/* Vertical accent gradient rule along the left edge — the "this is a
   tour-data card" signature reused across the Specifications panel. */
.tour-specs-grid::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--kohsanuk-brand) 0%, var(--kohsanuk-brand-soft) 100%);
    border-radius: var(--tc-radius-lg) 0 0 var(--tc-radius-lg);
}
.tour-specs-grid__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid var(--kohsanuk-rule);
    font-size: 14.5px;
    gap: 12px;
}
/* Drop the border on the last row in each column (one-column mode hides
   the right column entirely so this still reads as the last row). The
   :nth-last-child(-n+2) only matches the final pair when the grid is
   complete — for an odd row count the dangling last cell still gets the
   border, which is intentional (we want a closing rule there). */
.tour-specs-grid__row:nth-last-child(-n+2) { border-bottom: none; }
.tour-specs-grid__lbl {
    color: var(--kohsanuk-text-muted);
    font-weight: 500;
    flex: 0 0 auto;
}
.tour-specs-grid__val {
    color: var(--kohsanuk-text);
    font-weight: 600;
    text-align: right;
}
@media (max-width: 600px) {
    .tour-specs-grid { grid-template-columns: 1fr; gap: 0; padding: 4px 16px; }
    .tour-specs-grid__row:nth-last-child(-n+2) { border-bottom: 1px solid var(--kohsanuk-rule); }
    .tour-specs-grid__row:last-child { border-bottom: none; }
}

/* ─── Feature disc markers ──────────────────────────────────────────────
   Small circular markers used by both the Included list and the boat
   feature lists (Equipment / Amenities / Service). Shared component so
   every "feature bullet" on the page reads as one visual language. */
.tour-feature-disc {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    line-height: 1;
}
.tour-feature-disc--yes {
    background: var(--kohsanuk-brand);
    color: var(--kohsanuk-surface);
}
.tour-feature-disc--yes::before { content: "\2713"; /* ✓ */ }
.tour-feature-disc--no {
    background: transparent;
    color: var(--kohsanuk-action);
    border: 1.5px solid var(--kohsanuk-action);
}
.tour-feature-disc--no::before { content: "\2715"; /* ✕ */ }

/* ─── Package tabs (editorial card grid + horizontal scroll-snap) ──────
   Phase 2 re-theme of the existing Bootstrap `nav.nav-tabs-solid`
   tab control. The legacy markup (and its `data-toggle="tab"` JS)
   stays — we just wrap the `.tabbable` container with a marker class
   and override every visual rule. Two parents involved:
     - `.tour-package-tabs`    on the outer `.tabbable` wrapper
     - `.nav.nav-tabs-solid`   the existing UL (untouched by us)
   The Bootstrap JS still toggles `active` on the LI when a card is
   clicked, which is what our `.tour-package-tabs .nav-tabs-solid > li.active`
   selectors hook into.

   Applied wherever the `.tabbable` wrapper carries the
   `.tour-package-tabs` marker class. Any new tour-page block that
   needs the editorial card grid just opts in by adding the marker. */
.tour-package-tabs {
    background: transparent;
    margin: 4px 0 18px;
}
/* Positioning context for the overflow chevrons. tour-package-tabs.js
   wraps the .nav <ul> in this div on attach() so the chevrons sit on
   the tab row only — without the wrap, top: 50% centers the chevrons
   on the entire .tour-package-tabs container which also contains the
   much-taller .tab-content panels below. */
.tour-package-tabs__nav-wrap {
    position: relative;
}
/* Overflow chevrons — injected by tour-package-tabs.js when the row of
   cards overflows the container. Hidden when the row fits, hidden at
   the start/end of the scroll respectively. Semi-transparent floating
   circles that sit just outside the first/last card so they don't
   obscure card content. */
.tour-package-tabs__chev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--tc-cream-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-accent);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: opacity .2s, transform .15s, border-color .15s, color .15s, background .15s, visibility 0s;
    z-index: 3;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}
.tour-package-tabs__chev:hover,
.tour-package-tabs__chev:focus-visible {
    background: var(--kohsanuk-surface);
    border-color: var(--tc-accent);
    color: var(--tc-accent-deep);
    transform: translateY(-50%) scale(1.08);
    outline: none;
}
/* Sit OUTSIDE the card row — the negative offset uses the parent
   container's horizontal padding (Bootstrap col-md-* gives 15 px of
   it) so the chevron sits over whitespace, not over a card edge.
   If the chevron lands over a card on a very narrow column, the
   semi-transparent background + backdrop blur keep card content
   legible underneath. */
.tour-package-tabs__chev--left  { left: -14px; }
.tour-package-tabs__chev--right { right: -14px; }
/* The `hidden` attribute is the visibility contract — the JS toggles
   it. Transition the fade so the chevrons don't pop in/out. */
.tour-package-tabs__chev[hidden] {
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@media (max-width: 480px) {
    .tour-package-tabs__chev { width: 32px; height: 32px; font-size: 16px; }
    .tour-package-tabs__chev--left  { left: -8px; }
    .tour-package-tabs__chev--right { right: -8px; }
}
.tour-package-tabs .nav.nav-tabs-solid {
    background: transparent;
    border: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* 6px side padding gives the active card's 2px border + shadow room
       inside the scrollport (2px clipped the first card's left edge on
       mobile); the -4px margins keep the cards visually aligned exactly
       where the old 2px padding placed them. */
    padding: 6px 6px 14px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    /* Hide the scrollbar in both Firefox and WebKit. Webkit renders the
       scrollbar thumb whenever overflow-x: auto is declared, even when
       the row of cards fits without scrolling — which looked like a
       persistent decorative bar under the tabs (see the post-merge
       feedback). Touch swipe + mouse-wheel horizontal scroll still
       work without a visible scrollbar. */
    scrollbar-width: none;
}
.tour-package-tabs .nav.nav-tabs-solid::-webkit-scrollbar { display: none; }
/* Strip Bootstrap's <li> float/inline-block and lay them out as
   flex items inside the snapping container. */
.tour-package-tabs .nav.nav-tabs-solid > li {
    flex: 0 0 240px;
    scroll-snap-align: start;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    display: block;
}
.tour-package-tabs .nav.nav-tabs-solid > li > a {
    /* V3 gradient card: white surface with cream border, hover lifts, active
       state fills with a soft gradient + accent border + accent-tinted shadow,
       and a 3 px gradient bar sweeps across the top edge.

       display: flex + height: 100% + the flex-column layout below makes
       every card fill the height of the tallest sibling. Cards whose
       subtitle slot is :empty (a tour without a clean tour-type signal —
       e.g. joined = 3 / ANY type) would otherwise collapse to a smaller
       height than cards that DO show the subtitle. */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--kohsanuk-surface);
    border: 1.5px solid var(--tc-cream-300);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--tc-text);
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.tour-package-tabs .nav.nav-tabs-solid > li > a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tc-accent), var(--kohsanuk-accent-shadow));
    opacity: 0;
    transition: opacity .2s;
}
.tour-package-tabs .nav.nav-tabs-solid > li > a > h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-text);
    line-height: 1.3;
    letter-spacing: -.005em;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Glyphs (icon-users4 / icon-user / icon-users2) become cream disc avatars
   inside a flex row with the package name. Disc size scales up from Phase 2
   so the card has more presence. */
.tour-package-tabs .nav.nav-tabs-solid > li > a > h6 > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--tc-cream-100), var(--tc-cream-50));
    border: 1px solid var(--tc-cream-300);
    border-radius: 50%;
    color: var(--tc-accent);
    font-size: 15px;
    flex-shrink: 0;
    margin: 0;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
/* Subtitle slot — rendered next to the <h6>, hidden when empty so a
   tour without a tour-type string still reads cleanly. */
.tour-package-tabs__sub {
    display: block;
    font-size: 12px;
    color: var(--tc-text-soft);
    margin-top: 4px;
    margin-left: 46px;       /* aligns with the name (36 px disc + 10 px gap) */
    font-weight: 400;
    letter-spacing: 0;
}
.tour-package-tabs__sub:empty { display: none; }
.tour-package-tabs .nav.nav-tabs-solid > li > a:hover,
.tour-package-tabs .nav.nav-tabs-solid > li > a:focus {
    border-color: var(--tc-accent);
    background: var(--kohsanuk-surface);
    color: var(--tc-text);
    transform: translateY(-1px);
}
.tour-package-tabs .nav.nav-tabs-solid > li > a:hover::before,
.tour-package-tabs .nav.nav-tabs-solid > li > a:focus::before {
    opacity: 1;
}
/* Bootstrap toggles `active` on the <li> when the tab is selected. */
.tour-package-tabs .nav.nav-tabs-solid > li.active > a,
.tour-package-tabs .nav.nav-tabs-solid > li.active > a:hover,
.tour-package-tabs .nav.nav-tabs-solid > li.active > a:focus {
    background: linear-gradient(135deg, var(--tc-cream-50) 0%, var(--kohsanuk-surface) 50%, var(--tc-cream-200) 100%);
    border-color: var(--tc-accent);
    border-width: 2px;
    /* Compensate the +0.5 px border on each axis so the active card doesn't
       jump in size when it transitions in. */
    padding: 15.5px 17.5px;
    color: var(--tc-text);
    box-shadow: 0 8px 24px var(--kohsanuk-accent-soft);
    transform: translateY(-2px);
}
.tour-package-tabs .nav.nav-tabs-solid > li.active > a::before {
    opacity: 1;
}
.tour-package-tabs .nav.nav-tabs-solid > li.active > a > h6 > i {
    background: linear-gradient(135deg, var(--tc-accent-deep, var(--kohsanuk-accent-dark)), var(--tc-accent));
    color: var(--kohsanuk-surface);
    border-color: var(--tc-accent);
    box-shadow: 0 3px 8px var(--kohsanuk-action-shadow);
}
/* "Other / Show more" dropdown — keep it as a card too, no caret
   styling required (Bootstrap handles the open state). */
.tour-package-tabs .nav.nav-tabs-solid > li.dropdown { flex: 0 0 auto; min-width: 160px; }
.tour-package-tabs .nav.nav-tabs-solid > li.dropdown > a {
    background: var(--tc-cream-100);
    border: 1.5px dashed var(--tc-cream-300);
    color: var(--tc-accent);
}
.tour-package-tabs .nav.nav-tabs-solid > li.dropdown > a > h6 { color: var(--tc-accent); }
@media (max-width: 480px) {
    .tour-package-tabs .nav.nav-tabs-solid > li { flex-basis: 200px; }
    .tour-package-tabs .nav.nav-tabs-solid > li > a { padding: 14px 16px; }
    .tour-package-tabs .nav.nav-tabs-solid > li.active > a { padding: 13.5px 15.5px; }
}

/* ─── Itinerary timeline overrides (Phase 2 — P2 picked) ──────────────
   The Itinerary block uses .list-feed / .list-feed-time from the admin
   theme (rendered by app/Library/Itinerary.php — no PHP edits here).
   Scoping to .tour-section so the admin-area pages that also use
   .list-feed keep their blue-grey palette. */
.tour-section .list-feed > li::before {
    /* Filled dot with soft halo — picked P2 polish. Brand teal, not action orange. */
    background-color: var(--kohsanuk-brand);
    border: none;
    box-shadow: 0 0 0 3px var(--kohsanuk-brand-soft);
    width: 10px;
    height: 10px;
    top: 7px;
}
.tour-section .list-feed-time > li .feed-time {
    /* 600-weight time labels to balance the heavier dot. */
    font-weight: 600;
    color: var(--tc-text-soft);
}
/* Admin-theme rule:
       .list-feed-time > li      { margin-left: 48px; }
       .feed-time                 { position: absolute; left: -88px; width: 80px; }
   That 80 px right-aligned label column is sized for time RANGES, but
   most entries are single times ("07.15"), leaving ~40 px of dead
   space left of the label — and the negative offset made labels clip
   in the tour-page context. Rebuild the geometry tighter: no <ul>
   padding, a 48 px label column flush with the section's left edge
   (li margin 56 = 48 label + 8 gap to the dot). Single times fit on
   one line; ranges ("15.45 - 17.30") wrap to two — they already
   wrapped at 80 px too. Text column lands at 84 px instead of 116. */
.tour-section .list-feed-time {
    padding-left: 0;
}
.tour-section .list-feed-time > li {
    margin-left: 56px;
}
.tour-section .list-feed-time > li .feed-time {
    left: -56px;
    width: 48px;
}
/* Lists containing time RANGES (Itinerary.php emits the --wide
   modifier when any label exceeds single-time length): a side column
   wide enough for "15.45 - 17.30" would push the text ~130 px in, and
   a narrow one wraps the range onto 2–3 lines. Stack instead — the
   time renders as its own line above the text, so a range always
   fits on one line and the timeline hugs the left edge. */
.tour-section .list-feed-time--wide > li {
    margin-left: 0;
}
.tour-section .list-feed-time--wide > li .feed-time {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    margin: 0 0 2px;
}

/* Apply the same flex-row layout to the Included list (.list-icons
   from the admin theme that we no longer want owning the layout) so
   the disc marker sits inline with the text. The Bootstrap col-md-6
   classes on each <li> still float to make two columns; the inner
   contents flex within each floated column. */
.tour-feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    padding-left: 0;
    margin-top: 7px;
}
.tour-feature-bullets li::before { display: none; }

/* Equipment / Amenities / Service tabs render via the same
   .tour-specs-grid card as Specifications — see
   tours/parts/_feature-list.blade.php. The old chip / two-column
   disc rules were dropped when those tabs migrated to the
   definition-grid layout. */

/* Narrow-column adjustments — when the price block renders in the right
   sidebar or features box, tighten paddings and let the package tabs
   wrap to two lines instead of horizontal-scroll. */
@media (max-width: 480px) {
    .tour-prices__hdr { gap: 8px; }
    .tour-prices__title { font-size: 16px; }
    .tour-price-tabs__tab { font-size: 12px; padding: 7px 12px; letter-spacing: .03em; }
    .tour-price-list__row > td { padding: 11px 2px; font-size: 14px; }
    .tour-price-extras__toggle { padding: 10px 12px; }
}
