/* Základ: reset, písmo, tlačítka se šikmým řezem, čipy jako pásy loga, stavy bytů, přepínač, fokus. */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
/* bez přiblížení stránky: dotyky smí jen posouvat (žádný dvojklep ani sevření prsty), plátno spinu má none */
* { touch-action: pan-x pan-y; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stage-bg); color: var(--navy);
  font: 400 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; }
svg { flex: none; }
.num { font-family: var(--f-display); font-weight: 400; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* fokus: dvoubarevný (navy uvnitř, zlatá vně), zlatá sama má na bílé jen 2 : 1 */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px var(--gold); }
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.eyebrow { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gold-t); }

/* Tlačítka: hranatá (radius 0), plné zlaté se šikmou pravou hranou (STYLE 4) */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; text-decoration: none; white-space: nowrap; font: 700 15px/1 var(--f-ui);
  color: var(--navy); transition: color .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--gold { padding-right: 38px; }
.btn--gold::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold); clip-path: var(--cut); transition: background .2s; }
.btn--gold:hover::before { background: #E8BA1B; }
.btn--gold > svg:last-child { transition: transform .25s var(--ease); }
.btn--gold:hover > svg:last-child { transform: translateX(3px); }
.btn--gold .count { padding-left: 10px; margin-left: 2px; border-left: 1.5px solid rgba(7, 25, 58, .28); font-size: 17px; line-height: 1; }
.btn--line { box-shadow: inset 0 0 0 2px var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 16px; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14px; text-decoration: none; }
.link:hover { color: var(--gold-t); }
/* odkazy na seznamy bytů na naprimone.cz (controls.js listPages) */
.weblists { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.weblists a { display: inline-block; padding: 6px 0; font-weight: 700; color: var(--navy); text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 3px; }
.weblists a:hover { color: var(--gold-t); }
.link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--gold { background: var(--gold); }

/* Čipy: rovnoběžníky jako pásy loga; stisknutý navy, počet zlatě */
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip {
  position: relative; isolation: isolate; min-height: 36px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sky-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transform: skewX(-14deg); transition: background .2s;
}
.chip:hover::before { background: var(--sky); }
.chip[aria-pressed="true"] { color: #fff; }
.chip[aria-pressed="true"]::before { background: var(--navy); box-shadow: none; }
.chip small { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.chip[aria-pressed="true"] small { color: var(--gold); }
.chip.is-zero { opacity: .55; }
.chip small.fc { display: inline-flex; align-items: center; gap: 4px; color: var(--free); }
.chip small.fc::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip[aria-pressed="true"] small.fc { color: var(--gold); }

/* Stav: tečka + text, rezervace se šrafou (barva nikdy není jediný nositel informace) */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status--free { color: var(--free); }
.status--reserved, .status--sold { color: var(--res); }
.status--reserved::before, .status--sold::before {
  width: 10px; height: 10px; background: repeating-linear-gradient(-45deg, currentColor 0 2px, transparent 2px 4px);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.status--unknown { color: var(--ink-3); }
.status--pill { padding: 5px 12px 5px 10px; border-radius: 99px; background: #EAF5EE; }
.status--pill.status--reserved, .status--pill.status--sold { background: #F8ECEC; }
.tag3d {
  display: inline-flex; align-items: center; height: 20px; padding: 0 10px 0 7px; background: var(--gold); color: var(--navy);
  font: 800 11px/1 var(--f-ui); clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.tag3d--lg { height: 28px; padding: 0 14px 0 10px; font-size: 12.5px; }

/* Přepínač „Jen volné“: dotyková plocha 44 px */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.switch i { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(7, 25, 58, .3); transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] i { background: var(--navy); }
.switch[aria-checked="true"] i::after { transform: translateX(16px); background: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-2); font-size: 14px;
}
.toast__text { margin: 0; }
.toast__close { width: 32px; height: 32px; border-radius: 50%; color: var(--ink-3); }
.fatal { position: absolute; inset: 0; z-index: 80; display: grid; place-content: center; gap: 16px; text-align: center; background: var(--sky-2); }
.noscript { position: fixed; inset: auto 16px 16px; padding: 16px; background: #fff; }
