/* ======================================================
   Trip safety (share link + SOS) and the public trip page
   ====================================================== */
.bl-ts { display: grid; gap: 14px; padding: 22px 24px; border: 1px solid var(--bl-line); border-radius: 24px; background: var(--surface-cream); }
.bl-ts-head h3 { margin: 0 0 4px; font: 700 var(--card-title)/1.25 var(--font-display); }
.bl-ts-head p { margin: 0; color: var(--ink-secondary); font: 400 var(--body-compact)/1.55 var(--font-body); max-width: 56ch; }
.bl-bk-modal .bl-ts-head p { max-width: none; }
.bl-ts-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-ts-sos { background: #C62828; border-color: #C62828; color: #fff; font-weight: 800; letter-spacing: .06em; }
.bl-ts-sos:hover { background: #A81F1F; color: #fff; }
.bl-ts-link { display: grid; gap: 10px; }
.bl-ts-link input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--bl-line); border-radius: 12px; background: #fff; color: var(--ink-primary); font: 500 13px/1 var(--font-body); }
.bl-ts-link-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-ts-error { margin: 0; color: #B3261E; font: 600 13px/1.4 var(--font-body); }
.bl-ts-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; background: rgba(8, 24, 51, .62); }
.bl-ts-dialog { width: min(480px, 100%); max-height: 90dvh; overflow: auto; display: grid; gap: 14px; padding: 24px; border-radius: 24px; background: var(--surface-cream); box-shadow: var(--bl-shadow-lg); }
.bl-ts-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-ts-dialog h2 { margin: 0; font: 700 var(--subsection)/1.25 var(--font-display); }
.bl-ts-dialog p { margin: 0; color: var(--ink-secondary); font: 400 var(--body-compact)/1.55 var(--font-body); }
.bl-ts-dialog small { color: var(--ink-secondary); font: 400 12px/1.5 var(--font-body); }
.bl-ts-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(11, 24, 48, .06); color: var(--ink-primary); font-size: 22px; line-height: 1; cursor: pointer; }
.bl-ts-numbers { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bl-ts-call { width: 100%; justify-content: flex-start; gap: 16px; background: #C62828; border-color: #C62828; color: #fff; text-align: left; }
.bl-ts-call strong { font: 800 26px/1 var(--font-body); }
.bl-ts-call span { font: 600 14px/1.3 var(--font-body); }
.bl-ts-call:hover { background: #A81F1F; color: #fff; }
.bl-ts-sos-more { display: grid; gap: 10px; }

.bl-trip { min-height: calc(100dvh - var(--bl-nav-height)); padding: 32px 16px 64px; }
.bl-trip-card { width: min(720px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid var(--bl-line); border-radius: 32px; background: var(--surface-cream); box-shadow: var(--bl-shadow-md); }
.bl-trip-hero { position: relative; aspect-ratio: 16 / 9; background: var(--bl-night-2) var(--bl-trip-img) center / cover no-repeat; }
.bl-trip-badge { position: absolute; top: 16px; left: 16px; padding: 7px 14px; border-radius: 999px; background: var(--accent-yellow); color: var(--ink-primary); font: 800 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.bl-trip-body { display: grid; gap: 18px; padding: 28px 32px 32px; }
.bl-trip-body h1 { margin: 0; font: 700 var(--page-title)/1.1 var(--font-display); }
.bl-trip-title { margin: 0; font: 700 var(--subsection)/1.25 var(--font-display); }
.bl-trip-host { display: flex; align-items: center; gap: 12px; }
.bl-trip-host img, .bl-trip-host > span { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bl-night-2); color: #fff; display: grid; place-items: center; font: 700 20px/1 var(--font-body); }
.bl-trip-host strong { display: block; font: 700 16px/1.2 var(--font-body); }
.bl-trip-host small { color: var(--accent-green-text); font: 600 13px/1.3 var(--font-body); }
.bl-trip-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--bl-line); }
.bl-trip-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bl-line); }
.bl-trip-facts dt { color: var(--ink-secondary); font: 700 11px/1.6 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.bl-trip-facts dd { margin: 0; font: 600 15px/1.5 var(--font-body); }
.bl-trip-facts a { color: var(--accent-green-text); font-weight: 700; }
.bl-trip-note { margin: 0; color: var(--ink-secondary); font: 400 var(--body-compact)/1.55 var(--font-body); }
.bl-trip-quote { margin: 0; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--bl-line); }
.bl-trip-quote blockquote { margin: 6px 0 0; font: italic 400 var(--quote)/1.4 var(--font-display); }
.bl-trip-stars { color: var(--bl-rating); letter-spacing: 2px; }
.bl-trip-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-trip-card.is-story .bl-trip-body { background: linear-gradient(180deg, var(--surface-cream), #FFF6CC); }
@media (max-width: 600px) {
    .bl-trip { padding: 16px 12px 96px; }
    .bl-trip-body { padding: 22px 20px 24px; }
    .bl-trip-facts > div { grid-template-columns: 74px 1fr; }
    .bl-trip-actions .bl-btn { flex: 1 1 100%; }
}

/* Language switch in the nav */
.bl-lang { min-height: 36px; padding: 0 12px; border: 1px solid var(--bl-line); border-radius: 999px; background: transparent; color: inherit; font: 700 13px/1 var(--font-body); cursor: pointer; }
.bl-lang:hover { background: rgba(11, 24, 48, .06); }
.bl-nav.is-dark .bl-lang { border-color: rgba(255, 255, 255, .3); color: #fff; }
.bl-home-vibe-cta { align-self: flex-start; margin-top: 4px; }

/* Chinese typography: CJK-capable fonts, looser leading, no tracking or caps tricks that only suit Latin text */
html[lang="zh-CN"] {
    --font-display: 'Lora', 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
    --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
html[lang="zh-CN"] body { line-height: 1.7; line-break: strict; }
html[lang="zh-CN"] p, html[lang="zh-CN"] li, html[lang="zh-CN"] dd { line-height: 1.7; }
html[lang="zh-CN"] .t-display-xl { line-height: 1.2; }
html[lang="zh-CN"] .t-display, html[lang="zh-CN"] .t-page-title { line-height: 1.25; }
html[lang="zh-CN"] .t-section-lg, html[lang="zh-CN"] .t-section { line-height: 1.3; }
html[lang="zh-CN"] .t-subsection, html[lang="zh-CN"] .t-card-title, html[lang="zh-CN"] h3 { line-height: 1.4; }
/* Two-line card titles: the box must match the 1.4 line height above (revamp.css:341 reserves 2 x 1.25). */
html[lang="zh-CN"] .bl-tour-card h3 { line-height: 1.4; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { letter-spacing: 0; font-weight: 700; }
html[lang="zh-CN"] .bl-eyebrow, html[lang="zh-CN"] .t-eyebrow, html[lang="zh-CN"] .bl-field > span, html[lang="zh-CN"] .bl-field > label,
html[lang="zh-CN"] .bl-tour-card-place, html[lang="zh-CN"] .bl-ps-group { letter-spacing: .06em; text-transform: none; font-size: 12px; font-weight: 700; }
html[lang="zh-CN"] .bl-eyebrow { margin-bottom: 10px; line-height: 1.5; }
html[lang="zh-CN"] .bl-btn, html[lang="zh-CN"] .bl-badge, html[lang="zh-CN"] .bl-chip { line-height: 1.3; letter-spacing: .02em; }

/* Host and admin workspaces on tablets and phones: one column, with the sidebar as a swipeable tab strip above the content */
@media (max-width: 1000px) {
    .bl-workspace-page .bl-workspace-layout,
    .bl-workspace-page:not(.bl-editor-page) .bl-workspace-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    /* A short page (an empty list) left the screen-height min-height to be shared between the two rows, which pushed the content ~56px below the tab strip */
    .bl-workspace-page:not(.bl-editor-page) .bl-workspace-layout { align-content: start; }
    .bl-workspace-page:not(.bl-editor-page) .bl-workspace-sidebar { position: static; min-height: 0; padding: 10px 12px; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .bl-workspace-page:not(.bl-editor-page) .bl-workspace-sidebar::-webkit-scrollbar { display: none; }
    .bl-workspace-page:not(.bl-editor-page) .bl-workspace-sidebar:before,
    .bl-workspace-page .bl-workspace-sidebar .bl-workspace-label { display: none; }
    .bl-workspace-page .bl-workspace-sidebar nav { display: flex; flex-wrap: nowrap; gap: 6px; }
    .bl-workspace-page .bl-workspace-sidebar nav a,
    .bl-workspace-page .bl-workspace-sidebar-foot a { flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; border-radius: 999px; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
    .bl-workspace-page .bl-workspace-sidebar-foot { margin: 0; padding: 0; border: 0; flex: 0 0 auto; }
}

/* Eyebrow lines sat flush against large page titles */
.bl-eyebrow + .t-display-xl, .bl-eyebrow + .t-display, .bl-eyebrow + .t-page-title { margin-top: 8px; }

/* Host growth surfaces: additions to the existing Guide workspace. */
.bl-host-growth, .bl-host-links-panel {
    margin: 0 0 28px;
    padding: 22px;
    color: #0B1830;
    background: #F8F4EB;
    border: 1px solid #E7E9EC;
    border-radius: 16px;
}
.bl-host-growth-heading, .bl-host-growth-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.bl-host-growth-heading h2, .bl-host-growth-panel-heading h3,
.bl-host-growth-links h3, .bl-host-link-create h3, .bl-host-health-panel h3,
.bl-host-link-performance h3, .bl-host-currency-group h3 {
    margin: 0;
    color: #0B1830;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
}
.bl-host-growth-heading h2 { font-size: 24px; }
.bl-host-growth-heading p, .bl-host-growth-panel-heading span {
    margin: 5px 0 0;
    color: #646F82;
    font-size: 13px;
}
.bl-host-growth-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-host-qr-panel { display: flex; align-items: center; gap: 18px; padding: 16px; border: 1px solid #E7E9EC; border-radius: 12px; background: #fff; }
.bl-host-qr-panel img { width: 180px; height: 180px; flex: 0 0 auto; }
.bl-host-qr-panel p { color: #646F82; margin: 6px 0 10px; }
.bl-follow-feedback { color: #a62828; margin: 8px 0 0; }
.bl-host-growth-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bl-host-growth-metric, .bl-host-growth-panel, .bl-host-health-panel, .bl-host-source-card {
    min-width: 0;
    padding: 18px;
    background: #FFFCF6;
    border: 1px solid #E7E9EC;
    border-radius: 14px;
}
.bl-host-growth-metric { display: flex; min-height: 112px; flex-direction: column; gap: 7px; }
.bl-host-growth-metric > span, .bl-host-source-primary span, .bl-host-source-secondary span {
    color: #646F82;
    font-size: 12px;
}
.bl-host-growth-metric strong { font-family: 'Lora', Georgia, serif; font-size: 25px; line-height: 1.2; }
.bl-host-growth-metric strong.bl-host-growth-amount { font-size: 18px; }
.bl-host-growth-metric small { color: #646F82; font-size: 11px; }
.bl-host-growth-columns { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(230px, 1fr); gap: 16px; margin-top: 16px; }
.bl-host-growth-panel { min-height: 180px; }
.bl-host-growth-panel-heading { margin-bottom: 12px; }
.bl-host-growth-panel-heading h3, .bl-host-growth-links h3, .bl-host-health-panel h3, .bl-host-link-performance h3 { font-size: 17px; }
.bl-host-growth-panel-heading span { font-size: 11px; }
.bl-host-growth-activity { margin: 0; padding: 0; list-style: none; }
.bl-host-growth-activity li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #E7E9EC; }
.bl-host-growth-activity li > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.bl-host-growth-activity li strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.bl-host-growth-activity li span:not(.badge) { color: #646F82; font-size: 11px; }
.bl-host-growth-empty { margin: 0; padding: 18px 0; color: #646F82; font-size: 13px; }
.bl-host-growth-links p { margin: 10px 0 5px; font-size: 13px; }
.bl-host-growth-links small { display: block; color: #646F82; font-size: 11px; }
.bl-host-growth-links > a { display: inline-block; margin-top: 22px; color: var(--bl-navy, #1a2340); font-size: 12px; font-weight: 700; text-decoration: none; }
.bl-host-growth-links > a:hover, .bl-host-growth-links > a:focus-visible { color: #66582e; text-decoration: underline; text-underline-offset: 3px; }
.bl-host-growth-notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; color: #0B1830; background: #FFFCF6; border: 1px solid #E7E9EC; border-radius: 12px; }
.bl-host-growth-notice p { margin: 5px 0 0; color: #646F82; font-size: 12px; }
.bl-host-growth-notice-error { border-color: #E4B8B6; }
.bl-host-link-create { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.4fr) auto; align-items: end; gap: 14px; padding: 18px; background: #FFFCF6; border: 1px solid #E7E9EC; border-radius: 14px; }
.bl-host-link-create h3 { font-size: 17px; }
.bl-host-link-create p { margin: 5px 0 0; color: #646F82; font-size: 12px; }
.bl-host-links-list { margin-top: 22px; }
.bl-host-links-list > .bl-host-growth-notice { margin-top: 12px; }
.bl-host-link-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.1fr) auto; align-items: center; gap: 16px; margin-top: 12px; padding: 16px; background: #FFFCF6; border: 1px solid #E7E9EC; border-radius: 12px; }
.bl-host-link-title, .bl-host-link-url { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.bl-host-link-title strong { font-size: 13px; }
.bl-host-link-title span, .bl-host-link-url label, .bl-host-link-url > span { color: #646F82; font-size: 11px; }
.bl-host-link-url input { min-width: 0; color: var(--bl-navy, #1a2340); font-size: 12px; }
.bl-host-link-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; }
.bl-host-link-feedback { margin: 12px 0 0; color: #167650; font-size: 13px; }
.bl-host-link-error { color: #A63634; }
.bl-host-source-report { padding: 22px; }
.bl-host-source-report .bl-eyebrow { margin: 0 0 6px; color: #646F82; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.bl-host-report-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; padding: 14px; background: #FFFCF6; border: 1px solid #E7E9EC; border-radius: 12px; }
.bl-host-report-filter > div { display: flex; flex-direction: column; gap: 5px; }
.bl-host-report-filter label { color: #646F82; font-size: 11px; }
.bl-host-report-filter input { width: 170px; min-height: 40px; }
.bl-host-report-filter small { margin: 0 auto 9px 0; color: #646F82; font-size: 11px; }
.bl-host-currency-group { margin: 18px 0; }
.bl-host-currency-group h3 { margin-bottom: 10px; font-family: var(--font-body, Inter, sans-serif); font-size: 14px; }
.bl-host-currency-group h3 span { color: #646F82; font-weight: 400; }
.bl-host-source-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bl-host-source-card h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.bl-host-source-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.bl-host-source-dot.is-marketplace { background: #2864FF; }
.bl-host-source-dot.is-referral { background: #167650; }
.bl-host-source-dot.is-unknown { background: #646F82; }
.bl-host-source-help { min-height: 30px; margin: 7px 0 14px; color: #646F82; font-size: 11px; }
.bl-host-source-primary, .bl-host-source-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bl-host-source-primary > div, .bl-host-source-secondary > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.bl-host-source-primary span, .bl-host-source-secondary span { font-size: 10px; }
.bl-host-source-primary strong { font-size: 17px; }
.bl-host-source-secondary { margin-top: 12px; padding-top: 10px; border-top: 1px solid #E7E9EC; }
.bl-host-source-secondary strong { font-size: 12px; }
.bl-host-health-panel { margin: 18px 0; }
.bl-host-health-panel dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 16px 0 10px; }
.bl-host-health-panel dl > div { min-width: 0; }
.bl-host-health-panel dt { color: #646F82; font-size: 11px; font-weight: 400; }
.bl-host-health-panel dd { margin: 4px 0 0; font-family: 'Lora', Georgia, serif; font-size: 21px; font-weight: 700; }
.bl-host-health-panel > p { margin: 0; color: #646F82; font-size: 11px; }
.bl-host-link-performance { margin-top: 18px; }
.bl-host-link-performance table { margin: 8px 0 0; font-size: 12px; }
.bl-host-link-performance th, .bl-host-link-performance td { white-space: nowrap; }
.bl-host-link-performance td { font-variant-numeric: tabular-nums; }
.bl-host-link-performance th[scope="row"] { white-space: normal; }
.bl-host-link-performance caption { color: #646F82; }
.bl-host-growth :focus-visible, .bl-host-links-panel :focus-visible { outline: 3px solid #2864FF; outline-offset: 3px; }

@media (max-width: 900px) {
    .bl-host-growth-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-host-growth-columns { grid-template-columns: 1fr; }
    .bl-host-source-cards { grid-template-columns: 1fr; }
    .bl-host-source-help { min-height: 0; }
    .bl-host-link-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .bl-host-link-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .bl-host-qr-panel { align-items: flex-start; flex-direction: column; }
  .bl-host-qr-panel img { width: 150px; height: 150px; }
    .bl-host-experiences-heading { align-items: flex-start !important; flex-direction: column; gap: 12px; }
    .bl-host-experiences-heading > a { align-self: flex-start; max-width: 100%; white-space: normal; }
    .bl-host-growth, .bl-host-links-panel, .bl-host-source-report { padding: 16px; border-radius: 13px; }
    .bl-host-growth-heading { flex-direction: column; }
    .bl-host-growth-actions { width: 100%; }
    .bl-host-growth-actions > a { flex: 1 1 auto; }
    .bl-host-growth-metrics { gap: 9px; }
    .bl-host-growth-metric { min-height: 102px; padding: 13px; }
    .bl-host-growth-metric > span { font-size: 10px; }
    .bl-host-growth-metric strong { font-size: 21px; }
    .bl-host-growth-metric strong.bl-host-growth-amount { font-size: 16px; }
    .bl-host-growth-activity li { grid-template-columns: minmax(0, 1fr) auto; }
    .bl-host-growth-activity li > a { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
    .bl-host-growth-notice { align-items: flex-start; }
    .bl-host-link-create { grid-template-columns: 1fr; align-items: stretch; padding: 15px; }
    .bl-host-link-create .btn { min-height: 44px; }
    .bl-host-link-row { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
    .bl-host-link-actions { grid-column: auto; }
    .bl-host-link-actions > button { flex: 1 1 auto; min-height: 42px; }
    .bl-host-report-filter { display: grid; grid-template-columns: 1fr 1fr; }
    .bl-host-report-filter input { width: 100%; }
    .bl-host-report-filter > button { grid-column: 1 / -1; min-height: 44px; }
    .bl-host-report-filter small { grid-column: 1 / -1; margin: 0; }
    .bl-host-health-panel dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-host-link-performance :is(.table-responsive,.bl-table-responsive) { overflow: visible; }
    .bl-host-link-performance table, .bl-host-link-performance tbody { display: block; width: 100%; }
    .bl-host-link-performance thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .bl-host-link-performance tbody tr { display: block; margin: 10px 0; padding: 12px; background: #FFFCF6; border: 1px solid #E7E9EC; border-radius: 10px; }
    .bl-host-link-performance tbody th[scope="row"] { display: block; padding: 4px 0 10px; white-space: normal; }
    .bl-host-link-performance tbody td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border: 0; text-align: right; white-space: normal; }
    .bl-host-link-performance tbody td::before { content: attr(data-label); color: #646F82; font-size: 11px; text-align: left; }
}

/* Q-05 re-QC NEW-2: host workspace tap targets reach 44px at phone width. Inside the phone query, so desktop is unchanged. */
@media (max-width: 767.98px) {
    .bl-workspace-page:not(.bl-admin-page) .bl-btn { min-height: 44px; }
    .bl-workspace-page .bl-earn-scroll td > a { display: inline-flex; align-items: center; min-height: 44px; }
    .bl-workspace-page .bl-schedule-weekly .form-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-left: 0; }
    .bl-workspace-page .bl-schedule-weekly .form-check-input { float: none; flex: none; margin: 0; }
    .bl-workspace-page .bl-schedule-weekly .form-check-label { display: flex; align-items: center; flex: 1 1 auto; min-height: 44px; cursor: pointer; }
}
