/* ==========================================================================
   The Trip Keeper — "scribble" design system (design handoff, Sep 2026).
   Loaded by every page rebuilt from design_handoff_website_rebuild/.

   Per the handoff's own instructions, almost everything in the prototypes is
   an inline style and stays that way here — colours, radii, shadows, and
   rotation are literal per-element values, lifted verbatim into each page's
   markup, not abstracted into classes. This file holds ONLY what genuinely
   cannot be expressed as an inline `style` attribute: keyframe animations,
   :hover states, and ::selection/::placeholder pseudo-selectors.

   Tokens (for reference — used as literal hex values inline, not CSS custom
   properties, matching the handoff's own convention):
     Sun Yellow   #FFD23F   Bright Blue  #2B54D6
     Ink Blue     #10265A   Paper Blue   #F2F5FF
     White        #FFFFFF
   ========================================================================== */

::selection { background: #FFD23F; color: #10265A; }

/* No underlines anywhere in this design system — every component below
   (tk-btn, tkm-*, tk-link, etc.) already sets text-decoration:none by hand,
   which only ever protects that one class. Pages built on this file alone
   (not style.css, which carries its own older `a{text-decoration:none}`
   reset) never got an equivalent bare reset, so any plain `<a href>` with
   nothing but an inline `style` — no class — fell through to the browser's
   default underline. This is the actual, permanent fix: one rule, every
   page, no more per-link patching. */
a { text-decoration: none; }

a.tk-link { color: #2B54D6; text-decoration: none; }
a.tk-link:hover { color: #10265A; }

input::placeholder, textarea::placeholder { color: #7d88a8; }

/* ---------- keyframes ---------- */
@keyframes tkTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tkPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes tkRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tkDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- header "Plan your trip" dropdown (design_handoff_nav/, Sep 2026) ----------
   includes/tk-header.php sets the inline colours/sizes per the handoff; only
   the open/closed state (not expressible as a literal inline value) lives
   here. */
.tk-plan-trigger { border-bottom: 3px solid transparent; }
.tk-plan-trigger.is-open, .tk-plan-trigger.is-active { border-bottom-color: #2B54D6; }
.tk-plan-panel { display: none; }
.tk-plan-panel.is-open { display: block; animation: tkDrop .18s ease; }

.tk-ticker-track { animation: tkTicker 25s linear infinite; }
.tk-pulse-dot { animation: tkPulse 1.6s infinite; }
.tk-rise { animation: tkRise .45s ease both; }

@media (prefers-reduced-motion: reduce) {
    .tk-ticker-track, .tk-pulse-dot, .tk-rise { animation: none !important; }
}

/* ---------- buttons — "press into its own shadow" on hover ----------
   Three colour variants, matching the combinations actually used with a
   hover state in the prototypes (the smaller card-level buttons have no
   shadow/hover in the source designs either, so they stay plain inline
   styles with no class). */
.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; border: 3px solid #10265A; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s; min-height: 44px; }
.tk-btn-yellow { background: #FFD23F; color: #10265A; box-shadow: 4px 4px 0 #10265A; }
.tk-btn-yellow:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #10265A; color: #10265A; }
.tk-btn-blue { background: #2B54D6; color: #FFD23F; box-shadow: 6px 6px 0 #10265A; }
.tk-btn-blue:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #10265A; color: #FFD23F; }
.tk-btn-paper { background: #F2F5FF; color: #10265A; box-shadow: 6px 6px 0 #10265A; }
.tk-btn-paper:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #10265A; color: #10265A; }
.tk-btn:disabled, .tk-btn.button--loading { opacity: .6; cursor: default; transform: none !important; }

/* ==========================================================================
   Mobile UI (design handoff, Sep 2026 — design_handoff_mobile/).
   Structurally distinct from desktop per MOBILE_IMPLEMENTATION.md §1 option
   A: one PHP file per page, both markups shipped, toggled by a 768px CSS
   breakpoint (no user-agent sniffing — a resize/rotate always shows the
   right one, and desktop devtools device-mode "just works"). Every page's
   data layer (queries, get_setting() keys, process_inquiry_post() calls,
   section_enabled() gates) is computed once at the top of the file and read
   by both branches — only the markup below differs.
   ========================================================================== */
.tk-mobile { display: none; }
@media (max-width: 767px) {
    .tk-desktop { display: none !important; }
    .tk-mobile { display: block; }
    body { padding-bottom: 72px; } /* room for the sticky bottom action bar */
    body.admin { padding-bottom: 0; } /* admin's own bottom tab bar reserves its own space, on .admin-main below */
    .admin-main { padding-bottom: 84px !important; } /* room for the admin bottom tab bar */
}

/* ---------- mobile header (64px, 3 slots) + drawer ---------- */
.tkm-header { position: sticky; top: 0; z-index: 70; height: 64px; background: #F2F5FF; border-bottom: 3px solid #10265A; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; gap: 10px; }
.tkm-header__slot { display: flex; align-items: center; gap: 8px; min-width: 44px; }
.tkm-header__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: #10265A; text-align: center; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkm-iconbtn { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #F2F5FF; border: 3px solid #10265A; border-radius: 10px; color: #10265A; text-decoration: none; font-size: 1.15rem; cursor: pointer; }
.tkm-iconbtn.gold { background: #FFD23F; }

.tkm-drawer { position: fixed; inset: 0; z-index: 200; background: #10265A; display: none; flex-direction: column; overflow-y: auto; }
.tkm-drawer.is-open { display: flex; }
.tkm-drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px dashed rgba(242,245,255,.3); }
.tkm-drawer__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 2px solid #F2F5FF; border-radius: 10px; color: #F2F5FF; font-size: 1.3rem; cursor: pointer; }
.tkm-drawer__nav { flex: 1; display: flex; flex-direction: column; padding: 10px 22px; }
.tkm-drawer__nav a { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.75rem; color: #F2F5FF; text-decoration: none; padding: 16px 0; border-bottom: 1px dashed rgba(242,245,255,.3); }
.tkm-drawer__nav a.is-active { color: #FFD23F; }
.tkm-drawer__cta { margin: 16px 22px 26px; }

/* ---------- sticky bottom action bar ---------- */
.tkm-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #2B54D6; border-top: 3px solid #10265A; padding: 9px 12px; display: flex; gap: 8px; }
.tkm-actionbar a, .tkm-actionbar button { min-height: 46px; }

/* ---------- snap carousels (replace desktop grids) ---------- */
.tkm-snap { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 20px 10px; }
.tkm-snap::-webkit-scrollbar { display: none; }
.tkm-snap > * { scroll-snap-align: start; flex: 0 0 268px; }

/* ---------- filter chips ---------- */
.tkm-chiprow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 12px 20px; }
.tkm-chiprow::-webkit-scrollbar { display: none; }
.tkm-chip { flex-shrink: 0; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .88rem; padding: 9px 18px; border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.tkm-chip.is-on { background: #2B54D6; color: #FFD23F; border: 3px solid #10265A; }
.tkm-chip.is-off { background: #F2F5FF; color: #10265A; border: 3px solid #C6D2EC; }

/* ---------- accordion (+ becomes ×) ---------- */
.tkm-accordion summary { list-style: none; cursor: pointer; min-height: 48px; }
.tkm-accordion summary::-webkit-details-marker { display: none; }
.tkm-accordion summary .tkm-accordion__sign::before { content: '+'; }
.tkm-accordion[open] summary .tkm-accordion__sign::before { content: '×'; }

/* ---------- trip-detail tabs ---------- */
.tkm-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 64px; z-index: 60; background: #F2F5FF; border-bottom: 3px solid #10265A; padding: 10px 20px; }
.tkm-tabs::-webkit-scrollbar { display: none; }
.tkm-tabpanel { display: none; }
.tkm-tabpanel.is-active { display: block; }

/* ---------- forms — 16px inputs, never smaller (iOS zoom bug) ---------- */
.tkm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tkm-field label { font-weight: 700; font-size: .85rem; color: #10265A; }
.tkm-field input, .tkm-field select, .tkm-field textarea { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; padding: 14px; border: 3px solid #10265A; border-radius: 8px; background: #fff; color: #10265A; outline: none; width: 100%; }
.tkm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- ± stepper (Organize a Group group size) ---------- */
.tkm-stepper { display: flex; align-items: center; gap: 14px; }
.tkm-stepper button { width: 52px; height: 52px; flex-shrink: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.5rem; background: #FFD23F; border: 3px solid #10265A; border-radius: 10px; color: #10265A; cursor: pointer; }
.tkm-stepper input { flex: 1; min-width: 0; text-align: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.3rem; }

/* ---------- full-screen lightbox with explicit prev/next ---------- */
.tkm-lightbox { position: fixed; inset: 0; z-index: 210; background: #10265A; display: none; flex-direction: column; }
.tkm-lightbox.is-open { display: flex; }
.tkm-lightbox img { flex: 1; width: 100%; min-height: 0; object-fit: contain; }
.tkm-lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 10px; }

/* ---------- reading progress (blog article) ---------- */
.tkm-progress-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(16,38,90,.15); }
.tkm-progress-fill { height: 100%; width: 0%; background: #2B54D6; }

/* ---------- admin bottom tab bar ---------- */
.tkm-admin-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #10265A; border-top: 3px solid #FFD23F; display: flex; }
.tkm-admin-tabbar a, .tkm-admin-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px 10px; background: none; border: none; color: #C7D2EE; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .68rem; text-decoration: none; cursor: pointer; }
.tkm-admin-tabbar a.is-active, .tkm-admin-tabbar button.is-active { color: #FFD23F; }
.tkm-admin-tabbar .tkm-admin-tabbar__icon { font-size: 1.2rem; line-height: 1; }
.tkm-admin-more { position: fixed; inset: 0; z-index: 220; background: #10265A; display: none; flex-direction: column; overflow-y: auto; }
.tkm-admin-more.is-open { display: flex; }

/* ==========================================================================
   Admin — desktop UI reskin (Sep 2026 scribble system).
   Every selector below already exists in assets/css/style.css from the old
   navy/gold theme, and every admin screen (~75 of them) still renders that
   markup as-is — only admin/dashboard.php's own body content was rebuilt
   with new-theme inline markup (see that file). Loading after style.css,
   this block overrides the shared admin component classes in place — same
   class names, same PHP/HTML, no per-page edits — so the sidebar, tables,
   cards, badges, forms, and buttons on every admin page pick up the new
   palette/fonts at once instead of only the dashboard.
   billing-tool.php is a standalone document with its own inline <style> and
   never loads this file, so it is untouched (matches its own lower-priority,
   print-tool status).
   ========================================================================== */
body.admin {
    background: #F2F5FF;
    color: #10265A;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}
body.admin h1, body.admin h2, body.admin h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -.01em; }
/* Scoped to .admin-main (not a blanket `body.admin a`) — the sidebar, the
   mobile drawer, and the bottom tab bar all set their own link colours for
   light-text-on-dark-background contrast, and a bare `body.admin a` rule
   has *higher* specificity than their `.admin-sidebar__nav a`-style
   selectors (2 elements vs 1), so it was silently winning and turning that
   light sidebar text unreadable-blue-on-navy. */
body.admin .admin-main a { color: #2B54D6; }
body.admin .admin-main a:hover { color: #10265A; }
body.admin .empty-state { color: #5a6675; }
body.admin .hint, body.admin .help { color: #5a6675; }

/* ---- sidebar shell ---- */
.admin-sidebar { background: #10265A; border-right: 3px solid #10265A; }
.admin-sidebar__brand .brand__name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: #FFD23F; }
.admin-sidebar__group { font-family: 'DM Sans', sans-serif; font-weight: 700; color: #7C8EC4; }
.admin-sidebar__nav a { font-family: 'DM Sans', sans-serif; font-weight: 600; color: #DCE4F7; }
.admin-sidebar__nav a:hover { background: rgba(255,210,63,.14); color: #fff; }
.admin-sidebar__nav a.is-active { background: #FFD23F; color: #10265A; font-weight: 700; }
.admin-sidebar__user { border-top: 1px dashed rgba(242,245,255,.25); color: #DCE4F7; }
.admin-sidebar__role { color: #FFD23F; }
.admin-sidebar__user a { color: #8FA6D8; }
.admin-sidebar__user a:hover { color: #FFD23F; }
.admin-sidebar__burger { background: #10265A; border-color: #FFD23F; }
.admin-sidebar__burger span { background: #FFD23F; }

/* ---- universal admin search (Ctrl/Cmd+K) ---- */
.admin-search { position: relative; padding: 0 10px 14px; }
.admin-search__input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 2px solid #2A3F73; background: #16305F; color: #F2F5FF; font-family: 'DM Sans', sans-serif; font-size: .85rem; outline: none; }
.admin-search__input::placeholder { color: #7C8EC4; }
.admin-search__input:focus { border-color: #FFD23F; }
.admin-search__results { position: absolute; left: 10px; right: 10px; top: calc(100% + 2px); background: #10265A; border: 2px solid #2A3F73; border-radius: 10px; max-height: 320px; overflow-y: auto; z-index: 80; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.admin-search__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: #F2F5FF; text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: .85rem; font-weight: 600; border-bottom: 1px solid rgba(242,245,255,.08); }
.admin-search__item:last-child { border-bottom: none; }
.admin-search__item-group { color: #8FA6D8; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
.admin-search__item.is-active, .admin-search__item:hover { background: rgba(255,210,63,.14); color: #FFD23F; }
.admin-search__item.is-active .admin-search__item-group, .admin-search__item:hover .admin-search__item-group { color: #FFD23F; }

/* ---- stat cards / KPI grid ---- */
.stat-card { background: #fff; border: 3px solid #10265A; border-left-width: 8px; border-left-color: #FFD23F; border-radius: 14px; box-shadow: 6px 6px 0 #10265A; }
.stat-card__value { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: #10265A; }
.stat-card__label { font-family: 'DM Sans', sans-serif; color: #4A5578; }

/* ---- data tables ---- */
table.data-table { border: 3px solid #10265A; border-radius: 14px; box-shadow: 6px 6px 0 #10265A; }
table.data-table th { background: #10265A; color: #FFD23F; font-family: 'DM Sans', sans-serif; }
table.data-table td { font-family: 'DM Sans', sans-serif; color: #10265A; border-bottom-color: #E3E9F9; }
table.data-table tr:hover td { background: #F2F5FF; }

/* ---- badges (lead stage / priority / status) ---- */
.badge { border: 2px solid #10265A; font-family: 'DM Sans', sans-serif; }
.badge--new, .badge--booking_intent, .badge--quotation_sent, .badge--follow_up,
.badge--negotiation, .badge--payment_pending, .badge--warm { background: #FFD23F; color: #10265A; }
.badge--read, .badge--inquiry, .badge--contacted, .badge--requirement_understood, .badge--cold { background: #E7ECFB; color: #10265A; }
.badge--responded, .badge--published, .badge--booked, .badge--future_travel { background: #DFF5E6; color: #146C34; border-color: #146C34; }
.badge--unpublished { background: #EEE; color: #5a6675; border-color: #C7CBD6; }
.badge--lost, .badge--hot { background: #FCE8E6; color: #B3261E; border-color: #B3261E; }

/* ---- flash / alerts ---- */
body.admin .flash { border: 3px solid #10265A; border-radius: 10px; font-family: 'DM Sans', sans-serif; }
body.admin .flash--success { background: #DFF5E6; color: #146C34; }
body.admin .flash--error { background: #FCE8E6; color: #B3261E; }

/* ---- buttons ---- */
body.admin .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .88rem;
    text-transform: none; letter-spacing: normal;
    background: #FFD23F; color: #10265A; border: 3px solid #10265A; border-radius: 8px;
    box-shadow: 4px 4px 0 #10265A; transition: transform .12s, box-shadow .12s;
}
body.admin .button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #10265A; color: #10265A; }
body.admin .button--outline { background: #F2F5FF; color: #10265A; box-shadow: 4px 4px 0 #10265A; }
body.admin .button--ghost { background: transparent; border-color: #10265A; color: #10265A; box-shadow: none; }
body.admin .button--ghost:hover { background: rgba(16,38,90,.06); transform: none; }
body.admin .button--danger { background: #FCE8E6; color: #B3261E; border-color: #B3261E; box-shadow: 4px 4px 0 #B3261E; }
body.admin .button--danger:hover { background: #B3261E; color: #fff; }
body.admin .button--small { padding: 10px 16px; font-size: .8rem; box-shadow: 3px 3px 0 #10265A; }
body.admin .button--small:hover { box-shadow: 1px 1px 0 #10265A; }
body.admin .button--loading::after { border-color: #10265A; border-top-color: transparent; }

/* ---- forms (admin's .form-group is admin-only; bare inputs scoped to body.admin for safety) ---- */
body.admin .form-group label { font-family: 'DM Sans', sans-serif; font-weight: 700; color: #10265A; }
body.admin input[type="text"], body.admin input[type="email"], body.admin input[type="tel"],
body.admin input[type="number"], body.admin input[type="password"], body.admin input[type="date"],
body.admin input[type="file"], body.admin select, body.admin textarea {
    border: 3px solid #10265A; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 16px; color: #10265A;
}
body.admin input:focus, body.admin select:focus, body.admin textarea:focus { outline: 2px solid #FFD23F; outline-offset: 1px; border-color: #2B54D6; }

/* ---- toggle switches / rows (section-toggles.php) ---- */
.toggle-switch--on { background: #2B54D6; }
.toggle-switch:focus-visible { outline-color: #FFD23F; }
.toggle-row { border: 3px solid #10265A; border-radius: 12px; box-shadow: 6px 6px 0 #10265A; }
.toggle-row__label { font-family: 'DM Sans', sans-serif; color: #10265A; }
.toggle-row__key { color: #5a6675; }

/* ---- theme switch (website-experience.php) ---- */
.theme-switch__option { border-color: #10265A; }
.theme-switch__option.is-active { border-color: #2B54D6; box-shadow: 0 0 0 3px rgba(43,84,214,.15); }
.theme-switch__label { font-family: 'DM Sans', sans-serif; color: #10265A; }
.theme-switch__hint { color: #5a6675; }

/* ---- section visibility tabs (section-toggles.php) ---- */
.section-tab { border: 2px solid #10265A; font-family: 'DM Sans', sans-serif; color: #10265A; }
.section-tab:hover { border-color: #2B54D6; color: #2B54D6; }
.section-tab.is-active { background: #10265A; border-color: #10265A; color: #FFD23F; }
.section-tab__count { background: rgba(16,38,90,.1); }
.section-tab.is-active .section-tab__count { background: rgba(255,255,255,.18); }
.section-card { border: 3px solid #10265A; border-radius: 12px; box-shadow: 5px 5px 0 #10265A; }

/* ---- filter bar (customers.php lead list) ---- */
body.admin .filter-bar { border: 3px solid #10265A; border-radius: 12px; box-shadow: 5px 5px 0 #10265A; }
body.admin .filter-bar__field label { font-family: 'DM Sans', sans-serif; color: #10265A; }

/* ---- media picker (gallery-photos.php, package-edit.php cover picker) ---- */
body.admin .gallery-manager__item { background: #fff; border: 2px solid #10265A; border-radius: 10px; }
body.admin .gallery__thumb:hover { border-color: #2B54D6; }

/* ---- login screen ---- */
body.admin .auth-page { background: #10265A; }
body.admin .auth-card { border: 3px solid #10265A; border-radius: 16px; box-shadow: 8px 8px 0 rgba(16,38,90,.5); }
body.admin .auth-card .brand__name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: #10265A; }
