:root{--navy:#112b43;--navy-deep:#0c2238;--green:#078044;--green-dark:#056533;--gold:#f5c515;--ink:#182639;--muted:#5c6875;--line:#dce5eb;--pale:#f1f6f8;--shadow:0 10px 28px rgba(13,45,69,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f6f9fa;color:var(--ink);font:16px/1.5 Arial,"Helvetica Neue",sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.shell{width:min(1320px,calc(100% - 48px));margin:auto}.skip{position:absolute;top:-60px;left:14px;padding:10px;background:#fff;z-index:999}.skip:focus{top:10px}:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.topbar{background:var(--navy-deep);color:#f5f9fc;font-size:.81rem}.topbar-inner{display:flex;align-items:center;gap:28px;min-height:36px}.topbar-inner a{margin-left:auto}.header{background:#fff;box-shadow:0 2px 10px rgba(13,40,62,.06);position:relative;z-index:500}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:96px}.brand{display:flex;align-items:center;gap:16px;color:#0e1827;font-weight:700}.brand img{width:105px;height:64px;object-fit:contain}.brand small{display:block;font-size:.89rem}.header nav{display:flex;gap:8px;flex-wrap:wrap}.header nav a{padding:11px 14px;border-radius:6px;font-size:.9rem;font-weight:700}.header nav a:hover{background:#f1f8f4;color:var(--green-dark);text-decoration:none}.header nav .active{background:var(--green);color:#fff}
.hero{background:linear-gradient(90deg,rgba(6,31,50,.91),rgba(6,31,50,.61) 48%,rgba(6,31,50,.14)),url('malbork.jpg') center 43%/cover;min-height:270px;color:#fff}.hero-inner{padding:42px 0}.eyebrow,.section-label{text-transform:uppercase;letter-spacing:.13em;font-size:.76rem;font-weight:800}.eyebrow{color:#e9f5d2}.hero h1{font-size:clamp(2rem,4.2vw,3.6rem);line-height:1.08;margin:14px 0 10px}.hero h1 span{color:#e6f9ec}.hero p{max-width:580px;margin:0;font-size:1.05rem}.content{padding:25px 0 52px}.status-strip{display:flex;align-items:center;gap:13px;background:#eaf6ef;border:1px solid #c5e4d0;border-radius:11px;padding:12px 18px;margin-bottom:20px;color:#144d30}.status-dot{width:11px;height:11px;border-radius:50%;background:#0a9e52;box-shadow:0 0 0 5px #ccebd7;flex:none}.status-strip strong,.status-strip small{display:block}.status-strip small{font-size:.8rem;color:#426d54}.status-note{margin-left:auto;font-size:.82rem;font-weight:700}
.layout{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:20px}.panel{background:#fff;border:1px solid #dce7eb;border-radius:14px;box-shadow:var(--shadow);min-width:0}.search-panel{padding:23px}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:19px}.section-label{color:var(--green-dark)}h2{margin:3px 0 0;font-size:1.55rem;line-height:1.2;color:var(--navy-deep)}.search-panel label{display:block;font-weight:700;font-size:.89rem;margin:14px 0 6px}.search-panel select,.search-panel input{width:100%;min-height:45px;border:1px solid #b9cbd0;border-radius:7px;background:#fff;padding:8px 12px;color:var(--ink)}.search-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 0 9px;color:var(--muted);font-size:.84rem}.search-meta button,.departures-heading button,.route-panel button{border:1px solid #bfd5c7;border-radius:7px;background:#eff8f2;color:var(--green-dark);font-weight:700;padding:8px 10px}.search-meta button:disabled,.departures-heading button:disabled{opacity:.5;cursor:default}.stop-list{max-height:400px;overflow:auto;border:1px solid var(--line);border-radius:8px}.stop-item{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:#fff;padding:10px 13px;color:var(--ink)}.stop-item:last-child{border-bottom:0}.stop-item:hover,.stop-item.selected{background:#edf8f2}.stop-item strong{display:block;font-size:.91rem}.stop-item span{font-size:.78rem;color:var(--muted)}.map-panel{overflow:hidden}.map-panel .panel-heading{padding:23px 23px 0}.map-legend{font-size:.8rem;color:var(--muted)}.map-legend i{display:inline-block;width:9px;height:9px;background:var(--green);border-radius:50%;margin-right:5px}#map{height:500px;min-height:360px;background:#e9f1f4}.map-note{padding:11px 20px;margin:0;font-size:.84rem;color:var(--muted)}.map-dot{background:var(--green);border:2px solid white;box-shadow:0 1px 7px #16412d80;border-radius:50%;width:16px;height:16px}
.departures-panel,.route-panel{padding:24px;margin-top:20px}.departures-heading{align-items:center}.departures-heading p{margin:6px 0 0;color:var(--muted);font-size:.91rem}.departures-empty{padding:28px;border-radius:9px;background:var(--pale);color:var(--muted)}.departure-row{display:grid;grid-template-columns:60px minmax(0,1fr) 100px 85px 68px;align-items:center;gap:16px;padding:15px 8px;border-top:1px solid var(--line)}.line-pill{display:inline-grid;place-items:center;width:54px;height:46px;border-radius:8px;background:var(--green);color:#fff;font-size:1.4rem;font-weight:800}.departure-row strong{font-size:1.03rem}.departure-row small{display:block;color:var(--muted);font-size:.79rem}.departure-time{font-size:1.25rem;font-weight:800;color:var(--navy);font-variant-numeric:tabular-nums}.departure-kind{font-size:.79rem;font-weight:700;color:#37617a}.departure-kind.live{color:var(--green-dark)}.details-btn{border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px;font-weight:700;color:var(--navy)}.route-panel ol{margin:0;padding-left:24px;columns:2;column-gap:40px}.route-panel li{break-inside:avoid;padding:7px 4px;border-bottom:1px solid var(--line)}.route-panel li small{color:var(--muted);margin-left:8px}.source-note{color:var(--muted);font-size:.85rem;margin:22px 2px}.source-note a{text-decoration:underline;color:var(--green-dark)}footer{background:var(--navy-deep);color:#e7eff4}.footer-inner{min-height:110px;display:flex;align-items:center;gap:30px;flex-wrap:wrap;font-size:.86rem}.footer-inner strong,.footer-inner span{display:block}.footer-inner a{color:#c5f0d3;text-decoration:underline}
@media(max-width:900px){.layout{grid-template-columns:1fr}.stop-list{max-height:260px}#map{height:410px}.header-inner{min-height:80px}.brand img{width:85px}.header nav{gap:2px}.header nav a{font-size:.78rem;padding:8px}}
@media(max-width:620px){.shell{width:min(100% - 30px,1320px)}.topbar-inner{gap:10px;justify-content:space-between}.topbar-inner span:nth-child(2){display:none}.header-inner{display:block;padding:8px 0}.brand{gap:8px}.brand img{width:66px;height:47px}.brand span{font-size:.82rem}.brand small{font-size:.76rem}.header nav{overflow:auto;flex-wrap:nowrap;white-space:nowrap;padding:4px 0 8px}.header nav a{font-size:.75rem;padding:7px 9px}.hero{min-height:215px}.hero-inner{padding:28px 0}.hero p{font-size:.92rem}.status-note{display:none}.search-panel,.departures-panel,.route-panel{padding:17px}.map-panel .panel-heading{padding:17px 17px 0}.map-legend{display:none}#map{height:340px;min-height:300px}.departure-row{grid-template-columns:46px 1fr auto;gap:8px;padding:12px 0}.line-pill{width:42px;height:42px;font-size:1.15rem}.departure-time{font-size:1.05rem}.departure-kind{grid-column:2}.details-btn{grid-column:3;grid-row:2}.route-panel ol{columns:1}.footer-inner{padding:22px 0;gap:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
