/* The Tourism pages. Colours come from the design tokens, so both themes work without extra rules. */
.tm { --tm-series: #3987e5; --tm-line: var(--border-card); --tm-soft: var(--bg-card-highlight); --tm-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.16); --tm-green: #34d399; --tm-green-bg: rgba(52, 211, 153, 0.14); --tm-blue: #7ab8ff; --tm-blue-bg: rgba(90, 160, 255, 0.16); --tm-yellow: #f5c542; --tm-yellow-bg: rgba(245, 197, 66, 0.14); }
:root[data-theme="light"] .tm { --tm-series: #2a78d6; --tm-line: #dbe2ec; --tm-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 26px rgba(15, 23, 42, 0.07); --tm-green: #0a6b45; --tm-green-bg: #dcf5e8; --tm-blue: #154ea3; --tm-blue-bg: #dfeafb; --tm-yellow: #7a5200; --tm-yellow-bg: #fdf0c8; }

/* the path at the top: small, stays in view */
.tm .lp-crumbs { display: flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; margin: 0 0 12px; padding: 3px 10px;
  font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; overflow-x: auto; scrollbar-width: none; color: var(--text-muted); background: var(--bg-card); border-radius: 999px; }
.tm .lp-crumbs::-webkit-scrollbar { display: none; }
.lp.tm .lp-crumbs a { color: var(--text-muted); text-decoration: none; }
.lp.tm .lp-crumbs a:hover { color: var(--accent-teal); }
.tm .lp-crumbs [aria-current] { color: var(--text-secondary); font-weight: 600; }

.tm-top { margin: 4px 0 14px; }
.tm h1 { margin: 0 0 8px; font-size: clamp(25px, 4vw, 36px); }
.tm-lead { margin: 0 0 8px; font-size: 16.5px !important; line-height: 1.55; color: var(--text-secondary); max-width: 860px; }
.tm-note { margin: -2px 0 12px; font-size: 13.5px !important; line-height: 1.5; color: var(--text-muted) !important; }
.tm-src { margin: 12px 0; font-size: 12.5px !important; line-height: 1.5; color: var(--text-muted) !important; max-width: 110ch; }
.tm-mut { color: var(--text-muted); font-weight: 400; font-size: 13px; }
.tm-empty { color: var(--text-muted); font-size: 14px; }

/* search */
.tm-search { position: relative; display: flex; gap: 8px; margin: 0 0 10px; padding: 6px; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 14px; }
.tm-search input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; font-size: 16px; color: var(--text-primary); background: transparent; border: 1px solid var(--tm-line); border-radius: 10px; }
.tm-search input:focus { outline: 2px solid var(--accent-teal); outline-offset: 1px; }
.tm-search button { height: 42px; padding: 0 20px; font-size: 15px; font-weight: 700; color: #fff; background: var(--accent-teal); border: 0; border-radius: 10px; cursor: pointer; }
.tm-suggest { position: absolute; left: 10px; right: 10px; top: calc(100% - 4px); z-index: 40; max-height: 380px; overflow-y: auto; background: var(--bg-card-hover); border: 1px solid var(--tm-line); border-radius: 12px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.tm-suggest a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--tm-line); font-size: 14.5px; }
.tm-suggest a:last-child { border-bottom: 0; }
.tm-suggest a.on, .tm-suggest a:hover { background: var(--tm-soft); }
.tm-suggest small { flex: none; font-size: 12px; color: var(--text-muted); }

/* the front page's top stays small, so the States are in view on arrival */
.tm-head { margin: 2px 0 10px; }
.tm .tm-head h1 { margin: 0 0 3px; font-size: clamp(22px, 2.8vw, 30px); }
.tm-head .tm-lead { margin: 0; font-size: 14.5px !important; }
.tm-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.lp.tm .tm-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 999px; }
.lp.tm .tm-quick a:hover { border-color: var(--accent-teal); }
.tm-quick-ic { display: inline-flex; }

/* sections */
.tm-sec { margin: 0 0 22px; padding: 20px 22px; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 18px; box-shadow: var(--tm-shadow); }
.tm-sec.tm-plain { padding: 0; background: none; border: 0; box-shadow: none; }
.tm-sec h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -0.01em; }
.tm-sec h3 { margin: 16px 0 8px; font-size: 15.5px; }
.tm-sec h3:first-child { margin-top: 0; }
.tm-sec p:last-child { margin-bottom: 0; }

/* cards */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.tm-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tm-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.tm-grid-topics { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.tm-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 18px; box-shadow: var(--tm-shadow); transition: border-color 0.18s ease, transform 0.18s ease; }
.tm-card .tm-ph img { transition: transform 0.35s ease; }
.tm-card:hover .tm-ph img { transform: scale(1.04); }
/* a long list of cards is drawn only as it comes near the screen */
.tm-grid > .tm-card, .tm-fame-grid > .tm-card { content-visibility: auto; contain-intrinsic-size: auto 340px; }
.tm-card:hover, .tm-card:focus-within { border-color: var(--accent-teal); transform: translateY(-3px); }
.tm-card[hidden] { display: none; }
.lp.tm a.tm-card-title { color: var(--text-primary); text-decoration: none; }
.lp.tm a.tm-card-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tm-card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.tm-card-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.tm-card-sub { font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.tm-ic { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; margin-bottom: 3px; border-radius: 10px; background: var(--tm-soft); color: var(--accent-teal); }
.tm-topic .tm-card-body { height: 100%; padding: 16px 16px 14px; gap: 10px; }
.tm-topic-head { display: flex; align-items: center; gap: 10px; }
.tm-topic-head .tm-ic { flex: none; margin: 0; }
.tm .tm-topic .tm-card-title { font-size: 16.5px; line-height: 1.25; }
.tm-over { display: grid; gap: 6px; margin: 0; flex: 1; align-content: start; }
.tm-over div { display: grid; grid-template-columns: minmax(84px, 38%) 1fr; gap: 8px; align-items: baseline; }
.tm-over dt { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.tm-over dd { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text-primary); font-weight: 600; }
.tm-more { font-size: 13px; font-weight: 700; color: var(--accent-teal); }
/* "Click to know more" in small letters under every card or name that opens a page about it */
.tm-kmore { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; line-height: 1.3; color: var(--accent-teal); opacity: 0.85; }
td .tm-kmore { margin-top: 1px; font-size: 10px; }
/* "Plan your trek": the town, weather, map and helplines in wide boxes, then what to carry and what not to do side by side */
.tm-facts.tm-plan { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tm-facts.tm-plan strong { font-weight: 600; line-height: 1.5; }
.tm-twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 24px; margin-top: 14px; }
.tm-twocol h3 { margin: 0 0 6px; font-size: 16px; }
.tm-twocol ul { margin: 0; padding-left: 20px; line-height: 1.6; }
/* a trek's day-by-day plan, and the places on the way as the State describes them */
.tm-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tm-days li { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; align-items: baseline; padding: 10px 14px; background: var(--tm-soft); border: 1px solid var(--tm-line); border-radius: 12px; line-height: 1.5; }
.tm-days strong { white-space: nowrap; font-size: 14px; }
.tm-said { margin: 0 0 6px; padding-left: 20px; line-height: 1.6; }
.tm-said li { margin: 4px 0; }
/* under the interest buttons: the page with everything of the chosen interest, across India */
.tm-chip-note { margin: 4px 0 10px; font-size: 14px; color: var(--text-secondary); }
.tm-chip-note a { font-weight: 700; color: var(--accent-teal); }
.tm-chip-note .tm-kmore { display: inline; margin: 0 0 0 6px; }
.tm-more i { font-style: normal; display: inline-block; transition: transform 0.15s ease; }
.tm-topic:hover .tm-more i { transform: translateX(3px); }
.tm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin: 2px 0 0 !important; font-size: 12.5px !important; line-height: 1.5 !important; }
.tm-tags b { margin-right: 2px; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.lp.tm .tm-tags a { position: relative; z-index: 2; padding: 1px 8px; border-radius: 999px; text-decoration: none; background: var(--tm-soft); color: var(--text-secondary); border: 1px solid transparent; }
.lp.tm .tm-tags a:hover { border-color: var(--accent-teal); color: var(--accent-teal); }
/* what a card has for the interest chosen above it, in place of its usual lines */
.tm-card-like { display: flex; flex-direction: column; gap: 5px; }
.tm-card-body > .tm-card-like[hidden], .tm-card-body > .tm-tags[hidden], .tm-card-body > .tm-card-sub[hidden] { display: none !important; }
.tm-card-like-more { font-size: 12px; color: var(--text-muted); }
.tm-buy { padding: 1px 9px; font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-bg); border: 1px solid var(--gold-line); border-radius: 999px; }
/* what a State is famous for: photo cards, group by group */
.tm-fame-group { margin: 0 0 18px; }
.tm-fame-group h3 { margin: 0 0 10px; font-size: 16px; color: var(--text-primary); }
.tm-fame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.tm-fame-card .tm-ph { aspect-ratio: 16 / 11; }
.tm-fame-card .tm-card-body { padding: 10px 12px 12px; }
.tm .tm-fame-card .tm-card-title { font-size: 15px; }
.tm-fame-line { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 640px) { .tm-fame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
/* the tags at the head of a city: big enough to read and to tap */
.tm .tm-tags-big { gap: 7px; margin: 6px 0 !important; font-size: 15px !important; }
.tm .tm-tags-big b { min-width: 118px; font-size: 14px; color: var(--text-primary); }
.lp.tm .tm-tags-big a { padding: 6px 14px; font-weight: 600; color: var(--accent-teal); background: var(--tm-soft); border-color: var(--tm-line); }
.lp.tm .tm-tags-big a:hover { background: var(--bg-card-hover); border-color: var(--accent-teal); }
@media (max-width: 640px) { .tm .tm-tags-big b { width: 100%; } }
.tm-about h2 { margin: 0 0 8px; font-size: 19px; }
.tm-unesco { align-self: flex-start; display: inline-block; padding: 2px 9px; font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-bg); border: 1px solid var(--gold-line); border-radius: 999px; }

/* tags: award, UNESCO, wetland, wildlife, protected monument, tentative list, threatened animal */
.tm { --tm-red: #ff8a8a; --tm-red-bg: rgba(255, 110, 110, 0.14); }
:root[data-theme="light"] .tm { --tm-red: #a3221b; --tm-red-bg: #fde3e1; }
.tm-mks { gap: 4px !important; }
.tm-mk { display: inline-block; padding: 1px 8px; font-size: 11.5px; font-weight: 700; line-height: 1.6; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.tm-mk-aw { color: var(--gold); background: var(--gold-bg); border-color: var(--gold-line); }
.tm-mk-un { color: var(--tm-blue); background: var(--tm-blue-bg); }
.tm-mk-wet { color: var(--accent-teal); background: var(--tm-soft); border-color: var(--tm-line); }
.tm-mk-wild { color: var(--tm-green); background: var(--tm-green-bg); }
.tm-mk-asi { color: var(--tm-yellow); background: var(--tm-yellow-bg); }
.tm-mk-tent { color: var(--text-muted); background: var(--tm-soft); }
.tm-mk-red { color: var(--tm-red); background: var(--tm-red-bg); }
.tm-mk-small { padding: 0 5px; margin-left: 4px; font-size: 10.5px; line-height: 1.5; vertical-align: 1px; }
.tm-top .tm-mks { margin-top: 6px !important; }
.tm-sub { margin-top: -4px; padding: 8px 10px; background: var(--tm-soft); border-radius: 12px; }
.tm-sub .tm-chip { padding: 5px 11px; font-size: 13px; }
.tm-chips-label { align-self: center; margin-right: 4px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.tm-award-strip { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--gold-bg); }
.tm-award-strip h3 { margin: 0 0 10px; font-size: 15px; }
.tm-awards { display: grid; gap: 10px; }
.tm-award { padding: 12px 14px; background: var(--tm-soft); border-radius: 12px; }
.tm-award p { margin: 6px 0 0; }
.tm-card-src { margin: 4px 0 0 !important; font-size: 11.5px !important; }
.tm-card-plain .tm-card-title { color: var(--text-primary); }
.tm-grid-animals { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tm-animal .tm-ph { aspect-ratio: 4 / 3; }
.tm-sci { display: block; font-size: 12.5px; color: var(--text-muted); }
.tm-sec h3 { margin: 16px 0 6px; font-size: 16px; }
.tm-pickform { margin: 0 0 12px; }
.tm-legend { margin-top: 14px; font-size: 13.5px; }
.tm-legend summary { cursor: pointer; font-weight: 700; color: var(--text-secondary); }
.tm-legend dl { display: grid; gap: 6px; margin: 8px 0 0; }
.tm-legend dt { font-weight: 700; color: var(--text-primary); }
.tm-legend dd { margin: 0; color: var(--text-secondary); }
@media (max-width: 640px) { .tm-grid-animals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* photos */
.tm-ph { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tm-soft); }
.tm-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-ph figcaption { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 1px 7px; font-size: 10.5px; line-height: 1.5; background: rgba(0, 0, 0, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm .tm-ph figcaption a { position: relative; z-index: 2; color: #fff !important; text-decoration: none; }
.tm-ph-none { background: linear-gradient(135deg, var(--tm-soft), var(--bg-card)); }
.tm-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; margin: 0 0 14px; }
.tm-gallery .tm-ph { border-radius: 12px; }

/* the top of a city */
.tm-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: center; margin: 4px 0 14px; padding: 18px; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 16px; }
.tm-hero-ph { border-radius: 12px; }
@media (max-width: 860px) { .tm-hero { grid-template-columns: 1fr; padding: 14px; } .tm-hero-ph { grid-row: 1; } }

.tm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.tm-sec[id], .tm-actions[id] { scroll-margin-top: calc(var(--jw-head, 0px) + 60px); }
.lp.tm .tm-jump a { padding: 6px 12px; }
.lp.tm a.tm-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--accent-teal); background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 10px; }
.lp.tm a.tm-btn:hover { border-color: var(--accent-teal); }
.lp.tm a.tm-btn-main { color: #fff !important; background: var(--accent-teal); border-color: var(--accent-teal); }

.tm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0 0 16px; }
.tm-facts div { padding: 11px 13px; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 12px; }
.tm-facts span { display: block; margin-bottom: 3px; font-size: 12.5px; color: var(--text-muted); }
.tm-facts strong { font-size: 14.5px; line-height: 1.4; font-weight: 600; color: var(--text-primary); }
.tm-help div { background: var(--tm-soft); }
.tm-sec .tm-facts { margin-bottom: 0; }

.tm-callout { margin: 0 0 16px; padding: 12px 15px; background: var(--gold-bg); border: 1px solid var(--gold-line); border-radius: 12px; }
.tm-callout p { margin: 2px 0 4px; font-size: 14.5px; color: var(--text-primary); }

/* link lists */
.tm-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.lp.tm .tm-links a { display: block; padding: 10px 13px; text-decoration: none; background: var(--tm-soft); border: 1px solid transparent; border-radius: 10px; }
.lp.tm .tm-links a:hover { border-color: var(--accent-teal); }
.tm-links b { display: block; font-size: 14.5px; color: var(--text-primary); }
.tm-links span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.tm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-pills > a, .tm-pills > span { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; text-decoration: none; background: var(--tm-soft); border: 1px solid transparent; border-radius: 10px; font-size: 14px; }
.lp.tm .tm-pills > a:hover { border-color: var(--accent-teal); }
.tm-pills b { color: var(--text-primary); font-weight: 600; }
.tm-pills-wide > a { flex: 1 1 260px; }
.tm-pills-small > a { padding: 5px 10px; font-size: 13px; }
.tm-need { font-size: 12px; font-weight: 700; color: var(--accent-teal); }
.tm-need-free { color: var(--text-muted); }

.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tm-chip { padding: 6px 13px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 999px; cursor: pointer; }
.tm-chip.on { color: #fff; background: var(--accent-teal); border-color: var(--accent-teal); }

/* tables */
.tm-table { overflow-x: auto; }
.tm-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-table th { padding: 8px 10px; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--tm-line); white-space: nowrap; }
.tm-table td { padding: 9px 10px; vertical-align: top; color: var(--text-secondary); border-bottom: 1px solid var(--tm-line); line-height: 1.45; }
.tm-table tbody tr:last-child td { border-bottom: 0; }

.tm-tier { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.tm-tier div { padding: 12px 14px; background: var(--tm-soft); border-radius: 12px; }
.tm-tier span { display: block; font-size: 13px; font-weight: 700; color: var(--accent-teal); }
.tm-tier strong { display: block; margin: 3px 0; font-size: 16px; color: var(--text-primary); }
.tm-tier em { font-style: normal; font-size: 12.5px; color: var(--text-muted); }

/* the plan */
.tm-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.tm-day { padding: 13px 15px; background: var(--tm-soft); border-radius: 12px; }
.tm-day h3 { margin: 0 0 8px; }
.tm-day ol { margin: 0; padding-left: 20px; }
.tm-day li { margin-bottom: 7px; font-size: 14.5px; }
.tm-day li span { display: block; font-size: 12.5px; color: var(--text-muted); }
.tm-day li span.tm-warn { color: var(--gold); font-weight: 600; }
.tm-eve { margin: 8px 0 0; font-size: 13.5px !important; }
.tm-calc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; align-items: end; }
.tm-calc label span { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-muted); }
.tm-calc input { width: 100%; height: 42px; padding: 0 10px; font-size: 15px; color: var(--text-primary); background: transparent; border: 1px solid var(--tm-line); border-radius: 9px; }
.tm-calc-total { grid-column: 1 / -1; padding: 12px 14px; font-size: 16px; font-weight: 700; color: var(--text-primary); background: var(--tm-soft); border-radius: 10px; }
.tm-calc-total small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-muted); }

/* routes */
.tm-route { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.tm-route label { flex: 1 1 240px; }
.tm-route label span { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-muted); }
.tm-route input { width: 100%; height: 44px; padding: 0 12px; font-size: 15px; color: var(--text-primary); background: transparent; border: 1px solid var(--tm-line); border-radius: 10px; }
.tm-route-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-route-btns button { height: 44px; padding: 0 14px; font-size: 14px; font-weight: 700; color: #fff; background: var(--accent-teal); border: 0; border-radius: 10px; cursor: pointer; }
.tm-route-out { margin-top: 12px; }

/* the map */
.tm-layers { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; }
.tm-layer { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-secondary); cursor: pointer; }
.tm-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.tm-dot-places, .tm-pin-places { background: #0e7490; }
/* a trek on the map: where it starts, the stops on the way, where it ends; and a place for an adventure sport */
.tm-dot-start, .tm-pin-start { background: #16a34a; }
.tm-dot-stop, .tm-pin-stop { background: #0e7490; }
.tm-dot-end, .tm-pin-end { background: #b91c1c; }
.tm-dot-spot, .tm-pin-spot { background: #7c3aed; }
.tm-dot-budget, .tm-pin-budget { background: #16a34a; }
.tm-dot-mid, .tm-pin-mid { background: #d97706; }
.tm-dot-top, .tm-pin-top { background: #7c3aed; }
.tm-dot-areas, .tm-pin-areas { background: #1d4ed8; }
.tm-dot-foodareas, .tm-pin-foodareas { background: #dc2626; }
.tm-dot-eats, .tm-pin-eats { background: #db2777; }
.tm-dot-markets, .tm-pin-markets { background: #b45309; }
.tm-map { margin: 0 0 8px; width: 100%; max-height: 72vh; border: 1px solid var(--tm-line); border-radius: 14px; overflow: hidden; background: var(--tm-soft); z-index: 1; }
.tm-pin { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 11px; font-weight: 700; color: #fff; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.tm-pin-big { width: 18px; height: 18px; opacity: 0.85; }
.tm-pop b { display: block; font-size: 14px; }
.tm-pop span { display: block; margin: 2px 0; font-size: 12.5px; color: #475569; }

/* charts: one scale each, values on hover and in the table */
.tm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.tm-chart { display: block; width: 100%; height: auto; }
.tm-bar { fill: var(--tm-series); }
.tm-hit { fill: transparent; }
.tm-chart g:hover .tm-hit { fill: var(--tm-soft); }
.tm-base { stroke: var(--tm-line); stroke-width: 1; }
.tm-axis { font-size: 12px; fill: var(--text-muted); }
.tm-val { font-size: 13px; font-weight: 700; fill: var(--text-primary); }

.tm-aka { margin: -4px 0 8px !important; font-size: 13.5px !important; color: var(--text-muted) !important; }
.tm-faq details { padding: 9px 0; border-top: 1px solid var(--tm-line); }
.tm-faq details:first-of-type { border-top: 0; }
.tm-faq summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.tm-faq details p { margin: 6px 0 2px; font-size: 14px !important; }

.tm-news { list-style: none; margin: 0; padding: 0; }
.tm-news li { padding: 10px 0; border-bottom: 1px solid var(--tm-line); }
.tm-news li:last-child { border-bottom: 0; }
.tm-news a { display: block; font-size: 14.5px; line-height: 1.45; text-decoration: none; }
.tm-news span { display: block; margin-top: 2px; }

@media (max-width: 640px) {
  .tm-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -8px; padding-right: 8px; }
  .tm-quick::-webkit-scrollbar { display: none; }
  .tm-sec { padding: 14px; }
  .tm-grid { grid-template-columns: 1fr; }
  .tm-search { padding: 8px; }
  .tm-search button { padding: 0 14px; }
  .tm-map { height: 62vh !important; }
}

/* the first thing on the front page: a window on the country, the search on top of it */
.tm-tabs { display: inline-flex; gap: 4px; margin: 0 0 12px; padding: 4px; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 999px; box-shadow: var(--tm-shadow); }
.lp.tm .tm-tabs a { padding: 7px 20px; font-size: 14px; font-weight: 700; color: var(--text-secondary); text-decoration: none; border-radius: 999px; }
.lp.tm .tm-tabs a.on { color: #fff !important; background: var(--accent-teal); }
.tm-land { position: relative; margin: 0 0 12px; border-radius: 22px; isolation: isolate; }
.tm-land-pics { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3px; overflow: hidden; border-radius: 22px; background: #0f2233; }
.tm-land-pics img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.tm-land-pics::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4, 19, 31, 0.9) 0%, rgba(4, 19, 31, 0.74) 52%, rgba(4, 19, 31, 0.32) 100%); }
.tm-land-text { padding: 30px clamp(18px, 3vw, 38px) 28px; max-width: 880px; }
.tm .tm-land h1 { margin: 0 0 6px; color: #fff !important; font-size: clamp(25px, 3.3vw, 40px); line-height: 1.12; letter-spacing: -0.02em; }
.tm .tm-land .tm-lead { margin: 0 0 16px; color: rgba(255, 255, 255, 0.88) !important; font-size: 15.5px !important; }
.tm-land .tm-search { margin: 0; background: rgba(255, 255, 255, 0.97); border: 0; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32); }
.tm-land .tm-search input { color: #0f172a; border-color: transparent; }
.tm-land .tm-search input::placeholder { color: #55647a; }
.tm-land .tm-suggest { background: #fff; }
.tm-land .tm-suggest a { color: #0f172a; border-color: #e3e8ef; }
.tm-land .tm-suggest small { color: #55647a; }
.tm-land .tm-suggest a.on, .tm-land .tm-suggest a:hover { background: #eef3f8; }
.tm-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.lp.tm .tm-band a { display: flex; flex-direction: column; gap: 3px; padding: 14px; text-decoration: none; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 16px; box-shadow: var(--tm-shadow); }
.lp.tm .tm-band a:hover { border-color: var(--accent-teal); }
.tm-band b { font-family: var(--font-display); font-size: 16px; color: var(--text-primary); }
.tm-band span:last-child { font-size: 13px; color: var(--text-muted); }

/* a short line, then the link */
.tm-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 0 0 20px; }
.tm-do { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 16px; box-shadow: var(--tm-shadow); }
.tm-sec .tm-do { box-shadow: none; background: var(--tm-soft); border-color: transparent; }
.tm-sec .tm-dos { margin-bottom: 0; }
.tm-do p { margin: 0; font-size: 14px !important; line-height: 1.45; color: var(--text-secondary); }
.lp.tm .tm-do .tm-btn { align-self: flex-start; }
.tm-hero-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.tm-save { min-height: 38px; padding: 7px 14px; font-size: 13.5px; font-weight: 700; color: var(--accent-teal); background: var(--tm-soft); border: 1px solid var(--tm-line); border-radius: 999px; cursor: pointer; }
.tm-save.on { color: #fff; background: var(--accent-teal); border-color: var(--accent-teal); }

/* who runs a place: green government, blue trust or NGO, yellow private */
.tm-run { display: inline-block; flex: none; width: fit-content; margin-right: 6px; padding: 1px 8px; font-size: 12px; font-weight: 800; line-height: 1.55; white-space: nowrap; border-radius: 999px; }
.tm-run-g { color: var(--tm-green); background: var(--tm-green-bg); }
.tm-run-t { color: var(--tm-blue); background: var(--tm-blue-bg); }
.tm-run-p { color: var(--tm-yellow); background: var(--tm-yellow-bg); }
.tm-govs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-bottom: 14px; }
.tm-govs:last-child { margin-bottom: 0; }
.tm-gov { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--tm-soft); border-radius: 14px; border-left: 4px solid var(--tm-green); }
.tm-gov-t { border-left-color: var(--tm-blue); }
.tm-gov-p { border-left-color: var(--tm-yellow); }
.tm-gov header { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tm-sec .tm-gov h3 { margin: 0; font-size: 16px; }
.tm-gov p { margin: 0; font-size: 14px !important; line-height: 1.45; }
.tm-sec .tm-gov h4 { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.tm-gov ol, .tm-gov ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }
.tm-gov li { margin-bottom: 2px; }
.lp.tm .tm-gov .tm-btn { align-self: flex-start; margin-top: 6px; }
.tm-gov-price { font-weight: 700; color: var(--text-primary); }
.tm-month { margin: 0 0 14px; padding: 11px 14px; font-size: 15px !important; line-height: 1.5; color: var(--text-primary); background: var(--tm-soft); border: 1px solid var(--tm-line); border-left: 4px solid #0e7490; border-radius: 12px; }
#offline { scroll-margin-top: 12px; }
.lp.tm .tm-gov a.tm-btn { height: auto; white-space: normal; line-height: 1.3; }
.tm-modes { display: grid; gap: 5px; margin: 2px 0; }
.tm-modes p { display: flex; align-items: baseline; gap: 8px; }
.tm-mode { flex: none; min-width: 64px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; line-height: 1.6; text-align: center; border-radius: 999px; }
.tm-mode-on { color: #fff; background: #0e7490; }
.tm-mode-off { color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--tm-line); }
.tm-mode-no { color: var(--text-muted); background: transparent; border: 1px dashed var(--tm-line); text-decoration: line-through; }
.tm-mode-wear { color: var(--text-primary); background: var(--tm-soft); border: 1px solid var(--gold, #c98a00); }
.tm-gov .tm-src { margin: 4px 0 0; }
.tm-links .tm-run { margin-bottom: 3px; }
.tm-pills .tm-run { align-self: flex-start; }
.tm-helplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px 14px; }

/* sort and filters */
.tm-sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.tm-pick { display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 8px); margin: 0 8px 10px 0; font-size: 13px; color: var(--text-muted); }
.tm-sortbar .tm-pick { margin: 0; }
.tm-pick select { min-width: 0; max-width: 100%; min-height: 36px; padding: 4px 10px; font-size: 13.5px; color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 10px; }
.tm-sortnote { font-size: 12px; color: var(--text-muted); }
.tm-rate { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.tm-rate b { color: var(--gold); }
.lp.tm .tm-rate-chip { text-decoration: none; font-size: 13.5px; }

/* months */
.tm-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.lp.tm .tm-month { display: block; padding: 16px; text-decoration: none; background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 16px; box-shadow: var(--tm-shadow); }
.lp.tm .tm-month:hover, .lp.tm .tm-month.on { border-color: var(--accent-teal); }
.tm-month b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--text-primary); }
.tm-month span { font-size: 13px; color: var(--text-muted); }
.tm-jump a[aria-current] { border-color: var(--accent-teal) !important; font-weight: 800; }

/* checklists */
.tm-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-bottom: 22px; }
.tm-checks .tm-sec { margin-bottom: 0; }
.tm-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tm-check label { display: flex; align-items: flex-start; gap: 9px; padding: 3px 0; font-size: 14px; line-height: 1.4; cursor: pointer; color: var(--text-secondary); }
.tm-check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent-teal); }
.tm-check input:checked + span { text-decoration: line-through; color: var(--text-muted); }
.tm-pack-now { font-weight: 700; color: var(--text-primary); margin: 2px 0 10px; }
.tm-leave { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; align-items: end; }
.tm-leave label span { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-muted); }
.tm-leave input, .tm-leave select { width: 100%; height: 42px; padding: 0 10px; font-size: 15px; color: var(--text-primary); background: transparent; border: 1px solid var(--tm-line); border-radius: 9px; }

/* the trip planner */
.tm-trip-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0 0 16px; }
.tm-trip-form label span { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-muted); }
.tm-trip-form input, .tm-trip-form select { width: 100%; height: 42px; padding: 0 10px; font-size: 15px; color: var(--text-primary); background: transparent; border: 1px solid var(--tm-line); border-radius: 9px; }
.tm-trip-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.tm-trip-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--tm-soft); border-radius: 10px; font-size: 14px; }
.tm-trip-list button { border: 0; background: none; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.tm-sec .tm-trip-plan h3 { margin: 18px 0 8px; font-size: 17px; }
.tm-trip-plan ul { margin: 0 0 6px; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.tm-trip-day { padding: 11px 14px; margin: 0 0 8px; background: var(--tm-soft); border-radius: 12px; }
.tm-trip-day b { display: block; margin-bottom: 4px; }
.tm-trip-warn { color: var(--gold); font-weight: 600; font-size: 13px; }
.tm-trip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.tm-send { min-height: 40px; padding: 8px 16px; font-size: 14px; font-weight: 700; color: #fff; background: var(--accent-teal); border: 0; border-radius: 10px; cursor: pointer; }
.tm-planner { display: grid; gap: 18px; }
.tm-sec.tm-planner h2 { margin: 0 0 6px; }
.tm-plan-chat { padding: 16px; background: var(--tm-soft); border: 1px solid var(--tm-line); border-radius: 14px; }
.tm-plan-log { max-height: 340px; min-height: 0; padding: 4px 0 8px; }
.tm-plan-log:empty { display: none; }
.tm-plan-log .tm-msg { background: var(--bg-card); }
.tm-plan-log .tm-msg-me { background: var(--accent-teal); }
.tm-plan-chips { padding: 0 0 8px; }
.tm-plan-chips:empty { display: none; }
.tm-plan-ask { display: flex; gap: 8px; align-items: stretch; }
.tm-plan-ask textarea { flex: 1; min-width: 0; min-height: 52px; padding: 10px 12px; font-size: 16px; line-height: 1.4; font-family: inherit; color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 10px; resize: vertical; }
.tm-plan-ask button { flex: none; padding: 0 16px; font-size: 14px; font-weight: 700; color: #fff; background: var(--accent-teal); border: 0; border-radius: 10px; cursor: pointer; }
.tm-pf-label { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-muted); }
.tm-plan-places { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.tm-plan-places:empty { display: none; }
.tm-plan-places li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; font-size: 14px; background: var(--tm-soft); border: 1px solid var(--tm-line); border-radius: 999px; }
.tm-plan-places button { width: 26px; height: 26px; border: 0; background: none; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.tm-plan-add { display: flex; gap: 8px; margin: 0 0 14px; max-width: 460px; }
.tm-plan-add input { flex: 1; min-width: 0; height: 40px; padding: 0 11px; font-size: 15px; color: var(--text-primary); background: transparent; border: 1px solid var(--tm-line); border-radius: 9px; }
.tm-likes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; }
.tm-likes legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 12.5px; color: var(--text-muted); }
.tm-like input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tm-like span { display: inline-block; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 999px; cursor: pointer; }
.tm-like input:checked + span { color: #fff; background: var(--accent-teal); border-color: var(--accent-teal); }
.tm-like input:focus-visible + span { outline: 2px solid var(--accent-teal); outline-offset: 1px; }
.tm-plan-money summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent-teal); }
.tm-plan-money .tm-calc { margin-top: 10px; }
.tm-plan-out:empty { display: none; }
.tm-planner .tm-trip-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 640px) {
  .tm-plan-chat { padding: 12px; }
  .tm-plan-ask { flex-direction: column; }
  .tm-plan-ask textarea { min-height: 76px; }
  .tm-plan-ask button { min-height: 44px; }
}
.tm-plan-out .tm-table td:last-child { text-align: right; white-space: nowrap; }

/* things to know before the trip */
.tm-knows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; margin: 0 0 12px; }
.tm-know { display: flex; flex-direction: column; gap: 4px; padding: 13px 15px; background: var(--tm-soft); border-radius: 14px; border-left: 4px solid var(--gold, #c98a00); }
.tm-know-permit, .tm-know-road { border-left-color: var(--tm-blue); }
.tm-know-health, .tm-know-money, .tm-know-customs { border-left-color: var(--tm-green); }
.tm-know-kind { width: fit-content; padding: 1px 9px; font-size: 11.5px; font-weight: 700; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 999px; }
.tm-sec .tm-know h4 { margin: 2px 0 0; font-size: 15.5px; line-height: 1.35; color: var(--text-primary); }
.tm-know p { margin: 0; font-size: 14px !important; line-height: 1.5; }
.tm-know .tm-src { margin-top: 4px; }
.tm-know-where { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.tm-know-brief { margin: 0 0 8px; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.tm-know-brief li { margin-bottom: 6px; }
.tm-know-brief b { color: var(--text-primary); }

/* reviews */
.tm-rev-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 15px; color: var(--text-secondary); }
.tm-rev-sum strong { font-family: var(--font-display); font-size: 30px; color: var(--text-primary); }
.tm-rev-list { display: grid; gap: 8px; margin: 0 0 14px; }
.tm-rev-list:empty { display: none; }
.tm-rev-row { padding: 10px 12px; background: var(--tm-soft); border-radius: 12px; font-size: 14px; }
.tm-rev-row small { display: block; margin-top: 3px; font-size: 12px; color: var(--text-muted); }
.tm-rev-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; align-items: end; }
.tm-rev-form fieldset { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; }
.tm-rev-form legend { margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--text-secondary); padding: 0; }
.tm-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.tm-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tm-stars label { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 14px; font-weight: 700; color: var(--text-muted); background: var(--tm-soft); border: 1px solid var(--tm-line); border-radius: 10px; cursor: pointer; }
.tm-stars input:checked ~ label, .tm-stars label:hover, .tm-stars label:hover ~ label { color: #1a1205; background: #f5c542; border-color: #f5c542; }
.tm-stars input:focus-visible + label { outline: 2px solid var(--accent-teal); outline-offset: 1px; }
.tm-rev-text { grid-column: 1 / -1; }
.tm-rev-form label > span { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-muted); }
.tm-rev-form textarea, .tm-rev-form input[name="name"] { width: 100%; padding: 9px 11px; font-size: 15px; color: var(--text-primary); background: transparent; border: 1px solid var(--tm-line); border-radius: 10px; font-family: inherit; }
.tm-rev-out { grid-column: 1 / -1; font-size: 13.5px; color: var(--text-secondary); }

/* the small helper on every page */
.tm-chat-open { position: fixed; right: 18px; bottom: 18px; z-index: 60; min-height: 44px; padding: 10px 18px; font-size: 14px; font-weight: 700; color: #fff; background: var(--accent-teal); border: 0; border-radius: 999px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3); cursor: pointer; }
.tm-chat-open[hidden] { display: none; }
.tm-chat { position: fixed; right: 18px; bottom: 18px; z-index: 61; display: flex; flex-direction: column; width: min(372px, calc(100vw - 24px)); max-height: min(560px, 74vh); background: var(--bg-primary, #fff); border: 1px solid var(--tm-line); border-radius: 18px; box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35); overflow: hidden; }
.tm-chat[hidden] { display: none; }
.tm-chat header { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; color: #fff; background: var(--accent-teal); font-size: 14.5px; }
.tm-chat-x { width: 28px; height: 28px; color: #fff; font-size: 20px; line-height: 1; background: none; border: 0; cursor: pointer; }
.tm-chat-log { flex: 1; min-height: 110px; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.tm-msg { max-width: 92%; padding: 8px 11px; font-size: 14px; line-height: 1.45; border-radius: 12px; background: var(--tm-soft); color: var(--text-primary); white-space: pre-line; }
.tm-msg-me { align-self: flex-end; color: #fff; background: var(--accent-teal); }
.lp.tm .tm-msg a { display: inline-block; margin: 5px 6px 0 0; padding: 2px 9px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--accent-teal); background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 999px; }
.tm-chat-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 8px; }
.tm-chat-chips button { padding: 4px 10px; font-size: 12.5px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--tm-line); border-radius: 999px; cursor: pointer; }
.tm-chat-form { display: flex; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--tm-line); }
.tm-chat-form input { flex: 1; min-width: 0; height: 40px; padding: 0 11px; font-size: 16px; color: var(--text-primary); background: transparent; border: 1px solid var(--tm-line); border-radius: 10px; }
.tm-chat-form button { height: 40px; padding: 0 14px; font-size: 14px; font-weight: 700; color: #fff; background: var(--accent-teal); border: 0; border-radius: 10px; cursor: pointer; }

/* foreign trips */
.tm-visa { display: inline-block; width: fit-content; padding: 2px 10px; font-size: 12px; font-weight: 800; border-radius: 999px; }
.tm-visa-free { color: var(--tm-green); background: var(--tm-green-bg); }
.tm-visa-arrival, .tm-visa-evisa, .tm-visa-eta { color: var(--tm-blue); background: var(--tm-blue-bg); }
.tm-visa-required, .tm-visa-other { color: var(--tm-yellow); background: var(--tm-yellow-bg); }

.jw-hidden { display: none !important; }
.tm-rowrate { display: block; font-size: 13px; white-space: nowrap; }
.tm-rowrate b { color: var(--text-primary); }
.tm-rowbtn, .tm-rowstar { padding: 1px 8px; font-size: 12.5px; font-weight: 700; color: var(--accent-teal); background: var(--tm-soft); border: 1px solid var(--tm-line); border-radius: 8px; cursor: pointer; }
.tm-rowstar { margin-right: 2px; min-width: 26px; }
.lp.tm a.tm-rowmaps { display: block; margin-top: 3px; font-size: 12.5px; white-space: nowrap; }

@media print {
  .main-header, .tm-chat, .tm-chat-open, .tm-search, .tm-trip-actions, .lp-crumbs, footer, .m-tabbar, .tm-trip-form, .tm-plan-chat, .tm-plan-form, .tm-dos, .tm-planner ~ .tm-sec, .tm-planner > .tm-src { display: none !important; }
  .tm-sec { box-shadow: none; border: 0; }
}

@media (max-width: 1024px) { .tm-land-pics { grid-template-columns: 1.4fr 1fr 1fr; } .tm-land-pics img:nth-child(4) { display: none; } }
@media (max-width: 768px) { .tm-chat-open { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); right: 12px; } .tm-chat { right: 12px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); max-height: 66vh; } html.jw-typing .tm-chat { bottom: 8px; } }
@media (max-width: 640px) {
  .tm-land-pics { grid-template-columns: 1fr 1fr; }
  .tm-land-pics img:nth-child(3) { display: none; }
  .tm-land-text { padding: 20px 14px; }
  .tm-grid-topics { grid-template-columns: 1fr !important; }
  .tm-over div { grid-template-columns: minmax(84px, 34%) 1fr; }
}

/* small cards draw at once; only long lists of photo cards wait until they come near the screen */
.tm-grid-topics > .tm-card { content-visibility: visible; }
.tm .lp-crumbs:not(:has(a)) { display: none; }
.tm-ph-none { display: flex; align-items: center; justify-content: center; }
.tm-ph-none b { font-family: var(--font-display); font-size: 54px; font-weight: 800; color: var(--accent-teal); opacity: 0.32; }
.tm-card:not(:has(.tm-ph)) .tm-card-body { height: 100%; }
.tm-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.lp.tm .tm-pager a { min-width: 38px; padding: 7px 11px; text-align: center; font-weight: 700; text-decoration: none; background: var(--tm-soft); border: 1px solid var(--tm-line); border-radius: 10px; }
.lp.tm .tm-pager a.on { color: #fff; background: var(--accent-teal); border-color: var(--accent-teal); }
.tm-tile .tm-more { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent-teal); }
.tm-award .tm-mk { white-space: normal; }
.tm-chips[hidden], .tm-award-strip[hidden] { display: none !important; }

/* Treks and adventure places as cards: the figures as small chips that wrap, three or four cards a row on a laptop, two on
   a tablet, one on a phone; grades in the colours of how hard (user, 14 Nov 2026: clean, easy on phones and tablets) */
.tm-grid-treks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.tm-facts-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.tm-chip-fact { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4;
  background: var(--tm-soft, rgba(14, 116, 144, 0.08)); border: 1px solid var(--tm-line, rgba(15, 23, 42, 0.1)); color: var(--text-primary); }
.tm-chip-fact.tm-g-easy { background: rgba(22, 163, 74, 0.12); border-color: rgba(22, 163, 74, 0.35); }
.tm-chip-fact.tm-g-moderate { background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.35); }
.tm-chip-fact.tm-g-hard { background: rgba(220, 38, 38, 0.12); border-color: rgba(220, 38, 38, 0.35); }
.tm-trek .tm-card-sub { font-size: 13.5px; }
.tm-photo-note { margin-top: 4px; }
/* phones and tablets: facts two to a row, sections with less padding, the map a little shorter, lists one or two columns */
@media (max-width: 1024px) {
  .tm-facts:not(.tm-plan) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
  .tm-twocol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tm-facts:not(.tm-plan) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tm-facts > div { padding: 10px 12px; }
  .tm-twocol { grid-template-columns: 1fr; }
  #tm-map.tm-map { height: 340px !important; }
  .tm-layers { gap: 6px 12px; }
  .tm-head h1 { font-size: clamp(22px, 6.4vw, 30px); line-height: 1.2; }
}
/* a strip of photos of the area: a row that scrolls sideways on phones, a grid on wider screens */
.tm-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tm-gal-item { margin: 0; }
.tm-gal-item img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; display: block; }
.tm-gal-item figcaption { margin-top: 6px; font-size: 13.5px; font-weight: 600; }
@media (max-width: 640px) {
  .tm-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
  .tm-gal-item { flex: 0 0 72%; scroll-snap-align: start; }
}
