/* Panely: karta bytu a seznam vpravo, podlaží vlevo. Bílé, vzdušné, velká čísla Righteous. */
.panel {
  position: absolute; top: calc(var(--hdr) + 8px); bottom: var(--gap); z-index: 30; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--sh-2); overflow-y: auto; overscroll-behavior: contain; visibility: hidden;
  transition: transform .7s var(--ease), visibility 0s .7s; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.panel--card { right: var(--gap); width: var(--card-w); transform: translateX(calc(100% + 40px)); }
.panel--list { right: var(--gap); width: var(--list-w); transform: translateX(calc(100% + 40px)); }
.panel--floor { left: var(--gap); width: var(--floor-w); transform: translateX(calc(-100% - 40px)); }
.app[data-view="card"] .panel--card, .app[data-view="list"] .panel--list, .app[data-view="floor"] .panel--floor {
  transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s;
}
/* karta nad seznamem: seznam zůstává otevřený pod ní (Zpět na seznam) */
.app[data-view="card"] .panel--list { visibility: hidden; }

.p-top {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 8px 28px; background: linear-gradient(#fff 72%, rgba(255, 255, 255, 0));
}
.p-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.p-back:hover { color: var(--navy); }
.p-back svg, .p-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p-x { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sky-2); }
.p-x:hover { background: var(--sky); }
.p-body { padding: 0 30px 28px 32px; }

/* karta bytu */
.c-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.c-title h2 { margin: 0; font-size: 56px; line-height: .95; }
.c-title h2 span { display: block; margin-bottom: 8px; font: 700 13px/1 var(--f-ui); color: var(--ink-3); }
.c-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; margin: 0; padding: 18px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dd { margin: 0; font-size: 24px; line-height: 1.05; white-space: nowrap; }
.facts dt { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--gold-t); }
.c-garden { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.c-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 16px; }
.c-price .num { font-size: 36px; line-height: 1; white-space: nowrap; }
.c-price small { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink-3); text-align: right; }
.c-media { position: relative; display: block; height: 196px; border-radius: var(--r-lg); overflow: hidden; color: var(--navy); text-decoration: none; }
.c-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.c-media:hover img { transform: scale(1.04); }
.c-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(7, 25, 58, 0) 45%, rgba(7, 25, 58, .35)); }
.c-media__tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; }
.c-media__cta { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; justify-content: flex-start; }
.c-media__cta > svg:last-child { margin-left: auto; }
.c-soon { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--sky-2); box-shadow: inset 0 0 0 1px var(--line); }
.c-soon > svg { width: 30px; height: 30px; margin-top: 2px; fill: none; stroke: var(--gold-d); stroke-width: 1.8; stroke-linecap: round; }
.c-soon b { display: block; margin-bottom: 4px; font: 400 19px/1.2 var(--f-display); }
.c-soon p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.c-similar { margin: 12px 2px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.c-row { display: flex; gap: 12px; margin-top: 14px; }
.c-row .btn { flex: 1; min-height: 46px; padding: 0 14px; font-size: 14px; }
.kp { margin: 20px 0 0; padding: 14px 16px 12px; background: var(--sky-2); border-radius: var(--r-lg); }
.kp__head { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); }
.c-sun { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.c-sun svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--gold-d); stroke-width: 1.8; stroke-linecap: round; }
.c-call { display: flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.c-call svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-d); stroke-width: 1.9; stroke-linejoin: round; }
.c-call b { margin-left: auto; font-weight: 800; }
.c-call:hover span { color: var(--gold-t); }
.c-note { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); }

/* klíčový plán (SVG z keyplan.js) na světlém podkladu */
.keyplan { position: relative; margin-top: 6px; }
.plan { display: block; width: 100%; height: auto; max-height: 220px; }
.plan__outline { fill: #fff; stroke: #B9C6D9; stroke-width: .12; }
.plan__core { fill: #EEF1F6; stroke: #C9D3E3; stroke-width: .08; }
.plan__outdoor { stroke: #C3CEDF; stroke-width: .06; }
.plan__unit { fill: #fff; stroke: #AEBBD0; stroke-width: .09; transition: fill .2s; }
.plan__unit.is-other.is-reserved, .plan--floor .plan__unit.is-reserved { fill: #F6ECEC; }
.plan__unit.is-key { fill: var(--navy); stroke: var(--navy); }
.plan__unit.is-key-tour, .plan--floor .plan__unit.is-tour { fill: var(--gold); stroke: #B88E05; }
.plan__outdoor.is-key { fill: #8A97AE; }
.plan__outdoor.is-key-tour { fill: #EDCB5A; }
.plan__hatch { pointer-events: none; }
.plan__label { font: 700 var(--plan-fs, 0.9px) var(--f-ui); fill: var(--navy); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.plan--floor .plan__unit { cursor: pointer; }
.plan--floor .plan__unit.is-free { fill: #EAF4ED; }
.plan--floor .plan__unit:hover, .plan--floor .plan__unit.is-hover { fill: #D9E5FB; stroke: var(--navy); stroke-width: .16; }
.plan--floor .plan__unit.is-tour:hover, .plan--floor .plan__unit.is-tour.is-hover { fill: #EBC33C; }
.north { position: absolute; right: 0; top: 0; display: inline-flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 800; color: var(--navy); }
.north svg { fill: var(--gold-d); }

/* seznam bytů */
.l-head { padding: 0 30px 0 32px; }
.l-head h2 { margin: 0; font: 400 40px/1 var(--f-display); }
.l-count { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.l-count b { color: var(--free); }
.l-filters { display: grid; gap: 10px; padding: 18px 30px 14px 32px; }
.grp { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; }
.grp > span { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); }
.row2 { display: flex; align-items: center; justify-content: space-between; }
.l-clear { min-height: 44px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.l-table { padding: 0 18px 18px 20px; }
.l-cols, .l-row { display: grid; grid-template-columns: 1.6fr .75fr 1fr 1.1fr 1.3fr; align-items: center; gap: 8px; padding: 0 14px; }
.l-cols { position: sticky; top: 64px; z-index: 2; height: 40px; background: #fff; border-bottom: 1px solid var(--line-2); }
.l-col { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); text-align: left; }
.l-col:last-child { justify-content: flex-end; }
.l-col.is-sort { color: var(--navy); }
.l-col.is-sort::after { content: ''; border: 5px solid transparent; border-bottom: 6px solid var(--gold); border-top: 0; }
.l-col.is-sort.is-desc::after { border-bottom: 0; border-top: 6px solid var(--gold); }
.l-list { list-style: none; margin: 0; padding: 0; }
.l-row { width: 100%; min-height: 64px; text-align: left; border-bottom: 1px solid var(--line); border-radius: 12px; transition: background .15s; }
.l-row:hover, .l-row.is-hover { background: var(--sky-2); }
.l-row.is-selected { box-shadow: inset 0 0 0 2px var(--navy); }
.l-id { display: flex; flex-direction: column; gap: 3px; }
.l-id b { display: flex; align-items: center; gap: 8px; font-size: 21px; line-height: 1; }
.l-id small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.l-disp { font-size: 15px; font-weight: 700; }
.l-area { font-size: 17px; white-space: nowrap; }
.l-price { font-size: 18px; text-align: right; white-space: nowrap; }
.l-row.is-reserved .l-price, .l-row.is-reserved .l-area, .l-row.is-reserved .l-id b { color: #55617A; }
.l-row.is-tour { box-shadow: inset 3px 0 0 var(--gold); background: linear-gradient(90deg, var(--gold-wash), #fff 60%); }
.l-row.is-tour:hover, .l-row.is-tour.is-hover { background: linear-gradient(90deg, #F7E6A8, var(--sky-2) 60%); }
.l-empty { padding: 36px 20px; text-align: center; color: var(--ink-2); }
.l-foot { margin: 0; padding: 0 32px 26px; font-size: 12px; color: var(--ink-3); }

/* panel podlaží */
.f-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 14px; }
.f-title h2 { margin: 6px 0 0; font-size: 56px; line-height: .9; }
.f-sum { margin: 0 0 4px; font-size: 14px; font-weight: 700; line-height: 1.45; text-align: right; }
.f-sum span { font-weight: 600; color: var(--ink-2); }
.f-match {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px;
  padding: 8px 8px 8px 14px; border-radius: var(--r-md); background: var(--gold-wash); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.f-match__x { min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: underline; }
.f-match__x:hover { background: rgba(255, 255, 255, .7); }
.f-tabs { margin-bottom: 12px; }
.f-plan { position: relative; padding: 14px 12px 10px; background: var(--sky-2); border-radius: var(--r-md); }
.f-plan .plan { max-height: 240px; }
.f-plan .north { right: 10px; top: 8px; }
.f-legend { display: flex; gap: 16px; margin: 10px 2px 0; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ''; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(7, 25, 58, .2); }
.lg--free::before { background: #EAF4ED; }
.lg--reserved::before { background: repeating-linear-gradient(-45deg, #E1C2C2 0 2px, #F6ECEC 2px 5px); }
.lg--tour::before { background: var(--gold); }
.f-units { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.f-unit {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 11px 14px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: background .15s, box-shadow .15s;
}
.f-unit:hover, .f-unit.is-hover { background: var(--sky-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.f-unit b { display: flex; align-items: center; gap: 8px; font-size: 19px; line-height: 1.1; }
.f-unit__price { font-size: 17px; text-align: right; white-space: nowrap; }
.f-unit small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.f-unit .status { justify-self: end; font-size: 12px; }
.f-unit.is-tour { box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px var(--line); }
.f-unit.is-dim { opacity: .5; }
.plan .is-dim { opacity: .45; }
.f-unit__away { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.f-unit__away svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
