/* ==========================================================================
   Take You On Vacation - storefront styles
   Theme colors are injected as --primary / --accent from settings (header.php).
   ========================================================================== */

:root {
    --primary: #1a3a6b;
    --accent: #f5a623;
    --dark: #12233f;
    --text: #33383f;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg-soft: #f6f8fb;
    --white: #ffffff;
    --price: #e2483d;   /* the one price red (was #c0392b here, #e2483d on package pages) */
    --radius: 10px;
    --shadow: 0 10px 30px rgba(18, 35, 63, 0.08);
    --container: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    background: var(--white);
    overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; margin: 0 0 .5em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 26px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
    text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; }
/* Darkened accent rather than a fixed orange, so the hover follows a changed
   accent_color in Admin -> Settings. Literal first for older browsers. */
.btn--primary:hover { background: #e0940f; background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--lg { padding: 15px 38px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ---- Top bar ---- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 8px; }
.topbar__contact a { color: var(--muted); margin-right: 18px; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__trustpilot { color: #00b67a; font-weight: 600; }
.topbar__social { display: inline-flex; align-items: center; gap: 14px; }
.topbar__social a {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary); transition: color .15s ease, transform .15s ease;
}
.topbar__social a:hover { color: var(--accent); transform: translateY(-1px); }
.topbar__social svg { display: block; }

/* ---- Header ---- */
.header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand__logo { max-height: 52px; }
.brand__text { font-size: 26px; font-weight: 800; color: var(--primary); }
.brand__text--footer { color: #fff; margin-bottom: 12px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { color: var(--dark); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .4px; }
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.nav__book { text-transform: uppercase; }
/* Fix pass 147: signed-in admin / vendor / affiliate "Dashboard" button */
.nav .nav__dash { display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px; border-radius: 999px; background: var(--primary); border: 2px solid var(--primary); color: #fff; font-size: 13px; letter-spacing: .3px; white-space: nowrap; }
.nav .nav__dash:hover, .nav .nav__dash:focus-visible { background: var(--dark); border-color: var(--accent); color: #fff; }
.nav .nav__dash:focus-visible { outline: 3px solid rgba(245, 166, 35, .45); outline-offset: 2px; }
.nav__dash-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1000px) {
    .nav--dash { gap: 18px; }
    .nav--dash .nav__link, .nav--dash .nav__book { white-space: nowrap; }
    .nav--dash .nav__dash { padding: 10px 14px; }
}
@media (min-width: 641px) and (max-width: 999px) {
    .nav--dash { gap: 16px; }
    .nav--dash .nav__dash { padding: 10px 11px; }
    .nav--dash .nav__dash-short { display: none; }
}
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--primary); cursor: pointer; }

/* ---- Flash ---- */
.flash { padding: 14px 18px; border-radius: var(--radius); margin: 20px 0; font-weight: 600; }
.flash--success { background: #e7f6ec; color: #1c7c3f; border: 1px solid #b7e3c4; }
.flash--error { background: #fde8e8; color: #b42318; border: 1px solid #f5c2c0; }

/* ---- Breadcrumb ---- */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb__home { text-decoration: none; }
.breadcrumb__sep { margin: 0 8px; color: var(--muted); }
.breadcrumb__current { text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }

/* ---- Featured slider ---- */
.slider { position: relative; overflow: hidden; background: #0e1f38; }
/* Contained (boxed) slider — sits within the site width with margins + rounded corners */
.slider--contained { max-width: var(--container); margin: 20px auto; border-radius: 12px; }
.slide {
    display: none; position: relative; min-height: var(--slider-h, 430px);
    background-size: cover; background-position: center; align-items: center;
}
.slide.is-active { display: flex; }
.slide .container { width: 100%; }
.slide__caption {
    display: block; max-width: 440px; background: rgba(255,255,255,.72);
    padding: 30px 34px; color: var(--primary); text-decoration: none;
    backdrop-filter: blur(1px);
}
.slide__title { font-size: 40px; font-weight: 800; text-transform: uppercase; color: var(--primary); line-height: 1.05; }
.slide__text { font-size: 22px; color: var(--primary); margin-top: 6px; }
.slide__price { font-size: 44px; font-weight: 800; color: #7bb540; margin: 4px 0; }
.slide__note { font-size: 20px; color: var(--primary); }
.slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    background: rgba(20,35,63,.55); color: #fff; border: 0; cursor: pointer;
    width: 44px; height: 44px; border-radius: 50%; font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.slider__arrow:hover { background: var(--accent); }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
.slider__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
/* Dots: small visible circle inside a 32px touch target */
.slider__dot { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.slider__dot::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.55); }
.slider__dot.is-active::before { background: var(--accent); }

@media (max-width: 640px) {
    .slide { min-height: 300px; }
    .slide__caption { max-width: 100%; background: rgba(255,255,255,.82); padding: 20px; }
    .slide__title { font-size: 30px; }
    .slide__price { font-size: 34px; }
    .slide__text, .slide__note { font-size: 17px; }
}

/* ---- Hero ---- */
.hero {
    position: relative;
    background:
        linear-gradient(rgba(0,0,0,var(--hero-overlay,0)), rgba(0,0,0,var(--hero-overlay,0))),
        linear-gradient(rgba(255,255,255,var(--hero-fade,0)), rgba(255,255,255,var(--hero-fade,0))),
        center/cover no-repeat var(--hero-img, #2b4c78);
    min-height: var(--hero-h, 520px);
    display: flex;
    align-items: center;
    color: #fff;
}
.hero__inner { position: relative; display: flex; align-items: center; min-height: var(--hero-h, 520px); width: 100%; }
/* Contained (boxed) hero — sits within the site width with margins + rounded corners */
.hero--contained { max-width: var(--container); margin: 24px auto; border-radius: 12px; overflow: hidden; min-height: var(--hero-h, 440px); }
.hero--contained .hero__inner { min-height: var(--hero-h, 440px); }
.hero__card {
    background: var(--hero-card-bg, #fff);
    color: var(--text);
    box-shadow: 0 18px 45px rgba(18,35,63,.22);
    padding: 36px 44px;
    max-width: var(--hero-card-w, 520px);
    text-align: var(--hero-text-align, left);
    position: relative;
    z-index: 2;
}
.hero__eyebrow { font-size: var(--hero-eyebrow-size, 15px); color: var(--hero-eyebrow-color, var(--text)); font-weight: 500; margin-bottom: 4px; }
.hero__title { font-size: var(--hero-title-size, 50px); color: var(--hero-title-color, var(--text)); font-weight: 800; letter-spacing: -1px; line-height: 1.05; margin: 0 0 16px; text-transform: uppercase; }
.hero__text { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.hero__text p { margin: 0; }

/* Best Price guarantee seal (assets/img/best-price-seal.webp, 2026-10-23) */
.guarantee-seal {
    position: absolute; left: calc(var(--hero-card-w, 520px) - 20px); top: 50%; transform: translateY(-40%);
    color: var(--primary); z-index: 3; pointer-events: none;
    border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.25);
    opacity: var(--seal-opacity, 1); /* Admin -> Settings -> Homepage -> Best Price seal */
}
.guarantee-seal img { display: block; border-radius: 50%; filter: brightness(var(--seal-bright, 1)); }
@media (max-width: 760px) { .guarantee-seal { display: none; } }
.section { padding: 70px 0; }
.section--soft { background: var(--bg-soft); }

/* ---- Destination intro (branded "middle text") ---- */
.dest-intro { padding: 46px 0 40px; text-align: center; }
.dest-intro__eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.dest-intro__title { color: var(--primary); font-size: 30px; font-weight: 800; margin: 0 0 14px; position: relative; display: inline-block; }
.dest-intro__title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin: 12px auto 0; }
.dest-intro__lead { max-width: 760px; margin: 0 auto; color: var(--text); font-size: 17px; line-height: 1.7; }
@media (max-width: 640px) { .dest-intro { padding: 34px 0 30px; } .dest-intro__title { font-size: 24px; } }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__head h2 { font-size: 34px; }
.section__head p { color: var(--muted); }
.section__title-sm { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 700; }

/* ---- Value props (with dividers + line icons) ---- */
.values-section { padding: 56px 0; background: var(--white); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.value { padding: 12px 34px; text-align: center; position: relative; }
.value + .value::before {
    content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.value__icon { color: var(--primary); margin-bottom: 14px; display: flex; justify-content: center; }
.value__icon svg { display: block; }
.value__emoji { font-size: 40px; }
.value h3 { font-size: 22px; color: var(--accent); margin-bottom: 12px; }
.value p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---- Home two-column listing (sidebar + package rows) ---- */
.home-listing { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.home-listing__main { min-width: 0; }

/* Top Destinations sidebar box */
.dest-sidebar { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.dest-sidebar__head {
    background: var(--primary); color: #fff; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; font-size: 14px; padding: 14px 18px; position: relative;
}
.dest-sidebar__head::after {
    content: ""; position: absolute; left: 0; bottom: -6px; border-width: 6px 6px 0 0;
    border-style: solid; border-color: var(--accent) transparent transparent transparent;
}
.dest-sidebar__list { list-style: none; margin: 0; padding: 0; }
.dest-sidebar__list li { border-bottom: 1px solid var(--line); }
.dest-sidebar__list li:last-child { border-bottom: 0; }
.dest-sidebar__list a { display: flex; align-items: center; gap: 8px; padding: 13px 18px; color: var(--text); font-weight: 600; font-size: 14px; }
.dest-sidebar__list a:hover { background: var(--bg-soft); color: var(--primary); }
.dest-sidebar__pin { color: var(--accent); }

/* Optional color hover-highlight (Settings → Top Destinations) */
.dest-sidebar--overlay .dest-sidebar__list a { transition: background .15s ease, color .15s ease; }
.dest-sidebar--overlay .dest-sidebar__list a:hover { background: var(--dest-accent, var(--accent)); color: #fff; }
.dest-sidebar--overlay .dest-sidebar__list a:hover .dest-sidebar__pin { color: #fff; }

/* Horizontal package row */
.pkg-row {
    display: grid; grid-template-columns: 230px 1fr; gap: 22px;
    background: var(--white); border: 1px solid var(--line); border-radius: 6px;
    padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.pkg-row__media { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; background: #dbe4f0; }
.pkg-row__media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-row__badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.pkg-row__body { display: flex; flex-direction: column; min-width: 0; }
.pkg-row__title { font-size: 21px; color: var(--primary); margin: 2px 0 14px; }
.pkg-row__meta { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 16px; }
.pkg-row__metacol { display: flex; flex-direction: column; gap: 3px; }
.pkg-row__metacol--wide { flex: 1; min-width: 200px; }
.pkg-row__label { font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.pkg-row__ic { display: inline-flex; color: var(--price-box, #1878F0); }
.pkg-row__ic svg { display: block; }
.pkg-row__value { font-size: 14px; color: var(--text); }
.pkg-row__inclusions { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--text); }
.pkg-row__inclusions li { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.pkg-row__incic { display: inline-flex; flex-shrink: 0; color: #444; }
.pkg-row__incic svg { display: block; width: 15px; height: 15px; }
.pkg-row__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pkg-row__price { width: 180px; height: 50px; box-sizing: border-box; display: inline-flex; align-items: stretch; border: 1px solid var(--price-box, #1878F0); border-radius: 4px; overflow: hidden; cursor: pointer; font-family: var(--font); text-decoration: none; color: inherit; transition: border-color .18s ease; }
.pkg-row__from { background: #eef2f8; color: var(--price-box, #1878F0); font-weight: 700; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; padding: 0 10px; display: flex; align-items: center; flex-shrink: 0; transition: background .18s ease, color .18s ease; }
.pkg-row__amount { background: var(--price-box, #1878F0); color: #fff; font-weight: 800; font-size: 20px; line-height: 1.05; letter-spacing: -.3px; padding: 0 10px; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; transition: background .18s ease; }
.pkg-row__unit { background: var(--price-box, #1878F0); color: #eaf2ff; font-size: 10px; font-weight: 600; line-height: 1.05; padding: 0 8px 0 0; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; white-space: normal; transition: background .18s ease, color .18s ease; }
/* Hover: highlight the whole price box in the Book Now accent color */
/* Hover: highlight only the price (amount + unit), not the FROM label */
.pkg-row__price:hover { border-color: var(--accent); }
.pkg-row__price:hover .pkg-row__amount { background: var(--accent); }
.pkg-row__price:hover .pkg-row__unit { background: var(--accent); color: #fff3dd; }

@media (max-width: 860px) {
    .home-listing { grid-template-columns: 1fr; }
    /* Destination page: show packages first, Top Destinations box below (mobile only). */
    .home-listing--main-first .home-listing__main { order: -1; }
}
@media (max-width: 560px) {
    .pkg-row { grid-template-columns: 1fr; }
}

/* ---- Package detail page ---- */
.pkg-detail { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.pkg-detail__main { min-width: 0; }
.pkg-detail__banner { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px; aspect-ratio: 8 / 3; }
.pkg-detail__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg-detail__title { font-size: 30px; margin-bottom: 4px; }
.pkg-detail__dest { color: var(--muted); font-weight: 700; letter-spacing: .5px; font-size: 13px; margin-bottom: 22px; }

.pkg-summary { display: grid; grid-template-columns: auto auto 1fr auto; gap: 0; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.pkg-summary__group { padding: 4px 28px; }
.pkg-summary__group + .pkg-summary__group { border-left: 1px solid var(--line); }
.pkg-summary__price { display: flex; flex-direction: column; padding-left: 0; }
.pkg-summary__from { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--dark); }
.pkg-summary__amount { font-size: 46px; font-weight: 800; color: var(--price); line-height: 1; }
.pkg-summary__unit { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--dark); text-transform: uppercase; }
.pkg-summary__rate { font-size: 11px; color: var(--muted); margin-top: 6px; }
.pkg-summary__info { display: inline-block; color: var(--muted); cursor: help; }
.pkg-summary__col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; white-space: nowrap; }
.pkg-summary__duration { font-weight: 700; color: var(--primary); text-transform: uppercase; }
.pkg-summary__save { color: var(--muted); }
.pkg-summary__save strong { color: var(--price); font-weight: 800; }
.pkg-summary__inclusions { list-style: none; margin: 0; padding: 4px 28px; font-size: 14px; border-left: 1px solid var(--line); }
.pkg-summary__inclusions li { padding-left: 24px; position: relative; margin-bottom: 6px; color: var(--text); }
.pkg-summary__inclusions li:last-child { margin-bottom: 0; }
.pkg-summary__inclusions li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--primary); font-size: 12px; }
.guarantee-seal--inline { position: static; transform: none; background: none; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.12); width: max-content; }

/* Fix pass 158: lay the summary out by the width the main column really has
   (tablets, larger text) - the 4-column bar used to push the guarantee stamp
   past the column and over the Book Online form. Below 860px the column is
   display:contents (no container), so the phone rules further down apply. */
.pkg-detail__main { container: pkgmain / inline-size; }
@container pkgmain (max-width: 700px) {
    .pkg-summary { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 14px; }
    .pkg-summary .guarantee-seal--inline { grid-column: 3; grid-row: 1; align-self: center; }
    .pkg-summary__col { white-space: normal; }
    .pkg-summary__inclusions { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
    .pkg-summary__inclusions li { display: inline-block; margin: 0 18px 4px 0; }
}
@container pkgmain (max-width: 480px) {
    .pkg-summary .guarantee-seal--inline { display: none; }
    .pkg-summary { grid-template-columns: auto minmax(0, 1fr); }
}
.pkg-detail__body { max-width: none; }
.pkg-detail__body h2 { font-size: 26px; margin: 1.4em 0 .5em; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.pkg-detail__body h2:first-child { margin-top: 0; }
.pkg-detail__body h3 { font-size: 18px; color: var(--primary); margin: 1.1em 0 .3em; }
.pkg-detail__body ul { margin: 0 0 1em; padding-left: 20px; }
.pkg-detail__body ul li { margin-bottom: 6px; }
.pkg-detail__body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Structured guide sections (icon + text + image) */
.pkg-guide { margin-top: 8px; }
.guide-section { padding: 26px 0; border-top: 1px solid var(--line); }
.guide-section:first-child { border-top: 0; padding-top: 6px; }
.guide-section__head { display: flex; align-items: center; gap: 12px; font-size: 24px; color: var(--primary); margin: 0 0 16px; }
.guide-section__icon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(26,58,107,.08); color: var(--accent);
}
.guide-section__row { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; }
.guide-section--rev .guide-section__row { grid-template-columns: 300px 1fr; }
.guide-section--rev .guide-section__text { order: 2; }
.guide-section--rev .guide-section__media { order: 1; }
.guide-section__text { color: var(--text); line-height: 1.75; font-size: 15.5px; }
.guide-section__text h4 { font-size: 17px; color: var(--primary); margin: 1em 0 .3em; }
.guide-section__text ul { margin: 0 0 1em; padding-left: 20px; }
.guide-section__text ul li { margin-bottom: 5px; }
.guide-section__media { }
.guide-section__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }

@media (max-width: 700px) {
    .guide-section__row,
    .guide-section--rev .guide-section__row { grid-template-columns: 1fr; }
    .guide-section__text { order: 2 !important; }
    .guide-section__media { order: 1 !important; margin-bottom: 14px; }
}

/* Other packages (in the same destination) */
.other-packages { margin-top: 40px; }
.other-packages > h2 { font-size: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--line); margin-bottom: 22px; }
.other-packages .pkg-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .other-packages .pkg-grid { grid-template-columns: 1fr; } }

/* Sidebar: Book Online box */
.pkg-detail__side { position: sticky; top: 90px; }
.book-online { border: 2px solid var(--primary); border-radius: 3px; overflow: hidden; margin-bottom: 16px; padding: 5px; background: var(--primary); }
.book-online__head { background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 8px; line-height: 1.2; }
.book-online__body { background: var(--primary); padding: 8px 10px 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.book-online__label { display: block; color: #fff; font-size: 12px; line-height: 1.25; margin: 6px 0 3px; white-space: nowrap; }
.book-online__date, .book-online__input { width: 100%; padding: 6px 9px; border: 0; border-radius: 3px; font-size: 15px; font-family: inherit; min-height: 36px; box-sizing: border-box; }
/* Two fields side by side (fix pass 129): Check In / Check Out, First Name / Phone. */
.book-online__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.book-online__row .book-online__date { padding: 6px 6px; font-size: 14px; }
.book-online__search { width: 100%; margin-top: 10px; background: #7bb540; color: #fff; border: 0; border-radius: 3px; padding: 9px; font-size: 16px; font-weight: 800; letter-spacing: 1px; cursor: pointer; }
.book-online__search:hover { background: #6aa235; }
.book-online__date[readonly] { background: #eef2f7; color: #33383f; cursor: not-allowed; }
.book-online__nights { float: right; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.book-online__consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: rgba(255,255,255,.9); font-size: 10.5px; line-height: 1.35; }
.book-online__consent input { margin-top: 2px; flex-shrink: 0; }

/* Countdown */
.countdown { margin-top: 10px; text-align: center; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.countdown__title { font-size: 14px; font-weight: 700; margin: 0; }
.countdown__row { display: flex; align-items: flex-start; justify-content: center; gap: 4px; }
.countdown__cell { display: flex; flex-direction: column; min-width: 34px; }
.countdown [hidden] { display: none !important; }
.countdown__cell span { font-size: 20px; font-weight: 800; line-height: 1.2; }
.countdown__cell small { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #cdd8ea; }
.countdown__colon { font-size: 18px; font-weight: 800; line-height: 1.2; }

/* Book by phone */
.book-phone { border: 3px solid #7bb540; border-radius: 4px; padding: 22px; text-align: center; }
.book-phone__title { font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--dark); margin-bottom: 8px; }
.book-phone__num { display: block; font-size: 30px; font-weight: 800; color: #7bb540; margin-bottom: 10px; }
.book-phone__note { font-size: 14px; color: var(--text); margin: 0; font-weight: 600; }
.book-phone__chat { margin-top: 14px; width: 100%; background: var(--primary); color: #fff; border: 0; border-radius: 4px; padding: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.book-phone__chat:hover { filter: brightness(1.12); }

@media (max-width: 860px) {
    .pkg-detail { grid-template-columns: 1fr; }
    .pkg-detail__side { position: static; }
    /* Stack the summary bar cleanly on mobile (no empty white gap beside the price). */
    .pkg-summary { grid-template-columns: 1fr; }
    .pkg-summary__group { padding: 14px 0; }
    .pkg-summary__group + .pkg-summary__group { border-left: 0; border-top: 1px solid var(--line); }
    .pkg-summary__inclusions { border-left: 0; padding: 14px 0; }
    .pkg-summary__price { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
    .pkg-summary__amount { font-size: 40px; }
    .pkg-summary__rate { flex-basis: 100%; margin-top: 2px; }
    .pkg-summary .guarantee-seal--inline { display: none; }

    /* Mobile (fix pass 132): the Book Online box sits between the price summary
       and the guide instead of at the very bottom. display:contents lifts the
       main column's and sidebar's children into this one grid column so `order`
       can interleave them; the form itself is still rendered only once. */
    .pkg-detail { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pkg-detail__main, .pkg-detail__side { display: contents; }
    .pkg-detail__main > *, .pkg-detail__side > * { order: 3; }
    .pkg-detail__main > .pkg-detail__banner,
    .pkg-detail__main > .pkg-detail__title,
    .pkg-detail__main > .pkg-detail__dest,
    .pkg-detail__main > .pkg-summary { order: 1; }
    .pkg-detail__side > .book-online { order: 2; margin-bottom: 26px; }
    .pkg-detail__side > .book-phone { margin-top: 30px; }
}

/* ---- Package grid + cards ---- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pkg-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(18,35,63,.14); }
.pkg-card__media { position: relative; aspect-ratio: 3/2; background: #dbe4f0; }
.pkg-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-card__badge {
    position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase;
}
.pkg-card__body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pkg-card__dest { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.pkg-card__title { font-size: 20px; margin: 4px 0 6px; }
.pkg-card__duration { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.pkg-card__inclusions { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--text); }
.pkg-card__inclusions li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.pkg-card__inclusions li::before { content: "✓"; position: absolute; left: 0; color: #1c7c3f; font-weight: 700; }
.pkg-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.pkg-card__price { display: flex; flex-direction: column; line-height: 1.1; }
.pkg-card__old { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.pkg-card__amount { font-size: 26px; font-weight: 800; color: var(--primary); }
.pkg-card__unit { font-size: 12px; color: var(--muted); }

/* ---- Guarantee badge ---- */
.guarantee-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 90px; height: 90px; border-radius: 50%; background: var(--accent);
    color: #fff; font-weight: 800; text-align: center; font-size: 12px; line-height: 1.1;
    box-shadow: var(--shadow);
}

/* ---- Top destinations list ---- */
.dest-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dest-list a {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; font-weight: 600; text-align: center; color: var(--primary);
}
.dest-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Plain highlighted page title (no banner) ---- */
.page-title { text-align: center; padding: 48px 0 10px; }
.page-title h1 { font-size: 40px; margin: 0 0 10px; display: inline-block; }
.page-title h1::after { content: ""; display: block; width: 70px; height: 3px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }
.page-title p { color: var(--muted); font-size: 18px; margin: 0; }
@media (max-width: 640px) { .page-title h1 { font-size: 30px; } }

/* ---- Page header banner ---- */
.page-hero {
    background: linear-gradient(rgba(18,35,63,.72), rgba(18,35,63,.72)),
                center/cover no-repeat var(--hero-img, var(--primary));
    color: #fff; padding: 70px 0; text-align: center;
    min-height: var(--hero-h, 0); display: flex; align-items: center;
}
.page-hero .container { width: 100%; }
.page-hero h1 { color: #fff; font-size: 40px; margin-bottom: 8px; }
.page-hero h1::after { content: ""; display: block; width: 70px; height: 3px; background: var(--accent); margin: 14px auto 0; border-radius: 2px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 18px; margin: 0; }
/* Contained (boxed) banner — sits within the site width with margins + rounded corners */
.page-hero--contained { max-width: var(--container); margin: 24px auto; border-radius: 12px; overflow: hidden; }
@media (max-width: 640px) { .page-hero h1 { font-size: 30px; } .page-hero { padding: 48px 0; } }

/* ---- Page lead intro + form card title ---- */
.page-lead { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.form-card__title { color: var(--primary); font-size: 22px; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }

/* ---- Best Price Guarantee (brand-styled CMS body) ---- */
.bpg { max-width: 900px; margin: 0 auto; }
.bpg > p:first-child { font-size: 19px; line-height: 1.7; color: var(--text); }
.bpg h2 { color: var(--primary); font-size: 26px; margin: 40px 0 18px; padding-bottom: 10px; position: relative; }
.bpg h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: var(--accent); border-radius: 2px; }
.bpg p { color: var(--text); line-height: 1.7; }
.bpg ul { list-style: none; padding: 0; margin: 18px 0; }
.bpg ul li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--line); color: var(--text); }
.bpg ul li:last-child { border-bottom: 0; }
.bpg ul li::before {
    content: "\2713"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px;
    background: var(--accent); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
/* 3-step "How It Works" cards from a plain <ol> (CSS counters) */
.bpg ol {
    counter-reset: bpg-step; list-style: none; padding: 0; margin: 24px 0 8px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.bpg ol li {
    counter-increment: bpg-step; position: relative; background: var(--white);
    border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 48px 22px 24px; line-height: 1.6; color: var(--text);
}
.bpg ol li::before {
    content: counter(bpg-step); position: absolute; top: -22px; left: 22px;
    width: 44px; height: 44px; background: var(--primary); color: #fff;
    border-radius: 50%; font-size: 20px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.bpg ol li strong { display: block; color: var(--primary); font-size: 17px; margin-bottom: 6px; }
@media (max-width: 760px) { .bpg ol { grid-template-columns: 1fr; gap: 34px; } }

/* ---- Legal pages (Privacy, Terms) — brand-styled, organized ---- */
.legal { max-width: 860px; margin: 0 auto; }
.legal > p:first-child { font-size: 18px; line-height: 1.7; color: var(--text); }
.legal .legal-updated { color: var(--muted); font-size: 14px; font-style: italic; margin: 0 0 26px; }
.legal h2 { color: var(--primary); font-size: 23px; margin: 38px 0 14px; padding-bottom: 9px; position: relative; }
.legal h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px; background: var(--accent); border-radius: 2px; }
.legal p { color: var(--text); line-height: 1.75; margin: 0 0 14px; }
.legal ul { list-style: none; padding: 0; margin: 14px 0 20px; }
.legal ul li { position: relative; padding: 6px 0 6px 28px; color: var(--text); line-height: 1.65; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.legal a { color: var(--price-box, #1878F0); font-weight: 600; }
.legal__contact { margin-top: 42px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 24px 28px; }
.legal__contact h2 { margin-top: 0; }
.legal__contact ul li::before { display: none; }
.legal__contact ul li { padding-left: 0; }

/* ---- Contact map ---- */
.contact-map { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; border: 1px solid var(--line); }
.contact-map__frame { display: block; width: 100%; height: 360px; border: 0; }
@media (max-width: 640px) { .contact-map__frame { height: 260px; } }

/* ---- Free Travel Guides page ---- */
.guide-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.guide-intro__media img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); display: block; }
.guide-intro__text { font-size: 16px; line-height: 1.7; }
.guide-benefits { list-style: none; margin: 18px 0 0; padding: 0; }
.guide-benefits li { position: relative; padding: 8px 0 8px 34px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.guide-benefits li:last-child { border-bottom: 0; }
.guide-benefits li::before {
    content: "✓"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.guide-trust { margin-top: 22px; display: inline-block; background: #e7f6ec; color: #1c7c3f; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 30px; border: 1px solid #b7e3c4; }
.guide-form__title { font-size: 26px; margin: 0 0 4px; }
.guide-form__sub { color: var(--muted); margin: 0 0 20px; }
.guide-form__note { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }
@media (max-width: 860px) { .guide-intro { grid-template-columns: 1fr; } }

/* ---- Forms ---- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--dark); }
.field input, .field select, .field textarea {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; font-family: inherit; min-height: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: auto; margin-top: 4px; }
.field--check label { font-weight: 400; font-size: 13px; color: var(--muted); }

/* ---- Spam protection: CAPTCHA widget + inline email warning (fix pass 87) ---- */
.cf-turnstile { margin: 4px 0 16px; }
/* Visible 300x65 widget under the countdown (fix pass 131): borrows 7px of the
   body's 10px side padding so it fits the ~286px column without scaling. */
.book-online .cf-turnstile { margin: 10px -7px 0; display: flex; justify-content: center; min-height: 65px; }
.email-note { display: block; font-size: 13px; line-height: 1.4; margin-top: 6px; color: var(--muted); }
.email-note--warn { color: #b4442c; font-weight: 600; }
.book-online__form .email-note { color: rgba(255, 255, 255, .85); font-size: 12px; }
.book-online__form .email-note--warn { color: #ffd9cf; }
.field input[aria-invalid="true"] { border-color: #b4442c; }

/* ---- Layout with sidebar ---- */
/* minmax(0, ...) rather than a bare fr: a bare fr is minmax(auto, 1fr), and that
   auto floor cannot shrink below the track's min-content. The Contact map is an
   <iframe>, whose intrinsic width is 300px whatever width:100% says, so an auto
   floor pushed the whole column past the viewport on a phone. */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sidebar-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.sidebar-card__head {
    background: var(--primary); color: #fff; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; font-size: 14px; padding: 14px 18px; position: relative;
}
.sidebar-card__head::after {
    content: ""; position: absolute; left: 0; bottom: -6px; border-width: 6px 6px 0 0;
    border-style: solid; border-color: var(--accent) transparent transparent transparent;
}
.sidebar-card__body { padding: 18px; }
.sidebar-card__body p { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sidebar-card__body p:first-child { padding-top: 4px; }
.sidebar-card__body p:last-child { border-bottom: 0; padding-bottom: 4px; }
.sidebar-card__body strong { color: var(--primary); font-weight: 700; }
.sidebar-card__body a { color: var(--accent); font-weight: 700; }
.sidebar-card__body a:hover { color: var(--primary); }
.sidebar-card__note { font-size: 13px; color: var(--muted); }
.sidebar-card__note { font-weight: 400; }

/* ---- FAQ category heading ---- */
.faq-cat { font-size: 20px; color: var(--primary); margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.faq-cat:first-of-type { margin-top: 0; }

/* ---- FAQ accordion ---- */
.faq + .faq-cat { margin-top: 34px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { width: 100%; text-align: left; background: var(--white); border: 0; padding: 18px 22px; font-size: 16px; font-weight: 700; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.faq__q:hover { background: var(--bg-soft); }
.faq__a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--muted); }
.faq__item.open .faq__a { padding: 0 22px 20px; max-height: 400px; }
.faq__item.open .faq__q .faq__icon { transform: rotate(45deg); }
.faq__icon { transition: transform .2s ease; }

/* ---- Reviews ---- */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.review {
    position: relative; background: var(--white); border: 1px solid var(--line);
    border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 30px 28px 26px;
    box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18,35,63,.12); }
.review::before {
    content: "\201C"; position: absolute; top: 8px; right: 20px;
    font-family: Georgia, "Times New Roman", serif; font-size: 72px; line-height: 1;
    color: var(--primary); opacity: .10; pointer-events: none;
}
.review__stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
.review__text { font-style: italic; color: var(--text); line-height: 1.65; margin: 0 0 18px; }
.review__text::before { content: "\201C"; }
.review__text::after { content: "\201D"; }
.review__author { font-weight: 700; color: var(--primary); margin: 0; }
.review__source { color: var(--muted); font-size: 13px; font-weight: 600; }
.page-lead--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.reviews-trustbox { margin: 20px 0; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18,35,63,.12); }
.blog-card__media { display: block; aspect-ratio: 16/9; background: #dbe4f0; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 20px 22px; }
.blog-card__date { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.blog-card__body h3 { font-size: 19px; margin: 0 0 8px; line-height: 1.25; }
.blog-card__body h3 a { color: var(--primary); }
.blog-card__body h3 a:hover { color: var(--accent); }
.blog-card__body p { color: var(--text); font-size: 14px; margin: 0 0 12px; }
.blog-card__more { font-weight: 700; color: var(--accent); font-size: 14px; }

/* ---- Prose (CMS body) ---- */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { margin-bottom: 1em; }
.prose h2, .prose h3 { margin-top: 1.4em; }

/* ---- CTA strip ---- */
.cta-strip { background: var(--primary); color: #fff; text-align: center; padding: 54px 0; }
.cta-strip h2 { color: #fff; font-size: 30px; }
.cta-strip p { color: rgba(255,255,255,.85); margin-bottom: 24px; }

/* ---- Footer ---- */
.footer { background: #1a1a1a; color: #b9c2cf; padding: 56px 0 0; font-size: 14px; }
.footer__grid {
    display: grid; gap: 32px;
    /* Same reason as .with-sidebar: the payment-card row's min-content was wider
       than a phone, and an auto floor let it drag the grid past the viewport. */
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.6fr);
}
.footer__col { min-width: 0; }
.footer h4 {
    color: #3d9bd6; font-size: 16px; text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 18px; padding-bottom: 12px; position: relative;
}
.footer h4::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: rgba(255,255,255,.12);
}
.footer h4::before {
    content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 2px; background: var(--accent); z-index: 1;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer a { color: #b9c2cf; }
.footer a:hover { color: var(--accent); }
.footer__logo { max-height: 46px; margin-bottom: 12px; }
.footer__about p { line-height: 1.7; }
.footer__social { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }

/* Contact column with icons */
.footer__contact-row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
/* "Mail: Bookings@takeyouonvacation.com" is one unbreakable 224px token, and a
   flex item defaults to min-width:auto, so it set the column's floor and pushed
   the footer past the viewport on narrow laptops. Let it wrap instead. */
.footer__contact-row a { min-width: 0; overflow-wrap: anywhere; }
.footer__ic { color: var(--accent); flex-shrink: 0; }

/* Accepted-payment badges (generic chips, not brand logos) */
.footer__cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.footer__card {
    background: #fff; color: #1a1a1a; font-size: 11px; font-weight: 800; letter-spacing: .5px;
    padding: 6px 9px; border-radius: 4px; line-height: 1; display: inline-flex; align-items: center;
    border: 1px solid #d7dde5;
}
/* Image-less payment badges: clean white pill with the brand name in brand color */
.footer__card { min-width: 62px; height: 34px; justify-content: center; }
.footer__card--visa       { color: #1a1f71; }
.footer__card--mastercard { color: #cc5b2a; }
.footer__card--amex       { color: #1379c4; }
.footer__card--discover   { color: #e26a2c; }
.footer__card--img { padding: 4px 6px; min-width: 0; height: auto; }
.footer__card--img img { height: 26px; width: auto; display: block; }

/* Trustpilot line */
.footer__trust { text-align: center; padding: 26px 0 0; font-size: 14px; color: #b9c2cf; }
.footer__trust strong { color: #00b67a; }
.footer__trust a { text-decoration: underline; }

.footer__disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding: 22px 0 30px; font-size: 12px; color: #8a93a1; text-align: center; }
.footer__copy { margin: 0 0 12px; font-size: 14px; color: #b9c2cf; }
.footer__copy a { color: #b9c2cf; }
.footer__copy a:hover { color: var(--accent); }
.footer__license { margin: -6px 0 12px; font-size: 13px; color: #b9c2cf; letter-spacing: .01em; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .values, .pkg-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .dest-list { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 36px; }
}
@media (max-width: 640px) {
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: #fff; padding: 16px 20px; gap: 14px;
        box-shadow: var(--shadow); align-items: flex-start;
    }
    body.nav-open .nav { display: flex; }
    .nav-toggle { display: block; }
    .header__inner { position: relative; }
    .values, .pkg-grid, .blog-grid, .review-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
    /* Two columns at phone width left the footer links squeezed into ~80px. */
    .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero__card { margin: 0 0 -30px; padding: 26px; }
    .hero__title { font-size: 30px; }
    .topbar__contact a { margin-right: 10px; display: inline-flex; align-items: center; min-height: 36px; }
    /* Bigger tap targets in the mobile menu */
    .nav__link { width: 100%; padding: 12px 0; font-size: 15px; }
    .nav__book { width: 100%; margin-top: 4px; }
    .nav .nav__dash { width: 100%; justify-content: center; padding: 12px 18px; }
    .nav .nav__dash .nav__dash-full { position: static; width: auto; height: auto; clip: auto; }
    .nav .nav__dash .nav__dash-short { display: none; }
    .topbar__social a { padding: 8px; }
    .footer__col a, .footer__copy a, .footer__contact-row a { display: inline-block; padding: 4px 0; }
}
/* Rich admin-entered content must never break the layout on mobile */
.prose, .legal, .bpg { overflow-wrap: break-word; }
.prose table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }

/* ==========================================================================
   Booking journey (fix pass 82; rebranded fix pass 102)

   The only part of the site a customer sees AFTER deciding to buy, so it now
   uses the same devices as the storefront rather than a plainer dialect of it:
   the navy head bar with the orange corner notch (as .sidebar-card__head), the
   accent underline on headings (as .form-card__title / .legal h2), the soft
   panel with an accent left border (as .legal__contact) and the accent dot
   bullet (as .legal ul li::before).

   --primary and --accent are settings-driven (header.php), so nothing here
   hardcodes them. Tints are written twice: a literal first, then a color-mix
   that actually follows a changed accent_color in browsers that support it.
   ========================================================================== */
.journey { max-width: 820px; padding-top: 34px; padding-bottom: 60px; }

/* ---- Progress rail ---- */
.journey__steps {
    display: flex; gap: 6px; list-style: none; margin: 0 0 24px; padding: 0;
}
.journey__step {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); text-align: center; position: relative; padding-top: 4px;
}
.journey__step::before {
    content: ''; position: absolute; top: 22px; left: -50%; width: 100%; height: 3px;
    background: var(--line); border-radius: 2px; z-index: 0;
}
.journey__step:first-child::before { display: none; }
/* The connector fills up to where you are. It used to stay grey the whole way,
   which made the rail read as decoration rather than progress. */
.journey__step.is-done::before,
.journey__step.is-current::before { background: var(--accent); }
.journey__step-num {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: var(--white); border: 3px solid var(--line); color: var(--muted);
    font-size: 15px; font-weight: 800; position: relative; z-index: 1;
}
.journey__step.is-current { color: var(--primary); }
.journey__step.is-current .journey__step-num {
    background: var(--primary); border-color: var(--primary); color: #fff;
    box-shadow: 0 0 0 4px rgba(26, 58, 107, .12);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}
.journey__step.is-done { color: var(--accent); }
.journey__step.is-done .journey__step-num { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Summary strip: what they are buying, on every step ---- */
.journey__summary {
    display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: flex-start;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-left: 5px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px; margin-bottom: 22px;
}
/* Targets bare <div> children on purpose - booking.php emits them unclassed. */
.journey__summary > div { display: flex; flex-direction: column; gap: 3px; }
.journey__summary strong { color: var(--primary); font-size: 18px; }
.journey__summary-label {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
    color: var(--dark);
}
.journey__summary-meta { font-size: 13px; color: var(--muted); }
.journey__summary-price { margin-left: auto; text-align: right; align-items: flex-end; }
.journey__summary-price strong { color: var(--price); font-size: 30px; font-weight: 800; line-height: 1.05; }

/* ---- The card, with the site's navy head + orange notch ---- */
.journey__card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 0; overflow: hidden;
}
.journey__card-head { background: var(--primary); color: #fff; padding: 18px 30px; position: relative; }
.journey__card-head::after {
    content: ""; position: absolute; left: 0; bottom: -7px;
    border-width: 7px 7px 0 0; border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}
.journey__card-head h1 { color: #fff; font-size: 26px; line-height: 1.25; margin: 0; }
.journey__card-body { padding: 30px; }
.journey__card--center .journey__card-body { text-align: center; }

.journey__card-body h2 {
    color: var(--primary); font-size: 19px; margin: 0 0 14px; padding-bottom: 9px; position: relative;
}
.journey__card-body h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
    background: var(--accent); border-radius: 2px;
}
.journey__card--center .journey__card-body h2::after { left: 50%; transform: translateX(-50%); }

.journey__lead { color: var(--text); line-height: 1.7; font-size: 16px; margin: 0 0 16px; }
.journey__note { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.journey__note--list { margin: 0 0 18px 18px; }
.journey__note--back { margin-top: 14px; }
/* Sandbox notice. Amber rather than red: nothing is wrong, it just is not real
   money. Bordered to match .flash--success / .flash--error. */
.journey__note--test {
    background: #fde9c8; color: #9a6200; border: 1px solid #f3d29a;
    padding: 11px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 14px;
}
.journey__note--test code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* ---- Eligibility questions ---- */
.journey__form { counter-reset: jq; }
.journey__q { border: 0; padding: 0; margin: 0 0 26px; counter-increment: jq; }
.journey__q legend {
    display: block; width: 100%; position: relative;
    font-weight: 700; color: var(--primary); font-size: 17px; line-height: 1.35;
    padding: 0 0 10px; margin-bottom: 12px;
}
.journey__q legend::before {
    content: counter(jq); display: inline-grid; place-items: center;
    width: 24px; height: 24px; margin-right: 10px; vertical-align: -5px;
    border-radius: 50%; background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 800;
}
.journey__q legend::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
    background: var(--accent); border-radius: 2px;
}
.journey__q .journey__note { margin: -4px 0 12px 34px; }

.journey__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* Short labels ("1", "2", "3") do not deserve a full-width row each. */
.journey__choices--compact { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.journey__choice {
    display: flex; align-items: center; gap: 11px; cursor: pointer;
    border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
    min-height: 56px; background: var(--white); font-size: 15px; color: var(--text);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.journey__choice:hover { border-color: var(--accent); background: var(--bg-soft); }
.journey__choice input { accent-color: var(--accent); width: 20px; height: 20px; margin: 0; flex: none; }
.journey__choice:has(input:checked) {
    border-color: var(--accent); font-weight: 700; color: var(--primary);
    background: #fff8ec;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    box-shadow: 0 2px 10px rgba(245, 166, 35, .18);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 22%, transparent);
}
/* Was missing entirely - keyboard focus relied on the UA ring on the radio. */
.journey__choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- Soft panel with an accent edge (same idiom as .legal__contact) ---- */
.journey__requirements {
    background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; margin: 0 0 24px;
}
.journey__requirements h2 { font-size: 16px; margin: 0 0 12px; padding-bottom: 0; }
.journey__requirements h2::after { display: none; }
.journey__requirements h3 {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    color: var(--primary); margin: 18px 0 6px;
}
.journey__requirements h3:first-of-type { margin-top: 0; }
.journey__requirements ul { list-style: none; margin: 0; padding: 0; }
.journey__requirements li {
    position: relative; padding: 5px 0 5px 22px; color: var(--text);
    line-height: 1.6; font-size: 14px;
}
.journey__requirements li::before {
    content: ""; position: absolute; left: 2px; top: 13px;
    width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}

/* ---- Consent: a deliberate step, not fine print ---- */
.journey__ack {
    display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px;
    background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px;
    font-size: 14px; color: var(--text); line-height: 1.6;
}
.journey__ack input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.journey__ack a { color: var(--price-box, #1878F0); font-weight: 600; }

/* ---- The amount, and the button that pays it ---- */
.journey__invoice {
    text-align: center; background: var(--bg-soft);
    border: 1px solid var(--line); border-top: 4px solid var(--accent);
    border-radius: var(--radius); padding: 26px 24px; margin: 0 0 20px;
}
.journey__invoice-amount {
    display: block; font-size: 46px; font-weight: 800; color: var(--price);
    line-height: 1.05; margin: 6px 0 4px;
}
/* Both of these are inline <span>s borrowed from the summary bar, so without
   this the basis line ("per package") wraps onto the same line as the pay
   button instead of sitting under the price. */
.journey__invoice .journey__summary-label,
.journey__invoice .journey__summary-meta { display: block; }
.journey__invoice .btn { margin-top: 18px; }

/* ---- Fix pass 113: the extra-nights / upgrade offer on the journey ---- */
.journey__addons {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin: 20px 0 0; padding: 16px 18px; border-radius: var(--radius);
    background: #fffdf7; border: 1px dashed var(--accent);
}
.journey__addons strong { display: block; color: var(--primary); font-size: 16px; }
.journey__addons span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.journey__addons form { margin: 0; }
/* Fix pass 118: the add-ons open inline, under the offer (assets/js/booking-addons.js) */
.journey__addons-panel {
    margin: 14px 0 0; padding: 16px 18px 18px; border-radius: var(--radius);
    background: #f6f8fb; border: 1px solid #e5e7eb; max-width: 100%; overflow: visible;
}
.journey__addons-panel[hidden] { display: none; }
.journey__addons-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fde8e8; color: #b42318; font-size: 14px; }
.journey__addons-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.journey__addons-done { flex: 1 1 100%; margin: 0; padding: 12px 14px; border-radius: 10px; background: #e7f6ec; color: #1c7c3f; font-weight: 600; }
.journey__addons-foot .btn.is-highlight { box-shadow: 0 0 0 4px rgba(245, 166, 35, .35); }
.journey__invoice .journey__note { margin: 10px 0 0; }
.journey__invoice .journey__lead { margin: 14px 0 0; }

.journey__confirmation {
    text-align: center; border: 2px dashed var(--accent); border-radius: var(--radius);
    padding: 20px; margin: 0 0 24px;
    background: #fffdf7;
    background: color-mix(in srgb, var(--accent) 6%, #fff);
}
.journey__confirmation strong {
    display: block; font-size: 32px; font-weight: 800; letter-spacing: .08em;
    color: var(--primary); margin-top: 5px;
}

/* ---- Detail table, shared by the invoice step and the paid invoice ---- */
.journey__receipt-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.journey__receipt-table th,
.journey__receipt-table td {
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.journey__receipt-table th { color: var(--primary); font-weight: 700; width: 40%; }
.journey__receipt-table tr:nth-child(odd) th,
.journey__receipt-table tr:nth-child(odd) td { background: var(--bg-soft); }
/* The Includes cell renders one <div> per inclusion. */
.journey__receipt-table td div { position: relative; padding-left: 20px; margin: 3px 0; }
.journey__receipt-table td div::before {
    content: ""; position: absolute; left: 2px; top: 9px;
    width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

.journey__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* The one thing the invoice step is asking for. Full width so it cannot be
   mistaken for the secondary links around it. */
.journey__submit { display: block; width: 100%; }

@media (max-width: 640px) {
    .journey { padding-top: 22px; }
    .journey__card-head { padding: 16px 18px; }
    .journey__card-head h1 { font-size: 21px; }
    .journey__card-body { padding: 20px 16px; }
    /* The labels used to be hidden here, leaving three unlabelled circles. */
    .journey__step-label { font-size: 10px; letter-spacing: .02em; }
    .journey__step-num { width: 32px; height: 32px; font-size: 13px; }
    .journey__step::before { top: 19px; }
    .journey__summary-price { margin-left: 0; text-align: left; align-items: flex-start; }
    .journey__choices { grid-template-columns: 1fr; }
    .journey__choices--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .journey__q .journey__note { margin-left: 0; }
    .journey__receipt-table th,
    .journey__receipt-table td { padding: 10px; font-size: 14px; }
    .journey__invoice-amount { font-size: 38px; }
}

/* ---- Paid invoice: branded on screen and on paper (fix pass 89) ---- */
.journey__receipt .journey__card-body { padding-top: 26px; }

.receipt__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
    padding-bottom: 18px; margin-bottom: 22px;
    border-bottom: 3px solid var(--primary);
}
.receipt__logo { max-height: 54px; width: auto; display: block; }
.receipt__wordmark { font-size: 24px; font-weight: 800; color: var(--primary); }
.receipt__meta {
    display: flex; flex-direction: column; gap: 2px;
    text-align: right; font-size: 13px; color: var(--muted);
}
.receipt__doc {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent);
}
.receipt__title { color: var(--primary); font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
.receipt__foot {
    margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--muted); text-align: center;
}
.journey__receipt-total th,
.journey__receipt-total td {
    border-top: 3px solid var(--primary); border-bottom: 0;
    font-size: 19px; font-weight: 800; color: var(--primary); padding-top: 15px;
    background: var(--white) !important;
}
/* The figure itself in the same red the package page and the summary bar use, so
   "AMOUNT DUE $99" above and "Total due today $99" here read as one number. */
.journey__receipt-total td { color: var(--price); }
.journey__note-inline { color: var(--muted); font-weight: 400; font-size: 14px; }

/* PAID stamp on the paid invoice (fix pass 99). */
.receipt__paid {
    display: inline-block; vertical-align: middle; margin-left: 10px;
    padding: 4px 12px; border: 2px solid #1c7c3f; border-radius: 6px;
    color: #1c7c3f; font-size: 14px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase;
}

/* ==========================================================================
   Vendor portal (fix pass 105; rebranded fix pass 108)

   Vendors are external businesses being asked for an EIN and their pricing, so
   they get the real storefront chrome, not backend-office styling. Everything
   below reuses the brand devices fix pass 102 established - the navy head bar,
   the accent left border, the soft panel - rather than inventing a third
   dialect. No literal brand colours: --primary and --accent are settings-driven
   from header.php and must keep following a change made in Admin -> Settings.

   Fix pass 108 finished the job. The portal already had the navy strip, the
   accent panels and the numbered circles, but every page still sat in the
   generic white .form-card, so it read as a plain form bolted onto a branded
   site. It now has .vendor-card, which is .journey__card's navy head and orange
   corner notch.

   .form-card is deliberately NOT touched. It is shared with contact.php,
   book-now.php and free-travel-guides.php, and restyling it would drag three
   pages into a redesign nobody asked for - the same reason fix pass 102 left it
   alone. For the same reason every field override below is scoped under
   .vendor-card: .field, .form-grid and .field--check are shared too.
   ========================================================================== */

/* Generic bits the storefront turned out not to have yet. NOT vendor-scoped -
   these three reach outside the portal, so leave them alone. */
.container--narrow { max-width: 860px; }
.btn--sm { min-height: 34px; padding: 6px 16px; font-size: 13px; }
.field__hint { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---- the card: .journey__card's head and notch, on the portal ----
   overflow:hidden is load-bearing. The notch hangs 7px BELOW the navy bar, so
   without it the orange triangle pokes out past the card's rounded corner. */
.vendor-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 0; overflow: hidden; margin: 0 0 26px;
}
.vendor-card:last-child { margin-bottom: 0; }
.vendor-card__head { background: var(--primary); color: #fff; padding: 18px 30px; position: relative; }
.vendor-card__head::after {
    content: ""; position: absolute; left: 0; bottom: -7px;
    border-width: 7px 7px 0 0; border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}
/* h1,h2,h3,h4 are forced to var(--primary) globally (see the top of this file),
   which would be navy on navy. */
.vendor-card__head h1, .vendor-card__head h2 {
    color: #fff; font-size: 26px; line-height: 1.25; margin: 0;
}
.vendor-card__head h2 { font-size: 21px; }
.vendor-card__head p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .82); }
/* The dashboard puts its "Add a tour" button in the head bar. */
.vendor-card__head-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.vendor-card__head-row .btn { margin-left: auto; }
.vendor-card__head-row .btn--outline { border-color: #fff; color: #fff; }
.vendor-card__head-row .btn--outline:hover { background: #fff; color: var(--primary); }

.vendor-card__body { padding: 30px; }
/* Section headings inside a card - the 54px accent stub, as .legal h2 and
   .journey__card-body h2. A second navy bar mid-card would read as a new page. */
.vendor-card__body h2 {
    color: var(--primary); font-size: 19px; margin: 30px 0 14px; padding-bottom: 9px; position: relative;
}
.vendor-card__body h2:first-child { margin-top: 0; }
.vendor-card__body h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
    background: var(--accent); border-radius: 2px;
}

/* ---- fields, scoped to the portal ---- */
.vendor-card .field label { color: var(--primary); font-weight: 700; }
.vendor-card .field input,
.vendor-card .field select,
.vendor-card .field textarea { border-color: #d5dbe4; transition: border-color .15s, box-shadow .15s; }
.vendor-card .field input:hover,
.vendor-card .field select:hover,
.vendor-card .field textarea:hover { border-color: var(--primary); }
.vendor-card .field input:focus,
.vendor-card .field select:focus,
.vendor-card .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .22);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
}
/* A REQUIRED qualification question rendered as 13px muted fine print read as
   an afterthought. These are the criteria a vendor is holding us to. */
.vendor-card .field--check {
    align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 16px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.vendor-card .field--check label {
    font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 0;
}
.vendor-card .field--check input { width: 20px; height: 20px; margin-top: 0; accent-color: var(--accent); flex: none; }
.vendor-card .field--check .field__hint { flex-basis: 100%; margin-top: 0; }

/* Turnstile sat in an unexplained gap between the last field and the button. */
.vendor-turnstile { margin: 4px 0 22px; min-height: 65px; }

/* ---- the signed-in strip ---- */
.vendor-bar { background: var(--primary); color: #fff; }
.vendor-bar__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 20px; padding-top: 11px; padding-bottom: 11px; font-size: 14px;
}
.vendor-bar strong { font-weight: 700; }
.vendor-bar__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.vendor-bar__nav a { color: #fff; font-weight: 600; text-decoration: none; }
.vendor-bar__nav a:hover { color: var(--accent); }
.vendor-bar__nav form { margin: 0; }
.vendor-bar__out {
    background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--accent);
}
.vendor-bar__out:hover { text-decoration: underline; }

/* ---- copy ---- */
.vendor-lede { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0 0 18px; }
.vendor-nights { display: block; min-height: 1.3em; margin-top: 6px; font-size: 14px; font-weight: 600; color: #2e7d4f; }
.vendor-nights--changed { color: #b26a00; }
.vendor-nights--bad { color: #c0392b; }
.vendor-alt  { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.vendor-alt a { color: var(--price-box, #1878F0); font-weight: 600; }
.vendor-dim  { color: var(--muted); font-size: 13px; }
.vendor-empty { color: var(--muted); font-style: italic; padding: 22px 0; }

/* ---- the soft accent panel, as .journey__requirements ---- */
.vendor-note {
    background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin: 0 0 20px;
    font-size: 14px; line-height: 1.6;
}
.vendor-callout {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
    background: #fff8ec;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    border: 1px solid var(--line); border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px; margin: 0 0 26px; font-size: 15px;
}
.vendor-callout strong { color: var(--primary); }
.vendor-callout .btn { margin-left: auto; }
.vendor-callout--flat { background: var(--bg-soft); display: block; }

/* ---- status ---- */
.vendor-status {
    display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .07em; padding: 7px 14px; border-radius: 40px; margin: 0 0 18px;
    background: var(--bg-soft); color: var(--primary); border: 1px solid var(--line);
}
.vendor-status--approved  { background: #e7f6ec; color: #1c7c3f; border-color: #b7e3c4; }
.vendor-status--rejected,
.vendor-status--suspended { background: #fde8e8; color: #b42318; border-color: #f5c2c0; }

.vendor-pill {
    display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; padding: 4px 10px; border-radius: 40px;
    /* A pill that wraps stops being a pill. The table sits in .vendor-table-wrap,
       which scrolls horizontally, so keeping this on one line costs nothing. */
    white-space: nowrap;
    background: var(--bg-soft); color: var(--primary); border: 1px solid var(--line);
}
.vendor-pill--approved  { background: #e7f6ec; color: #1c7c3f; border-color: #b7e3c4; }
.vendor-pill--rejected  { background: #fde8e8; color: #b42318; border-color: #f5c2c0; }
/* Literal first, then the mix, so this follows a changed accent_color instead of
   staying frozen amber. Same pairing as .vendor-callout and .journey__choice. */
.vendor-pill--submitted {
    background: #fff8ec;
    background: color-mix(in srgb, var(--accent) 14%, #fff);
    border-color: #f3d29a; color: #9a6200;
}

/* ---- lists and tables ---- */
.vendor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.vendor-head h2 { margin: 0; color: var(--primary); }
.vendor-head .btn { margin-left: auto; }

.vendor-table-wrap { overflow-x: auto; }
.vendor-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vendor-table th, .vendor-table td {
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.vendor-table thead th {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary);
}
.vendor-table tbody tr:nth-child(odd) td { background: var(--bg-soft); }
/* !important beats the zebra rule above. Paired like the pill, for the same reason. */
.vendor-table__note td {
    background: #fff8ec !important;
    background: color-mix(in srgb, var(--accent) 14%, #fff) !important;
    font-size: 14px;
}
.vendor-table--plain th { width: 34%; color: var(--primary); font-weight: 700; }
.vendor-table--plain tbody tr:nth-child(odd) td { background: transparent; }

/* ---- the section walk ---- */
.vendor-steps, .vendor-sections { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: vstep; }
.vendor-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.vendor-steps li a {
    display: block; padding: 8px 14px; border-radius: 40px; font-size: 13px; font-weight: 600;
    background: var(--bg-soft); border: 1px solid var(--line); color: var(--primary); text-decoration: none;
}
.vendor-steps li.is-current a { background: var(--primary); border-color: var(--primary); color: #fff; }

.vendor-sections li {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 13px 2px; border-bottom: 1px solid var(--line); counter-increment: vstep;
}
.vendor-sections li::before {
    content: counter(vstep); flex: none;
    width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.vendor-sections li a { font-weight: 600; color: var(--primary); text-decoration: none; }
.vendor-sections li a:hover { text-decoration: underline; }
.vendor-need, .vendor-done {
    margin-left: auto; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
}
.vendor-need { color: #b42318; }
.vendor-done { color: #1c7c3f; }

.vendor-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.vendor-owner {
    border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px;
}

/* ==========================================================================
   Fix pass 111 - vendors as partners: the agreement, assigned packages and
   customer submissions. Same vocabulary as above: navy heads, the orange
   notch and 54px stubs, the soft panel, pills.
   ========================================================================== */

/* The signup "how it works" list reuses .vendor-sections' numbered circles. */
.vendor-sections--flow li { font-size: 15px; color: var(--text); }

/* ---- the agreement ---- */
.vendor-agreement {
    max-height: 460px; overflow-y: auto; padding: 22px 24px; margin: 0 0 12px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 14.5px; line-height: 1.7; color: var(--text);
}
.vendor-agreement:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.vendor-agreement h3 { font-size: 15.5px; color: var(--primary); margin: 20px 0 6px; }
.vendor-agreement p { margin: 0 0 10px; }
.vendor-agreement__demo {
    background: #fff8ec; background: color-mix(in srgb, var(--accent) 12%, #fff);
    border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 0 8px 8px 0;
    font-weight: 700; color: #9a6200; font-size: 13.5px;
}

.vendor-sigpad {
    position: relative; height: 200px; margin-top: 4px;
    background: var(--white); border: 2px dashed #c9d2de; border-radius: var(--radius);
    transition: border-color .15s;
}
.vendor-sigpad:hover, .vendor-sigpad.is-signed { border-color: var(--accent); }
/* touch-action:none is what stops a finger drawing on a phone from scrolling the page. */
.vendor-sigpad canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    touch-action: none; cursor: crosshair; z-index: 2;
}
.vendor-sigpad__line {
    position: absolute; left: 24px; right: 24px; bottom: 46px; height: 1px; background: #c9d2de; z-index: 1;
}
.vendor-sigpad__hint {
    position: absolute; left: 26px; bottom: 22px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: #9aa4b2; z-index: 1;
}
.vendor-sigpad.is-signed .vendor-sigpad__hint { visibility: hidden; }
.vendor-sigpad__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0 18px; }
.vendor-sigpad__tools .field__hint { margin-top: 0; }
.field__hint.is-error { color: #b42318; font-weight: 700; }

/* ---- assigned packages ---- */
.vendor-pkgs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.vendor-pkg {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.vendor-pkg:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.vendor-pkg__img { display: block; aspect-ratio: 16 / 9; background: var(--bg-soft) center / cover no-repeat; }
.vendor-pkg__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 14px; flex: 1; }
.vendor-pkg__title { font-weight: 800; color: var(--primary); font-size: 16.5px; line-height: 1.3; }
.vendor-pkg__meta { font-size: 13px; color: var(--muted); }
.vendor-pkg__price { font-size: 20px; font-weight: 800; color: var(--primary); margin-top: 6px; }
.vendor-pkg__price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.vendor-pkg__foot {
    display: flex; justify-content: space-between; align-items: center; margin-top: auto;
    padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.vendor-pkg__foot span { color: var(--accent); font-weight: 800; }

.vendor-pkg-banner { aspect-ratio: 8 / 3; background: var(--bg-soft) center / cover no-repeat; }
.vendor-pkg-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 20px;
}
.vendor-pkg-facts > div {
    background: var(--bg-soft); border: 1px solid var(--line); border-top: 3px solid var(--accent);
    border-radius: var(--radius); padding: 12px 14px;
}
.vendor-pkg-facts span {
    display: block; font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.vendor-pkg-facts strong { display: block; font-size: 18px; color: var(--primary); margin-top: 3px; }
.vendor-pkg-facts small { font-size: 12px; color: var(--muted); }
.vendor-strike { text-decoration: line-through; color: var(--muted) !important; }
.vendor-incl { list-style: none; margin: 0 0 8px; padding: 0; columns: 2 240px; column-gap: 28px; }
.vendor-incl li { position: relative; padding: 4px 0 4px 20px; break-inside: avoid; font-size: 15px; }
.vendor-incl li::before {
    content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 8px;
    border-radius: 50%; background: var(--accent);
}
.vendor-rich { font-size: 15px; line-height: 1.7; }
.vendor-rich img { max-width: 100%; height: auto; }

/* ---- a fulfilled booking, as the customer's email shows it ---- */
.vendor-confirm { margin: 0 0 8px; }
.vendor-confirm__num {
    text-align: center; padding: 16px; margin: 0 0 14px;
    background: #fffdf7; border: 2px dashed var(--accent); border-radius: var(--radius);
}
.vendor-confirm__num span {
    display: block; font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
}
.vendor-confirm__num strong { display: block; font-size: 26px; letter-spacing: 2px; color: var(--primary); }

/* ---- the timeline ---- */
.vendor-timeline { list-style: none; margin: 0 0 20px; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.vendor-timeline li { position: relative; padding: 0 0 16px 6px; font-size: 14.5px; }
.vendor-timeline li::before {
    content: ""; position: absolute; left: -30px; top: 3px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--white); border: 3px solid var(--accent);
}
.vendor-timeline li:last-child::before { background: var(--accent); }
.vendor-timeline strong { color: var(--primary); display: block; }
.vendor-timeline div { margin-top: 4px; }

/* ---- submission statuses ---- */
.vendor-pill--pending,
.vendor-pill--change_requested {
    background: #fff8ec;
    background: color-mix(in srgb, var(--accent) 14%, #fff);
    border-color: #f3d29a; color: #9a6200;
}
.vendor-pill--change_requested { background: #eef3fb; border-color: #c8d6ee; color: var(--primary); }
.vendor-pill--fulfilled  { background: #e7f6ec; color: #1c7c3f; border-color: #b7e3c4; }
.vendor-pill--cancelled  { background: #fde8e8; color: #b42318; border-color: #f5c2c0; }
.vendor-status--ref-fulfilled { background: #e7f6ec; color: #1c7c3f; border-color: #b7e3c4; }
.vendor-status--ref-cancelled { background: #fde8e8; color: #b42318; border-color: #f5c2c0; }
.vendor-status--ref-pending {
    background: #fff8ec; background: color-mix(in srgb, var(--accent) 14%, #fff);
    border-color: #f3d29a; color: #9a6200;
}

@media (max-width: 640px) {
    .vendor-callout .btn, .vendor-head .btn { margin-left: 0; width: 100%; }
    .vendor-bar__inner { font-size: 13px; }
    .vendor-table th, .vendor-table td { padding: 10px; font-size: 14px; }
    /* The head bar and body both lose their generous desktop padding, and the
       heading drops from 26px so a long submission title does not eat the card. */
    .vendor-card__head { padding: 15px 20px; }
    .vendor-card__head h1 { font-size: 21px; }
    .vendor-card__head h2 { font-size: 18px; }
    .vendor-card__body { padding: 22px 20px; }
    .vendor-card__head-row .btn { margin-left: 0; width: 100%; }
    .vendor-agreement { padding: 16px; max-height: 380px; }
    .vendor-sigpad { height: 170px; }
    .vendor-confirm__num strong { font-size: 21px; }
}

@media print {
    @page { margin: 14mm; }

    .topbar, .header, .footer, .journey__steps,
    .journey__summary, .journey__actions--noprint { display: none !important; }

    body { font-size: 12pt; background: #fff; }
    .journey { max-width: none; padding: 0; }
    .journey__card { box-shadow: none; border: 0; overflow: visible; }
    .journey__card-body, .journey__receipt .journey__card-body { padding: 0; }

    /* Browsers drop backgrounds and colour by default; this receipt is the
       customer's proof of purchase, so keep the brand on paper. */
    .receipt__head, .receipt__foot, .journey__confirmation, .receipt__paid,
    .journey__card-head, .journey__requirements,
    .journey__receipt-table, .journey__receipt-table tr:nth-child(odd) th,
    .journey__receipt-table tr:nth-child(odd) td,
    .journey__receipt-table td div::before,
    .journey__receipt-total th, .journey__receipt-total td {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .journey__receipt-table { page-break-inside: avoid; }
    .journey__confirmation  { page-break-inside: avoid; }
    .receipt__title         { page-break-after: avoid; font-size: 18pt; }
    .receipt__logo          { max-height: 46px; }
}

/* Tour outcome pills on the vendor dashboard (fix pass 126) */
.vendor-pill--toured        { background: #1c7c3f; color: #fff; border-color: #166534; }   /* solid green (fix pass 136) */
.vendor-pill--noshow        { background: #fde8e8; color: #b42318; border-color: #f5c2c0; }
/* Fix pass 136: NQ (not qualified at the tour) - solid red so it reads apart from No show. */
.vendor-pill--nq            { background: #d92d20; color: #fff; border-color: #b42318; }
/* Vendor dashboard tour counts (fix pass 138): Toured green, NQ red. */
.vendor-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.vendor-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.vendor-stat b { font-size: 26px; line-height: 1.1; color: var(--primary); }
.vendor-stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.vendor-stat--toured { background: #1c7c3f; border-color: #166534; }
.vendor-stat--nq { background: #d92d20; border-color: #b42318; }
.vendor-stat--toured b, .vendor-stat--toured span, .vendor-stat--nq b, .vendor-stat--nq span { color: #fff; }
.vendor-pkg__foot em { font-style: normal; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vendor-mini { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; color: #fff; }
.vendor-mini--toured { background: #1c7c3f; }
.vendor-mini--nq { background: #d92d20; }
@media (max-width: 640px) { .vendor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Vendor dashboard NQ follow-up stages (fix pass 141). */
.vendor-nqstages { background: #fef3f2; border: 1px solid #fecdca; border-radius: 10px; padding: 12px 16px 14px; margin: -6px 0 18px; }
.vendor-nqstages__head { margin: 0 0 10px; font-size: 14px; color: #7a271a; }
.vendor-nqstages__row { display: flex; flex-wrap: wrap; gap: 10px; }
.vendor-nqstage { flex: 1 1 120px; background: #fff; border: 1px solid #fecdca; border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; }
.vendor-nqstage b { font-size: 22px; line-height: 1.1; color: #b42318; }
.vendor-nqstage span { font-size: 13px; font-weight: 700; color: #1f2937; }
.vendor-nqstage small { font-size: 11px; color: var(--muted); }
.vendor-nqstage--won b { color: #1c7c3f; }
.vendor-nqstage--muted b { color: var(--muted); }
.vendor-pill--tourcancelled { background: #f1f3f6; color: #5b6472; border-color: #dde2ea; }
.vendor-pill--rescheduled   { background: #eef3fb; color: var(--primary); border-color: #c8d6ee; }

/* Affiliate program strip in the footer (fix pass 127) */
.footer__affiliate { padding: 22px 0 0; }
.footer__affiliate-inner { display: flex; align-items: center; justify-content: center; gap: 14px 22px; flex-wrap: wrap;
    background: rgba(245, 166, 35, .12); border: 1px solid rgba(245, 166, 35, .45); border-radius: 12px; padding: 14px 20px; }
.footer__affiliate p { margin: 0; color: #fff; font-weight: 600; font-size: 15px; text-align: center; }
.footer__affiliate-ic { margin-right: 4px; }
.footer .footer__affiliate-btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
    padding: 9px 18px; border-radius: 40px; text-decoration: none; white-space: nowrap; }
.footer .footer__affiliate-btn:hover { filter: brightness(1.08); color: #fff; }
@media (max-width: 600px) {
    .footer__affiliate-inner { flex-direction: column; padding: 14px 16px; }
    .footer__affiliate-btn { white-space: normal; text-align: center; }
}

/* ===================== Affiliate portal (fix pass 144) ===================== */
.aff-section { padding-top: 28px; }
.aff-bar .affp-bar__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.aff-code { display: inline-block; background: var(--accent); color: #1a1a1a; font-weight: 800; font-size: 12px; padding: 1px 8px; border-radius: 999px; letter-spacing: .5px; margin-left: 4px; }
.aff-hello { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px 28px; align-items: end; margin-bottom: 18px; }
.aff-hello h1 { margin: 0 0 4px; font-size: 28px; }
.aff-hello p { margin: 0; color: var(--muted); }
.aff-hello__link label { display: block; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.aff-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aff-stats--money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aff-stats--money .affp-stat:not(.affp-stat--toured) b { color: var(--dark); }
.aff-copy { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 10px; }
.aff-copy__text { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px; background: var(--bg-soft); color: var(--text); }
.aff-copy--multi { flex-direction: column; }
.aff-copy--multi .aff-copy__text { resize: vertical; line-height: 1.5; white-space: pre-wrap; }
.aff-copy--multi .btn { align-self: flex-start; }
.aff-copy .btn.is-copied { background: #1c7c3f; border-color: #1c7c3f; }
.aff-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.aff-pill--ok { background: #dcfce7; color: #166534; }
.aff-pill--bad { background: #fee4e2; color: #b42318; }
.aff-pill--warn { background: #fef0c7; color: #93370d; }
.aff-pill--info { background: #e0edff; color: #1d4ed8; }
.aff-pill--muted { background: #f2f4f7; color: #475467; }
.aff-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.aff-quick a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .15s, transform .15s; }
.aff-quick a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.aff-quick b { color: var(--primary); }
.aff-quick span { font-size: 13px; color: var(--muted); }
.aff-steps { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: s; }
.aff-steps li { position: relative; padding: 0 0 16px 44px; counter-increment: s; }
.aff-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg-soft); color: var(--muted); border: 2px solid var(--line); }
.aff-steps li.is-done::before { content: "\2713"; background: #1c7c3f; border-color: #1c7c3f; color: #fff; }
.aff-steps li.is-now::before { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }
.aff-steps b { display: block; color: var(--primary); }
.aff-steps span { font-size: 14px; color: var(--muted); }
.aff-doc--ok { border-left-color: #1c7c3f; }
.aff-flow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.aff-flow li { flex: 1 1 150px; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.aff-flow b { display: block; color: var(--primary); font-size: 14px; }
.aff-qr-row { display: flex; gap: 18px; align-items: flex-start; margin: 8px 0 18px; }
.aff-qr { flex: 0 0 auto; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 10px; min-width: 150px; min-height: 150px; }
.aff-qr img, .aff-qr canvas { display: block; }
.aff-grow { flex: 1; min-width: 0; }
.aff-details { margin: 6px 0 14px; }
.aff-details > summary { cursor: pointer; font-weight: 700; color: var(--primary); padding: 6px 0; }
.aff-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin-top: 8px; }
.aff-links-grid label { font-size: 12px; font-weight: 700; color: var(--muted); }
.aff-pkgpick { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aff-pkgpick label { font-weight: 700; color: var(--primary); }
.aff-pkgpick select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; max-width: 100%; }
.aff-kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 8px; }
.aff-kit-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.aff-kit-item h3 { font-size: 15px; margin: 0 0 6px; }
.aff-kit-item--ai { border-color: var(--accent); background: #fffaf0; margin-bottom: 14px; }
.aff-ai-form { background: var(--bg-soft); border-radius: 12px; padding: 16px; }
.aff-rules { margin-top: 22px; display: block; }
.aff-rules ul { margin: 8px 0 0; padding-left: 20px; }
.aff-rules li { margin: 4px 0; font-size: 14px; }
.aff-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.aff-guide__item { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; }
.aff-guide__item h3 { font-size: 16px; margin: 0 0 6px; }
.aff-guide__item p { margin: 0; font-size: 14px; }
.aff-plan li { margin: 6px 0; }
.aff-flyer-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.aff-flyer-row__img { width: 140px; height: 100px; border-radius: 10px; flex: 0 0 auto; background-size: cover; background-position: center; display: block; }
.aff-flyer-row h2 { margin: 0 0 8px; font-size: 18px; }
.aff-uploads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.aff-upload { width: 120px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.aff-upload img, .aff-upload__pdf { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.aff-upload__pdf { display: grid; place-items: center; font-weight: 800; color: #b42318; background: #fef3f2; }
.aff-designer { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.aff-designer__controls label { display: block; font-weight: 700; color: var(--primary); margin: 12px 0 6px; font-size: 14px; }
.aff-designer__controls input[type=text] { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.aff-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aff-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.aff-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.aff-designer__preview { background: var(--bg-soft); border-radius: 12px; padding: 14px; text-align: center; position: relative; overflow: hidden; }
.aff-designer__preview canvas { max-width: 100%; max-height: 72vh; height: auto; width: auto; box-shadow: var(--shadow); border-radius: 4px; }
.aff-qr-hidden { position: absolute; left: -9999px; top: 0; }
.aff-paychoice { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.aff-paychoice__opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.aff-paychoice__opt b { display: block; color: var(--primary); }
.aff-paychoice__opt small { color: var(--muted); }
.aff-paychoice__opt:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
@media (max-width: 900px) {
    .aff-hello, .aff-designer { grid-template-columns: 1fr; }
    .aff-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aff-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .aff-stats, .aff-stats--money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aff-quick, .aff-links-grid { grid-template-columns: 1fr; }
    .aff-qr-row, .aff-flyer-row { flex-direction: column; }
    .aff-copy:not(.aff-copy--multi) { flex-direction: column; }
}

/* ===== Affiliate portal base (fix pass 145) =====
   The affiliate portal's own copy of the partner-portal base styles (cards, bar,
   stats, tables, packages) under the affp- prefix, so affiliate pages never depend
   on vendor classes. Generated from the vendor rules once; edit freely. */
.affp-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 0; overflow: hidden; margin: 0 0 26px;
}
.affp-card:last-child {margin-bottom: 0;}
.affp-card__head {background: var(--primary); color: #fff; padding: 18px 30px; position: relative;}
.affp-card__head::after {
    content: ""; position: absolute; left: 0; bottom: -7px;
    border-width: 7px 7px 0 0; border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}
.affp-card__head h1, .affp-card__head h2 {
    color: #fff; font-size: 26px; line-height: 1.25; margin: 0;
}
.affp-card__head h2 {font-size: 21px;}
.affp-card__head p {margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .82);}
.affp-card__head-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.affp-card__head-row .btn {margin-left: auto;}
.affp-card__head-row .btn--outline {border-color: #fff; color: #fff;}
.affp-card__head-row .btn--outline:hover {background: #fff; color: var(--primary);}
.affp-card__body {padding: 30px;}
.affp-card__body h2 {
    color: var(--primary); font-size: 19px; margin: 30px 0 14px; padding-bottom: 9px; position: relative;
}
.affp-card__body h2:first-child {margin-top: 0;}
.affp-card__body h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
    background: var(--accent); border-radius: 2px;
}
.affp-card .field label {color: var(--primary); font-weight: 700;}
.affp-card .field input,
.affp-card .field select,
.affp-card .field textarea {border-color: #d5dbe4; transition: border-color .15s, box-shadow .15s;}
.affp-card .field input:hover,
.affp-card .field select:hover,
.affp-card .field textarea:hover {border-color: var(--primary);}
.affp-card .field input:focus,
.affp-card .field select:focus,
.affp-card .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .22);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
}
.affp-card .field--check {
    align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 16px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.affp-card .field--check label {
    font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 0;
}
.affp-card .field--check input {width: 20px; height: 20px; margin-top: 0; accent-color: var(--accent); flex: none;}
.affp-card .field--check .field__hint {flex-basis: 100%; margin-top: 0;}
.affp-turnstile {margin: 4px 0 22px; min-height: 65px;}
.affp-bar {background: var(--primary); color: #fff;}
.affp-bar__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 20px; padding-top: 11px; padding-bottom: 11px; font-size: 14px;
}
.affp-bar strong {font-weight: 700;}
.affp-bar__nav {display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;}
.affp-bar__nav a {color: #fff; font-weight: 600; text-decoration: none;}
.affp-bar__nav a:hover {color: var(--accent);}
.affp-bar__nav form {margin: 0;}
.affp-bar__out {
    background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--accent);
}
.affp-bar__out:hover {text-decoration: underline;}
.affp-lede {font-size: 16px; line-height: 1.7; color: var(--text); margin: 0 0 18px;}
.affp-nights {display: block; min-height: 1.3em; margin-top: 6px; font-size: 14px; font-weight: 600; color: #2e7d4f;}
.affp-nights--changed {color: #b26a00;}
.affp-nights--bad {color: #c0392b;}
.affp-alt {margin: 20px 0 0; font-size: 14px; color: var(--muted);}
.affp-alt a {color: var(--price-box, #1878F0); font-weight: 600;}
.affp-dim {color: var(--muted); font-size: 13px;}
.affp-empty {color: var(--muted); font-style: italic; padding: 22px 0;}
.affp-note {
    background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin: 0 0 20px;
    font-size: 14px; line-height: 1.6;
}
.affp-callout {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
    background: #fff8ec;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    border: 1px solid var(--line); border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px; margin: 0 0 26px; font-size: 15px;
}
.affp-callout strong {color: var(--primary);}
.affp-callout .btn {margin-left: auto;}
.affp-callout--flat {background: var(--bg-soft); display: block;}
.affp-status {
    display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .07em; padding: 7px 14px; border-radius: 40px; margin: 0 0 18px;
    background: var(--bg-soft); color: var(--primary); border: 1px solid var(--line);
}
.affp-status--approved {background: #e7f6ec; color: #1c7c3f; border-color: #b7e3c4;}
.affp-status--rejected,
.affp-status--suspended {background: #fde8e8; color: #b42318; border-color: #f5c2c0;}
.affp-pill {
    display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; padding: 4px 10px; border-radius: 40px;
    /* A pill that wraps stops being a pill. The table sits in .affp-table-wrap,
       which scrolls horizontally, so keeping this on one line costs nothing. */
    white-space: nowrap;
    background: var(--bg-soft); color: var(--primary); border: 1px solid var(--line);
}
.affp-pill--approved {background: #e7f6ec; color: #1c7c3f; border-color: #b7e3c4;}
.affp-pill--rejected {background: #fde8e8; color: #b42318; border-color: #f5c2c0;}
.affp-pill--submitted {
    background: #fff8ec;
    background: color-mix(in srgb, var(--accent) 14%, #fff);
    border-color: #f3d29a; color: #9a6200;
}
.affp-head {display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px;}
.affp-head h2 {margin: 0; color: var(--primary);}
.affp-head .btn {margin-left: auto;}
.affp-table-wrap {overflow-x: auto;}
.affp-table {width: 100%; border-collapse: collapse; font-size: 15px;}
.affp-table th, .affp-table td {
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.affp-table thead th {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary);
}
.affp-table tbody tr:nth-child(odd) td {background: var(--bg-soft);}
.affp-table__note td {
    background: #fff8ec !important;
    background: color-mix(in srgb, var(--accent) 14%, #fff) !important;
    font-size: 14px;
}
.affp-table--plain th {width: 34%; color: var(--primary); font-weight: 700;}
.affp-table--plain tbody tr:nth-child(odd) td {background: transparent;}
.affp-steps, .affp-sections {list-style: none; margin: 0 0 24px; padding: 0; counter-reset: vstep;}
.affp-steps {display: flex; flex-wrap: wrap; gap: 8px;}
.affp-steps li a {
    display: block; padding: 8px 14px; border-radius: 40px; font-size: 13px; font-weight: 600;
    background: var(--bg-soft); border: 1px solid var(--line); color: var(--primary); text-decoration: none;
}
.affp-steps li.is-current a {background: var(--primary); border-color: var(--primary); color: #fff;}
.affp-sections li {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 13px 2px; border-bottom: 1px solid var(--line); counter-increment: vstep;
}
.affp-sections li::before {
    content: counter(vstep); flex: none;
    width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.affp-sections li a {font-weight: 600; color: var(--primary); text-decoration: none;}
.affp-sections li a:hover {text-decoration: underline;}
.affp-need, .affp-done {
    margin-left: auto; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
}
.affp-need {color: #b42318;}
.affp-done {color: #1c7c3f;}
.affp-actions {display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px;}
.affp-owner {
    border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px;
}
.affp-sections--flow li {font-size: 15px; color: var(--text);}
.affp-agreement {
    max-height: 460px; overflow-y: auto; padding: 22px 24px; margin: 0 0 12px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 14.5px; line-height: 1.7; color: var(--text);
}
.affp-agreement:focus {outline: 2px solid var(--accent); outline-offset: 2px;}
.affp-agreement h3 {font-size: 15.5px; color: var(--primary); margin: 20px 0 6px;}
.affp-agreement p {margin: 0 0 10px;}
.affp-agreement__demo {
    background: #fff8ec; background: color-mix(in srgb, var(--accent) 12%, #fff);
    border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 0 8px 8px 0;
    font-weight: 700; color: #9a6200; font-size: 13.5px;
}
.affp-sigpad {
    position: relative; height: 200px; margin-top: 4px;
    background: var(--white); border: 2px dashed #c9d2de; border-radius: var(--radius);
    transition: border-color .15s;
}
.affp-sigpad:hover, .affp-sigpad.is-signed {border-color: var(--accent);}
.affp-sigpad canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    touch-action: none; cursor: crosshair; z-index: 2;
}
.affp-sigpad__line {
    position: absolute; left: 24px; right: 24px; bottom: 46px; height: 1px; background: #c9d2de; z-index: 1;
}
.affp-sigpad__hint {
    position: absolute; left: 26px; bottom: 22px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: #9aa4b2; z-index: 1;
}
.affp-sigpad.is-signed .affp-sigpad__hint {visibility: hidden;}
.affp-sigpad__tools {display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0 18px;}
.affp-sigpad__tools .field__hint {margin-top: 0;}
.affp-pkgs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.affp-pkg {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.affp-pkg:hover {border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px);}
.affp-pkg__img {display: block; aspect-ratio: 16 / 9; background: var(--bg-soft) center / cover no-repeat;}
.affp-pkg__body {display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 14px; flex: 1;}
.affp-pkg__title {font-weight: 800; color: var(--primary); font-size: 16.5px; line-height: 1.3;}
.affp-pkg__meta {font-size: 13px; color: var(--muted);}
.affp-pkg__price {font-size: 20px; font-weight: 800; color: var(--primary); margin-top: 6px;}
.affp-pkg__price small {font-size: 12px; font-weight: 600; color: var(--muted);}
.affp-pkg__foot {
    display: flex; justify-content: space-between; align-items: center; margin-top: auto;
    padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.affp-pkg__foot span {color: var(--accent); font-weight: 800;}
.affp-pkg-banner {aspect-ratio: 8 / 3; background: var(--bg-soft) center / cover no-repeat;}
.affp-pkg-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 20px;
}
.affp-pkg-facts > div {
    background: var(--bg-soft); border: 1px solid var(--line); border-top: 3px solid var(--accent);
    border-radius: var(--radius); padding: 12px 14px;
}
.affp-pkg-facts span {
    display: block; font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.affp-pkg-facts strong {display: block; font-size: 18px; color: var(--primary); margin-top: 3px;}
.affp-pkg-facts small {font-size: 12px; color: var(--muted);}
.affp-strike {text-decoration: line-through; color: var(--muted) !important;}
.affp-incl {list-style: none; margin: 0 0 8px; padding: 0; columns: 2 240px; column-gap: 28px;}
.affp-incl li {position: relative; padding: 4px 0 4px 20px; break-inside: avoid; font-size: 15px;}
.affp-incl li::before {
    content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 8px;
    border-radius: 50%; background: var(--accent);
}
.affp-rich {font-size: 15px; line-height: 1.7;}
.affp-rich img {max-width: 100%; height: auto;}
.affp-confirm {margin: 0 0 8px;}
.affp-confirm__num {
    text-align: center; padding: 16px; margin: 0 0 14px;
    background: #fffdf7; border: 2px dashed var(--accent); border-radius: var(--radius);
}
.affp-confirm__num span {
    display: block; font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
}
.affp-confirm__num strong {display: block; font-size: 26px; letter-spacing: 2px; color: var(--primary);}
.affp-timeline {list-style: none; margin: 0 0 20px; padding: 0 0 0 22px; border-left: 2px solid var(--line);}
.affp-timeline li {position: relative; padding: 0 0 16px 6px; font-size: 14.5px;}
.affp-timeline li::before {
    content: ""; position: absolute; left: -30px; top: 3px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--white); border: 3px solid var(--accent);
}
.affp-timeline li:last-child::before {background: var(--accent);}
.affp-timeline strong {color: var(--primary); display: block;}
.affp-timeline div {margin-top: 4px;}
.affp-pill--pending,
.affp-pill--change_requested {
    background: #fff8ec;
    background: color-mix(in srgb, var(--accent) 14%, #fff);
    border-color: #f3d29a; color: #9a6200;
}
.affp-pill--change_requested {background: #eef3fb; border-color: #c8d6ee; color: var(--primary);}
.affp-pill--fulfilled {background: #e7f6ec; color: #1c7c3f; border-color: #b7e3c4;}
.affp-pill--cancelled {background: #fde8e8; color: #b42318; border-color: #f5c2c0;}
.affp-status--ref-fulfilled {background: #e7f6ec; color: #1c7c3f; border-color: #b7e3c4;}
.affp-status--ref-cancelled {background: #fde8e8; color: #b42318; border-color: #f5c2c0;}
.affp-status--ref-pending {
    background: #fff8ec; background: color-mix(in srgb, var(--accent) 14%, #fff);
    border-color: #f3d29a; color: #9a6200;
}
@media (max-width: 640px) {
    .affp-callout .btn, .affp-head .btn {margin-left: 0; width: 100%;}
    .affp-bar__inner {font-size: 13px;}
    .affp-table th, .affp-table td {padding: 10px; font-size: 14px;}
    .affp-card__head {padding: 15px 20px;}
    .affp-card__head h1 {font-size: 21px;}
    .affp-card__head h2 {font-size: 18px;}
    .affp-card__body {padding: 22px 20px;}
    .affp-card__head-row .btn {margin-left: 0; width: 100%;}
    .affp-agreement {padding: 16px; max-height: 380px;}
    .affp-sigpad {height: 170px;}
    .affp-confirm__num strong {font-size: 21px;}
}
.affp-pill--toured {background: #1c7c3f; color: #fff; border-color: #166534;}
.affp-pill--noshow {background: #fde8e8; color: #b42318; border-color: #f5c2c0;}
.affp-pill--nq {background: #d92d20; color: #fff; border-color: #b42318;}
.affp-stats {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px;}
.affp-stat {background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;}
.affp-stat b {font-size: 26px; line-height: 1.1; color: var(--primary);}
.affp-stat span {font-size: 13px; color: var(--muted); font-weight: 600;}
.affp-stat--toured {background: #1c7c3f; border-color: #166534;}
.affp-stat--nq {background: #d92d20; border-color: #b42318;}
.affp-stat--toured b, .affp-stat--toured span, .affp-stat--nq b, .affp-stat--nq span {color: #fff;}
.affp-pkg__foot em {font-style: normal; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center;}
.affp-mini {font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; color: #fff;}
.affp-mini--toured {background: #1c7c3f;}
.affp-mini--nq {background: #d92d20;}
@media (max-width: 640px) {
    .affp-stats {grid-template-columns: repeat(2, minmax(0, 1fr));}
}
.affp-nqstages {background: #fef3f2; border: 1px solid #fecdca; border-radius: 10px; padding: 12px 16px 14px; margin: -6px 0 18px;}
.affp-nqstages__head {margin: 0 0 10px; font-size: 14px; color: #7a271a;}
.affp-nqstages__row {display: flex; flex-wrap: wrap; gap: 10px;}
.affp-nqstage {flex: 1 1 120px; background: #fff; border: 1px solid #fecdca; border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column;}
.affp-nqstage b {font-size: 22px; line-height: 1.1; color: #b42318;}
.affp-nqstage span {font-size: 13px; font-weight: 700; color: #1f2937;}
.affp-nqstage small {font-size: 11px; color: var(--muted);}
.affp-nqstage--won b {color: #1c7c3f;}
.affp-nqstage--muted b {color: var(--muted);}
.affp-pill--tourcancelled {background: #f1f3f6; color: #5b6472; border-color: #dde2ea;}
.affp-pill--rescheduled {background: #eef3fb; color: var(--primary); border-color: #c8d6ee;}

/* ===== Affiliate portal refresh (fix pass 146) =====
   Modern, on-brand look for every affiliate page (navy --primary, gold --accent):
   icon nav, page header band, softer cards and stat tiles, the guest survey,
   the guest tracker and the earnings reports. Affiliate classes only. */
.aff-section { padding: 26px 0 64px; background: linear-gradient(180deg, #f3f6fb 0, #fff 420px); }
.aff-ico { display: inline-block; vertical-align: -3px; flex: none; }
.aff-section .btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; }
.aff-section .btn--accent { background: var(--accent); color: #1a1a1a; border-color: var(--accent); font-weight: 800; }
.aff-section .btn--accent:hover { background: #ffb84a; background: color-mix(in srgb, var(--accent) 85%, #fff); }
.aff-section .btn--outline-light { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.aff-section .btn--outline-light:hover { background: #fff; color: var(--primary); }
.aff-section .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Bar: icons, active pill, gold "Submit guest", scrolls sideways on phones */
.affp-bar.aff-bar { background: linear-gradient(90deg, #12233f 0%, var(--primary) 60%, #21508f 100%); box-shadow: 0 2px 10px rgba(18, 35, 63, .18); }
.aff-bar .affp-bar__inner { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
.aff-bar__who { white-space: nowrap; font-size: 14px; }
.aff-bar .affp-bar__nav { flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.aff-bar .affp-bar__nav::-webkit-scrollbar { display: none; }
.aff-bar .affp-bar__nav a, .aff-bar .affp-bar__out {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .86); white-space: nowrap; text-decoration: none;
}
.aff-bar .affp-bar__nav a:hover, .aff-bar .affp-bar__out:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.aff-bar .affp-bar__nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; box-shadow: inset 0 -3px 0 var(--accent); }
.aff-bar .aff-bar__cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: #1a1a1a; font-weight: 800; font-size: 14px; white-space: nowrap; text-decoration: none; }
.aff-bar .aff-bar__cta:hover { background: #ffb84a; color: #1a1a1a; text-decoration: none; }
.aff-bar .affp-bar__out { color: var(--accent); }

/* Page header band */
.aff-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
    background: radial-gradient(120% 140% at 100% 0%, #2c5a99 0%, var(--primary) 45%, #12233f 100%);
    color: #fff; border-radius: 18px; padding: 26px 30px; margin: 0 0 22px; position: relative; overflow: hidden;
    box-shadow: 0 14px 34px rgba(18, 35, 63, .18);
}
.aff-head::after { content: ""; position: absolute; left: 30px; bottom: 0; width: 70px; height: 4px; border-radius: 4px 4px 0 0; background: var(--accent); }
.aff-head h1 { color: #fff; margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }
.aff-head__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.aff-head__sub { margin: 8px 0 0; color: rgba(255, 255, 255, .84); font-size: 15px; max-width: 720px; }
.aff-head__sub strong { color: #fff; }
.aff-head__sub a { color: #ffc46b; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.aff-head__sub a:hover { color: #fff; }
.aff-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.aff-linkbar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 0 0 18px; box-shadow: 0 4px 14px rgba(18, 35, 63, .05); }
.aff-linkbar label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--primary); font-size: 14px; white-space: nowrap; }
.aff-linkbar .aff-copy { margin: 0; }

/* Cards */
.aff-section .affp-card { border-radius: 16px; border-color: #e4e9f1; box-shadow: 0 6px 22px rgba(18, 35, 63, .06); margin-bottom: 22px; }
.aff-section .affp-card__head { background: linear-gradient(90deg, var(--primary), #24508c); padding: 18px 26px; }
.aff-section .affp-card__head::after { display: none; }
.aff-section .affp-card__head h1, .aff-section .affp-card__head h2 { font-size: 21px; }
.aff-section .affp-card__body { padding: 24px 26px; }
.aff-section .affp-card .field input, .aff-section .affp-card .field select, .aff-section .affp-card .field textarea { border-radius: 10px; }
.aff-section .affp-callout { border-radius: 12px; border-left-width: 5px; }
.aff-sub { font-size: 15px; font-weight: 800; color: var(--primary); margin: 22px 0 10px; letter-spacing: .01em; }
.aff-sub:first-child { margin-top: 0; }

/* Stat tiles */
.aff-section .affp-stats { gap: 14px; }
.aff-section .affp-stat {
    position: relative; border-radius: 14px; border-color: #e4e9f1; padding: 16px 16px 14px 62px; min-height: 76px; justify-content: center;
    box-shadow: 0 4px 14px rgba(18, 35, 63, .05);
}
.aff-section .affp-stat i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #eef3fb; color: var(--primary); }
.aff-section .affp-stat b { font-size: 25px; }
.aff-section .affp-stat--toured { background: linear-gradient(135deg, #1c7c3f, #22a05a); border-color: #1c7c3f; }
.aff-section .affp-stat--nq { background: linear-gradient(135deg, #b42318, #e04a3a); border-color: #b42318; }
.aff-section .affp-stat--toured i, .aff-section .affp-stat--nq i { background: rgba(255, 255, 255, .2); color: #fff; }

/* Pills */
.aff-pill { padding: 4px 11px; font-size: 12px; letter-spacing: .01em; border: 1px solid transparent; }
.aff-pill--ok { background: #dcfce7; color: #166534; border-color: #bbf0cc; }
.aff-pill--bad { background: #fee4e2; color: #b42318; border-color: #fbcac5; }
.aff-pill--warn { background: #fff1d6; color: #8a4b05; border-color: #fadca4; }
.aff-pill--info { background: #e5efff; color: #1d4ed8; border-color: #c7dafd; }
.aff-pill--muted { background: #f2f4f7; color: #475467; border-color: #e3e7ed; }

/* Dashboard: pipeline, recent + updates, quick actions */
.aff-pipe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.aff-pipe__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 10px; border-radius: 12px; background: var(--bg-soft); border: 1px solid #e4e9f1; border-top: 4px solid #c7d2e3; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.aff-pipe__item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18, 35, 63, .08); }
.aff-pipe__item b { font-size: 24px; line-height: 1.1; color: var(--primary); }
.aff-pipe__item span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.aff-pipe__item--progress { border-top-color: #6c8ebf; }
.aff-pipe__item--booked { border-top-color: var(--accent); }
.aff-pipe__item--toured { border-top-color: #1c7c3f; }
.aff-pipe__item--toured b { color: #1c7c3f; }
.aff-pipe__item--nq, .aff-pipe__item--noshow, .aff-pipe__item--not_qualified { border-top-color: #d92d20; }
.aff-pipe__item--cancelled { border-top-color: #98a2b3; }
.aff-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.aff-mini-list { list-style: none; margin: 0; padding: 0; }
.aff-mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.aff-mini-list li:last-child { border-bottom: 0; }
.aff-mini-list strong { display: block; color: var(--dark); font-size: 15px; }
.aff-mini-list small { color: var(--muted); font-size: 12.5px; }
.aff-quick a { position: relative; border-radius: 14px; padding: 16px 16px 16px 64px; min-height: 78px; justify-content: center; }
.aff-quick i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff4dc; color: #8a4b05; }

/* Submit a guest: numbered steps, package cards, survey choice cards */
.aff-step .aff-step__head { display: flex; align-items: center; gap: 14px; padding: 18px 26px 0; }
.aff-step__head h2 { margin: 0; font-size: 19px; color: var(--primary); }
.aff-step__head p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.aff-step__n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--primary); color: #fff; box-shadow: 0 0 0 4px #e5ecf7; }
.aff-step .affp-card__body { padding-top: 18px; }
.aff-pkgchoices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.aff-pkgchoice { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px; border: 2px solid #e4e9f1; border-radius: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.aff-pkgchoice input { position: absolute; opacity: 0; pointer-events: none; }
.aff-pkgchoice__img { width: 74px; height: 56px; flex: none; border-radius: 10px; background: var(--bg-soft) center / cover no-repeat; }
.aff-pkgchoice__body b { display: block; color: var(--primary); font-size: 15px; line-height: 1.3; }
.aff-pkgchoice__body small { color: var(--muted); font-size: 12.5px; }
.aff-pkgchoice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 166, 35, .2); background: #fffbf3; }
.aff-pkgchoice:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.aff-survey { display: grid; gap: 14px; }
.aff-q { border: 1px solid #e4e9f1; border-radius: 14px; padding: 14px 16px 12px; margin: 0; background: #fff; transition: border-color .15s, background .15s; }
.aff-q legend { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: var(--dark); font-size: 15.5px; padding: 0 6px; float: left; width: 100%; margin-bottom: 8px; }
.aff-q legend em { color: #d92d20; font-style: normal; }
.aff-q__n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #eef3fb; color: var(--primary); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: -1px; }
.aff-q__note { clear: both; margin: 0 0 8px 40px; font-size: 13px; color: var(--muted); }
.aff-choices { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 40px; }
.aff-choice { position: relative; cursor: pointer; margin: 0; }
.aff-choice input { position: absolute; opacity: 0; pointer-events: none; }
.aff-choice span { display: inline-block; padding: 9px 16px; border: 1.5px solid #d5dbe4; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); background: #fff; transition: all .12s; }
.aff-choice:hover span { border-color: var(--primary); }
.aff-choice input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.aff-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.aff-q.is-ok { border-color: #bfe3cb; background: #fbfefc; }
.aff-q.is-bad { border-color: #f5b5ae; background: #fff7f6; }
.aff-q.is-bad .aff-choice input:checked + span { background: #d92d20; border-color: #d92d20; }
.aff-q__warn { margin: 8px 0 0 40px; font-size: 13.5px; font-weight: 700; color: #b42318; }
.aff-spouse { margin: -4px 0 0; padding: 12px 16px; border-radius: 12px; background: #f5f8fd; border: 1px dashed #c8d6ee; }
.aff-spouse[hidden] { display: none; }   /* .field sets display, which beat the hidden attribute */
.aff-submitbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding-top: 6px; }
.aff-submitbar__status { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.aff-submitbar__status.is-ok { color: #1c7c3f; }
.aff-submitbar__status.is-bad { color: #b42318; }

/* Guest tracker */
.aff-chipbar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 0 12px; scrollbar-width: thin; }
.aff-chipbar a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #dfe5ee; color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none; }
.aff-chipbar a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #eef3fb; font-size: 12px; text-align: center; }
.aff-chipbar a:hover { border-color: var(--primary); }
.aff-chipbar a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.aff-chipbar a[aria-current="page"] span { background: var(--accent); color: #1a1a1a; }
.aff-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; background: #fff; border: 1px solid #e4e9f1; border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.aff-filters label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.aff-filters label span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aff-filters input, .aff-filters select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #d5dbe4; border-radius: 10px; min-width: 0; background: #fff; }
.aff-filters input[type=search] { width: 200px; }
.aff-filters__reset { font-size: 14px; font-weight: 600; align-self: center; }
.aff-guests { display: grid; gap: 10px; }
.aff-guest { background: #fff; border: 1px solid #e4e9f1; border-left: 5px solid #c7d2e3; border-radius: 14px; box-shadow: 0 4px 14px rgba(18, 35, 63, .04); }
.aff-guest--ok { border-left-color: #1c7c3f; }
.aff-guest--bad { border-left-color: #d92d20; }
.aff-guest--warn { border-left-color: var(--accent); }
.aff-guest--info { border-left-color: #3b6fd8; }
.aff-guest > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) auto; align-items: center; gap: 10px 22px; padding: 14px 18px; cursor: pointer; }
.aff-guest > summary::-webkit-details-marker { display: none; }
.aff-guest > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); position: absolute; right: 18px; display: none; }
.aff-guest[open] > summary { border-bottom: 1px solid var(--line); }
.aff-guest__who strong { display: block; font-size: 16px; color: var(--dark); }
.aff-guest__who small { color: var(--muted); font-size: 13px; }
.aff-guest__status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.aff-guest__money { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.aff-guest__money--ok { color: #1c7c3f; }
.aff-guest__money--bad { color: #b42318; text-decoration: line-through; }
.aff-guest__body { padding: 14px 18px 4px; }
.aff-guest__what { margin: 0 0 12px; font-weight: 600; color: var(--primary); }
.aff-guest__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.aff-guest__facts > div { background: var(--bg-soft); border-radius: 10px; padding: 8px 12px; }
.aff-guest__facts dt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aff-guest__facts dd { margin: 2px 0 0; font-size: 14.5px; color: var(--dark); }
.aff-guest__wide { grid-column: 1 / -1; }
.aff-guest__tl small { display: block; }
.aff-prog { display: flex; list-style: none; margin: 0; padding: 0; counter-reset: p; }
.aff-prog li { flex: 1; position: relative; text-align: center; font-size: 11.5px; font-weight: 700; color: #98a2b3; padding-top: 18px; }
.aff-prog li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid #c7d2e3; z-index: 1; }
.aff-prog li::after { content: ""; position: absolute; top: 9px; left: calc(-50% + 6px); right: calc(50% + 6px); height: 2px; background: #dfe5ee; }
.aff-prog li:first-child::after { display: none; }
.aff-prog li.is-done { color: #1c7c3f; }
.aff-prog li.is-done::before { background: #1c7c3f; border-color: #1c7c3f; }
.aff-prog li.is-done::after, .aff-prog li.is-now::after, .aff-prog li.is-bad::after { background: #1c7c3f; }
.aff-prog li.is-now { color: var(--primary); }
.aff-prog li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 166, 35, .25); }
.aff-prog li.is-bad { color: #b42318; }
.aff-prog li.is-bad::before { background: #d92d20; border-color: #d92d20; }
.aff-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.aff-pager a { min-width: 36px; text-align: center; padding: 7px 10px; border-radius: 10px; border: 1px solid #dfe5ee; background: #fff; font-weight: 700; color: var(--primary); text-decoration: none; }
.aff-pager a[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.aff-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px dashed #d5dbe4; font-size: 13px; color: var(--muted); }

/* Earnings reports */
.aff-report-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid #e4e9f1; margin: 0 0 18px; }
.aff-report-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.aff-report-form label[hidden] { display: none; }
.aff-report-form label > span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aff-report-form select, .aff-report-form input[type=date] { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #d5dbe4; border-radius: 10px; background: #fff; }
.aff-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid #d5dbe4; align-self: flex-end; }
.aff-seg label { cursor: pointer; }
.aff-seg input { position: absolute; opacity: 0; pointer-events: none; }
.aff-seg span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--primary); text-transform: none; letter-spacing: 0; }
.aff-seg input:checked + span { background: var(--primary); color: #fff; }
.aff-seg input:focus-visible + span { outline: 2px solid var(--accent); }
.aff-report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.aff-report-head h3 { margin: 0; font-size: 19px; color: var(--primary); }
.aff-report-head .affp-actions { margin: 0; }
.aff-report-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.aff-report-tiles > div { border-radius: 12px; padding: 10px 12px; background: #eef3fb; display: flex; flex-direction: column; }
.aff-report-tiles b { font-size: 20px; color: var(--primary); line-height: 1.2; }
.aff-report-tiles span { font-size: 12px; font-weight: 700; color: #475467; }
.aff-report-tiles .is-ok { background: #e3f6ea; }
.aff-report-tiles .is-ok b { color: #1c7c3f; }
.aff-report-tiles .is-bad { background: #fdecea; }
.aff-report-tiles .is-bad b { color: #b42318; }
.aff-report-tiles .is-warn { background: #fff4dc; }
.aff-report-tiles .is-warn b { color: #8a4b05; }
.aff-num { text-align: right !important; white-space: nowrap; }

@media (max-width: 1000px) {
    .aff-pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .aff-report-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .aff-guest > summary { grid-template-columns: minmax(0, 1fr) auto; }
    .aff-guest > summary .aff-prog { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
    .aff-head { padding: 22px 20px; border-radius: 14px; }
    .aff-head h1 { font-size: 24px; }
    .aff-head__actions, .aff-head__actions .btn { width: 100%; justify-content: center; }
    .aff-linkbar { grid-template-columns: 1fr; }
    .aff-split { grid-template-columns: 1fr; }
    .aff-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aff-report-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aff-section .affp-card__body { padding: 18px 16px; }
    .aff-step .aff-step__head { padding: 16px 16px 0; }
    .aff-choices, .aff-q__warn, .aff-q__note { padding-left: 0; margin-left: 0; }
    .aff-filters input[type=search] { width: 100%; }
    .aff-filters label { flex: 1 1 140px; }
    .aff-submitbar { position: sticky; bottom: 0; background: #fff; margin: 0 -16px -18px; padding: 12px 16px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; z-index: 5; }
    .aff-submitbar .btn { width: 100%; justify-content: center; }
    .aff-guest > summary { padding: 12px 14px; }
    .aff-bar__who { font-size: 13px; }
    .aff-bar .affp-bar__nav a span { font-size: 13px; }
    .aff-rtable thead { display: none; }
    .aff-rtable, .aff-rtable tbody, .aff-rtable tr, .aff-rtable td { display: block; width: 100%; }
    .aff-rtable tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 6px 4px; background: #fff; }
    .aff-rtable tbody tr:nth-child(odd) td { background: transparent; }
    .aff-rtable td { border: 0; padding: 5px 10px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .aff-rtable td::before { content: attr(data-label); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: left; }
}

/* fix pass 146 - layout fixes after preview */
.aff-section .affp-stats.aff-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aff-section .affp-stats.aff-stats--money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aff-bar .affp-bar__nav a, .aff-bar .affp-bar__out { padding: 8px 9px; font-size: 13.5px; }
@media (min-width: 721px) {
    .aff-bar .aff-bar__icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1000px) {
    .aff-section .affp-stats.aff-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .aff-section .affp-stats.aff-stats, .aff-section .affp-stats.aff-stats--money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.aff-guest > summary { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) 230px; }
@media (max-width: 1000px) {
    .aff-guest > summary { grid-template-columns: minmax(0, 1fr) auto; }
}
.aff-report-form .aff-seg label > span { font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--primary); }
.aff-report-form .aff-seg input:checked + span { color: #fff; }
/* fix pass 146b - the bar as a grid: who | links (scroll) | button + sign out (never clipped) */
.aff-bar .affp-bar__inner.aff-bar__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "who nav end"; align-items: center; gap: 6px 14px; }
.aff-bar__grid .aff-bar__who { grid-area: who; }
.aff-bar__grid .affp-bar__nav { grid-area: nav; min-width: 0; justify-content: flex-start; }
.aff-bar__grid .affp-bar__nav > a:first-child { margin-left: auto; }
.aff-bar__grid .aff-bar__end { grid-area: end; display: flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; }
.aff-bar__grid .aff-bar__end form { margin: 0; }
.aff-bar__grid .affp-bar__nav.is-scrollable { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.aff-bar__grid .affp-bar__nav.is-scrollable.is-end { -webkit-mask-image: none; mask-image: none; }
@media (min-width: 1201px) {
    .aff-bar__grid .aff-bar__name { display: none; }
}
@media (max-width: 1200px) {
    .aff-bar .affp-bar__inner.aff-bar__grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who end" "nav nav"; }
    .aff-bar__grid .affp-bar__nav > a:first-child { margin-left: 0; }
    .aff-bar__grid .aff-bar__who { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 720px) {
    .aff-bar .aff-bar__cta { padding: 7px 11px; font-size: 13px; }
}
@media (max-width: 420px) {
    .aff-bar .aff-bar__name { display: none; }
}
@media (max-width: 640px) {
    .aff-section .affp-stat { padding: 14px 12px; }
    .aff-section .affp-stat i { display: none; }
    .aff-section .affp-stat b { font-size: 21px; }
}

/* ===== Assigned-package resort + Share sheet (fix pass 150) - vendor + affiliate portals ===== */
.pkg-card-wrap { display: flex; flex-direction: column; min-width: 0; }
.pkg-card-wrap > a { flex: 1; }
.pkg-card-wrap > .vendor-pkg, .pkg-card-wrap > .affp-pkg { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pkg-card-bar { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: #fbfcfe; font-size: 13px; }
.pkg-card-resort { flex: 1 1 0; min-width: 0; color: var(--dark); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-card-resort--none { color: var(--muted); font-weight: 500; font-style: italic; }
.pkg-card-stats { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pkg-share-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: 999px; background: var(--primary); color: #fff; }
.pkg-share-btn::before { content: "\27A6"; font-size: 13px; line-height: 1; }
.pkg-share-btn:hover { background: var(--accent); color: #1a1a1a; }
.pkg-head-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.pkg-resort-box { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 0 0 18px; border-radius: 14px; background: #f3f7fd; border: 1px solid #d9e4f3; border-left: 5px solid var(--primary); }
.pkg-resort-box__icon { font-size: 26px; line-height: 1; }
.pkg-resort-box div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pkg-resort-box__k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pkg-resort-box strong { font-size: 17px; color: var(--primary); }
.pkg-resort-box span:not(.pkg-resort-box__k):not(.pkg-resort-box__icon) { font-size: 14px; color: var(--text); }
.pkg-resort-box--none { background: var(--bg-soft); border-left-color: #c3cad5; }
.pkg-resort-box--none strong { color: var(--muted); }
.pkg-share-stats { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.pkg-share-stats strong { color: var(--primary); }

.pshare { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 14px; }
.pshare[hidden] { display: none; }
.pshare__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .6); }
.pshare__card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 28px); overflow: auto; background: #fff; border-radius: 18px; padding: 20px 20px 18px; box-shadow: 0 30px 70px rgba(16, 24, 40, .35); }
.pshare__x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f4f7; font-size: 22px; line-height: 1; cursor: pointer; color: #475467; }
.pshare__head { display: flex; gap: 14px; align-items: center; padding-right: 40px; margin: 0 0 14px; }
.pshare__img { flex: none; width: 74px; height: 56px; border-radius: 10px; background: var(--bg-soft) center / cover no-repeat; }
.pshare__eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pshare__head h2 { margin: 2px 0; font-size: 19px; color: var(--primary); line-height: 1.25; }
.pshare__facts { margin: 0; font-size: 13px; color: var(--muted); }
.pshare__tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.pshare__tabs button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: 9px 12px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pshare__tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--accent); }
.pshare__native { width: 100%; margin: 0 0 12px; padding: 12px; border: 0; border-radius: 12px; background: var(--accent); color: #1a1a1a; font: inherit; font-weight: 800; cursor: pointer; }
.pshare__nets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.pshare__net { border: 1px solid #e3e7ed; background: #fff; border-radius: 12px; padding: 10px 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--net, #1a3a6b); cursor: pointer; border-top: 3px solid var(--net, #1a3a6b); }
.pshare__net:hover { background: #f6f8fb; }
.pshare__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.pshare__label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pshare__row { display: flex; gap: 8px; align-items: center; margin: 6px 0 0; }
.pshare__row--end { justify-content: flex-end; }
.pshare__row--center { justify-content: center; }
.pshare__row input, .pshare textarea { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 13.5px; padding: 9px 11px; border: 1px solid #d5dbe4; border-radius: 10px; background: #fbfcfe; color: var(--text); }
.pshare textarea { resize: vertical; line-height: 1.45; }
.pshare__btn { border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 800; padding: 9px 16px; border-radius: 999px; background: var(--primary); color: #fff; white-space: nowrap; }
.pshare__btn.is-copied { background: #1c7c3f; }
.pshare__preview { display: flex; justify-content: center; background: #f3f6fb; border-radius: 14px; padding: 12px; }
.pshare__qr { display: flex; justify-content: center; padding: 14px; }
.pshare__qr img, .pshare__qr canvas { border: 10px solid #fff; box-shadow: 0 4px 16px rgba(16, 24, 40, .12); border-radius: 8px; }
.pshare__hint { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
body.pshare-open { overflow: hidden; }
@media (max-width: 520px) {
    .pshare__card { padding: 16px 14px 14px; border-radius: 16px; }
    .pshare__nets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pshare__row { flex-wrap: wrap; }
    .pshare__row .pshare__btn { width: 100%; }
    .pkg-head-actions { margin-left: 0; width: 100%; }
}
.pkg-card-wrap .affp-pkg__foot { padding: 10px 18px 12px; }
.pkg-card-bar { flex-wrap: nowrap; }
.pkg-resort-box__note { font-style: normal; font-size: 13px; color: var(--muted); }
.pkg-resort-box--slim { padding: 10px 14px; margin: 0 0 16px; }

/* ------------------------------------------------------------------
   Fix pass 161: vendor + affiliate dashboards - "Needs your attention"
   (partner twin of the admin dashboard's grouped section).
   ------------------------------------------------------------------ */
.pa-attn { margin: 0 0 22px; }
.pa-attn__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pa-attn__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.25rem; color: var(--primary); }
.pa-attn__head h2 span { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #fff4e0; color: #b46a00; font-weight: 800; font-size: 16px; }
.pa-attn__head em { font-style: normal; font-weight: 700; font-size: .9rem; padding: 4px 12px; border-radius: 20px; }
.pa-attn__head em.is-todo { background: #fdecec; color: #b42318; }
.pa-attn__head em.is-clear { background: #e8f6ee; color: #1c7c3f; }
.pa-attn__allclear { margin: 0; padding: 14px 16px; background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; color: #4b5563; }
.pa-attn__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.pa-attn__group { background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; padding: 14px 14px 10px; min-width: 0; box-shadow: 0 2px 10px rgba(16,24,40,.04); }
.pa-attn__group.is-todo { border-color: #f3d39b; }
.pa-attn__group.is-urgent { border-color: #f5c2c0; box-shadow: 0 4px 16px rgba(180,35,24,.08); }
.pa-attn__group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1rem; color: var(--primary); }
.pa-attn__group h3 i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #eef3ff; font-size: 14px; flex: none; }
.pa-attn__group ul { list-style: none; margin: 0; padding: 0; }
.pa-attn__group li + li { border-top: 1px solid #f0f2f6; }
.pa-attn__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 4px; color: #1f2937; font-weight: 600; font-size: .95rem; border-radius: 8px; text-decoration: none; }
.pa-attn__row:hover { background: #f7f9fc; }
.pa-attn__row span { min-width: 0; overflow-wrap: anywhere; }
.pa-attn__row small { display: block; font-weight: 500; font-size: .8rem; color: #6b7280; margin-top: 2px; }
.pa-attn__row b { min-width: 26px; height: 24px; padding: 0 7px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; flex: none; }
.pa-attn__row--urgent b { background: #b42318; color: #fff; }
.pa-attn__row--todo b { background: #fdecc8; color: #8a5300; }
.pa-attn__row--info b { background: #e3ebff; color: #2952b3; }
.pa-attn__clear { margin: 2px 0 6px; color: #1c7c3f; font-weight: 700; font-size: .92rem; }
.pa-attn__team { margin: 6px 4px 2px; font-size: .78rem; color: #6b7280; }
@media (max-width: 600px) { .pa-attn__groups { grid-template-columns: 1fr; } }

/* All Inclusive journeys (2026-10-21): the survey's age boxes and the not-qualified reasons. */
.journey__number { width: 120px; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; }
.journey__requirements--compact { margin-bottom: 18px; }
.journey__reasons { text-align: left; max-width: 560px; margin: 0 auto 16px; color: var(--price); }

/* Affiliate portal kit: the counsel-approved disclosure (2026-10-27) */
.aff-disclose { margin: 12px 0 24px; }
.aff-disclose h3 { font-size: 15px; margin: 16px 0 6px; }
.aff-disclose h3 small { display: block; font-weight: 400; font-size: 13px; margin-top: 2px; }
