/* ==========================================================================
   Thai Smile Trip — agent-side UI layer
   Loads after agency-theme.css (tokens + .ts-* components) and every legacy
   stylesheet. Contains:
     1. App shell      (nav, popovers, tab bar, footer, page header)
     2. Global elements (buttons, inputs, selects, date/time pickers, modals,
                         tables, badges, counters ... one look everywhere)
     3. Page layers    (one block per page, from the HTML designs)
   ========================================================================== */

:root {
  /* Legacy agency tokens now resolve to the design tokens */
  --agency-primary: var(--primary);
  --agency-primary-hover: var(--primary-hover);
  --agency-primary-light: var(--primary-soft);
  --agency-primary-muted: color-mix(in srgb, var(--primary) 35%, var(--surface));
  --agency-footer-bg: var(--nav);
  --agency-text: var(--ink);
  --agency-text-muted: var(--ink-muted);
  --agency-border: var(--line);
  --agency-surface: var(--surface);
  --agency-surface-soft: var(--surface-sunken);
  --agency-radius: var(--radius-lg);
  --agency-radius-sm: var(--radius-md);
  --agency-font-ui: var(--font-sans);
  --agency-font-display: var(--font-display);
  --agency-shadow: var(--shadow-2);
  --agency-shadow-card: var(--shadow-2);
  --agency-bg-gradient: none;
  --bs-brand-primary: var(--primary);
  --bs-brand-secondary: var(--primary);
  --bs-button-bg: var(--primary);
  --bs-background-1: var(--primary-soft);
  --bs-brand-2: var(--nav);
}

html { scroll-behavior: smooth; }

:root:not([data-theme="dark"]) body.ts.ag-body { --bg: #fff; }
body.ts.ag-body {
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ag-body .ag-content { flex: 1 0 auto; width: 100%; padding: 0; margin: 0; background: transparent; }
.ag-body .ag-foot { flex-shrink: 0; }

/* Legacy "white panel on gradient" wrappers become transparent canvas */
.ag-body .background-body,
.ag-body .box-section.background-body,
.ag-body .section-box.background-body,
.ag-body main.main > .box-section,
.ag-body main.main > .section-box {
  background-color: transparent !important;
  background-image: none !important;
}

.ag-body .box-section,
.ag-body .section-box { padding-top: 0; padding-bottom: 0; }

.ag-body h1, .ag-body h2, .ag-body h3, .ag-body h4, .ag-body h5, .ag-body h6 {
  font-family: var(--font-sans);
  /* color: white; */
  letter-spacing: -0.005em;
}

.ag-body a:not([class]) { color: var(--primary); }
.ag-body a:not([class]):hover { color: var(--primary-hover); }

/* Button-links keep their design-system label colors in every state */
.ag-body a.ts-btn--primary, .ag-body a.ts-btn--primary:hover, .ag-body a.ts-btn--primary:focus { color: var(--on-primary); }
.ag-body a.ts-btn--secondary, .ag-body a.ts-btn--secondary:hover, .ag-body a.ts-btn--ghost, .ag-body a.ts-btn--ghost:hover { color: var(--ink); }
.ag-body a.ts-btn--danger, .ag-body a.ts-btn--danger:hover { color: var(--danger); }
.ag-body a.ts-btn--on-nav, .ag-body a.ts-btn--on-nav:hover { color: var(--on-nav); }
.ag-body a.ts-link, .ag-body a.ts-link:hover { color: var(--primary); }
.ag-body a.ts-launch, .ag-body a.ts-xcard { color: inherit; }

/* Visually-hidden skip link becomes visible on focus */
.ts-sr:focus { position: fixed; z-index: 2000; left: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--surface); color: var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-2); }

/* ------------------------------------------------------------------ 1. Shell */

.ag-nav { position: sticky; top: 0; z-index: 1030; background: transparent; color: var(--ink); padding: var(--nav-top) 14px 0; }
.ag-nav .ts-nav__in {
  gap: var(--space-3); height: var(--nav-height);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--primary-soft) 30%, transparent) 0%, transparent 45%),
    color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid color-mix(in srgb, #fff 60%, transparent); border-radius: 18px;
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 70%, transparent) inset, 0 18px 40px -18px color-mix(in srgb, var(--nav) 35%, transparent), 0 4px 12px -6px rgb(0 0 0 / .12);
}
.ag-body .ag-nav a.ts-balance,
.ag-body .ag-nav a.ts-wordmark { color: inherit; }
.ag-body .ag-nav a.ts-balance { color: var(--on-primary-soft); }
.ag-body .ag-nav a.ts-btn--primary { color: var(--on-primary); }
.ag-nav .ts-balance { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 18%, transparent); }
.ag-nav .ts-balance:hover { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.ag-nav .ts-balance small { color: var(--ink-muted); }
.ag-nav .ts-balance__ico { background: var(--primary); color: var(--on-primary); }
.ag-body .ag-nav .ts-btn--primary { background: var(--primary); color: var(--on-primary); }
.ag-body .ag-nav .ts-btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.ag-nav .ts-nav__icon { background: transparent; border: 0; color: var(--ink); }
.ag-nav .ts-nav__icon:hover { background: var(--surface-sunken); }
.ag-nav .ts-avatar { border: 0; cursor: pointer; background: var(--accent-soft); color: var(--accent-ink); }
.ag-nav .ts-nav__dot { top: 8px; right: 9px; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); }

/* Panel shell: floating glass header + collapsible left sidebar */
.ag-panel { --side-width: 256px; --nav-height: 60px; --nav-top: 10px; }
.ag-panel .ag-nav .ts-nav__in { max-width: none; padding-left: var(--space-2); }
.ag-panel .ag-nav .ts-nav__right { margin-left: auto; }
.ag-nav__brand { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.ag-panel .ag-nav__brand { width: calc(var(--side-width) - var(--space-2)); padding-right: var(--space-2); }
.ag-nav .ag-nav__toggle { flex: none; width: 38px; height: 38px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--ink); cursor: pointer; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ag-nav .ag-nav__toggle:hover { background: var(--surface-sunken); }
.ag-nav .ag-nav__toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ag-nav .ag-logo { height: 42px; padding: 0 20px; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.ag-nav .ag-logo img { max-height: 28px; max-width: 150px; }
.ag-burger { display: grid; gap: 4px; width: 18px; }
.ag-burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base); }

.ag-shell { display: flex; flex: 1 0 auto; align-items: stretch; width: 100%; }
.ag-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-x: clip; }
.ag-main .ag-content { flex: 1 0 auto; }
.ag-main :where(.db-hello, .db-strip, .db-launch, .db-cols, .db-pop .grid, .db-tiles, .xd-body, .xd-hl, .xd-inc, .tr-body, .tr-fields, .bd-body, .bd-trip, .bd-facts, .ap-body, .wl-hero, .pf, .pf-grid, .cf-ticket, .cf-grid, .bk-bar, .ag-contact, .row) > * { min-width: 0; }

.ag-side {
  --side-gap: 14px;
  width: var(--side-width); position: fixed; left: var(--side-gap); top: calc(var(--nav-top) + var(--nav-height) + var(--side-gap)); bottom: var(--side-gap); z-index: 1035;
  display: flex; flex-direction: column; isolation: isolate;
  transform: translateX(calc(-100% - 2 * var(--side-gap))); visibility: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 50%, transparent) 0%, transparent 36%),
    color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 18px 40px -24px rgb(11 59 79 / .35);
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), visibility 480ms;
}
.ag-side-open .ag-side { transform: none; visibility: visible; }
[data-theme="dark"] .ag-side {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-color: var(--line);
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / .7);
}

.ag-side__nav { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: var(--space-2); display: flex; flex-direction: column; gap: var(--space-3); }
.ag-side__nav::-webkit-scrollbar { width: 6px; }
.ag-side__nav::-webkit-scrollbar-track { background: transparent; }
.ag-side__nav::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 35%, transparent); border-radius: 6px; }
.ag-side__nav::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.ag-side__group { display: flex; flex-direction: column; gap: 3px; opacity: 0; transform: translateY(10px); }
.ag-side-open .ag-side__group,
.ag-side-open .ag-side__foot { animation: ag-side-in 460ms var(--ease-out) forwards; }
.ag-side-open .ag-side__group:nth-child(1) { animation-delay: 70ms; }
.ag-side-open .ag-side__group:nth-child(2) { animation-delay: 140ms; }
.ag-side-open .ag-side__group:nth-child(3) { animation-delay: 210ms; }
.ag-side-open .ag-side__foot { animation-delay: 280ms; }
@keyframes ag-side-in { to { opacity: 1; transform: none; } }
.ag-side__label { padding: 0 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-subtle); }
.ag-body .ag-side__link {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted);
  font-size: 14.5px; font-weight: 550; text-align: left; white-space: nowrap; cursor: pointer;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.ag-side__ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-sunken); color: var(--ink-muted);
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.ag-body .ag-side__link:hover { background: var(--primary-soft); color: var(--on-primary-soft); }
.ag-body .ag-side__link:hover .ag-side__ico { background: var(--primary); color: var(--on-primary); }
.ag-body .ag-side__link.is-active { background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 650; }
.ag-body .ag-side__link.is-active::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-2)); top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--primary);
}
.ag-body .ag-side__link.is-active .ag-side__ico { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent); }
.ag-body .ag-side__link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ag-side__link .ts-tab__count { margin-left: auto; background: var(--danger, var(--accent)); color: #fff; min-width: 22px; text-align: center; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ag-side__foot { position: relative; z-index: 1; margin: 0; padding: var(--space-1) var(--space-2) var(--space-2); border-top: 1px solid var(--line); opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .ag-side-open .ag-side__group, .ag-side-open .ag-side__foot { animation: none; opacity: 1; transform: none; }
}
.ag-side__label { color: var(--secondary); opacity: .55; }
.ag-body .ag-side__link { color: var(--ink); }
.ag-body .ag-side__logout:hover { background: var(--danger-soft); color: var(--danger); }
.ag-body .ag-side__logout:hover .ag-side__ico { background: var(--surface); color: var(--danger); }
.ag-side__backdrop { display: none; }
.ag-side-open .ag-side__backdrop { display: block; position: fixed; inset: calc(var(--nav-top) + var(--nav-height)) 0 0; z-index: 1034; background: color-mix(in srgb, var(--surface) 25%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* Popovers */
.ag-pop { position: relative; }
.ag-pop__panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 1040;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  color: var(--ink);
  animation: ts-reveal var(--duration-base) var(--ease-out);
}
.ag-pop.is-open > .ag-pop__panel { display: block; }
.ag-pop__panel--account { width: 320px; padding: var(--space-1); }
.ag-pop__panel--notifications { width: 380px; padding: 0; overflow: hidden; display: none; }
.ag-pop.is-open > .ag-pop__panel--notifications { display: flex; flex-direction: column; }
.ag-nav__new .ag-pop__panel { width: 220px; }
.ag-pop__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ag-pop__head strong { font-size: 15px; font-weight: 650; }
.ag-pop__scroll { max-height: 380px; overflow-y: auto; }
.ag-pop__foot { padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ag-body .ag-pop .ts-menu__item { color: var(--ink); width: 100%; text-align: left; }
.ag-body .ag-pop .ts-menu__item:hover { color: var(--ink); background: var(--surface-sunken); }
.ag-pop__who { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); color: var(--ink); }
.ag-body .ag-pop__who { color: var(--ink); }
.ag-pop__who:hover { background: var(--surface-sunken); }
.ag-pop__who strong { display: block; font-size: 15px; line-height: 20px; font-weight: 650; }
.ag-pop__who small { font-size: 13px; color: var(--ink-muted); }
.ag-pop__logout { color: var(--danger) !important; }
.ag-pop .ts-avatar { width: 38px; height: 38px; }

/* Account switcher rows */
.ag-acct { display: flex; align-items: center; gap: 2px; }
.ag-acct__form { flex: 1; min-width: 0; margin: 0; }
.ag-acct__main { flex: 1; min-width: 0; background: transparent; border: 0; cursor: pointer; }
.ag-acct.is-current .ag-acct__main { background: var(--primary-soft); color: var(--on-primary-soft); }
.ag-acct.is-current .ts-i-check { color: var(--primary); margin-left: auto; }
.ag-acct__body { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.ag-acct__body strong { font-size: 14px; line-height: 18px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-acct__body small { font-size: 12px; color: var(--ink-muted); }
.ag-acct__remove-form { margin: 0; }
.ag-acct__remove { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-subtle); background: transparent; border: 0; cursor: pointer; }
.ag-acct__remove:hover { background: var(--danger-soft); color: var(--danger); }
.ag-acct .ts-avatar { width: 34px; height: 34px; font-size: 13px; }

/* Notification rows (dropdown + page) */
.ag-note { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; border-top: 1px solid var(--line); }
.ag-note:first-child { border-top: 0; }
.ag-note:hover { background: var(--surface-sunken); }
.ag-note__ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-muted); }
.ag-note.unread .ag-note__ico { background: var(--accent-soft); color: var(--on-accent-soft); }
.ag-note.unread { background: color-mix(in srgb, var(--accent-soft) 28%, var(--surface)); }
.ag-note__body { min-width: 0; flex: 1; }
.ag-note__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ag-note__head strong { font-size: 14px; line-height: 20px; font-weight: 650; }
.ag-note__head small { font-size: 12px; color: var(--ink-subtle); white-space: nowrap; }
.ag-note__body p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ag-note__actions { display: flex; gap: 8px; margin-top: 10px; }
.ag-empty--compact { padding: 28px 16px; }
.ag-notes { overflow: hidden; }
.ag-notes .ag-note { padding: 18px 22px; }

/* Mobile tab bar; --tabbar-h lets other fixed UI clear it */
:root { --tabbar-h: 0px; }
.ag-tabbar { display: none; }

/* Footer */
.ag-foot { margin-top: var(--space-8); background: url('../imgs/travel-footer-transparent.png') no-repeat center bottom / 100% auto; padding-bottom: calc(13.65vw + var(--space-4)); }
.ag-foot .ts-container { flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.ag-body .ag-foot a { color: var(--ink-muted); }
.ag-body .ag-foot a:hover { color: var(--ink); }
.ag-body .ag-foot .ts-wordmark { color: var(--ink); }
.ag-foot__copy { color: var(--ink-subtle); font-size: 13px; }
.ts-foot.ag-foot .ts-container { display: block; }
.ag-foot__top,
.ag-foot__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.ag-foot__brand { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.ag-foot__links { display: flex; gap: var(--space-4); }
.ag-foot__bottom { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.ag-foot__credit { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-subtle); font-size: 13px; }
.ag-foot__credit strong { color: var(--ink); font-weight: 600; }
.ag-foot__heart { color: #e25555; animation: ag-heart 1.4s ease-in-out infinite; }
@keyframes ag-heart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .ag-foot__heart { animation: none; } }
@media (max-width: 575.98px) {
  .ag-foot__top, .ag-foot__bottom { flex-direction: column; text-align: center; }
  .ag-foot__brand { justify-content: center; }
}

/* Page scaffolding */
.ag-page { padding-top: var(--space-6); }
.ag-page--narrow { max-width: 880px; }
.ag-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.ag-page__title { font-family: var(--font-display) !important; font-weight: 500; font-size: 40px; line-height: 46px; letter-spacing: -0.015em; margin: 8px 0 0; }
.ag-page__sub { margin: 6px 0 0; color: var(--ink-muted); font-size: 16px; line-height: 24px; }
.ag-page__actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1199.98px) {
  .ag-nav .ts-balance small { display: none; }
}

@media (max-width: 991.98px) {
  .ag-nav { padding: var(--nav-top) 8px 0; }
  .ag-nav .ts-nav__in { height: var(--nav-height); padding: 0 var(--space-1); gap: var(--space-2); border-radius: 14px; }
  .ag-panel { --nav-height: 56px; --nav-top: 8px; }
  .ag-panel .ag-nav__brand { width: auto; padding-right: 0; }
  .ag-nav .ag-nav__balance,
  .ag-nav .ag-nav__new { display: none; }
  .ag-nav .ts-wordmark { font-size: 19px; }
  .ag-nav .ts-wordmark small { display: none; }
  :root:has(.ag-tabbar) { --tabbar-h: 78px; }
  .ag-tabbar {
    display: grid;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    box-shadow: 0 -6px 20px -10px color-mix(in srgb, var(--nav) 20%, transparent);
  }
  .ag-body .ag-tabbar a { color: var(--ink-muted); }
  .ag-body .ag-tabbar a.is-active { color: var(--ink); }
  .ag-body .ag-content { padding-bottom: 84px; }
  .ag-side-open .ag-side__backdrop { background: color-mix(in srgb, var(--secondary) 25%, transparent); }
  .ag-side-open { overflow: hidden; }
  .ag-body .ag-foot { padding-bottom: calc(84px + 13.65vw); background-position: center calc(100% - 84px); margin-top: var(--space-6); }
  .ag-pop__panel--notifications { width: min(380px, calc(100vw - 24px)); position: fixed; right: 12px; left: auto; top: calc(var(--nav-top) + var(--nav-height) + 8px); }
  .ag-pop__panel--account { width: min(320px, calc(100vw - 24px)); }
  .ag-page { padding-top: var(--space-4); }
  .ag-page__title { font-size: 32px; line-height: 38px; }
}

/* ------------------------------------------------- 2. Global element layer */

/* ---- Buttons (all legacy button classes use the .ts-btn look) ---- */
.ag-body .btn,
.ag-body .agency-btn-primary,
.ag-body .agency-btn-outline,
.ag-body .btn-login,
.ag-body .btn-book,
.ag-body button.btn-primary,
.ag-body a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 44px;
  height: auto;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.ag-body .btn:active { transform: translateY(1px); }

.ag-body .btn.agency-btn-primary,
.ag-body .agency-btn-primary,
.ag-body .btn-login,
.ag-body .btn-book,
.ag-body .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-1);
}
.ag-body .btn.agency-btn-primary:hover,
.ag-body .agency-btn-primary:hover,
.ag-body .btn-login:hover,
.ag-body .btn-book:hover,
.ag-body .btn-primary:hover,
.ag-body .btn-primary:focus,
.ag-body .agency-btn-primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--on-primary);
  box-shadow: var(--shadow-2);
}

.ag-body .btn.agency-btn-outline,
.ag-body .agency-btn-outline,
.ag-body .btn-secondary,
.ag-body .btn-default,
.ag-body .btn-light,
.ag-body .btn-outline-primary,
.ag-body .btn-outline-secondary,
.ag-body .btn-outline-dark {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.ag-body .btn.agency-btn-outline:hover,
.ag-body .agency-btn-outline:hover,
.ag-body .btn-secondary:hover,
.ag-body .btn-default:hover,
.ag-body .btn-light:hover,
.ag-body .btn-outline-primary:hover,
.ag-body .btn-outline-secondary:hover,
.ag-body .btn-outline-dark:hover {
  background: var(--surface-sunken);
  border-color: var(--line-strong);
  color: var(--ink);
}

.ag-body .btn-outline-danger,
.ag-body .btn-danger,
.ag-body .agency-btn-logout {
  background: var(--surface);
  border-color: var(--danger);
  color: var(--danger);
}
.ag-body .btn-outline-danger:hover,
.ag-body .btn-danger:hover,
.ag-body .agency-btn-logout:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

.ag-body .btn-outline-success,
.ag-body .btn-success {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--on-primary-soft);
}
.ag-body .btn-outline-success:hover,
.ag-body .btn-success:hover { background: var(--primary); color: var(--on-primary); }

.ag-body .btn-sm,
.ag-body .agency-btn-compact { min-height: 36px; padding: 6px 14px; font-size: 14px; line-height: 20px; }
.ag-body .btn-lg { min-height: 52px; padding: 12px 28px; font-size: 16px; }
.ag-body .btn-block { display: flex; width: 100%; }
.ag-body .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; }
.ag-body .btn.disabled,
.ag-body .btn:disabled,
.ag-body .btn[disabled] { opacity: 0.45; pointer-events: none; box-shadow: none; }
.ag-body .btn-link { background: none; border: 0; color: var(--primary); box-shadow: none; padding: 0; min-height: 0; }
.ag-body .btn-close, .ag-body .close { opacity: 0.7; color: var(--ink); text-shadow: none; }
.ag-body .close:hover { opacity: 1; }

/* ---- Text inputs / selects / textareas ---- */
.ag-body .form-control,
.ag-body .form-select,
.ag-body main select,
.ag-body main textarea,
.ag-body main input[type="text"],
.ag-body main input[type="email"],
.ag-body main input[type="number"],
.ag-body main input[type="tel"],
.ag-body main input[type="password"],
.ag-body main input[type="search"],
.ag-body main input[type="date"],
.ag-body main input[type="time"],
.ag-body main input[type="url"],
.ag-body .modal input[type="text"],
.ag-body .modal input[type="email"],
.ag-body .modal input[type="number"],
.ag-body .modal input[type="tel"],
.ag-body .modal select,
.ag-body .modal textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  box-shadow: none;
  outline: 0;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.ag-body textarea.form-control,
.ag-body main textarea,
.ag-body .modal textarea { min-height: 96px; resize: vertical; }
.ag-body .form-control::placeholder,
.ag-body main input::placeholder,
.ag-body main textarea::placeholder { color: var(--ink-subtle); opacity: 1; }
.ag-body .form-control:hover,
.ag-body main select:hover,
.ag-body main input[type="text"]:hover,
.ag-body main textarea:hover { border-color: var(--ink-muted); }
.ag-body .form-control:focus,
.ag-body .form-select:focus,
.ag-body main select:focus,
.ag-body main textarea:focus,
.ag-body main input[type="text"]:focus,
.ag-body main input[type="email"]:focus,
.ag-body main input[type="number"]:focus,
.ag-body main input[type="tel"]:focus,
.ag-body main input[type="password"]:focus,
.ag-body main input[type="search"]:focus,
.ag-body main input[type="date"]:focus,
.ag-body main input[type="time"]:focus,
.ag-body .modal input:focus,
.ag-body .modal select:focus,
.ag-body .modal textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background-color: var(--surface);
  color: var(--ink);
}
.ag-body .form-control.is-invalid,
.ag-body .form-control.error,
.ag-body main input.error,
.ag-body main select.error { border-color: var(--danger); }
.ag-body .form-control.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.ag-body .form-control:disabled,
.ag-body .form-control[readonly]:not(.date-picker):not(.clockpicker):not(.counter-input),
.ag-body main select:disabled,
.ag-body main input:disabled { background-color: var(--surface-sunken); border-color: var(--line); color: var(--ink-subtle); }

.ag-body main select,
.ag-body .form-select,
.ag-body .modal select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f5b6d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}


/* Inputs living inside a .ts-control wrapper: the wrapper draws the box */
.ag-body .ts-control input,
.ag-body .ts-control select,
.ag-body .ts-control textarea {
  border: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  min-height: 0 !important;
  height: 100%;
  padding: 0 14px !important;
  border-radius: 0 !important;
}
.ag-body .ts-control select { padding-right: 36px !important; }
.ag-body .ts-control > .ts-i + input,
.ag-body .ts-control > .ts-i + select { padding-left: 10px !important; }
.ag-body .ts-counter output { color: var(--ink); }

.ag-body .form-group { margin-bottom: var(--space-2); }
.ag-body .form-group > label,
.ag-body .form-label,
.ag-body label.text-sm-medium {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
}
.ag-body .text-danger { color: var(--danger) !important; }
.ag-body .invalid-feedback,
.ag-body .form-group .text-danger.text-sm { font-size: 13px; line-height: 18px; font-weight: 500; }
.ag-body .form-text,
.ag-body small.text-muted { color: var(--ink-muted) !important; font-size: 13px; }

/* Checkbox / radio */
.ag-body input[type="checkbox"],
.ag-body input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }
.ag-body .form-check { display: flex; align-items: center; gap: 10px; padding-left: 0; }
.ag-body .form-check-input { margin: 0; flex: none; }
.ag-body .form-check-label { font-size: 15px; margin: 0; }

/* ---- Date / time pickers (bootstrap-datepicker + clockpicker) ---- */
.ag-body .input-calendar { position: relative; }
.ag-body .input-calendar .form-control { padding-right: 44px; cursor: pointer; }
.ag-body .input-calendar svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--ink-muted); pointer-events: auto; cursor: pointer; }
.ag-body .input-calendar svg path { fill: var(--ink-muted); }
.ag-body input.date-picker,
.ag-body input.clockpicker { cursor: pointer; background-color: var(--surface) !important; }

.datepicker.dropdown-menu {
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  font-family: var(--font-sans);
  color: var(--ink);
  z-index: 3000 !important;
}
.datepicker table { width: 100%; }
.datepicker table tr td,
.datepicker table tr th {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.datepicker table tr th { color: var(--ink-muted); font-size: 12px; font-weight: 700; }
.datepicker table tr th.datepicker-switch { font-size: 15px; font-weight: 650; color: var(--ink); }
.datepicker table tr th.prev,
.datepicker table tr th.next { color: var(--ink); }
.datepicker table tr th:hover,
.datepicker table tr td.day:hover,
.datepicker table tr td span:hover { background: var(--surface-sunken); color: var(--ink); }
.datepicker table tr td.old,
.datepicker table tr td.new { color: var(--ink-subtle); opacity: 0.6; }
.datepicker table tr td.today { background: transparent; color: var(--ink); position: relative; }
.datepicker table tr td.today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.active,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
  font-weight: 650;
  text-shadow: none;
}
.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover,
.datepicker table tr td span.disabled { color: var(--ink-subtle); opacity: 0.5; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.datepicker table tr td.range { background: var(--primary-soft); color: var(--on-primary-soft); border-radius: 0; }
.datepicker .datepicker-switch,
.datepicker .prev,
.datepicker .next,
.datepicker tfoot tr th { cursor: pointer; }

.popover.clockpicker-popover {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  font-family: var(--font-sans);
  background: var(--surface);
  z-index: 3000;
}
.clockpicker-popover .popover-title { background: var(--surface-sunken); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 22px; font-weight: 650; }
.clockpicker-popover .popover-title .text-primary { color: var(--primary) !important; }
.clockpicker-plate { background: var(--surface-sunken); }
.clockpicker-canvas line { stroke: var(--primary); }
.clockpicker-canvas-bg { fill: color-mix(in srgb, var(--primary) 25%, transparent); }
.clockpicker-canvas-bearing, .clockpicker-canvas-fg { fill: var(--primary); }
.clockpicker-tick { color: var(--ink); }
.clockpicker-tick:hover { background: var(--primary-soft); }

/* ---- Select2 ---- */
.ag-body .select2-container { width: 100% !important; }
.ag-body .select2-container--default .select2-selection--single,
.ag-body .select2-container--default .select2-selection--multiple {
  min-height: 48px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
}
.ag-body .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 24px; padding-left: 14px; padding-right: 36px; font-size: 15px; }
.ag-body .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ink-subtle); }
.ag-body .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: 8px; }
.ag-body .select2-container--default.select2-container--focus .select2-selection--single,
.ag-body .select2-container--default.select2-container--open .select2-selection--single,
.ag-body .select2-container--default.select2-container--focus .select2-selection--multiple { border-color: var(--focus); box-shadow: 0 0 0 3px var(--primary-soft); }
.ag-body .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--primary-soft); border: 1px solid var(--primary); color: var(--on-primary-soft); border-radius: 999px; padding: 2px 10px; }
.select2-dropdown { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; background: var(--surface); z-index: 3000; }
.select2-container--default .select2-results__option { padding: 10px 14px; font-size: 15px; color: var(--ink); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--surface-sunken); color: var(--ink); }
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option--selected { background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 600; }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 8px 12px; outline: 0; }
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--focus); }

/* ---- Counter / stepper (x-agency.counter + agencyCounterHtml) ---- */
.ag-body .agency-counter.input-group,
.ag-body .agency-counter {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  height: 48px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.ag-body .agency-counter .btn-counter {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink);
  font-size: 20px; line-height: 1; font-weight: 500; cursor: pointer; padding: 0;
}
.ag-body .agency-counter .btn-counter:hover { background: var(--surface-sunken); }
.ag-body .agency-counter input.form-control,
.ag-body .agency-counter input.counter-input {
  width: 44px; min-width: 0; min-height: 0; height: 100% !important;
  padding: 0; border: 0; background: transparent; box-shadow: none;
  text-align: center; font-weight: 650; font-size: 17px; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.ag-body .agency-counter input::-webkit-outer-spin-button,
.ag-body .agency-counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ag-body .agency-counter:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---- Surfaces: cards, modals, tables, badges, tabs, pagination ---- */
.ag-body .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.ag-body .card.shadow, .ag-body .card.shadow-sm { box-shadow: none !important; }
.ag-body .card-header { background: transparent !important; border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }
.ag-body .card-body { color: var(--ink); }
.ag-body .bg-light { background-color: var(--surface-sunken) !important; }
.ag-body .bg-white { background-color: var(--surface) !important; }
.ag-body .bg-primary { background-color: var(--primary) !important; }
.ag-body .text-primary { color: var(--primary) !important; }
.ag-body .text-muted, .ag-body .text-secondary { color: var(--ink-muted) !important; }
.ag-body .text-dark { color: var(--ink) !important; }
.ag-body .border { border-color: var(--line) !important; }
.ag-body hr { border-color: var(--line); opacity: 1; }

.ag-body .modal-content {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  color: var(--ink);
}
.ag-body .modal-header { padding: 22px 28px; border-bottom: 1px solid var(--line); align-items: center; }
.ag-body .modal-title { font-size: 20px; line-height: 28px; font-weight: 650; color: var(--ink); }
.ag-body .modal-body { padding: 24px 28px; }
.ag-body .modal-footer { padding: 16px 28px; border-top: 1px solid var(--line); gap: 10px; background: var(--surface); }
.modal-backdrop.show { opacity: 1; background: var(--scrim); }
.ag-body .modal .close { font-size: 28px; line-height: 1; }

.ag-body .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  background: var(--surface-sunken);
  color: var(--ink-muted);
}
.ag-body .badge-success, .ag-body .bg-success { background: var(--primary-soft) !important; color: var(--on-primary-soft) !important; }
.ag-body .badge-warning, .ag-body .bg-warning { background: var(--warning-soft) !important; color: var(--on-warning-soft) !important; }
.ag-body .badge-danger, .ag-body .bg-danger { background: var(--danger-soft) !important; color: var(--on-danger-soft) !important; }
.ag-body .badge-info, .ag-body .bg-info { background: var(--info-soft) !important; color: var(--on-info-soft) !important; }
.ag-body .badge-dark, .ag-body .badge-primary { background: var(--nav) !important; color: var(--on-nav) !important; }
.ag-body .badge-secondary, .ag-body .badge-light { background: var(--surface-sunken) !important; color: var(--ink-muted) !important; }

.ag-body .alert { border: 0; border-radius: var(--radius-lg); padding: 16px 18px; font-size: 15px; }
.ag-body .alert-info { background: var(--info-soft); color: var(--on-info-soft); }
.ag-body .alert-warning { background: var(--warning-soft); color: var(--on-warning-soft); }
.ag-body .alert-danger { background: var(--danger-soft); color: var(--on-danger-soft); }
.ag-body .alert-success { background: var(--primary-soft); color: var(--on-primary-soft); }

.ag-body .nav-tabs { border-bottom: 1px solid var(--line); gap: var(--space-1); }
.ag-body .nav-tabs .nav-link {
  position: relative; height: 48px; padding: 0 14px; border: 0; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--ink-muted); border-radius: 0; display: inline-flex; align-items: center;
}
.ag-body .nav-tabs .nav-link:hover { color: var(--ink); }
.ag-body .nav-tabs .nav-link.active { color: var(--ink); background: transparent; }
.ag-body .nav-tabs .nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

.ag-body .table { color: var(--ink); font-size: 14px; border-color: var(--line); margin-bottom: 0; }
.ag-body .table thead th {
  background: transparent; border-bottom: 1px solid var(--line); border-top: 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding: 12px;
}
.ag-body .table td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.ag-body .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.ag-body .table-hover tbody tr:hover { background: var(--surface-sunken); }

.ag-body .pagination { gap: 4px; }
.ag-body .page-link { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font-weight: 600; }
.ag-body .page-link:hover { background: var(--surface-sunken); color: var(--ink); }
.ag-body .page-item.active .page-link { background: var(--nav); color: var(--on-nav); }
.ag-body .page-item.disabled .page-link { color: var(--ink-subtle); background: transparent; }

.ag-body .list-group-item { background: var(--surface); border-color: var(--line); color: var(--ink); }
.ag-body .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: var(--space-1); background: var(--surface); }
.ag-body .dropdown-item { border-radius: var(--radius-md); padding: 10px 12px; font-size: 15px; color: var(--ink); }
.ag-body .dropdown-item:hover { background: var(--surface-sunken); color: var(--ink); }

/* ---- Toastr ---- */
#toast-container > div {
  width: 380px; max-width: calc(100vw - 24px);
  padding: 14px 16px 14px 52px;
  border-radius: var(--radius-lg);
  background-color: var(--nav);
  color: var(--on-nav);
  box-shadow: var(--shadow-3);
  opacity: 1;
  font-family: var(--font-sans);
  font-size: 15px;
  background-position: 16px center;
}
#toast-container > div:hover { box-shadow: var(--shadow-3); opacity: 1; }
.ag-body input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink); font-weight: 600; cursor: pointer; }
.ag-body input[type="file"]::file-selector-button:hover { background: var(--primary-soft); color: var(--on-primary-soft); }
#toast-container.toast-top-right { top: calc(var(--nav-height, 72px) + 12px); }
.flight-no:has(#flight_no[required]) label[for="flight_no"]::after { content: " *"; color: var(--danger); }
#toast-container > .toast-success { background-color: var(--nav); border-left: 4px solid var(--primary); }
#toast-container > .toast-error { background-color: var(--nav); border-left: 4px solid var(--accent); }
#toast-container > .toast-warning { background-color: var(--nav); border-left: 4px solid var(--gold); }
#toast-container > .toast-info { background-color: var(--nav); border-left: 4px solid var(--info); }
.toast-title { font-weight: 650; }
.toast-close-button { color: var(--on-nav-muted); text-shadow: none; opacity: 1; }

/* ---- Preloader ---- */
.ag-body #preloader-active .preloader { background: var(--bg); }
.agency-preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.agency-preloader__stage { position: relative; width: 180px; height: 96px; }
.agency-preloader__scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0;
  animation: agency-preloader-scene 4.5s ease-in-out infinite;
}
.agency-preloader__scene:nth-child(1) { color: var(--primary); animation-name: agency-preloader-scene-lead; }
.agency-preloader__scene:nth-child(2) { color: var(--accent); animation-delay: 1.5s; }
.agency-preloader__scene:nth-child(3) { color: var(--secondary); animation-delay: 3s; }
.agency-preloader__mark {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, currentColor 12%, var(--surface));
  box-shadow: var(--shadow-1);
}
.agency-preloader__mark .ts-i { width: 28px; height: 28px; }
.agency-preloader__label { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.agency-preloader__track { display: block; width: 72px; height: 3px; margin: 0 auto; border-radius: 99px; background: var(--line); overflow: hidden; }
.agency-preloader__track i { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--primary); animation: agency-preloader-track 1.1s ease-in-out infinite; }
.agency-preloader__text { font-family: var(--font-display); color: var(--ink); font-size: 20px; letter-spacing: 0; text-transform: none; margin: 0; }
@keyframes agency-preloader-scene-lead {
  0%, 25% { opacity: 1; transform: none; }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes agency-preloader-scene {
  0% { opacity: 0; transform: translateY(8px); }
  8%, 25% { opacity: 1; transform: none; }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes agency-preloader-track {
  from { transform: translateX(-130%); }
  to { transform: translateX(280%); }
}
@media (prefers-reduced-motion: reduce) {
  .agency-preloader__stage { display: flex; width: auto; height: auto; gap: 20px; }
  .agency-preloader__scene { position: static; opacity: 1; animation: none; transform: none; }
  .agency-preloader__track i { animation: none; width: 100%; transform: none; }
}

/* ---- Utilities that pages rely on ---- */
.ag-body .is-hidden { display: none !important; }
.ag-body ::selection { background: var(--primary-soft); color: var(--on-primary-soft); }

/* ---- Slick (offer carousel & galleries) ---- */
.ag-body .slick-dots li button::before { color: var(--primary); }
.ag-body .slick-dots li.slick-active button::before { color: var(--primary); opacity: 1; }


/* ------------------------------------------------------- 3. Page layers
   Verbatim from the HTML designs (prefix per page: db ex xd tr cf bk bd wl pf ap pk pkd) */

/* == Dashboard == */

.db-hello{padding:56px 0 40px;display:grid;grid-template-columns:1fr 560px;gap:48px;align-items:end}
.db-hello h1{font-family:var(--font-display);font-size:44px;line-height:52px;font-weight:500;letter-spacing:-.015em;margin-top:12px}
.db-hello p{font-size:17px;line-height:28px;color:var(--ink-muted);margin-top:12px;max-width:560px}
.db-hello p b{color:var(--ink);font-weight:650}
.db-strip{display:grid;grid-template-columns:1fr 1fr 1.25fr;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}
.db-strip>div{padding:18px 20px;display:flex;flex-direction:column;gap:2px}
.db-strip>div+div{border-left:1px solid var(--line)}
.db-strip .k{font-size:13px;font-weight:600;color:var(--ink-muted);display:flex;align-items:center;gap:6px}
.db-strip .v{font-size:22px;line-height:30px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.db-strip .n{font-size:13px;color:var(--ink-muted)}
.db-strip .n a{color:var(--primary);font-weight:650}
.db-strip .trip{font-size:15px;font-weight:650;line-height:22px}
.db-launch{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:20px}
.db-launch .ts-launch{min-height:300px}
.db-launch .counts{display:flex;gap:24px;margin-top:20px}
.db-launch .counts b{display:block;font-size:28px;line-height:32px;font-weight:650;font-variant-numeric:tabular-nums}
.db-launch .counts span{font-size:13px;color:var(--ink-muted);font-weight:500}
.db-routeart{position:absolute;right:-10px;top:24px;width:230px;height:120px;opacity:.9}
.db-cols{display:grid;grid-template-columns:1fr 380px;gap:32px;margin-top:20px}
.db-up{display:flex;flex-direction:column;gap:12px}
.db-trip{display:grid;grid-template-columns:72px 1fr auto;gap:20px;align-items:center;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}
.db-trip:hover{box-shadow:var(--shadow-1);border-color:var(--line-strong)}
.db-trip .when{font-size:13px;font-weight:700;color:var(--accent-ink);display:flex;align-items:center;gap:6px}
.db-recent{margin-top:40px}
.db-recent table{width:100%;border-collapse:collapse;font-size:15px}
.db-recent td{padding:14px 12px;border-top:1px solid var(--line);vertical-align:middle}
.db-recent tr:first-child td{border-top:0}
.db-recent td:first-child{padding-left:0}.db-recent td:last-child{padding-right:0;text-align:right}
.db-side{display:flex;flex-direction:column;gap:20px}
.db-side h3{font-size:17px;font-weight:650;line-height:24px}
.db-freq a{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.db-freq a:first-of-type{border-top:0}
.db-freq .th{width:48px;height:48px;border-radius:12px;background-size:cover;background-position:center;flex:none}
.db-freq strong{display:block;font-size:15px;font-weight:650;line-height:20px}
.db-freq span{font-size:13px;color:var(--ink-muted)}
.db-freq .ts-btn{margin-left:auto}
.db-pop{margin-top:72px}
.db-pop .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}

/* == Explore == */

.ex-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0 16px;flex-wrap:wrap}
.ex-head h1{font-family:var(--font-display);font-size:30px;line-height:38px;font-weight:500;letter-spacing:-.01em;margin:6px 0 0}
.ex-head h1 em{font-style:italic;color:var(--primary)}
.ex-search{display:flex;align-items:center;gap:6px;flex:0 1 520px;padding:4px;background:var(--surface);border:1px solid var(--line-strong);border-radius:14px;box-shadow:var(--shadow-1)}
.ex-search .q{flex:1;display:flex;align-items:center;gap:10px;padding:0 10px}
.ex-search input{flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:var(--ink);height:40px}
.ex-search input::placeholder{color:var(--ink-subtle)}
.ex-search .dest{white-space:nowrap;display:flex;align-items:center;gap:8px;padding:0 16px;height:48px;border-left:1px solid var(--line);font-weight:600;font-size:15px}
.ex-pop{display:flex;gap:8px;align-items:center;margin-top:16px;font-size:14px;color:var(--ink-muted);flex-wrap:wrap}
.ex-pop a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:4px}
.ex-filters{position:sticky;top:0;z-index:5;background:var(--bg);padding:10px 0;border-bottom:1px solid var(--line)}
.ex-toolbar{display:flex;gap:8px;align-items:center}
.ex-row{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;overflow-x:auto;min-width:0;scrollbar-width:none}
.ex-row::-webkit-scrollbar{display:none}
.ex-city-select{position:relative;flex:none}
.ex-city-native{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ex-city-btn .ex-city-count{min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--surface-sunken);color:var(--ink-muted);font-size:11px;font-weight:700;line-height:18px;display:inline-flex;align-items:center;justify-content:center}
.ex-city-btn.is-selected .ex-city-count{background:color-mix(in srgb, var(--on-nav) 16%, transparent);color:inherit}
.ex-city-select.is-open .ex-city-btn .ts-i-chevron-down{transform:rotate(180deg)}
.ex-city-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:40;width:240px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-2)}
.ex-city-search{display:flex;align-items:center;gap:8px;height:36px;margin:0 0 6px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-sunken);cursor:text}
.ag-body .ex-city-search input{flex:1;width:auto !important;min-width:0;height:32px !important;min-height:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;font-size:13px}
.ex-city-search .ts-i{color:var(--ink-muted)}
.ex-city-menu ul{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto}
.ex-city-option{display:flex;align-items:center;width:100%;height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);font-size:14px;font-weight:600;text-align:left;cursor:pointer}
.ex-city-option:hover{background:var(--surface-sunken)}
.ex-city-option.is-selected{background:var(--primary-soft);color:var(--on-primary-soft)}
.ex-city-empty{margin:8px 4px 4px;font-size:13px;color:var(--ink-muted)}
.ex-dd{white-space:nowrap;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:var(--radius-md);border:1px solid var(--line-strong);background:var(--surface);font-weight:600;font-size:14px}
.ex-dd.is-set{border-color:var(--primary);background:var(--primary-soft);color:var(--on-primary-soft)}
.ex-vsep{width:1px;height:28px;background:var(--line);margin:0 6px}
.ex-result{display:flex;align-items:center;gap:12px;margin:16px 0 14px;flex-wrap:wrap}
.ex-result h2{font-size:17px;font-weight:650}
.ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.ex-more{display:flex;flex-direction:column;align-items:center;gap:12px;margin:32px 0 0}
.ex-more .ts-meter{width:240px;height:4px}

/* == Experience detail == */

.xd-crumb{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--ink-muted);padding:24px 0 16px}
.xd-crumb a:hover{color:var(--ink)}
.xd-hero{position:relative;height:520px;border-radius:28px;overflow:hidden;background-size:cover;background-position:center 85%}
.xd-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,color-mix(in srgb, var(--nav) 0%, transparent) 20%,color-mix(in srgb, var(--nav) 55%, transparent) 50%,color-mix(in srgb, var(--nav) 94%, transparent) 100%)}
.xd-hero__txt{position:absolute;left:48px;bottom:88px;right:48px;z-index:1;color:var(--on-media);display:flex;align-items:flex-end;gap:32px}
.xd-hero__txt h1{font-family:var(--font-display);font-size:52px;line-height:58px;font-weight:500;letter-spacing:-.02em;margin-top:12px;max-width:760px}
.xd-hero__txt p{font-size:17px;line-height:28px;color:var(--on-media-muted);margin-top:12px;max-width:640px}
.xd-hero__txt .ts-kicker{color:var(--on-media)}
.xd-hero__gal{margin-left:auto;display:flex;gap:8px;flex:none}
.xd-hero__gal span{width:84px;height:64px;border-radius:12px;border:2px solid var(--on-media);background-size:cover;background-position:center}
.xd-hero__gal b{white-space:nowrap;text-align:center;line-height:1.2;width:84px;height:64px;border-radius:12px;background:color-mix(in srgb, var(--nav) 80%, transparent);border:2px solid var(--on-media);display:grid;place-items:center;font-size:13px;font-weight:650}
.xd-quick{display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);margin-top:-48px;position:relative;z-index:2;margin-left:32px;margin-right:32px;box-shadow:var(--shadow-2)}
.xd-quick .ts-fact{padding:20px 22px}
.xd-quick .ts-fact+.ts-fact{border-left:1px solid var(--line)}
.xd-body{display:grid;grid-template-columns:1fr 400px;gap:56px;margin-top:56px;align-items:start}
.xd-sec{padding:40px 0;border-top:1px solid var(--line)}
.xd-sec:first-child{border-top:0;padding-top:0}
.xd-sec h2{font-family:var(--font-display);font-size:30px;line-height:38px;font-weight:500;letter-spacing:-.01em;margin-bottom:20px}
.xd-sec p{font-size:17px;line-height:28px;color:var(--ink-muted)}
.xd-hl{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.xd-hl div{display:flex;gap:14px;padding:18px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line)}
.xd-hl b{width:32px;height:32px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--on-accent-soft);font-size:14px}
.xd-hl strong{display:block;font-weight:650;line-height:22px}
.xd-hl span{font-size:14px;color:var(--ink-muted);line-height:21px}
.xd-inc{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.xd-inc h3{font-size:15px;font-weight:650;margin-bottom:12px}
.xd-inc li{display:flex;gap:10px;padding:8px 0;font-size:15px;align-items:flex-start}
.xd-inc .y .ts-i{color:var(--primary);margin-top:2px}.xd-inc .n .ts-i{color:var(--danger);margin-top:2px}
.xd-iti .ts-route__stop{grid-template-columns:72px 40px 1fr;padding-bottom:28px}
.xd-iti .ts-route__stop::before{left:91px}
.xd-iti time{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;padding-top:9px;color:var(--ink-muted)}
.xd-acc{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.xd-acc>div{padding:18px 20px;display:flex;align-items:center;gap:12px;font-weight:600}
.xd-acc>div+div{border-top:1px solid var(--line)}
.xd-acc>div .ts-i-chevron-down{margin-left:auto;color:var(--ink-muted)}
.xd-acc .open{display:block}
.xd-acc .open p{font-size:15px;line-height:24px;font-weight:400;margin-top:10px}
.xd-cancel{display:grid;grid-template-columns:2fr 1fr 1fr;gap:4px;margin-top:8px}
.xd-cancel div{padding:14px 16px;font-size:14px}
.xd-cancel div strong{display:block;font-size:15px}
.xd-cancel .bar{height:8px;border-radius:4px;margin-bottom:12px}
.xd-pk{display:flex;flex-direction:column;gap:12px}
.xd-pk label{display:grid;grid-template-columns:24px 1fr auto;gap:16px;padding:20px;border:1.5px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);cursor:pointer;align-items:start}
.xd-pk label.is-selected{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.xd-pk .rd{width:22px;height:22px;border-radius:50%;border:2px solid var(--line-strong);margin-top:2px}
.xd-pk .is-selected .rd{border:7px solid var(--accent)}
.xd-pk strong{font-size:17px;font-weight:650;display:block;line-height:24px}
.xd-pk .tags{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.xd-book{position:sticky;top:24px;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);box-shadow:var(--shadow-2);display:flex;flex-direction:column;gap:18px}
.xd-book .from{display:flex;align-items:baseline;gap:8px}
.xd-book .from strong{font-size:34px;line-height:40px;font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.xd-trust{display:flex;flex-direction:column;gap:10px;font-size:14px}
.xd-trust span{display:flex;gap:10px;align-items:center}
.xd-trust .ts-i{color:var(--primary)}
.xd-pax{display:flex;justify-content:space-between;align-items:center}
.xd-pax small{display:block;font-size:13px;color:var(--ink-muted)}

/* == Transfer (trip, route, vehicle) == */

.tr-top{padding:40px 0 32px;display:flex;align-items:flex-end;gap:32px}
.tr-top h1{font-family:var(--font-display);font-size:44px;line-height:52px;font-weight:500;letter-spacing:-.015em;margin-top:10px}
.tr-steps{padding:24px 28px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}
.tr-body{display:grid;grid-template-columns:1fr 360px;gap:32px;margin-top:32px;align-items:start}
.tr-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);padding:36px}
.tr-card h2{font-size:22px;line-height:30px;font-weight:650}
.tr-card .lead{color:var(--ink-muted);margin-top:4px}
.tr-q{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-muted);margin:32px 0 14px;display:flex;align-items:center;gap:10px}
.tr-q::after{content:"";flex:1;border-top:1px dashed var(--line)}
.tr-opts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.tr-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.tr-actions{display:flex;align-items:center;gap:12px;margin-top:36px;padding-top:24px;border-top:1px solid var(--line)}
.tr-sum{position:sticky;top:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);overflow:hidden}
.tr-sum__head{padding:22px 24px;background:var(--nav);color:var(--on-nav);display:flex;align-items:center;gap:12px}
.tr-sum__head h3{font-size:17px;font-weight:650}
.tr-sum__head span{color:var(--on-nav-muted);font-size:13px}
.tr-sum__body{padding:24px;display:flex;flex-direction:column;gap:20px}
.tr-sum .ts-dl{font-size:14px;gap:10px 16px}
.tr-sum .pend{color:var(--ink-subtle);font-weight:500;font-style:italic}
.tr-help{display:flex;gap:12px;align-items:center;padding:16px 24px;border-top:1px solid var(--line);font-size:14px;color:var(--ink-muted)}

/* == Confirmation == */

.cf{max-width:760px;margin:0 auto;padding:64px 0 0;text-align:center}
.cf-mark{width:220px;height:120px;margin:0 auto 8px;position:relative}
.cf-mark svg{width:100%;height:100%;overflow:visible}
.cf-mark .rt{stroke-dasharray:300;stroke-dashoffset:300;animation:cf-draw var(--duration-slow) var(--ease-out) .1s forwards}
.cf-mark .ok{transform-origin:186px 40px;transform:scale(0);animation:cf-pop .36s var(--ease-out) .65s forwards}
.cf-mark .tick{stroke-dasharray:30;stroke-dashoffset:30;animation:cf-draw .3s var(--ease-out) .9s forwards}
@keyframes cf-draw{to{stroke-dashoffset:0}}
@keyframes cf-pop{to{transform:scale(1)}}
.cf h1{font-family:var(--font-display);font-size:60px;line-height:64px;font-weight:500;letter-spacing:-.02em}
.cf .lead{font-size:17px;line-height:28px;color:var(--ink-muted);margin-top:12px}
.cf-ticket{margin:40px auto 0;text-align:left;display:grid;grid-template-columns:1fr 240px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);box-shadow:var(--shadow-2);position:relative}
.cf-ticket__main{padding:32px}
.cf-ticket__stub{padding:32px 28px;border-left:2px dashed var(--line);display:flex;flex-direction:column;justify-content:space-between;gap:20px;background:var(--surface-sunken);border-radius:0 var(--radius-xl) var(--radius-xl) 0}
.cf-ticket::before,.cf-ticket::after{content:"";position:absolute;left:calc(100% - 252px);width:24px;height:24px;border-radius:50%;background:var(--bg);border:1px solid var(--line)}
.cf-ticket::before{top:-13px;clip-path:inset(50% 0 0 0)}.cf-ticket::after{bottom:-13px;clip-path:inset(0 0 50% 0)}
.cf-ticket h2{font-size:20px;line-height:28px;font-weight:650}
.cf-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin-top:24px}
.cf-ref small{display:block;font-size:13px;color:var(--ink-muted);font-weight:600}
.cf-ref b{font-size:26px;letter-spacing:.06em;font-weight:650;font-variant-numeric:tabular-nums}
.cf-acts{display:flex;gap:12px;justify-content:center;margin-top:32px}
.cf-next{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:56px auto 0;max-width:1000px;text-align:left}
.cf-next div{padding:22px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line)}
.cf-next b{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--primary-soft);color:var(--on-primary-soft);font-size:13px;margin-bottom:12px}
.cf-next strong{display:block;font-weight:650}
.cf-next span{font-size:14px;color:var(--ink-muted)}

/* == Bookings == */

.bk-top{display:flex;align-items:flex-end;gap:16px;padding:48px 0 8px}
.bk-top h1{font-size:34px;line-height:42px;font-weight:650;letter-spacing:-.02em}
.bk-top p{color:var(--ink-muted);margin-top:4px}
.bk-bar{display:grid;grid-template-columns:1.6fr 1.1fr 1fr 1fr auto;gap:12px;margin:24px 0 8px;align-items:end}
.bk-month{display:flex;align-items:center;gap:12px;margin:28px 0 12px;font-size:14px;font-weight:700;color:var(--ink-muted)}
.bk-month::after{content:"";flex:1;border-top:1px dashed var(--line)}
.bk-cust strong{display:block;font-size:15px;font-weight:600;line-height:22px}
.bk-cust span{font-size:13px;color:var(--ink-muted)}
.bk-more h4{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-muted);margin-bottom:12px}
.bk-more .ts-dl{font-size:14px}

/* == Booking detail == */

.bd-back{padding:28px 0 0}
.bd-head{display:flex;flex-direction:column;gap:20px;padding:16px 0 32px;border-bottom:1px solid var(--line)}
.bd-head h1{font-size:34px;line-height:42px;font-weight:650;letter-spacing:-.02em;display:flex;align-items:center;gap:16px}
.bd-head .svc{font-family:var(--font-display);font-size:22px;line-height:30px;margin-top:6px}
.bd-head .meta{color:var(--ink-muted);font-size:14px;margin-top:6px}
.bd-acts{display:flex;gap:8px}
.bd-body{display:grid;grid-template-columns:1fr 380px;gap:40px;margin-top:32px;align-items:start}
.bd-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);padding:28px}
.bd-card+.bd-card{margin-top:20px}
.bd-card h2{font-size:18px;font-weight:650;line-height:26px;margin-bottom:20px;display:flex;align-items:center;gap:10px}
.bd-trip{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.bd-facts{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.bd-guest{display:flex;align-items:center;gap:16px}
.bd-log{display:flex;flex-direction:column}
.bd-log li{display:grid;grid-template-columns:20px 1fr auto;gap:14px;padding-bottom:18px;position:relative}
.bd-log li::before{content:"";position:absolute;left:9px;top:20px;bottom:0;border-left:1.5px dashed var(--line-strong)}
.bd-log li:last-child::before{display:none}
.bd-log i.dot{width:20px;height:20px;border-radius:50%;background:var(--primary);display:grid;place-items:center;color:var(--on-primary)}
.bd-log i.dot.todo{background:var(--surface);border:2px solid var(--line-strong)}
.bd-log time{font-size:13px;color:var(--ink-muted)}
.bd-pay{position:sticky;top:24px;display:flex;flex-direction:column;gap:20px}
.bd-ticket{background:var(--nav);color:var(--on-nav);border-radius:var(--radius-xl);padding:24px;position:relative;overflow:hidden}
.bd-ticket::before,.bd-ticket::after{content:"";position:absolute;top:118px;width:24px;height:24px;border-radius:50%;background:var(--bg)}
.bd-ticket::before{left:-12px}.bd-ticket::after{right:-12px}
.bd-ticket .perf{border-top:2px dashed color-mix(in srgb, var(--on-media) 20%, transparent);margin:20px -24px;}
.bd-ticket .code{font-size:26px;font-weight:650;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.bd-ticket small{color:var(--on-nav-muted);font-size:13px}
.bd-qr{width:72px;height:72px;border-radius:10px;background:var(--surface);padding:8px;display:grid;grid-template-columns:repeat(7,1fr);gap:1.5px}
.bd-qr i{background:var(--ink);border-radius:1px}.bd-qr i.o{background:transparent}

/* == Wallet == */

.wl-top{display:flex;align-items:flex-end;gap:16px;padding:48px 0 24px}
.wl-hero{display:grid;grid-template-columns:1.3fr 1fr;background:var(--nav);color:var(--on-nav);border-radius:28px;overflow:hidden;position:relative}
.wl-hero__main{padding:40px;position:relative}
.wl-hero__main .k{color:var(--on-nav-muted);font-size:15px;font-weight:600;display:flex;gap:8px;align-items:center}
.wl-hero__main .v{font-size:60px;line-height:68px;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin-top:8px}
.wl-hero__main .v small{font-size:28px;color:var(--on-nav-muted);font-weight:500}
.wl-hero__main .eq{display:flex;gap:10px;align-items:center;margin-top:16px;font-size:14px;color:var(--on-nav-muted);flex-wrap:wrap}
.wl-hero__main .eq b{color:var(--on-nav);font-weight:650;font-variant-numeric:tabular-nums}
.wl-hero__main .acts{display:flex;gap:12px;margin-top:32px}
.wl-hero__art{position:absolute;right:0;top:0;bottom:0;width:100%;pointer-events:none}
.wl-hero__side{background:var(--nav-raised);padding:32px 36px;display:grid;grid-template-columns:1fr 1fr;gap:28px 24px;align-content:center}
.wl-hero__side .ts-money__k{color:var(--on-nav-muted)}
.wl-hero__side .ts-money__v{color:var(--on-nav)}
.wl-hero__side .ts-money__n{color:var(--on-nav-muted)}
.wl-hero__side .ts-meter{background:color-mix(in srgb, var(--on-media) 12%, transparent);grid-column:1/-1}
.wl-filters{display:flex;gap:8px;align-items:center;margin:16px 0 4px}
.wl-txh{display:grid;grid-template-columns:44px 1fr 110px 130px 110px;gap:24px;padding:12px 0;font-size:13px;font-weight:700;color:var(--ink-muted);border-bottom:1px solid var(--line)}
.wl-txh span:nth-child(n+4){text-align:right}
.wl-inv a{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:14px}
.wl-inv a:first-of-type{border-top:0}
.wl-inv b{font-weight:650}

/* == Profile == */

.pf{display:grid;grid-template-columns:260px 1fr;gap:48px;padding-top:48px;align-items:start}
.pf-id{display:flex;align-items:center;gap:20px;padding:28px;border-radius:var(--radius-xl);background:var(--gold-soft);color:var(--on-gold-soft);position:relative;overflow:hidden}
.pf-id h1{font-family:var(--font-display);font-size:34px;line-height:40px;font-weight:500;color:var(--ink)}
.pf-id .ts-avatar--lg{background:var(--nav);color:var(--gold);width:80px;height:80px;font-size:30px}
.pf-id .stat{margin-left:auto;display:flex;gap:32px;text-align:right;color:var(--ink)}
.pf-id .stat b{display:block;font-size:24px;font-weight:650;font-variant-numeric:tabular-nums}
.pf-id .stat span{font-size:13px;color:var(--on-gold-soft);font-weight:600}
.pf-sec{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);padding:32px;margin-top:24px}
.pf-sec header{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px}
.pf-sec h2{font-size:20px;font-weight:650;line-height:28px}
.pf-sec header p{color:var(--ink-muted);font-size:14px}
.pf-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px}
.pf-tog{display:flex;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.pf-tog:first-of-type{border-top:0;padding-top:0}
.pf-tog strong{display:block;font-weight:650}
.pf-tog span{font-size:14px;color:var(--ink-muted)}
.pf-save{position:sticky;bottom:16px;margin-top:24px;display:flex;align-items:center;gap:12px;padding:14px 20px;background:var(--nav);color:var(--on-nav);border-radius:var(--radius-lg);box-shadow:var(--shadow-3)}

/* == Activity packages == */

.ap-crumb{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--ink-muted);padding:24px 0 12px}
.ap-head{display:flex;align-items:flex-end;gap:24px;margin-bottom:20px}
.ap-head h1{font-family:var(--font-display);font-size:44px;line-height:52px;font-weight:500;letter-spacing:-.015em;margin-top:8px}
.ap-head .sub{display:flex;gap:16px;margin-top:10px;flex-wrap:wrap}
.ap-gal{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:200px 200px;gap:8px;border-radius:24px;overflow:hidden;position:relative}
.ap-gal>div{background-size:cover;background-position:center}
.ap-gal>div:first-child{grid-row:1/3}
.ap-gal .all{position:absolute;right:16px;bottom:16px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-2)}
.ap-body{display:grid;grid-template-columns:1fr 380px;gap:48px;margin-top:32px;align-items:start}
.ap-quick{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}
.ap-quick .ts-fact{padding:18px 20px}.ap-quick .ts-fact+.ts-fact{border-left:1px solid var(--line)}
.ap-sec{padding:36px 0;border-top:1px solid var(--line)}
.ap-sec:first-of-type{border-top:0}
.ap-sec h2{font-family:var(--font-display);font-size:30px;line-height:38px;font-weight:500;letter-spacing:-.01em}
.ap-sec>p{font-size:17px;line-height:28px;color:var(--ink-muted);margin-top:14px}
.ap-hl{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}
.ap-hl div{padding:18px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line)}
.ap-hl b{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent-soft);color:var(--on-accent-soft);font-size:13px;margin-bottom:10px}
.ap-hl strong{display:block;font-weight:650}
.ap-hl span{font-size:14px;color:var(--ink-muted);line-height:21px}
/* package finder */
.pk-head{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.pk-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:20px 0 8px}
.pk-count{font-size:14px;color:var(--ink-muted);margin:16px 0 12px;display:flex;align-items:center;gap:12px}
.pk-list{display:flex;flex-direction:column;gap:12px}
.pk-row{background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius-lg);transition:border-color var(--duration-fast) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}
.pk-row:hover{border-color:var(--line-strong)}
.pk-row.is-selected{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.pk-row[hidden]{display:none}
.pk-main{display:grid;grid-template-columns:132px 1fr 150px;gap:20px;align-items:center;padding:16px 18px 10px;cursor:pointer}
.pk-thumb{height:104px;border-radius:12px;background-size:cover;background-position:center;position:relative;padding:8px}
.pk-thumb .ts-badge{height:22px;font-size:12px;padding:0 8px}
.pk-body h3{font-size:17px;line-height:24px;font-weight:650}
.pk-route{display:flex;align-items:center;flex-wrap:wrap;gap:4px 0;margin-top:8px;font-size:13px;color:var(--ink-muted);font-weight:500}
.pk-stop{display:inline-flex;align-items:center;gap:6px}
.pk-stop::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold);flex:none}
.pk-stop:first-child::before{width:8px;height:8px;background:transparent;border:1.5px solid var(--ink)}
.pk-stop:last-child::before{width:8px;height:8px;background:var(--ink)}
.pk-stop:not(:last-child)::after{content:"";width:12px;border-top:1.5px dashed var(--line-strong);margin:0 6px}
.pk-stop:first-child,.pk-stop:last-child{color:var(--ink);font-weight:650}
.pk-badges{display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap;margin-top:10px}
.pk-badges .ts-badge{height:22px;font-size:12px}
.pk-meta{display:flex;flex-direction:column;gap:6px}
.pk-buy{display:flex;flex-direction:column;align-items:flex-end;gap:10px;text-align:right}
.pk-select{border:1px solid var(--line-strong);background:var(--surface);min-width:110px}
.pk-row.is-selected .pk-select{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.pk-more-btn{display:inline-flex;align-items:center;gap:6px;margin:0 0 12px 170px;font-size:13px;font-weight:650;color:var(--primary)}
.pk-more-btn .ts-i{transition:transform var(--duration-base) var(--ease-out)}
.pk-row.is-open .pk-more-btn .ts-i{transform:rotate(180deg)}
.pk-more{display:none;margin:0 18px 16px 170px;padding:14px 16px;border-radius:12px;background:var(--surface-sunken)}
.pk-row.is-open .pk-more{display:block;animation:ts-reveal var(--duration-base) var(--ease-out)}
.pk-more ul{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px;font-size:14px}
.pk-more li{display:flex;gap:8px;align-items:center}
.pk-more .ts-i-check{color:var(--primary)}.pk-more .ts-i-x{color:var(--danger)}
.pk-more p{font-size:13px;margin-top:10px}
.pk-empty{display:none}
.pk-showmore{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:24px}
/* booking panel */
.ap-book{position:sticky;top:24px;padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-xl);box-shadow:var(--shadow-2);display:flex;flex-direction:column;gap:16px}
.ap-sel{padding:14px 16px;border-radius:12px;background:var(--surface-sunken)}
.ap-sel small{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-muted)}
.ap-sel strong{display:block;font-size:16px;line-height:22px;font-weight:650;margin-top:4px}
.ap-sel span{font-size:13px;color:var(--ink-muted)}
.ap-pax{display:flex;justify-content:space-between;align-items:center}
.ap-pax small{display:block;font-size:13px;color:var(--ink-muted)}
.ap-trust{display:flex;flex-direction:column;gap:8px;font-size:14px}
.ap-trust span{display:flex;gap:10px;align-items:center}.ap-trust .ts-i{color:var(--primary)}
.ap-open{display:flex;justify-content:space-between;font-size:14px;padding-top:14px;border-top:1px dashed var(--line)}
.ap-acc{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);margin-top:20px}
.ap-acc details{padding:0 20px}.ap-acc details+details{border-top:1px solid var(--line)}
.ap-acc summary{list-style:none;display:flex;align-items:center;gap:12px;padding:18px 0;font-weight:650;cursor:pointer}
.ap-acc summary::-webkit-details-marker{display:none}
.ap-acc summary .ts-i-chevron-down{margin-left:auto;color:var(--ink-muted);transition:transform var(--duration-base) var(--ease-out)}
.ap-acc details[open] summary .ts-i-chevron-down{transform:rotate(180deg)}
.ap-acc details>div{padding:0 0 18px 32px;color:var(--ink-muted);font-size:15px}
.ap-acc li{padding:4px 0;list-style:disc;margin-left:18px}
.ap-cancel{display:grid;grid-template-columns:2fr 1fr 1fr;gap:4px;margin-top:8px}
.ap-cancel div{padding:10px 12px 0 0;font-size:14px}.ap-cancel strong{display:block;color:var(--ink)}
.ap-cancel i{display:block;height:6px;border-radius:3px;margin-bottom:10px}

/* package details popup */
.pkd-scrim{position:fixed;inset:0;background:var(--scrim);display:none;align-items:center;justify-content:center;padding:32px;z-index:50}
.pkd-scrim.is-open{display:flex;animation:pkd-fade var(--duration-base) var(--ease-out)}
.pkd{width:min(880px,100%);max-height:calc(100vh - 64px);background:var(--surface);border-radius:var(--radius-xl);box-shadow:var(--shadow-3);display:flex;flex-direction:column;overflow:hidden;animation:pkd-up var(--duration-base) var(--ease-out)}
@keyframes pkd-fade{from{opacity:0}}@keyframes pkd-up{from{transform:translateY(12px);opacity:0}}
.pkd-head{display:flex;gap:16px;align-items:flex-start;padding:24px 24px 0 28px}
.pkd-head h2{font-size:22px;line-height:30px;font-weight:650;letter-spacing:-.01em;flex:1}
.pkd-scroll{overflow:auto;flex:1}
.pkd .ts-tabs{padding:0 28px;position:sticky;top:0;background:var(--surface);z-index:2;margin-top:12px;overflow-x:auto}
.pkd .ts-tab{white-space:nowrap}
.pkd-car{position:relative;margin:20px 28px 0;border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:16/8;background:var(--surface-sunken)}
.pkd-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}
.pkd-slide.is-on{opacity:1}
.pkd-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;background:var(--surface);color:var(--ink);display:grid;place-items:center;box-shadow:var(--shadow-2)}
.pkd-nav.prev{left:14px}.pkd-nav.next{right:14px}
.pkd-count{position:absolute;right:14px;top:14px}
.pkd-dots{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:6px}
.pkd-dots i{width:8px;height:8px;border-radius:99px;background:color-mix(in srgb, var(--surface) 60%, transparent);transition:width var(--duration-base) var(--ease-out)}
.pkd-dots i.is-on{width:22px;background:var(--surface)}
.pkd-panel{padding:24px 28px 32px;display:none}
.pkd-panel.is-on{display:block}
.pkd-panel h3{font-size:17px;font-weight:650;margin-bottom:12px}
.pkd-panel ul{display:flex;flex-direction:column;gap:12px}
.pkd-panel li{position:relative;padding-left:20px;font-size:15px;line-height:24px;color:var(--ink-muted)}
.pkd-panel li::before{content:"";position:absolute;left:2px;top:9px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.pkd-panel li b{color:var(--ink);font-weight:650}
@media (max-width:640px){.pkd-scrim{padding:12px}.pkd-head{padding:18px 16px 0 20px}.pkd-head h2{font-size:18px;line-height:25px}.pkd .ts-tabs{padding:0 16px}.pkd-car{margin:16px 20px 0;aspect-ratio:4/3}.pkd-panel{padding:20px}}
.pkd-todo{padding:16px;border:1.5px dashed var(--line-strong);border-radius:12px;color:var(--ink-subtle);font-size:14px}

/* ------------------------------------------------------------ App additions */

/* Dashboard */
.agency-dashboard { padding-bottom: var(--space-4); }
.agency-dashboard .db-hello { padding-top: 40px; }
.db-chart { padding: var(--space-3); }
.db-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: var(--space-3); }
.db-tile { padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-sunken); display: flex; flex-direction: column; gap: 2px; position: relative; }
.db-tile::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--primary)); position: absolute; top: 16px; right: 16px; }
.db-tile b { font-size: 26px; line-height: 32px; font-weight: 650; font-variant-numeric: tabular-nums; }
.db-tile span { font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.db-kpis h3 { margin-bottom: 4px; }
.db-kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.db-kpi:first-of-type { border-top: 0; }
.db-kpi span { font-size: 14px; color: var(--ink-muted); }
.db-kpi em { font-style: normal; }
.db-kpi b { font-size: 22px; line-height: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.db-launch .ts-launch { color: var(--ink); text-decoration: none; }
.ag-body .db-launch a.ts-launch--hero,
.ag-body .db-launch a.ts-launch--navy { color: var(--on-media); }
.ag-body .db-launch a.ts-launch--hero .ts-launch__go { color: var(--surface); }
.ag-body .db-launch a.ts-launch .ts-launch__go { color: var(--primary); }
.ag-body .db-launch a.ts-launch.ts-launch--navy .ts-launch__go { color: var(--on-nav); }
.ag-body .db-launch a.ts-launch.ts-launch--hero .ts-launch__go { color: var(--surface); }
.agency-chart-tip { padding: 10px 12px; font-family: var(--font-sans); }
.agency-chart-tip-title { font-weight: 650; margin-bottom: 6px; }
.agency-chart-stat-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.agency-chart-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.apexcharts-tooltip.apexcharts-theme-dark { background: var(--nav) !important; border: 0 !important; border-radius: var(--radius-md) !important; box-shadow: var(--shadow-3) !important; }

/* Offer carousel */
.agency-offer-carousel { margin: var(--space-4) 0 0 !important; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.agency-offer-carousel .slick-dots { bottom: 14px; }
.ag-body .agency-offer-carousel__title { color: var(--slide-text); font-family: var(--font-display); }
.agency-offer-carousel__offer, .agency-offer-carousel__title, .agency-offer-carousel__sub { text-shadow: 0 1px 3px color-mix(in srgb, var(--nav) 55%, transparent); }
.agency-offer-carousel__overlay { background: linear-gradient(100deg, var(--slide-overlay) 0%, color-mix(in srgb, var(--nav) 25%, transparent) 60%, transparent 100%); }

/* Login */
.ag-login-body { display: block !important; }
.ag-login { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(420px, 1fr); }
.ag-login__brand { position: relative; background: var(--nav); color: var(--on-nav); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.ag-login__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ag-login__brand::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--nav) 62%, transparent) 0%, color-mix(in srgb, var(--nav) 18%, transparent) 42%, color-mix(in srgb, var(--nav) 78%, transparent) 100%); }
.ag-login__brand > :not(.ag-login__video) { position: relative; z-index: 2; }
.ag-login__pitch { position: relative; z-index: 2; max-width: 460px; }
@media (prefers-reduced-motion: reduce) {
  .ag-login__video { display: none; }
}
.ag-login__pitch h2 { font-family: var(--font-display); font-size: 44px; line-height: 52px; font-weight: 500; letter-spacing: -0.015em; color: var(--on-nav); }
.ag-login__pitch h2 em { font-style: italic; color: var(--gold); }
.ag-login__pitch p { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--on-nav-muted); }
.ag-login__panel { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.ag-login__card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: var(--space-2); }
.ag-login__mark { color: var(--ink); }
.ag-login__title { font-family: var(--font-display) !important; font-weight: 500; font-size: 38px; line-height: 44px; letter-spacing: -0.015em; margin: 4px 0 0; }
.ag-login__sub { color: var(--ink-muted); margin: 0 0 var(--space-2); }
.ag-login__card .ts-btn { margin-top: var(--space-1); }
.ag-login__back { align-self: center; margin-top: var(--space-1); }
.ag-login__help { text-align: center; color: var(--ink-muted); font-size: 14px; margin: var(--space-2) 0 0; }
.ag-login .ts-control input { height: 100%; min-height: 0; border: 0; padding: 0 14px; background: transparent; border-radius: 0; box-shadow: none; }
@media (max-width: 860px) {
  .ag-login { grid-template-columns: 1fr; }
  .ag-login__brand { display: none; }
  .ag-login__mark { display: inline-flex; }
}

@media (max-width: 991.98px) {
  .db-hello { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 24px; }
  .db-hello h1 { font-size: 32px; line-height: 38px; }
  .db-launch { grid-template-columns: 1fr; }
  .db-launch .ts-launch { min-height: 220px; }
  .db-cols { grid-template-columns: 1fr; margin-top: 20px; }
  .db-tiles { grid-template-columns: repeat(2, 1fr); }
  .db-strip { grid-template-columns: 1fr; }
  .db-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* Explore (sightseeing list) */
.ex-card-wrap { display: flex; min-width: 0; }
.ex-card-wrap .ts-xcard { width: 100%; }
.ex-card__media { display: block; }
.ex-card__title-link { color: var(--ink); }
.ex-card__title-link:hover { color: var(--primary); }
.ex-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-selected-activities { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ex-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.ex-sort label { margin: 0; font-weight: 500; white-space: nowrap; }
.ag-body .ex-sort select { min-height: 36px; height: 36px; width: auto; min-width: 170px; padding-top: 4px; padding-bottom: 4px; font-weight: 600; font-size: 14px; }
.ex-grid .ts-xcard, .box-list-tours.list-tours .ex-grid .ts-xcard { border-radius: var(--radius-md); }
.ex-grid .ts-xcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.ex-grid .ts-xcard .ts-media { aspect-ratio: 16 / 10; }
.ex-grid .ts-xcard__badges { top: 10px; left: 10px; right: 10px; }
.ex-grid .ts-xcard__body { padding: 14px 16px 16px; gap: 8px; }
.ex-grid .ts-xcard__title { font-size: 16px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.ex-grid .ts-xcard__foot { padding-top: 12px; align-items: center; }
.ex-grid .ts-price strong { font-size: 20px; }
.ex-card__city { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ex-card__city .ts-i { color: var(--accent); width: 14px; height: 14px; }
.ex-card__types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ex-card__types li { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--on-primary-soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ex-card__types li .ts-i { width: 14px; height: 14px; }
.ex-view-toggle .ts-seg__opt { width: 40px; padding: 0; justify-content: center; }
.ex-view-toggle .ts-seg__opt.is-active { color: var(--ink); }
#openActivityFilter.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--on-primary-soft); }
#openActivityFilter .ts-tab__count { background: var(--primary); color: var(--on-primary); }
.ex-card-wrap { animation: ts-reveal var(--duration-base) var(--ease-out); }
.ex-skeleton .ts-xcard:hover { transform: none; box-shadow: none; }
.ex-progress { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
#sightseeing-error { align-items: center; margin-top: 8px; }
.ex-card__media { transition: opacity var(--duration-base) var(--ease-out); }
.ex-card__media:hover { opacity: .92; }
@media (prefers-reduced-motion: reduce) { .ex-card-wrap { animation: none; } }
.ex-filters .ts-chip { text-decoration: none; }
.ex-filters { top: calc(var(--nav-top, 0px) + var(--nav-height)); }
.ex-search input { border: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 0 !important; padding: 0 !important; height: 40px; }
.ex-search .q { cursor: text; margin: 0; }

/* list layout (grid/list toggle) */
.box-list-tours.list-tours .ex-grid { grid-template-columns: 1fr; gap: 16px; }
.box-list-tours.list-tours .ts-xcard { flex-direction: row; border-radius: var(--radius-lg); }
.box-list-tours.list-tours .ts-xcard .ts-media { width: 300px; aspect-ratio: auto; flex: none; min-height: 190px; }
.box-list-tours.list-tours .ts-xcard__body { padding: 24px 28px; }

/* activity filter modal */
.ex-activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ex-activity-option { position: relative; display: block; cursor: pointer; margin: 0; }
.ex-activity-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ex-activity-option__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color var(--duration-fast), background var(--duration-fast); }
.ex-activity-option:hover .ex-activity-option__body { border-color: var(--line-strong); }
.ex-activity-option.is-selected .ex-activity-option__body { border-color: var(--primary); background: var(--primary-soft); color: var(--on-primary-soft); }
.ex-activity-option__name { font-weight: 600; font-size: 14px; }
.ex-activity-option__count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.ex-activity-option.is-selected .ex-activity-option__count { background: var(--primary); color: var(--on-primary); }
.ex-activity-option.is-empty { opacity: 0.45; pointer-events: none; }

@media (max-width: 1199.98px) {
  .ex-toolbar { flex-wrap: wrap; }
  .ex-row { flex-basis: 100%; }
}
@media (max-width: 767.98px) {
  .ex-head h1 { font-size: 24px; line-height: 30px; }
  .ex-search { flex-basis: 100%; }
  .ex-grid { grid-template-columns: 1fr; gap: 16px; }
  .ex-filters { position: static; }
  .box-list-tours.list-tours .ts-xcard { flex-direction: column; }
  .box-list-tours.list-tours .ts-xcard .ts-media { width: 100%; aspect-ratio: 4 / 3; }
}

/* Experience detail (sightseeing) */
.xd-hero { background-color: var(--nav); background-size: cover; background-position: center; min-height: 420px; height: clamp(420px, 46vw, 520px); }
.xd-hero__txt { align-items: flex-end; }
.xd-hero__txt h1 { color: var(--on-media) !important; font-family: var(--font-display) !important; }
.xd-hero__gal { align-items: center; }
.xd-thumb { display: block; width: 84px; height: 64px; border-radius: 12px; border: 2px solid var(--on-media); background-size: cover; background-position: center; flex: none; transition: transform var(--duration-fast) var(--ease-out); }
.xd-thumb:hover { transform: translateY(-2px); }
.xd-more { display: grid; place-items: center; align-content: center; gap: 2px; min-width: 84px; height: 64px; padding: 0 12px; border-radius: 12px; background: color-mix(in srgb, var(--nav) 80%, transparent); color: var(--on-media); border: 2px solid var(--on-media); font-size: 13px; font-weight: 650; line-height: 1.2; text-align: center; cursor: pointer; backdrop-filter: blur(6px); }
.xd-more:hover { background: color-mix(in srgb, var(--nav) 90%, transparent); }
.xd-quick { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.xd-quick .ts-fact { padding: 18px 22px; min-width: 0; }
.xd-quick .ts-fact__v { word-break: break-word; }
.xd-main { min-width: 0; }
.xd-aside { min-width: 0; align-self: stretch; }
.xd-rich { font-size: 16px; line-height: 27px; color: var(--ink-muted); }
.xd-rich p { margin: 0 0 12px; font-size: inherit; }
.xd-rich ul, .xd-rich ol { padding-left: 22px; margin: 0 0 12px; list-style: revert; }
.xd-rich li { margin: 6px 0; }
.xd-rich h1, .xd-rich h2, .xd-rich h3, .xd-rich h4, .xd-rich h5 { font-size: 18px; line-height: 26px; font-weight: 650; color: var(--ink); margin: 18px 0 8px; font-family: var(--font-sans) !important; }
.xd-rich img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.xd-rich a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.xd-strike { color: var(--ink-subtle); text-decoration: line-through; font-size: 16px; font-weight: 500; }
.xd-book .xd-book__row { display: flex; flex-direction: column; gap: 18px; }
.xd-book .from { flex-wrap: wrap; }
.xd-book .box-button-book { margin: 0 !important; }
.ag-body .xd-book .btn-book { color: var(--on-primary); background: var(--primary); }
.xd-trust a { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600; }
.ag-body .xd-trust a:hover { color: var(--primary); }
.xd-trust { padding-top: 6px; border-top: 1px dashed var(--line-strong); }
.xd-book { top: calc(var(--nav-height) + 24px); }

/* Packages */
.xd-packages { padding-top: 40px; scroll-margin-top: calc(var(--nav-height) + 16px); }
.xd-packages .select-package-title { font-family: var(--font-display) !important; font-weight: 500 !important; font-size: 30px !important; line-height: 38px; letter-spacing: -0.01em; margin-bottom: 20px !important; }
.ag-body .package-filter-bar { border-bottom: 1px solid var(--line); margin-bottom: 24px; gap: 12px 24px; }
.ag-body .package-type-tabs { gap: 4px; }
.ag-body .package-type-tabs .package-type-btn { position: relative; height: 48px; min-height: 0; padding: 0 14px; border-radius: 0; border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--ink-muted); margin: 0; box-shadow: none; }
.ag-body .package-type-tabs .package-type-btn:hover { color: var(--ink); background: transparent; }
.ag-body .package-type-tabs .package-type-btn.active { color: var(--ink); background: transparent; border-bottom: 0; }
.ag-body .package-type-tabs .package-type-btn.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.ag-body .package-search-wrap { flex: 1 1 260px; min-width: 0; max-width: 380px; margin: 0; }
.ag-body .package-search-wrap #search { min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 8px 14px 8px 38px; background: var(--surface); }
.ag-body .package-search-wrap #search:focus { border-color: var(--focus); box-shadow: 0 0 0 3px var(--primary-soft); }
.ag-body .package-search-wrap .fa-search { left: 14px; color: var(--ink-muted); }
.ag-body .package-type-tabs .package-type-btn .ts-tab__count { margin-left: 6px; }
.ag-body .package-type-tabs .package-type-btn.active .ts-tab__count { background: var(--accent-soft); color: var(--on-accent-soft); }
.ag-body .package-filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.package-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 1 auto; margin: 0 0 8px; }
.ag-body .package-toolbar .package-search-wrap { flex: 0 1 280px; }
@media (max-width: 991.98px) { .package-toolbar { flex-basis: 100%; justify-content: space-between; } .ag-body .package-toolbar .package-search-wrap { flex: 1 1 auto; max-width: none; } }

.xd-packages #sightseeing-packages { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0; }
@media (min-width: 768px) { .xd-packages #sightseeing-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .xd-packages #sightseeing-packages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xd-packages #sightseeing-packages > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; margin: 0 !important; }

.ag-body .sightseeing-package-card { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: none; }
.ag-body .sightseeing-package-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.ag-body .sightseeing-package-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: none; }
.ag-body .sightseeing-package-card .card-info { padding: 18px 20px 0; background: transparent; }
.ag-body .sightseeing-package-card .package-location { color: var(--ink-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ag-body .sightseeing-package-card .package-location i { color: var(--accent); }
.ag-body .sightseeing-package-card .card-title { font-size: 18px; line-height: 26px; font-weight: 650; border-bottom: 1px dashed var(--line); }
.ag-body .sightseeing-package-card .card-title a { color: var(--ink); }
.ag-body .sightseeing-package-card .card-title a:hover { color: var(--primary); }
.ag-body .sightseeing-package-card .package-code-text { color: var(--ink-subtle) !important; font-size: 12px; }
.ag-body .sightseeing-package-card .top-inclusions-label { color: var(--ink-muted); letter-spacing: 0.1em; }
.ag-body .sightseeing-package-card .included-badge { background: var(--primary-soft); color: var(--on-primary-soft); }
.ag-body .sightseeing-package-card .package-inclusions-list li { color: var(--ink); font-size: 14px; }
.ag-body .sightseeing-package-card .package-inclusions-list li i { background: var(--primary-soft); color: var(--primary); width: 18px; height: 18px; font-size: 9px; }
.ag-body .sightseeing-package-card .view-more-inclusions { color: var(--primary); }
.ag-body .sightseeing-package-card .package-card-footer { border-top: 1px dashed var(--line); background: transparent; margin: auto -20px 0; padding: 16px 20px 20px; }
.ag-body .sightseeing-package-card .package-price-starting { color: var(--ink-muted); font-size: 13px; }
.ag-body .sightseeing-package-card .package-price-amount { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ag-body .sightseeing-package-card .package-price-label { color: var(--ink-muted); font-weight: 500; }
.ag-body .sightseeing-package-card .package-price-strike { color: var(--ink-subtle); }
.ag-body .sightseeing-package-card .btn-book-package { background: var(--primary); border-color: var(--primary); color: var(--on-primary); border-radius: var(--radius-md); min-height: 40px; padding: 8px 18px; font-size: 14px; box-shadow: var(--shadow-1); }
.ag-body .sightseeing-package-card .btn-book-package:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.ag-body .card-journey-small .card-image .label.package-type-badge { background: color-mix(in srgb, var(--nav) 80%, transparent); border-radius: var(--radius-pill); backdrop-filter: blur(6px); box-shadow: none; text-transform: none; letter-spacing: 0; font-size: 12px; padding: 7px 12px; }
.ag-body .card-journey-small .card-image .label.package-code-badge { background: var(--gold); color: var(--on-gold); border-radius: var(--radius-pill); box-shadow: none; }
.ag-body .sightseeing-package-card .btn-share-package,
.ag-body .sightseeing-package-card .btn-gallery { background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink) !important; border-radius: var(--radius-pill); box-shadow: none; }
.ag-body .sightseeing-package-card .btn-share-package:hover,
.ag-body .sightseeing-package-card .btn-gallery:hover { background: var(--surface); color: var(--ink) !important; }
.ag-body .btn-gallery { background-color: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink) !important; }
.ag-body .sightseeing-package-card .package-booking-countdown { background: var(--danger-soft); border-color: transparent; }

/* Package detail modal */
body.package-detail-modal-open .modal-backdrop.package-detail-backdrop { background-color: var(--scrim); }
.ag-body #packageDetailModal .modal-content { background: var(--surface); color: var(--ink); border: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 20px 50px color-mix(in srgb, var(--ink) 18%, transparent); }
.ag-body #packageDetailModal .modal-header { padding: 22px 24px 0; background: var(--surface); }
.ag-body #packageDetailModal .package-detail-title-row { align-items: center; margin-bottom: 18px; }
.ag-body #packageDetailModal .package-detail-title { font-family: var(--font-display) !important; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.ag-body #packageDetailModal .btn-close { margin: 0; padding: 0; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--radius-pill); background-size: 12px; background-color: var(--surface-sunken); opacity: 0.8; }
.ag-body #packageDetailModal .btn-close:hover { opacity: 1; background-color: var(--line); }
[data-theme="dark"] .ag-body #packageDetailModal .btn-close { filter: invert(1) grayscale(1); }
.ag-body #packageDetailModal .package-detail-tabs { gap: 24px; border-bottom-color: var(--line); }
.ag-body #packageDetailModal .package-detail-tab { position: relative; border-bottom: 0; padding: 0 0 14px; color: var(--ink-muted); font-size: 14px; font-weight: 600; box-shadow: none; }
.ag-body #packageDetailModal .package-detail-tab:hover { color: var(--ink); }
.ag-body #packageDetailModal .package-detail-tab.active { color: var(--ink); border-bottom: 0; }
.ag-body #packageDetailModal .package-detail-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.ag-body #packageDetailModal .package-detail-body { padding: 24px; max-height: min(68vh, 680px); }
.ag-body #packageDetailModal .package-detail-gallery { margin: -24px -24px 24px; background: var(--nav); }
.ag-body #packageDetailModal .package-detail-gallery-slide { background: var(--nav); }
.ag-body #packageDetailModal .package-detail-gallery-nav { background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); box-shadow: var(--shadow-1); backdrop-filter: blur(6px); }
.ag-body #packageDetailModal .package-detail-gallery-nav:hover { background: var(--surface); color: var(--primary); }
.ag-body #packageDetailModal .package-detail-gallery-counter { background: color-mix(in srgb, var(--nav) 80%, transparent); color: var(--on-nav); backdrop-filter: blur(6px); }
.ag-body #packageDetailModal .package-detail-gallery-dot { background: color-mix(in srgb, var(--on-media) 50%, transparent); }
.ag-body #packageDetailModal .package-detail-gallery-dot.active { background: var(--on-media); }
.ag-body #packageDetailModal .package-detail-section { padding: 20px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); scroll-margin-top: 12px; }
.ag-body #packageDetailModal .package-detail-section:last-child { margin-bottom: 0; }
.ag-body #packageDetailModal .package-detail-section h6 { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.ag-body #packageDetailModal .package-detail-section h6::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }
.ag-body #packageDetailModal .package-detail-section.inclusions h6 { color: var(--on-success-soft); }
.ag-body #packageDetailModal .package-detail-section.inclusions h6::before { background: var(--success); }
.ag-body #packageDetailModal .package-detail-section.exclusions h6 { color: var(--on-danger-soft); }
.ag-body #packageDetailModal .package-detail-section.exclusions h6::before { background: var(--danger); }
.ag-body #packageDetailModal .package-detail-section ul { list-style: none; padding: 0; display: grid; gap: 10px 20px; }
.ag-body #packageDetailModal .package-detail-section ul li { position: relative; padding-left: 28px; margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.ag-body #packageDetailModal .package-detail-section ul li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; background: var(--success-soft); color: var(--success); }
.ag-body #packageDetailModal .package-detail-section.exclusions ul li::before { content: "\2715"; background: var(--danger-soft); color: var(--danger); }
.ag-body #packageDetailModal .package-detail-html,
.ag-body #packageDetailModal .package-detail-itinerary-desc { color: var(--ink-muted); font-size: 14px; line-height: 1.65; }
.ag-body #packageDetailModal .package-detail-html :is(h1, h2, h3, h4, h5, h6, strong, b) { color: var(--ink); }
.ag-body #packageDetailModal .package-detail-html a { color: var(--primary); }
.ag-body #packageDetailModal .package-detail-itinerary-time { color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.ag-body #packageDetailModal .package-detail-itinerary-dot { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.ag-body #packageDetailModal .package-detail-itinerary-item:not(:last-child) .package-detail-itinerary-marker::after { border-left-color: var(--line-strong); }
.ag-body #packageDetailModal .package-detail-itinerary-title { font-size: 16px; font-weight: 650; color: var(--ink); line-height: 1.35; margin-bottom: 6px; }
.ag-body #packageDetailModal .package-detail-itinerary-image img { border-radius: var(--radius-md); }
@media (max-width: 575.98px) {
  .ag-body #packageDetailModal .modal-header { padding: 18px 16px 0; }
  .ag-body #packageDetailModal .package-detail-title { font-size: 20px; }
  .ag-body #packageDetailModal .package-detail-body { padding: 16px; }
  .ag-body #packageDetailModal .package-detail-gallery { margin: -16px -16px 16px; }
  .ag-body #packageDetailModal .package-detail-section { padding: 16px; }
}

/* Booking modal polish (rules in the view use tokens; unify radii) */
.ag-body #bookingModal .ss-booking-modal { border-radius: var(--radius-xl); }
.ag-body #bookingModal .ss-passenger-card,
.ag-body #bookingModal .ss-taxi-toggle-card,
.ag-body #bookingModal .ss-logistics-card,
.ag-body #bookingModal .ss-taxi-card { border-radius: var(--radius-lg); }
.ag-body #bookingModal .ss-booking-header-icon,
.ag-body #bookingModal .ss-taxi-toggle-icon { background: var(--nav); color: var(--gold); border-radius: var(--radius-md); }
.ag-body #bookingModal .ss-step-num { border-color: var(--line-strong); color: var(--ink-muted); }
.ag-body #bookingModal .ss-taxi-toggle-card { background: var(--primary-soft); border-color: transparent; }
.ag-body #bookingModal .booking-submit-btn { border-radius: var(--radius-md); min-height: 48px; box-shadow: var(--shadow-1); }
.ag-body #bookingModal .form-group .form-control,
.ag-body #bookingModal .form-group .date-picker { border-radius: var(--radius-md); border-color: var(--line-strong); }
.ag-body #bookingModal .ss-booking-subtitle { color: var(--primary); }

/* Collapse info sections (about / terms / cancellation ...) */
.xd-info .box-collapse-expand { display: flex; flex-direction: column; gap: 12px; }
.xd-info .group-collapse-expand { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin: 0; transition: box-shadow .2s; }
.xd-info .group-collapse-expand:hover { box-shadow: var(--shadow-1); }
.ag-body .xd-info .btn-collapse { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; min-height: 0; }
.ag-body .xd-info .btn-collapse:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.xd-info .btn-collapse h6 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 650; color: var(--ink); }
.xd-info .btn-collapse svg { flex: none; color: var(--ink-muted); transform: rotate(180deg); transition: transform .2s; }
.xd-info .btn-collapse.collapsed svg { transform: none; }
.xd-info .collapse .card-body > :last-child { margin-bottom: 0; }
.xd-info .group-collapse-expand .card.card-body { border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0; padding: 16px 20px 20px !important; background: transparent; text-align: left; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.xd-info .group-collapse-expand .card.card-body p,
.xd-info .group-collapse-expand .card.card-body li { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

@media (max-width: 1199.98px) {
  .xd-body { grid-template-columns: 1fr; gap: 32px; }
  .xd-aside { order: -1; }
  .xd-book { position: static; }
}
@media (max-width: 991.98px) {
  .xd-hero { border-radius: 20px; min-height: 360px; }
  .xd-hero__txt { left: 20px; right: 20px; bottom: 76px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .xd-hero__txt h1 { font-size: 34px; line-height: 40px; }
  .xd-hero__gal { margin-left: 0; }
  .xd-quick { margin-left: 12px; margin-right: 12px; grid-template-columns: repeat(2, 1fr); }
  .xd-quick .ts-fact:nth-child(odd) { border-left: 0; }
  .xd-hl, .xd-inc { grid-template-columns: 1fr; }
  .xd-aside { order: 0; }
  .xd-book.sightseeing-booking-cta {
    position: fixed; left: 0; right: 0; bottom: 64px; top: auto; z-index: 1029; margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 12px 16px; gap: 0;
    box-shadow: 0 -6px 28px color-mix(in srgb, var(--ink) 14%, transparent);
  }
  .xd-book.sightseeing-booking-cta .xd-book__row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .xd-book.sightseeing-booking-cta .from strong { font-size: 24px; line-height: 28px; }
  .xd-book.sightseeing-booking-cta .from .muted { display: none; }
  .xd-book.sightseeing-booking-cta .xd-trust { display: none; }
  .xd-book.sightseeing-booking-cta .ts-btn--lg { height: 44px; padding: 0 18px; font-size: 15px; }
  .xd-book.sightseeing-booking-cta.is-packages-visible { transform: translateY(160%); opacity: 0; pointer-events: none; }
  .xd-page { padding-bottom: 96px; }
}
@media (max-width: 575.98px) {
  .xd-hero__gal .xd-thumb { width: 64px; height: 52px; }
  .xd-more { min-width: 64px; height: 52px; }
}

/* Private transfer wizard (legacy markup + JS hooks, design look) */
.ag-body .agency-taxi-page { background: transparent; padding: 0 var(--space-4) var(--space-4); }
.tr-page .tr-top { padding: 40px 0 24px; }
.ag-body .agency-taxi-page .booking-form.taxi-wizard-card {
  max-width: none; margin: 0 0 var(--space-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: none; padding: 36px;
}
.ag-body .agency-taxi-page .booking-title,
.ag-body .agency-taxi-page .taxi-wizard-heading { font-family: var(--font-sans); font-size: 22px; line-height: 30px; font-weight: 650; color: var(--ink); margin-bottom: 4px !important; }
.ag-body .agency-taxi-page .taxi-wizard-sub { color: var(--ink-muted); font-size: 15px; margin-bottom: 8px; }
.ag-body .agency-taxi-page .form-label,
.ag-body .agency-taxi-page .form-check-label { color: var(--ink); font-size: 14px; font-weight: 600; }

/* Stepper -> journey */
.taxi-wizard-stepper {
  display: flex; justify-content: center; gap: 0; max-width: none;
  margin: 0 0 var(--space-3); padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.taxi-wizard-step-item { flex: 1 1 0; flex-direction: row; text-align: left; align-items: center; gap: 14px; padding: 0 var(--space-2) 0 0; opacity: 1; }
.taxi-wizard-step-item:last-child { flex: 0 0 auto; padding-right: 0; }
.taxi-wizard-step-item:not(:last-child)::before { content: none; }
.taxi-wizard-step-item:not(:last-child)::after { content: ""; flex: 1; min-width: 24px; height: 2px; margin-left: 4px; background: var(--line-strong); border-radius: 2px; }
.taxi-wizard-step-item.is-complete:not(:last-child)::after { background: var(--primary); }
.taxi-wizard-step-icon { width: 44px; height: 44px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink-muted); box-shadow: none; }
.taxi-wizard-step-item.is-active .taxi-wizard-step-icon { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 16%, transparent); }
.taxi-wizard-step-item.is-complete .taxi-wizard-step-icon { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.taxi-wizard-step-copy { align-items: flex-start; line-height: 1.25; white-space: nowrap; }
.taxi-wizard-step-copy strong { color: var(--ink-muted); font-size: 16px; font-weight: 650; }
.taxi-wizard-step-item.is-active .taxi-wizard-step-copy strong { color: var(--primary); }
.taxi-wizard-step-item.is-complete .taxi-wizard-step-copy strong { color: var(--ink); }
.taxi-wizard-step-copy span,
.taxi-wizard-step-item.is-active .taxi-step-sub { color: var(--ink-muted); font-size: 13px; font-weight: 500; }
.taxi-wizard-step-item.is-complete .taxi-step-sub { color: var(--primary); font-size: 13px; font-weight: 600; }

/* Section label -> design "WHEN & WHO" divider */
.taxi-section-label { display: flex !important; align-items: center; gap: 10px; margin: 28px 0 14px !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted) !important; }
.taxi-section-label::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }

/* Transfer type tiles -> .ts-option */
.taxi-type-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
.taxi-type-card { position: relative; display: block; height: 100%; }
.taxi-type-card-inner { position: relative; height: 100%; flex-direction: column !important; align-items: flex-start; text-align: left; gap: 2px; padding: 16px; min-height: 0; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.taxi-type-card:hover .taxi-type-card-inner { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); transform: translateY(-1px); }
.taxi-type-card-inner i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 16px; margin-bottom: 10px; transition: background .15s, color .15s; }
.taxi-type-card-inner strong { color: var(--ink); font-size: 15px; font-weight: 650; line-height: 20px; }
.taxi-type-card-inner small { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.taxi-type-card-inner::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; background: var(--primary); color: var(--on-primary); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.taxi-type-card input:checked + .taxi-type-card-inner { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.taxi-type-card input:checked + .taxi-type-card-inner::after { opacity: 1; transform: scale(1); }
.taxi-type-card input:checked + .taxi-type-card-inner i { background: var(--primary); color: var(--on-primary); }
.taxi-type-card input:checked + .taxi-type-card-inner strong { color: var(--primary); }
.taxi-type-card input:focus-visible + .taxi-type-card-inner { outline: 2px solid var(--focus); outline-offset: 2px; }
.taxi-persons-block { max-width: none; }

.taxi-wizard-panel { background: var(--surface-sunken); border: 0; border-radius: var(--radius-lg); padding: 20px 20px 8px; }
.taxi-wizard-panel .form-control,
.taxi-wizard-panel .select2-selection { border-radius: var(--radius-md) !important; background: var(--surface) !important; }
.taxi-panel-title { color: var(--ink-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.taxi-route-mode { background: var(--surface-sunken); border: 0; border-radius: var(--radius-lg); }
.taxi-route-mode .category-group .btn-group,
:not(#route_type_group) > .category-group .btn-group { border: 0; background: var(--surface); border-radius: var(--radius-md); padding: 4px; box-shadow: none; }
.taxi-route-mode .btn-group .btn,
.btn-group .btn { border-radius: 7px !important; font-weight: 600; min-height: 36px; padding: 6px 14px; }
.ag-body .btn-check:checked + .btn-outline-dark { background: var(--nav) !important; border-color: var(--nav) !important; color: var(--on-nav) !important; }
.ag-body .btn-outline-dark.border-0 { background: transparent; color: var(--ink-muted); border: 0 !important; }
.ag-body .agency-taxi-page .pla-card-input { border-style: dashed; border-color: var(--line-strong); border-radius: var(--radius-md); }

.taxi-wizard-nav { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.taxi-wizard-nav-price { background: var(--surface); }
.taxi-total-price strong { color: var(--ink); font-size: 26px; line-height: 32px; font-weight: 650; letter-spacing: -0.01em; }
.ag-body .agency-taxi-page .btn-black-lg,
.ag-body .btn-black-lg,
.ag-body .btn-black {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px !important; border-radius: var(--radius-md) !important;
  background: var(--primary); border: 1px solid var(--primary); color: var(--on-primary);
  font-size: 16px; font-weight: 600; box-shadow: var(--shadow-1);
}
.ag-body .btn-black-lg:hover, .ag-body .btn-black:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.ag-body .btn-black-lg:disabled, .ag-body .btn-black-lg[disabled] { opacity: .45; box-shadow: none; }

/* Vehicle step */
.taxi-capacity-label { color: var(--ink-muted); }
.taxi-capacity-value { color: var(--primary); }
.taxi-capacity-badge.is-short .taxi-capacity-value { color: var(--accent-ink); }
.taxi-category-pills .btn-group .btn { background: var(--surface) !important; border: 1px solid var(--line-strong) !important; color: var(--ink) !important; border-radius: var(--radius-pill) !important; min-height: 40px; padding: 0 16px !important; font-size: 14px; }
.taxi-category-pills .btn-check:checked + .btn { background: var(--nav) !important; border-color: var(--nav) !important; color: var(--on-nav) !important; }
.taxi-vehicle-search .form-control { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); height: 44px; }
.taxi-vehicle-grid { grid-template-columns: 1fr; gap: 12px; }
.ag-body .agency-taxi-page .taxi-card { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.ag-body .agency-taxi-page .taxi-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow-1); }
.ag-body .agency-taxi-page .taxi-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }
.ag-body .agency-taxi-page .taxi-card-inner { padding: 18px !important; }
.taxi-card-top { grid-template-columns: 120px 1fr; gap: 16px; padding-bottom: 14px; }
.taxi-card-media { width: 120px; height: 96px; display: grid; place-items: center; background: var(--surface-sunken); border-radius: var(--radius-md); }
.taxi-card-media .taxi-image { object-fit: contain; border-radius: 0; padding: 6px; }
.taxi-card-media .taxi-image-ph { font-size: 34px; color: var(--ink-subtle); }
.taxi-card-info { gap: 6px; }
.taxi-card-title-row { align-items: center; flex-wrap: wrap; }
.taxi-card-name { color: var(--ink); font-size: 17px; font-weight: 650; line-height: 22px; }
.taxi-ideal-badge { background: var(--primary-soft); color: var(--primary); font-size: 12px; padding: 3px 10px; }
.taxi-cat-badge { background: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; padding: 3px 10px; white-space: normal; }
.taxi-card-price { margin-top: 2px; }
.taxi-card-price, .taxi-card-price strong { color: var(--primary); font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; }
.taxi-card-price-unit { color: var(--ink-muted); font-size: 13px; font-weight: 500; }
.taxi-card-footer { padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: nowrap; }
.taxi-card-feature-label { color: var(--ink-muted) !important; }
.taxi-card-feature strong { color: var(--ink) !important; }
.taxi-features-link, .taxi-features-link:hover { color: var(--primary) !important; }
.ag-body .taxi-count-badge, .ag-body .feature-badge { background: var(--nav) !important; color: var(--on-nav) !important; }

@media (min-width: 1200px) {
  .taxi-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ag-body .agency-taxi-page { padding: 0 var(--space-2) var(--space-3); }
  .ag-body .agency-taxi-page .booking-form.taxi-wizard-card { padding: 22px 18px; border-radius: var(--radius-lg); }
  .taxi-type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taxi-wizard-stepper { padding: 16px; }
  .taxi-wizard-step-item, .taxi-wizard-step-item:last-child { flex: 1 1 0; flex-direction: column; text-align: center; gap: 6px; padding: 0 4px; }
  .taxi-wizard-step-copy { align-items: center; }
  .taxi-wizard-step-copy strong { font-size: 13px; }
  .taxi-wizard-step-copy span { display: none; }
  .taxi-wizard-step-item:not(:last-child)::after { display: none; }
  .taxi-card-top { grid-template-columns: 88px 1fr; gap: 12px; }
  .taxi-card-media { width: 88px; height: 80px; }
  .taxi-card-footer { flex-wrap: wrap; }
  .taxi-card-features { flex-basis: 100%; }
  .tr-page .tr-top h1 { font-size: 32px; line-height: 38px; }
}
@media (max-width: 767.98px) {
  .taxi-capacity-badge { text-align: left; white-space: normal; }
  .taxi-vehicle-toolbar { flex-direction: column; align-items: stretch; }
  .taxi-vehicle-search { min-width: 0; max-width: none; flex: 1 1 auto; }
  .taxi-wizard-nav-price { flex-direction: column-reverse; align-items: stretch; }
  .taxi-wizard-nav-price > div { justify-content: space-between; }
  .taxi-wizard-nav-price > div > .flex-column { align-items: flex-start !important; }
  .taxi-wizard-nav-price #price-breakdown { flex-wrap: wrap; }
  .taxi-wizard-nav-price .btn { width: 100%; }
  .taxi-total-price strong { font-size: 22px; line-height: 28px; }
  .taxi-card-footer { gap: 10px !important;}
  #sightseeingAddonModal .modal-footer > div { width: 100%; }
  #sightseeingAddonModal .modal-footer .btn { flex: 1 1 auto; }
  #sightseeingAddonModal .ss-package-card img { width: 56px !important; height: 56px !important; }
}

/* Checkout */
.ag-body .agency-checkout { padding-bottom: var(--space-4); }
.ag-body .agency-checkout-header { margin: 0; padding: 40px 0 28px; text-align: left; }
.ag-body .agency-checkout-title { font-family: var(--font-display) !important; font-size: 44px; line-height: 52px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); margin: 10px 0 8px; }
.ag-body .agency-checkout-sub { margin: 0; max-width: 620px; font-size: 17px; line-height: 28px; color: var(--ink-muted); }
.ag-body .agency-checkout-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: none; padding: 32px; }
.ag-body .agency-checkout-card__title { font-size: 22px; line-height: 30px; font-weight: 650; color: var(--ink); margin-bottom: 4px; }
.ag-body .agency-checkout-card__title i { color: var(--accent); }
.ag-body .agency-checkout-card__hint { font-size: 14px; color: var(--ink-muted); margin-bottom: 24px; }
.ag-body .agency-checkout-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ag-body .agency-checkout-input.form-control { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); font-size: 15px; }
.ag-body .agency-checkout-input.form-control:focus { border-color: var(--focus); box-shadow: 0 0 0 3px var(--primary-soft); }
.agency-checkout-summary-wrap { top: calc(var(--nav-height) + 24px); }
.ag-body .agency-checkout-summary { padding: 0; overflow: hidden; border-radius: var(--radius-xl); }
.ag-body .agency-checkout-summary > * { margin-left: 24px; margin-right: 24px; }
.ag-body .agency-checkout-summary > .agency-checkout-card__title { margin: 0; padding: 22px 24px; background: var(--nav); color: var(--on-nav); font-size: 17px; }
.ag-body .agency-checkout-summary > .agency-checkout-card__title i { color: var(--gold); }
.ag-body .agency-checkout-summary > .agency-checkout-trip { margin-top: 24px; }
.ag-body .agency-checkout-summary > .agency-checkout-submit { margin-bottom: 24px; width: calc(100% - 48px) !important; }
.ag-body .agency-checkout-trip { background: var(--surface-sunken); border: 0; border-radius: var(--radius-lg); }
.ag-body .agency-checkout-trip__name { font-size: 17px; font-weight: 650; color: var(--ink); }
.ag-body .agency-checkout-meta__row { border-bottom: 1px dashed var(--line-strong); font-size: 14px; }
.ag-body .agency-checkout-meta__label { color: var(--ink-muted); }
.ag-body .agency-checkout-meta__value { color: var(--ink); font-weight: 650; }
.ag-body .agency-checkout-rate-row { border-bottom: 1px dashed var(--line); font-size: 15px; }
.ag-body .agency-checkout-rate-heading { color: var(--ink-muted); letter-spacing: 0.12em; }
.ag-body .agency-checkout-total { border-top: 1px dashed var(--line-strong); }
.ag-body .agency-checkout-total__label { font-size: 15px; font-weight: 600; }
.ag-body .agency-checkout-total__value { color: var(--ink); font-size: 28px; line-height: 34px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ag-body .agency-checkout-terms__text { color: var(--ink-muted); }
.ag-body .agency-checkout-terms a { color: var(--primary); }
.ag-body .agency-checkout-submit { min-height: 52px; font-size: 16px; border-radius: var(--radius-md); }
.ag-body .iti { width: 100%; }
.ag-body .iti input[type="tel"] { padding-left: 90px !important; }

/* Order confirmation / failure */
.agency-order-success .cf, .agency-order-failure .cf { padding-top: 48px; }
.cf-mark--fail .rt { animation-name: cf-draw; }
.agency-order-success .cf-ticket, .agency-order-failure .cf-ticket { margin-top: 36px; }
.cf-ref b { display: block; word-break: break-all; }
.cf-ref .ts-link { background: transparent; border: 0; cursor: pointer; padding: 0; }
.cf-ref .agency-order-success-copy.is-copied { color: var(--primary); }
.cf-acts { flex-wrap: wrap; }
.cf-reasons { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 0; list-style: none; }
.cf-reasons li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.cf-reasons .ts-i { margin-top: 2px; color: var(--accent-ink); }
.cf-reasons strong { display: block; font-weight: 650; }
.cf-reasons span { font-size: 14px; color: var(--ink-muted); }
.cf-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 1000px; margin: 40px auto 0; }
.cf-help h3 { font-size: 17px; font-weight: 650; }
.cf-help__links { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 767.98px) {
  .ag-body .agency-checkout-title, .cf h1 { font-size: 34px; line-height: 40px; }
  .ag-body .agency-checkout-card { padding: 22px 18px; }
  .cf { padding-top: 32px; }
  .cf-ticket { grid-template-columns: 1fr; }
  .cf-ticket__stub { border-left: 0; border-top: 2px dashed var(--line); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .cf-ticket::before, .cf-ticket::after { display: none; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-next { grid-template-columns: 1fr; }
}

/* Wallet */
.wl-hero__main .v { color: var(--on-nav); }
.ag-body .wl-hero .ts-btn--on-nav { color: var(--on-nav); }
.agency-wallet .wl-heading { font-size: 22px; font-weight: 650; margin: 48px 0 16px; }
.agency-wallet table.dataTable tbody td { font-variant-numeric: tabular-nums; vertical-align: middle; }
.bank-heading { font-weight: 650; color: var(--ink-muted); }
@media (max-width: 1199.98px) {
  .wl-hero { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .wl-hero__main { padding: 28px 22px; }
  .wl-hero__main .v { font-size: 44px; line-height: 50px; }
  .wl-hero__side { padding: 24px 22px; }
  .wl-hero__main .acts { flex-wrap: wrap; }
  .wl-filterbar { grid-template-columns: 1fr 1fr; }
  .wl-filterbar .reset-filters { grid-column: 1 / -1; }
}

/* Profile */
.agency-profile .pf { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.pf-nav { position: sticky; top: calc(var(--nav-height) + 24px); }
.ag-body .ts-subnav a { color: var(--ink-muted); }
.ag-body .ts-subnav a:hover { color: var(--ink); }
.ag-body .ts-subnav a.is-active { color: var(--ink); }
.pf-signout { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 14px; border: 0; background: transparent; border-radius: var(--radius-md); color: var(--ink-muted); font-weight: 600; cursor: pointer; }
.pf-signout:hover { background: var(--surface-sunken); color: var(--danger); }
.pf-main { min-width: 0; }
.pf-id h1 { font-family: var(--font-display) !important; }
.pf-id > div:nth-child(2) { min-width: 0; }
.ag-body .profile-section.pf-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; margin: 24px 0 0; }
.pf-sec__head { margin-bottom: 24px; }
.pf-sec__head h2 { font-size: 20px; font-weight: 650; line-height: 28px; margin: 0; }
.pf-sec__head p { margin: 2px 0 0; color: var(--ink-muted); font-size: 14px; }
.profile-section .form-group { margin-bottom: 20px; }
.ag-body .document-field__preview { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); }
.ag-body .document-field__preview--empty { color: var(--ink-subtle); }
.current-file-preview img { border-radius: var(--radius-sm); background: var(--surface); }
.pf-save { z-index: 20; flex-wrap: wrap; }
.ag-body .pf-save .ts-btn--on-nav { color: var(--on-nav); }
.ag-body input[type="file"].form-control { padding: 8px 12px; min-height: 48px; line-height: 30px; }
.ag-body input[type="file"]::file-selector-button { margin-right: 12px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 4px 12px; font-weight: 600; cursor: pointer; }
.other-email-row .btn { min-height: 48px; }
@media (max-width: 991.98px) {
  .agency-profile .pf { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .pf-nav { position: static; }
  .pf-nav .ts-subnav { flex-direction: row; overflow-x: auto; gap: 6px; }
  .pf-nav .ts-subnav a { white-space: nowrap; }
  .pf-nav .ts-mapline, .pf-nav form { display: none; }
  .pf-id { flex-wrap: wrap; }
  .pf-id .stat { margin-left: 0; text-align: left; }
  .ag-body .profile-section.pf-sec { padding: 22px 18px; }
  .pf-save { bottom: 76px; }
}

/* Booking history */
.bh-head { padding-top: 0; }
.booking-history .ag-page__head { margin-top: 40px; }

.booking-summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0 0 var(--space-3) !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.summary-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: transparent; border: 0; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); transition: none; }
.summary-card:first-child { border-left: 0; }
.summary-card:hover { transform: none; box-shadow: none; }
.summary-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-sunken) !important; color: var(--ink); font-size: 16px; }
.summary-card--wallet .summary-card__icon { background: var(--primary-soft) !important; color: var(--on-primary-soft); }
.summary-card--credit .summary-card__icon { background: var(--info-soft) !important; color: var(--on-info-soft); }
.summary-card--unsettled .summary-card__icon,
.summary-card--payable-due .summary-card__icon { background: var(--accent-soft) !important; color: var(--on-accent-soft); }
.summary-card--payable-credit .summary-card__icon { background: var(--primary-soft) !important; color: var(--on-primary-soft); }
.summary-card--total .summary-card__icon { background: var(--gold-soft) !important; color: var(--on-gold-soft); }
.summary-card--payable-credit, .summary-card--payable-due { background: transparent; border-color: var(--line); }
.summary-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summary-card__label { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.summary-card__value { font-size: 22px; line-height: 30px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-card__subtext { font-size: 13px; color: var(--ink-muted); }
.summary-card--unsettled .summary-card__value,
.summary-card--payable-due .summary-card__value { color: var(--accent-ink); }

.custom-filter-row { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: var(--space-3); }
.custom-filter-left { gap: 12px 16px; }
.custom-filter-left .form-group label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.custom-filter-left .form-control,
.custom-filter-left .select2-container .select2-selection--single { background-color: var(--surface); }
.custom-filter-left > div { min-width: 160px; }
.custom-filter-left .reset-filters, .custom-filter-left .download-csv { height: 48px; }
.booking-history .agency-filter-search { flex: 1 1 260px; max-width: 360px; }
.ag-body .booking-filters .form-group { margin-bottom: 0; }
.booking-filters .form-control, .booking-filters .btn { height: 48px; min-height: 48px; }
.ag-body .booking-filters .select2-container .select2-selection--multiple { display: flex !important; align-items: center; min-height: 48px; height: auto !important; padding: 4px 10px 4px 14px; border: 1px solid var(--line-strong) !important; border-radius: var(--radius-md) !important; }
.booking-filters .select2-selection--multiple .select2-search--inline { flex: 1 1 auto; }
.booking-filters .select2-selection--multiple .select2-search__field { width: 100% !important; padding: 0 !important; text-align: left; }
.booking-filters .select2-selection--multiple .select2-selection__rendered { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 !important; margin: 0; }
.booking-filters .select2-selection--multiple .select2-selection__rendered:empty { display: none !important; }
.booking-filters .select2-selection--multiple .select2-selection__choice { margin: 0 !important; }
.booking-filters .select2-selection--multiple .select2-search--inline,
.booking-filters .select2-selection--multiple .select2-search__field { margin: 0 !important; height: 36px !important; line-height: 36px; font-size: 15px; font-family: var(--font-sans); }
.booking-filters .select2-selection--multiple .select2-search__field::placeholder { color: var(--ink-subtle); }

.booking-history .container-fluid, .booking-history .ag-wide { overflow: visible; }
.booking-history #example_wrapper,
.booking-history #quotationTable_wrapper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 12px 8px; overflow-x: auto; }
.booking-history .table thead th,
.agency-wallet .table thead th {
  background: transparent !important; color: var(--ink-muted) !important;
  border-color: var(--line) !important; border-top: 0 !important;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 14px 12px;
}
.booking-history .table tbody td, .agency-wallet .table tbody td { font-size: 14px; border-color: var(--line); padding: 16px 12px; }
.booking-history .table-bordered, .agency-wallet .table-bordered { border: 0; }
.booking-history .table-bordered td, .booking-history .table-bordered th { border-left: 0; border-right: 0; }
.booking-history .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.booking-history table.dataTable tbody tr:hover > td { background: var(--surface-sunken); }
@media (max-width: 991.98px) {
  .booking-history table.dataTable th, .booking-history table.dataTable td { white-space: nowrap; }
}
.booking-history a:not(.btn):not(.ts-btn), .agency-wallet a:not(.btn):not(.ts-btn) { color: var(--primary); font-weight: 600; }
.booking-history .booking-action-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.booking-history .booking-action-cell .btn { margin: 0 !important; min-height: 32px; padding: 4px 12px; font-size: 13px; }
.booking-history .btn-sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--nav) !important; border-color: var(--nav) !important; color: var(--on-nav) !important; border-radius: var(--radius-md); }
.dataTables_wrapper .dataTables_length select { width: auto; min-height: 36px; padding: 4px 32px 4px 12px; display: inline-block; }
.dataTables_info { color: var(--ink-muted); font-size: 14px; }

/* DataTables footer (global): length + bootstrap pagination */
.dataTables_wrapper > .row:last-child { align-items: center; margin-top: 12px; row-gap: 8px; }
.dataTables_wrapper .dataTables_length label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.dataTables_wrapper .dataTables_paginate .pagination { margin: 0; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dataTables_wrapper .dataTables_paginate .pagination li { margin: 0; }
.dataTables_wrapper .dataTables_paginate .page-item .page-link {
  width: auto; min-width: 36px; height: 36px; padding: 0 12px; margin: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line) !important; border-radius: var(--radius-md); box-shadow: none;
  background: var(--surface) !important; color: var(--ink) !important;
  font-family: inherit; font-size: 14px; font-weight: 600;
}
.dataTables_wrapper .dataTables_paginate .page-item .page-link:hover { background: var(--surface-sunken) !important; }
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link { background: var(--nav) !important; border-color: var(--nav) !important; color: var(--on-nav) !important; }
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link { opacity: .5; pointer-events: none; }
@media (max-width: 767.98px) {
  .dataTables_wrapper .dataTables_paginate .pagination { justify-content: center; }
}
.ag-body .booking-history .badge.rounded-pill { border-radius: var(--radius-pill); }
.booking-history .dataTables_wrapper { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }

/* Table/action buttons emitted by the server (btn-black / btn-gray) */
.ag-body .btn-black, .ag-body .btn-gray {
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); box-shadow: none;
  min-height: 36px; padding: 6px 14px; font-size: 14px;
}
.ag-body .btn-black:hover, .ag-body .btn-gray:hover { background: var(--surface-sunken); border-color: var(--line-strong); color: var(--ink); }
.ag-body .btn-black.bg-info { background: var(--info-soft) !important; border-color: transparent; color: var(--on-info-soft) !important; }
.ag-body .btn-black.bg-secondary { background: var(--surface-sunken) !important; border-color: var(--line-strong); color: var(--ink) !important; }
.ag-body .btn-black-lg { background: var(--primary); }

.taxi-item { background: var(--surface-sunken); border-radius: var(--radius-md); }
.taxi-item .taxi-name, .taxi-item .taxi-price .amount { color: var(--ink); }
.quantity-selector { border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.quantity-selector .btn-minus, .quantity-selector .btn-plus { background: var(--surface); color: var(--ink); }
.quantity-selector .btn-minus:hover, .quantity-selector .btn-plus:hover { background: var(--surface-sunken); }
.border-accent { border-left-color: var(--accent, var(--primary)) !important; }

@media (max-width: 991.98px) {
  .booking-summary-cards { grid-template-columns: repeat(2, 1fr); }
  .summary-card:nth-child(odd) { border-left: 0; }
  .summary-card { border-top: 1px solid var(--line); }
  .summary-card:nth-child(-n+2) { border-top: 0; }
  .booking-history .ag-page__head { margin-top: 24px; }
}
@media (max-width: 575.98px) {
  .booking-summary-cards { grid-template-columns: 1fr; }
  .summary-card, .summary-card:nth-child(-n+2) { border-left: 0; border-top: 1px solid var(--line); }
  .summary-card:first-child { border-top: 0; }
}

/* Contact */
.ag-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ag-contact__form h2 { font-size: 22px; line-height: 30px; font-weight: 650; }
.ag-contact__side { display: flex; flex-direction: column; gap: 16px; }
.ag-contact__card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; color: var(--ink); text-decoration: none; transition: border-color var(--duration-fast), box-shadow var(--duration-base); }
a.ag-contact__card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.ag-contact__card strong { display: block; font-size: 17px; font-weight: 650; }
.ag-contact__card span:not(.ts-fact__ico) { display: block; font-size: 14px; color: var(--ink-muted); }
.ag-contact__card em { display: block; margin-top: 8px; font-style: normal; font-weight: 650; color: var(--primary); word-break: break-word; }
@media (max-width: 991.98px) { .ag-contact { grid-template-columns: 1fr; } }

/* Counter size variants */
.ag-body .agency-counter--sm { height: 40px; }
.ag-body .agency-counter--sm .btn-counter { width: 30px; height: 30px; font-size: 18px; }
.ag-body .agency-counter--sm input.form-control,
.ag-body .agency-counter--sm input.counter-input { width: 34px; font-size: 15px; }
.ag-body .agency-counter.agency-counter--xl,
.ag-body .agency-counter.agency-counter--full { display: flex; width: 100%; }
.ag-body .agency-counter--xl input.form-control,
.ag-body .agency-counter--full input.form-control,
.ag-body .agency-counter--xl input.counter-input,
.ag-body .agency-counter--full input.counter-input { flex: 1 1 0; width: auto; }

/* Heading sizes inside design-system surfaces (legacy template sets large defaults) */
.ag-body .ts-panel h3, .ag-body .ts-banner h3, .ag-body .ts-well h3 { font-size: 17px; line-height: 24px; font-weight: 650; margin: 0; }
.ag-body .ts-panel h2, .ag-body .ag-contact__form h2 { font-size: 22px; line-height: 30px; font-weight: 650; }
.ag-body .ts-panel p, .ag-body .ts-banner p { margin-bottom: 0; }
.ag-body .ts-section-head h3 { font-size: 20px; line-height: 28px; font-weight: 650; }

/* Out-rank Bootstrap's .btn.btn-* compound selectors */
.ag-body .btn.btn-danger, .ag-body .btn.btn-outline-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.ag-body .btn.btn-danger:hover, .ag-body .btn.btn-outline-danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.ag-body .btn.btn-success, .ag-body .btn.btn-outline-success { background: var(--primary-soft); border-color: var(--primary); color: var(--on-primary-soft); }
.ag-body .btn.btn-success:hover, .ag-body .btn.btn-outline-success:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ag-body .btn.btn-secondary, .ag-body .btn.btn-light, .ag-body .btn.btn-default { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.ag-body .btn.btn-secondary:hover, .ag-body .btn.btn-light:hover, .ag-body .btn.btn-default:hover { background: var(--surface-sunken); color: var(--ink); }
.ag-body .btn.btn-primary, .ag-body .btn.btn-dark, .ag-body .btn.btn-info { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ag-body .btn.btn-primary:hover, .ag-body .btn.btn-dark:hover, .ag-body .btn.btn-info:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.ag-body .btn.btn-outline-dark { background: var(--surface); border-color: var(--line-strong) !important; color: var(--ink) !important; }
.ag-body .btn.btn-outline-dark:hover { background: var(--surface-sunken) !important; color: var(--ink) !important; }
.ag-body .btn-check:checked + .btn.btn-outline-dark,
.ag-body .btn-check:checked + .btn.btn-outline-dark:hover { background: var(--nav) !important; border-color: var(--nav) !important; color: var(--on-nav) !important; }

@media (max-width: 767.98px) {
  .ts-section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
  .ts-section-head h2 { font-size: 26px; line-height: 32px; }
  .ts-section-head .ts-mapline { display: none; }
  .db-routeart { width: 140px; height: 74px; opacity: 0.45; right: -16px; top: 16px; }
  .db-launch .ts-launch { min-height: 200px; padding: 22px; }
  .ts-launch__title { font-size: 26px; line-height: 32px; }
  .ag-body .ts-container { padding-left: 16px; padding-right: 16px; }
  .ag-body .ts-container.container { padding-left: 16px; padding-right: 16px; }
}

/* Hotel/place autocomplete dropdown */
.ag-body .hotel-place-search-dropdown { background: var(--surface) !important; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2) !important; padding: var(--space-1); max-height: 280px; overflow-y: auto; z-index: 3000; }
.ag-body .hotel-place-search-dropdown .list-group-item { border: 0; border-radius: var(--radius-md); padding: 10px 12px; cursor: pointer; background: transparent; }
.ag-body .hotel-place-search-dropdown .list-group-item:hover { background: var(--surface-sunken); }
.hotel-place-search-dropdown .hotel-place-main-text { color: var(--ink); font-weight: 600; font-size: 15px; }
.hotel-place-search-dropdown .hotel-place-secondary-text { color: var(--ink-muted); font-size: 13px; }
/* Google places autocomplete */
.pac-container { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-family: var(--font-sans); margin-top: 6px; }
.pac-item { padding: 8px 12px; color: var(--ink-muted); border-top: 1px solid var(--line); }
.pac-item:hover, .pac-item-selected { background: var(--surface-sunken); }
.pac-item-query { color: var(--ink); font-weight: 600; }

/* Page reset (login has no legacy stylesheet to do this) */
html, body.ts { margin: 0; padding: 0; }
body.ts.ag-body { margin: 0; }
.ag-login { margin: 0; width: 100%; }

/* Browser autofill must not tint design-system controls */
.ag-body .ts-control input:-webkit-autofill,
.ag-body .ts-control input:-webkit-autofill:hover,
.ag-body .ts-control input:-webkit-autofill:focus,
.ag-body input.form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  border-radius: 0;
}

/* Select2: clear button next to the arrow, chevron arrow, single focus ring */
.ag-body .select2-container--default .select2-selection--single {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px !important;
  padding: 0;
}
.ag-body .select2-container--default .select2-selection--single .select2-selection__rendered {
  display: block;
  flex: 1;
  position: static;
  padding: 0 64px 0 14px !important;
  line-height: 46px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-body .select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  float: none;
  margin: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}
.ag-body .select2-container--default .select2-selection--single .select2-selection__clear:hover { background: var(--surface-sunken); color: var(--ink); }
.ag-body .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 100% !important;
}
.ag-body .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border: 0;
  position: absolute;
  inset: 0;
  margin: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f5b6d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ag-body .select2-container--default.select2-container--open .select2-selection__arrow b { transform: rotate(180deg); }
.ag-body .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ink-subtle); }
/* the focus ring is drawn once, by the selection box itself */
.ag-body .select2-container--default.select2-container--focus .select2-selection--single,
.ag-body .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--focus); box-shadow: 0 0 0 3px var(--primary-soft); outline: 0; }
.ag-body .select2-container:focus, .ag-body .select2-container *:focus { outline: 0; }
.select2-container--default .select2-results__option { border-radius: var(--radius-sm); margin: 2px 6px; }
.select2-container--default .select2-results > .select2-results__options { padding: 4px 0; }
.ag-body .select2-container--default .select2-selection--single .select2-selection__arrow b {
  left: 0; top: 0; width: 100%; height: 100%; margin: 0;
}

/* Inputs with an icon inside the field (must beat the global input padding) */
.ag-body .taxi-vehicle-search .form-control,
.ag-body .taxi-vehicle-search input[type="search"] { padding-left: 42px !important; }
.taxi-vehicle-search { min-width: 260px; }
.taxi-vehicle-search i { left: 16px; font-size: 14px; z-index: 2; }

/* Bootstrap input groups (prefix + field) keep one joined box */
.ag-body .input-group { display: flex; flex-wrap: nowrap; align-items: stretch; width: 100%; }
.ag-body .input-group:not(.agency-counter) > .form-control,
.ag-body .input-group:not(.agency-counter) > input[type="search"],
.ag-body .input-group:not(.agency-counter) > input[type="text"] { flex: 1 1 auto; width: 1% !important; min-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ag-body .input-group > .input-group-text,
.ag-body .input-group-prepend .input-group-text {
  display: flex; align-items: center; padding: 0 14px; background: var(--surface-sunken) !important;
  border: 1px solid var(--line-strong); border-right: 0; color: var(--ink-muted);
  border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md);
}
.ag-body .input-group-sm > .form-control, .ag-body .input-group-sm > .input-group-text { min-height: 40px; font-size: 14px; }
.ss-package-search-section { max-width: 320px; }

/* ---- Checkbox & radio: one style everywhere ---- */
.ag-body .form-check { display: flex; align-items: flex-start; gap: 10px; padding-left: 0 !important; margin: 0; min-height: 0; }
.ag-body .form-check .form-check-input { float: none !important; margin: 2px 0 0 !important; }
.ag-body .form-check-label { margin: 0; cursor: pointer; line-height: 24px; font-size: 15px; color: var(--ink); }

.ag-body input[type="checkbox"]:not(.d-none):not(.btn-check):not(.ex-activity-checkbox):not(.ts-switch-input):not(#add_taxi_toggle),
.ag-body input[type="radio"]:not(.d-none):not(.btn-check):not(.taxi-type-radio) {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  display: inline-grid;
  place-content: center;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  vertical-align: middle;
  background: var(--surface) !important;
  border: 1.5px solid var(--line-strong) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.ag-body input[type="radio"]:not(.d-none):not(.btn-check):not(.taxi-type-radio) { border-radius: 50% !important; }
.ag-body input[type="checkbox"]:not(.d-none):not(.btn-check):not(.ex-activity-checkbox):not(#add_taxi_toggle):hover,
.ag-body input[type="radio"]:not(.d-none):not(.btn-check):not(.taxi-type-radio):hover { border-color: var(--ink-muted) !important; }
.ag-body input[type="checkbox"]:not(.d-none):not(.btn-check):not(.ex-activity-checkbox):not(#add_taxi_toggle):checked {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px !important;
}
.ag-body input[type="radio"]:not(.d-none):not(.btn-check):not(.taxi-type-radio):checked {
  border-color: var(--primary) !important;
  background: radial-gradient(circle, var(--primary) 0 42%, var(--surface) 46%) !important;
}
.ag-body input[type="checkbox"]:not(.d-none):not(.btn-check):not(.ex-activity-checkbox):not(#add_taxi_toggle):focus-visible,
.ag-body input[type="radio"]:not(.d-none):not(.btn-check):not(.taxi-type-radio):focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--primary-soft) !important; border-color: var(--focus) !important; }
.ag-body input[type="checkbox"]:disabled, .ag-body input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }

/* Terms rows (taxi terms modal footer, checkout) */
#termsConditionModal .modal-footer { align-items: center; gap: 16px; flex-wrap: wrap; }
#termsConditionModal .form-check { flex: 1 1 280px; align-items: center; }
#termsConditionModal .modal-body { padding: 24px 28px; }
.ag-body .agency-checkout-terms__label { gap: 12px; }

/* Wizard Back button */
.ag-body .agency-taxi-page .btn.btn-light.taxi-wizard-back {
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: var(--radius-md); padding: 10px 20px; min-height: 52px; font-weight: 600;
}
.ag-body .agency-taxi-page .btn.btn-light.taxi-wizard-back:hover { background: var(--surface-sunken); color: var(--ink); }

/* Company logo (image from settings). Dark artwork sits on a cream chip in the dark header. */
.ag-logo { display: inline-flex; align-items: center; flex: none; height: 46px; padding: 0 16px; background: var(--surface); border-radius: var(--radius-md); line-height: 0; }
.ag-logo img { display: block; height: auto; max-height: 30px; width: auto; max-width: 170px; object-fit: contain; }
.ag-logo--plain { height: auto; padding: 0; background: transparent; border-radius: 0; }
.ag-logo--plain img { max-height: 34px; }
.ag-logo--lg { height: 56px; padding: 0 20px; border-radius: var(--radius-lg); }
.ag-logo--lg img { max-height: 38px; max-width: 210px; }
.ag-login__mark.ag-logo { display: none; margin-bottom: var(--space-2); }
@media (max-width: 860px) { .ag-login__mark.ag-logo { display: inline-flex; } }
@media (max-width: 991.98px) {
  .ag-nav .ag-logo { height: 40px; padding: 0 12px; }
  .ag-nav .ag-logo img { max-height: 24px; max-width: 130px; }
}
.ag-login__brand .ag-logo { align-self: flex-start; }
.ag-login__card .ag-logo { align-self: flex-start; }

/* No underlines on links/buttons (Bootstrap 4's a:hover underline would otherwise win) */
.ag-body a,
.ag-body a:hover,
.ag-body a:focus,
.ag-body a:active { text-decoration: none; }
/* ...except where an underline is part of the design */
.ag-body a.ts-link:hover,
.ag-body .xd-rich a,
.ag-body .sightseeing-package-card .view-more-inclusions:hover,
.ag-body .taxi-features-link:hover,
.ag-body .ts-section-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ag-body .xd-rich a { text-decoration: underline; }
