/* ═══════════════════════════════════════════════════════════════════════════
   Tour funnel design system — shared by B2C (public) and B2B (portal) pages.
   Self-contained: no CSS custom properties, so it renders identically whether
   loaded under css/style.css (public) or b2b.css (agent portal). Element IDs
   match across both channels' twin pages, which load the same js/tour-*.js.
   ═══════════════════════════════════════════════════════════════════════════ */

.ta-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Category chips (listing) ── */
.ta-chips { display: flex; gap: 9px; flex-wrap: wrap; margin: 4px 0 22px; }
.ta-chip {
  border: 1px solid #d9e2f2; background: #fff; color: #37445f;
  border-radius: 22px; padding: 8px 16px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .14s;
}
.ta-chip:hover { border-color: #0B3AD6; color: #0B3AD6; }
.ta-chip.active { background: #0B3AD6; border-color: #0B3AD6; color: #fff; }

/* ── Listing grid ── */
.ta-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.ta-card {
  background: #fff; border: 1px solid #e8edf6; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  box-shadow: 0 4px 16px rgba(16,40,90,.06); transition: transform .16s, box-shadow .16s;
}
.ta-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(16,40,90,.14); }
.ta-card-media { position: relative; height: 190px; background: #eef2f8 center/cover no-repeat; }
.ta-card-media .ta-cat {
  position: absolute; top: 12px; left: 12px; background: rgba(11,58,214,.94); color: #fff;
  font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 20px; letter-spacing: .02em;
}
.ta-card-media .ta-feat {
  position: absolute; top: 12px; right: 12px; background: #ffb300; color: #3a2600;
  font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 20px;
}
.ta-card-body { padding: 15px 17px 8px; flex: 1; display: flex; flex-direction: column; }
.ta-card-dest { font-size: 12.5px; color: #6b7896; font-weight: 600; }
.ta-card-title { font-size: 16.5px; font-weight: 800; color: #0f1b33; line-height: 1.32; margin: 4px 0 7px; }
.ta-card-sum { font-size: 13px; color: #64748b; line-height: 1.5; flex: 1; }
.ta-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ta-tag { font-size: 11px; font-weight: 600; color: #4a5878; background: #f0f3fa; padding: 4px 9px; border-radius: 8px; }
.ta-card-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 12px 17px 16px; border-top: 1px solid #f1f4f9; margin-top: 12px;
}
.ta-card-price b { font-size: 21px; font-weight: 900; color: #0B3AD6; }
.ta-card-price span { font-size: 12px; color: #94a3b8; font-weight: 600; }
.ta-card-cta {
  background: #0B3AD6; color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 15px; border-radius: 10px;
}
.ta-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: #64748b;
  background: #fff; border: 1px dashed #cfd9ea; border-radius: 16px;
}
.ta-empty h3 { font-size: 17px; color: #0f1b33; margin: 0 0 8px; }
.ta-skel { height: 340px; border-radius: 18px; background: linear-gradient(100deg,#eef2f8 30%,#f6f9fd 50%,#eef2f8 70%); background-size: 200% 100%; animation: ta-sh 1.2s infinite; }
@keyframes ta-sh { to { background-position: -200% 0; } }

/* ═══════════════ DETAIL ═══════════════ */
.ta-detail { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.ta-gallery { border-radius: 18px; overflow: hidden; }
.ta-gallery-main { width: 100%; height: 380px; background: #eef2f8 center/cover no-repeat; border-radius: 16px; }
.ta-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ta-thumb { width: 84px; height: 60px; border-radius: 9px; background: #eef2f8 center/cover no-repeat; cursor: pointer; border: 2px solid transparent; }
.ta-thumb.active { border-color: #0B3AD6; }

.ta-d-head { margin: 22px 0 6px; }
.ta-d-dest { font-size: 13.5px; color: #6b7896; font-weight: 600; }
.ta-d-title { font-size: 27px; font-weight: 900; color: #0f1b33; line-height: 1.22; margin: 6px 0 12px; }
.ta-d-facts { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0; }
.ta-fact { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #37445f; font-weight: 600; }
.ta-fact svg { width: 18px; height: 18px; stroke: #0B3AD6; fill: none; stroke-width: 2; }

.ta-sec { margin-top: 26px; }
.ta-sec h2 { font-size: 18px; font-weight: 800; color: #0f1b33; margin: 0 0 12px; }
.ta-sec p { font-size: 14.5px; color: #45526f; line-height: 1.7; margin: 0 0 10px; white-space: pre-line; }

.ta-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.ta-list li { position: relative; padding-left: 26px; font-size: 14px; color: #37445f; line-height: 1.5; }
.ta-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 900; }
.ta-list.no li::before { content: "✕"; color: #dc2626; }

.ta-itin { display: flex; flex-direction: column; gap: 0; }
.ta-day { position: relative; padding: 0 0 20px 30px; border-left: 2px solid #e2e8f4; }
.ta-day:last-child { border-left-color: transparent; padding-bottom: 0; }
.ta-day::before {
  content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #0B3AD6; box-shadow: 0 0 0 4px #e7edfc;
}
.ta-day-num { font-size: 12px; font-weight: 800; color: #0B3AD6; text-transform: uppercase; letter-spacing: .04em; }
.ta-day-title { font-size: 15px; font-weight: 700; color: #0f1b33; margin: 2px 0 4px; }
.ta-day-text { font-size: 13.5px; color: #5b6880; line-height: 1.6; }

/* Booking box (sticky) */
.ta-book {
  position: sticky; top: 90px; background: #fff; border: 1px solid #e6ecf5;
  border-radius: 18px; padding: 20px; box-shadow: 0 10px 34px rgba(16,40,90,.1);
}
.ta-book-price { font-size: 15px; color: #64748b; }
.ta-book-price b { font-size: 27px; font-weight: 900; color: #0B3AD6; display: block; }
.ta-book-lbl { font-size: 12.5px; font-weight: 700; color: #45526f; margin: 16px 0 6px; display: block; }
.ta-book select, .ta-book input {
  width: 100%; border: 1px solid #dbe4f4; border-radius: 10px; padding: 11px 12px;
  font-size: 14px; font-family: inherit; outline: none; background: #fff; color: #0f1b33;
}
.ta-book select:focus, .ta-book input:focus { border-color: #0B3AD6; }
.ta-qty { display: flex; gap: 10px; }
.ta-qty > div { flex: 1; }
.ta-book-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 0 4px; padding-top: 14px; border-top: 1px dashed #e2e8f4;
}
.ta-book-total span { font-size: 14px; color: #45526f; font-weight: 600; }
.ta-book-total b { font-size: 23px; font-weight: 900; color: #0f1b33; }
.ta-seats-note { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.ta-btn {
  display: block; width: 100%; text-align: center; background: #0B3AD6; color: #fff;
  border: 0; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit; margin-top: 14px; transition: background .15s;
  text-decoration: none;
}
.ta-btn:hover { background: #0930ad; }
.ta-btn:disabled, .ta-btn.disabled { opacity: .5; cursor: default; pointer-events: none; }
.ta-btn.ghost { background: #f1f5fb; color: #0B3AD6; }

/* ═══════════════ BOOKING PAGE ═══════════════ */
.ta-steps { display: flex; gap: 8px; margin: 0 0 24px; flex-wrap: wrap; }
.ta-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #94a3b8; }
.ta-step .n { width: 24px; height: 24px; border-radius: 50%; background: #e6ecf5; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ta-step.active { color: #0B3AD6; }
.ta-step.active .n { background: #0B3AD6; color: #fff; }
.ta-step.done .n { background: #16a34a; color: #fff; }

.ta-bk-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.ta-panel { background: #fff; border: 1px solid #e8edf6; border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.ta-panel h2 { font-size: 16px; font-weight: 800; color: #0f1b33; margin: 0 0 4px; }
.ta-panel .hint { font-size: 12.5px; color: #94a3b8; margin: 0 0 16px; }
.ta-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.ta-f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.ta-f.wide { grid-column: 1 / -1; }
.ta-f > span { font-weight: 700; color: #45526f; }
.ta-f input, .ta-f textarea {
  border: 1px solid #dbe4f4; border-radius: 10px; padding: 10px 12px; font-size: 14px;
  font-family: inherit; outline: none; background: #fff; color: #0f1b33;
}
.ta-f input:focus, .ta-f textarea:focus { border-color: #0B3AD6; }
.ta-fields.three { grid-template-columns: 1fr 1fr 1fr; }
.ta-f select {
  border: 1px solid #dbe4f4; border-radius: 10px; padding: 10px 12px; font-size: 14px;
  font-family: inherit; outline: none; background: #fff; color: #0f1b33; width: 100%;
}
.ta-f select:focus { border-color: #0B3AD6; }
.ta-f input.up { text-transform: uppercase; }
.ta-f input.up::placeholder { text-transform: none; }
.ta-f input.err, .ta-f select.err { border-color: #dc2626; background: #fff8f8; }
.ta-traveler { border: 1px solid #eef1f7; border-radius: 12px; padding: 15px; margin-bottom: 12px; }
.ta-traveler-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; color: #0B3AD6; margin-bottom: 11px; }
.ta-traveler-tag { font-size: 11px; font-weight: 700; color: #64748b; background: #f0f3fa; border-radius: 7px; padding: 3px 9px; }

/* Sticky sidebar: the WHOLE aside sticks (summary card + CTA button together) —
   never just the card, or the button scrolls underneath it. */
.ta-bk-grid > aside { position: sticky; top: 84px; }
.ta-summary { background: #fff; border: 1px solid #e6ecf5; border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(16,40,90,.08); overflow: hidden; }
.ta-summary-img { width: auto; height: 150px; border-radius: 0; background: #eef2f8 center/cover no-repeat; margin: -20px -20px 16px; }
.ta-summary h3 { font-size: 16.5px; font-weight: 800; color: #0f1b33; margin: 0 0 3px; line-height: 1.3; }
.ta-summary .dest { font-size: 12.5px; color: #6b7896; font-weight: 600; }
.ta-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13.5px; padding: 8.5px 0; border-bottom: 1px solid #f1f4f9; }
.ta-summary-row > span:first-child { color: #8494ad; font-weight: 600; flex: none; }
.ta-summary-row > span:last-child { text-align: right; font-weight: 700; color: #22304d; min-width: 0; }
.ta-summary-row.total { border-bottom: 0; padding-top: 14px; align-items: center; }
.ta-summary-row.total span:first-child { color: #45526f; font-weight: 700; }
.ta-summary-row.total b { font-size: 22px; color: #0f1b33; letter-spacing: -.01em; }
/* Hotel block inside the summary (charter packages) */
.ta-sum-hblock { background: #f6f9ff; border: 1px solid #e1eaff; border-radius: 12px; padding: 12px 14px; margin: 12px 0 2px; }
.ta-sum-hstars { color: #f5a623; font-size: 12px; letter-spacing: 1.5px; margin-bottom: 3px; }
.ta-sum-hname { font-size: 14px; font-weight: 800; color: #0f1b33; line-height: 1.35; }
.ta-sum-hsub { font-size: 12px; color: #64748b; margin-top: 4px; font-weight: 600; line-height: 1.45; }

.ta-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; margin-top: 12px; display: none; }

/* ═══════════════ CONFIRMATION ═══════════════ */
.ta-conf { max-width: 680px; margin: 0 auto; }
.ta-conf-banner { border-radius: 16px; padding: 26px; text-align: center; margin-bottom: 20px; }
.ta-conf-banner.pending   { background: #fff7ed; border: 1px solid #fed7aa; }
.ta-conf-banner.paid      { background: #eff6ff; border: 1px solid #bfdbfe; }
.ta-conf-banner.confirmed { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ta-conf-banner .icon { font-size: 42px; }
.ta-conf-banner h1 { font-size: 22px; font-weight: 900; color: #0f1b33; margin: 8px 0 6px; }
.ta-conf-banner p { font-size: 14px; color: #5b6880; line-height: 1.6; margin: 0; }
.ta-conf-card { background: #fff; border: 1px solid #e8edf6; border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.ta-conf-ref { font-size: 13px; color: #64748b; }
.ta-conf-ref b { font-size: 18px; color: #0f1b33; letter-spacing: .04em; }
.ta-pay-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 1px solid #dbe4f4; background: #fff; border-radius: 12px; padding: 15px 18px;
  font-size: 15px; font-weight: 700; color: #0f1b33; cursor: pointer; font-family: inherit; margin-top: 10px;
}
.ta-pay-btn:hover { border-color: #0B3AD6; background: #f7faff; }
.ta-pay-btn .amt { color: #0B3AD6; font-weight: 900; }

/* ═══════════════ PAYMENT PAGE ═══════════════ */
.ta-pm { display: flex; gap: 13px; align-items: flex-start; border: 1.5px solid #e2e8f4; border-radius: 14px; padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 10px; }
.ta-pm:hover { border-color: #b9caec; }
.ta-pm.on { border-color: #0B3AD6; background: #f6f9ff; }
.ta-pm input { margin-top: 3px; width: 18px; height: 18px; accent-color: #0B3AD6; flex: none; }
.ta-pm-body { flex: 1; }
.ta-pm-title { font-size: 15px; font-weight: 800; color: #0f1b33; }
.ta-pm-desc { font-size: 12.5px; color: #64748b; line-height: 1.55; margin-top: 3px; }
.ta-pm-amt { font-size: 15px; font-weight: 900; color: #0B3AD6; white-space: nowrap; }
.ta-pm-note { background: #f8fafc; border: 1px solid #eef1f7; border-radius: 11px; padding: 12px 14px; font-size: 12.5px; color: #5b6880; line-height: 1.6; margin-top: 12px; }
.ta-trav-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #45526f; padding: 7px 0; border-bottom: 1px solid #f1f4f9; }
.ta-trav-line:last-child { border-bottom: 0; }
.ta-trav-line .doc { color: #94a3b8; font-size: 12px; }

/* ── Charter package: breakdown legend + live hotel grid ── */
.ch-legend { margin-top: 16px; border-top: 1px solid #eef1f7; padding-top: 12px; }
.ch-leg-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #45526f; padding: 3px 0; }
.ch-leg-row b { font-weight: 800; color: #0f1b33; }
.ch-leg-row.muted { color: #94a3b8; font-size: 12px; }

/* Charter date calendar (sidebar) — availability colour-coded like the market:
   blue outline = seats, yellow = few left, red = sold out. */
.ch-cal { border: 1px solid #e6ecf5; border-radius: 14px; padding: 13px 12px 9px; background: #fff; }
.ch-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ch-cal-head span { font-size: 14px; font-weight: 800; color: #0f1b33; }
.ch-cal-nav { width: 30px; height: 30px; border: 1px solid #e2e8f5; background: #fff; border-radius: 9px; color: #0B3AD6; font-size: 17px; line-height: 1; cursor: pointer; }
.ch-cal-nav:hover:not(:disabled) { background: #f4f7ff; }
.ch-cal-nav:disabled { opacity: .3; cursor: default; }
.ch-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 5px; }
.ch-cal-dow span { text-align: center; font-size: 10.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.ch-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ch-cal-pad { height: 37px; }
.ch-cal-day { height: 37px; border: 0; background: transparent; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: #cbd5e1; font-family: inherit; cursor: default; }
.ch-cal-day.avail { color: #0f1b33; font-weight: 700; background: #fff; cursor: pointer; box-shadow: inset 0 0 0 1.6px #2563eb; }
.ch-cal-day.avail:hover { background: #eef4ff; }
.ch-cal-day.few { color: #0f1b33; font-weight: 700; background: #fff; cursor: pointer; box-shadow: inset 0 0 0 1.6px #f59e0b; }
.ch-cal-day.few:hover { background: #fff8ec; }
.ch-cal-day.full { color: #c2410c; box-shadow: inset 0 0 0 1.6px #fca5a5; opacity: .65; }
.ch-cal-day.sel { background: #0B3AD6; color: #fff; box-shadow: none; }
.ch-cal-legend { display: flex; gap: 12px 16px; justify-content: center; flex-wrap: wrap; margin-top: 11px; padding-top: 10px; border-top: 1px solid #eef1f7; }
.ch-cal-legend span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #45526f; }
.ch-cal-legend i { width: 13px; height: 13px; border-radius: 5px; display: inline-block; }
.ch-cal-legend .lg-ok i   { box-shadow: inset 0 0 0 1.6px #2563eb; }
.ch-cal-legend .lg-few i  { box-shadow: inset 0 0 0 1.6px #f59e0b; }
.ch-cal-legend .lg-full i { box-shadow: inset 0 0 0 1.6px #fca5a5; }
.ch-cal-none { font-size: 13px; color: #94a3b8; text-align: center; padding: 20px 0; }
.ch-selinfo { margin-top: 10px; text-align: center; font-size: 13px; color: #45526f; min-height: 18px; }
.ch-selinfo b { color: #0B3AD6; font-weight: 800; }
.ch-flight:not(:empty) { margin-top: 10px; border: 1px solid #e6ecf5; border-radius: 10px; padding: 9px 11px; background: #f9fbff; }
.ch-fl-head { font-size: 12.5px; font-weight: 800; color: #0f1b33; margin-bottom: 5px; }
.ch-fl-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #45526f; padding: 2px 0; }
.ch-fl-row b { min-width: 48px; color: #7a8aa8; font-weight: 700; }
.ch-fl-no { font-weight: 700; color: #0B3AD6; }
.ch-fl-bag { font-size: 11.5px; color: #7a8aa8; margin-top: 4px; }

/* Add-on toggles (booking page) */
.ta-addons { display: flex; flex-direction: column; gap: 8px; }
.ta-addon { display: flex; align-items: center; gap: 11px; border: 1px solid #e6ecf5; border-radius: 11px; padding: 11px 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.ta-addon:hover { border-color: #b9caec; }
.ta-addon:has(input:checked) { border-color: #0B3AD6; background: #f4f7ff; }
.ta-addon input { width: 18px; height: 18px; accent-color: #0B3AD6; flex: none; }
.ta-addon-label { flex: 1; font-size: 14px; font-weight: 600; color: #0f1b33; }
.ta-addon-price { font-size: 13.5px; font-weight: 800; color: #0B3AD6; white-space: nowrap; }
.ta-addon-price small { font-size: 10.5px; font-weight: 600; color: #94a3b8; }

.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ch-skel { height: 300px; border-radius: 16px; background: linear-gradient(100deg,#eef2f8 30%,#f6f9fd 50%,#eef2f8 70%); background-size: 200% 100%; animation: ta-sh 1.2s infinite; }

.ch-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6ecf5; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(16,40,90,.05); transition: box-shadow .15s, transform .15s; }
.ch-card:hover { box-shadow: 0 12px 30px rgba(16,40,90,.13); transform: translateY(-2px); }
.ch-card-img { height: 150px; background: #eef2f8 center/cover no-repeat; }
.ch-card-body { padding: 12px 15px 8px; flex: 1; }
.ch-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; min-height: 18px; }
.ch-stars { color: #f5a623; font-size: 12px; letter-spacing: 1px; }
.ch-rev { background: #0B3AD6; color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.ch-card-name { font-size: 15px; font-weight: 800; color: #0f1b33; line-height: 1.3; }
.ch-card-board { font-size: 12px; color: #64748b; margin-top: 3px; }
.ch-card-break { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 9px; }
.ch-card-break span { font-size: 11px; color: #7a8aa8; }
.ch-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px 14px; border-top: 1px solid #f1f4f9; }
.ch-card-total { display: flex; flex-direction: column; }
.ch-card-total span { font-size: 11px; color: #94a3b8; }
.ch-card-total b { font-size: 19px; font-weight: 900; color: #0B3AD6; }
.ch-card-foot .ta-btn { margin: 0; padding: 9px 16px; width: auto; font-size: 13.5px; }

/* ═══════════════ B2B TOUR MARKET (Asialuxe-style package search) ═══════════════ */
.tm-search {
  background: linear-gradient(120deg, #0B3AD6, #2563eb); border-radius: 18px;
  padding: 18px 18px 14px; box-shadow: 0 12px 32px rgba(11,58,214,.22); margin-bottom: 20px;
}
.tm-search-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.1fr auto; gap: 10px; align-items: end; }
.tm-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.tm-field > span { font-size: 12px; font-weight: 700; color: #dbe6ff; }
.tm-field select, .tm-ctl {
  width: 100%; border: 0; border-radius: 11px; background: #fff; color: #0f1b33;
  padding: 12px 13px; font-size: 14px; font-weight: 600; font-family: inherit; outline: none;
  text-align: left; cursor: pointer; min-height: 44px;
}
.tm-ctl small { display: block; font-size: 11px; color: #94a3b8; font-weight: 600; }
.tm-ctl.placeholder { color: #94a3b8; }
.tm-go {
  background: #b6f000; color: #1c2a06; border: 0; border-radius: 11px; padding: 12px 26px;
  font-size: 14.5px; font-weight: 900; font-family: inherit; cursor: pointer; min-height: 44px;
  transition: filter .15s;
}
.tm-go:hover { filter: brightness(.95); }
.tm-go:disabled { opacity: .6; cursor: default; }

/* Popovers (calendar + travellers) */
.tm-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; background: #fff;
  border: 1px solid #e2e8f4; border-radius: 16px; box-shadow: 0 24px 60px rgba(15,27,51,.22);
  padding: 16px; display: none;
}
.tm-pop.open { display: block; }
.tm-pop-cal { width: 620px; max-width: calc(100vw - 60px); }
.tm-cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tm-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tm-cal-title { font-size: 14.5px; font-weight: 800; color: #0f1b33; text-align: center; flex: 1; }
.tm-cal-nav { width: 30px; height: 30px; border: 1px solid #e2e8f5; background: #fff; border-radius: 9px; color: #0B3AD6; font-size: 17px; line-height: 1; cursor: pointer; }
.tm-cal-nav:hover:not(:disabled) { background: #f4f7ff; }
.tm-cal-nav:disabled { opacity: .3; cursor: default; }
.tm-cal-dow { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; margin-bottom: 5px; }
.tm-cal-dow span { text-align: center; font-size: 10.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.tm-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.tm-day { height: 38px; border: 0; background: transparent; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: #cbd5e1; font-family: inherit; cursor: default; }
.tm-day.ok   { color: #0f1b33; box-shadow: inset 0 0 0 1.6px #2563eb; cursor: pointer; }
.tm-day.few  { color: #0f1b33; box-shadow: inset 0 0 0 1.6px #f59e0b; cursor: pointer; }
.tm-day.full { color: #b91c1c; box-shadow: inset 0 0 0 1.6px #ef4444; cursor: default; opacity: .75; }
.tm-day.ok:hover, .tm-day.few:hover { background: #eef4ff; }
.tm-day.sel { background: #0B3AD6; color: #fff; box-shadow: none; }
.tm-cal-legend { display: flex; gap: 18px; justify-content: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef1f7; }
.tm-cal-legend span { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #45526f; }
.tm-cal-legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.tm-cal-legend .lg-full i { box-shadow: inset 0 0 0 1.6px #ef4444; }
.tm-cal-legend .lg-few  i { box-shadow: inset 0 0 0 1.6px #f59e0b; }
.tm-cal-legend .lg-ok   i { box-shadow: inset 0 0 0 1.6px #2563eb; }

.tm-pop-pax { width: 290px; }
.tm-pax-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.tm-pax-row + .tm-pax-row { border-top: 1px solid #f1f4f9; }
.tm-pax-lbl b { display: block; font-size: 14px; color: #0f1b33; }
.tm-pax-lbl small { font-size: 11.5px; color: #94a3b8; }
.tm-step { display: flex; align-items: center; gap: 11px; }
.tm-step button {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid #dbe4f4; background: #fff;
  color: #0B3AD6; font-size: 17px; line-height: 1; cursor: pointer; font-family: inherit;
}
.tm-step button:disabled { opacity: .35; cursor: default; }
.tm-step b { min-width: 18px; text-align: center; font-size: 14.5px; color: #0f1b33; }

/* Flight strip */
.tm-flight { display: flex; gap: 14px; align-items: stretch; background: #fff; border: 1px solid #e8edf6; border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tm-fl-leg { flex: 1; min-width: 250px; }
.tm-fl-route { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 900; color: #0f1b33; }
.tm-fl-route .chip { font-size: 10.5px; font-weight: 800; color: #0B3AD6; background: #eef4ff; border-radius: 7px; padding: 3px 8px; letter-spacing: .03em; }
.tm-fl-sub { font-size: 12.5px; color: #64748b; margin-top: 5px; background: #f6f9ff; border-radius: 9px; padding: 7px 10px; }
.tm-fl-sub b { color: #0B3AD6; font-weight: 800; }

/* Results layout */
.tm-results { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.tm-side { background: #fff; border: 1px solid #e8edf6; border-radius: 16px; padding: 16px; position: sticky; top: 14px; }
.tm-count { font-size: 14px; font-weight: 900; color: #0f1b33; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .02em; }
.tm-side input[type="text"] {
  width: 100%; border: 1px solid #dbe4f4; border-radius: 10px; padding: 9px 11px; font-size: 13.5px;
  font-family: inherit; outline: none; margin-bottom: 14px;
}
.tm-side input[type="text"]:focus { border-color: #0B3AD6; }
.tm-side-lbl { font-size: 12px; font-weight: 800; color: #45526f; margin: 12px 0 7px; text-transform: uppercase; letter-spacing: .03em; }
.tm-check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: #37445f; cursor: pointer; font-weight: 600; }
.tm-check input { width: 16px; height: 16px; accent-color: #0B3AD6; }
.tm-check .n { margin-left: auto; font-size: 11.5px; color: #94a3b8; }

.tm-sort { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tm-sort button {
  border: 1px solid #e2e8f4; background: #fff; color: #37445f; border-radius: 10px; padding: 8px 15px;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.tm-sort button.on { background: #b6f000; border-color: #b6f000; color: #1c2a06; }

.tm-card { display: flex; gap: 0; background: #fff; border: 1px solid #e8edf6; border-radius: 16px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(16,40,90,.04); }
.tm-card-img { width: 230px; flex: none; background: #eef2f8 center/cover no-repeat; min-height: 190px; }
.tm-card-body { flex: 1; padding: 14px 18px; min-width: 0; }
.tm-card-cat { font-size: 11px; font-weight: 800; color: #d97706; letter-spacing: .05em; text-transform: uppercase; }
.tm-card-name { font-size: 17px; font-weight: 900; color: #0f1b33; margin: 3px 0 2px; text-transform: uppercase; }
.tm-card-loc { font-size: 12.5px; color: #64748b; font-weight: 600; }
.tm-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #45526f; font-weight: 600; margin-top: 9px; }
.tm-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.tm-badge { font-size: 11px; font-weight: 800; color: #fff; background: #0B3AD6; border-radius: 7px; padding: 4px 9px; letter-spacing: .02em; text-transform: uppercase; }
.tm-badge.alt { background: #0e7490; }
.tm-incl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tm-incl span { font-size: 11.5px; font-weight: 600; color: #37445f; background: #f0f3fa; border-radius: 8px; padding: 4px 9px; }
.tm-card-buy { width: 190px; flex: none; border-left: 1px dashed #e8edf6; padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; }
.tm-buy-tag { font-size: 10.5px; font-weight: 800; color: #0B3AD6; background: #eef4ff; border-radius: 6px; padding: 2px 7px; margin-bottom: 4px; }
.tm-buy-usd { font-size: 21px; font-weight: 900; color: #0f1b33; }
.tm-buy-uzs { font-size: 12px; color: #94a3b8; font-weight: 700; }
.tm-buy-btn {
  margin-top: 10px; background: #0B3AD6; color: #fff; border: 0; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 800; font-family: inherit; cursor: pointer; width: 100%;
}
.tm-buy-btn:hover { background: #0930ad; }
.tm-rooms { border: 1px solid #e8edf6; border-top: 0; border-radius: 0 0 16px 16px; background: #f9fbff; margin: -14px 0 14px; padding: 8px 16px; }
.tm-room { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #eef1f7; }
.tm-room:last-child { border-bottom: 0; }
.tm-room-name { flex: 1; min-width: 0; }
.tm-room-name b { display: block; font-size: 13.5px; color: #0f1b33; }
.tm-room-name small { font-size: 12px; color: #64748b; }
.tm-room-flag { font-size: 11.5px; font-weight: 700; }
.tm-room-price { font-size: 15px; font-weight: 900; color: #0B3AD6; white-space: nowrap; }
.tm-room-price small { display: block; font-size: 10.5px; color: #94a3b8; font-weight: 700; text-align: right; }
.tm-room .ta-btn { width: auto; margin: 0; padding: 8px 14px; font-size: 12.5px; }
.tm-skel { height: 190px; border-radius: 16px; background: linear-gradient(100deg,#eef2f8 30%,#f6f9fd 50%,#eef2f8 70%); background-size: 200% 100%; animation: ta-sh 1.2s infinite; margin-bottom: 14px; }

@media (max-width: 1100px) { .tm-search-row { grid-template-columns: 1fr 1fr; } .tm-go { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .tm-results { grid-template-columns: 1fr; }
  .tm-side { position: static; }
  .tm-pop-cal { width: 340px; }
  .tm-cal-months { grid-template-columns: 1fr; }
  .tm-cal-months .tm-cal-m2 { display: none; }
  .tm-card { flex-direction: column; }
  .tm-card-img { width: 100%; height: 170px; }
  .tm-card-buy { width: 100%; border-left: 0; border-top: 1px dashed #e8edf6; align-items: flex-start; }
}

@media (max-width: 900px) {
  .ta-detail, .ta-bk-grid { grid-template-columns: 1fr; }
  .ta-book, .ta-bk-grid > aside { position: static; }
  .ta-gallery-main { height: 260px; }
  .ta-list { grid-template-columns: 1fr; }
  .ta-fields.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ta-fields, .ta-fields.three { grid-template-columns: 1fr; }
  .ta-d-title { font-size: 22px; }
}
