.evo-rute{--b:#0160e7;--ink:#0f172a;--mut:#475569;--ln:#e2e8f0;color:var(--ink);font-size:15px;line-height:1.45}
.evo-rute *{box-sizing:border-box}
.evo-rute .er-flt{display:grid;gap:10px;margin-bottom:12px}
.evo-rute .er-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.evo-rute .er-lbl{flex:none;min-width:72px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--mut)}
.evo-rute .er-chip{min-height:44px;padding:0 14px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:var(--ink);font:600 14px/1 inherit;cursor:pointer}
.evo-rute .er-chip[aria-pressed=true]{border:2px solid var(--b);background:#e6efff;color:#0149b3}
.evo-rute select,.evo-rute input[type=search]{min-height:44px;padding:0 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-size:15px;color:var(--ink);max-width:100%}
.evo-rute .er-main{display:grid;gap:12px}
.evo-rute .er-list{display:grid;gap:8px;max-height:48vh;overflow:auto;padding:2px}
.evo-rute .er-card{display:flex;gap:10px;align-items:stretch;width:100%;padding:0;border:1px solid var(--ln);border-radius:12px;background:#fff;text-align:left;cursor:pointer;color:var(--ink);font:inherit;overflow:hidden}
.evo-rute .er-card[aria-current=true]{border:2px solid var(--b)}
.evo-rute .er-card i{flex:none;width:7px}
.evo-rute .er-card div{padding:10px 12px 10px 0;min-width:0}
.evo-rute .er-card b{display:block;font-size:15px}
.evo-rute .er-card span{display:block;font-size:13px;color:var(--mut)}
.evo-rute .er-mapw{position:relative}
.evo-rute #er-map{height:60vh;min-height:360px;border-radius:12px;overflow:hidden;background:#e2e8f0}
.evo-rute .er-det{margin-top:12px;padding:14px;border:1px solid var(--ln);border-radius:12px;background:#fff}
.evo-rute .er-det h2{margin:0 0 6px;font-size:19px}
.evo-rute .er-stats{display:flex;flex-wrap:wrap;gap:8px 18px;margin:8px 0;font-size:14px}
.evo-rute .er-stats b{font-size:16px}
.evo-rute .er-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.evo-rute .er-btn{display:inline-flex;align-items:center;min-height:46px;padding:0 16px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;color:var(--ink);font-weight:700;text-decoration:none}
.evo-rute .er-btn.p{background:var(--b);border-color:var(--b);color:#fff}
.evo-rute .er-prof{margin-top:8px}
.evo-rute .er-prof svg{width:100%;height:150px;display:block;touch-action:none}
.evo-rute .er-hint{margin:2px 0 0;font-size:13px;color:var(--mut);min-height:18px}
.evo-rute .er-pod{display:flex;height:14px;border-radius:7px;overflow:hidden;margin:6px 0 4px}
.evo-rute .er-leg{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:var(--mut)}
.evo-rute .er-leg i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px}
.evo-rute .er-empty{padding:14px;color:var(--mut)}
@media(min-width:1000px){
.evo-rute .er-main{grid-template-columns:360px minmax(0,1fr);align-items:start}
.evo-rute .er-list{max-height:70vh}
.evo-rute #er-map{height:70vh}
}

/* Dugme cijeli ekran i režim preko cijelog ekrana */
.evo-rute .er-bar{display:none}
.evo-rute .er-fs{position:absolute;top:10px;left:10px;z-index:2;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:10px;background:#fff;color:var(--ink);font:700 14px/1 inherit;box-shadow:0 1px 6px rgba(0,0,0,.3);cursor:pointer}
.evo-rute .er-det .er-btn{min-height:40px;margin-bottom:6px;font-size:14px}
html.er-lock,html.er-lock body{overflow:hidden!important}
.evo-rute.er-full{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#fff;padding:0;margin:0}
.evo-rute.er-full .er-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:56px;padding:6px 10px;border-bottom:1px solid var(--ln);background:#fff}
.evo-rute.er-full .er-fs{display:none}
.evo-rute.er-full .er-flt{display:none;position:absolute;top:57px;left:0;right:0;z-index:6;max-height:70vh;overflow:auto;padding:12px;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.25);margin:0}
.evo-rute.er-full.er-flt-open .er-flt{display:grid}
.evo-rute.er-full .er-main{flex:1;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 34%;gap:0}
.evo-rute.er-full .er-main>div:first-child{order:2;min-height:0;display:flex;flex-direction:column;padding:6px 8px}
.evo-rute.er-full .er-list{max-height:none;flex:1;min-height:0}
.evo-rute.er-full .er-mapw{order:1;min-height:0;height:100%}
.evo-rute.er-full #er-map{height:100%;min-height:0;border-radius:0}
.evo-rute.er-full .er-det{position:absolute;left:8px;right:8px;bottom:8px;z-index:3;max-height:62%;overflow:auto;margin:0;box-shadow:0 4px 18px rgba(0,0,0,.3)}
@media(min-width:1000px){
.evo-rute.er-full .er-main{grid-template-columns:380px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.evo-rute.er-full .er-main>div:first-child{order:0}
.evo-rute.er-full .er-det{right:auto;width:420px;max-height:calc(100% - 24px);bottom:12px;left:12px}
.evo-rute.er-full .er-flt{max-width:760px;border-radius:0 0 12px 0}
}

.evo-rute .er-poi{width:34px;height:34px;padding:0;border-radius:50%;border:3px solid #0f172a;background:#fff;font-size:18px;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.evo-rute .er-poi.er-old{opacity:.55}
.er-pop{font:14px/1.4 system-ui,sans-serif;max-width:240px}
.er-pop span{color:#475569}

.evo-rute .er-pie{margin:12px 0;padding:12px;border:1px solid var(--ln);border-radius:12px;background:#fff}
.evo-rute .er-pie-in{display:flex;gap:12px;align-items:center;margin:8px 0}
.evo-rute .er-pie img{width:110px;height:110px;object-fit:contain;flex:none}
.evo-rute .er-pie-in>div{flex:1;min-width:0}
.evo-rute .er-ax{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;padding:3px 0}
.evo-rute .er-ax i{font-style:normal;color:#fff;font-weight:700;font-size:12px;padding:2px 8px;border-radius:999px}

.evo-rute .er-dt{border-top:1px solid var(--ln);padding:6px 0;font-size:13px}
.evo-rute .er-dt summary{cursor:pointer;font-weight:600;min-height:32px;display:flex;align-items:center}
.evo-rute .er-dt p{margin:4px 0 6px;color:#334155}
.evo-rute .er-par{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;margin:8px 0;font-size:13px}
.evo-rute .er-par dt{color:#64748b}
.evo-rute .er-par dd{margin:0;font-weight:600}

/* Jedna ruta: [evo_ruta] */
.evo-rute.er-single .er-main{grid-template-columns:minmax(0,1fr)}
.evo-rute.er-single #er-map{height:56vh;min-height:340px}
@media(min-width:1000px){.evo-rute.er-single #er-map{height:62vh}}
.evo-rute.er-single.er-full .er-main{grid-template-rows:minmax(0,1fr)}
.evo-rute.er-single.er-full .er-mapw{order:0}
.evo-rute.er-single.er-full .er-det{width:auto;left:8px;right:8px;max-height:46%}
@media(min-width:1000px){.evo-rute.er-single.er-full .er-det{width:420px;right:auto}}

/* Jedna ruta: ista širina kao tekst stranice */
.evo-rute.er-single:not(.er-full){max-width:1200px;margin:0 auto;padding:0 20px}
@media(min-width:760px){.evo-rute.er-single:not(.er-full){padding:0 40px}}

/* ITRS u detalju rute: veći Route Pie, znakovi uz osu, manja objašnjenja */
.evo-rute .er-pie-in{display:flex;flex-wrap:wrap;gap:14px 18px;align-items:center;margin:10px 0}
.evo-rute .er-pie img.er-pimg{width:240px;height:240px;max-width:100%;margin:0 auto}
.evo-rute .er-pside{flex:1 1 220px;min-width:0}
.evo-rute .er-sc{margin:0 0 6px;font-size:14px;color:var(--mut)}
.evo-rute .er-sc b{font-size:28px;color:var(--ink)}
.evo-rute .er-ax2{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:14px;line-height:1.3}
.evo-rute .er-pie img.er-ic{width:40px;height:40px;flex:none}
.evo-rute .er-dx{border-top:1px solid var(--ln);padding:6px 0;font-size:12px;line-height:1.4;color:#475569}
.evo-rute .er-dx b{display:block;font-size:12px;color:var(--ink)}
.evo-rute .er-dx p{margin:2px 0 0}
.evo-rute .er-note{font-size:11px}

.evo-rute .er-pie .er-lay{position:relative;display:block;width:240px;height:240px;max-width:100%;margin:0 auto;flex:none}
.evo-rute .er-pie .er-lay img{position:absolute;inset:0;width:100%;height:100%}
.evo-rute img.er-pic,.er-pop img.er-pic{width:20px;height:20px;vertical-align:-4px;display:inline-block}
.evo-rute .er-poi img.er-pic{width:22px;height:22px;vertical-align:middle}

/* Mobilni prikaz karte: u detalju rute samo dugme nazad i visinski profil (ITRS, statistika i tekstovi su na stranici rute) */
@media(max-width:999px){
.evo-rute:not(.er-single) .er-det>*:not(.er-btn):not(.er-prof){display:none}
.evo-rute:not(.er-single).er-full .er-det{max-height:none;padding:8px 10px}
}
