:root{
  --pink:#e50070;
  --pink-soft:#fff2f8;
  --ink:#17202c;
  --muted:#707784;
  --line:#e4e7eb;
  --bg:#f4f5f6;
  --panel:#fff;
  --sidebar:220px;
  --tower-grad-top:#ec0062;
  --tower-grad-mid:#c31773;
  --tower-grad-bottom:#6f2a83;
  --shadow:0 14px 38px rgba(24,31,42,.10);
}

*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}
button,input{font:inherit}button{cursor:pointer}

/* ---------- Fixed kiosk shell: the page itself never scrolls ---------- */
.app{
  width:100%;height:100dvh;min-height:0;
  display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);grid-template-rows:72px minmax(0,1fr);
  overflow:hidden;background:var(--bg);
}

.topbar{
  grid-column:1/3;grid-row:1;position:relative;isolation:isolate;z-index:30;
  display:grid;grid-template-columns:var(--sidebar) minmax(360px,700px) 1fr;align-items:center;gap:28px;
  height:72px;min-height:0;padding:7px 28px;background:#fff;border:0;
}
.topbar::before{
  content:"";position:absolute;z-index:-1;left:0;top:0;bottom:0;width:var(--sidebar);
  background:linear-gradient(180deg,var(--tower-grad-top),#db0a69);
}
.brand{display:flex;align-items:center;height:58px;text-decoration:none;position:relative;z-index:1;overflow:hidden}
.brand-logo{display:block;width:168px;max-width:calc(var(--sidebar) - 30px);height:auto;max-height:48px;object-fit:contain;filter:brightness(0) invert(1)}
.brand::after{content:"";position:absolute;left:0;right:12px;bottom:-7px;height:1px;background:rgba(255,255,255,.24)}
.search{
  height:44px;min-width:0;display:flex;align-items:center;gap:12px;padding:0 17px;
  background:#fff;border:1px solid #dfe4e8;border-radius:11px;box-shadow:0 5px 18px rgba(40,46,58,.055)
}
.search svg{width:18px;height:18px;fill:none;stroke:#27303b;stroke-width:1.8;flex:0 0 auto}
.search input{width:100%;height:100%;min-width:0;border:0;outline:0;background:transparent;color:#202832;font-size:13px;padding:0}
.search input::placeholder{color:#8a909a}
.header-actions{justify-self:end;display:flex;align-items:center}
.lang-btn{height:44px;min-width:64px;padding:0 14px;border:1px solid #dfe4e8;border-radius:10px;background:#fff;color:#17202c;font-weight:800}
.lang-btn span{font-size:11px;margin-left:4px}
.lang-menu{position:absolute;right:28px;top:60px;width:82px;display:none;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);z-index:50}
.lang-menu.open{display:grid}.lang-menu button{border:0;background:#fff;padding:8px;border-radius:8px;font-weight:800}.lang-menu button:hover{background:#f5f6f8}

/* ---------- Left rail ---------- */
.sidebar{
  grid-column:1;grid-row:2;min-height:0;overflow:hidden;
  display:flex;flex-direction:column;padding:15px 13px 14px;
  background:linear-gradient(180deg,#db0a69 0%,var(--tower-grad-mid) 44%,#9f247d 69%,var(--tower-grad-bottom) 100%);
  color:#fff;
}
.floor-panel.card-lite{background:transparent;border:0;padding:0;margin:0}
.eyebrow{margin:0;padding:12px 14px 10px;font-size:10px;font-weight:900;letter-spacing:.055em;color:#fff}
.floors{display:grid;gap:0}
.floors button{
  position:relative;height:54px;padding:0 16px;display:flex;align-items:center;gap:12px;
  border:0;border-bottom:1px solid rgba(255,255,255,.13);border-radius:0;background:transparent;
  color:rgba(255,255,255,.95);font-size:14px;font-weight:760;text-align:left;transition:background .16s ease
}
.floors button:last-child{border-bottom:0}.floors button:hover{background:rgba(255,255,255,.055)}
.floors button.is-unavailable,.floors button:disabled{opacity:.46;cursor:not-allowed}.floors button.is-unavailable:hover,.floors button:disabled:hover{background:transparent}

.floor-icon{width:23px;height:23px;display:grid;place-items:center;flex:0 0 23px;color:inherit}.floor-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.floors button.active{background:rgba(255,255,255,.085);box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}
.floors button.active::after{content:"";position:absolute;right:3px;top:9px;bottom:9px;width:3px;border-radius:3px;background:rgba(255,255,255,.9)}

.sidebar-presence{margin:8px 5px 0;padding:17px 10px 8px;color:#fff;min-height:0}
.presence-location{display:grid;gap:5px}.presence-kicker,.handoff-kicker{display:flex;align-items:center;gap:9px;font-size:9px;font-weight:900;letter-spacing:.045em;color:rgba(255,255,255,.96)}
.presence-kicker svg,.handoff-kicker svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.presence-location>strong{display:block;margin-left:27px;font-size:20px;line-height:1.08;color:#fff}.presence-place{margin-left:27px;font-size:10px;line-height:1.25;font-weight:650;color:rgba(255,255,255,.86)}
.presence-divider{height:1px;margin:14px 0;background:rgba(255,255,255,.23)}
.mobile-handoff{display:grid;justify-items:start;gap:7px}.handoff-kicker{font-size:8.5px}
.handoff-qr{display:block;margin-left:27px;padding:6px;background:#fff;border-radius:9px;box-shadow:0 8px 20px rgba(48,18,70,.12)}
.handoff-qr img{display:block;width:82px;height:82px;object-fit:contain}
.mobile-handoff p{margin:0 0 0 27px;max-width:145px;font-size:8.5px;line-height:1.35;color:rgba(255,255,255,.91)}
.v5-handoff-route{margin-left:27px!important;max-width:150px!important}

/* ---------- Main workspace ---------- */
.workspace{grid-column:2;grid-row:2;position:relative;min-width:0;min-height:0;overflow:hidden;background:var(--bg)}
.map-stage{position:absolute;inset:0;min-width:0;min-height:0;overflow:hidden}
.map-slot{position:absolute;inset:0;border:0;border-radius:0;background:transparent;overflow:hidden;isolation:isolate}

.overlay-card{background:rgba(255,255,255,.965);border:1px solid #e5e8ec;box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.route-card{position:absolute;right:18px;top:18px;width:215px;border-radius:18px;padding:14px 12px;z-index:20}
.overlay-title{font-size:9px;font-weight:900;color:#5e6570;margin:0 7px 9px;letter-spacing:.04em}.route-option{width:100%;height:58px;border:0;background:transparent;border-radius:11px;display:grid;grid-template-columns:28px 1fr 14px;align-items:center;text-align:left;gap:4px;color:#28313b}.route-option.active{background:#fff4f8}.route-option .route-icon{font-size:20px;color:#4b5561}.route-option.active .route-icon,.route-option.active strong{color:var(--pink)}.route-option strong{display:block;font-size:10px}.route-option small{display:block;font-size:9px;color:#7c838d;margin-top:3px}.route-option b{font-size:21px;font-weight:400;color:#727a84}
.map-tools{position:absolute;right:18px;top:50%;transform:translateY(-50%);display:grid;gap:10px;z-index:20}.map-tools button{width:48px;height:48px;border-radius:14px;border:1px solid #e3e6ea;background:#fff;box-shadow:0 7px 20px rgba(25,32,42,.08);font-size:24px;color:#18212b}

/* ---------- Bottom kiosk blocks ---------- */
.category-bar,.info-strip,.promo-card{position:absolute;margin:0;z-index:18}
.category-bar{
  left:18px;bottom:82px;width:calc(100% - 560px);height:74px;padding:0 8px;
  display:grid;grid-template-columns:repeat(10,minmax(0,1fr));overflow:hidden;
  background:rgba(255,255,255,.97);border:1px solid #e5e8ec;border-radius:17px;box-shadow:0 10px 28px rgba(33,39,50,.09)
}
.category-bar button{position:relative;min-width:0;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:7px 3px;color:#202a34;white-space:nowrap}
.category-bar button:not(:last-child)::after{content:"";position:absolute;right:0;top:12px;bottom:12px;width:1px;background:#e7eaee}
.category-bar button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.category-bar button span{font-size:9.5px;font-weight:760}.category-bar button:hover,.category-bar button.is-active{background:#fafbfc}

.info-strip{
  left:18px;bottom:10px;width:calc(100% - 560px);height:60px;
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;
  background:rgba(255,255,255,.97);border:1px solid #e5e8ec;border-radius:16px;box-shadow:0 10px 28px rgba(33,39,50,.07)
}
.info-strip>div{position:relative;display:flex;align-items:center;gap:10px;padding:8px 12px;min-width:0}.info-strip>div:not(:last-child)::after{content:"";position:absolute;right:0;top:12px;bottom:12px;width:1px;background:#e8ebee}
.info-icon{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;flex:0 0 31px;background:#f1f4f6;color:#27343d}.info-icon.pink{background:#fff0f6;color:var(--pink)}.info-icon.blue{background:#eef5ff;color:#2f6fdb}.info-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.info-strip p{display:grid;gap:4px;margin:0;min-width:0}.info-strip small{font-size:8px;line-height:1;color:#737b86}.info-strip strong{font-size:9.5px;line-height:1.15;color:#202a34;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.promo-card{
  right:18px;bottom:10px;width:510px;height:146px;display:grid;grid-template-columns:42% 58%;overflow:hidden;
  background:linear-gradient(135deg,#fff 0%,#fff9fb 52%,#f9f4ff 100%);color:#162739;border:1px solid rgba(216,211,220,.82);border-radius:13px;box-shadow:0 12px 28px rgba(58,42,65,.11)
}
.promo-media{height:100%;min-width:0;overflow:hidden;background:#f5f5f5}.promo-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transform:none}.promo-panel{height:100%;min-width:0;display:grid;grid-template-rows:30px minmax(0,1fr) 24px;position:relative}.promo-header{display:flex;align-items:center;height:auto;padding:0 12px;font-size:9px;font-weight:900;letter-spacing:.07em;color:#63566a}.promo-header::after{content:"";width:22px;height:2px;border-radius:2px;background:var(--pink);margin-left:7px}.promo-copy{min-height:0;padding:5px 12px 4px;display:flex;flex-direction:column;align-items:flex-start}.promo-copy strong{font-size:18px;line-height:1.01;color:#1d3146;margin:0 0 6px;letter-spacing:-.01em}.promo-copy p{font-size:9.5px;line-height:1.25;color:#505965;margin:0 0 4px}.promo-date{display:block;font-size:7.5px;line-height:1.15;color:#8b9098;margin:0 0 5px}.promo-copy button{margin-top:auto;min-height:28px;padding:7px 10px;border:0;border-radius:8px;background:linear-gradient(135deg,#f72b70,var(--pink));color:#fff;font-size:8px;font-weight:900}.promo-dots{height:24px;display:flex;align-items:center;justify-content:center;gap:6px}.promo-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#d5ced8}.promo-dot.active{width:20px;border-radius:999px;background:var(--pink)}

/* ---------- Modal ---------- */
.modal{border:0;padding:0;background:transparent}.modal::backdrop{background:rgba(16,22,30,.35);backdrop-filter:blur(3px)}.modal-card{position:relative;width:min(460px,calc(100vw - 32px));padding:28px;border:1px solid #e3e7ea;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(20,30,40,.2)}.modal-card h2{margin:5px 0 8px}.modal-card p{margin:0;color:#68747d;line-height:1.5}.modal-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:0;border-radius:50%;background:#f1f3f5;font-size:22px;color:#65717a}.modal-spark{color:var(--pink);font-size:20px}

/* ---------- Desktop density ---------- */
@media (max-width:1500px) and (min-width:981px){
  :root{--sidebar:210px}
  .topbar{grid-template-columns:var(--sidebar) minmax(340px,650px) 1fr;gap:20px;padding-inline:20px}.brand-logo{width:155px}.floors button{height:51px;font-size:13px}.eyebrow{font-size:9.5px}.sidebar-presence{padding-top:12px}.handoff-qr img{width:74px;height:74px}
  .category-bar{width:calc(100% - 450px);height:68px;bottom:76px}.info-strip{width:calc(100% - 450px);height:56px}.promo-card{width:408px;height:134px}.promo-copy strong{font-size:16px}.promo-copy p{font-size:8.5px}
}

/* ---------- Tablet/mobile shell ---------- */
@media (max-width:980px){
  html,body{height:auto;min-height:100%;overflow:auto}.app{height:auto;min-height:100dvh;grid-template-columns:1fr;grid-template-rows:64px auto minmax(620px,1fr);overflow:visible}
  .topbar{grid-column:1;grid-row:1;grid-template-columns:minmax(0,1fr) auto;padding:8px 12px;gap:10px;height:64px}.topbar::before{display:none}.brand{display:none}.search{height:44px}.lang-btn{height:42px;min-width:58px}.lang-menu{top:57px;right:12px}
  .sidebar{grid-column:1;grid-row:2;display:block;overflow:visible;padding:8px 10px;background:linear-gradient(100deg,#db0a69,#8c267f)}.floor-panel{overflow:auto}.eyebrow{display:none}.floors{display:flex;overflow:auto}.floors button{height:42px;flex:0 0 auto;border-bottom:0;padding:0 12px}.floors button.active::after{left:10px;right:10px;top:auto;bottom:2px;width:auto;height:2px}.sidebar-presence{display:none}
  .workspace{grid-column:1;grid-row:3;position:relative;min-height:620px;overflow:hidden}.map-stage{position:absolute;inset:0}.category-bar{left:10px;right:10px;width:auto;bottom:132px;height:58px;display:flex;overflow:auto}.category-bar button{min-width:78px}.info-strip{display:none}.promo-card{left:10px;right:10px;width:auto;bottom:10px;height:112px}.route-card{top:10px;right:10px}.map-tools{right:10px}
}

@media (max-width:640px){
  .app{grid-template-rows:58px auto minmax(580px,1fr)}.topbar{height:58px}.header-actions{display:none}.search{height:42px}.workspace{min-height:580px}.promo-card{height:104px}.category-bar{bottom:122px}.promo-copy strong{font-size:14px}.promo-copy p{font-size:8px}.promo-date{display:none}
}


/* =========================================================
   CLEAN VIEWPORT FIT V1
   One-screen kiosk layout. Desktop shell is deliberately compact,
   while the locked map visual language stays untouched.
   ========================================================= */
@media (min-width:981px){
  html,body{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    overscroll-behavior:none;
  }
  body{
    position:fixed;
    inset:0;
  }
  .app{
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    min-height:0!important;
    grid-template-rows:60px minmax(0,1fr)!important;
    overflow:hidden!important;
  }
  .topbar{
    height:60px!important;
    min-height:60px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }
  .brand{height:48px!important}
  .brand-logo{max-height:40px!important}
  .search{height:40px!important}
  .lang-btn{height:40px!important;min-height:40px!important}
  .lang-menu{top:52px!important}

  .sidebar{
    min-height:0!important;
    padding-top:9px!important;
    padding-bottom:8px!important;
  }
  .eyebrow{padding-top:7px!important;padding-bottom:7px!important}
  .floors button{height:46px!important}
  .sidebar-presence{
    margin-top:5px!important;
    padding-top:9px!important;
    padding-bottom:3px!important;
  }
  .presence-location{gap:3px!important}
  .presence-location>strong{font-size:18px!important}
  .presence-divider{margin:9px 0!important}
  .mobile-handoff{gap:5px!important}
  .handoff-qr{padding:5px!important}
  .handoff-qr img{width:66px!important;height:66px!important}
  .mobile-handoff p{font-size:8px!important;line-height:1.25!important}

  .workspace,.map-stage,.map-slot{min-height:0!important;overflow:hidden!important}

  /* Bottom blocks occupy one compact 118 px band. */
  .category-bar{
    bottom:61px!important;
    height:54px!important;
    border-radius:15px!important;
  }
  .category-bar button{gap:4px!important;padding-top:4px!important;padding-bottom:4px!important}
  .category-bar button svg{width:20px!important;height:20px!important}
  .category-bar button span{font-size:8.8px!important}
  .info-strip{
    bottom:7px!important;
    height:47px!important;
    border-radius:14px!important;
  }
  .info-strip>div{padding-top:5px!important;padding-bottom:5px!important}
  .info-icon{width:27px!important;height:27px!important;flex-basis:27px!important}
  .info-icon svg{width:16px!important;height:16px!important}
  .info-strip p{gap:2px!important}
  .info-strip small{font-size:7px!important}
  .info-strip strong{font-size:8.7px!important}

  .promo-card{
    bottom:7px!important;
    height:108px!important;
  }
  .promo-panel{grid-template-rows:25px minmax(0,1fr) 18px!important}
  .promo-header{font-size:8px!important}
  .promo-copy{padding-top:3px!important;padding-bottom:2px!important}
  .promo-copy strong{font-size:15px!important;margin-bottom:4px!important}
  .promo-copy p{font-size:8px!important;line-height:1.18!important;margin-bottom:2px!important}
  .promo-date{font-size:7px!important;margin-bottom:2px!important}
  .promo-copy button{min-height:24px!important;padding:5px 8px!important}
  .promo-dots{height:18px!important}

  .route-card{top:14px!important}
}

/* Extra density only for genuinely short kiosk viewports. */
@media (min-width:981px) and (max-height:760px){
  .app{grid-template-rows:54px minmax(0,1fr)!important}
  .topbar{height:54px!important;min-height:54px!important;padding-top:4px!important;padding-bottom:4px!important}
  .brand{height:44px!important}.brand-logo{max-height:36px!important}
  .search,.lang-btn{height:38px!important;min-height:38px!important}
  .floors button{height:40px!important}
  .eyebrow{padding-top:4px!important;padding-bottom:4px!important}
  .sidebar-presence{padding-top:6px!important}
  .presence-location>strong{font-size:17px!important}
  .presence-divider{margin:6px 0!important}
  .handoff-qr img{width:54px!important;height:54px!important}
  .mobile-handoff p{display:none!important}

  .category-bar{bottom:55px!important;height:48px!important}
  .info-strip{height:42px!important}
  .promo-card{height:96px!important}
}


/* =========================================================
   PROMO RESTORE V3
   Keep the one-screen kiosk shell, but restore the desktop
   Aktualno u Toweru card to its intended visual size.
   ========================================================= */
@media (min-width:1501px){
  .promo-card{right:18px!important;bottom:10px!important;width:510px!important;height:146px!important;grid-template-columns:42% 58%!important}
  .promo-panel{grid-template-rows:30px minmax(0,1fr) 24px!important}
  .promo-header{font-size:9px!important;padding:0 12px!important}
  .promo-copy{padding:5px 12px 4px!important}
  .promo-copy strong{font-size:18px!important;line-height:1.01!important;margin-bottom:6px!important}
  .promo-copy p{font-size:9.5px!important;line-height:1.25!important;margin-bottom:4px!important}
  .promo-date{font-size:7.5px!important;margin-bottom:5px!important}
  .promo-copy button{min-height:28px!important;padding:7px 10px!important}
  .promo-dots{height:24px!important}
}
@media (min-width:981px) and (max-width:1500px){
  .promo-card{height:134px!important}
  .promo-panel{grid-template-rows:28px minmax(0,1fr) 22px!important}
}
