/* Travel shell: home, catalogue cards, tour detail, and the centre live button.
   Teal is the action colour. Existing chat, ferry, and demo screens keep styles.css. */

:root {
  --tr: #0e8c90;
  --tr-press: #0c7578;
  --tr-ink: #172326;
  --tr-muted: #5d6f73;
  --tr-soft: #e7f4f4;
  --tr-line: #e4ecec;
}

.title-stack { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.title-stack b { font-size: 16px; font-weight: 650; }
.title-stack small { font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* ---------- Bottom bar: Guide, live talk, Explore ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 88px 1fr; align-items: end;
  height: calc(62px + env(safe-area-inset-bottom));
  padding: 0 8px env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid rgba(14, 40, 40, .06);
  box-shadow: 0 -10px 30px rgba(16, 40, 40, .05);
}
.tabbar a { text-decoration: none; color: #8aa0a3; }
.tabbar a[data-tab] {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .01em;
}
.tabbar a[data-tab] svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--tr); }
.tab-live { display: grid; place-items: center; align-self: start; margin-top: -26px; }
.tab-live-btn {
  width: 64px; height: 64px; border-radius: 50%; background: var(--tr); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(14, 140, 144, .38);
}
.tab-live-btn svg { width: 28px; height: 28px; }
.tab-live:active .tab-live-btn { background: var(--tr-press); transform: translateY(1px); }
body[data-route="live"] .tabbar,
body[data-route="welcome"] .tabbar,
body[data-route="components"] .tabbar,
body[data-route="credits"] .tabbar,
body[data-route="design"] .tabbar,
body[data-route="dates"] .tabbar { display: none; }

@media (max-width: 959px) {
  body[data-route="chat"] .composer,
  body[data-route="demo"] .composer { bottom: calc(100px + env(safe-area-inset-bottom)); }
  body[data-route="chat"] .convo::after,
  body[data-route="demo"] .convo::after { height: 190px; }
  body[data-route="chat"] .stream,
  body[data-route="demo"] .stream { padding-bottom: 220px; }
}
@media (min-width: 960px) {
  body[data-route="chat"] .composer,
  body[data-route="demo"] .composer { bottom: 132px; }
  .tabbar {
    left: 50%; right: auto; transform: translateX(-50%);
    width: min(440px, calc(100% - 32px)); bottom: 16px;
    border: 1px solid rgba(14, 40, 40, .06); border-radius: 28px;
    height: 72px; padding-bottom: 0;
  }
}

body[data-route^="place"] #app { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---------- Home ---------- */
.tr { background: #fff; color: var(--tr-ink); padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
.tr-top, .tr-sec, .tr-chips, .tr-ask, .tr-dests, .tr-note { padding-left: 20px; padding-right: 20px; }
.tr-top { display: flex; align-items: center; justify-content: space-between; padding-top: calc(14px + env(safe-area-inset-top)); }
.tr-brand { display: flex; align-items: center; gap: 10px; color: var(--tr-ink); text-decoration: none; }
.tr-brand svg { width: 36px; height: 28px; color: var(--tr); }
.tr-brand span { font-size: 17px; font-weight: 750; line-height: 1.05; letter-spacing: -.02em; }
.tr-avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tr-line);
  display: grid; place-items: center; color: var(--tr-ink); background: #fff; text-decoration: none;
}
.tr-avatar svg { width: 20px; height: 20px; }
.tr-avatar.on { color: #fff; background: var(--tr); border-color: var(--tr); }

.tr-hero { position: relative; margin: 14px 16px 0; border-radius: 28px; overflow: hidden; height: 300px; }
.tr-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 30, 32, .72) 0%, rgba(8, 30, 32, .05) 55%); }
.tr-hero h1 {
  position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 36px;
  margin: 0; color: #fff; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em;
}

.tr-ask {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 8px;
  margin: -26px 20px 0; height: 56px; padding: 0 8px 0 16px; border-radius: 999px;
  background: #fff; box-shadow: 0 10px 28px rgba(16, 40, 40, .12);
}
.tr-ask svg { width: 18px; height: 18px; color: var(--tr); flex: none; }
.tr-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--tr-ink); }
.tr-ask input::placeholder { color: #93a4a6; }
.tr-send {
  width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--tr); color: #fff;
  display: grid; place-items: center; flex: none; cursor: pointer;
}
.tr-send svg { width: 18px; height: 18px; color: #fff; }
.tr-send:active { background: var(--tr-press); }

.tr-chips {
  display: flex; gap: 8px; margin-top: 16px; padding-left: 16px; padding-right: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
}
.tr-chips::-webkit-scrollbar { display: none; }
.tr-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tr-line);
  background: #fff; color: var(--tr-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 40, 40, .04); scroll-snap-align: start;
}
.tr-chip span { white-space: nowrap; }
.tr-chip svg { width: 16px; height: 16px; color: var(--tr); }
.tr-chip:active { background: var(--tr-soft); }

.tr-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.tr-sec h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.tr-sec a { color: var(--tr); font-size: 14px; font-weight: 650; text-decoration: none; }
.tr-dests { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dcard-wrap { position: relative; min-width: 0; }
.dcard-wrap > .heart { position: absolute; z-index: 2; top: 10px; right: 10px; }
.dcard { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 3/4; color: #fff; text-decoration: none; }
.dcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 24, 26, .78), rgba(6, 24, 26, 0) 55%); }
.dcard .dcard-copy { position: absolute; z-index: 1; left: 12px; right: 40px; bottom: 12px; }
.dcard b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.dcard span { display: block; margin-top: 2px; font-size: 13px; opacity: .92; }
.dcard .heart { position: absolute; z-index: 2; top: 10px; right: 10px; }

.tr-note { margin: 22px 0 0; font-size: 13px; color: var(--tr-muted); }

/* ---------- Hearts, shared by cards ---------- */
.heart {
  width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, .94); color: #243033; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.heart svg { width: 18px; height: 18px; }
.heart.on, .heart[aria-pressed="true"] { color: #e11d48; }
.heart.on svg path, .heart[aria-pressed="true"] svg path { fill: currentColor; }

/* ---------- Catalogue ---------- */
.tr-page { background: #f4f1ea; min-height: 100svh; padding-bottom: calc(108px + env(safe-area-inset-bottom)); color: var(--tr-ink); }
.tr-head { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 8px; }
.tr-head h1 { margin: 0; flex: 1; font-size: 22px; letter-spacing: -.02em; }
.tr-icon {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tr-soft); color: var(--tr-ink);
  display: grid; place-items: center; text-decoration: none; cursor: pointer;
}
.tr-icon svg { width: 20px; height: 20px; }
.tr-search {
  display: flex; align-items: center; gap: 8px; margin: 8px 16px 0; height: 52px; padding: 0 16px;
  border-radius: 999px; background: #fff; color: var(--tr-muted); border: 1px solid rgba(18, 38, 44, .16);
}
.tr-search svg { width: 18px; height: 18px; flex: none; }
.tr-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--tr-ink); }
.tr-filters { display: flex; gap: 8px; padding: 14px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.tr-filters::-webkit-scrollbar { display: none; }
.tr-filters button {
  flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(18, 38, 44, .16);
  background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--tr-ink); cursor: pointer;
}
.tr-filters button.on { background: #12262c; border-color: #12262c; color: #fff; }
.tr-count { margin: 8px 20px 0; font-size: 13px; color: var(--tr-muted); }
.pcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 14px 16px 8px; }
.pcard { min-width: 0; }
.pcard-media { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 3/2; background: var(--tr-soft); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-media .heart { position: absolute; top: 8px; right: 8px; }
.pcard-body { padding: 8px 2px 0; }
.pcard-body h3 { margin: 0; font-size: 14.5px; line-height: 1.25; font-weight: 680; letter-spacing: -.02em; }
.pcard-body h3 a { color: inherit; text-decoration: none; }
.pcard-rate, .pcard-meta { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 12.5px; color: var(--tr-muted); }
.pcard-rate { color: var(--tr-ink); font-weight: 650; }
.pcard-rate svg { width: 13px; height: 13px; color: #e0a100; }
.pcard-rate span { font-weight: 500; color: var(--tr-muted); }
.pcard-price { margin: 6px 0 0; font-size: 13px; color: var(--tr-muted); }
.pcard-price b { color: var(--tr-ink); font-size: 15px; }
.tr-more, .tr-empty { margin: 8px 16px 16px; }
.tr-more {
  width: calc(100% - 32px); min-height: 48px; border-radius: 999px; border: 1.5px solid rgba(18, 38, 44, .16);
  background: #fff; font: inherit; font-size: 16px; font-weight: 650; color: var(--tr-ink); cursor: pointer;
}
.tr-empty { color: var(--tr-muted); font-size: 14px; }

/* ---------- Chat offer card ---------- */
.offer-card { border-radius: 22px; }
.offer-media { position: relative; display: block; aspect-ratio: 16/10; background: var(--tr-soft); }
.offer-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-media .heart { position: absolute; top: 10px; right: 10px; }
.offer-body { padding: 12px 14px 14px; }
.offer-body h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.offer-body h3 a { color: inherit; text-decoration: none; }
.offer-meta { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--tr-muted); font-size: 13px; }
.offer-meta svg { width: 15px; height: 15px; flex: none; }
.offer-price { margin: 8px 0 0; font-size: 13px; color: var(--tr-muted); }
.offer-go {
  margin-top: 12px; height: 46px; border-radius: 14px; background: var(--tr); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 680; font-size: 15px;
}
.offer-go svg { width: 18px; height: 18px; }
.offer-go:active { background: var(--tr-press); }
.offer-card .src-line { margin-top: 8px; }

/* ---------- Tour detail ---------- */
.tdetail { background: #0d2a2c; min-height: 100svh; padding-bottom: calc(188px + env(safe-area-inset-bottom)); }
.td-hero { position: relative; height: min(58svh, 460px); }
.td-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 28, 30, .35), transparent 40%); }
.td-bar {
  position: absolute; z-index: 2; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top));
  display: flex; gap: 8px;
}
.td-bar .spacer { flex: 1; }
.glass {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--tr-ink);
  display: grid; place-items: center; text-decoration: none;
}
.glass svg { width: 20px; height: 20px; }
.td-sheet {
  position: relative; z-index: 1; margin-top: -28px; background: #fff; color: var(--tr-ink);
  border-radius: 28px 28px 0 0; padding: 26px 20px 12px;
}
.td-kicker { margin: 0 0 6px; color: var(--tr); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.td-sheet h1 { margin: 0; font-size: 32px; line-height: 1.08; letter-spacing: -.03em; }
.td-place { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--tr-muted); font-size: 15px; }
.td-place svg { width: 16px; height: 16px; }
.td-about p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.5; color: #2c3c3f; }
.td-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.td-facts li {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px;
  border-radius: 14px; background: #f4f8f8; font-size: 13.5px; font-weight: 600;
}
.td-facts svg { width: 18px; height: 18px; color: var(--tr); flex: none; }
.td-sec { margin-top: 26px; }
.td-sec h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.02em; }
.td-sec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.td-sec li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.td-sec li svg { width: 18px; height: 18px; color: var(--tr); flex: none; margin-top: 1px; }
.td-meet a { color: var(--tr); font-weight: 650; }
.td-rate { margin: 16px 0 0; font-size: 14px; }
.td-rate b { font-size: 16px; }
.td-rate span { color: var(--tr-muted); }
.td-related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.td-src { margin: 22px 0 0; font-size: 12.5px; color: var(--tr-muted); line-height: 1.45; }
.td-src a { color: var(--tr-muted); }
.td-miss { background: #fff; min-height: 100svh; padding: 24px 20px calc(108px + env(safe-area-inset-bottom)); }
.td-miss a { color: var(--tr); font-weight: 650; }

.td-book {
  position: fixed; z-index: 25; left: 12px; right: 12px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 20px; background: #fff;
  box-shadow: 0 10px 30px rgba(16, 40, 40, .16);
}
.td-price { display: flex; flex-direction: column; line-height: 1.1; min-width: 72px; }
.td-price small, .td-price span { color: var(--tr-muted); font-size: 11px; }
.td-price b { font-size: 20px; letter-spacing: -.02em; }
.td-cta {
  flex: 1; height: 50px; border-radius: 14px; background: var(--tr); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 720; font-size: 16px;
}
.td-cta svg { width: 18px; height: 18px; }
.td-cta:active { background: var(--tr-press); }

.tag-example { margin-left: 6px; }

@media (min-width: 800px) {
  body[data-route="home"] { background: #e7eeed; }
  body[data-route="home"] .tr {
    max-width: 430px; margin: 28px auto 120px; border-radius: 36px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 40, 40, .14); min-height: calc(100svh - 160px);
  }
  .pcard-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto; }
  .tr-head, .tr-search, .tr-filters, .tr-count { max-width: 1080px; margin-left: auto; margin-right: auto; }
  .tr-search { margin-top: 8px; }
  .td-sheet { max-width: 760px; margin-left: auto; margin-right: auto; border-radius: 28px; padding: 32px 32px 20px; }
  .td-hero { max-height: 520px; }
  .td-book { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, calc(100% - 48px)); bottom: 132px; }
}
@media (min-width: 1100px) {
  .pcard-grid { grid-template-columns: repeat(4, 1fr); }
}
