/* Plovoucí prvky nad fotkou: hlavička jako na naprimone.cz (průhledná, uprostřed bílá záložka menu),
   úvodní panel se šikmým řezem, lišta podlaží (pásy jako ikona loga), spodní dok a zdroje dat. */
.app { position: fixed; inset: 0; overflow: hidden; }

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--hdr); padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr__brand {
  display: inline-flex; align-items: baseline; gap: 12px; color: #fff; text-decoration: none;
  text-shadow: 0 1px 12px rgba(7, 25, 58, .45);
}
.hdr__name { font: 400 23px/1 var(--f-display); text-transform: uppercase; }
.hdr__sub { padding-left: 12px; border-left: 2px solid var(--gold); font-size: 14px; font-weight: 700; line-height: 1; }
.hdr__tab {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); height: 62px; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 40px; padding: 0 56px 4px;
  filter: drop-shadow(0 8px 18px rgba(7, 25, 58, .14));
}
.hdr__tab-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: #fff; }
.hdr__tab a { position: relative; padding: 8px 0; font-size: 15px; text-decoration: none; }
.hdr__tab a:hover { color: var(--gold-t); }
.hdr__tab a.is-active { font-weight: 700; }
.hdr__tab a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.hdr__phone {
  display: flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-size: 18px; text-decoration: none;
  text-shadow: 0 1px 12px rgba(7, 25, 58, .5);
}
.hdr__phone svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.9; stroke-linejoin: round; }
.hdr__phone b { font-weight: 800; }
.hdr__m { display: none; }

/* menu má 7 položek jako naprimone.cz: záložka se zužuje s oknem, pod 1160 px se schová do tlačítka (jako na mobilu) */
@media (max-width: 1400px) {
  .hdr__tab { gap: 24px; padding: 0 44px 4px; }
  .hdr__tab a { font-size: 14px; }
}
@media (max-width: 1240px) {
  .hdr__tab { gap: 16px; padding: 0 36px 4px; }
  .hdr__tab a { font-size: 13.5px; }
}
@media (max-width: 1159px) {
  .hdr__tab, .hdr__phone { display: none; }
  .hdr__m { position: relative; display: flex; gap: 8px; }
  .hdr__m .icon-btn { width: 44px; height: 44px; box-shadow: var(--sh-1); }
  .hdr__menu {
    position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px; display: grid; background: #fff;
    border-radius: var(--r-lg); box-shadow: var(--sh-2);
  }
  .hdr__menu a { padding: 12px 14px; border-radius: 10px; font-size: 15px; text-decoration: none; }
  .hdr__menu a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
}

/* úvodní panel: bílá plocha se šikmou pravou hranou a zlatým proužkem podél řezu */
.intro {
  position: absolute; left: 0; top: calc(var(--hdr) + 6px); z-index: 20; width: 520px;
  background: var(--gold); clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
  filter: drop-shadow(0 10px 22px rgba(7, 25, 58, .1)); transition: transform .6s var(--ease), opacity .4s;
}
.intro__in {
  position: relative; padding: 18px 84px 26px 32px; background: #fff;
  clip-path: polygon(0 0, calc(100% - 6px) 0, calc(100% - 70px) 100%, 0 100%);
}
.intro__title { margin: 6px 0 8px; font: 400 44px/1.02 var(--f-display); }
.intro__lead { margin: 0; max-width: 380px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.intro__cta { margin-top: 16px; display: flex; align-items: center; gap: 20px; }
.intro__lists { margin-top: 8px; }
.app:not([data-view="overview"]) .intro { transform: translateX(-105%); opacity: 0; pointer-events: none; }

/* lišta podlaží: pásy jako ikona loga, 4.NP užší (ustoupené podlaží), volné byty u každého */
.rail {
  position: absolute; right: 24px; top: 50%; z-index: 20; width: var(--rail-w); transform: translateY(-46%);
  padding: 14px 14px 12px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2);
  transition: transform .6s var(--ease), opacity .4s;
}
.rail__title { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gold-t); }
.ico-floors { width: 20px; height: 16px; fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; }
.rail__all { width: 100%; min-height: 36px; margin-bottom: 8px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.rail__all[aria-pressed="true"] { background: var(--sky-2); color: var(--navy); }
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.fl {
  position: relative; isolation: isolate; width: 100%; height: 48px; padding: 0 14px 0 16px;
  display: flex; align-items: center; justify-content: space-between; text-align: left;
}
.fl::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sky-2); box-shadow: inset 0 0 0 1px var(--line);
  transform: skewX(-12deg); transition: background .2s;
}
.fl.is-top::before { left: 16px; right: 4px; }
.fl:hover::before { background: var(--sky); }
.fl .num { font-size: 19px; line-height: 1; }
.fl small { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.fl small b { font-size: 15px; color: var(--free); }
.fl[aria-pressed="true"]::before { background: var(--gold); box-shadow: none; }
.fl[aria-pressed="true"] small, .fl[aria-pressed="true"] small b { color: var(--navy); }
.fl.is-zero small b { color: var(--ink-3); }
.fl:disabled { cursor: default; color: var(--ink-3); }
.fl:disabled::before { background: transparent; }
.app[data-view="card"] .rail, .app[data-view="list"] .rail { transform: translate(140%, -46%); opacity: 0; pointer-events: none; }

/* spodní dok: bílá karta vyrůstající ze spodní hrany jako statistiky pod hero na webu */
.dock {
  position: absolute; left: 32px; bottom: 0; z-index: 20; min-height: 80px; padding: 0 14px 0 20px;
  display: flex; align-items: center; gap: 18px; background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-2); transition: transform .6s var(--ease), opacity .4s;
}
.dock__sep { width: 1px; height: 36px; background: var(--line); }
.dock__label { margin-right: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); }
.dock .chips { flex-wrap: nowrap; }
.app:not([data-view="overview"]) .dock { transform: translateY(110%); opacity: 0; pointer-events: none; }
.spinctl { display: flex; align-items: center; gap: 8px; }
.spin-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .2s, color .2s; }
.spin-btn:hover { background: var(--navy); color: #fff; box-shadow: none; }
.spin-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.spinctl__compass { width: 42px; height: 42px; }
.compass { width: 100%; height: 100%; display: block; }
.compass__ring { fill: var(--sky-2); stroke: var(--line-2); }
.compass__needle { transition: transform .4s var(--ease); }
.compass__needle path { fill: var(--gold); }
.compass text { font: 800 10px var(--f-ui); fill: var(--navy); }
.spinctl__txt { display: flex; flex-direction: column; margin-left: 6px; line-height: 1.25; }
.spinctl__txt b { font-size: 14px; white-space: nowrap; }
.spinctl__txt span { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

.credits {
  position: absolute; right: 16px; bottom: 12px; z-index: 15; max-width: 380px; margin: 0; padding: 5px 11px; text-align: right;
  font-size: 11px; font-weight: 600; line-height: 1.45; color: #fff; background: rgba(7, 25, 58, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 10px; transition: opacity .3s;
}
.credits .cr-note { display: block; text-wrap: balance; }
.app[data-view="card"] .credits, .app[data-view="list"] .credits { opacity: 0; pointer-events: none; }

@media (max-width: 1400px) {
  .spinctl__txt span { display: none; }
  .dock__label { display: none; }
  .credits { max-width: 310px; font-size: 10px; }
}
@media (max-width: 1180px) {
  .dock { left: 16px; gap: 12px; }
  .dock__label, .spinctl__txt { display: none; }
  .intro { width: 470px; }
  .intro__title { font-size: 38px; }
  .credits { max-width: 240px; }
}
