/* ==========================================================================
   Travel info section (/travelinfo/{link}) — ti- prefix
   A deliberately different composition from the tour pages: full-bleed photo hero,
   section sub-navigation and a light "paper" reading surface.
   Depends on home-redesign.css tokens only.
   ========================================================================== */
.ti { background: #151919; color: #fff; }
.ti .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.ti .container:before, .ti .container:after { display: none !important; } /* bootstrap clearfix would become grid items */

/* ---------- hero: photo first, copy anchored to the bottom ---------- */
.ti-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; background: #2a2f2f center / cover no-repeat; }
.ti-hero:before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 25, 25, .55) 0%, rgba(21, 25, 25, .10) 30%, rgba(21, 25, 25, .62) 58%, rgba(21, 25, 25, .97) 100%); }
.ti-hero__copy, .ti-hero__crumbs { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.ti-hero .container { position: relative; z-index: 1; width: 100%; padding-top: 24px; padding-bottom: 34px; }
.ti-hero__crumbs { position: absolute; top: 0; left: 15px; right: 15px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .7); }
.ti-hero__crumbs a { color: rgba(255, 255, 255, .7) !important; }
.ti-hero__crumbs a:hover { color: var(--hx-yellow) !important; }
.ti-hero__crumbs span:last-child { color: #fff; }
.ti-hero__copy { max-width: 760px; }
.ti-hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hx-yellow); margin-bottom: 14px; }
.ti-hero__kicker:before { content: ''; width: 28px; height: 3px; background: var(--hx-yellow); border-radius: 2px; }
.ti-hero h1 { margin: 0 0 12px; color: #fff; font-size: 42px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.ti-hero__lead { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .85); }

/* ---------- section sub-navigation ---------- */
.ti-nav { position: sticky; top: 60px; z-index: 20; background: #151919; border-bottom: 1px solid var(--hx-line); }
.ti-nav__inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ti-nav__inner::-webkit-scrollbar { display: none; }
.ti-nav__label { flex: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-muted); margin-right: 10px; white-space: nowrap; }
.ti-nav a {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 14px 14px;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, .75) !important;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}
.ti-nav a i { color: var(--hx-muted); font-size: 13px; }
.ti-nav a:hover { color: #fff !important; text-decoration: none; }
.ti-nav a[aria-current="page"] { color: #fff !important; border-bottom-color: var(--hx-yellow); }
.ti-nav a[aria-current="page"] i { color: var(--hx-yellow); }

/* ---------- paper surface ---------- */
.ti-paper { background: #f4f1ea; color: #2b2f2f; padding: 44px 0 56px; }
.ti-paper a { color: #151919; }
.ti-paper .hx-eyebrow { color: #8a6f00; }
.ti-paper .hx-eyebrow:after { background: var(--hx-yellow); }
.ti-h2 { margin: 0 0 18px; font-size: 24px; font-weight: 700; color: #151919; letter-spacing: -.01em; }
.ti-h2 small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #6b6f6f; letter-spacing: 0; }
.ti-prose { font-size: 16px; line-height: 1.8; text-align: justify; hyphens: auto; }
.ti-prose p { margin: 0 0 18px; text-align: justify !important; }
.ti-prose p:last-child { margin-bottom: 0; }
.ti-prose strong, .ti-prose b { color: #151919; }
.ti-prose a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--hx-yellow); text-underline-offset: 3px; }
.ti-prose ul, .ti-prose ol { margin: 0 0 18px; padding-left: 22px; }

/* ---------- 1. editorial (Responsible travel) ---------- */
.ti-editorial { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.ti-rail { position: sticky; top: 124px; }
.ti-rail__box { padding: 20px 22px; border: 1px solid #e3ded2; border-radius: 14px; background: #fff; }
.ti-rail__box + .ti-rail__box { margin-top: 14px; }
.ti-rail__title { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a6f00; margin-bottom: 12px; }
.ti-figures { list-style: none; margin: 0; padding: 0; }
.ti-figures li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px dashed #e3ded2; }
.ti-figures li:first-child { border-top: 0; padding-top: 0; }
.ti-figures strong { font-size: 26px; line-height: 1; color: #151919; min-width: 44px; }
.ti-figures span { font-size: 13px; line-height: 1.4; color: #5b5f5f; }
.ti-toc { list-style: none; margin: 0; padding: 0; }
.ti-toc li { padding: 5px 0; font-size: 13.5px; }
.ti-toc a { color: #2b2f2f; text-decoration: none; }
.ti-toc a:hover { color: #8a6f00; }
.ti-article { max-width: 720px; }
.ti-article .ti-lead { font-size: 21px; line-height: 1.55; color: #151919; margin: 0 0 26px; font-weight: 500; }
.ti-article .ti-prose > p:first-of-type:first-letter { float: left; font-size: 58px; line-height: .85; padding: 6px 10px 0 0; color: #151919; font-weight: 700; }
.ti-quote { margin: 34px 0; padding: 28px 32px 28px 36px; border-left: 6px solid var(--hx-yellow); background: #151919; color: #fff; border-radius: 0 14px 14px 0; }
.ti-quote p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; line-height: 1.45; font-style: italic; }
.ti-quote footer { margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-yellow); }
.ti-commit { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ti-commit li { padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px solid #e3ded2; }
.ti-commit i { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--hx-yellow); color: #151919; font-size: 15px; margin-bottom: 12px; }
.ti-commit strong { display: block; color: #151919; font-size: 15px; margin-bottom: 6px; }
.ti-commit p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #4b4f4f; }

/* ---------- 2. grades matrix (Difficulty rating) ---------- */
.ti-grades__intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; margin-bottom: 36px; }
.ti-legend { padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px solid #e3ded2; }
.ti-legend ol { list-style: none; margin: 0; padding: 0; }
.ti-legend li { display: grid; grid-template-columns: 14px 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed #e3ded2; font-size: 14px; }
.ti-legend li:first-of-type { border-top: 0; }
.ti-legend li strong { color: #151919; }
.ti-legend li small { color: #6b6f6f; font-size: 12px; line-height: 1.4; }
.ti-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.ti-dot--easy { background: #2f9e5a; }
.ti-dot--moderate { background: #e3a008; }
.ti-dot--demanding { background: #c9372c; }
.ti-matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e3ded2; border-radius: 14px; overflow: hidden; }
.ti-matrix th, .ti-matrix td { padding: 18px 18px; vertical-align: top; text-align: left; border-top: 1px solid #ebe7dd; font-size: 14px; line-height: 1.65; }
.ti-matrix thead th { border-top: 0; background: #151919; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 14px 18px; }
.ti-matrix thead th .ti-dot { margin-right: 8px; vertical-align: -1px; }
.ti-matrix tbody th { width: 24%; background: #faf8f3; }
.ti-matrix tbody th strong { display: block; font-size: 16px; color: #151919; margin-bottom: 6px; }
.ti-matrix tbody th p { margin: 0; font-size: 13px; color: #5b5f5f; font-weight: 400; line-height: 1.6; }
.ti-matrix tbody th a { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: #8a6f00; text-decoration: none; }
.ti-matrix tbody th a:hover { text-decoration: underline; }
.ti-matrix td { color: #3a3f3f; }
.ti-matrix td .ti-grade__label { display: none; }
.ti-matrix td.is-na { color: #a3a7a7; font-style: italic; background: #faf8f3; }
.ti-grades__tours { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ti-grades__tours span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b6f6f; margin-right: 6px; }
.ti-grades__tours a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e3ded2; font-size: 13px; font-weight: 700; color: #151919; text-decoration: none; }
.ti-grades__tours a:hover { border-color: #151919; }
.ti-grades__tours a small { font-weight: 700; color: #8a6f00; }
.ti-grades__pdf { margin-top: 18px; font-size: 13.5px; }

/* ---------- 3. feature grid (Tour support) ---------- */
.ti-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ti-feature { position: relative; padding: 24px 24px 22px; border-radius: 16px; background: #fff; border: 1px solid #e3ded2; display: flex; flex-direction: column; gap: 10px; }
.ti-feature--wide { grid-column: span 2; background: #151919; color: #fff; border-color: #151919; }
.ti-feature__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: #f4f1ea; color: #151919; font-size: 18px; }
.ti-feature--wide .ti-feature__icon { background: var(--hx-yellow); }
.ti-feature h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: inherit; line-height: 1.3; }
.ti-feature p { margin: 0; font-size: 14px; line-height: 1.7; color: #4b4f4f; }
.ti-feature--wide p { color: rgba(255, 255, 255, .8); font-size: 15px; }
.ti-feature__num { position: absolute; top: 18px; right: 20px; font-size: 12px; font-weight: 700; color: #b8b2a4; letter-spacing: .1em; }
.ti-feature--wide .ti-feature__num { color: rgba(255, 255, 255, .35); }
.ti-support__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 22px 26px; border-radius: 16px; background: #fff; border: 1px solid #e3ded2; }
.ti-support__cta p { margin: 0; font-size: 14.5px; color: #4b4f4f; max-width: 620px; }
.ti-support__cta strong { color: #151919; }
.ti-support__cta .hx-btn { color: #151919 !important; }

/* ---------- 4. directory (Travel resources) ---------- */
.ti-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ti-dir { padding: 24px 26px; border-radius: 16px; background: #fff; border: 1px solid #e3ded2; }
.ti-dir--flights { grid-column: 1 / -1; }
.ti-dir h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: #151919; display: flex; align-items: center; gap: 10px; }
.ti-dir h2 i { color: #8a6f00; }
.ti-dir h2 small { margin-left: auto; font-size: 12px; font-weight: 700; color: #8a8f8f; }
.ti-flights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.ti-flights li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px dashed #e3ded2; }
.ti-flights li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.ti-flights strong { font-size: 14px; color: #151919; display: flex; align-items: center; gap: 8px; }
.ti-flights strong i { color: #8a6f00; font-size: 12px; }
.ti-flights .ti-cities { display: flex; flex-wrap: wrap; gap: 6px; }
.ti-cities span { padding: 3px 9px; border-radius: 999px; background: #f4f1ea; font-size: 12px; color: #3a3f3f; }
.ti-links { list-style: none; margin: 0; padding: 0; }
.ti-links li { padding: 10px 0; border-top: 1px dashed #e3ded2; font-size: 14px; line-height: 1.55; display: flex; gap: 10px; align-items: flex-start; }
.ti-links li:first-child { border-top: 0; padding-top: 0; }
.ti-links i { color: #8a6f00; margin-top: 4px; font-size: 12px; flex: none; }
.ti-links a { font-weight: 700; color: #151919; text-decoration: none; }
.ti-links a:hover { color: #8a6f00; text-decoration: underline; }
.ti-links small { display: block; color: #6b6f6f; font-size: 12.5px; }
.ti-links .is-plain { color: #4b4f4f; }
.ti-dir__note { margin: 14px 0 0; font-size: 12.5px; color: #8a8f8f; }

/* ---------- shared footer strip inside the paper ---------- */
.ti-more { margin-top: 44px; padding-top: 28px; border-top: 1px solid #e3ded2; }
.ti-more__label { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8a6f00; margin-bottom: 12px; }
.ti-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ti-more__card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid #e3ded2; color: #151919 !important; text-decoration: none !important; transition: border-color .15s ease, transform .15s ease; }
.ti-more__card:hover { border-color: #151919; transform: translateY(-2px); }
.ti-more__card img { width: 72px; height: 60px; object-fit: cover; border-radius: 10px; display: block; background: #e8e4da; }
.ti-more__card strong { display: block; font-size: 14px; line-height: 1.3; }
.ti-more__card small { font-size: 12px; color: #6b6f6f; }

/* ---------- dark closing band ---------- */
.ti-end { padding: 36px 0 44px; }
.ti-end .dp-cta { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .ti-editorial { grid-template-columns: 230px minmax(0, 1fr); gap: 32px; }
    .ti-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ti-feature--wide { grid-column: span 2; }
}
@media (max-width: 991px) {
    .ti-hero { min-height: 340px; }
    .ti-hero h1 { font-size: 34px; }
    .ti-nav { position: static; }
    .ti-editorial { grid-template-columns: 1fr; gap: 24px; }
    .ti-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .ti-rail__box + .ti-rail__box { margin-top: 0; }
    .ti-grades__intro { grid-template-columns: 1fr; gap: 20px; }
    .ti-matrix, .ti-matrix thead, .ti-matrix tbody, .ti-matrix tr, .ti-matrix th, .ti-matrix td { display: block; }
    .ti-matrix thead { position: absolute; left: -9999px; }
    .ti-matrix tbody th { width: auto; border-top: 0; }
    .ti-matrix tr { border-top: 6px solid #f4f1ea; }
    .ti-matrix tr:first-child { border-top: 0; }
    .ti-matrix td .ti-grade__label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #151919; margin-bottom: 6px; }
    .ti-directory { grid-template-columns: 1fr; }
    .ti-flights { grid-template-columns: 1fr; }
    .ti-flights li:nth-child(-n+2) { border-top: 1px dashed #e3ded2; padding-top: 10px; }
    .ti-flights li:first-child { border-top: 0; padding-top: 0; }
    .ti-more__grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .ti-hero { min-height: 300px; }
    .ti-hero h1 { font-size: 28px; }
    .ti-hero__lead { font-size: 15px; }
    .ti-paper { padding: 30px 0 40px; }
    .ti-rail { grid-template-columns: 1fr; }
    .ti-article .ti-lead { font-size: 18px; }
    .ti-quote { padding: 20px 20px 20px 22px; }
    .ti-quote p { font-size: 18px; }
    .ti-commit { grid-template-columns: 1fr; }
    .ti-features { grid-template-columns: 1fr; }
    .ti-feature--wide { grid-column: auto; }
    .ti-flights li { grid-template-columns: 1fr; gap: 6px; }
    .ti-support__cta { flex-direction: column; align-items: flex-start; }
}
