/* =====================================================================
   Trasy rowerowe na Podkarpaciu – style działu (mobile-first)
   Wszystkie klasy z prefiksem .tr- – nie kolidują ze stylami serwisu.
   ===================================================================== */

:root {
  --tr-bg: #fbfbfb;
  --tr-surface: #ffffff;
  --tr-surface-2: #f2f0f4;
  --tr-text: #1b1d27;
  --tr-muted: #5f6270;
  --tr-border: #e5e5e5;
  --tr-brand: #36006d;
  --tr-brand-2: #427c02;
  --tr-accent: #cb209f;
  --tr-focus: #b3e229;
  --tr-d-latwa: #2e8540;
  --tr-d-srednia: #1f6fb2;
  --tr-d-trudna: #c0392b;
  --tr-d-bardzo-trudna: #1d1d1d;
  --tr-asfalt: #5b6770;
  --tr-szuter: #c8a464;
  --tr-grunt: #8a5a33;
  --tr-nieznana: #c9cfd3;
  --tr-radius: 0;
  --tr-radius-sm: 0;
  --tr-shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 4px 16px rgba(20, 40, 25, .06);
  --tr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --tr-display: 'Poppins', 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --tr-header-h: 56px;
  --tr-wrap: 1440px;
  --tr-lime: #b3e229;
}

*, *::before, *::after { box-sizing: border-box; }
/* kotwice i scrollIntoView zatrzymują się pod przyklejonym nagłówkiem serwisu (na stronie trasy także pod paskiem sekcji) */
html { scroll-padding-top: calc(var(--tr-header-h) + 28px); }
html:has(.tr-page-trasa) { scroll-padding-top: calc(var(--tr-header-h) + 76px); }
.tr-body { margin: 0; background: var(--tr-bg); color: var(--tr-text); font: 16px/1.6 var(--tr-font); -webkit-text-size-adjust: 100%; }
.tr-body img { max-width: 100%; height: auto; }
.tr-main a { color: var(--tr-brand-2); }
.tr-main a:hover { color: var(--tr-brand); }
.tr-body :focus-visible { outline: 3px solid var(--tr-focus); outline-offset: 2px; }
.tr-body h1, .tr-body h2, .tr-body h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
.tr-body h1 { font-size: clamp(27.2px, 4.5vw, 41.6px); }
.tr-body h2 { font-size: clamp(20.8px, 3vw, 26.4px); }
.tr-body h3 { font-size: 17.6px; }

.tr-wrap { max-width: var(--tr-wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .tr-wrap { padding: 0 28px; } }
.tr-main { min-height: 60vh; }
.tr-muted { color: var(--tr-muted); }
.tr-small { font-size: 13.6px; }
.tr-sr, .tr-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tr-skip { position: absolute; left: -999px; top: 8px; background: var(--tr-brand); color: #fff !important; padding: 8px 14px; z-index: 1000; }
.tr-skip:focus { left: 8px; }

/* --- reset globalnych reguł serwisu (header-28.css) w treści działu ---- */
.tr-main p, .tr-credits p { font-size: inherit; line-height: inherit; color: inherit; margin: 0 0 12px; }
.tr-main li, .tr-credits li { margin: 0; line-height: inherit; color: inherit; }
.tr-main strong { font-size: inherit; color: inherit; }
.tr-main h1, .tr-main h2, .tr-main h3 { color: var(--tr-text); }
.tr-main h3 { font-weight: 700; }
.tr-main hr { margin: 20px 0; }
@media (max-width: 768px) { :root { --tr-header-h: 46px; } .tr-main p { font-size: inherit; line-height: inherit; } }

/* --- nagłówek / stopka (domyślne, podmienialne) ------------------------ */
.tr-site-header { background: var(--tr-brand); color: #fff; }
.tr-site-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.tr-logo { display: flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none; font-weight: 700; }
.tr-site-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tr-site-nav a { color: #e6f0e8 !important; text-decoration: none; padding: 8px 10px; white-space: nowrap; font-size: 15.2px; }
.tr-site-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }
.tr-saved-count { background: var(--tr-accent); color: #fff; padding: 0 7px; font-size: 12.8px; }
.tr-site-footer { background: #10291a; color: #c9d8cd; padding: 36px 0 18px; font-size: 14.7px; }
.tr-site-footer a { color: #e7f2ea; }
.tr-footer-grid { display: grid; gap: 24px; }
.tr-footer-title { font-weight: 700; color: #fff; margin: 0 0 8px; }
.tr-footer-list { list-style: none; margin: 0; padding: 0; columns: 2; }
.tr-footer-list li { margin-bottom: 4px; }
.tr-footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 14px; }
.tr-site-footer .tr-muted { color: #9fb5a6; }
@media (min-width: 800px) { .tr-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.tr-credits { background: var(--tr-surface-2); border-top: 1px solid var(--tr-border); margin-top: 48px; padding: 28px 0 12px; font-size: 14px; color: var(--tr-muted); }
.tr-credits-grid { display: grid; gap: 20px; }
.tr-credits-title { font-weight: 700; color: var(--tr-text) !important; margin-bottom: 8px !important; }
.tr-credits-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tr-credits a { color: var(--tr-brand-2); font-weight: 600; }
@media (min-width: 900px) { .tr-credits-grid { grid-template-columns: 1fr 1.3fr; } }
.tr-credits-about { border-top: 1px solid var(--tr-border); margin-top: 20px; padding-top: 16px; }
.tr-credits-about p:last-child { max-width: 900px; }

/* --- okruszki ---------------------------------------------------------- */
.tr-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: 14.1px; color: var(--tr-muted); }
.tr-crumbs li + li::before { content: "›"; margin-right: 4px; color: #a0aba3; }
.tr-crumbs a { color: var(--tr-muted); text-decoration: none; }
.tr-crumbs a:hover { text-decoration: underline; }

/* --- hero -------------------------------------------------------------- */
.tr-hero { padding: 18px 0 8px; display: grid; gap: 18px; }
.tr-lead { font-size: 17.3px; color: #39463e; max-width: 760px; margin: 0; }
.tr-eyebrow { margin: 0 0 6px; font-size: 14.4px; color: var(--tr-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tr-eyebrow a { color: inherit; }
.tr-hero-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tr-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tr-kpis li { background: var(--tr-surface); border: 1px solid var(--tr-border); padding: 10px 12px; display: flex; flex-direction: column; }
.tr-kpis strong { font-size: 22.4px; color: var(--tr-brand); line-height: 1.1; }
.tr-kpis span { font-size: 13.6px; color: var(--tr-muted); }
@media (min-width: 700px) { .tr-kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) {
  .tr-hero-list { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .tr-hero-route { grid-template-columns: 1fr auto; align-items: end; }
}

/* --- hero list (hub, region, miejscowość…) – ciemny panel z poziomicami */
.tr-hero-list { position: relative; overflow: hidden; isolation: isolate; margin: 14px -16px 0; padding: 28px 20px 96px; gap: 26px; color: #fff;
  background:
    repeating-radial-gradient(ellipse 120% 90% at 88% 8%, transparent 0 26px, rgba(255, 255, 255, .055) 26px 27px),
    radial-gradient(60% 80% at 100% 0%, rgba(203, 32, 159, .35), transparent 70%),
    linear-gradient(140deg, #24004a 0%, var(--tr-brand) 55%, #4b0f8a 100%); }
.tr-main .tr-hero-list h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.025em; line-height: 1.05; margin-bottom: 16px; }
.tr-main .tr-hero-list .tr-lead { color: rgba(255, 255, 255, .82); font-size: 15.5px; max-width: 640px; }
.tr-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-lime); }
.tr-hero-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.tr-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0 !important; }
.tr-btn.tr-btn-lime { background: var(--tr-lime); border-color: var(--tr-lime); color: #1d0638 !important; }
.tr-btn.tr-btn-lime:hover { background: #c6f04a; border-color: #c6f04a; }
.tr-btn.tr-btn-on-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.tr-btn.tr-btn-on-dark:hover { background: rgba(255, 255, 255, .14); }
.tr-hero-list .tr-kpis { position: relative; z-index: 1; gap: 0; align-self: center; border-top: 1px solid rgba(255, 255, 255, .18); }
.tr-hero-list .tr-kpis li { background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); padding: 14px 4px; }
.tr-hero-list .tr-kpis li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .18); }
.tr-hero-list .tr-kpis li:nth-child(even) { padding-left: 18px; }
.tr-hero-list .tr-kpis strong { color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.tr-hero-list .tr-kpis li:first-child strong { color: var(--tr-lime); }
.tr-hero-list .tr-kpis span { color: rgba(255, 255, 255, .7); font-size: 14px; }
.tr-hero-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; z-index: -1; pointer-events: none; }
.tr-hill-3 { fill: rgba(255, 255, 255, .05); }
.tr-hill-2 { fill: rgba(255, 255, 255, .08); }
.tr-hill-1 { fill: rgba(16, 0, 34, .45); }
.tr-hill-route { fill: none; stroke: var(--tr-lime); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .9; }
.tr-hill-pin { fill: var(--tr-lime); }
@media (min-width: 700px) {
  .tr-hero-list { margin: 14px 0 0; padding: 40px 36px 110px; }
  .tr-main .tr-hero-list .tr-lead { font-size: 16.8px; }
  .tr-hero-eyebrow { font-size: 13px; }
  .tr-hero-list .tr-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .tr-hero-list { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 56px; padding: 52px 48px 120px; }
  .tr-hero-list .tr-kpis li { padding: 18px 4px; }
  .tr-hero-list .tr-kpis li:nth-child(even) { padding-left: 24px; }
  .tr-hero-hills { height: 140px; }
}

/* --- przyciski, chipy, odznaki ---------------------------------------- */
.tr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--tr-brand); background: var(--tr-brand); color: #fff !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.tr-btn:hover { background: var(--tr-brand-2); }
.tr-btn-ghost { background: var(--tr-surface); color: var(--tr-brand) !important; border-color: var(--tr-border); }
.tr-btn-ghost:hover { background: var(--tr-surface-2); }
.tr-btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14.4px; }
.tr-link { background: none; border: 0; padding: 0; color: var(--tr-brand-2); font: inherit; text-decoration: underline; cursor: pointer; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-actions .tr-btn { flex: 1 1 auto; }
@media (min-width: 1000px) { .tr-actions .tr-btn { flex: 0 0 auto; } }
.tr-badge { display: inline-block; padding: 3px 10px; color: #fff; font-size: 13.1px; font-weight: 700; letter-spacing: .02em; }
.tr-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; background: var(--tr-surface-2); color: #33403a; font-size: 13.6px; }
.tr-swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid rgba(0, 0, 0, .2); vertical-align: -1px; }
.tr-count { display: inline-block; min-width: 20px; padding: 0 6px; background: var(--tr-accent); color: #fff; font-size: 12px; text-align: center; }
.tr-d-latwa { background: var(--tr-d-latwa); }
.tr-d-srednia { background: var(--tr-d-srednia); }
.tr-d-trudna { background: var(--tr-d-trudna); }
.tr-d-bardzo-trudna { background: var(--tr-d-bardzo-trudna); }
.tr-tag-family { background: #fde9c8 !important; color: #7a4a00 !important; }
.tr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 0; margin-right: 3px; }
.tr-dot-start { background: var(--tr-d-latwa); }
.tr-dot-end { background: var(--tr-d-trudna); }

/* --- sekcje ------------------------------------------------------------ */
.tr-section { margin-top: 36px; }
.tr-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.tr-section-head h2 { margin-bottom: 12px; }
.tr-results-count { margin: 0; color: var(--tr-muted); }
.tr-section-head .tr-muted { margin: 0 0 12px; }
@media (max-width: 699px) { .tr-section-head .tr-muted { display: none; } }

/* --- hero huba: opis, linki + mapa regionów ----------------------------
   Telefon: rodzaje tras i regiony jako przewijane rzędy linków (mapa na żądanie).
   Od 1000px: dwie kolumny – treść po lewej, mapa po prawej. */
/* tło na całą szerokość strony; treść wyrównana do kontenera .tr-wrap (jak nagłówek serwisu) */
.tr-hub { --hub-px: 20px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 26px var(--hub-px) 28px; color: #fff;
  background:
    repeating-radial-gradient(ellipse 70% 60% at 78% 50%, transparent 0 30px, rgba(255, 255, 255, .035) 30px 31px),
    radial-gradient(55% 70% at 78% 50%, rgba(203, 32, 159, .28), transparent 70%),
    linear-gradient(140deg, #24004a 0%, var(--tr-brand) 55%, #4b0f8a 100%); }
.tr-hub > .tr-crumbs { grid-column: 1 / -1; margin: -12px 0 22px; }
.tr-hub .tr-crumbs ol { padding: 0; color: rgba(255, 255, 255, .7); }
.tr-hub .tr-crumbs li + li::before { color: rgba(255, 255, 255, .45); }
.tr-main .tr-hub .tr-crumbs a { color: rgba(255, 255, 255, .85); }
.tr-main .tr-hub .tr-crumbs a:hover { color: #fff; }
.tr-hub-main { min-width: 0; }
.tr-hub [hidden] { display: none !important; }
.tr-main .tr-hub h1 { color: #fff; font: 800 32px/1.05 var(--tr-display); letter-spacing: -.028em; margin: 0 0 12px; text-wrap: balance; }
.tr-main .tr-hub-lead { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.55; max-width: 50ch; margin: 0 0 20px; }

.tr-hub-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff !important; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.tr-hub-pill:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.tr-hub-pill[aria-current="true"] { background: var(--tr-lime); border-color: var(--tr-lime); color: #1d0638 !important; }
.tr-hub-pill b { font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.tr-hub-cta { margin: 0 !important; }

/* rodzaje tras i liczby; na telefonie rzędy linków przewijane w poziomie */
.tr-main .tr-hub-label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.tr-hub-quick { margin-top: 26px; }
.tr-hub-quick ul { display: flex; gap: 6px; overflow-x: auto; list-style: none; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.tr-hub-quick ul::-webkit-scrollbar { display: none; }
.tr-hub-quick li { flex: none; margin: 0; }
@media (max-width: 699px) { .tr-hub .tr-hero-eyebrow { display: none; } }
.tr-hub-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.tr-hub-kpis li { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 0 8px; border-left: 1px solid rgba(255, 255, 255, .16); }
.tr-hub-kpis li:first-child { padding-left: 0; border-left: 0; }
.tr-hub-kpis strong { color: #fff; font: 800 20px/1.1 var(--tr-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-hub-kpis li:first-child strong { color: var(--tr-lime); }
.tr-hub-kpis span { color: rgba(255, 255, 255, .66); font-size: 12px; line-height: 1.3; }

/* regiony: lista na telefonie, mapa obok treści na dużym ekranie */
.tr-hub-regs { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.tr-hub-regs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tr-main .tr-hub-regs h2 { margin: 0; color: #fff; font: 700 17px/1.2 var(--tr-display); }
.tr-hub-maptoggle { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 4px 0; background: none; color: var(--tr-lime); font: 600 14px var(--tr-font); cursor: pointer; }
.tr-hub-maptoggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.tr-hub-regs-track { display: flex; gap: 6px; overflow-x: auto; list-style: none; margin: 0; padding: 0 0 2px; scrollbar-width: none; }
.tr-hub-regs-track::-webkit-scrollbar { display: none; }
.tr-hub-regs-track li { flex: none; margin: 0; }

.tr-hub-map { display: none; min-width: 0; margin-top: 16px; justify-items: center; gap: 6px; }
.tr-hub-map.is-open { display: grid; }
.tr-hub-map svg { display: block; width: 100%; max-width: 340px; height: auto; overflow: visible; }
.tr-hub-woj { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .38); stroke-width: 1.2; stroke-linejoin: round; }
.tr-hub-san { fill: none; stroke: #8fc6ff; stroke-opacity: .55; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tr-hub-san-l { fill: #8fc6ff; fill-opacity: .8; font: italic 10px var(--tr-font); }
.tr-hub-reg { cursor: pointer; outline: none; }
.tr-hub-reg circle { fill: var(--tr-lime); stroke: #2a0254; stroke-width: 2.5; paint-order: stroke; transition: fill .15s; }
.tr-hub-cnt { fill: #1d0638; font: 700 10.5px var(--tr-font); text-anchor: middle; pointer-events: none; }
.tr-hub-lbl { fill: #fff; font: 600 11px var(--tr-font); pointer-events: none; paint-order: stroke; stroke: rgba(36, 0, 74, .55); stroke-width: 3px; }
.tr-hub-reg:hover circle, .tr-hub-reg:focus-visible circle, .tr-hub-reg.is-on circle { fill: #fff; }
.tr-hub-reg:focus-visible circle { stroke: var(--tr-lime); stroke-width: 3; }
.tr-hub-reg.is-on .tr-hub-lbl { fill: var(--tr-lime); }
.tr-main .tr-hub-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; min-height: 24px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); text-align: center; }

@media (min-width: 700px) {
  .tr-hub { --hub-px: max(28px, calc((100% - var(--tr-wrap)) / 2 + 28px)); padding: 36px var(--hub-px); }
  .tr-main .tr-hub h1 { font-size: clamp(38px, 5vw, 52px); }
  .tr-main .tr-hub-lead { font-size: 16.5px; margin-bottom: 22px; }
  .tr-hub-quick ul, .tr-hub-regs-track { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .tr-hub-kpis { margin-top: 28px; padding-top: 20px; max-width: 640px; }
  .tr-hub-kpis li { padding: 0 18px; }
  .tr-hub-kpis strong { font-size: 30px; }
  .tr-hub-kpis span { font-size: 13.5px; }
}
@media (min-width: 1000px) {
  .tr-hub { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; column-gap: 40px; padding-block: 52px 44px; }
  .tr-hub > .tr-crumbs { margin: -30px 0 30px; }
  .tr-hub-regs { display: none; }
  .tr-hub-map, .tr-hub-map.is-open { display: grid; margin-top: 0; }
  .tr-hub-map svg { max-width: 520px; }
}

.tr-pagehead { padding: 18px 0 4px; }
.tr-main .tr-pagehead h1 { margin: 0 0 6px; font: 800 clamp(26px, 3.6vw, 38px)/1.1 var(--tr-display); letter-spacing: -.02em; text-wrap: balance; }
.tr-pagehead h1 span { color: var(--tr-muted); font-weight: 600; }
.tr-main .tr-pagehead p { margin: 0; color: var(--tr-muted); }

.tr-link-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tr-link-pills a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; text-decoration: none; color: var(--tr-text) !important; }
.tr-link-pills a:hover { text-decoration: underline; }
.tr-link-pills span { color: var(--tr-muted); font-size: 13.6px; }

/* --- TOP 10 (hub) ------------------------------------------------------ */
.tr-top10-lead { max-width: 760px; color: var(--tr-muted); margin: 0 0 18px !important; }
.tr-top10-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 1000px) { .tr-top10-list { grid-template-columns: repeat(2, 1fr); } }
.tr-top10-item { display: grid; grid-template-columns: 1fr; background: var(--tr-surface); border: 1px solid var(--tr-border); box-shadow: var(--tr-shadow); }
@media (min-width: 560px) { .tr-top10-item { grid-template-columns: 220px 1fr; } }
/* zawsze 16:9 – jak mapka-tło, inaczej kształt trasy rozjeżdża się z podkładem */
.tr-top10-media { position: relative; display: block; align-self: start; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 30%, #f1f6ec, #e2eadb); overflow: hidden; }
@media (min-width: 560px) { .tr-top10-media { margin: 12px 0 12px 12px; } }
.tr-top10-media .tr-shape { position: absolute; inset: 0; }
.tr-top10-num { position: absolute; left: 0; top: 0; min-width: 40px; padding: 4px 10px; background: var(--tr-brand); color: #fff; font: 800 20px/1.3 var(--tr-display); text-align: center; }
.tr-top10-body { padding: 12px 16px 14px; }
.tr-main .tr-top10-body h3 { font-size: 17.6px; margin: 0 0 6px; }
.tr-top10-body h3 a { color: var(--tr-text) !important; text-decoration: none; }
.tr-top10-body h3 a:hover { text-decoration: underline; }
.tr-main .tr-top10-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; font-size: 13.6px; color: var(--tr-muted); }
.tr-main .tr-top10-desc { margin: 0; font-size: 15px; line-height: 1.55; }

/* --- karty tras -------------------------------------------------------- */
.tr-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tr-grid-compact { grid-template-columns: repeat(4, 1fr); } .tr-grid { grid-template-columns: repeat(3, 1fr); } }
.tr-grid + h2 { margin-top: 40px; }
.tr-browser-grid .tr-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .tr-browser-grid .tr-grid { grid-template-columns: repeat(2, 1fr); } }
.tr-card { position: relative; background: var(--tr-surface); border: 1px solid var(--tr-border); overflow: hidden; box-shadow: var(--tr-shadow); transition: box-shadow .15s, transform .15s; }
.tr-card:hover { box-shadow: 0 6px 24px rgba(20, 40, 25, .12); transform: translateY(-1px); }
.tr-card.is-hl { outline: 3px solid var(--tr-accent); }
.tr-card-link { display: block; color: inherit !important; text-decoration: none; height: 100%; }
.tr-card-media { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 30%, #f1f6ec, #e2eadb); }
.tr-shape { width: 100%; height: 100%; display: block; }
.tr-shape-line path { stroke: var(--tr-brand); stroke-width: 3.2; }
.tr-shape-start { fill: var(--tr-d-latwa); stroke: #fff; stroke-width: 2; }
.tr-shape-end { fill: var(--tr-d-trudna); stroke: #fff; stroke-width: 2; }
.tr-card-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-card-media-map .tr-shape { position: relative; }
.tr-card-media-map .tr-shape-line { filter: drop-shadow(0 0 1.5px #fff); }
.tr-card-attr { position: absolute; right: 0; bottom: 0; padding: 1px 5px; font-size: 10px; line-height: 1.4; color: #555; background: rgba(255, 255, 255, .75); }
.tr-card-media .tr-badge { position: absolute; left: 10px; top: 10px; }
.tr-chip-loop { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); }
.tr-card-body { padding: 12px 14px 14px; }
.tr-card-title { font-size: 16.8px; margin: 0 0 2px; padding-right: 30px; }
.tr-card-region { margin: 0 0 8px; font-size: 13.8px; color: var(--tr-muted); }
.tr-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 8px; }
.tr-card-stats div { background: var(--tr-surface-2); padding: 5px 8px; }
.tr-card-stats dt { font-size: 11.5px; color: var(--tr-muted); text-transform: uppercase; letter-spacing: .04em; }
.tr-card-stats dd { margin: 0; font-weight: 700; font-size: 15.2px; white-space: nowrap; }
.tr-card-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 13.1px; color: var(--tr-muted); }
.tr-card-tags .tr-tag-family { padding: 0 6px; }
.tr-card-tags .tr-tag-pkp { display: inline-flex; align-items: center; gap: 4px; }
.tr-tag-pkp svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-save { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.tr-save path { fill: none; stroke: #b33; stroke-width: 2; }
.tr-save[aria-pressed="true"] path { fill: #d33; }
.tr-save-big[aria-pressed="true"] { background: #fde8e8; color: #a11 !important; }

/* --- przeglądarka: filtry + mapa + wyniki ----------------------------- */
.tr-filters { background: var(--tr-surface); border: 1px solid var(--tr-border); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.tr-filters-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-filters-top .tr-btn { min-height: 44px; padding: 8px 16px; font-size: 15px; border-radius: 999px; border-color: #cfc8da; }
.tr-search { flex: 1 1 220px; position: relative; display: flex; align-items: center; }
.tr-search .tr-ico { position: absolute; left: 14px; color: var(--tr-muted); pointer-events: none; }
.tr-search input { padding-left: 40px !important; }
.tr-search input, .tr-filters select, .tr-filters input[type=number], .tr-report-form input, .tr-report-form select, .tr-report-form textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--tr-border); font: inherit; background: #fff; color: var(--tr-text);
}
.tr-filters .tr-search input, .tr-filters select { border-color: #cfc8da; border-radius: 8px; }
.tr-filters .tr-count { border-radius: 999px; background: var(--tr-brand); }
/* rząd szybkich filtrów: trudność | długość */
.tr-filters-quick { margin-top: 10px; }
.tr-filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tr-filters-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-chips + .tr-chips { padding-left: 10px; margin-left: 4px; border-left: 1px solid #cfc8da; }
/* panel „Więcej filtrów” */
.tr-filters-more { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tr-border); gap: 14px; grid-template-columns: 1fr; }
.tr-filters.is-open .tr-filters-more { display: grid; }
.tr-filters legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tr-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-pill { position: relative; }
.tr-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tr-pill span { display: inline-block; padding: 6px 13px; border: 1px solid #cfc8da; border-radius: 999px; background: #fff; font-size: 14px; line-height: 1.3; cursor: pointer; white-space: nowrap; }
.tr-pill span:hover { border-color: var(--tr-brand); }
.tr-pill input:checked + span { background: #efe8f8; color: var(--tr-brand); border-color: var(--tr-brand); font-weight: 600; }
.tr-pill-latwa input:checked + span { background: color-mix(in srgb, var(--tr-d-latwa) 12%, #fff); color: var(--tr-d-latwa); border-color: var(--tr-d-latwa); }
.tr-pill-srednia input:checked + span { background: color-mix(in srgb, var(--tr-d-srednia) 12%, #fff); color: var(--tr-d-srednia); border-color: var(--tr-d-srednia); }
.tr-pill-trudna input:checked + span { background: color-mix(in srgb, var(--tr-d-trudna) 12%, #fff); color: var(--tr-d-trudna); border-color: var(--tr-d-trudna); }
.tr-pill-bardzo-trudna input:checked + span { background: color-mix(in srgb, var(--tr-d-bardzo-trudna) 12%, #fff); color: var(--tr-d-bardzo-trudna); border-color: var(--tr-d-bardzo-trudna); }
.tr-pill input:focus-visible + span, .tr-seg input:focus-visible + span { outline: 3px solid var(--tr-focus); outline-offset: 1px; }
/* przełącznik segmentowy (jeden wybór) */
.tr-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #cfc8da; border-radius: 8px; overflow: hidden; background: #fff; }
.tr-seg label { position: relative; }
.tr-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tr-seg span { display: block; padding: 6px 11px; font-size: 14px; line-height: 1.3; cursor: pointer; white-space: nowrap; border-right: 1px solid var(--tr-border); }
.tr-seg label:last-child span { border-right: 0; }
.tr-seg input:checked + span { background: #efe8f8; color: var(--tr-brand); font-weight: 600; }
.tr-checks label { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 15px; }
.tr-checks input, .tr-check input { width: 18px; height: 18px; accent-color: var(--tr-brand); }
/* stopka: licznik wyników | sortowanie + przycisk */
.tr-filters-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tr-border); }
.tr-filters .tr-filters-found { margin: 0; font-size: 14px; color: var(--tr-muted); }
.tr-filters-found strong { color: var(--tr-text); }
.tr-filters-clear { color: var(--tr-brand) !important; white-space: nowrap; }
.tr-filters-side { display: flex; align-items: center; gap: 10px; }
.tr-sort { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--tr-muted); white-space: nowrap; }
.tr-filters .tr-sort select { width: auto; min-height: 40px; padding: 4px 8px; font-size: 14px; }
.tr-filters-top .tr-btn-show { border-color: var(--tr-brand); padding: 8px 20px; }
.tr-filters [hidden] { display: none; }
/* telefon: przyciski obok siebie, chipy w jednym przewijanym pasku */
@media (max-width: 699px) {
  .tr-search { flex-basis: 100%; }
  .tr-filters-top .tr-btn { flex: 1 1 0; padding: 8px 10px; }
  /* position: relative – ukryte legendy (.tr-sr, absolute) zostają w przewijanym rzędzie, zamiast poszerzać stronę */
  .tr-filters-chips { position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 24px); margin: 0 -12px; padding: 0 12px; }
  .tr-filters-chips::-webkit-scrollbar { display: none; }
  .tr-filters-chips .tr-chips { flex: none; flex-wrap: nowrap; }
  .tr-filters-side { width: 100%; }
  .tr-sort { flex: 1 1 auto; min-width: 0; }
  .tr-filters .tr-sort select { width: 100%; min-width: 0; }
  .tr-filters-top .tr-btn-show { flex-basis: 100%; }
}
@media (min-width: 800px) {
  .tr-filters-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .tr-filters-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tr-browser-grid { display: grid; gap: 16px; }
.tr-map-box { min-width: 0; }
.tr-photo-box img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; border: 1px solid var(--tr-border); }
.tr-map { position: relative; height: 340px; overflow: hidden; background: #e4ebdf; border: 1px solid var(--tr-border); }
.tr-map-activate { position: absolute; inset: auto 50% 16px auto; transform: translateX(50%); z-index: 500; min-height: 44px; padding: 10px 18px; border: 0; background: var(--tr-brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--tr-shadow); }
.tr-map.is-ready .tr-map-activate, .tr-map.is-ready .tr-map-placeholder { display: none; }
.tr-map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.tr-map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: 13.6px; color: var(--tr-muted); }
.tr-leg { background: none !important; }
.tr-leg::before { content: ""; display: inline-block; width: 18px; height: 4px; margin-right: 6px; vertical-align: 3px; }
.tr-leg.tr-d-latwa::before { background: var(--tr-d-latwa); }
.tr-leg.tr-d-srednia::before { background: var(--tr-d-srednia); }
.tr-leg.tr-d-trudna::before { background: var(--tr-d-trudna); }
.tr-leg.tr-d-bardzo-trudna::before { background: var(--tr-d-bardzo-trudna); }
.tr-results[aria-busy="true"] { opacity: .5; pointer-events: none; transition: opacity .2s; }
@media (min-width: 1000px) {
  .tr-browser-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  .tr-map-box { position: sticky; top: calc(var(--tr-header-h) + 12px); }
  .tr-map { height: calc(100vh - var(--tr-header-h) - 40px); max-height: 760px; min-height: 480px; }
}
.tr-empty { background: var(--tr-surface); border: 1px dashed var(--tr-border); padding: 24px; text-align: center; }
.tr-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; }
.tr-pagination a, .tr-pagination span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--tr-border); background: #fff; text-decoration: none; }
.tr-pagination [aria-current] { background: var(--tr-brand); color: #fff; border-color: var(--tr-brand); }
.tr-pagination .tr-pag-gap { border: 0; background: none; }

.tr-near-list, .tr-saved-list { margin: 0; padding-left: 20px; }
.tr-near-list li, .tr-saved-list li { margin-bottom: 6px; }
.tr-saved-list button { margin-left: 8px; }

/* --- artykuł, FAQ ---------------------------------- */
/* sekcje na dole listingu oddzielone linią z krótkim akcentem */
.tr-article, .tr-ruled { position: relative; border-top: 1px solid var(--tr-border); padding-top: 28px; margin-top: 40px; }
.tr-article::before, .tr-ruled::before { content: ""; position: absolute; left: 0; top: -2px; width: 48px; height: 3px; background: var(--tr-brand); }
.tr-prose { max-width: 780px; }
.tr-article .tr-prose { max-width: none; }
.tr-prose p { margin: 0 0 1em; }
.tr-tips { margin-top: 18px; padding: 16px; background: #fff8e6; border-left: 4px solid var(--tr-focus); }
.tr-tips ul { margin: 0; padding-left: 20px; }
/* FAQ – lista pytań rozdzielonych liniami, na szerokim ekranie nagłówek po lewej */
.tr-faq { container-type: inline-size; }
.tr-faq-kicker { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tr-accent); }
.tr-faq-head h2 { margin: 0 0 8px; }
.tr-faq-head .tr-muted { margin: 0 0 20px; font-size: 14.4px; }
.tr-faq details { border-bottom: 1px solid var(--tr-border); }
.tr-faq details:first-child { border-top: 1px solid var(--tr-border); }
.tr-faq summary { display: grid; grid-template-columns: 28px 1fr 16px; gap: 12px; align-items: baseline; padding: 16px 0; cursor: pointer; list-style: none; font: 600 16.5px/1.4 var(--tr-display); color: var(--tr-text); }
.tr-faq summary::-webkit-details-marker { display: none; }
.tr-faq summary::after { content: ""; align-self: center; justify-self: end; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--tr-brand); border-bottom: 2px solid var(--tr-brand); transform: rotate(45deg); transition: transform .2s; }
.tr-faq details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.tr-faq summary:hover .tr-faq-q, .tr-faq details[open] .tr-faq-q { color: var(--tr-brand-2); }
.tr-faq-n { font: 700 13px/1 var(--tr-font); color: var(--tr-muted); font-variant-numeric: tabular-nums; }
.tr-faq details[open] .tr-faq-n { color: var(--tr-brand-2); }
.tr-faq-a { padding: 0 0 18px 40px; max-width: 72ch; color: #3a3d4a; }
.tr-faq-a p { margin: 0; }
@container (min-width: 820px) {
  .tr-faq-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; gap: 56px; }
  .tr-faq-head { position: sticky; top: calc(var(--tr-header-h) + 24px); align-self: start; }
  .tr-faq summary { grid-template-columns: 36px 1fr 16px; padding: 20px 0; font-size: 17.5px; }
  .tr-faq-a { padding: 0 28px 22px 48px; }
}
@media (prefers-reduced-motion: reduce) { .tr-faq summary::after { transition: none; } }

/* --- strona trasy ----------------------------------------------------- */
.tr-statbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 10px 0 0; background: var(--tr-border); border: 1px solid var(--tr-border); overflow: hidden; }
.tr-statbar div { background: var(--tr-surface); padding: 10px 14px; }
.tr-statbar dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--tr-muted); }
.tr-statbar dd { margin: 0; font-size: 19.2px; font-weight: 700; }
@media (min-width: 700px) { .tr-statbar { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tr-statbar { grid-template-columns: repeat(6, 1fr); } }
.tr-subnav { position: sticky; top: var(--tr-header-h); z-index: 900; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: rgba(246, 247, 243, .95); backdrop-filter: blur(6px); margin: 14px -16px 0; padding: 6px 16px; border-bottom: 1px solid var(--tr-border); }
.tr-subnav a { padding: 8px 12px; white-space: nowrap; text-decoration: none; color: var(--tr-text) !important; font-size: 14.7px; }
.tr-subnav a:hover, .tr-subnav a.is-active { background: var(--tr-surface-2); color: var(--tr-brand) !important; }
.tr-route-map .tr-map { height: 55vh; min-height: 320px; max-height: 620px; }
.tr-shape-big .tr-shape-line path { stroke-width: 4; }
.tr-map-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; font-size: 14.4px; }
.tr-check { display: inline-flex; align-items: center; gap: 6px; }
.tr-profile { position: relative; background: var(--tr-surface); border: 1px solid var(--tr-border); padding: 8px; touch-action: pan-y; }
.tr-profile svg { display: block; width: 100%; height: auto; }
.tr-profile-grid line { stroke: #e3e8df; stroke-width: 1; }
.tr-profile-grid text, .tr-profile-unit { fill: var(--tr-muted); font-size: 12px; font-family: var(--tr-font); }
.tr-profile-area { fill: rgba(34, 107, 64, .18); }
.tr-profile-line { stroke: var(--tr-brand); stroke-width: 2; }
.tr-profile-cursor { stroke: var(--tr-accent); stroke-width: 1.5; }
.tr-profile-tip { position: absolute; top: 8px; transform: translateX(-50%); background: var(--tr-text); color: #fff; font-size: 13.1px; padding: 4px 8px; pointer-events: none; white-space: nowrap; }
.tr-two-col { display: grid; gap: 24px; }
@media (min-width: 1000px) { .tr-two-col { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .tr-col-side { position: sticky; top: calc(var(--tr-header-h) + 60px); } }
.tr-col-side { display: grid; gap: 16px; margin-top: 36px; }
.tr-card-box { background: var(--tr-surface); border: 1px solid var(--tr-border); padding: 16px; }
.tr-card-box h2 { font-size: 19.2px; }
.tr-card-box h3 { margin-top: 16px; }
.tr-facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.tr-facts dt { font-weight: 700; font-size: 13.6px; color: var(--tr-muted); margin-top: 8px; }
.tr-facts dd { margin: 0; }
.tr-coords { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.6px; }
.tr-downloads { display: flex; gap: 8px; margin: 0 0 6px; }
.tr-downloads a { flex: 1; text-align: center; padding: 10px; background: var(--tr-surface-2); font-weight: 700; text-decoration: none; }
.tr-qr { margin-top: 10px; }
.tr-qr img, .tr-qr canvas { margin: 0 auto; }
.tr-link-list { margin: 0; padding-left: 18px; }
.tr-link-list li { margin-bottom: 6px; }
.tr-places { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; counter-reset: pl; }
.tr-places li { background: var(--tr-surface-2); padding: 3px 10px; font-size: 14.4px; }
.tr-places li + li::before { content: "→ "; color: var(--tr-muted); }
.tr-bar-label { font-weight: 700; margin: 14px 0 6px; font-size: 14.4px; }
.tr-bar { display: flex; height: 26px; overflow: hidden; }
.tr-bar span { display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 700; min-width: 0; overflow: hidden; }
.tr-bar-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.6px; color: var(--tr-muted); margin: 6px 0 0; }
.tr-bar-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; }
.tr-bar-asfalt { background: var(--tr-asfalt); }
.tr-bar-szuter { background: var(--tr-szuter); }
.tr-bar-grunt { background: var(--tr-grunt); }
.tr-bar-nieznana { background: var(--tr-nieznana); color: #333 !important; }
.tr-bar-drogi_rowerowe { background: #2e8540; }
.tr-bar-drogi_lokalne { background: #7c9a6e; }
.tr-bar-drogi_lesne_polne { background: #a7825b; }
.tr-bar-drogi_glowne { background: #c0392b; }
.tr-tablist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tr-tablist button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--tr-border); background: #fff; font: inherit; font-size: 14.4px; cursor: pointer; }
.tr-tablist button[aria-selected="true"] { background: var(--tr-brand); color: #fff; border-color: var(--tr-brand); }
.tr-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.tr-tablist .tr-ico { color: var(--tr-brand); }
.tr-tablist button[aria-selected="true"] .tr-ico { color: #fff; }
.tr-poi-list { list-style: none; margin: 8px 0 0; padding: 0; background: var(--tr-surface); border: 1px solid var(--tr-border); }
.tr-poi-list li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--tr-border); }
.tr-poi-list li:last-child { border-bottom: 0; }
.tr-poi-km { font-weight: 700; color: var(--tr-brand); font-size: 14.4px; }
.tr-poi-main { display: flex; flex-direction: column; min-width: 0; }
.tr-poi-main .tr-muted { font-size: 13.6px; }
.tr-poi-links { grid-column: 2; display: flex; gap: 12px; font-size: 13.6px; }
@media (min-width: 700px) { .tr-poi-list li { grid-template-columns: 70px 1fr auto; align-items: center; } .tr-poi-links { grid-column: auto; } }
.tr-alert { padding: 12px 16px; margin: 14px 0; }
.tr-alert-warn { background: #fff1e6; border-left: 4px solid var(--tr-accent); }
.tr-alert-ok { background: #e7f5ea; border-left: 4px solid var(--tr-d-latwa); }
.tr-report-list { list-style: none; padding: 0; margin: 0 0 12px; }
.tr-report-list li { background: var(--tr-surface); border: 1px solid var(--tr-border); padding: 10px 14px; margin-bottom: 8px; }
.tr-report-list p { margin: 4px 0 0; }
.tr-report-form summary { list-style: none; display: inline-flex; }
.tr-report-form summary::-webkit-details-marker { display: none; }
.tr-report-form form { display: grid; gap: 10px; max-width: 560px; margin-top: 12px; background: var(--tr-surface); border: 1px solid var(--tr-border); padding: 16px; }
.tr-report-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14.7px; }
.tr-404 { padding-top: 40px; }
.tr-hide-mobile { display: none !important; }
@media (min-width: 1000px) { .tr-hide-mobile { display: inline-flex !important; } }

/* --- Leaflet: drobne poprawki ----------------------------------------- */
.tr-map .leaflet-popup-content { margin: 10px 12px; font: 14px/1.4 var(--tr-font); }
.tr-map .leaflet-popup-content a.tr-pop-title { font-weight: 700; font-size: 16px; display: block; margin-bottom: 4px; }
.tr-km-label { background: #fff; border: 1px solid var(--tr-brand); color: var(--tr-brand); font-size: 11px; font-weight: 700; padding: 0 5px; white-space: nowrap; }
.tr-poi-icon { display: flex; align-items: center; justify-content: center; color: var(--tr-brand); font-size: 18px; line-height: 26px; text-align: center; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }

/* --- druk -------------------------------------------------------------- */
@media print {
  .tr-site-header, .tr-site-footer, .tr-actions, .tr-subnav, .tr-map-tools, .tr-reports, .tr-save, #podobne, .tr-filters, .tr-hub-cta, .tr-hub-map, .tr-hub-regs, .tr-map-activate, .tr-qr, [data-qr] { display: none !important; }
  .tr-body { background: #fff; font-size: 11pt; }
  .tr-two-col { grid-template-columns: 1fr 260px; }
  .tr-col-side { position: static; }
  .tr-card-box, .tr-profile, .tr-map { break-inside: avoid; }
  .tr-route-map .tr-map { height: 420px; }
  .tr-faq details { border: 0; }
  .tr-faq details > * { display: block; }
  a[href^="http"]::after { content: ""; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-card, .tr-hub-reg circle { transition: none; }
}
.tr-poi-icon .tr-ico { width: 16px; height: 16px; }

/* Kompleks tras – tabela tras */
.tr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tr-table th, .tr-table td { padding: 9px 10px; border-bottom: 1px solid var(--tr-border); text-align: left; white-space: nowrap; }
.tr-table thead th { font-size: 12.5px; color: var(--tr-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tr-table tbody th { font-weight: 600; white-space: normal; min-width: 180px; }
.tr-table tbody tr:hover { background: var(--tr-surface-2); }
