/* Панель плана этажа (вариант 04): тёмное стекло справа от дома, план белыми линиями, квартиры — розовым при наведении. */
.fplan{--fp-y:calc(-50% + 34px);position:absolute;z-index:18;top:50%;right:var(--pad);width:min(47vw,820px);max-height:calc(100vh - 150px);
  display:flex;flex-direction:column;padding:clamp(18px,2.4vh,28px) clamp(20px,2vw,32px) clamp(18px,2.4vh,26px);
  background:linear-gradient(155deg, rgba(26,38,88,.62), rgba(10,16,46,.74));
  -webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);will-change:transform,opacity;
  border:1px solid rgba(255,255,255,.14);border-radius:6px;box-shadow:0 30px 90px rgba(4,8,30,.45), inset 0 1px 0 rgba(255,255,255,.08);
  opacity:0;transform:translate(48px,var(--fp-y));pointer-events:none;visibility:hidden;
  transition:opacity .45s ease, transform .7s var(--ease), visibility 0s linear .7s}
.fplan.is-open{opacity:1;transform:translate(0,var(--fp-y));pointer-events:auto;visibility:visible;transition:opacity .6s ease .35s, transform .9s var(--ease) .3s, visibility 0s}

.fp__head{display:flex;align-items:flex-end;gap:20px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.14)}
.fp__num{display:flex;align-items:baseline;gap:10px;font-weight:800;line-height:.8}
.fp__num b{font-size:clamp(52px,6.4vh,76px);letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.fp__num small{font-size:11px;letter-spacing:.2em;text-transform:uppercase;opacity:.8}
.fp__meta{display:flex;flex-direction:column;gap:6px;padding-bottom:2px;min-width:0}
.fp__meta b{font-weight:800;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fp__meta span{font-size:12.5px;color:var(--muted)}
.fp__close{margin-left:auto;align-self:flex-start;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:none;color:#fff;cursor:pointer;
  display:grid;place-items:center;transition:background .25s, border-color .25s}
.fp__close:hover{background:rgba(255,255,255,.1);border-color:#fff}
.fp__close svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.6}

.fp__box{position:relative;flex:0 1 auto;min-height:0;margin:16px 0 14px;transition:opacity .18s ease}
.fplan.is-swap .fp__box{opacity:0}
.fp__box svg{display:block;width:100%;height:auto;max-height:calc(100vh - 340px);overflow:visible}
.fplan.is-empty .fp__box{min-height:220px}
.fplan.is-empty .fp__box svg{display:none}
.fp__under{opacity:.88;pointer-events:none}
.fp__flat{fill:rgba(255,255,255,0);stroke:rgba(255,255,255,0);stroke-width:1.4px;vector-effect:non-scaling-stroke;pointer-events:all;cursor:pointer;
  transition:fill .22s ease, stroke .22s ease}
.fp__flat.is-hover,.fp__link:focus-visible .fp__flat{fill:rgba(253,131,233,.38);stroke:#fd83e9}
.fp__link:focus{outline:none}
.fp__flat.is-sold{fill:rgba(128,134,150,.62);stroke:rgba(196,200,212,.55);cursor:default}
.fp__flat.is-sold.is-hover{fill:rgba(142,148,164,.72);stroke:rgba(222,225,234,.8)}
.fp__empty{display:none;position:absolute;inset:0;place-items:center;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
.fplan.is-empty .fp__empty{display:grid}
.fplan.is-empty .fp__foot{visibility:hidden}

/* подсказка у курсора */
.fp__tip{position:absolute;left:0;top:0;z-index:2;pointer-events:none;padding:10px 14px 11px;border-radius:4px;white-space:nowrap;
  background:rgba(12,18,48,.92);border:1px solid rgba(253,131,233,.6);box-shadow:0 12px 30px rgba(4,8,30,.4);opacity:0;transition:opacity .15s ease}
.fp__tip.is-on{opacity:1}
.fp__tip b{display:block;font-weight:800;font-size:14px}
.fp__tip span{display:block;margin-top:3px;font-weight:800;font-size:22px;letter-spacing:-.02em}
.fp__tip em{display:block;margin-top:6px;font-style:normal;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--pink)}
.fp__tip.is-sold{border-color:rgba(196,200,212,.55)}
.fp__tip em:empty{display:none}

.fp__foot{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.14)}
.fp__legend{display:flex;align-items:center;gap:16px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.fp__legend i{display:inline-block;width:10px;height:10px;margin-right:8px;vertical-align:-1px;border-radius:2px}
.fp__legend .is-free{background:rgba(253,131,233,.55);box-shadow:0 0 0 1px #fd83e9}
.fp__btn{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.fp__btn em{font-style:normal;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--pink);color:#2a1050;font-size:12px;font-weight:800;display:inline-grid;place-items:center}
.fp__btn em:empty{display:none}

/* в фокусе убираем всё, что спорит с планом; блок слева меняет текст на этаж (стили — в варианте) */
.is-focus .credits,.is-focus .facts,.is-focus .hint,.is-focus .floorinfo{opacity:0!important;pointer-events:none;transition:opacity .35s ease!important}
@media (max-width:1023px){ .fplan{display:none} }
