
.tn-hero{padding:44px 0 30px;background:linear-gradient(135deg,#f7fbff 0%,#edf7f1 100%);border-bottom:1px solid #dbe7ef}
.tn-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:28px;align-items:center}
.tn-hero h1{font-size:clamp(2.15rem,4.5vw,3.7rem);line-height:1.02;margin:.4rem 0 .8rem;color:#102a43;letter-spacing:-.03em}
.tn-hero p{font-size:1.04rem;line-height:1.8;color:#486581;max-width:68ch}
.tn-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.tn-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border:1px solid #ccdce7;border-radius:13px;background:#fff;color:#102a43;text-decoration:none;font:inherit;font-weight:850;cursor:pointer;transition:.18s ease}
.tn-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(16,42,67,.09)}
.tn-btn.primary{background:#c92a2a;color:#fff;border-color:#c92a2a}.tn-btn.secondary{background:#102a43;color:#fff;border-color:#102a43}
.tn-network-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tn-network-summary>div{background:#fff;border:1px solid #d9e7ef;border-radius:20px;padding:16px;box-shadow:0 15px 32px rgba(16,42,67,.06)}
.tn-network-summary iconify-icon{font-size:24px;color:#0e7490}.tn-network-summary strong{display:block;font-size:1.7rem;color:#102a43;margin:6px 0 2px}.tn-network-summary span{font-size:.88rem;color:#627d98}
.tn-section{padding:32px 0}.tn-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,.5fr);gap:22px;align-items:start}
.tn-map-card,.tn-detail-card,.tn-pdf-preview,.tn-line-card{background:#fff;border:1px solid #d7e3ec;border-radius:24px;box-shadow:0 16px 40px rgba(16,42,67,.07)}
.tn-map-card{padding:18px;min-width:0}.tn-map-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.tn-map-head h2{margin:3px 0 6px;color:#102a43}.tn-map-head p{margin:0;color:#627d98;max-width:72ch}
.tn-map-tools{display:flex;gap:6px}.tn-map-tools button{width:42px;height:42px;border:1px solid #d4e1ea;border-radius:12px;background:#fff;color:#102a43;display:grid;place-items:center;cursor:pointer}.tn-map-tools button:hover{background:#f3f8fb}
.tn-map-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:16px 0 12px}.tn-search-wrap{position:relative;flex:1;min-width:220px}.tn-search-wrap>iconify-icon{position:absolute;inset-inline-start:13px;top:50%;transform:translateY(-50%);color:#627d98;z-index:2}.tn-search-wrap input{width:100%;height:44px;padding-inline:40px 14px;border:1px solid #cfdde7;border-radius:13px;background:#fff;font:inherit;color:#102a43;outline:none}.tn-search-wrap input:focus{border-color:#5da9c4;box-shadow:0 0 0 3px rgba(93,169,196,.13)}
.tn-search-results{position:absolute;top:50px;inset-inline:0;z-index:20;background:#fff;border:1px solid #d8e4ec;border-radius:14px;box-shadow:0 18px 44px rgba(16,42,67,.16);overflow:hidden;max-height:260px;overflow:auto}.tn-search-results button{width:100%;border:0;background:#fff;padding:10px 12px;display:flex;justify-content:space-between;gap:12px;text-align:start;font:inherit;color:#102a43;cursor:pointer}.tn-search-results button:hover{background:#f4f8fb}.tn-search-results small{color:#829ab1}
.tn-filter-tabs{display:flex;gap:6px;flex-wrap:wrap}.tn-filter-tabs button{height:40px;padding:0 13px;border:1px solid #d4e1ea;border-radius:999px;background:#fff;color:#486581;font:inherit;font-weight:800;cursor:pointer}.tn-filter-tabs button.active{background:#102a43;color:#fff;border-color:#102a43}
.tn-svg-shell{position:relative;border-radius:20px;overflow:hidden;border:1px solid #dbe7ef;background:#f7fafc;touch-action:none;cursor:grab;user-select:none}.tn-svg-shell.dragging{cursor:grabbing}.tn-svg-shell svg{display:block;width:100%;height:auto;min-height:520px}.tn-svg-shell noscript img{display:block;width:100%;height:auto}
.tn-neighborhoods text{fill:#b28536;font:700 18px/1 Segoe UI,Arial,sans-serif;opacity:.32;letter-spacing:.03em}.tn-route{fill:none;stroke-linecap:round;stroke-linejoin:round;transition:opacity .18s,stroke-width .18s,filter .18s;cursor:pointer}.tn-route-hit{fill:none;stroke:transparent;stroke-linecap:round;stroke-linejoin:round;cursor:pointer}.tn-line-group.dim .tn-route{opacity:.16}.tn-line-group.hidden{display:none}.tn-line-group.selected .tn-route{filter:url(#tnShadow);stroke-width:14!important;opacity:1}.tn-line-group.hovered .tn-route{stroke-width:13!important}.tn-stop{cursor:pointer}.tn-stop circle{fill:#fff;stroke-width:4;transition:r .16s,opacity .16s}.tn-stop text{font:800 16px/1.15 Segoe UI,Arial,sans-serif;fill:#102a43;paint-order:stroke;stroke:#fff;stroke-width:6;stroke-linejoin:round;opacity:0;pointer-events:none;letter-spacing:.01em}.tn-stop text.small{font-size:15px}.tn-stop text.tiny{font-size:14px}.tn-stop text.two-line tspan{dominant-baseline:middle}.tn-stop.terminal text,.tn-line-group.selected .tn-stop text{opacity:1}.tn-line-group.dim .tn-stop{opacity:.18}.tn-stop:hover circle,.tn-stop.focused circle{r:10}.tn-stop.focused text{opacity:1}.tn-terminal-tag{font:900 18px/1 Segoe UI,Arial,sans-serif;fill:#fff;pointer-events:none}
.tn-map-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:12px}.tn-legend{display:flex;flex-wrap:wrap;gap:8px}.tn-legend button{display:inline-flex;align-items:center;gap:7px;border:1px solid #d6e3eb;border-radius:999px;background:#fff;padding:7px 10px;font:inherit;font-size:.83rem;font-weight:800;color:#486581;cursor:pointer}.tn-legend button.active{border-color:#102a43;color:#102a43;box-shadow:0 0 0 2px rgba(16,42,67,.06)}.tn-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}.tn-map-hint{display:flex;align-items:center;gap:7px;color:#829ab1;font-size:.84rem;white-space:nowrap}
.tn-detail-card{padding:20px;position:sticky;top:92px}.tn-detail-top{display:flex;align-items:flex-start;gap:12px}.tn-detail-badge{min-width:58px;height:44px;padding:0 12px;border-radius:13px;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:1.08rem;font-weight:950;background:#e58321}.tn-detail-top h2{margin:2px 0 0;font-size:1.38rem;color:#102a43}.tn-detail-description{margin:14px 0;color:#627d98;line-height:1.7}.tn-time-section h3,.tn-stop-section h3{font-size:1rem;color:#102a43;margin:18px 0 9px}.tn-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tn-time-box{border:1px solid #dbe7ef;border-radius:14px;background:#f7fafc;padding:11px}.tn-time-box small{display:block;color:#829ab1;margin-bottom:4px;line-height:1.4}.tn-time-box strong{font-size:1.05rem;color:#102a43}.tn-stop-list{display:flex;flex-wrap:wrap;gap:7px}.tn-stop-list button{border:1px solid #d6e3eb;border-radius:999px;background:#fff;padding:7px 10px;font:inherit;font-size:.8rem;color:#486581;cursor:pointer}.tn-stop-list button:hover{border-color:#5da9c4;color:#0e7490;background:#f3fbfd}.tn-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.tn-alert{margin-top:12px;padding:10px 12px;border-radius:13px;background:#fff8e8;border:1px solid #f2dfad;color:#7b5a10;font-size:.85rem;display:flex;gap:8px;align-items:flex-start;line-height:1.5}
.tn-lines-section{padding:8px 0 34px}.tn-line-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tn-line-card{padding:16px;cursor:pointer;transition:.18s ease}.tn-line-card:hover,.tn-line-card.active{transform:translateY(-2px);box-shadow:0 18px 42px rgba(16,42,67,.11);border-color:#b9cddd}.tn-line-card-top{display:flex;align-items:center;gap:10px}.tn-line-card-badge{min-width:50px;height:38px;border-radius:11px;color:#fff;display:grid;place-items:center;font-weight:950}.tn-line-card h3{margin:0;font-size:1rem;color:#102a43}.tn-line-card p{margin:8px 0 0;color:#627d98;font-size:.88rem}.tn-line-card-meta{display:flex;justify-content:space-between;gap:10px;margin-top:12px;font-size:.78rem;color:#829ab1}
.tn-pdf-section{padding:34px 0 46px;background:#f6f9fb;border-top:1px solid #e1eaf0}.tn-pdf-grid{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:22px;align-items:center}.tn-pdf-grid h2{color:#102a43;margin:.35rem 0 .65rem}.tn-pdf-grid p{color:#627d98;line-height:1.75}.tn-pdf-preview{margin:0;padding:10px;overflow:hidden}.tn-pdf-preview img{display:block;width:100%;height:auto;border-radius:17px}
@media(max-width:1080px){.tn-hero-grid,.tn-layout,.tn-pdf-grid{grid-template-columns:1fr}.tn-detail-card{position:static}.tn-line-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tn-svg-shell svg{min-height:460px}}
@media(max-width:720px){.tn-hero{padding-top:28px}.tn-hero h1{font-size:2.3rem}.tn-network-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.tn-map-head,.tn-map-toolbar,.tn-map-footer{flex-direction:column;align-items:stretch}.tn-map-tools{align-self:flex-end}.tn-filter-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.tn-filter-tabs button{white-space:nowrap}.tn-svg-shell svg{min-height:410px}.tn-map-hint{white-space:normal}.tn-time-grid,.tn-detail-actions,.tn-line-cards{grid-template-columns:1fr}.tn-line-card{min-height:0}.tn-search-wrap{min-width:0}}

/* ==========================================================
   CasaPratique V28.7 — Transport Map Polish Pro
   ========================================================== */
.tn-map-toolbar{
  flex-wrap:wrap;
}
.tn-label-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.tn-toolbar-label{
  font-size:.78rem;
  font-weight:850;
  color:#829ab1;
  margin-inline:2px 4px;
}
.tn-label-tabs button{
  height:36px;
  padding:0 11px;
  border:1px solid #d4e1ea;
  border-radius:999px;
  background:#fff;
  color:#486581;
  font:inherit;
  font-size:.78rem;
  font-weight:850;
  cursor:pointer;
}
.tn-label-tabs button.active{
  background:#eef5f9;
  border-color:#9fb8ca;
  color:#102a43;
  box-shadow:0 0 0 2px rgba(16,42,67,.04);
}

.tn-map-status{
  position:absolute;
  z-index:8;
  top:12px;
  inset-inline-start:12px;
  max-width:min(420px,calc(100% - 24px));
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid rgba(207,221,231,.9);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(9px);
  box-shadow:0 10px 26px rgba(16,42,67,.10);
  color:#102a43;
  pointer-events:none;
}
.tn-map-status strong{font-size:.86rem}
.tn-map-status span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#627d98;
  font-size:.8rem;
}
.tn-status-dot{
  width:10px;height:10px;border-radius:50%;flex:0 0 auto;
  box-shadow:0 0 0 4px rgba(16,42,67,.05);
}
.tn-map-tooltip{
  position:absolute;
  z-index:30;
  min-width:145px;
  max-width:230px;
  display:grid;
  gap:3px;
  padding:9px 11px;
  border:1px solid #d5e3ec;
  border-inline-start:4px solid var(--tip-color,#102a43);
  border-radius:12px;
  background:rgba(255,255,255,.98);
  color:#102a43;
  box-shadow:0 14px 34px rgba(16,42,67,.16);
  pointer-events:none;
}
.tn-map-tooltip[hidden]{display:none!important}
.tn-map-tooltip strong{font-size:.86rem;line-height:1.25}
.tn-map-tooltip span{font-size:.74rem;color:#829ab1}

.tn-route.route-pulse{
  animation:tnRoutePulse .55s ease-out;
}
@keyframes tnRoutePulse{
  0%{stroke-width:20;opacity:.55}
  100%{opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .tn-route.route-pulse{animation:none}
}

/* labels */
.tn-svg-shell[data-label-mode="selected"] .tn-stop text{opacity:0}
.tn-svg-shell[data-label-mode="selected"] .tn-stop.terminal text,
.tn-svg-shell[data-label-mode="selected"] .tn-stop[data-stop-line="t1"] text{opacity:0}
.tn-svg-shell[data-label-mode="terminals"] .tn-stop text{opacity:0!important}
.tn-svg-shell[data-label-mode="terminals"] .tn-stop.terminal text{opacity:1!important}
.tn-svg-shell[data-label-mode="all"] .tn-stop text{opacity:.88!important}

/* JS-selected line overrides the generic selected-mode rules */
.tn-line-group.selected + *{}
.tn-svg-shell[data-label-mode="selected"] .tn-stop.focused text{opacity:1!important}

.tn-stop text{
  transition:opacity .16s ease;
}
.tn-stop.terminal text{
  font-weight:900;
}
.tn-stop circle{
  filter:drop-shadow(0 1px 1px rgba(16,42,67,.08));
}

/* ensure selected line stop labels are visible via JS helper class */
.tn-stop.is-selected-line text{opacity:1!important}

/* improve large district labels */
.tn-neighborhoods text{
  font-size:16px!important;
  opacity:.24!important;
  letter-spacing:.06em!important;
  pointer-events:none;
}

/* mobile line selector */
.tn-mobile-line-rail{
  display:none;
}
@media(max-width:1080px){
  .tn-mobile-line-rail{
    display:flex;
    gap:8px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    padding:2px 0 10px;
    grid-column:1/-1;
  }
  .tn-mobile-line-rail::-webkit-scrollbar{display:none}
  .tn-mobile-line-rail button{
    flex:0 0 auto;
    min-width:66px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid #d6e3eb;
    border-radius:999px;
    background:#fff;
    color:#486581;
    font:inherit;
    font-weight:900;
    cursor:pointer;
  }
  .tn-mobile-line-rail button i{
    width:9px;height:9px;border-radius:50%;background:var(--line-color);
  }
  .tn-mobile-line-rail button.active{
    color:#102a43;
    border-color:#102a43;
    box-shadow:0 0 0 2px rgba(16,42,67,.05);
  }
}
@media(max-width:720px){
  .tn-map-card{padding:12px}
  .tn-map-head{gap:10px}
  .tn-map-head p{font-size:.9rem;line-height:1.55}
  .tn-map-toolbar{margin-top:12px}
  .tn-label-tabs{
    width:100%;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .tn-label-tabs::-webkit-scrollbar{display:none}
  .tn-label-tabs button,.tn-toolbar-label{white-space:nowrap}
  .tn-svg-shell{
    border-radius:16px;
  }
  .tn-svg-shell svg{
    min-height:430px;
  }
  .tn-map-status{
    top:8px;
    inset-inline-start:8px;
    max-width:calc(100% - 16px);
    padding:7px 10px;
  }
  .tn-map-status span:last-child{font-size:.72rem}
  .tn-map-tooltip{font-size:.78rem}
  .tn-map-tools button{
    width:44px;height:44px;
  }
  .tn-detail-card{
    border-radius:20px;
  }
}
