/* eLastovka mockup (ponazoritev) – phone-first. Not the official MZEZ app. */
:root{
  --teal:#1d4651; --teal-2:#25525e; --avatar:#5b9bb8; --bell:#4d6c76;
  --bg:#f3f3f3; --card:#fff; --ink:#111; --muted:#5d6b70; --line:#c9cfd2;
  --accent:#3f7a72; --accent-bg:#dcece8; --link:#2f6b80;
  --black:#111; --green:#2fb344; --yellow:#f2d21b; --grey:#9aa4a8;
  --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px);
  --nav-h:60px;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  -webkit-text-size-adjust:100%;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:radial-gradient(circle at 50% 0,#2b5b67 0,#0e2229 70%);color:var(--ink);overflow:hidden}
button{font:inherit;color:inherit}
svg{display:block}

/* ---------- desktop: centred phone ---------- */
.intro{margin:0;padding:14px 16px 0;text-align:center;color:#e6f0f2;font-size:14px;font-weight:600;letter-spacing:.01em}
.foot{margin:0;padding:8px 16px 10px;text-align:center;color:#9fb6bc;font-size:11.5px;max-width:560px;margin-inline:auto}
.phone{margin:12px auto 0;width:414px;padding:12px;border-radius:56px;background:#0b0b0c;box-shadow:0 0 0 2px #333,0 30px 80px rgba(0,0,0,.55)}
.app{position:relative;width:390px;height:min(844px,calc(100dvh - 132px));min-height:560px;border-radius:44px;overflow:hidden;background:var(--teal);display:flex;flex-direction:column;isolation:isolate}

.statusbar{flex:none;height:50px;padding:16px 30px 0 40px;display:flex;justify-content:space-between;align-items:center;color:#fff;font-weight:600;font-size:16px}
.sb-right{display:flex;align-items:center;gap:6px;font-size:14px}
.sb-sig{display:flex;align-items:flex-end;gap:2px;height:11px}.sb-sig i{display:block;width:3px;background:#fff;border-radius:1px}
.sb-sig i:nth-child(1){height:4px;opacity:.6}.sb-sig i:nth-child(2){height:6px;opacity:.6}.sb-sig i:nth-child(3){height:8px}.sb-sig i:nth-child(4){height:11px}
.sb-bat{background:#fff;color:var(--teal);border-radius:4px;font-size:11px;padding:0 4px;line-height:14px}

/* ---------- header ---------- */
.top{flex:none;display:flex;align-items:center;justify-content:space-between;padding:12px 20px 20px;color:#fff}
.user{display:flex;align-items:center;gap:12px;min-width:0}
.avatar{width:48px;height:48px;border-radius:10px;background:var(--avatar);display:grid;place-items:center}
.avatar svg{width:24px;height:24px;fill:none;stroke:#0d2a33;stroke-width:2}
.uname{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.demo-chip{font-size:10px;font-weight:800;letter-spacing:.08em;background:#f2d21b;color:#111;border-radius:6px;padding:2px 6px}
.bell{width:48px;height:48px;border-radius:10px;border:0;background:var(--bell);display:grid;place-items:center;cursor:pointer}
.bell svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linejoin:round}

/* ---------- sheet ---------- */
.sheet{flex:1 1 auto;min-height:0;background:var(--bg);border-radius:28px 28px 0 0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;outline:none}
#view{padding:22px 18px calc(var(--nav-h) + 40px + var(--safe-b))}
h1,h2,h3{margin:0}
.h-page{font-size:21px;font-weight:700;margin-bottom:16px}
.lbl{display:block;font-weight:700;font-size:15px;margin-bottom:8px}
.search{position:relative;margin-bottom:18px}
.search input{width:100%;height:56px;border:1px solid #8f9a9e;border-radius:8px;background:#fff;padding:0 48px 0 16px;font-size:17px;color:var(--ink);-webkit-appearance:none;appearance:none}
.search input::placeholder{color:#7b8387}
.search input:focus{outline:2px solid var(--link);outline-offset:1px}
.search svg{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:none;stroke:#3b8aa6;stroke-width:2;pointer-events:none}
.list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.ccard{width:100%;min-height:86px;display:flex;align-items:center;gap:10px;text-align:left;background:var(--card);border:0;border-radius:10px;padding:14px 16px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ccard:active{background:#eef3f4}
.ccard .t{flex:1;min-width:0}
.ccard .n{font-size:16px;margin-bottom:8px}
.ccard .chev{width:18px;height:18px;flex:none;fill:none;stroke:#222;stroke-width:2}
.badge{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15.5px}
.dot{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:none}
.dot svg{width:14px;height:14px;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.l-black .dot{background:var(--black)}.l-black .dot svg{stroke:#fff}
.l-green .dot{background:var(--green)}.l-green .dot svg{stroke:#111}
.l-yellow .dot{background:var(--yellow)}.l-yellow .dot svg{stroke:#111}
.demo-tag{font-size:10.5px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:0 5px;margin-left:4px;letter-spacing:.03em}
.empty{background:#fff;border-radius:10px;padding:18px;color:var(--muted)}

/* ---------- detail ---------- */
.back{display:inline-block;color:var(--link);font-size:15px;text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:10px 0;margin:-10px 0 6px;cursor:pointer;min-height:44px}
.h-country{font-size:30px;font-weight:700;margin:6px 0 14px;letter-spacing:-.01em}
.detail .badge{margin-bottom:22px}
.map{position:relative;border-radius:10px;overflow:hidden;background:#e9e7e2;margin-bottom:18px;aspect-ratio:4/3.3}
.map svg{width:100%;height:100%}
.map .cap{position:absolute;right:0;bottom:0;background:rgba(255,255,255,.85);font-size:11px;padding:2px 6px;color:#333}
.box{background:#fff;border-radius:10px;padding:16px;margin-bottom:16px}
.box h2{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;margin-bottom:14px}
.box h2 svg{width:22px;height:22px;fill:none;stroke:var(--link);stroke-width:1.8}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{background:#f0f0f0;border-radius:10px;padding:16px 18px;min-height:118px;display:flex;flex-direction:column;justify-content:space-between;color:inherit;text-decoration:none}
.tile .k{font-size:15px}.tile .v{font-size:26px;font-weight:700}
.box p{margin:0 0 10px;font-size:15.5px;line-height:1.45}.box p:last-child{margin-bottom:0}
.kicker{font-size:13.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;margin-bottom:6px}
.muted{color:var(--muted)}
.ask{width:100%;min-height:52px;border:0;border-radius:12px;background:var(--teal);color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;margin:4px 0 16px}
.ask svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8}
.notice{border-left:4px solid var(--teal);}
.notice b{color:var(--teal)}
.hello{font-size:22px;font-weight:700;margin-bottom:4px}

/* ---------- floating bottom nav ---------- */
.nav{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(14px + var(--safe-b));z-index:20;display:flex;align-items:center;gap:4px;padding:6px;background:rgba(255,255,255,.96);border-radius:999px;box-shadow:0 6px 24px rgba(0,0,0,.16),0 0 0 1px rgba(0,0,0,.04);height:var(--nav-h);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.nav button{height:48px;min-width:52px;border:0;background:transparent;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;cursor:pointer;color:#1d1d1d;-webkit-tap-highlight-color:transparent}
.nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.nav svg.fill{fill:currentColor;stroke:none}
.nav span{display:none;font-weight:700;font-size:15px}
.nav button.on{background:var(--accent-bg);color:var(--accent)}
.nav button.on span{display:inline}
.nav button:focus-visible{outline:3px solid var(--link);outline-offset:1px}

.toast{position:absolute;left:16px;right:16px;bottom:calc(var(--nav-h) + 26px + var(--safe-b));z-index:21;background:#1d1d1d;color:#fff;border-radius:10px;padding:10px 14px;font-size:14px;opacity:0;transform:translateY(8px);transition:.25s;pointer-events:none}
.toast.show{opacity:1;transform:none}

/* ---------- mobile (primary target): full-screen app ---------- */
@media (max-width:480px){
  body{background:var(--teal)}
  .intro,.foot,.statusbar{display:none}
  .phone{margin:0;width:100%;padding:0;border-radius:0;background:none;box-shadow:none}
  .app{width:100%;height:100vh;height:100dvh;min-height:0;border-radius:0}
  .top{padding-top:calc(12px + var(--safe-t));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
}
@media (max-width:480px) and (max-height:600px){ .top{padding-bottom:12px} }
@media (min-width:481px) and (max-height:700px){ .intro{padding-top:8px;font-size:13px} .foot{display:none} .phone{margin-top:8px} .app{height:calc(100dvh - 60px)} }

/* ---------- Home Screen app (standalone): always full screen, under the translucent iOS status bar ---------- */
@media (display-mode:standalone),(display-mode:fullscreen){
  html,body{background:var(--teal);overscroll-behavior:none}
  .intro,.foot,.statusbar{display:none}
  .phone{margin:0;width:100%;padding:0;border-radius:0;background:none;box-shadow:none}
  .app{width:100%;height:100vh;height:100dvh;min-height:0;border-radius:0}
  .top{padding-top:calc(12px + var(--safe-t));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
}
html.standalone .intro,html.standalone .foot,html.standalone .statusbar{display:none}
html.standalone .phone{margin:0;width:100%;padding:0;border-radius:0;background:none;box-shadow:none}
html.standalone .app{width:100%;height:100vh;height:100dvh;min-height:0;border-radius:0}
html.standalone .top{padding-top:calc(12px + var(--safe-t))}
/* home indicator: keep the floating bar clear of it (min 8px even when the inset is 0) */
.nav{bottom:max(14px,calc(6px + var(--safe-b)))}
.toast{bottom:calc(var(--nav-h) + 26px + var(--safe-b))}

/* ---------- Kwizmo plugin (kwizmo.js) placed inside the app; values come from lastovka.js ---------- */
html body #kwizmo_icon{left:auto!important;top:auto!important;right:var(--kw-icon-r,50px)!important;bottom:var(--kw-icon-b,100px)!important}
html body #KwizmoForm{position:fixed!important;left:var(--kw-l,auto)!important;right:auto!important;top:var(--kw-t,auto)!important;bottom:auto!important;width:var(--kw-w,400px)!important;height:var(--kw-h,580px)!important;max-width:none!important;max-height:none!important}
html body #KwizmoForm.kwizmo_hide{pointer-events:none!important;visibility:hidden!important}
html body #kwizmo_cloud{max-width:min(240px,var(--kw-w,240px))}
html.kw-open #kwizmo_icon,html.kw-open #kwizmo_cloud{visibility:hidden!important}
html.kw-open .nav button.on:not(#nav-chat) span{display:none}
