/* eSIM Mongolia — AI Travel Platform */
:root {
  --tp-bg: #f5f7fb;
  --tp-white: #ffffff;
  --tp-text: #0f172a;
  --tp-muted: #64748b;
  --tp-blue: #1d4ed8;
  --tp-blue-dark: #1e3a8a;
  --tp-blue-light: #dbeafe;
  --tp-green: #059669;
  --tp-border: #e2e8f0;
  --tp-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --tp-r: 14px;
}

.platform-body { background: var(--tp-bg); }
.platform-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 48px; }

/* Nav */
.tp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.tp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tp-text);
  font-weight: 800;
  font-size: 1.05rem;
}
.tp-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tp-nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tp-nav-links a, .tp-nav-links button {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--tp-border);
  background: var(--tp-white);
  color: var(--tp-text);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.tp-nav-links a.primary, .tp-nav-links button.primary {
  background: var(--tp-blue);
  color: #fff;
  border-color: var(--tp-blue);
}

/* Hero */
.tp-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  color: #fff;
  border-radius: 20px;
  padding: 36px 28px 44px;
  margin: 8px 0 0;
  box-shadow: var(--tp-shadow);
}
.tp-hero h1 { margin: 0 0 10px; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.25; }
.tp-hero .tp-sub { margin: 0; opacity: .92; font-size: 15px; max-width: 62ch; line-height: 1.6; }
.tp-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tp-badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Search card */
.tp-home-search {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  margin-bottom: 0;
}
.tp-search-card {
  background: var(--tp-white);
  border-radius: 18px;
  box-shadow: var(--tp-shadow);
  border: 1px solid var(--tp-border);
  margin: 0;
  overflow: hidden;
}
.tp-home-search:not(.has-results) .tp-search-card {
  border-radius: 18px;
}
.tp-home-search.has-results .tp-search-card {
  border-radius: 18px 18px 0 0;
  border-bottom: none;
  box-shadow: none;
}
#resultsContainer.tp-results-container {
  margin-top: 0 !important;
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-top: none;
  border-radius: 0 0 18px 18px;
  box-shadow: var(--tp-shadow);
  overflow: hidden;
}
.tp-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--tp-border);
  -webkit-overflow-scrolling: touch;
}
.tp-tab {
  flex-shrink: 0;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: var(--tp-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tp-tab.active { color: var(--tp-blue); border-bottom-color: var(--tp-blue); background: #f8fafc; }
.tp-panel { display: none; padding: 20px; }
.tp-panel.active { display: block; }
.tp-ai-box {
  width: 100%;
  min-height: 88px;
  border: 2px solid var(--tp-border);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
.tp-ai-box:focus { outline: none; border-color: var(--tp-blue); }
.tp-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.tp-field label { display: block; font-size: 12px; font-weight: 700; color: var(--tp-muted); margin-bottom: 4px; }
.tp-field input, .tp-field select, .tp-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  font-size: 14px;
}
.tp-search-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--tp-border);
  background: var(--tp-white);
  color: var(--tp-text);
  cursor: pointer;
  text-decoration: none;
}
.tp-btn.primary { background: var(--tp-blue); color: #fff; border-color: var(--tp-blue); }
.tp-btn.green { background: var(--tp-green); color: #fff; border-color: var(--tp-green); }

/* Sections */
.tp-section { margin: 40px 0; }
.tp-section h2 { font-size: 1.35rem; margin: 0 0 6px; color: var(--tp-text); }
.tp-section .tp-lead { color: var(--tp-muted); font-size: 14px; margin: 0 0 16px; }

/* Home browse — services + routes under search */
.tp-home-browse {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 18px;
  box-shadow: var(--tp-shadow);
  padding: 24px 18px 20px;
  margin: 28px 0 36px;
}
.tp-home-browse .tp-section { margin: 0; }
.tp-home-browse .tp-services-featured {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tp-border);
}
.tp-home-browse .tp-routes-featured { margin: 0; }
.tp-home-browse h2 { font-size: 1.2rem; }
.tp-home-browse .tp-lead { margin-bottom: 14px; }

/* Destination cards */
.tp-dest-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.tp-routes-featured .tp-dest-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.tp-dest-card {
  border-radius: var(--tp-r);
  overflow: hidden;
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .18s, box-shadow .18s;
}
.tp-dest-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--tp-shadow); }
.tp-dest-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.tp-routes-featured .tp-dest-card img { height: 132px; }
.tp-dest-card .tp-dest-body { padding: 10px 12px; }
.tp-dest-card .tp-dest-name { font-weight: 800; font-size: 14px; }
.tp-dest-card .tp-dest-sub { font-size: 11px; color: var(--tp-muted); margin-top: 2px; }

/* Service grid */
.tp-service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (min-width: 900px) {
  .tp-home-browse .tp-service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tp-service-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-r);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tp-service-card:hover {
  border-color: var(--tp-blue);
  box-shadow: var(--tp-shadow);
  transform: translateY(-3px);
}
.tp-service-card .tp-service-img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}
.tp-service-card .tp-service-body { padding: 14px 16px 16px; }
.tp-service-card .icon { font-size: 1.4rem; line-height: 1; }
.tp-service-card h3 { margin: 8px 0 4px; font-size: 15px; }
.tp-service-card p { margin: 0; font-size: 13px; color: var(--tp-muted); line-height: 1.4; }

/* China city cards */
.tp-china-grid { display: grid; gap: 16px; }
.tp-china-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 16px;
  overflow: hidden;
}
.tp-china-head {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .tp-china-head { grid-template-columns: 200px 1fr; }
}
.tp-china-card img { width: 100%; height: 140px; object-fit: cover; }
@media (min-width: 700px) {
  .tp-china-card img { height: 100%; min-height: 160px; }
}
.tp-china-body { padding: 16px; }
.tp-china-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tp-china-meta { font-size: 13px; color: var(--tp-muted); line-height: 1.55; }
.tp-china-meta ul { margin: 8px 0; padding-left: 18px; }
.tp-china-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* AI Agent */
.tp-ai-section {
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  border: 1px solid var(--tp-blue-light);
  border-radius: 18px;
  padding: 24px;
}
.tp-chat-widget {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--tp-shadow);
}
.tp-chat {
  min-height: 360px;
  max-height: 560px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  -webkit-overflow-scrolling: touch;
}
.tp-msg-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-end;
}
.tp-msg-row.user {
  flex-direction: row-reverse;
}
.tp-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tp-msg-row.user .tp-msg-avatar { display: none; }
.tp-msg-bubble { max-width: min(85%, 520px); }
.tp-msg-bubble-wide { max-width: min(92%, 640px); }
.tp-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.tp-msg-rich { font-size: 14px; line-height: 1.65; }
.tp-msg-rich p { margin: 0 0 8px; }
.tp-msg-rich p:last-child { margin-bottom: 0; }
.tp-msg-rich .tp-ai-heading {
  font-weight: 700;
  color: var(--tp-blue-dark);
  margin-top: 10px;
  margin-bottom: 6px;
}
.tp-msg-rich .tp-ai-list {
  margin: 6px 0 10px;
  padding-left: 18px;
}
.tp-msg-rich .tp-ai-list li { margin-bottom: 6px; }
.tp-typing-label { font-size: 12px; color: var(--tp-muted); margin-right: 6px; }
.tp-ai-cards { margin-top: 12px; }
.tp-ai-card-group { margin-bottom: 10px; }
.tp-ai-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tp-muted);
  margin-bottom: 6px;
}
.tp-ai-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 480px) {
  .tp-ai-card-grid { grid-template-columns: repeat(2, 1fr); }
}
.tp-ai-card {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  font-size: 13px;
}
.tp-ai-card-icon { font-size: 18px; flex-shrink: 0; }
.tp-ai-card-body { min-width: 0; }
.tp-ai-card-body strong { display: block; font-size: 13px; line-height: 1.3; }
.tp-ai-card-sub { color: var(--tp-muted); font-size: 12px; margin-top: 2px; }
.tp-ai-card-detail { color: #475569; font-size: 11px; margin-top: 4px; line-height: 1.4; }
.tp-ai-card-price { font-weight: 700; color: var(--tp-blue-dark); margin-top: 4px; font-size: 12px; }
.tp-ai-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.tp-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--tp-border);
}
.tp-quick-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--tp-text);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.tp-quick-chip:hover {
  background: var(--tp-blue);
  color: #fff;
  border-color: var(--tp-blue);
}
.tp-msg.user {
  background: var(--tp-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.tp-msg.ai {
  background: #fff;
  color: var(--tp-text);
  border: 1px solid var(--tp-border);
  border-bottom-left-radius: 4px;
}
.tp-msg.typing { background: #fff; border: 1px solid var(--tp-border); }
.tp-dots { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.tp-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
  animation: tp-bounce 1.2s infinite ease-in-out;
}
.tp-dots span:nth-child(2) { animation-delay: .15s; }
.tp-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes tp-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .5; }
  40% { transform: translateY(-5px); opacity: 1; }
}
.tp-msg-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tp-cta-chip {
  border: 1px solid var(--tp-blue-light);
  background: #eff6ff;
  color: var(--tp-blue-dark);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.tp-cta-chip:hover { background: var(--tp-blue); color: #fff; border-color: var(--tp-blue); }
.tp-chat-composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--tp-border);
  background: #fff;
  align-items: flex-end;
}
.tp-chat-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  margin: 0;
  resize: none;
}
.tp-chat-send {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 12px;
  font-size: 18px;
  flex-shrink: 0;
}

/* Search results — Trip.com style cards */
.tp-results-header { margin-bottom: 16px; }
.tp-results-header h3 { margin: 0 0 6px; font-size: 1.1rem; }

.tp-hotel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .tp-hotel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .tp-hotel-grid { grid-template-columns: repeat(3, 1fr); }
}

.tp-train-grid,
.tp-flight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .tp-train-grid,
  .tp-flight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tp-train-grid,
  .tp-flight-grid { grid-template-columns: repeat(3, 1fr); }
}

.tp-hotel-card,
.tp-train-card,
.tp-flight-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: box-shadow .15s;
}

/* Flight trip-type selector */
.tp-trip-type {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 12px;
}
.tp-trip-opt {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: var(--tp-muted);
  cursor: pointer;
  transition: all .15s;
}
.tp-trip-opt.active {
  background: var(--tp-white);
  color: var(--tp-text);
  box-shadow: 0 1px 4px rgba(15,23,42,.12);
}

/* Round-trip flight card */
.tp-rt-card { padding: 14px; }
.tp-rt-leg { padding: 6px 0; }
.tp-rt-leg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.tp-rt-leg-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--tp-brand, #2563eb);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tp-rt-leg-airline { font-size: 13px; font-weight: 700; }
.tp-rt-divider {
  height: 1px;
  background: var(--tp-border);
  margin: 8px 0;
  position: relative;
}
.tp-rt-divider::after {
  content: "⇅";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--tp-white);
  padding: 0 8px;
  color: var(--tp-muted);
  font-size: 13px;
}
.tp-rt-total-label { font-size: 12px; color: var(--tp-muted); font-weight: 700; }

/* Estimated hotel card */
.tp-badge-estimated { background: #fef3c7; color: #92400e; }
.tp-hotel-card-est { border-color: #fcd34d; }
.tp-hotel-source-row { margin-bottom: 6px; }
.tp-hotel-img-est {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #78350f;
  font-size: 26px;
  letter-spacing: 3px;
  height: 120px;
}
.tp-hotel-desc-mn { font-size: 13px; color: #475569; margin: 4px 0 6px; line-height: 1.45; }
.tp-hotel-est-note {
  font-size: 12px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 7px 9px;
  margin: 6px 0;
  line-height: 1.4;
}

/* Estimated results notice + AI suggestion panel */
.tp-est-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
}
.tp-est-notice p { margin: 0 0 10px; font-size: 13px; color: #78350f; line-height: 1.5; }
.tp-ai-hotel-suggest {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
}
.tp-ai-hotel-suggest h4 { margin: 0 0 8px; font-size: 15px; }
.tp-ai-suggest-lead { margin: 6px 0 4px; font-weight: 700; font-size: 13px; }
.tp-ai-suggest-areas { margin: 0 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.tp-ai-suggest-budget { font-size: 14px; margin: 8px 0; }
.tp-ai-suggest-fit { font-size: 13px; color: #475569; line-height: 1.5; margin: 8px 0; }
.tp-ai-suggest-actions { margin-top: 10px; }

/* Booking request note */
.tp-request-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
  margin: 10px 0;
}
.tp-hotel-card:hover,
.tp-train-card:hover,
.tp-flight-card:hover {
  box-shadow: var(--tp-shadow);
}
.tp-hotel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
  border-radius: 14px 14px 0 0;
}
@media (min-width: 600px) {
  .tp-hotel-img { height: 220px; }
}
.tp-hotel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
}
.tp-hotel-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.tp-hotel-name { margin: 6px 0 4px; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.tp-hotel-area { font-size: 13px; color: var(--tp-muted); font-weight: 600; }
.tp-hotel-desc { font-size: 13px; color: #475569; margin: 8px 0; line-height: 1.5; flex: 1; }
.tp-hotel-dist { font-size: 12px; color: var(--tp-muted); margin-bottom: 8px; }
.tp-hotel-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.tp-badge.muted { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }

.tp-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.tp-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
@media (min-width: 480px) {
  .tp-card-actions { flex-direction: row; }
}
.tp-btn-detail {
  border: 1px solid var(--tp-border);
  background: #fff;
  color: #334155;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.tp-btn-detail:hover { background: #f8fafc; }
.tp-warn { color: #b45309; }
.tp-muted { color: var(--tp-muted); font-size: 13px; }

.tp-modal-wide {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}
.tp-hotel-detail-body { margin-top: 8px; }
.tp-hotel-detail-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}
@media (min-width: 600px) {
  .tp-hotel-detail-cover { height: 260px; }
}
.tp-hotel-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}
@media (min-width: 600px) {
  .tp-hotel-detail-gallery { grid-template-columns: repeat(3, 1fr); }
}
.tp-hotel-gallery-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.tp-hotel-gallery-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}
.tp-hotel-gallery-lg img {
  height: 120px;
}
@media (min-width: 600px) {
  .tp-hotel-gallery-lg img { height: 140px; }
}
.tp-hotel-detail-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin: 10px 0 14px;
}
.tp-hotel-nearby { margin: 12px 0; font-size: 14px; }
.tp-room-amenities { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.tp-form-grid-3 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .tp-form-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tp-form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.tp-hotel-search-trip {
  padding: 4px 0 8px;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 4px;
}
.tp-filter-tag {
  font-size: 13px;
  color: #0369a1;
}
.tp-hotel-gallery-item figcaption {
  font-size: 11px;
  padding: 4px 6px;
  color: #64748b;
  background: #f8fafc;
}
.tp-hotel-detail-main h3 { margin: 8px 0 4px; }
.tp-hotel-detail-en { color: #64748b; font-size: 14px; margin: 0 0 8px; }
.tp-hotel-detail-loc { font-weight: 600; color: #475569; margin-bottom: 10px; }
.tp-hotel-detail-facts {
  margin: 12px 0;
  padding-left: 18px;
  font-size: 14px;
  color: #475569;
}
.tp-hotel-rooms { display: grid; gap: 10px; margin-bottom: 16px; }
.tp-hotel-room {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.tp-hotel-room img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #e2e8f0;
}
.tp-hotel-detail-price { margin: 16px 0 12px; }
.tp-hotel-detail-book { width: 100%; }

.tp-qpay-mock {
  width: 200px;
  height: 200px;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
}
.tp-qpay-mock small { font-weight: 600; color: #64748b; }

/* Train/flight mobile readability */
@media (max-width: 479px) {
  .tp-train-route { gap: 4px; }
  .tp-train-time { font-size: 1rem; }
  .tp-train-place { font-size: 12px; }
  .tp-train-dur { font-size: 11px; }
  .tp-flight-airline { font-size: 13px; }
}
.tp-price-final {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tp-green);
  line-height: 1.2;
}
.tp-price-note {
  font-size: 12px;
  color: var(--tp-muted);
  margin-top: 2px;
}
.tp-booking-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}
.tp-booking-price-label {
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}
.tp-booking-success {
  text-align: center;
  padding: 8px 0 4px;
}
.tp-booking-success h4 {
  margin: 12px 0 16px;
  font-size: 1.1rem;
  color: #0f172a;
}
.tp-success-icon { font-size: 2.5rem; }
.tp-success-order,
.tp-success-meta {
  margin: 8px 0;
  font-size: 14px;
  color: #475569;
}
.tp-qpay-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tp-qpay-qr {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.tp-btn-book {
  border: 0;
  background: var(--tp-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.tp-btn-book:hover { background: var(--tp-blue-dark); }

/* Train / flight route row */
.tp-train-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.tp-train-time { font-size: 1.15rem; font-weight: 800; }
.tp-train-place { font-size: 13px; font-weight: 600; color: var(--tp-text); }
.tp-train-city.align-right { text-align: right; }
.tp-train-mid { text-align: center; min-width: 80px; }
.tp-train-dur { font-size: 12px; color: var(--tp-muted); font-weight: 600; }
.tp-train-line {
  height: 2px;
  background: linear-gradient(90deg, var(--tp-blue-light), var(--tp-blue));
  margin: 6px 0;
  border-radius: 2px;
  position: relative;
}
.tp-train-line::after {
  content: "→";
  position: absolute;
  right: -4px;
  top: -10px;
  font-size: 12px;
  color: var(--tp-blue);
}
.tp-train-num { font-size: 11px; color: var(--tp-muted); font-weight: 700; }
.tp-train-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }

/* Transport — source-based train/bus */
.tp-transport-results { display: grid; gap: 20px; }
.tp-transport-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tp-border);
}
.tp-transport-card { gap: 10px; }
.tp-transport-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tp-badge-bus { background: #ecfdf5; color: #047857; }
.tp-badge-train { background: #eff6ff; color: #1d4ed8; }
.tp-badge-direct { background: #f0fdf4; color: #15803d; }
.tp-badge-transfer { background: #fff7ed; color: #c2410c; }
.tp-badge-verified { background: #dcfce7; color: #166534; }
.tp-badge-check { background: #fef3c7; color: #92400e; }
.tp-train-time-muted { font-size: 0.85rem; font-weight: 700; color: var(--tp-muted); line-height: 1.3; }
.tp-transport-transfer { font-size: 13px; color: #475569; margin: 4px 0 8px; }
.tp-transport-note { font-size: 13px; color: #475569; margin: 8px 0; line-height: 1.45; }
.tp-transport-warn {
  font-size: 12px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
  line-height: 1.4;
}
.tp-transport-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
}
.tp-transport-source {
  color: #0369a1;
  font-weight: 600;
  text-decoration: none;
}
.tp-transport-source:hover { text-decoration: underline; }
.tp-flight-airline { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.tp-flight-sub { font-size: 11px; color: var(--tp-muted); }
.tp-flight-route-summary { font-size: 12px; color: var(--tp-muted); margin: 0 0 8px; font-weight: 600; }
.tp-flight-section-title { margin: 12px 0 4px; font-size: 1rem; font-weight: 800; color: var(--tp-text); }
.tp-train-card,
.tp-flight-card {
  padding: 14px;
}
.tp-train-card-expanded {
  grid-column: 1 / -1;
}
.tp-train-route-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}
.tp-train-mode-label {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--tp-muted);
  font-weight: 600;
}
.tp-train-class-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.tp-train-class-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--tp-text);
}
.tp-train-class-grid {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .tp-train-class-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tp-train-class-grid { grid-template-columns: repeat(3, 1fr); }
}
.tp-train-class-card {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 12px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-train-class-card:hover {
  border-color: #86efac;
  background: #f0fdf4;
}
.tp-train-class-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
}
.tp-train-class-icon { font-size: 22px; line-height: 1; }
.tp-train-class-name { font-weight: 800; font-size: 14px; line-height: 1.3; }
.tp-train-class-short { font-size: 12px; color: var(--tp-muted); margin-top: 2px; line-height: 1.4; }
.tp-train-class-price {
  font-weight: 800;
  font-size: 15px;
  color: var(--tp-green);
  white-space: nowrap;
}
.tp-train-class-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-train-class-actions .tp-btn-book,
.tp-train-class-actions .tp-btn-detail {
  flex: 1;
  min-width: 110px;
  font-size: 12px;
  padding: 8px 10px;
}
.tp-train-class-detail-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.tp-train-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.tp-train-class-detail h3 { margin: 0 0 8px; font-size: 1.2rem; }
.tp-train-class-detail-route { font-size: 13px; color: var(--tp-muted); margin: 0 0 12px; font-weight: 600; }
.tp-train-class-detail-desc { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.tp-train-class-detail-block h4 { margin: 0 0 6px; font-size: 14px; }
.tp-train-class-detail-block p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #475569; }
.tp-train-class-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tp-train-class-detail-price { margin-bottom: 14px; }
.tp-results { display: grid; gap: 12px; margin-top: 14px; }
.tp-result-card {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 14px;
  background: #fafbfc;
}
.tp-result-card .price { font-size: 1.2rem; font-weight: 800; color: var(--tp-green); }
.tp-price-note { font-size: 11px; color: var(--tp-muted); }

#mockResults {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 16px;
}

/* Trust */
.tp-trust { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0; }
.tp-trust span {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* eSIM legacy section */
.esim-legacy-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 3px solid var(--tp-blue-light);
}
.esim-legacy-section .esim-legacy-label {
  text-align: center;
  margin-bottom: 20px;
}
.esim-legacy-section .esim-legacy-label h2 { color: var(--tp-blue-dark); margin: 0 0 6px; }

/* Inquiry modal */
.tp-modal-bd {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  display: none; z-index: 100010;
}
.tp-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, 94vw); max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 24px;
  display: none; z-index: 100011; box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.tp-modal h3 { margin: 0 0 16px; }
.tp-modal-close {
  position: absolute; top: 14px; right: 14px;
  border: 0; background: #f1f5f9; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 18px;
}

/* Floating travel assistant */
:root {
  --tp-dock-scale: 1;
}

.tp-assist-dock {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 10048;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transform: scale(var(--tp-dock-scale, 1));
  transform-origin: bottom right;
  pointer-events: none;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
}
.tp-assist-dock > * {
  pointer-events: auto;
}

.tp-chat-dock {
  width: min(400px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}
.tp-chat-dock .tp-chat {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: min(380px, calc(100vh - 240px));
  overflow-y: auto;
}
body.tp-assist-open .tp-assist-dock .tp-chat-dock {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tp-assist-fab {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(29, 78, 216, 0.35), 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}
.tp-assist-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(29, 78, 216, 0.42), 0 4px 12px rgba(15, 23, 42, 0.14);
}
.tp-assist-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.92); }
.tp-assist-fab-icon { font-size: 20px; line-height: 1; }

.tp-assist-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 10055;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.tp-assist-backdrop.is-open { opacity: 1; pointer-events: auto; }

.tp-assist-panel {
  position: fixed;
  z-index: 10060;
  background: var(--tp-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.tp-assist-panel:not(.is-open) {
  opacity: 0; pointer-events: none;
  transform: translateX(105%);
}
.tp-assist-panel.is-open {
  opacity: 1; pointer-events: auto;
  transform: translateX(0);
}

@media (min-width: 769px) {
  .tp-assist-panel {
    top: 0; right: 0; bottom: 0;
    width: min(420px, 92vw);
    border-left: 1px solid var(--tp-border);
  }
}

@media (max-width: 768px) {
  .tp-assist-dock {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    z-index: 10070;
  }
  .tp-assist-dock > .tp-chat-dock {
    display: none;
  }
  .tp-assist-fab {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .tp-assist-fab-text { display: none; }
  .tp-assist-fab-icon { font-size: 24px; }
  .tp-chat-dock {
    width: min(360px, calc(100vw - 20px));
    max-height: min(460px, calc(100vh - 150px));
  }
  .tp-chat-dock .tp-chat {
    min-height: 160px;
    max-height: min(300px, calc(100vh - 260px));
  }
  .tp-assist-backdrop,
  .travel-chat-backdrop {
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
    z-index: 9997;
  }
  .tp-assist-panel,
  .travel-chat-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    top: auto;
    width: auto;
    height: 55vh;
    height: 55dvh;
    max-height: 70vh;
    max-height: 70dvh;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 9998;
    transform: translateY(calc(100% + 110px));
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.24);
  }
  .tp-assist-panel.is-open { transform: translateY(0); }
  .tp-assist-panel:not(.is-open) { transform: translateY(calc(100% + 110px)); }
  .tp-assist-panel.is-expanded {
    top: max(12px, env(safe-area-inset-top, 0px));
    height: auto;
    max-height: none;
  }
  .tp-assist-expand { display: inline-flex; align-items: center; justify-content: center; }
  .tp-assist-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 22px;
  }
  .tp-assist-expand {
    top: 10px;
    right: 50px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .tp-assist-header {
    max-height: 80px;
    padding: 14px 90px 10px 16px;
    overflow: hidden;
  }
  .tp-assist-header h2 {
    font-size: 17px;
    margin-bottom: 3px;
  }
  .tp-assist-header p {
    font-size: 12px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tp-assist-body {
    padding: 12px;
    min-height: 0;
  }
  .tp-assist-ai {
    flex: 1;
    overflow: hidden;
    padding-top: 6px;
  }
  .tp-assist-back {
    margin: 0 0 6px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .tp-assist-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tp-assist-action {
    padding: 10px;
    gap: 2px 8px;
    border-radius: 12px;
  }
  .tp-assist-action-icon { font-size: 19px; }
  .tp-assist-action-label { font-size: 13px; }
  .tp-assist-action-hint { display: none; }
  .tp-assist-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tp-assist-quick-btn {
    min-height: 40px;
    padding: 9px 8px;
    font-size: 12px;
  }
  .tp-assist-ai-host,
  .tp-assist-ai-host .tp-chat-widget {
    flex: 1;
    min-height: 0;
  }
  .tp-assist-ai-host .tp-chat-widget {
    display: flex;
  }
  .tp-assist-ai-host .tp-chat-widget {
    border-radius: 14px 14px 0 0;
  }
  .tp-assist-ai-host .tp-chat,
  .travel-chat-messages {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    font-size: 14px;
  }
  .tp-msg-rich,
  .tp-msg {
    font-size: 14px;
    line-height: 1.5;
  }
  .tp-msg-bubble-wide { max-width: 100%; }
  .tp-ai-quick,
  .tp-msg-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tp-quick-chip,
  .tp-cta-chip {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
    font-size: 12px;
    padding: 8px 9px;
  }
  .tp-chat-composer,
  .travel-chat-input {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--tp-border);
    z-index: 2;
  }
  .tp-chat-input {
    min-height: 40px;
    max-height: 92px;
    font-size: 16px;
  }
  .tp-chat-send {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }
  body.tp-assist-open .tp-assist-dock .tp-chat-dock {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  body.tp-assist-open .tp-assist-fab.is-hidden {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.tp-assist-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: #f1f5f9; color: var(--tp-text);
  font-size: 22px; line-height: 1;
  cursor: pointer; z-index: 2;
  transition: background 0.15s ease;
}
.tp-assist-close:hover { background: #e2e8f0; }
.tp-assist-expand {
  position: absolute;
  top: 14px;
  right: 56px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--tp-text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: none;
}
.tp-assist-expand:hover { background: #e2e8f0; }

.tp-assist-header {
  padding: 24px 52px 16px 20px;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  border-bottom: 1px solid var(--tp-border);
  flex-shrink: 0;
}
.tp-assist-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--tp-blue-dark);
}
.tp-assist-header p {
  margin: 0;
  font-size: 13px;
  color: var(--tp-muted);
  line-height: 1.45;
}

.tp-assist-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 24px;
}
.tp-assist-section { margin-bottom: 20px; }
.tp-assist-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

.tp-assist-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-assist-action {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tp-assist-action:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.1);
  transform: translateY(-1px);
}
.tp-assist-action-primary {
  background: linear-gradient(135deg, #eff6ff, #fff);
  border-color: #93c5fd;
}
.tp-assist-action-icon { grid-row: 1 / 3; font-size: 22px; }
.tp-assist-action-label { font-size: 15px; font-weight: 700; color: var(--tp-text); }
.tp-assist-action-hint { grid-column: 2; font-size: 11px; color: var(--tp-muted); }

.tp-assist-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tp-assist-quick-btn {
  padding: 12px 10px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tp-assist-quick-btn:hover {
  background: var(--tp-blue-light);
  border-color: #93c5fd;
}

.tp-assist-ai { display: flex; flex-direction: column; padding-top: 8px; }
.tp-assist-back {
  align-self: flex-start;
  margin: 0 0 8px 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tp-blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.tp-assist-back:hover { background: var(--tp-blue-light); }
.tp-assist-ai-host {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tp-assist-ai-host .tp-chat-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-height: none;
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.tp-assist-ai-host .tp-chat {
  flex: 1;
  max-height: none;
  min-height: 280px;
}
@media (max-width: 768px) {
  .tp-assist-ai-host .tp-chat { min-height: 0; }
}
@media (min-width: 769px) {
  body.tp-assist-open { overflow: hidden; }
}
@media (max-width: 768px) {
  .tp-assist-dock {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    z-index: 10070;
  }
  .tp-assist-backdrop,
  .travel-chat-backdrop {
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
    z-index: 9997;
  }
  .tp-assist-panel,
  .travel-chat-panel {
    left: 12px;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    top: auto;
    width: auto;
    height: 55vh;
    height: 55dvh;
    max-height: 70vh;
    max-height: 70dvh;
    border-radius: 22px 22px 0 0;
    transform: translateY(calc(100% + 110px));
  }
  .tp-assist-panel.is-open { transform: translateY(0); }
  .tp-assist-panel:not(.is-open) { transform: translateY(calc(100% + 110px)); }
  .tp-assist-panel.is-expanded {
    top: max(12px, env(safe-area-inset-top, 0px));
    height: auto;
    max-height: none;
  }
  .tp-assist-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .tp-assist-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 10px;
    right: 50px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .tp-assist-header {
    max-height: 80px;
    padding: 14px 90px 10px 16px;
  }
  .tp-assist-header h2 { font-size: 17px; margin-bottom: 3px; }
  .tp-assist-header p { font-size: 12px; line-height: 1.25; }
  .tp-assist-body { padding: 12px; min-height: 0; }
  .tp-assist-ai { flex: 1; overflow: hidden; padding-top: 6px; }
  .tp-assist-back { margin: 0 0 6px; padding: 6px 10px; font-size: 13px; }
  .tp-assist-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tp-assist-action { padding: 10px; gap: 2px 8px; border-radius: 12px; }
  .tp-assist-action-icon { font-size: 19px; }
  .tp-assist-action-label { font-size: 13px; }
  .tp-assist-action-hint { display: none; }
  .tp-assist-ai-host,
  .tp-assist-ai-host .tp-chat-widget {
    flex: 1;
    min-height: 0;
  }
  .tp-assist-ai-host .tp-chat,
  .travel-chat-messages {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    font-size: 14px;
  }
  .tp-chat-composer,
  .travel-chat-input {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--tp-border);
    z-index: 2;
  }
}

/* Sticky mobile */
.tp-sticky-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--tp-white);
  border-top: 1px solid var(--tp-border);
  padding: 10px 12px;
  gap: 8px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
@media (max-width: 768px) {
  .tp-sticky-mobile { display: flex; }
  .tp-sticky-mobile a, .tp-sticky-mobile button {
    flex: 1; text-align: center; padding: 10px 8px;
    border-radius: 10px; font-size: 12px; font-weight: 700;
    text-decoration: none; border: 1px solid var(--tp-border);
    background: #fff; color: var(--tp-text);
  }
  .tp-sticky-mobile .primary { background: var(--tp-blue); color: #fff; border-color: var(--tp-blue); }
  body.platform-body { padding-bottom: 70px; }
}

/* Platform FAQ */
.tp-faq details {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.tp-faq summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.tp-faq .ans { margin-top: 8px; font-size: 14px; color: var(--tp-muted); line-height: 1.55; }

/* Hotel results — Trip.com-style sidebar + map */
.tp-results-container.tp-hotel-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .tp-results-container.tp-hotel-layout {
    grid-template-columns: 260px 1fr;
  }
}
.tp-hotel-filters {
  display: none;
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  padding: 0;
  position: relative;
  z-index: 1101;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.tp-hotel-filters.tp-hotel-filters-visible {
  display: block;
}
@media (max-width: 959px) {
  .tp-hotel-filters.tp-hotel-filters-visible {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    max-height: none;
    border-radius: 0 14px 14px 0;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }
  .tp-hotel-filters.tp-hotel-filters-visible.open {
    transform: translateX(0);
  }
}
.tp-hotel-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tp-border);
  position: sticky;
  top: 0;
  background: var(--tp-white);
  z-index: 1;
}
.tp-hotel-filters-head h4 { margin: 0; font-size: 1rem; }
.tp-hotel-filters-close {
  display: none;
  border: none;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 959px) {
  .tp-hotel-filters-close { display: block; }
}
.tp-hotel-filters-body {
  padding: 14px 16px 18px;
  display: grid;
  gap: 12px;
}
.tp-filter-checks {
  display: grid;
  gap: 8px;
}
.tp-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.tp-check input { margin-top: 3px; flex-shrink: 0; }
.tp-btn-block { width: 100%; margin-top: 4px; }
.tp-btn-filter-mob { display: inline-flex; }
@media (min-width: 960px) {
  .tp-btn-filter-mob { display: none; }
}
.tp-hotel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
}
.tp-hotel-sort {
  flex: 1;
  min-width: 160px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--tp-border);
  font-size: 14px;
}
.tp-filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 1100;
}
.tp-hotel-map-placeholder {
  margin-bottom: 14px;
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
  min-height: 200px;
}
.tp-map-mock-inner {
  padding: 20px;
  text-align: center;
  position: relative;
}
.tp-map-mock-inner p { margin: 4px 0; font-weight: 700; }
.tp-map-mock-grid {
  position: relative;
  height: 140px;
  margin-top: 12px;
  background: rgba(255,255,255,.5);
  border-radius: 10px;
  border: 1px dashed #94a3b8;
}
.tp-map-pin {
  position: absolute;
  font-size: 18px;
  transform: translate(-50%, -50%);
  cursor: default;
}
.tp-results-main { min-width: 0; }

/* Global location autocomplete */
.tp-loc-wrap { position: relative; width: 100%; }
.tp-loc-wrap > input[type="text"] { width: 100%; }
.tp-loc-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10020;
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.tp-loc-dropdown.is-open { display: block; }
.tp-loc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease;
}
.tp-loc-item:last-child { border-bottom: 0; }
.tp-loc-item:hover,
.tp-loc-item.is-active { background: #eff6ff; }
.tp-loc-item-special { background: #f8fafc; }
.tp-loc-flag { font-size: 22px; line-height: 1; flex-shrink: 0; }
.tp-loc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-loc-body strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-loc-sub {
  font-size: 12px;
  color: var(--tp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-loc-iata {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--tp-blue);
  background: var(--tp-blue-light);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Hotel city searchable combobox */
.tp-city-combo-wrap {
  position: relative;
  width: 100%;
}
.tp-city-combo-wrap > input[type="text"] {
  width: 100%;
}
.tp-city-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10020;
}

/* Attraction search results */
.tp-attraction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.tp-attraction-card {
  background: #fff;
  border: 1px solid var(--tp-border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.tp-attraction-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.tp-attraction-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tp-attraction-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tp-attraction-pop {
  font-size: 13px;
  letter-spacing: 1px;
  color: #f59e0b;
}
.tp-attraction-name {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}
.tp-attraction-meta {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}
.tp-attraction-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}
.tp-attraction-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tp-badge-cat { background: #eff6ff; color: #1d4ed8; }
.tp-badge-indoor { background: #f5f3ff; color: #6d28d9; }
.tp-badge-family, .tp-badge-free, .tp-badge-mock {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}
.tp-badge-free { background: #ecfdf5; color: #047857; }
.tp-badge-mock { background: #fff7ed; color: #c2410c; }
.tp-attraction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.tp-btn-save.saved { color: #e11d48; }
.tp-attraction-map-wrap .tp-attraction-map-canvas {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  z-index: 1;
}
.tp-attraction-detail-body {
  max-height: 85vh;
  overflow-y: auto;
}
.tp-attraction-detail-hero {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.tp-attraction-detail-hero img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.tp-attraction-detail-main h3 { margin: 8px 0; }
.tp-attraction-detail-loc { color: #64748b; font-size: 14px; }
.tp-attraction-detail-desc { line-height: 1.55; }
.tp-attraction-detail-facts {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.tp-attraction-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
  font-size: 13px;
}
.tp-attraction-detail-grid h4 { margin: 0 0 4px; font-size: 13px; }
.tp-attraction-detail-block { margin: 12px 0; font-size: 14px; }
.tp-attraction-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .tp-attraction-grid { grid-template-columns: 1fr; }
  .tp-attraction-map-wrap .tp-attraction-map-canvas { height: 280px; }
}
.tp-btn-sm {
  font-size: 12px;
  padding: 6px 10px;
}
.tp-results-container.tp-attraction-layout .tp-hotel-filters#hotelFiltersSidebar {
  display: none;
}
.tp-results-container.tp-attraction-layout #attractionFiltersSidebar.tp-hotel-filters-visible {
  display: block;
}
