/* ===========================================================
   Via Ciao — travel agency design system
   =========================================================== */

:root {
  --vc-navy: #0a2540;
  --vc-navy-2: #123a6b;
  --vc-blue: #1668e3;
  --vc-blue-dark: #0f4faa;
  --vc-sky: #e8f1fe;
  --vc-coral: #ff7a45;
  --vc-amber: #ffb020;
  --vc-teal: #12b5a5;
  --vc-ink: #10203a;
  --vc-muted: #64748b;
  --vc-bg: #f4f7fb;
  --vc-border: #e6ecf5;

  --vc-radius: 16px;
  --vc-radius-sm: 10px;
  --vc-shadow: 0 2px 8px rgba(10, 37, 64, .06), 0 14px 30px -16px rgba(10, 37, 64, .18);
  --vc-shadow-lift: 0 6px 16px rgba(10, 37, 64, .10), 0 22px 44px -20px rgba(10, 37, 64, .28);

  --bs-primary: var(--vc-blue);
}

body {
  background-color: var(--vc-bg);
  color: var(--vc-ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Plus Jakarta Sans has no Arabic glyphs, so Arabic falls back to a system font
   and stops matching the design. Put an Arabic face first when the page is RTL;
   Latin text (hotel names, flight codes) still uses Jakarta. */
[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
}

/* Arabic sits lower and reads better with a little more line height */
[dir="rtl"] {
  line-height: 1.7;
}

/* Icons that point somewhere must follow the reading direction */
[dir="rtl"] .bi-arrow-right-short,
[dir="rtl"] .bi-chevron-right,
[dir="rtl"] .bi-box-arrow-up-right {
  display: inline-block;
  transform: scaleX(-1);
}

h1, h2, h3, .fw-semibold, .fw-bold {
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
}

.text-muted {
  color: var(--vc-muted) !important;
}

/* ---------- Navbar ---------- */

.vc-navbar {
  background: rgba(10, 37, 64, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.vc-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.vc-navbar .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-teal));
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 4px 12px rgba(22, 104, 227, .45);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .92);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.lang-toggle:hover,
.lang-toggle:focus {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

@media (max-width: 575.98px) {
  .lang-toggle {
    padding: .32rem .6rem;
    font-size: .78rem;
  }
}

.agency-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-inline-end: auto;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-chip i {
  opacity: .7;
  flex-shrink: 0;
}

a.agency-chip {
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease;
}

a.agency-chip:hover,
a.agency-chip:focus {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

.agency-chip .chip-caret {
  font-size: .7rem;
  opacity: .55;
}

.agency-chip.dropdown-toggle::after {
  display: none; /* using our own chevron icon instead of Bootstrap's caret */
}

.dropdown-menu {
  border-radius: var(--vc-radius-sm);
  border-color: var(--vc-border);
  box-shadow: var(--vc-shadow-lift);
  padding: .4rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  border-radius: 8px;
  padding: .55rem .7rem;
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--vc-sky);
}

.plan-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border-radius: 999px;
  line-height: 1;
}
.plan-economy { background: rgba(255,255,255,.18); color: #fff; }
.plan-business { background: #f0ad4e; color: #1a1a1a; }
.plan-first_class { background: #d4af37; color: #1a1a1a; }

@media (max-width: 575.98px) {
  .agency-chip {
    font-size: .75rem;
    padding: .25rem .55rem;
    max-width: 38vw;
  }
}

.vc-navbar .nav-link {
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  border-radius: 8px;
  padding-inline: .75rem;
}

.vc-navbar .nav-link:hover,
.vc-navbar .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.vc-navbar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 -2px 0 var(--vc-teal);
}

/* marks a link that leaves the admin area for the public site */
.nav-ext {
  font-size: .65rem;
  opacity: .55;
  vertical-align: 1px;
}

/* ---------- Buttons ---------- */

.btn, .form-control, .form-select {
  min-height: 44px;
}

.btn-sm,
.form-select-sm,
.form-control-sm {
  min-height: 36px;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--vc-blue);
  border-color: var(--vc-blue);
  box-shadow: 0 6px 16px -6px rgba(22, 104, 227, .6);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--vc-blue-dark);
  border-color: var(--vc-blue-dark);
}

.btn-outline-primary {
  color: var(--vc-blue);
  border-color: #c3d9f8;
}

.btn-outline-primary:hover {
  background: var(--vc-blue);
  border-color: var(--vc-blue);
}

.btn-accent {
  background: var(--vc-coral);
  border-color: var(--vc-coral);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(255, 122, 69, .7);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: #ef6a31;
  border-color: #ef6a31;
  color: #fff;
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
  background: #fff;
}

.card-hover {
  transition: transform .16s ease, box-shadow .16s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--vc-shadow-lift);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(1100px 380px at 88% -10%, rgba(255, 122, 69, .38), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(18, 181, 165, .34), transparent 60%),
    linear-gradient(135deg, var(--vc-navy) 0%, var(--vc-navy-2) 52%, var(--vc-blue) 100%);
  box-shadow: 0 24px 60px -28px rgba(10, 37, 64, .8);
}

.hero > * {
  position: relative;
  z-index: 2;
}

/* dotted flight path + plane */
.hero-path {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .5;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .38rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero .lead {
  color: rgba(255, 255, 255, .84);
}

/* ---------- Section headings ---------- */

.section-eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vc-blue);
}

/* ---------- Step / feature cards ---------- */

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-navy-2));
  box-shadow: 0 8px 18px -8px rgba(22, 104, 227, .8);
}

.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.35rem;
  background: var(--vc-sky);
  color: var(--vc-blue);
}

.icon-chip.coral { background: #fff0e9; color: #e2571f; }
.icon-chip.teal  { background: #e2f8f5; color: #0d8e82; }
.icon-chip.amber { background: #fff6e2; color: #b8781a; }

/* ---------- Stat tiles ---------- */

.stat-tile {
  position: relative;
  border-radius: var(--vc-radius);
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow);
  overflow: hidden;
  height: 100%;
}

/* logical properties throughout, so the layout mirrors itself under dir="rtl" */
.stat-tile::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--vc-blue);
}

.stat-tile.t-coral::after { background: var(--vc-coral); }
.stat-tile.t-teal::after  { background: var(--vc-teal); }
.stat-tile.t-amber::after { background: var(--vc-amber); }

.stat-link {
  display: block;
  height: 100%;
  color: inherit;
}

.stat-link:hover {
  color: inherit;
}

.stat-link .stat-label i {
  vertical-align: -2px;
  opacity: 0;
  transition: opacity .15s ease;
}

.stat-link:hover .stat-label i {
  opacity: 1;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-value.is-zero {
  color: var(--vc-muted);
}

.stat-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--vc-muted);
}

/* ---------- Departure board (today's flights) ---------- */

.board {
  border-radius: var(--vc-radius);
  background: linear-gradient(160deg, #0a2540, #0e3260);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 40px -24px rgba(10, 37, 64, .9);
  overflow: hidden;
}

.board-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.board-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.board-sub {
  color: rgba(255, 255, 255, .62);
  font-size: .85rem;
}

.board table {
  color: #fff;
  margin: 0;
}

.board thead th {
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  border-color: rgba(255, 255, 255, .12);
  background: transparent;
}

.board tbody td {
  border-color: rgba(255, 255, 255, .09);
  background: transparent;
  color: rgba(255, 255, 255, .92);
  vertical-align: middle;
}

.board a {
  color: #9ec5ff;
}

.board .flight-code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: .06em;
}

.board .btn-outline-light {
  border-color: rgba(255, 255, 255, .35);
}

/* ---------- Status pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-ontime   { background: rgba(18, 181, 165, .18); color: #16d3c0; }
.pill-delayed  { background: rgba(255, 90, 90, .18);  color: #ff8080; }
.pill-cancel   { background: rgba(255, 255, 255, .14); color: #cbd5e1; }
.pill-landed   { background: rgba(148, 163, 184, .2); color: #cbd5e1; }
.pill-unknown  { background: rgba(255, 255, 255, .1);  color: #94a3b8; }

.pill-light.pill-soon { background: var(--vc-sky); color: var(--vc-blue-dark); }

/* light-surface variants for use outside the board */
.pill-light.pill-ontime  { background: #e2f8f5; color: #0d8e82; }
.pill-light.pill-delayed { background: #ffe8e8; color: #d13d3d; }
.pill-light.pill-cancel  { background: #eef2f7; color: #475569; }
.pill-light.pill-landed  { background: #eef2f7; color: #475569; }
.pill-light.pill-unknown { background: #f1f5f9; color: #64748b; }

/* ---------- Trip card (boarding-pass feel) ---------- */

.trip-card {
  position: relative;
  border-radius: var(--vc-radius);
  background: #fff;
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform .16s ease, box-shadow .16s ease;
}

.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vc-shadow-lift);
}

.trip-card .trip-strip {
  height: 5px;
  background: linear-gradient(90deg, var(--vc-blue), var(--vc-teal));
}

.trip-card.is-upcoming .trip-strip {
  background: linear-gradient(90deg, var(--vc-navy-2), var(--vc-blue));
}

.trip-route {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--vc-muted);
  font-size: .85rem;
}

.trip-route .route-line {
  flex: 1;
  height: 1px;
  border-top: 2px dotted #cbd5e1;
}

.avatar-initials {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--vc-blue);
  background: var(--vc-sky);
  flex-shrink: 0;
}

/* ---------- Location cards ---------- */

.location-card img,
.location-card .img-placeholder {
  height: 170px;
  object-fit: cover;
  width: 100%;
  border-radius: calc(var(--vc-radius) - 1px) calc(var(--vc-radius) - 1px) 0 0;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3fa, #dfe8f4);
  font-size: 2.5rem;
  color: #9db2cd;
}

.category-badge {
  font-weight: 600;
  letter-spacing: .03em;
}

.category-badge.hotel { background-color: #6f42c1; }
.category-badge.restaurant { background-color: #fd7e14; }
.category-badge.sightseeing { background-color: #198754; }

/* ---------- Grid cards: pin actions to the bottom ----------
   Cards in a row carry different amounts of text (long names, missing
   descriptions), so the padded body stretches and the action row is pushed
   down — buttons then line up across the row whatever the content. */

.location-card,
.deal-card,
.trip-card {
  display: flex;
  flex-direction: column;
}

.location-card > .p-3,
.deal-card > .p-3,
.trip-card > .p-3 {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.card-actions {
  margin-top: auto;
  padding-top: .75rem;
}

/* Long, unbroken names must wrap instead of stretching the card. */
.card-name {
  overflow-wrap: anywhere;
}

.card-actions .btn {
  white-space: nowrap;
}

/* ---------- Section count chip ---------- */

.count-chip {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 .5rem;
  border-radius: 999px;
  background: #eaf1fa;
  color: var(--vc-muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Public agency page ---------- */

.ag-hero {
  background:
    radial-gradient(900px 340px at 90% -20%, rgba(18, 181, 165, .42), transparent 60%),
    radial-gradient(700px 400px at 0% 115%, rgba(255, 122, 69, .38), transparent 60%),
    linear-gradient(145deg, var(--vc-navy) 0%, var(--vc-navy-2) 50%, #1257bd 100%);
}

.ag-deal .ag-deal-facts {
  font-size: .85rem;
  color: var(--vc-muted);
  display: grid;
  gap: .15rem;
}

.ag-deal .ag-deal-facts i {
  color: var(--vc-blue);
  width: 1.1em;
}

.ag-contact-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vc-muted);
}

/* ---------- Public link (admin) ---------- */

.public-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: var(--vc-sky);
  border: 1px solid #d5e4fa;
  color: var(--vc-blue-dark);
  font-size: .82rem;
  font-weight: 600;
}

.public-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-link:hover {
  background: #dbe9fd;
  color: var(--vc-blue-dark);
}

/* ---------- Manage Destinations ---------- */

.dest-step {
  height: 100%;
  border-radius: var(--vc-radius);
  background: #fff;
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow);
  padding: 1.1rem;
}

.dest-step-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: .85rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--vc-border);
}

.dest-list {
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: .5rem;
}

.dest-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: var(--vc-radius-sm);
  padding-inline-start: .25rem;
}

.dest-item:hover {
  background: var(--vc-sky);
}

.dest-item.is-selected {
  background: var(--vc-sky);
  box-shadow: inset 3px 0 0 var(--vc-blue);
}

[dir="rtl"] .dest-item.is-selected {
  box-shadow: inset -3px 0 0 var(--vc-blue);
}

.dest-item-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .5rem;
  color: var(--vc-ink);
  min-width: 0;
}

.dest-item-link:hover {
  color: var(--vc-blue-dark);
}

.dest-tag {
  flex-shrink: 0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--vc-muted);
}

.dest-tag.is-own {
  background: #e2f8f5;
  color: #0d8e82;
}

.dest-add {
  border-top: 1px dashed var(--vc-border);
  padding-top: .85rem;
  margin-top: .25rem;
}

/* ---------- Agency details card ---------- */

.agency-card {
  border-radius: var(--vc-radius);
  background: #fff;
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow);
  padding: 1rem 1.15rem;
}

.agency-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}

.agency-facts i {
  opacity: .7;
}

/* ---------- Trip deals + WhatsApp send ---------- */

.internal-note {
  border-radius: var(--vc-radius-sm);
  background: #fffbeb;
  border: 1px dashed #f0d9a0;
  color: #7a5c15;
  font-size: .82rem;
  padding: .5rem .7rem;
  white-space: pre-line;
}

.internal-note-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: .15rem;
}

.deal-card {
  border-radius: var(--vc-radius);
  background: #fff;
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform .16s ease, box-shadow .16s ease;
}

.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vc-shadow-lift);
}

.deal-card .deal-strip {
  height: 5px;
  background: linear-gradient(90deg, var(--vc-coral), var(--vc-amber));
}

.deal-card.is-past {
  opacity: .65;
}

.deal-card.is-past .deal-strip {
  background: #cbd5e1;
}

.btn-wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(37, 211, 102, .7);
}

.btn-wa:hover,
.btn-wa:focus {
  background: #1eb857;
  border-color: #1eb857;
  color: #fff;
}

.btn-wa:disabled {
  background: #a8e5c0;
  border-color: #a8e5c0;
  color: #fff;
}

/* WhatsApp-style message preview */
.wa-screen {
  border-radius: var(--vc-radius);
  background: #e5ddd5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' opacity='.05'%3E%3Cpath d='M30 10l4 8 8 1-6 6 2 9-8-4-8 4 2-9-6-6 8-1z'/%3E%3C/svg%3E");
  border: 1px solid var(--vc-border);
}

.wa-bubble {
  background: #dcf8c6;
  border-radius: 10px 10px 10px 2px;
  padding: .7rem .85rem;
  font-size: .9rem;
  white-space: pre-line;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
  color: #1f2a1f;
}

.wa-meta {
  font-size: .7rem;
  color: #7d8a7d;
  text-align: end;
  margin-top: .35rem;
}

/* channel picker (WhatsApp / SMS) */
.channel-option {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: var(--vc-radius-sm);
  border: 1px solid var(--vc-border);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}

.channel-option:hover {
  background: var(--vc-sky);
}

.channel-option:has(input:checked) {
  border-color: var(--vc-blue);
  background: var(--vc-sky);
  color: var(--vc-blue-dark);
}

.channel-option.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  background: #f8fafc;
}

.channel-note {
  font-size: .72rem;
  font-weight: 600;
  color: var(--vc-muted);
}

/* SMS preview — plain phone message, no chat wallpaper */
.sms-screen {
  border-radius: var(--vc-radius);
  background: #f1f5f9;
  border: 1px solid var(--vc-border);
}

.sms-bubble {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px 10px 10px 2px;
  padding: .7rem .85rem;
  font-size: .9rem;
  white-space: pre-line;
  color: var(--vc-ink);
}

.sms-meta {
  font-size: .7rem;
  color: var(--vc-muted);
  text-align: end;
  margin-top: .35rem;
}

/* recipient checklist */
.deal-recipients {
  max-height: 380px;
  overflow-y: auto;
}

.deal-recipient {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .35rem;
  border-radius: var(--vc-radius-sm);
  cursor: pointer;
  transition: background-color .12s ease;
}

.deal-recipient:hover {
  background: var(--vc-sky);
}

.deal-recipient.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}

.deal-recipient .form-check-input {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* ---------- Empty states ---------- */

.empty-state {
  border: 1px dashed #cfdcec;
  border-radius: var(--vc-radius);
  background: #fbfdff;
  color: var(--vc-muted);
  padding: 2.25rem 1rem;
  text-align: center;
}

.empty-state i {
  color: #a9bed8;
}

/* ===========================================================
   Public trip page (customer-facing itinerary)
   =========================================================== */

.tp-nav-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .9);
  font-size: .8rem;
  font-weight: 600;
}

/* ----- Hero ----- */

.tp-hero {
  background:
    radial-gradient(900px 340px at 85% -20%, rgba(255, 176, 32, .45), transparent 60%),
    radial-gradient(700px 420px at 0% 115%, rgba(18, 181, 165, .38), transparent 60%),
    linear-gradient(150deg, var(--vc-navy) 0%, var(--vc-navy-2) 45%, #1257bd 100%);
}

.tp-destination {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

.tp-destination i {
  color: var(--vc-amber);
}

.tp-countdown {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  background: rgba(255, 122, 69, .92);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(255, 122, 69, .9);
}

.tp-countdown.is-traveling {
  background: rgba(18, 181, 165, .92);
  box-shadow: 0 8px 20px -8px rgba(18, 181, 165, .9);
}

.tp-countdown.is-done {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: none;
}

/* boarding-pass facts strip */
.tp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  max-width: 640px;
}

.tp-fact {
  background: rgba(10, 37, 64, .5);
  padding: .65rem .95rem;
  backdrop-filter: blur(4px);
}

.tp-fact-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.tp-fact-value {
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  white-space: nowrap;
}

.tp-fact-icon {
  font-size: .8rem;
  color: var(--vc-amber);
}

/* ----- Postcard note ----- */

.tp-postcard {
  position: relative;
  background: #fffdf7;
  border: 1px solid #f0e6d2;
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
  padding: 1rem 1.15rem;
}

.tp-postcard::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-start-end-radius: 4px;
  border-end-end-radius: 4px;
  background: linear-gradient(180deg, var(--vc-coral), var(--vc-amber));
}

.tp-postcard-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .4rem;
}

.tp-stamp {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff0e9;
  color: #e2571f;
  border: 1px dashed #f3c9b2;
  font-size: 1rem;
}

/* ----- Section headings ----- */

.tp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 1.75rem 0 1rem;
}

.tp-section-head h2 i {
  color: var(--vc-blue);
  margin-inline-end: .25rem;
}

/* ----- Flight boarding cards ----- */

.tp-boarding {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
  overflow: hidden;
}

.tp-boarding-main {
  flex: 1;
  padding: .9rem 1.05rem;
  min-width: 0;
}

.tp-boarding .flight-code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--vc-navy);
}

.tp-boarding-route {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .2rem;
  color: var(--vc-muted);
  font-size: .9rem;
  min-width: 0;
}

.tp-boarding-route .route-line {
  flex: 0 1 34px;
  border-top: 2px dotted #cbd5e1;
}

.tp-route-plane {
  color: var(--vc-blue);
  flex-shrink: 0;
}

/* perforated ticket stub */
.tp-boarding-stub {
  display: grid;
  place-items: center;
  padding: .9rem;
  border-inline-start: 2px dashed var(--vc-border);
  background: #fbfdff;
  position: relative;
}

.tp-boarding-stub::before,
.tp-boarding-stub::after {
  content: "";
  position: absolute;
  inset-inline-start: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--vc-bg);
  border: 1px solid var(--vc-border);
}

.tp-boarding-stub::before { top: -8px; }
.tp-boarding-stub::after  { bottom: -8px; }

/* ----- Location cards ----- */

.tp-loc {
  border-top: 3px solid transparent;
}

.tp-loc-hotel       { border-top-color: #6f42c1; }
.tp-loc-restaurant  { border-top-color: var(--vc-coral); }
.tp-loc-sightseeing { border-top-color: var(--vc-teal); }

.tp-loc img,
.tp-loc .img-placeholder {
  border-radius: calc(var(--vc-radius) - 4px) calc(var(--vc-radius) - 4px) 0 0;
}

.tp-tip {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .85rem;
  padding: .55rem .75rem;
  border-radius: var(--vc-radius-sm);
  background: var(--vc-sky);
  color: var(--vc-navy-2);
}

.tp-tip i {
  color: var(--vc-amber);
  margin-top: .1rem;
  flex-shrink: 0;
}

/* ----- Sign-off ----- */

.tp-signoff-line {
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: center;
  color: #b9c9de;
}

.tp-signoff-line span {
  width: 72px;
  border-top: 2px dotted #cbd5e1;
}

@media (max-width: 575.98px) {
  .tp-hero h1 {
    font-size: 1.85rem;
  }
  .tp-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .tp-fact-value {
    font-size: .88rem;
  }
}

/* ---------- Footer ---------- */

.vc-footer {
  border-top: 1px solid var(--vc-border);
  margin-top: 2rem;
}

/* ---------- Mobile: stack table rows as cards ---------- */

@media (max-width: 767.98px) {
  .table-responsive-stack thead {
    display: none;
  }
  .table-responsive-stack tr {
    display: block;
    margin-bottom: .75rem;
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius-sm);
    padding: .5rem .75rem;
    background: #fff;
  }
  .table-responsive-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: .4rem 0;
  }
  .table-responsive-stack td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--vc-muted);
    margin-inline-end: 1rem;
    font-size: .8rem;
  }

  /* keep the departure board dark when rows stack */
  .board .table-responsive-stack tr {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
  }
  .board .table-responsive-stack td::before {
    color: rgba(255, 255, 255, .55);
  }

  .hero {
    border-radius: 18px;
  }
  .stat-value {
    font-size: 1.55rem;
  }
}

/* ---------- Getting Started wizard ---------- */

.wizard-wrap {
  max-width: 720px;
  margin-inline: auto;
}

.wizard-steps {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
}

.wizard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vc-border);
  transition: background-color .15s ease, transform .15s ease;
}

.wizard-dot.is-done { background: var(--vc-teal); }
.wizard-dot.is-active { background: var(--vc-blue); transform: scale(1.3); }

.wizard-gate {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--vc-sky);
  color: var(--vc-blue-dark);
  margin-bottom: .75rem;
}

.wizard-card {
  position: relative;
  border-radius: var(--vc-radius);
  background: #fff;
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow);
  padding: 1.75rem;
  overflow: hidden;
}

.wizard-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--vc-blue), var(--vc-teal));
}

.wizard-hero {
  text-align: center;
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: 22px;
  background:
    radial-gradient(900px 340px at 88% -10%, rgba(255, 122, 69, .38), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(18, 181, 165, .34), transparent 60%),
    linear-gradient(135deg, var(--vc-navy) 0%, var(--vc-navy-2) 52%, var(--vc-blue) 100%);
  box-shadow: 0 24px 60px -28px rgba(10, 37, 64, .8);
}

.wizard-hero-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 2rem;
  margin-bottom: 1.25rem;
  animation: wizard-float 2.4s ease-in-out infinite;
}

@keyframes wizard-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.wizard-check {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  border-radius: var(--vc-radius-sm);
  border: 1px solid var(--vc-border);
  cursor: pointer;
  width: 100%;
  transition: border-color .12s ease, background-color .12s ease;
}

.wizard-check:hover { background: var(--vc-sky); }
.wizard-check:has(input:checked) { border-color: var(--vc-blue); background: var(--vc-sky); }

.wizard-skip {
  color: var(--vc-muted);
  font-size: .85rem;
  font-weight: 600;
}

.wizard-skip:hover { color: var(--vc-ink); }

/* ----- Destination tour (feature walkthrough, one stop per tab) ----- */

.tour-stop {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.75rem;
}

.tour-stop:last-child { padding-bottom: 0; }

.tour-stop:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 17px;
  top: 36px;
  bottom: -4px;
  border-inline-start: 2px dotted var(--vc-border);
}

.tour-stop-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.tour-stop-body {
  flex: 1;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  min-width: 0;
}

.tour-screenshot {
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: var(--vc-radius-sm);
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow);
}

/* ----- Live-data tour preview (sample/demo agency content) ----- */

.demo-frame {
  position: relative;
  border: 2px dashed var(--vc-amber);
  border-radius: var(--vc-radius);
  padding: 1.5rem 1.1rem 1.1rem;
  background: #fffdf5;
}

.phone-frame {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  border-radius: 32px;
  background: var(--vc-navy);
  padding: 12px 10px;
  box-shadow: var(--vc-shadow-lift);
}

.phone-frame-notch {
  width: 70px;
  height: 16px;
  margin: 0 auto 8px;
  border-radius: 0 0 12px 12px;
  background: var(--vc-navy);
}

.phone-frame iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: none;
  border-radius: 18px;
  background: #fff;
}

.demo-frame-label {
  position: absolute;
  top: -12px;
  inset-inline-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--vc-amber);
  color: #1a1a1a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 999px;
}

/* ---------- Subscription plan cards ---------- */
.plan-card {
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { border-color: #b0b0b0; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.plan-card-active { border-color: var(--vc-accent, #1a73e8); box-shadow: 0 0 0 2px rgba(26,115,232,.25); }

.plan-card-header {
  padding: 1.5rem 1.25rem 1rem;
  text-align: center;
}
.plan-header-economy { background: #f5f5f5; }
.plan-header-business { background: linear-gradient(135deg, #fff3cd, #ffeaa7); }
.plan-header-first_class { background: linear-gradient(135deg, #f9f3e3, #f0e2b6); }
.plan-card-icon { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.plan-header-first_class .plan-card-icon { color: #b8860b; }
.plan-price { font-size: .85rem; color: #666; margin-top: .35rem; }

.plan-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}
.plan-features li {
  padding: .3rem 0;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.plan-features .bi-check2 { color: #28a745; font-weight: bold; }
