/* V8: drsni levi meni, več potovanj, Google Places in prikaz poteka dejanj */
:root{
  --ink:#20332c;
  --muted:#6d7a75;
  --paper:#f5f3ec;
  --panel:#fffefb;
  --line:#dedbd1;
  --brand:#244c3f;
  --brand-2:#3b705b;
  --accent:#c76843;
  --blue:#2563eb;
  --danger:#b83d3d;
  --shadow:0 18px 46px rgba(31,49,42,.15);
  --sidebar:430px;
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#e8ebe6}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.muted{color:var(--muted)}
.eyebrow{margin:0 0 5px;font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:850;color:var(--brand-2)}
.splash,.setup-view{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;background:
 radial-gradient(circle at 15% 10%,rgba(255,255,255,.8),transparent 25%),
 linear-gradient(145deg,#dfe9e2,#f4eee4)}
.splash-card,.setup-card{width:min(520px,calc(100vw - 32px));padding:36px;border-radius:24px;background:rgba(255,255,255,.88);border:1px solid rgba(36,76,63,.14);box-shadow:var(--shadow);text-align:center;backdrop-filter:blur(13px)}
.logo-orbit,.setup-icon{width:78px;height:78px;border-radius:25px;display:grid;place-items:center;margin:0 auto 18px;font-size:38px;background:linear-gradient(145deg,#e6efe9,#fff);box-shadow:inset 0 0 0 1px rgba(36,76,63,.1),0 10px 28px rgba(36,76,63,.12)}
.splash h1,.setup-card h1{margin:0 0 8px;font-size:29px;letter-spacing:-.035em}
.splash p,.setup-card p{line-height:1.55}
.spinner{width:34px;height:34px;border-radius:50%;border:3px solid #dbe3de;border-top-color:var(--brand);margin:20px auto 0;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.setup-list{text-align:left;padding:16px 18px;margin:20px 0;border-radius:16px;background:#edf3ef;line-height:1.9;font-size:14px}
.app{height:100%;min-height:0;overflow:hidden}
.topbar{position:absolute;inset:0 0 auto 0;height:66px;z-index:1000;background:rgba(255,254,251,.94);border-bottom:1px solid var(--line);box-shadow:0 6px 22px rgba(30,48,41,.08);display:grid;grid-template-columns:minmax(210px,auto) minmax(250px,1fr) auto;align-items:center;gap:12px;padding:0 16px;backdrop-filter:blur(10px)}
.brand,.top-actions{display:flex;align-items:center;gap:10px;min-width:0}.top-actions{justify-content:flex-end}
.brand-mark{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:var(--brand);color:#fff;font-size:21px}
.brand strong{display:block;font-size:15px}.brand span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.user-chip{max-width:220px;padding:8px 11px;border-radius:12px;background:#edf2ef;color:#426054;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace{position:absolute;inset:66px 0 0;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:0;overflow:hidden}
.sidebar{background:linear-gradient(180deg,#faf9f5,#f0eee6);border-right:1px solid var(--line);box-shadow:8px 0 26px rgba(31,49,42,.08);z-index:700;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.tabs{display:flex;flex:0 0 auto;gap:4px;padding:10px 8px 8px;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid var(--line);background:rgba(250,249,245,.94);scrollbar-width:thin}
.tab{border:0;background:transparent;padding:8px 10px;border-radius:9px;color:#66746e;font-size:11px;font-weight:800;white-space:nowrap}
.tab:hover{background:#edf1ec}.tab.active{background:var(--brand);color:#fff}
.sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:14px 13px 52px;scrollbar-width:thin;scrollbar-color:#9eaaa4 transparent;scrollbar-gutter:stable}
.sidebar-content:focus{outline:2px solid rgba(59,112,91,.22);outline-offset:-2px}
.sidebar-content::-webkit-scrollbar{width:11px}
.sidebar-content::-webkit-scrollbar-track{background:transparent}
.sidebar-content::-webkit-scrollbar-thumb{background:#aab4af;border:3px solid transparent;border-radius:999px;background-clip:padding-box}
.sidebar-content::-webkit-scrollbar-thumb:hover{background:#84938c;border:3px solid transparent;background-clip:padding-box}
.map-panel{position:relative;min-width:0;min-height:0;overflow:hidden}
#map{position:absolute;inset:0;background:#dce4df}
.btn{border:1px solid #d5d7d1;background:#fff;color:#40574d;border-radius:11px;min-height:38px;padding:8px 12px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;transition:.16s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(34,51,44,.1);border-color:#a9b4ae}
.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn.danger{background:#fff2f2;color:var(--danger);border-color:#e5baba}
.btn.ghost{background:#fff}
.btn.wide{width:100%}
.btn.small{min-height:31px;padding:5px 8px;font-size:10.5px}
.icon-btn{width:38px;height:38px;border:1px solid #d7d9d3;border-radius:11px;background:#fff;color:#3d5149;font-size:20px;display:grid;place-items:center}
.mobile-only{display:none}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 2px 10px}
.section-head h2{font-size:14px;margin:0}.section-head p{margin:2px 0 0;font-size:10.5px;color:var(--muted)}
.card{background:rgba(255,255,255,.91);border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 16px rgba(36,51,44,.055);margin-bottom:10px;overflow:hidden}
.card-pad{padding:13px}
.day-card{position:relative;border-left:5px solid var(--day,#456)}
.day-card.active{box-shadow:0 0 0 2px color-mix(in srgb,var(--day) 22%,transparent),0 10px 25px rgba(36,51,44,.1)}
.day-main{padding:12px;display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center}
.day-badge{width:44px;height:44px;border-radius:13px;background:var(--day);color:#fff;display:grid;place-items:center;text-align:center;font-weight:900;font-size:13px;line-height:1}
.day-badge small{display:block;font-size:8px;opacity:.82;margin-bottom:3px}
.day-info strong{display:block;font-size:13px;line-height:1.25}.day-info span{display:block;font-size:10.5px;color:var(--muted);margin-top:4px}
.day-actions{display:flex;gap:5px;flex-wrap:wrap;padding:0 12px 12px}
.kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}
.kpi{border-radius:13px;background:#fff;border:1px solid var(--line);padding:10px}.kpi strong{display:block;font-size:17px}.kpi span{font-size:9.5px;color:var(--muted)}
.route-status{font-size:10px;font-weight:800;padding:5px 7px;border-radius:999px;background:#edf1ee;color:#4f6359;white-space:nowrap}
.route-status.imported{background:#e6f3ff;color:#245f91}.route-status.auto{background:#e9f7ec;color:#347143}.route-status.none{background:#f4eee3;color:#7b6340}
.list-row{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid #ece9e0}
.list-row:last-child{border-bottom:0}.row-icon{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:#edf2ef;font-size:17px}
.row-main strong{display:block;font-size:12px;line-height:1.3}.row-main span{display:block;font-size:10px;color:var(--muted);margin-top:3px;line-height:1.4}
.row-buttons{display:flex;gap:4px}.mini-btn{width:29px;height:29px;border-radius:9px;border:1px solid #d9dbd5;background:#fff;color:#4d6158}
.hotel-card{padding:13px}.hotel-card h3{font-size:13px;margin:0 0 4px}.hotel-meta{font-size:10px;color:var(--muted);line-height:1.55}.private-pill{display:inline-flex;margin-top:8px;font-size:9.5px;font-weight:800;padding:5px 7px;border-radius:999px;background:#fff0e9;color:#9a4d2f}
.search{width:100%;height:40px;border:1px solid #d8d9d3;border-radius:12px;background:#fff;padding:0 12px;margin-bottom:10px;outline:none}.search:focus{border-color:#779a8b;box-shadow:0 0 0 3px rgba(59,112,91,.12)}
.empty{border:1px dashed #c8ccc5;border-radius:15px;padding:22px;text-align:center;color:var(--muted);font-size:12px;line-height:1.5}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:10.5px;font-weight:850;color:#52635c}.field input,.field select,.field textarea{width:100%;border:1px solid #d6d8d2;border-radius:10px;background:#fff;padding:9px 10px;color:var(--ink);outline:none;font-size:12px}.field textarea{min-height:88px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#739688;box-shadow:0 0 0 3px rgba(59,112,91,.11)}
.check-field{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700}.check-field input{width:16px;height:16px}
.map-tools{position:absolute;right:13px;top:13px;z-index:600;display:flex;flex-direction:column;gap:7px}.map-tool{width:42px;height:42px;border:1px solid rgba(45,64,56,.15);border-radius:13px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(34,48,41,.15);font-size:21px;color:var(--brand)}
.map-hint{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:650;padding:10px 14px;border-radius:12px;background:rgba(32,62,51,.94);color:#fff;font-size:12px;font-weight:800;box-shadow:var(--shadow)}

.google-place-search{position:absolute;left:14px;top:14px;z-index:720;width:min(560px,calc(100% - 92px));font-family:inherit}
.google-search-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:6px;padding:6px;background:rgba(255,255,255,.97);border:1px solid rgba(42,61,53,.18);border-radius:15px;box-shadow:0 12px 34px rgba(30,44,37,.18);backdrop-filter:blur(10px)}
.google-search-icon{display:grid;place-items:center;font-size:16px;color:#395f50}
.google-search-row input{min-width:0;height:38px;border:0;background:transparent;outline:none;color:var(--ink);font-size:12px;padding:0 4px}
.google-search-row input::placeholder{color:#7a8781}
.google-search-btn,.google-clear-btn{height:34px;border:0;border-radius:10px;cursor:pointer;font-size:10.5px;font-weight:850}
.google-search-btn{padding:0 12px;background:#244c3f;color:#fff}
.google-search-btn:disabled{opacity:.55;cursor:wait}
.google-clear-btn{width:34px;background:#eef1ed;color:#4c5f57;font-size:18px}
.google-place-results{margin-top:7px;max-height:min(430px,56vh);overflow:auto;background:rgba(255,255,255,.985);border:1px solid rgba(42,61,53,.17);border-radius:15px;box-shadow:0 16px 42px rgba(28,42,35,.22)}
.google-result{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:11px 12px;border-bottom:1px solid #eceee9}
.google-result:last-of-type{border-bottom:0}
.google-result-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#eef3ef;font-size:17px}
.google-result-main strong{display:block;font-size:12px;line-height:1.3}
.google-result-main span{display:block;margin-top:3px;font-size:10px;line-height:1.4;color:var(--muted)}
.google-result-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.google-result-actions button{border:1px solid #d9ddd7;border-radius:9px;background:#fff;color:#375d4d;padding:6px 8px;font-size:9.5px;font-weight:850;cursor:pointer}
.google-result-actions button.primary{background:#edf5f1;border-color:#cddfd6}
.google-result-actions button:hover{border-color:#8ba99c}
.google-attribution{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-top:1px solid #e8ebe6;background:#f8faf7;color:#6f7c76;font-size:8.8px;line-height:1.35}
.google-attribution strong{font-size:10px;color:#52625b;white-space:nowrap}
.google-search-empty,.google-search-loading,.google-search-error{padding:16px 14px;text-align:center;font-size:11px;line-height:1.45;color:var(--muted)}
.google-search-error{color:#8c3434}
.google-source-note{padding:10px 11px;border:1px solid #dfe5df;border-radius:11px;background:#f7faf7;font-size:10px;line-height:1.45;color:#5b6a63}
.google-source-note strong{color:#40564c}
.day-float{position:absolute;left:14px;bottom:14px;z-index:600;max-width:min(510px,calc(100% - 28px));background:rgba(255,255,255,.94);border:1px solid rgba(43,62,54,.15);border-radius:15px;padding:11px 13px;box-shadow:var(--shadow);backdrop-filter:blur(8px)}
.day-float strong{font-size:12px}.day-float span{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.modal-backdrop{position:fixed;inset:0;z-index:2500;background:rgba(21,32,27,.46);display:grid;place-items:center;padding:16px;backdrop-filter:blur(5px)}
.modal{width:min(760px,100%);max-height:min(88vh,900px);overflow:hidden;border-radius:20px;background:var(--panel);border:1px solid rgba(255,255,255,.7);box-shadow:0 28px 80px rgba(20,34,28,.28);display:flex;flex-direction:column}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:20px}
.modal form{display:flex;flex-direction:column;min-height:0}.modal-body{padding:18px 20px;overflow:auto}.modal-actions{padding:12px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;background:#faf9f5}
.toast{position:fixed;right:18px;bottom:18px;z-index:4000;max-width:min(420px,calc(100vw - 36px));padding:12px 15px;border-radius:13px;background:#263e34;color:#fff;box-shadow:var(--shadow);font-size:12px;line-height:1.45}
.toast.error{background:#8c3434}
.marker-hotel,.marker-poi{border:0;background:transparent}
.marker-pin{width:36px;height:36px;border-radius:50% 50% 50% 11px;transform:rotate(-45deg);display:grid;place-items:center;border:3px solid #fff;box-shadow:0 5px 15px rgba(28,42,35,.28);background:var(--marker,#244c3f);color:#fff}
.marker-pin span{transform:rotate(45deg);font-size:16px}
.marker-dot{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;border:2px solid #fff;box-shadow:0 4px 12px rgba(30,42,35,.22);background:var(--marker,#c76843);font-size:14px}
.leaflet-popup-content-wrapper{border-radius:15px}.leaflet-popup-content{margin:13px 15px;min-width:220px}.popup h3{font-size:14px;margin:0 0 5px}.popup p{font-size:10.5px;color:var(--muted);line-height:1.45;margin:4px 0}.popup-actions{display:flex;gap:6px;margin-top:9px}.popup-actions a,.popup-actions button{flex:1;border:0;border-radius:9px;padding:7px;background:#edf2ef;color:#38614f;font-size:10px;font-weight:800;text-align:center;text-decoration:none}
.import-box{border:1px dashed #bfc7c1;border-radius:16px;padding:18px;text-align:center;background:#fbfcfa;margin-bottom:10px}.import-box h3{margin:0 0 6px;font-size:14px}.import-box p{margin:0 0 12px;font-size:10.5px;color:var(--muted);line-height:1.5}
.invite-box{padding:12px;border-radius:13px;background:#edf3ef;font-size:10.5px;line-height:1.5;word-break:break-all;margin-top:10px}
hr.soft{border:0;border-top:1px solid var(--line);margin:15px 0}
.trip-switcher{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;max-width:none;margin:0}
.trip-switcher label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.trip-switcher select{flex:1 1 220px;width:min(100%,380px);min-width:150px;max-width:380px;height:38px;border:1px solid #d5d7d1;border-radius:11px;background:#fff;color:var(--ink);padding:0 34px 0 11px;font-size:12px;font-weight:800;outline:none;text-overflow:ellipsis}
.trip-switcher select:focus{border-color:#739688;box-shadow:0 0 0 3px rgba(59,112,91,.11)}
.trip-grid{display:grid;grid-template-columns:1fr;gap:10px}
.trip-card{position:relative;padding:14px;border-left:5px solid var(--trip-color,var(--brand));cursor:pointer}
.trip-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(36,51,44,.1)}
.trip-card.active{box-shadow:0 0 0 2px rgba(36,76,63,.16),0 10px 24px rgba(36,51,44,.1)}
.trip-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.trip-card h3{margin:0;font-size:15px;line-height:1.25}.trip-card .trip-country{font-size:10.5px;color:var(--muted);margin-top:4px}
.trip-card .trip-description{font-size:10.5px;color:#53655d;line-height:1.5;margin:10px 0 0}
.trip-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:12px}
.trip-stat{padding:8px;border-radius:11px;background:#f4f6f2;border:1px solid #e1e4dd;text-align:center}.trip-stat strong{display:block;font-size:13px}.trip-stat span{font-size:8.5px;color:var(--muted)}
.trip-status{display:inline-flex;padding:5px 7px;border-radius:999px;background:#edf3ef;color:#426054;font-size:9px;font-weight:850;white-space:nowrap}
.trip-status.confirmed{background:#e8f3ff;color:#285f8f}.trip-status.done{background:#eee9f7;color:#66518a}
.trip-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:11px}
.no-trip{padding:24px;text-align:center}.no-trip h2{margin:0 0 7px;font-size:18px}.no-trip p{color:var(--muted);font-size:11px;line-height:1.5}

@media(max-width:1180px){
  .topbar{grid-template-columns:minmax(205px,auto) minmax(230px,1fr) auto}
  .user-chip{display:none}
  #exportGpxBtn,#exportExcelBtn{display:none}
  .trip-switcher .btn{font-size:0;width:35px;padding:0;flex:0 0 35px}
  .trip-switcher .btn:after{content:"＋";font-size:17px}
}
@media(max-width:1050px){
  :root{--sidebar:390px}
  .topbar{grid-template-columns:minmax(190px,auto) minmax(210px,1fr) auto;gap:8px}
  .top-actions .btn{padding:7px 9px}
  .trip-switcher select{min-width:135px;max-width:280px}
}
@media(max-width:820px){
  .google-place-search{left:12px;top:12px;width:calc(100% - 76px)}
  .google-search-btn{font-size:0;width:36px;padding:0}.google-search-btn:after{content:"⌕";font-size:17px}

  .topbar{display:grid;grid-template-columns:minmax(150px,auto) minmax(120px,1fr);gap:8px}.mobile-only{display:grid}.trip-switcher{margin-left:auto;min-width:0;max-width:240px;justify-content:flex-end}.trip-switcher select{min-width:120px;max-width:180px}.trip-switcher .btn{display:none}.top-actions{display:none}.workspace{display:block}.sidebar{position:absolute;left:0;top:0;bottom:0;width:min(92vw,420px);transform:translateX(-104%);transition:.24s ease;z-index:900;min-height:0;overflow:hidden}.sidebar.open{transform:translateX(0)}.map-panel{height:100%;min-height:0}.brand-mark{display:none}.day-float{bottom:10px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}
}
@media(max-width:560px){
  .google-place-search{left:8px;top:8px;width:calc(100% - 60px)}
  .google-search-row{grid-template-columns:28px minmax(0,1fr) 34px auto;padding:4px;gap:3px}.google-search-row input{height:36px;font-size:11px}.google-search-icon{font-size:14px}
  .google-place-results{max-height:52vh}

  .topbar{padding:0 8px;grid-template-columns:minmax(132px,auto) minmax(100px,1fr)}.trip-switcher{max-width:none}.trip-switcher select{min-width:100px;max-width:155px;padding-left:8px}.trip-stats{grid-template-columns:repeat(2,1fr)}.brand strong{font-size:13px}.brand span{font-size:9px}.top-actions{gap:5px}.top-actions .btn{min-height:34px;padding:6px 7px;font-size:10px}.splash-card,.setup-card{padding:26px 20px}.modal{max-height:94vh}.modal-body{padding:14px}.kpi-grid{grid-template-columns:1fr 1fr 1fr}
}


/* V8: prikaz poteka počasnejših dejanj */
body.is-busy{cursor:progress}
body.is-busy .app{user-select:none}
.action-overlay{
  position:fixed;
  inset:0;
  z-index:2800;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(24,39,33,.22);
  backdrop-filter:blur(2px);
}
.action-card{
  width:min(430px,calc(100vw - 36px));
  min-height:92px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px 22px;
  border-radius:19px;
  color:var(--ink);
  background:rgba(255,254,251,.97);
  border:1px solid rgba(36,76,63,.16);
  box-shadow:0 22px 64px rgba(20,34,29,.24);
}
.action-spinner{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border-radius:50%;
  border:4px solid #dce5df;
  border-top-color:var(--brand);
  animation:spin .78s linear infinite;
}
.action-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.action-copy strong{font-size:15px;line-height:1.25}
.action-copy span{font-size:11.5px;line-height:1.4;color:var(--muted)}
@media(max-width:560px){
  .action-card{padding:17px 18px;border-radius:16px}
  .action-spinner{width:34px;height:34px}
}


/* V9: napredne nastavitve poti */
.route-settings-intro{display:flex;flex-direction:column;gap:4px;padding:12px 14px;margin-bottom:14px;border-radius:13px;background:linear-gradient(135deg,#edf4ef,#f8f6ed);border:1px solid #d9e2dc}
.route-settings-intro strong{font-size:14px}.route-settings-intro span{font-size:11px;color:var(--muted);line-height:1.45}
.route-settings-grid{align-items:start}.route-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.route-check{display:flex;align-items:center;gap:9px;min-height:54px;padding:10px 11px;border:1px solid #d9ddd9;border-radius:12px;background:#fbfcfa;cursor:pointer;transition:.15s ease}
.route-check:hover{border-color:#9db2a8;background:#fff}.route-check input{width:18px;height:18px;accent-color:var(--brand)}
.route-check:has(input:disabled){opacity:.5;cursor:not-allowed}.route-check strong{font-size:11px;line-height:1.25}
.route-provider-note,.route-warning-note{padding:10px 12px;border-radius:11px;font-size:10.5px;line-height:1.5}
.route-provider-note{background:#edf4f0;color:#405e51;border:1px solid #d3e2da}.route-warning-note{background:#fff6e6;color:#75511e;border:1px solid #ecd6a9}
@media(max-width:680px){.route-check-grid{grid-template-columns:1fr}.route-check{min-height:46px}}



/* V10.1: množično označevanje in urejanje */
.bulk-bar{
  position:sticky;
  top:0;
  z-index:25;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  min-height:48px;
  margin:-2px 0 12px;
  padding:8px 9px;
  border:1px solid #d9ded9;
  border-radius:13px;
  background:rgba(250,249,245,.97);
  box-shadow:0 5px 18px rgba(36,51,44,.08);
  backdrop-filter:blur(8px);
}
.bulk-bar.has-selection{
  border-color:#9eb7aa;
  box-shadow:0 0 0 2px rgba(36,76,63,.08),0 7px 21px rgba(36,51,44,.11);
}
.bulk-select-all{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  color:var(--muted);
  font-size:10.5px;
  font-weight:750;
  cursor:pointer;
}
.bulk-select-all input,
.select-checkbox{
  width:17px;
  height:17px;
  margin:0;
  accent-color:var(--brand);
  cursor:pointer;
}
.bulk-count{
  min-width:68px;
  font-size:10.5px;
  color:var(--muted);
}
.bulk-count strong{
  color:var(--ink);
  font-size:12px;
}
.bulk-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-left:auto;
}
.bulk-clear{
  width:32px;
  height:32px;
}
.selectable-item{
  position:relative;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.selectable-item.selected{
  background:#f1f7f3;
  border-color:#8eae9d !important;
  box-shadow:inset 0 0 0 1px rgba(36,76,63,.09);
}
.select-cell{
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.trip-card.selectable-item,
.day-card.selectable-item,
.hotel-card.selectable-item{
  padding-left:43px;
}
.trip-card.selectable-item > .select-cell,
.day-card.selectable-item > .select-cell,
.hotel-card.selectable-item > .select-cell{
  position:absolute;
  left:13px;
  top:15px;
  z-index:4;
}
.list-row.is-selectable{
  grid-template-columns:26px 38px minmax(0,1fr) auto;
}
.list-row.is-selectable > .select-cell{
  width:22px;
}
@media(max-width:720px){
  .bulk-bar{align-items:flex-start}
  .bulk-actions{width:100%;margin-left:0}
  .bulk-actions .btn{flex:1 1 auto}
  .list-row.is-selectable{
    grid-template-columns:24px 34px minmax(0,1fr);
  }
  .list-row.is-selectable .row-buttons{
    grid-column:2 / -1;
    justify-content:flex-end;
  }
}



/* V10.2: tabla dnevov in vlečenje točk */
.day-planner-toolbar-stack{
  position:sticky;
  top:0;
  z-index:28;
  display:grid;
  gap:7px;
  margin-bottom:12px;
}
.day-planner-toolbar-stack .bulk-bar{
  position:static;
  margin:0;
}
.planner-section-head{margin-top:2px}
.planner-tip{
  margin:-2px 0 12px;
  padding:9px 11px;
  border:1px solid #d9e1da;
  border-radius:11px;
  color:#52615b;
  background:#f4f7f3;
  font-size:10.5px;
  line-height:1.45;
}
.planner-unassigned{
  margin-bottom:13px;
  border-style:dashed;
  background:#fbfaf6;
}
.planner-pool-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
  border-bottom:1px solid var(--line);
}
.planner-pool-head strong{display:block;font-size:12.5px}
.planner-pool-head span{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
.planner-days{display:grid;gap:11px}
.planner-day-card{
  position:relative;
  overflow:hidden;
  padding:0 0 0 40px;
  border-left:4px solid var(--day);
}
.planner-day-card > .select-cell{
  position:absolute;
  top:17px;
  left:12px;
  z-index:5;
}
.planner-day-head{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto auto;
  align-items:center;
  gap:9px;
  min-height:65px;
  padding:10px 10px 10px 0;
  border-bottom:1px solid var(--line);
}
.planner-day-copy{min-width:0}
.planner-day-copy strong{
  display:block;
  overflow:hidden;
  color:var(--ink);
  font-size:12.5px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.planner-day-copy span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9.8px;
  line-height:1.35;
}
.planner-day-badges{display:flex;align-items:center}
.planner-dirty{
  max-width:106px;
  padding:5px 7px;
  border-radius:999px;
  color:#85521a;
  background:#fff1d8;
  border:1px solid #edce98;
  font-size:9px;
  font-weight:800;
  line-height:1.15;
  text-align:center;
}
.planner-day-actions{
  display:flex;
  align-items:center;
  gap:5px;
}
.day-drop-zone{
  min-height:58px;
  padding:7px;
  background:rgba(247,248,244,.72);
  transition:background .14s ease,box-shadow .14s ease;
}
.day-drop-zone.drag-over{
  background:#edf6f0;
  box-shadow:inset 0 0 0 2px rgba(36,76,63,.28);
}
.planner-drag-active .day-drop-zone{
  outline:1px dashed rgba(36,76,63,.28);
  outline-offset:-4px;
}
.day-drop-empty{
  display:grid;
  min-height:44px;
  place-items:center;
  padding:9px;
  border:1px dashed #d4d9d4;
  border-radius:9px;
  color:#89948f;
  font-size:9.8px;
  text-align:center;
}
.planner-point{
  display:grid;
  grid-template-columns:22px 22px 30px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  min-height:48px;
  margin-bottom:5px;
  padding:6px 7px;
  border:1px solid #dedfd9;
  border-radius:10px;
  background:#fff;
  box-shadow:0 2px 7px rgba(36,51,44,.04);
}
.planner-point:last-of-type{margin-bottom:0}
.planner-point:hover{border-color:#aebcb4}
.planner-point.dragging{
  opacity:.34;
  border-style:dashed;
}
.drag-handle{
  display:grid;
  width:22px;
  height:30px;
  place-items:center;
  color:#8a9690;
  font-size:18px;
  line-height:1;
  cursor:grab;
  user-select:none;
}
.drag-handle:active{cursor:grabbing}
.planner-point-icon{
  display:grid;
  width:29px;
  height:29px;
  place-items:center;
  border-radius:9px;
  background:#f0f3ee;
  font-size:14px;
}
.planner-point-main{min-width:0}
.planner-point-main strong{
  display:block;
  overflow:hidden;
  font-size:11px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.planner-point-main span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}
.planner-point-actions{
  display:flex;
  align-items:center;
  gap:3px;
}
.planner-mobile-move{display:none}
.drag-placeholder{
  display:grid;
  min-height:43px;
  margin:5px 0;
  place-items:center;
  border:2px dashed var(--brand);
  border-radius:10px;
  color:var(--brand);
  background:#edf6f0;
  font-size:10px;
  font-weight:850;
}
@media(max-width:760px){
  .planner-day-head{
    grid-template-columns:42px minmax(0,1fr);
  }
  .planner-day-badges{
    grid-column:1 / -1;
    padding-left:2px;
  }
  .planner-day-actions{
    grid-column:1 / -1;
    flex-wrap:wrap;
  }
  .planner-day-actions .btn{flex:1}
  .planner-point{
    grid-template-columns:20px 20px 28px minmax(0,1fr);
  }
  .planner-point-actions{
    grid-column:3 / -1;
    justify-content:flex-end;
  }
  .planner-mobile-move{display:inline-grid}
}
@media(pointer:coarse){
  .drag-handle{opacity:.55}
  .planner-mobile-move{display:inline-grid}
}



/* V10.3: AI predlogi ob poti */
.ai-interest-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:8px;
}
.ai-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fbfbf8;
  font-size:10.5px;
  cursor:pointer;
}
.ai-check input{accent-color:var(--brand)}
.ai-warning{
  margin-bottom:10px;
  color:#8b5b20;
  background:#fff5e4;
  border-color:#efd9ab;
}
.ai-preview-list{display:grid;gap:10px}
.ai-preview-card{
  display:block;
  padding:11px 12px;
  border:1px solid #d8ddd8;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 10px rgba(36,51,44,.04);
}
.ai-preview-card.duplicate{
  background:#f8f7f4;
  border-style:dashed;
  opacity:.78;
}
.ai-preview-top{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:flex-start;
  gap:9px;
}
.ai-preview-top input{margin-top:2px;accent-color:var(--brand)}
.ai-preview-head strong{display:block;font-size:12px;line-height:1.3}
.ai-preview-head span{display:block;margin-top:2px;color:var(--muted);font-size:9.8px;line-height:1.35}
.ai-priority{
  padding:5px 7px;
  border-radius:999px;
  color:#1f4d40;
  background:#edf6f0;
  border:1px solid #cfe1d6;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}
.ai-preview-body{padding-left:26px}
.ai-preview-body p{margin:7px 0 0;font-size:10.5px;line-height:1.45}
.ai-duplicate-note{color:#85521a;font-weight:700}
@media(max-width:700px){
  .ai-interest-grid{grid-template-columns:1fr}
  .ai-preview-top{grid-template-columns:auto 1fr}
  .ai-priority{grid-column:2}
  .ai-preview-body{padding-left:0}
}



/* V10.4: AI načrt za celotno potovanje */
.ai-hub-grid{display:grid;gap:11px}
.ai-hub-card{display:grid;gap:10px;padding:14px}
.ai-hub-featured{border-color:#9eb7aa;background:linear-gradient(145deg,#f3f8f4,#fffdf9)}
.ai-hub-icon{font-size:27px;line-height:1}
.ai-hub-card h3{margin:0;font-size:13.5px}
.ai-hub-card p{margin:5px 0 0;color:var(--muted);font-size:10.5px;line-height:1.5}
.ai-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ai-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ai-choice-card{display:flex;min-height:94px;flex-direction:column;justify-content:center;gap:5px;padding:13px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:#fff;cursor:pointer;text-align:left}
.ai-choice-card:hover{border-color:#93ad9f;background:#f1f7f3}
.ai-choice-card strong{font-size:12px}.ai-choice-card span{color:var(--muted);font-size:10px}
.ai-hub-note{margin-top:12px}
.ai-order-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
.ai-order-kpis>div{padding:11px;border:1px solid var(--line);border-radius:11px;background:#f8faf7}
.ai-order-kpis strong{display:block;font-size:14px}.ai-order-kpis span{display:block;margin-top:3px;color:var(--muted);font-size:9.5px}
.ai-order-list{display:grid;gap:6px;margin-bottom:11px}
.ai-order-row{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.ai-order-row>span{display:grid;width:25px;height:25px;place-items:center;border-radius:50%;color:#fff;background:var(--brand);font-size:10px;font-weight:800}
.ai-order-row strong{display:block;font-size:11px}.ai-order-row small{display:block;margin-top:2px;color:var(--muted);font-size:9px}
@media(max-width:700px){.ai-preset-grid,.ai-choice-grid,.ai-order-kpis{grid-template-columns:1fr}}



/* V10.4.1: pregled koridorja poti */
.field-help{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.35;
}
.ai-coverage-card{
  margin:0 0 12px;
  padding:12px;
  border:1px solid #cddbd3;
  border-radius:13px;
  background:linear-gradient(135deg,#f3f8f5,#fbfaf5);
}
.ai-coverage-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.ai-coverage-title strong{font-size:12px}
.ai-coverage-title span{
  padding:4px 7px;
  border-radius:999px;
  color:#245344;
  background:#e5f1e9;
  font-size:9px;
  font-weight:850;
}
.ai-coverage-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.ai-coverage-grid>div{
  padding:8px;
  border:1px solid rgba(36,76,63,.1);
  border-radius:10px;
  background:rgba(255,255,255,.78);
}
.ai-coverage-grid strong{display:block;font-size:14px}
.ai-coverage-grid span{display:block;margin-top:2px;color:var(--muted);font-size:8.8px;line-height:1.25}
.ai-coverage-foot{margin-top:8px;color:var(--muted);font-size:9px;line-height:1.4}
.ai-segment-meta{display:block;margin-top:4px;color:#2f6b57;font-size:9px;font-weight:750}
@media(max-width:650px){
  .ai-coverage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}



/* V10.5: interaktivno urejanje poti na zemljevidu */
.route-edit-tools{
  position:absolute;
  left:14px;
  top:75px;
  z-index:710;
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  max-width:min(680px,calc(100% - 90px));
  padding:7px;
  border:1px solid rgba(43,62,54,.16);
  border-radius:14px;
  background:rgba(255,255,255,.95);
  box-shadow:0 8px 22px rgba(34,48,41,.14);
  backdrop-filter:blur(9px);
}
.route-edit-tools.active{
  border-color:#7fa28f;
  box-shadow:0 0 0 2px rgba(36,76,63,.08),0 8px 22px rgba(34,48,41,.16);
}
.route-edit-toggle.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.route-edit-auto{
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 7px;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
}
.route-edit-auto input{accent-color:var(--brand)}
.route-edit-pending{
  min-width:105px;
  color:var(--muted);
  font-size:9.5px;
  text-align:center;
}
.map-undo-bar{
  position:absolute;
  left:14px;
  bottom:78px;
  z-index:730;
  display:flex;
  align-items:center;
  gap:9px;
  max-width:min(620px,calc(100% - 28px));
  padding:9px 10px 9px 12px;
  border:1px solid rgba(43,62,54,.18);
  border-radius:13px;
  background:rgba(31,47,40,.96);
  color:#fff;
  box-shadow:0 10px 28px rgba(21,32,27,.24);
}
.map-undo-bar span{font-size:10.5px;line-height:1.35}
.map-undo-bar .btn{margin-left:auto;background:#fff;color:#244c3f;border-color:#fff}
.map-undo-close{color:#fff;border-color:rgba(255,255,255,.28)}
.map-route-editing #map{cursor:crosshair}
.map-route-editing .leaflet-marker-icon.draggable,
.map-route-editing .marker-poi.draggable,
.map-route-editing .marker-shaping.draggable{cursor:grab!important}
.marker-is-dragging .leaflet-marker-icon{cursor:grabbing!important}
.interactive-route-visible{filter:drop-shadow(0 0 3px rgba(36,76,63,.35))}
.route-line-dragging #map{cursor:grabbing!important}
.interactive-route-hit{cursor:grab}
.marker-shaping-diamond{
  display:grid;
  width:24px;
  height:24px;
  place-items:center;
  transform:rotate(45deg);
  border:3px solid #fff;
  border-radius:5px;
  background:#244c3f;
  color:#fff;
  box-shadow:0 3px 10px rgba(23,39,32,.35);
  font-size:0;
}
.marker-shaping-diamond::after{
  content:'◆';
  transform:rotate(-45deg);
  font-size:11px;
  line-height:1;
}
.marker-shaping.draggable .marker-shaping-diamond{
  box-shadow:0 0 0 3px rgba(244,174,66,.6),0 4px 12px rgba(23,39,32,.4);
}
.interactive-popup .popup-actions{
  display:flex;
  gap:6px;
  margin-top:8px;
}
.interactive-popup .popup-actions button{
  padding:6px 8px;
  border:1px solid #cdd6d0;
  border-radius:8px;
  background:#f8faf8;
  color:#244c3f;
  font:inherit;
  font-size:10px;
  font-weight:750;
  cursor:pointer;
}
.interactive-popup .popup-actions button.danger{color:#9d2d2d;background:#fff5f4;border-color:#e5c4c1}
.interactive-coordinate-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px 0;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f7f8f4;
}
.interactive-coordinate-card span{color:var(--muted);font-size:10px}
.interactive-coordinate-card strong{font-size:10.5px}
@media(max-width:760px){
  .route-edit-tools{
    left:8px;
    top:64px;
    max-width:calc(100% - 58px);
    gap:5px;
  }
  .route-edit-tools .btn{padding:7px 8px;font-size:9.5px}
  .route-edit-auto{order:5;width:100%;padding:3px 5px}
  .route-edit-pending{display:none}
  .map-undo-bar{left:8px;bottom:69px;max-width:calc(100% - 16px)}
}



/* V10.6: performance diagnostika */
.performance-card{margin-top:12px}
.performance-pill{
  padding:6px 9px;
  border-radius:999px;
  background:#edf6f0;
  border:1px solid #cfe1d6;
  color:#244c3f;
  font-size:10px;
  font-weight:850;
}
.performance-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:10px 0;
}
.performance-grid>div{
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fafbf8;
}
.performance-grid strong{display:block;font-size:12px;color:var(--ink)}
.performance-grid span{display:block;margin-top:2px;font-size:9px;color:var(--muted);line-height:1.3}
.performance-note{font-size:10px;line-height:1.5}
.performance-cache-restored #splash{display:none!important}


/* =========================================================
   SERVER V1 · UI REFRESH
   Ohranja originalno funkcionalnost, vizualno pa poenoti tok dela.
   ========================================================= */
:root{
  --brand:#0f4c45;
  --brand-2:#17695e;
  --accent:#e06f45;
  --ink:#17231f;
  --muted:#687871;
  --paper:#f3f6f3;
  --panel:#ffffff;
  --line:#dfe7e3;
  --blue:#2563eb;
  --danger:#b42318;
  --shadow:0 18px 55px rgba(23,35,31,.13);
  --sidebar:440px;
}
html,body{background:#eaf0ed}
body{letter-spacing:-.005em}
.topbar{
  height:72px;
  padding:0 18px;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(15,76,69,.10);
  box-shadow:0 8px 28px rgba(19,35,29,.08);
  backdrop-filter:blur(18px) saturate(1.25);
}
.workspace{inset:72px 0 0}
.brand-mark{
  background:linear-gradient(145deg,#0f4c45,#19766a);
  box-shadow:0 8px 22px rgba(15,76,69,.22);
}
.brand strong{font-size:15.5px;letter-spacing:-.02em}
.brand span{font-size:11px;color:#72827b}
.trip-switcher{
  width:min(620px,100%);
  justify-self:center;
  padding:5px;
  border-radius:14px;
  background:#f3f6f4;
  border:1px solid #e2e9e5;
}
.trip-switcher label{padding-left:7px;color:#718179;font-weight:800}
.trip-switcher select{
  min-width:220px;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  font-weight:780;
}
.btn{
  border-radius:12px;
  border-color:#dce5e0;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
}
.btn.primary{
  background:linear-gradient(135deg,#0f4c45,#17695e);
  border-color:#0f4c45;
  box-shadow:0 8px 18px rgba(15,76,69,.17);
}
.btn.primary:hover{box-shadow:0 10px 24px rgba(15,76,69,.25)}
.btn.ghost:hover{background:#f7faf8}
.user-chip{
  background:#eef6f2;
  border:1px solid #dbe9e2;
  color:#31564b;
}
.sidebar{
  background:linear-gradient(180deg,#f8faf8,#eef3f0);
  border-right:1px solid rgba(15,76,69,.10);
  box-shadow:10px 0 35px rgba(21,40,34,.07);
}
.tabs{
  gap:6px;
  padding:11px 10px 9px;
  background:rgba(248,250,248,.95);
}
.tab{
  border:1px solid transparent;
  padding:8px 11px;
  border-radius:10px;
  font-size:11px;
}
.tab:hover{background:#fff;border-color:#dfe7e3}
.tab.active{
  background:#173f39;
  border-color:#173f39;
  box-shadow:0 6px 16px rgba(23,63,57,.17);
}
.sidebar-content{padding:16px 15px 64px}
.card{
  border:1px solid #e1e8e4;
  border-radius:18px;
  box-shadow:0 5px 18px rgba(32,51,44,.055);
  background:rgba(255,255,255,.96);
}
.card:hover{border-color:#d5e1db}
.section-head h2{font-size:15px;letter-spacing:-.015em}
.kpi{
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#f8faf9);
  border-color:#e1e8e4;
}
.kpi strong{font-size:19px;letter-spacing:-.03em}
.list-row{padding:12px 13px}
.row-icon{border:1px solid #e0e8e4;background:#f1f6f3}
.google-place-search{
  top:16px!important;
  border-radius:16px!important;
  box-shadow:0 15px 38px rgba(16,34,29,.16)!important;
  border:1px solid rgba(255,255,255,.7)!important;
  backdrop-filter:blur(14px);
}
.google-search-row input{font-size:13px}
.route-edit-tools{
  border-radius:15px!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 13px 35px rgba(16,34,29,.14)!important;
  backdrop-filter:blur(14px);
}
.map-tool{
  width:42px!important;height:42px!important;border-radius:13px!important;
  box-shadow:0 9px 22px rgba(15,35,29,.16)!important;
}
.modal{
  border-radius:24px!important;
  border:1px solid rgba(255,255,255,.75)!important;
  box-shadow:0 30px 90px rgba(15,35,29,.28)!important;
}
.modal-head{padding:21px 22px 15px!important}
.modal-body{padding:4px 22px 18px!important}
.modal-actions{padding:14px 22px 20px!important}
.toast{border-radius:14px!important;box-shadow:0 20px 55px rgba(15,35,29,.25)!important}
.action-card{
  border-radius:18px!important;
  box-shadow:0 24px 70px rgba(15,35,29,.25)!important;
}
.splash,.setup-view{
  background:
    radial-gradient(circle at 14% 14%,rgba(36,143,119,.20),transparent 28%),
    radial-gradient(circle at 82% 78%,rgba(224,111,69,.15),transparent 30%),
    linear-gradient(145deg,#e5efea,#f7f4ed);
}
.splash-card,.setup-card{
  border-radius:28px;
  box-shadow:0 28px 90px rgba(23,55,45,.19);
}
.splash-card .eyebrow{margin-bottom:9px}
@media (max-width: 1050px){
  .topbar{grid-template-columns:auto 1fr auto}
  .trip-switcher label{display:none}
  .top-actions .btn{padding-inline:9px}
}
@media (max-width: 760px){
  .topbar{height:64px;padding:0 10px;grid-template-columns:1fr auto}
  .workspace{inset:64px 0 0}
  .trip-switcher{grid-column:1/-1;position:absolute;top:66px;left:10px;right:10px;width:auto;z-index:900;box-shadow:0 10px 26px rgba(20,40,34,.10)}
  .workspace{inset:122px 0 0}
  .top-actions .btn{display:none}
  .user-chip{max-width:120px}
  .brand-copy span{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ================================================================
   V1.1.0 · TRAVEL COCKPIT UX
   Vizualna in ergonomska nadgradnja brez spremembe aplikacijske logike.
   ================================================================ */
:root{
  --brand:#163f37;
  --brand-2:#28705f;
  --accent:#d56f45;
  --ink:#1a2d27;
  --muted:#718079;
  --paper:#f4f7f5;
  --panel:#ffffff;
  --line:#dfe7e3;
  --shadow-soft:0 8px 28px rgba(20,48,40,.08);
  --shadow-float:0 18px 50px rgba(18,43,36,.16);
  --sidebar:404px;
}

html,body{background:#edf2ef}
body{letter-spacing:-.005em}
button,input,textarea,select{letter-spacing:inherit}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid rgba(40,112,95,.18)!important;
  outline-offset:2px;
}

/* Zgornji cockpit */
.topbar{
  height:72px;
  padding:0 18px;
  grid-template-columns:minmax(230px,auto) minmax(300px,1fr) auto;
  gap:16px;
  border-bottom:1px solid rgba(22,63,55,.09);
  background:rgba(250,252,251,.92);
  box-shadow:0 5px 24px rgba(20,48,40,.06);
  backdrop-filter:blur(18px) saturate(135%);
}
.workspace{inset:72px 0 0}
.brand{gap:11px}
.brand-mark{
  width:43px;height:43px;border-radius:15px;
  background:linear-gradient(145deg,#174a40,#246b5b);
  box-shadow:0 8px 20px rgba(22,63,55,.18),inset 0 0 0 1px rgba(255,255,255,.13);
}
.brand strong{font-size:15px;letter-spacing:-.02em}
.brand span{font-size:10.5px;color:#788780}
.trip-switcher{
  justify-self:center;
  width:min(100%,640px);
  padding:5px;
  border:1px solid #e0e8e4;
  border-radius:15px;
  background:#f1f5f3;
}
.trip-switcher select{
  max-width:none;width:100%;height:40px;
  border:0;border-radius:11px;background:transparent;
  font-size:12.5px;padding-left:14px;
  box-shadow:none!important;
}
.trip-switcher .btn{
  min-height:38px;border-radius:11px;padding:7px 13px;
  box-shadow:0 5px 13px rgba(22,63,55,.12);
}
.top-actions{gap:7px}
.top-actions .btn{
  min-height:38px;border-radius:12px;padding:7px 11px;
  background:#fff;border-color:#dfe7e3;color:#36564b;
  box-shadow:none;
}
.top-actions .btn:hover{background:#f6faf8;border-color:#bfd0c8;transform:none;box-shadow:none}
#addPointMapBtn{background:#edf6f2;border-color:#d2e5dc;color:#215e50}
.user-chip{
  max-width:230px;min-height:38px;display:flex;align-items:center;
  position:relative;padding:8px 13px 8px 27px;
  border:1px solid #dce7e2;background:#f4f8f6;color:#31564a;
  border-radius:999px;font-size:10.5px;
}
.user-chip::before{
  content:"";position:absolute;left:12px;width:7px;height:7px;border-radius:50%;
  background:#2ca66f;box-shadow:0 0 0 3px rgba(44,166,111,.12);
}

/* Levi panel kot jasen delovni prostor */
.sidebar{
  background:linear-gradient(180deg,#f9fbfa 0%,#f2f6f4 100%);
  border-right:1px solid rgba(22,63,55,.09);
  box-shadow:12px 0 36px rgba(18,43,36,.055);
}
.tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  padding:10px;
  overflow:visible;
  border-bottom:1px solid #e3ebe7;
  background:rgba(249,251,250,.95);
}
.tab{
  min-width:0;height:36px;padding:6px 5px;border:1px solid transparent;
  border-radius:11px;font-size:10px;line-height:1.05;
  overflow:hidden;text-overflow:ellipsis;
}
.tab:hover{background:#fff;border-color:#dde8e3}
.tab.active{
  background:linear-gradient(145deg,#163f37,#215d50);
  border-color:#163f37;color:#fff;
  box-shadow:0 7px 18px rgba(22,63,55,.17);
}
.sidebar-content{padding:17px 15px 70px}
.section-head{margin:3px 2px 12px}
.section-head h2{font-size:16px;letter-spacing:-.025em}
.section-head p{font-size:10.5px;margin-top:3px}

/* Kartice in metrike */
.card{
  border:1px solid #e1e9e5;
  border-radius:19px;
  background:rgba(255,255,255,.97);
  box-shadow:0 4px 17px rgba(21,49,41,.045);
}
.card:hover{border-color:#d5e2dc}
.card-pad{padding:15px}
.kpi-grid{gap:8px;margin-bottom:14px}
.kpi{
  min-height:75px;display:flex;flex-direction:column;justify-content:center;
  padding:11px 12px;border-radius:16px;
  background:linear-gradient(160deg,#fff,#f4f8f6);
  border:1px solid #dfe9e4;
}
.kpi strong{font-size:21px;line-height:1.05;color:#173f37}
.kpi span{margin-top:5px;font-size:9.5px;text-transform:uppercase;letter-spacing:.055em;color:#7b8882}
.route-status{padding:6px 9px;border-radius:999px}
.day-actions{gap:6px}
.day-actions .btn[data-action="calculate-route"]{
  background:#163f37;color:#fff;border-color:#163f37;
}
.day-actions .btn[data-action="calculate-route"]:hover{background:#215d50}
.list-row{padding:12px 13px;transition:background .14s ease}
.list-row:hover{background:#f8faf9}
.row-icon{border-radius:12px}
.mini-btn{width:31px;height:31px;border-radius:10px}

/* Iskalnik zemljevida */
.google-place-search{
  left:18px!important;top:18px!important;
  width:min(590px,calc(100% - 105px));
}
.google-search-row{
  min-height:52px;padding:6px 7px;
  grid-template-columns:34px minmax(0,1fr) auto auto;
  border-radius:17px;
  border:1px solid rgba(22,63,55,.12);
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-float);
  backdrop-filter:blur(18px) saturate(130%);
}
.google-search-row input{height:40px;font-size:13px}
.google-search-btn{height:38px;padding:0 15px;border-radius:11px;background:#163f37}
.google-clear-btn{height:38px;width:38px;border-radius:11px}
.google-place-results{border-radius:17px;box-shadow:var(--shadow-float)}

/* Urejanje trase: ko ni aktivno, pokaži samo en jasen gumb */
.route-edit-tools{
  left:18px;top:82px;max-width:min(720px,calc(100% - 105px));
  min-height:43px;padding:6px;border-radius:15px;
  border:1px solid rgba(22,63,55,.12);
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 28px rgba(18,43,36,.11);
}
.route-edit-tools:not(.active) .route-edit-auto,
.route-edit-tools:not(.active) .route-edit-pending,
.route-edit-tools:not(.active) #routeEditRecalculate,
.route-edit-tools:not(.active) #routeEditUndoAll{display:none!important}
.route-edit-toggle{min-height:31px;border-radius:10px}
.route-edit-toggle:not(.active){background:#f0f6f3;border-color:#d4e5dd;color:#245c4e}
.route-edit-tools.active{padding:7px 8px;border-color:#a8c2b6;background:rgba(250,253,251,.97)}
.route-edit-auto{padding:0 8px;font-size:10px}
.route-edit-pending{font-size:9.5px}

/* Kontrole zemljevida */
.map-tools{right:17px;top:18px;gap:8px}
.map-tool{
  width:44px!important;height:44px!important;border-radius:14px!important;
  border-color:rgba(22,63,55,.11)!important;background:rgba(255,255,255,.96)!important;
  box-shadow:0 10px 26px rgba(18,43,36,.13)!important;
}
.map-tool:hover{background:#f2f8f5!important}
.leaflet-control-zoom a,.leaflet-control-layers{
  border-color:#dfe8e4!important;
  box-shadow:0 8px 24px rgba(18,43,36,.10)!important;
}
.day-float{
  left:18px;bottom:18px;padding:11px 14px;border-radius:16px;
  border-color:rgba(22,63,55,.11);background:rgba(255,255,255,.95);
  box-shadow:0 12px 34px rgba(18,43,36,.12);
}
.map-undo-bar{left:18px;bottom:78px;border-radius:15px}

/* Obrazci */
.btn{border-radius:12px;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease}
.btn.primary{background:linear-gradient(145deg,#163f37,#215d50);border-color:#163f37}
.btn.primary:hover{box-shadow:0 8px 19px rgba(22,63,55,.16)}
.field label{font-size:10.5px;color:#496159}
.field input,.field select,.field textarea,.search{
  border-radius:12px;border-color:#dce5e1;background:#fff;
}
.field input:focus,.field select:focus,.field textarea:focus,.search:focus{
  border-color:#76a090;box-shadow:0 0 0 4px rgba(40,112,95,.10);
}
.modal{border-radius:25px!important}
.modal-head{background:linear-gradient(180deg,#fbfcfb,#f8faf9)}

/* Vizualno bolj miren scrollbar */
.sidebar-content::-webkit-scrollbar{width:8px}
.sidebar-content::-webkit-scrollbar-thumb{border:2px solid transparent;background:#aebcb5;background-clip:padding-box}

/* Desktop srednja širina */
@media(max-width:1180px){
  :root{--sidebar:382px}
  .topbar{grid-template-columns:minmax(205px,auto) minmax(245px,1fr) auto;padding-inline:13px;gap:9px}
  .top-actions #exportGpxBtn,.top-actions #exportExcelBtn{display:none}
  .trip-switcher{width:min(100%,520px)}
}

/* Tablica in telefon */
@media(max-width:820px){
  .topbar{height:64px;padding:0 10px;grid-template-columns:minmax(150px,1fr) auto}
  .workspace{inset:122px 0 0}
  .trip-switcher{
    position:absolute;left:9px;right:9px;top:66px;width:auto;max-width:none;
    background:rgba(248,251,249,.97);box-shadow:0 10px 28px rgba(18,43,36,.10);
  }
  .trip-switcher select{max-width:none}
  .top-actions{display:none}
  .brand-mark{display:grid;width:38px;height:38px}
  .brand-copy span{max-width:180px}
  .sidebar{width:min(94vw,430px);box-shadow:18px 0 55px rgba(18,43,36,.22)}
  .tabs{grid-template-columns:repeat(4,minmax(0,1fr));padding:9px;gap:5px}
  .tab{height:35px;font-size:9.7px}
  .google-place-search{left:10px!important;top:10px!important;width:calc(100% - 70px)}
  .route-edit-tools{left:10px;top:70px;max-width:calc(100% - 70px)}
  .map-tools{right:10px;top:10px}
  .day-float{left:10px;right:10px;bottom:10px;max-width:none}
}

@media(max-width:560px){
  .workspace{inset:119px 0 0}
  .brand-mark{display:none}
  .brand strong{font-size:13.5px}
  .brand span{font-size:9.5px}
  .trip-switcher{top:65px;padding:4px}
  .trip-switcher select{height:38px;font-size:11.5px}
  .tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .tab{font-size:9px;padding-inline:3px}
  .sidebar-content{padding:14px 11px 64px}
  .section-head h2{font-size:15px}
  .kpi{min-height:67px;padding:9px}
  .kpi strong{font-size:18px}
  .google-search-row{min-height:48px}
  .google-search-btn{font-size:0;width:38px;padding:0}
  .google-search-btn::after{content:"⌕";font-size:17px}
  .route-edit-tools.active{max-width:calc(100% - 20px);right:10px}
  .route-edit-tools.active .route-edit-auto{order:5;width:100%}
  .route-edit-tools.active .route-edit-pending{display:none}
}


/* ================================================================
   V1.2 - TRAVEL PALETTE + AUTH
   ================================================================ */
:root{
  --ink:#24332e;
  --muted:#748079;
  --paper:#f6f1e8;
  --panel:#fffdf9;
  --line:#e3ddd2;
  --brand:#173f3a;
  --brand-2:#2f6b5b;
  --accent:#d97745;
  --accent-soft:#fff0e7;
  --sage:#e5f0eb;
  --sand:#f6f1e8;
  --blue:#3478a8;
  --shadow:0 18px 48px rgba(39,52,47,.14);
}
html,body{background:#ecefe9}
.topbar{background:rgba(255,253,249,.96);border-bottom-color:#e8e0d4}
.brand-mark{background:linear-gradient(145deg,var(--brand),#295f55);box-shadow:0 8px 20px rgba(23,63,58,.19)}
.sidebar{background:linear-gradient(180deg,#fbf8f1,#f4f0e7)}
.tabs{background:rgba(250,247,240,.96);padding:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible}
.tab{position:relative;padding:9px 6px}
.tab.active{background:var(--brand);box-shadow:0 7px 16px rgba(23,63,58,.18)}
.tab.active:after{content:"";position:absolute;left:28%;right:28%;bottom:-4px;height:3px;border-radius:99px;background:var(--accent)}
#addPointMapBtn,.btn.accent{background:var(--accent-soft);border-color:#efc5ad;color:#9a4726}
#addPointMapBtn:hover,.btn.accent:hover{background:#ffe6d7;border-color:#eaa27b}
.user-chip{background:#edf5f1;border:1px solid #d9e8e0;color:#315f52}
.card{border-color:#e7e1d7;background:rgba(255,254,251,.94)}
.kpi{position:relative;overflow:hidden;background:linear-gradient(145deg,#fff,#faf7f0);padding:13px 12px}
.kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--brand-2)}
.kpi:nth-child(2):before{background:var(--accent)}
.kpi:nth-child(3):before{background:#6888a8}
.kpi strong{font-size:19px;color:#153c35}.kpi span{text-transform:uppercase;letter-spacing:.055em}
.sidebar-content>.card.card-pad:first-of-type{border-top:3px solid var(--brand-2)}
.route-status.imported{background:#e5f0fb;color:#2c6795}.route-status.auto{background:#e5f3eb;color:#2d7459}
.marker-pin{background:var(--marker,var(--brand));box-shadow:0 5px 18px rgba(25,52,44,.27)}
.marker-dot{background:var(--marker,var(--accent))}
.day-float{border-left:4px solid var(--accent)}
.google-search-row{border-color:rgba(23,63,58,.17);box-shadow:0 12px 38px rgba(37,51,46,.16)}
.google-search-btn{background:var(--brand)!important}

/* prijava */
.login-card{max-width:470px;text-align:left;padding:34px}
.login-card .setup-icon{margin-left:0;background:linear-gradient(145deg,#e5f0eb,#fff1e8)}
.login-card h1{font-size:34px}.login-card>p{color:var(--muted)}
.login-field{display:flex;flex-direction:column;gap:7px;margin:24px 0 12px}
.login-field label{font-size:12px;font-weight:800;color:#52635c}
.login-field input{height:48px;border:1px solid #d9d4ca;border-radius:13px;background:#fff;padding:0 14px;font-size:14px;outline:none}
.login-field input:focus{border-color:var(--brand-2);box-shadow:0 0 0 4px rgba(47,107,91,.12)}
.login-message{min-height:22px;margin:13px 0 0!important;font-size:12px}
.login-footnote{margin-top:22px!important;padding-top:16px;border-top:1px solid var(--line);font-size:11px!important}

/* dostop */
.access-card{padding:0;overflow:hidden}
.access-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:15px 15px 11px;background:linear-gradient(135deg,#edf5f1,#fff7ef);border-bottom:1px solid var(--line)}
.access-head h3{margin:3px 0 4px;font-size:16px}.access-head p{margin:0;color:var(--muted);font-size:10.5px;line-height:1.45}.access-kicker{font-size:9px;font-weight:900;letter-spacing:.14em;color:var(--brand-2)}
.access-user-list{padding:0 12px}
.access-user-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:11px 2px;border-bottom:1px solid #eee8de}
.access-user-row:last-child{border-bottom:0}.access-avatar{font-size:16px;color:#2f946c;text-align:center}.access-main strong{display:block;font-size:11.5px}.access-main span{display:block;color:var(--muted);font-size:9.5px;margin-top:2px;overflow:hidden;text-overflow:ellipsis}.access-actions{display:flex;gap:4px}
.access-role{padding:5px 7px;border-radius:999px;font-size:8.5px;font-weight:900;letter-spacing:.04em}.access-role.role-admin{background:#e7f1ed;color:#245d50}.access-role.role-urednik{background:#fff0e6;color:#9a4e2b}.access-role.role-ogled{background:#eef0f3;color:#59636e}
.access-legend{display:flex;gap:8px;flex-wrap:wrap;padding:10px 14px;background:#fbf9f4;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}

/* način samo za ogled */
body.role-ogled #newTripBtn,body.role-ogled #addPointMapBtn,body.role-ogled #exportGpxBtn,body.role-ogled #exportExcelBtn,body.role-ogled #routeEditTools,
body.role-ogled [data-action="edit-day"],body.role-ogled [data-action="add-day"],body.role-ogled [data-action="delete-day"],body.role-ogled [data-action="calculate-route"],body.role-ogled [data-action="import-route"],body.role-ogled [data-action="add-point"],body.role-ogled [data-action="edit-point"],body.role-ogled [data-action="delete-point"],body.role-ogled [data-action="add-hotel"],body.role-ogled [data-action="edit-hotel"],body.role-ogled [data-action="delete-hotel"]{display:none!important}

@media(max-width:820px){.tabs{grid-template-columns:repeat(4,minmax(72px,1fr));overflow-x:auto}.login-card{text-align:left}.access-user-row{grid-template-columns:24px minmax(0,1fr) auto}.access-role{display:none}}
