/*
Theme Name:        LAUNCH — Fishing Charter Marketing App
Theme URI:         https://launch.fishing
Author:            LAUNCH
Author URI:        https://launch.fishing
Description:       LAUNCH is a complete marketing app for fishing-charter captains. Branded booking flow, CRM contacts with tags and CSV export, manual bookings, availability calendar with recurring days off, captain hub at /launch/, gallery, charter management, Post SMTP integration, and structured data for local SEO. White-label ready out of the box.
Version:           3.28.1
Requires at least: 6.0
Tested up to:      6.8
Requires PHP:      8.0
License:           Proprietary
Text Domain:       jw-fishing-charters
Tags:              fishing, charter, booking, custom-menu, custom-logo, full-width-template
*/

/* ==========================================================================
   DESIGN TOKENS — single source of truth
   ========================================================================== */
:root {
    --jw-navy:        #0b1f3a;
    --jw-navy-mid:    #132d50;
    --jw-blue:        #1a4a7a;
    --jw-blue-light:  #2563a8;
    --jw-teal:        #1b6b8a;
    --jw-white:       #ffffff;
    --jw-cream:       #f5f7fa;
    --jw-off-white:   #f0f4f8;

    --jw-text-dark:   #0d1f35;
    --jw-text-body:   #1e3a52;
    --jw-text-muted:  #4a6580;

    --jw-gold:        #c9a84c;
    --jw-gold-light:  #e8c96b;
    --jw-success:     #15803d;
    --jw-error:       #991b1b;

    --jw-font-serif:  'Playfair Display', Georgia, serif;
    --jw-font-sans:   'Barlow', system-ui, sans-serif;
    --jw-font-cond:   'Barlow Condensed', system-ui, sans-serif;

    --jw-radius:      10px;
    --jw-radius-lg:   16px;
    --jw-shadow:      0 4px 24px rgba(0,0,0,0.10);
    --jw-shadow-lg:   0 12px 48px rgba(0,0,0,0.18);

    --jw-transition:  0.2s ease;
    --jw-max-width:   1200px;
    --jw-header-h:    72px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    /* Prevent any descendant element from forcing horizontal scroll —
       this is what was causing the off-center / white-space-on-right
       rendering on mobile when a child element exceeded viewport width. */
    overflow-x: hidden;
}
body {
    margin: 0; padding: 0;
    font-family: var(--jw-font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--jw-text-body);
    background: var(--jw-white);
    overflow-x: hidden;
    /* Hard width cap — even with overflow:hidden, some browsers still
       compute body width from content. max-width:100vw enforces the cap. */
    max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--jw-blue-light); text-decoration: none; transition: color var(--jw-transition); }
a:hover { color: var(--jw-teal); }
h1,h2,h3,h4,h5,h6 { font-family: var(--jw-font-serif); color: var(--jw-text-dark); line-height: 1.2; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
ul,ol { margin: 0 0 1rem; padding-left: 1.5rem; }
button { cursor: pointer; font-family: var(--jw-font-sans); }
input, textarea, select { font-family: var(--jw-font-sans); }

/* ==========================================================================
   SITE LAYOUT
   ========================================================================== */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }
.site-main { display: block; }
.jw-container { max-width: var(--jw-max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--jw-navy);
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.jw-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--jw-header-h);
    max-width: var(--jw-max-width); margin: 0 auto; padding: 0 1.5rem;
    gap: 1.5rem;
}
.jw-logo-link {
    display: flex; align-items: center; gap: 0.85rem;
    text-decoration: none; flex-shrink: 0;
    /* min-width:0 lets the flex item shrink so long logo text never
       pushes the row past 100vw on narrow screens. */
    min-width: 0;
}
/* Desktop logo — bumped from 48px to 56px for more brand presence */
.jw-logo-link img, .jw-brand-logo--header { height: 56px; width: 56px; display:block; object-fit:contain; flex-shrink: 0; }
.jw-brand-logo--header { max-width: 56px; }

/* ── Porthole logo treatment — header, login, Launch sidebar, drawer ── */
.jw-brand-logo--header,
.jw-brand-logo--login,
.jw-brand-logo--drawer,
.jw-hub-sidebar-logo .jw-brand-logo {
    border-radius: 50%;
    border: 2px solid rgba(201,168,76,0.55);
    box-shadow:
        0 0 0 4px rgba(201,168,76,0.12),
        inset 0 0 0 2px rgba(255,255,255,0.08),
        0 4px 18px rgba(0,0,0,0.32);
    background: rgba(255,255,255,0.06);
    padding: 3px;
    object-fit: cover;
}
.jw-logo-text {
    display: flex; flex-direction: column;
    /* Allow text column to shrink — prevents overflow on narrow viewports */
    min-width: 0;
}
.jw-logo-name {
    font-family: var(--jw-font-serif); font-size: 1.15rem; font-weight: 700;
    color: var(--jw-white); line-height: 1.1;
    /* Truncate gracefully on narrow screens rather than overflow */
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jw-logo-sub {
    font-family: var(--jw-font-cond); font-size: 0.6rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--jw-gold); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Primary nav (desktop)
   Same render-path duality as the drawer nav:
   - Hardcoded fallback: direct <a> children
   - wp_nav_menu primary: <li><a>...</a></li> children */
.jw-primary-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.jw-primary-nav li { list-style: none; margin: 0; padding: 0; }
.jw-primary-nav a {
    font-family: var(--jw-font-cond); font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.75); padding: 0.5rem 0.75rem;
    border-radius: 6px; transition: color var(--jw-transition), background var(--jw-transition);
}
.jw-primary-nav a:hover, .jw-primary-nav a.current { color: #fff; background: rgba(255,255,255,0.08); }
.jw-nav-book-btn {
    background: var(--jw-gold) !important; color: var(--jw-navy) !important;
    border-radius: 8px !important; padding: 0.55rem 1.25rem !important;
    font-weight: 700 !important;
}
.jw-nav-book-btn:hover { background: var(--jw-gold-light) !important; }

.jw-header-phone {
    font-family: var(--jw-font-cond); font-size: 0.82rem;
    font-weight: 700; letter-spacing: 0.05em;
    color: var(--jw-gold); white-space: nowrap;
    text-decoration: none;
}
.jw-header-phone:hover { color: var(--jw-gold-light); }

/* Mobile hamburger button — hidden on desktop, shown < 900px */
.jw-menu-toggle {
    display: none; background: none; border: none;
    padding: 0.5rem; color: #fff; flex-direction: column; gap: 5px;
    cursor: pointer;
}
.jw-menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   MOBILE DRAWER — full-screen overlay with slide transition
   ========================================================================== */
.jw-mobile-drawer {
    position: fixed; inset: 0; z-index: 300;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.35s; /* delay visibility hide until slide-out finishes */
}
.jw-mobile-drawer.open {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0s linear 0s;
}
.jw-mobile-drawer__backdrop {
    position: absolute; inset: 0;
    background: rgba(8,16,32,0.65);
    opacity: 0; transition: opacity 0.35s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.jw-mobile-drawer.open .jw-mobile-drawer__backdrop { opacity: 1; }

.jw-mobile-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(420px, 100vw);
    background: linear-gradient(180deg, #0b1f3a 0%, #0a1a30 100%);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
    overflow-y: auto;
    /* iOS rubber-band fix and safe-area padding */
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.jw-mobile-drawer.open .jw-mobile-drawer__panel { transform: translateX(0); }

.jw-mobile-drawer__top {
    display: flex; justify-content: flex-end;
    padding: 14px 16px 0;
}
.jw-mobile-drawer__close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 36px; height: 36px;
    color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.jw-mobile-drawer__close:hover { background: rgba(255,255,255,0.12); }

/* Big logo + name + tagline */
.jw-mobile-drawer__brand {
    text-align: center;
    padding: 8px 24px 18px;
}
.jw-mobile-drawer__logo {
    display: flex; justify-content: center; margin-bottom: 14px;
}
.jw-mobile-drawer__logo .jw-brand-logo--drawer,
.jw-mobile-drawer__logo img {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(201,168,76,0.55);
    background: rgba(255,255,255,0.06);
    padding: 4px;
    box-shadow:
        0 0 0 6px rgba(201,168,76,0.12),
        0 8px 32px rgba(0,0,0,0.4);
    object-fit: cover;
}
.jw-mobile-drawer__name {
    font-family: var(--jw-font-serif);
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
    margin: 0 0 4px;
    line-height: 1.2;
}
.jw-mobile-drawer__tagline {
    font-family: var(--jw-font-cond);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--jw-gold);
    margin: 0;
    line-height: 1.4;
}

/* Phone promo strip */
.jw-mobile-drawer__phone {
    display: flex; align-items: center; gap: 12px;
    margin: 0 16px 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(201,168,76,0.14) 0%, rgba(201,168,76,0.06) 100%);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.jw-mobile-drawer__phone:hover {
    background: linear-gradient(135deg, rgba(201,168,76,0.22) 0%, rgba(201,168,76,0.1) 100%);
    border-color: rgba(201,168,76,0.5);
}
.jw-mobile-drawer__phone-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(201,168,76,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.jw-mobile-drawer__phone-body { display: flex; flex-direction: column; min-width: 0; }
.jw-mobile-drawer__phone-label {
    font-family: var(--jw-font-cond);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jw-gold);
    margin-bottom: 2px;
}
.jw-mobile-drawer__phone-number {
    font-family: var(--jw-font-cond);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Navigation list
   Handles both render paths:
   - Hardcoded fallback: direct <a> children
   - wp_nav_menu primary: <li><a>...</a></li> children (items_wrap strips the <ul>) */
.jw-mobile-drawer__nav {
    padding: 4px 16px 16px;
    display: flex; flex-direction: column; gap: 2px;
    list-style: none;
}
.jw-mobile-drawer__nav li {
    /* Reset <li> defaults so menu-wrapped nav matches the bare-anchor fallback */
    list-style: none;
    margin: 0; padding: 0;
}
.jw-mobile-drawer__nav a {
    display: flex; align-items: center;
    padding: 13px 16px;
    font-family: var(--jw-font-cond);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.18s ease, color 0.18s ease;
}
/* Bottom-border off for the last item in both render paths */
.jw-mobile-drawer__nav > a:last-child,
.jw-mobile-drawer__nav > li:last-child a { border-bottom: none; }
.jw-mobile-drawer__nav a:hover,
.jw-mobile-drawer__nav a:focus-visible {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

/* Book CTA — pinned to bottom on tall viewports, scrolls with content on short ones */
.jw-mobile-drawer__cta {
    margin-top: auto; padding: 16px;
}
.jw-mobile-drawer__book {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #c9a84c 0%, #b89540 100%);
    color: var(--jw-navy);
    font-family: var(--jw-font-cond);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(201,168,76,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jw-mobile-drawer__book:hover,
.jw-mobile-drawer__book:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(201,168,76,0.35);
}
.jw-mobile-drawer__cta-sub {
    font-family: var(--jw-font-cond);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 10px 0 0;
    text-align: center;
}

/* Prevent body scroll when drawer is open */
body.jw-drawer-open { overflow: hidden; }

/* Responsive breakpoint — hide desktop nav, show hamburger */
@media (max-width: 900px) {
    .jw-primary-nav { display: none; }
    .jw-header-phone { display: none; }     /* phone moves into the drawer */
    .jw-menu-toggle  { display: flex; }
    .jw-header-inner { padding: 0 1rem; gap: 0.75rem; }
    .jw-logo-link img, .jw-brand-logo--header { height: 48px; width: 48px; }
    .jw-brand-logo--header { max-width: 48px; }
    .jw-logo-name { font-size: 0.95rem; }
    .jw-logo-sub  { font-size: 0.55rem; }
}

/* Very small phones — make sure the brand text doesn't crowd the toggle */
@media (max-width: 380px) {
    .jw-logo-link img, .jw-brand-logo--header { height: 44px; width: 44px; }
    .jw-brand-logo--header { max-width: 44px; }
    .jw-logo-name { font-size: 0.88rem; }
    .jw-logo-sub  { font-size: 0.5rem; letter-spacing: 0.14em; }
    .jw-header-inner { gap: 0.5rem; padding: 0 0.85rem; }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--jw-navy); color: rgba(255,255,255,0.65); padding: 3rem 0 1.5rem; }
.jw-footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 2rem; max-width: var(--jw-max-width); margin: 0 auto; padding: 0 1.5rem;
}
.jw-footer-brand .jw-logo-name { font-size: 1.1rem; margin-bottom: 0.5rem; }
.jw-footer-brand p { font-size: 0.85rem; line-height: 1.6; margin: 0; }
.jw-footer-col h4 {
    font-family: var(--jw-font-cond); font-size: 0.72rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--jw-gold); margin-bottom: 1rem;
}
.jw-footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6); padding: 0.2rem 0; }
.jw-footer-col a:hover { color: #fff; }
.jw-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2.5rem; padding-top: 1.25rem;
    max-width: var(--jw-max-width); margin-left: auto; margin-right: auto;
    padding-left: 1.5rem; padding-right: 1.5rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.jw-footer-bottom p { font-size: 0.78rem; margin: 0; color: rgba(255,255,255,0.3); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.jw-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--jw-font-cond); font-size: 0.88rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.75rem 1.75rem; border-radius: var(--jw-radius);
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--jw-transition); text-decoration: none;
    white-space: nowrap; line-height: 1;
}
.jw-btn--primary { background: var(--jw-blue-light); color: #fff; border-color: var(--jw-blue-light); }
.jw-btn--primary:hover { background: var(--jw-teal); border-color: var(--jw-teal); color: #fff; }
.jw-btn--gold { background: var(--jw-gold); color: var(--jw-navy); border-color: var(--jw-gold); }
.jw-btn--gold:hover { background: var(--jw-gold-light); border-color: var(--jw-gold-light); color: var(--jw-navy); }
.jw-btn--outline { background: transparent; color: var(--jw-blue-light); border-color: var(--jw-blue-light); }
.jw-btn--outline:hover { background: var(--jw-blue-light); color: #fff; }
.jw-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.jw-btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.jw-btn--lg { font-size: 1rem; padding: 1rem 2.25rem; }
.jw-btn--sm { font-size: 0.78rem; padding: 0.5rem 1.1rem; }
.jw-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ==========================================================================
   FORMS (shared)
   ========================================================================== */
.jw-label {
    display: block; font-family: var(--jw-font-cond); font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--jw-text-muted); margin-bottom: 0.4rem;
}
.jw-input, .jw-textarea, .jw-select {
    width: 100%; padding: 0.75rem 1rem;
    background: #fff; border: 1.5px solid #d1dae5;
    border-radius: var(--jw-radius); color: var(--jw-text-dark);
    font-size: 0.95rem; transition: border-color var(--jw-transition), box-shadow var(--jw-transition);
    outline: none; appearance: none;
}
.jw-input:focus, .jw-textarea:focus, .jw-select:focus {
    border-color: var(--jw-blue-light);
    box-shadow: 0 0 0 3px rgba(37,99,168,0.12);
}
.jw-input.error, .jw-textarea.error { border-color: #dc2626; }
.jw-textarea { resize: vertical; min-height: 90px; }

/* ==========================================================================
   BOOKING PAGE
   ========================================================================== */
.jw-book-page { padding: 2rem 1.5rem 4rem; background: var(--jw-cream); min-height: 70vh; }

/* Success state */
.jw-book-success {
    max-width: 560px; margin: 3rem auto; text-align: center;
    background: #fff; border-radius: var(--jw-radius-lg);
    padding: 3rem 2rem; box-shadow: var(--jw-shadow-lg);
}
.jw-book-success__icon {
    width: 72px; height: 72px; background: #dcfce7; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--jw-success); margin: 0 auto 1.5rem;
}
.jw-book-success h2 { font-size: 1.75rem; color: var(--jw-text-dark); }
.jw-book-success p { color: var(--jw-text-muted); }
.jw-book-success__phone a { font-size: 1.1rem; font-weight: 700; color: var(--jw-blue-light); }

/* Shell */
.jw-book-shell { max-width: 780px; margin: 0 auto; }

.jw-book-header { text-align: center; margin-bottom: 2rem; }
.jw-book-header__badge {
    display: inline-block; background: #dcfce7; color: #15803d;
    font-family: var(--jw-font-cond); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.35rem 1rem; border-radius: 20px; margin-bottom: 0.75rem;
}
.jw-book-header__title { font-size: 2rem; color: var(--jw-text-dark); margin-bottom: 0.5rem; }
.jw-book-header__sub { color: var(--jw-text-muted); font-size: 0.95rem; margin: 0; }

/* Step indicators */
.jw-book-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 2rem;
}
.jw-book-step { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.jw-book-step__dot {
    width: 34px; height: 34px; border-radius: 50%;
    background: #e2e8f0; display: flex; align-items: center; justify-content: center;
    font-family: var(--jw-font-cond); font-size: 0.85rem; font-weight: 700;
    color: #94a3b8; transition: all var(--jw-transition);
}
.jw-book-step.active .jw-book-step__dot { background: var(--jw-blue-light); color: #fff; }
.jw-book-step.completed .jw-book-step__dot { background: var(--jw-success); color: #fff; }
.jw-book-step__label {
    font-family: var(--jw-font-cond); font-size: 0.65rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #94a3b8; transition: color var(--jw-transition);
}
.jw-book-step.active .jw-book-step__label { color: var(--jw-blue-light); font-weight: 700; }
.jw-book-step.completed .jw-book-step__label { color: var(--jw-success); }
.jw-book-step__line { flex: 1; height: 2px; background: #e2e8f0; min-width: 40px; max-width: 80px; margin: 0 0.5rem 18px; }
.jw-book-step__line.done { background: var(--jw-success); }

/* Panels */
.jw-book-panel { background: #fff; border-radius: var(--jw-radius-lg); padding: 2rem; box-shadow: var(--jw-shadow); }
.jw-bk-step-head { margin-bottom: 1.75rem; }
.jw-bk-step-title { font-size: 1.35rem; margin-bottom: 0.35rem; }
.jw-bk-step-sub { color: var(--jw-text-muted); font-size: 0.9rem; margin: 0; }

/* Error bar */
#jw-booking-error {
    background: #fee2e2; border: 1px solid #fca5a5; border-radius: 8px;
    padding: 0.875rem 1.25rem; color: var(--jw-error);
    margin: 0 0 1rem; font-size: 0.9rem; display: none;
}

/* Trip cards */
.jw-trip-group { margin-bottom: 2rem; }
.jw-trip-group__label {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
}
.jw-trip-group__boat-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.jw-trip-group__icon { font-size: 1.5rem; }
.jw-trip-group__title { font-weight: 700; font-size: 1rem; color: var(--jw-text-dark); }
.jw-trip-group__note { font-size: 0.8rem; color: var(--jw-text-muted); }

.jw-trip-group--secondary .jw-trip-group__label {
    padding-top: 1.5rem; border-top: 1px solid #e8edf2;
}

.jw-trip-cards { display: flex; flex-direction: column; gap: 0.75rem; }

.jw-trip-card {
    display: flex; align-items: stretch;
    border: 2px solid #e2e8f0; border-radius: var(--jw-radius-lg);
    overflow: hidden; cursor: pointer;
    transition: border-color var(--jw-transition), box-shadow var(--jw-transition);
    position: relative;
}
.jw-trip-card:hover { border-color: var(--jw-blue-light); box-shadow: 0 4px 20px rgba(37,99,168,0.12); }
.jw-trip-card.selected { border-color: var(--jw-blue-light); box-shadow: 0 4px 20px rgba(37,99,168,0.18); }
.jw-trip-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

/* v3.27.2 — Image column sized to preserve source aspect ratio.
   Desktop image column widened from 130px → 180px so the source's
   3:2 ratio renders at ~120px tall (was squished to ~115×180 = 1:1.5
   crop, severely cutting off fish heads/tails). Each image is forced
   to a 3:2 box matching the captain's source artwork, so center-cover
   shows the WHOLE fish with minimal crop. */
.jw-trip-card__img {
    width: 180px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}
.jw-trip-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.jw-trip-card__img-overlay { position: absolute; inset: 0; background: linear-gradient(to right, transparent 60%, rgba(255,255,255,0.15)); }

.jw-trip-card__body { flex: 1; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.3rem; }
.jw-trip-card__badges { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.jw-trip-card__badge {
    font-family: var(--jw-font-cond); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--jw-navy); color: var(--jw-gold);
    padding: 0.25rem 0.6rem; border-radius: 4px;
}
.jw-trip-card__badge--muted { background: #e8edf2; color: var(--jw-text-muted); }
.jw-trip-card__badge-sub { font-size: 0.72rem; color: var(--jw-text-muted); }
.jw-trip-card__name { font-family: var(--jw-font-serif); font-size: 1.05rem; font-weight: 700; color: var(--jw-text-dark); }
.jw-trip-card__price { font-family: var(--jw-font-cond); font-size: 1rem; font-weight: 700; color: var(--jw-blue-light); }
.jw-trip-card__targets { font-size: 0.8rem; color: var(--jw-text-muted); }

.jw-trip-card__check {
    display: none; position: absolute; top: 10px; right: 12px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--jw-blue-light); color: #fff;
    align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
    /* v3.27.2 — White ring + soft shadow ensures the checkmark is
       always visible whether it lands on white card body (desktop) or
       on top of a varied photo background (mobile). */
    box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0,0,0,0.25);
}
.jw-trip-card.selected .jw-trip-card__check { display: flex; }

/* Secondary (my-boat) trip cards */
.jw-trip-card--secondary .jw-trip-card__body--inline {
    flex-direction: row; align-items: center; justify-content: space-between;
}
.jw-trip-card__price-col { text-align: right; }
.jw-trip-card__price-note { font-size: 0.7rem; color: var(--jw-text-muted); margin-top: 2px; }

/* Step 2 – setup */
.jw-setup-card {
    display: flex; gap: 1.5rem; border: 1.5px solid #e2e8f0; border-radius: var(--jw-radius-lg);
    overflow: hidden; background: var(--jw-cream);
}
/* v3.27.2 — Setup card photo widened (200→240px) and aspect-ratio'd
   so boat photos render at their natural 3:2 shape on desktop. On
   mobile (handled in the @media block below) it stacks to full-width
   with 16:9 aspect so the photo dominates without consuming too much
   vertical space before the body content. */
.jw-setup-card__photo { width: 240px; flex-shrink: 0; position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.jw-setup-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.jw-setup-card__photo-badge {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    background: var(--jw-gold); color: var(--jw-navy);
    font-family: var(--jw-font-cond); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.3rem 0.8rem; border-radius: 20px; white-space: nowrap;
}
.jw-setup-card__body { padding: 1.5rem; flex: 1; }
.jw-setup-card__title { font-family: var(--jw-font-cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--jw-text-muted); margin-bottom: 0.75rem; }
.jw-setup-card__list { list-style: none; padding: 0; margin: 0 0 1rem; }
.jw-setup-card__list li { padding: 0.25rem 0; font-size: 0.88rem; color: var(--jw-text-body); }
.jw-setup-card__list--not li { color: var(--jw-text-muted); }
.jw-setup-info-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--jw-text-body); padding: 0.3rem 0; }
.jw-setup-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Boat requirements */
.jw-setup-reqs { background: #fff; border-radius: var(--jw-radius); padding: 1rem 1.25rem; margin-top: 1rem; }
.jw-setup-reqs__title { font-family: var(--jw-font-cond); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--jw-text-dark); margin-bottom: 0.75rem; }
.jw-setup-reqs__items { display: flex; flex-direction: column; gap: 0.6rem; }
.jw-setup-req { display: flex; gap: 0.75rem; align-items: flex-start; }
.jw-setup-req__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.jw-setup-req--required .jw-setup-req__dot { background: #dc2626; }
.jw-setup-req--preferred .jw-setup-req__dot { background: var(--jw-gold); }
.jw-setup-req strong { font-size: 0.88rem; color: var(--jw-text-dark); display: block; }
.jw-setup-req p { font-size: 0.8rem; color: var(--jw-text-muted); margin: 2px 0 0; }

/* Step 3 – date */
.jw-book-date-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.jw-book-logistics {
    display: flex; gap: 0; flex-wrap: wrap;
    border: 1.5px solid #e2e8f0; border-radius: var(--jw-radius); overflow: hidden;
}
.jw-book-logistics__item {
    flex: 1; min-width: 160px; display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.875rem 1rem; border-right: 1px solid #e2e8f0; background: var(--jw-cream);
}
.jw-book-logistics__item:last-child { border-right: none; }
.jw-book-logistics__icon { font-size: 1.1rem; margin-top: 2px; }
.jw-book-logistics__label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--jw-text-muted); }
.jw-book-logistics__val { font-size: 0.85rem; font-weight: 600; color: var(--jw-text-dark); margin-top: 2px; }

/* v3.27.8 — Calendar frame switched from cream to white with a
   subtle border. Previously the frame used `var(--jw-cream)`
   (#f5f7fa) which matched the page-level background, so the
   calendar visually disappeared into its surroundings. White + 1px
   border lets the calendar read as a discrete card whether the
   parent is white (booking panel) or grey (page background).
   The inner .flatpickr-calendar border is dropped since the
   outer frame now carries it (avoids a double-border look). */
.jw-book-cal-frame { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--jw-radius); padding: 1.25rem; }
#jw-inline-cal .flatpickr-calendar { width: 100%; box-shadow: none; font-family: var(--jw-font-sans); }
.flatpickr-calendar { background: #fff !important; border: none !important; border-radius: var(--jw-radius) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--jw-blue-light) !important; border-color: var(--jw-blue-light) !important; }
.flatpickr-day.disabled, .flatpickr-day.flatpickr-disabled { color: #cbd5e1 !important; background: transparent !important; cursor: not-allowed; text-decoration: line-through; }
.jw-season-note { font-size: 0.82rem; color: var(--jw-text-muted); margin-top: 0.5rem; font-style: italic; }
.jw-book-cal-selected { font-size: 0.88rem; color: var(--jw-text-muted); margin-top: 0.75rem 0 0; }
.jw-book-cal-selected.has-date { color: var(--jw-success); font-weight: 600; }

/* Guest steppers */
.jw-book-guests-wrap { border: 1.5px solid #e2e8f0; border-radius: var(--jw-radius); overflow: hidden; }
.jw-book-guests-label {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.875rem 1.25rem; background: var(--jw-cream);
    border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 0.9rem; color: var(--jw-text-dark);
}
.jw-guest-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1.25rem; border-bottom: 1px solid #e2e8f0;
}
.jw-guest-row:last-child { border-bottom: none; }
.jw-guest-row__label { flex: 1; }
.jw-guest-row__age { font-size: 0.9rem; color: var(--jw-text-dark); font-weight: 500; display: block; }
.jw-guest-row__price-note { font-size: 0.75rem; color: var(--jw-text-muted); }
.jw-guest-row__price-note--green { color: var(--jw-success); font-weight: 600; }

.jw-guest-stepper { display: flex; align-items: center; gap: 0.75rem; }
.jw-stepper-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--jw-cream); border: 1.5px solid #d1dae5;
    font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    color: var(--jw-text-dark); transition: all var(--jw-transition);
}
.jw-stepper-btn:hover { background: var(--jw-blue-light); border-color: var(--jw-blue-light); color: #fff; }
.jw-stepper-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.jw-stepper-val { font-size: 1.1rem; font-weight: 700; color: var(--jw-text-dark); min-width: 28px; text-align: center; }

.jw-guest-price-est {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
    padding: 1rem 1.25rem; background: #eff6ff; border-top: 1.5px solid #bfdbfe;
}
.jw-guest-price-est__label { font-size: 0.85rem; color: var(--jw-text-muted); }
.jw-guest-price-est__val { font-size: 1.25rem; font-weight: 700; color: var(--jw-blue-light); font-family: var(--jw-font-cond); }
.jw-guest-price-est__note { font-size: 0.72rem; color: var(--jw-text-muted); flex-basis: 100%; }

/* v3.28.0 — Tier breakdown table.
   Shown beneath the "Total trip price" strip on Step 2 of the booking
   flow. Lists every adult-count tier (1, 2, 3…) so the customer can
   see the full price table and verify which row matches their party.
   The currently-selected adult count is highlighted. Youth/kids rows
   appear when those guest types are allowed on the trip. */
.jw-price-breakdown {
    background: #ffffff; border-top: 1px solid #e2e8f0;
    padding: 0.85rem 1.25rem 1rem;
}
.jw-pb-head {
    font-family: var(--jw-font-cond); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8;
    margin-bottom: 0.5rem;
}
.jw-pb-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0.35rem 0.55rem; border-radius: 8px;
    font-size: 0.88rem;
    transition: background-color 0.18s ease;
}
.jw-pb-row + .jw-pb-row { margin-top: 0.1rem; }
.jw-pb-row__label { color: #475569; }
.jw-pb-row__val { font-weight: 700; color: var(--jw-text-dark); font-family: var(--jw-font-cond); }
.jw-pb-row__val--free { color: #15803d; }
.jw-pb-row.is-active {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 var(--jw-blue-light);
}
.jw-pb-row.is-active .jw-pb-row__label { color: var(--jw-text-dark); font-weight: 600; }
.jw-pb-row.is-active .jw-pb-row__val { color: var(--jw-blue-light); }
.jw-pb-row--extra .jw-pb-row__label { color: #64748b; font-size: 0.84rem; }
.jw-pb-row--extra .jw-pb-row__val { font-size: 0.92rem; }

/* Step 4 – info / summary */
.jw-book-summary {
    background: var(--jw-navy); border-radius: var(--jw-radius-lg);
    padding: 1.5rem; margin-bottom: 1.75rem;
}
.jw-book-summary__title {
    font-family: var(--jw-font-cond); font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--jw-gold); margin-bottom: 1rem;
}
.jw-book-summary__row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.jw-book-summary__row:last-of-type { border-bottom: none; }
.jw-book-summary__row > span {
    font-family: var(--jw-font-cond); font-size: 0.75rem;
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.jw-book-summary__row > strong { font-size: 0.95rem; color: #fff; font-weight: 600; text-align: right; max-width: 65%; }
.jw-book-summary__payment {
    margin-top: 1rem; padding: 0.75rem; background: rgba(21,128,61,0.18);
    border: 1px solid rgba(21,128,61,0.35); border-radius: 8px;
    font-size: 0.82rem; color: #86efac; text-align: center;
}

.jw-book-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.jw-form-group--full { grid-column: 1 / -1; }
.jw-form-group label.jw-label { margin-bottom: 0.4rem; }

.jw-checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.jw-checkbox-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--jw-text-body); cursor: pointer; }
.jw-checkbox-item input { margin-top: 3px; accent-color: var(--jw-blue-light); }
.jw-checkbox-item--required { color: var(--jw-text-dark); font-weight: 500; }

.jw-bring-reminder {
    display: flex; align-items: flex-start; gap: 0.6rem;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
    padding: 0.75rem 1rem; font-size: 0.85rem; color: #78350f;
}

/* Nav row */
.jw-book-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #e8edf2;
}

/* Submit spinner */
.jw-book-submit__spinner svg { animation: jw-spin 0.8s linear infinite; }
@keyframes jw-spin { to { transform: rotate(360deg); } }

/* Trust strip */
.jw-book-trust {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem;
    margin-top: 1.5rem; padding: 1rem 0;
}
.jw-book-trust__item { font-size: 0.8rem; color: var(--jw-text-muted); display: flex; align-items: center; gap: 0.4rem; }
.jw-book-trust__item span { color: var(--jw-success); font-weight: 700; }

/* ==========================================================================
   HUB PAGE (frontend admin)
   ========================================================================== */
body.jw-hub-body { background: #f1f5f9; }
.jw-hub-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.jw-hub-sidebar {
    width: 220px; background: var(--jw-navy); flex-shrink: 0;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}
.jw-hub-sidebar-logo {
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.jw-hub-sidebar-logo .jw-logo-name { font-size: 0.95rem; }
.jw-hub-sidebar-logo .jw-logo-sub { font-size: 0.58rem; }

.jw-hub-nav { padding: 1rem 0.75rem; flex: 1; }
.jw-hub-nav-section { margin-bottom: 1.5rem; }
.jw-hub-nav-section-label {
    font-family: var(--jw-font-cond); font-size: 0.6rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.3); padding: 0 0.5rem 0.5rem;
}
.jw-hub-nav a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.75rem; border-radius: 8px; margin-bottom: 2px;
    font-family: var(--jw-font-cond); font-size: 0.82rem;
    font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(255,255,255,0.65); text-decoration: none;
    transition: all var(--jw-transition);
}
.jw-hub-nav a:hover, .jw-hub-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.jw-hub-nav a.active { background: var(--jw-blue-light); color: #fff; }
.jw-hub-nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.jw-hub-sidebar-footer {
    padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.06);
}
.jw-hub-sidebar-footer a {
    font-size: 0.75rem; color: rgba(255,255,255,0.35);
    text-decoration: none; display: block; padding: 0.2rem 0;
}
.jw-hub-sidebar-footer a:hover { color: rgba(255,255,255,0.7); }

/* Main content */
.jw-hub-main { flex: 1; overflow-x: hidden; }

.jw-hub-topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-bottom: 1px solid #e2e8f0;
    padding: 0 2rem; height: 60px; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.jw-hub-topbar__title { font-family: var(--jw-font-serif); font-size: 1.1rem; color: var(--jw-text-dark); }
.jw-hub-topbar__right { display: flex; align-items: center; gap: 1rem; }
.jw-hub-topbar__user { font-size: 0.82rem; color: var(--jw-text-muted); }

/* Stats bar */
.jw-hub-stats {
    display: flex; gap: 1rem; flex-wrap: wrap;
    padding: 1.5rem 2rem;
}
.jw-hub-stat {
    flex: 1; min-width: 120px; background: #fff;
    border-radius: var(--jw-radius); padding: 1rem 1.25rem;
    border: 1.5px solid #e2e8f0; cursor: pointer;
    transition: border-color var(--jw-transition), box-shadow var(--jw-transition);
}
.jw-hub-stat:hover { border-color: var(--jw-blue-light); box-shadow: 0 2px 12px rgba(37,99,168,0.1); }
.jw-hub-stat.active { border-color: var(--jw-blue-light); background: #eff6ff; }
.jw-hub-stat__count { font-family: var(--jw-font-cond); font-size: 2rem; font-weight: 700; color: var(--jw-text-dark); line-height: 1; }
.jw-hub-stat__label { font-size: 0.75rem; color: var(--jw-text-muted); margin-top: 0.25rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.jw-hub-stat--new .jw-hub-stat__count { color: var(--jw-blue-light); }
.jw-hub-stat--confirmed .jw-hub-stat__count { color: var(--jw-success); }
.jw-hub-stat--cancelled .jw-hub-stat__count { color: #dc2626; }
.jw-hub-stat--followup .jw-hub-stat__count { color: #d97706; }

/* Filters */
.jw-hub-filters {
    display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
    padding: 0 2rem 1.25rem;
}
.jw-hub-search {
    flex: 1; min-width: 200px; max-width: 320px;
    padding: 0.6rem 1rem; border: 1.5px solid #d1dae5; border-radius: var(--jw-radius);
    font-size: 0.875rem; outline: none; background: #fff;
}
.jw-hub-search:focus { border-color: var(--jw-blue-light); }
.jw-hub-select {
    padding: 0.6rem 0.875rem; border: 1.5px solid #d1dae5; border-radius: var(--jw-radius);
    font-size: 0.875rem; outline: none; background: #fff; cursor: pointer;
}
.jw-hub-select:focus { border-color: var(--jw-blue-light); }
.jw-hub-filter-clear { font-size: 0.8rem; color: var(--jw-text-muted); cursor: pointer; text-decoration: underline; }

/* Bookings table */
.jw-hub-table-wrap { padding: 0 2rem 2rem; overflow-x: auto; }
.jw-hub-table {
    width: 100%; border-collapse: collapse; font-size: 0.875rem;
    background: #fff; border-radius: var(--jw-radius); overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.jw-hub-table th {
    background: var(--jw-cream); border-bottom: 1.5px solid #e2e8f0;
    padding: 0.75rem 1rem; text-align: left;
    font-family: var(--jw-font-cond); font-size: 0.7rem;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--jw-text-muted); white-space: nowrap;
}
.jw-hub-table td { padding: 0.875rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: var(--jw-text-dark); }
.jw-hub-table tr:last-child td { border-bottom: none; }
.jw-hub-table tr:hover td { background: #f8fafc; }
.jw-hub-table__name { font-weight: 600; }
.jw-hub-table__sub { font-size: 0.75rem; color: var(--jw-text-muted); margin-top: 2px; }
.jw-hub-table tr.selected td { background: #eff6ff; }

/* Status badges */
.jw-status {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--jw-font-cond); font-size: 0.68rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.25rem 0.65rem; border-radius: 20px;
}
.jw-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.jw-status--new { background: #dbeafe; color: #1d4ed8; }
.jw-status--confirmed { background: #dcfce7; color: #15803d; }
.jw-status--needs_follow_up { background: #fef3c7; color: #b45309; }
.jw-status--cancelled { background: #fee2e2; color: #b91c1c; }
.jw-status--completed { background: #f1f5f9; color: #475569; }

/* Action buttons */
.jw-hub-row-action {
    background: none; border: 1px solid #e2e8f0; border-radius: 6px;
    padding: 0.3rem 0.65rem; font-size: 0.75rem; color: var(--jw-text-muted);
    cursor: pointer; transition: all var(--jw-transition);
}
.jw-hub-row-action:hover { border-color: var(--jw-blue-light); color: var(--jw-blue-light); }

/* Detail drawer */
.jw-hub-detail {
    position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%;
    background: #fff; box-shadow: -4px 0 32px rgba(0,0,0,0.16);
    z-index: 300; transform: translateX(100%); transition: transform 0.3s ease;
    display: flex; flex-direction: column; overflow: hidden;
}
.jw-hub-detail.open { transform: translateX(0); }
.jw-hub-detail-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; background: var(--jw-navy);
}
.jw-hub-detail-header h3 { font-size: 0.95rem; color: #fff; margin: 0; }
.jw-hub-detail-close {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; transition: background var(--jw-transition);
}
.jw-hub-detail-close:hover { background: rgba(255,255,255,0.2); }

.jw-hub-detail-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.jw-hub-detail-section { margin-bottom: 1.5rem; }
.jw-hub-detail-section-label {
    font-family: var(--jw-font-cond); font-size: 0.65rem;
    font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--jw-text-muted); margin-bottom: 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8edf2;
}
.jw-hub-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.jw-hub-detail-field {}
.jw-hub-detail-field__label { font-size: 0.72rem; color: var(--jw-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.jw-hub-detail-field__val { font-size: 0.9rem; color: var(--jw-text-dark); font-weight: 500; margin-top: 2px; word-break: break-word; }
.jw-hub-detail-field--full { grid-column: 1/-1; }

/* Detail actions */
.jw-hub-detail-actions { padding: 1rem 1.5rem; border-top: 1px solid #e2e8f0; background: var(--jw-cream); }
.jw-hub-detail-actions h4 {
    font-family: var(--jw-font-cond); font-size: 0.65rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--jw-text-muted); margin-bottom: 0.75rem;
}
.jw-hub-status-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.jw-hub-status-btn {
    padding: 0.45rem 0.875rem; border-radius: 6px; font-size: 0.78rem;
    font-family: var(--jw-font-cond); font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; cursor: pointer; border: 1.5px solid transparent;
    transition: all var(--jw-transition);
}
.jw-hub-status-btn--confirm { background: #dcfce7; color: #15803d; border-color: #86efac; }
.jw-hub-status-btn--confirm:hover { background: #15803d; color: #fff; }
.jw-hub-status-btn--followup { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.jw-hub-status-btn--followup:hover { background: #b45309; color: #fff; }
.jw-hub-status-btn--cancel { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.jw-hub-status-btn--cancel:hover { background: #b91c1c; color: #fff; }
.jw-hub-status-btn--complete { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.jw-hub-status-btn--complete:hover { background: #475569; color: #fff; }

.jw-hub-notes-area {
    width: 100%; padding: 0.65rem 0.875rem;
    border: 1.5px solid #d1dae5; border-radius: 8px;
    font-size: 0.875rem; resize: vertical; min-height: 80px;
    font-family: var(--jw-font-sans); outline: none;
}
.jw-hub-notes-area:focus { border-color: var(--jw-blue-light); }
.jw-hub-save-notes {
    margin-top: 0.5rem; padding: 0.55rem 1.25rem;
    background: var(--jw-navy); color: #fff; border: none; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: background var(--jw-transition);
}
.jw-hub-save-notes:hover { background: var(--jw-blue-light); }

/* Overlay backdrop */
.jw-hub-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.35); z-index: 299;
}
.jw-hub-backdrop.open { display: block; }

/* Empty state */
.jw-hub-empty {
    text-align: center; padding: 4rem 2rem; color: var(--jw-text-muted);
}
.jw-hub-empty__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.jw-hub-empty h3 { font-size: 1.1rem; color: var(--jw-text-muted); }

/* Loading state */
.jw-hub-loading {
    display: flex; align-items: center; justify-content: center;
    padding: 3rem; color: var(--jw-text-muted);
}
.jw-hub-spinner {
    width: 32px; height: 32px; border: 3px solid #e2e8f0;
    border-top-color: var(--jw-blue-light); border-radius: 50%;
    animation: jw-spin 0.7s linear infinite; margin-right: 0.75rem;
}

/* Toast notifications */
.jw-toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 1000;
    background: var(--jw-navy); color: #fff;
    padding: 0.875rem 1.5rem; border-radius: var(--jw-radius);
    font-size: 0.88rem; box-shadow: var(--jw-shadow-lg);
    transform: translateY(20px); opacity: 0;
    transition: all 0.3s ease; pointer-events: none;
}
.jw-toast.show { transform: translateY(0); opacity: 1; }
.jw-toast--success { background: #15803d; }
.jw-toast--error { background: #b91c1c; }

/* Hub mobile adjustments */
@media (max-width: 768px) {
    .jw-hub-sidebar { display: none; }
    .jw-hub-stats { padding: 1rem; }
    .jw-hub-filters { padding: 0 1rem 1rem; }
    .jw-hub-table-wrap { padding: 0 1rem 1rem; }
    .jw-hub-topbar { padding: 0 1rem; }
    .jw-hub-detail { width: 100%; }
}

/* ==========================================================================
   FRONT PAGE
   ========================================================================== */
.jw-hero {
    position: relative; min-height: 90vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--jw-navy); overflow: hidden;
}
.jw-hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(135deg,#0b1f3a 0%,#1a4a7a 100%);
}
.jw-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.jw-hero__content {
    position: relative; z-index: 1; text-align: center;
    max-width: 760px; padding: 4rem 1.5rem;
}
.jw-hero__eyebrow {
    font-family: var(--jw-font-cond); font-size: 0.72rem;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--jw-gold); margin-bottom: 1rem;
}
.jw-hero__title { font-size: clamp(2rem, 6vw, 3.5rem); color: #fff; margin-bottom: 1rem; }
.jw-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.jw-hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* v3.27.3 — Hero trust strip. Replaces inline styles previously
   sprinkled on each span. Class lets the ≤600px media query tighten
   gaps so the four short trust items (USCG, no payment upfront, free
   cancellation, all gear) wrap cleanly in 2x2 on a narrow phone
   instead of producing one orphan badge on its own row. */
.jw-hero__trust {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1.5rem; margin-top: 2.5rem;
}
.jw-hero__trust-item {
    font-size: 0.78rem; color: rgba(255,255,255,0.6);
    display: inline-flex; align-items: center; gap: 0.4rem;
    white-space: nowrap;
}

/* Sections */
.jw-section { padding: 5rem 1.5rem; }
.jw-section > * { max-width: var(--jw-max-width); margin-left: auto; margin-right: auto; }
.jw-section--dark { background: var(--jw-navy); }
.jw-section--cream { background: var(--jw-cream); }
.jw-section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.jw-section-eyebrow {
    font-family: var(--jw-font-cond); font-size: 0.72rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--jw-gold); margin-bottom: 0.5rem; display: block;
}
.jw-section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.jw-section--dark .jw-section-title { color: #fff; }
.jw-section-sub { color: var(--jw-text-muted); font-size: 0.95rem; }
.jw-section--dark .jw-section-sub { color: rgba(255,255,255,0.6); }

/* Charter cards grid
   auto-fit (not auto-fill) collapses empty tracks so partial rows
   center themselves; minmax max-cap stops cards from stretching huge
   when there are only 2-3; justify-content centers the last partial row. */
.jw-charters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    gap: 1.5rem;
    justify-content: center;
}
.jw-charter-card {
    background: #fff; border-radius: var(--jw-radius-lg);
    overflow: hidden; box-shadow: var(--jw-shadow);
    transition: transform var(--jw-transition), box-shadow var(--jw-transition);
    display: flex; flex-direction: column;
}
.jw-charter-card:hover { transform: translateY(-4px); box-shadow: var(--jw-shadow-lg); }
/* v3.27.2 — Match captain's 3:2 source artwork exactly. Previously
   forced height 200px which on a 360px-wide card yields ~1.8:1 (close
   to 3:2, OK) — but at mobile widths (e.g. 320px card) the same 200px
   produced a 1.6:1 crop that cut off heads. Aspect-ratio adapts to
   whatever width the grid gives it, so a fish photo is always
   displayed in full regardless of the card's column size. */
.jw-charter-card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.jw-charter-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; }
.jw-charter-card:hover .jw-charter-card__img img { transform: scale(1.04); }
.jw-charter-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.jw-charter-card__badge {
    display: inline-block; font-family: var(--jw-font-cond); font-size: 0.63rem;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--jw-navy); color: var(--jw-gold);
    padding: 0.25rem 0.6rem; border-radius: 4px; margin-bottom: 0.5rem;
}
.jw-charter-card__title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.jw-charter-card__excerpt { font-size: 0.85rem; color: var(--jw-text-muted); margin-bottom: 1rem; flex: 1; }
.jw-charter-card__footer { display: flex; align-items: center; justify-content: space-between; }
.jw-charter-card__price { font-family: var(--jw-font-cond); font-size: 1.1rem; font-weight: 700; color: var(--jw-blue-light); }

/* Why section
   Same centering trick as charter cards — auto-fit collapses empties,
   max track width stops oversizing, justify-content centers partials. */
.jw-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: var(--jw-max-width);
    margin: 0 auto;
    justify-content: center;
}

/* Captain-page custom SVG icon wrapper
   Centers the inline SVG above the card title and matches
   the spacing of the previous emoji-based layout. */
.jw-cap-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    height: 56px;
}
.jw-cap-icon { display: block; }
.jw-cap-icon--inline {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.jw-why-item { text-align: center; }
.jw-why-item__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.jw-why-item__title { font-size: 1rem; color: #fff; margin-bottom: 0.4rem; }
.jw-why-item__text { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* CTA section */
.jw-cta { background: var(--jw-blue); padding: 5rem 1.5rem; text-align: center; }
.jw-cta h2 { color: #fff; font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 0.75rem; }
.jw-cta p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.jw-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
    .jw-book-contact-grid { grid-template-columns: 1fr; }
    .jw-setup-card { flex-direction: column; }
    .jw-setup-card__photo { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .jw-setup-two-col { grid-template-columns: 1fr; }

    /* v3.27.3 — Homepage hero polish for narrow phones.
       - Tighten section padding so title + CTAs fit above the fold
         on small phones without scrolling
       - Stack CTAs full-width so the Book A Trip / phone-number row
         doesn't squeeze into half-buttons that get text-clipped
       - Trust strip: tighter gap, slightly larger text since each
         row gets more horizontal room when wrapped, and items wrap
         in pairs (2 per row) instead of 1+3 awkward orphan layout
       - Address bar accommodation: use 100svh where supported so
         the hero is exactly the visible viewport without overflowing */
    .jw-hero { min-height: 88vh; min-height: 88svh; }
    .jw-hero__content { padding: 2.5rem 1.25rem; }
    .jw-hero__sub { font-size: 1rem; margin-bottom: 1.5rem; }
    .jw-hero__actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; gap: 0.75rem; }
    .jw-hero__actions .jw-btn { width: 100%; }
    .jw-hero__trust { gap: 0.6rem 1.1rem; margin-top: 1.75rem; }
    .jw-hero__trust-item { font-size: 0.75rem; }

    /* v3.27.3 — Tighter section padding on mobile so scrolling
       through homepage sections doesn't feel sluggish. Desktop's
       5rem (80px) top/bottom is too generous on a 360px viewport;
       2.5rem (40px) reads better with the smaller content density. */
    .jw-section { padding: 3rem 1.25rem; }
    .jw-section-head { margin: 0 auto 2rem; }

    /* v3.27.2 — Trip cards stack vertically on mobile. Image is
       full-width with the captain's source 3:2 ratio preserved, so
       fish photos display in their entirety instead of being squashed
       into a tall narrow strip. Body content sits below with consistent
       padding. Selected-state checkmark moves to the image's top-right
       corner where it remains visible without competing with the badge
       (which is bottom-left on mobile). */
    .jw-trip-card { flex-direction: column; align-items: stretch; }
    .jw-trip-card__img {
        width: 100%;
        aspect-ratio: 3 / 2;
    }
    .jw-trip-card__img-overlay {
        /* Switch overlay from right-fade to bottom-fade on mobile so
           the badge (which sits on the image's bottom-left corner via
           absolute positioning) has a contrast backdrop. */
        background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.25));
    }
    .jw-trip-card__body { padding: 0.9rem 1rem 1.1rem; gap: 0.35rem; }
    .jw-trip-card__name { font-size: 1.15rem; line-height: 1.25; }
    .jw-trip-card__price { font-size: 1.05rem; }

    /* Secondary (BYOB) cards keep their image too — same treatment */
    .jw-trip-card--secondary .jw-trip-card__body--inline {
        flex-direction: column; align-items: stretch; gap: 0.5rem;
    }
    .jw-trip-card__price-col { text-align: left; }

    .jw-book-panel { padding: 1.25rem; }
    .jw-book-logistics { flex-direction: column; }
    .jw-book-logistics__item { border-right: none; border-bottom: 1px solid #e2e8f0; }
    .jw-book-logistics__item:last-child { border-bottom: none; }
}

/* ============================================================
   BOOKING WIZARD — v3.17.0 UX polish
   ============================================================ */

/* B5: Stronger selected-state on mobile — a 2px border change is too
   subtle on small screens. Add a soft background tint + thicker border. */
.jw-trip-card.selected {
    background: #eff6ff;
    border-color: var(--jw-blue-light);
    box-shadow: 0 4px 20px rgba(37,99,168,0.18);
}

/* Fish icon next to "targets" text on trip cards. Inline alignment
   so the icon hugs the species line without breaking the layout. */
.jw-trip-card__targets-icon {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 4px;
}

/* Inline icon alignment for setup info rows */
.jw-setup-info-row > svg { flex-shrink: 0; margin-top: 3px; }

/* ────────────────────────────────────────────────────────────────
   BOOKING — v3.20.0 (Step 2 merge)

   The collapsible "Everything Included" panel sits at the top of
   the merged date+setup step for captain's-boat trips. Native
   <details>/<summary> — keyboard-accessible, no JS.
   The inline BYOB context block uses the same visual language
   but stays open by default (qualifying info, not reassurance).
   ──────────────────────────────────────────────────────────────── */

.jw-setup-collapse {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--jw-radius-lg);
    margin: 0 0 1.25rem;
    overflow: hidden;
}
.jw-setup-collapse__summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.jw-setup-collapse__summary::-webkit-details-marker { display: none; }
.jw-setup-collapse__icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.jw-setup-collapse__label {
    font-family: var(--jw-font-cond);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #14532d;
}
.jw-setup-collapse__sub {
    font-size: .82rem;
    color: #15803d;
    flex: 1;
    margin-left: .25rem;
}
.jw-setup-collapse__chevron {
    font-size: .9rem;
    color: #15803d;
    transition: transform var(--jw-transition);
    flex-shrink: 0;
}
.jw-setup-collapse[open] .jw-setup-collapse__chevron {
    transform: rotate(180deg);
}
.jw-setup-collapse__body {
    padding: .25rem 1.1rem 1rem;
    border-top: 1px solid #bbf7d0;
    margin-top: .25rem;
}
.jw-setup-card__list--inline {
    column-count: 2;
    column-gap: 1.5rem;
    margin: .75rem 0;
}
.jw-setup-card__list--inline li {
    break-inside: avoid;
    padding: .2rem 0;
    font-size: .85rem;
    color: var(--jw-text-body);
}
.jw-setup-collapse__bring {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .75rem 0 0;
    padding: .55rem .75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: .82rem;
    color: #78350f;
}
.jw-setup-collapse__bring svg { flex-shrink: 0; }

/* BYOB context block — inline, not collapsed */
.jw-setup-mine-context {
    background: var(--jw-cream);
    border: 1.5px solid #e2e8f0;
    border-radius: var(--jw-radius-lg);
    padding: 1.25rem;
    margin: 0 0 1.25rem;
}
.jw-setup-mine-context__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--jw-text-dark);
    margin: 0 0 .75rem;
}
.jw-setup-mine-context .jw-setup-two-col {
    margin-bottom: 1rem;
}

/* On narrow screens, collapse the 2-column "includes" list to 1 */
@media (max-width: 600px) {
    .jw-setup-card__list--inline { column-count: 1; }
    .jw-setup-collapse__sub { display: none; } /* summary line tightens */
}

/* B1: Resume banner shown when wizard state is restored from
   sessionStorage. Gentle blue, dismissible via "start over" link. */
.jw-book-resume-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 0.7rem 1rem;
    border-radius: var(--jw-radius);
    font-size: 0.88rem;
    margin: 0 0 1.5rem;
    text-align: center;
}
.jw-book-resume-banner__reset {
    background: none;
    border: none;
    color: #1e40af;
    text-decoration: underline;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}
.jw-book-resume-banner__reset:hover { color: var(--jw-blue); }

/* B13: Mobile step indicators — labels were too long on narrow screens,
   step lines could push the row to overflow. Shrink labels and tighten
   spacing under 480px. */
@media (max-width: 480px) {
    .jw-book-step__dot { width: 28px; height: 28px; font-size: 0.78rem; }
    .jw-book-step__label { font-size: 0.6rem; letter-spacing: 0.06em; }
    .jw-book-step__line { min-width: 20px; max-width: 40px; margin: 0 0.25rem 16px; }
}
@media (max-width: 360px) {
    /* Hide step labels entirely on very narrow viewports — keep numbered
       dots which remain accessible to screen readers via aria-label. */
    .jw-book-step__label { display: none; }
}

/* B15: Trust strip — on mobile, condense to a single column with tighter
   row spacing instead of the desktop 2-col wrap which looked awkward. */
@media (max-width: 600px) {
    .jw-book-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
        padding: 1.25rem 0.5rem;
    }
    .jw-book-trust__item { font-size: 0.82rem; }
}

/* Native date input fallback (B9). Shown only when Flatpickr fails to
   load. Styled to match the rest of the booking form. */
#jw-date-fallback .jw-input {
    font-size: 1rem;
    padding: 0.65rem 0.875rem;
}

/* ============================================================
   ACCESSIBILITY — WordPress-standard screen-reader-text utility.
   Used by skip-link (header.php) and by hidden form labels in
   page-launch.php. Self-contained so the theme doesn't rely on
   wp-admin/dist CSS being loaded.
   ============================================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: .875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
