/* Vilevel (na bazie RealMap) Pro 3 — Eksplorator (styl „glass” inspirowany iOS) */
.rmf{
  --rmf-accent:#0a84ff;
  --st-available:#22c55e; --st-reserved:#f59e0b; --st-sold:#ef4444; --st-unavailable:#94a3b8; --st-stage:#7c8ba1;
  --g-bg:rgba(255,255,255,.62); --g-bg2:rgba(255,255,255,.78); --g-border:rgba(255,255,255,.7); --g-edge:rgba(15,23,42,.08);
  --g-shadow:0 10px 40px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.06);
  --text:#0f172a; --muted:#64748b; --soft:rgba(15,23,42,.05); --soft2:rgba(15,23,42,.08);
  --r-xl:28px; --r-l:20px; --r-m:14px;
  position:relative; color:var(--text); font:15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing:antialiased; letter-spacing:-.005em;
}
.rmf[data-theme="dark"]{
  --g-bg:rgba(28,30,38,.58); --g-bg2:rgba(36,39,48,.82); --g-border:rgba(255,255,255,.12); --g-edge:rgba(0,0,0,.3);
  --g-shadow:0 10px 40px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
  --text:#f1f5f9; --muted:#94a3b8; --soft:rgba(255,255,255,.06); --soft2:rgba(255,255,255,.1);
}
.rmf *, .rmf *::before, .rmf *::after{ box-sizing:border-box; }
.rmf button{ font:inherit; color:inherit; cursor:pointer; }
.rmf [hidden]{ display:none !important; }
/* czcionka wtyczki wymuszona wszędzie (motyw strony nie miesza krojów w nagłówkach, przyciskach i polach) */
.rmf{ --rmf-font:-apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif; }
.rmf:not([data-font="theme"]), .rmf:not([data-font="theme"]) *:not(svg):not(path), .rmf:not([data-font="theme"]) svg text{ font-family:var(--rmf-font) !important; }
.rmf h1, .rmf h2, .rmf h3, .rmf h4, .rmf h5, .rmf p, .rmf label, .rmf button, .rmf input, .rmf textarea, .rmf select, .rmf table, .rmf th, .rmf td, .rmf small, .rmf b{ letter-spacing:normal; text-shadow:none; }
.rmf h1, .rmf h2, .rmf h3, .rmf h4, .rmf h5{ margin-top:0; line-height:1.2; color:var(--text); text-transform:none; }
.rmf button, .rmf input, .rmf textarea, .rmf select{ text-transform:none; box-shadow:none; min-height:0; }
.rmf-i{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.rmf-muted{ color:var(--muted); } .rmf .sm{ font-size:13px; }

/* szkło */
.rmf-glass{
  background:var(--g-bg); border:1px solid var(--g-border);
  -webkit-backdrop-filter:blur(24px) saturate(180%); backdrop-filter:blur(24px) saturate(180%);
  box-shadow:var(--g-shadow), inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 .5px var(--g-edge);
}
.rmf[data-theme="dark"] .rmf-glass{ box-shadow:var(--g-shadow), inset 0 1px 0 rgba(255,255,255,.08); }

/* układ */
.rmf-main{ position:relative; display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:16px; align-items:start; }
/* szeroki ekran: mapa ma wysokość max 82vh, więc cały układ zwęża się do jej proporcji (bez pustej przerwy przed listą) */
.rmf-main, .rmf-tablewrap{ max-width:calc(82vh * var(--ratio-n, 1.6) + 376px); margin-left:auto; margin-right:auto; }
.rmf-stage{ position:relative; width:100%; border-radius:var(--r-xl); overflow:hidden; aspect-ratio:var(--ratio, 16/10); max-height:82vh; min-height:320px; background:#dfe6ee; box-shadow:0 20px 60px rgba(15,23,42,.18); isolation:isolate; }
.rmf[data-theme="dark"] .rmf-stage{ background:#1b1f27; }
.rmf-viewport{ position:absolute; inset:0; overflow:hidden; touch-action:pan-y; }
.rmf-stage.is-zoomed .rmf-viewport{ touch-action:none; cursor:grab; }
.rmf-canvas{ position:absolute; inset:0; transform-origin:0 0; transition:opacity .2s ease, filter .2s ease; will-change:transform; }
.rmf-canvas.is-out{ opacity:0; filter:blur(6px); }
.rmf-bg, .rmf-svg{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.rmf-bg{ object-fit:cover; user-select:none; -webkit-user-drag:none; }

/* kształty */
.rmf-shape{ --c:var(--st-available); fill:var(--c); fill-opacity:.18; stroke:var(--c); stroke-opacity:.9; stroke-width:1; vector-effect:non-scaling-stroke; cursor:pointer; outline:none;
  transition:fill-opacity .18s ease, stroke-width .18s ease, opacity .25s ease, filter .2s ease; }
.rmf-shape[data-st="available"]{ --c:var(--st-available); } .rmf-shape[data-st="reserved"]{ --c:var(--st-reserved); }
.rmf-shape[data-st="sold"]{ --c:var(--st-sold); } .rmf-shape[data-st="unavailable"]{ --c:var(--st-unavailable); } .rmf-shape[data-st="stage"]{ --c:var(--st-stage); }
.rmf-shape.k-floor, .rmf-shape.k-building{ fill-opacity:.08; stroke:#fff; stroke-opacity:.9; stroke-width:1.25; }
.rmf-shape.k-floor[data-st="sold"], .rmf-shape.k-building[data-st="sold"]{ --c:#94a3b8; }
/* wszystko sprzedane: czerwony, ale klikalny (portfolio) */
.rmf-shape.k-building[data-st="soldout"], .rmf-shape.k-floor[data-st="soldout"]{ --c:var(--st-sold); fill:var(--st-sold); fill-opacity:.22; stroke:var(--st-sold); }
/* kolejny etap: wyszarzony, bez wejścia */
.rmf-shape.k-building[data-st="stage"]{ --c:var(--st-stage); fill:var(--st-stage); fill-opacity:.35; stroke:#fff; stroke-dasharray:6 5; cursor:not-allowed; }
.rmf-shape.k-building[data-st="stage"]:hover{ fill-opacity:.45; filter:none; }
.rmf-badges{ pointer-events:none; }
.rmf-badge rect{ fill:rgba(15,23,42,.78); stroke:rgba(255,255,255,.35); stroke-width:1; }
.rmf-badge.b-soldout rect{ fill:rgba(185,28,28,.9); }
.rmf-badge text{ fill:#fff; font-weight:700; text-anchor:middle; dominant-baseline:central; font-family:inherit; letter-spacing:.01em; }
.rmf-shape:hover, .rmf-shape:focus-visible{ fill-opacity:.42; stroke-width:1.5; filter:drop-shadow(0 0 10px color-mix(in srgb, var(--c) 70%, transparent)); }
.rmf-shape.k-floor:hover, .rmf-shape.k-building:hover, .rmf-shape.k-floor:focus-visible, .rmf-shape.k-building:focus-visible{ fill:var(--c); fill-opacity:.32; stroke:#fff; }
.rmf-shape.is-dim{ opacity:.18; }
.rmf-shape.is-dim:hover{ opacity:.6; }
.rmf-shape.is-sel{ fill-opacity:.5; stroke:#fff; stroke-width:1.75; animation:rmf-pulse 1.6s ease-in-out infinite; }
@keyframes rmf-pulse{ 50%{ fill-opacity:.28; } }

/* nakładki UI */
.rmf-ui{ position:absolute; z-index:3; display:flex; gap:8px; align-items:center; }
.rmf-tl{ top:14px; left:14px; right:120px; }
.rmf-tr{ top:14px; right:14px; }
.rmf-bl{ bottom:14px; left:14px; }
.rmf-iconbtn{ width:40px; height:40px; border-radius:50%; border:0; display:grid; place-items:center; background:transparent; transition:transform .15s, background .15s; }
.rmf-iconbtn:active{ transform:scale(.92); }
.rmf-back{ background:var(--g-bg); }
.rmf-crumbs{ display:flex; align-items:center; gap:4px; height:40px; padding:0 16px; border-radius:999px; font-size:14px; min-width:0; overflow:hidden; white-space:nowrap; }
.rmf-crumbs button{ border:0; background:none; padding:4px 2px; color:var(--muted); font-weight:500; }
.rmf-crumbs button:hover{ color:var(--text); }
.rmf-crumbs i{ font-style:normal; color:var(--muted); opacity:.5; margin:0 2px; }
.rmf-crumbs .is-cur{ font-weight:650; overflow:hidden; text-overflow:ellipsis; }
.rmf-zoomctl{ display:flex; flex-direction:row; border-radius:999px; padding:4px; gap:2px; }
.rmf-zoomctl button{ width:36px; height:36px; border:0; background:transparent; border-radius:50%; display:grid; place-items:center; }
.rmf-zoomctl button:hover{ background:var(--soft2); }
.rmf-elevator{ top:66px; right:14px; flex-direction:column; padding:6px; border-radius:24px; gap:4px; max-height:calc(100% - 132px); overflow-y:auto; overflow-x:hidden; scrollbar-width:none; }
.rmf-elevator::-webkit-scrollbar{ display:none; }
.rmf-elevator button{ flex:none; }
.rmf-elevator button{ position:relative; width:40px; height:40px; border-radius:50%; border:0; background:transparent; font-weight:650; font-size:14px; transition:background .15s, color .15s, transform .15s; }
.rmf-elevator button:hover{ background:var(--soft2); }
.rmf-elevator button.is-on{ background:var(--rmf-accent); color:#fff; box-shadow:0 6px 16px color-mix(in srgb, var(--rmf-accent) 45%, transparent); }
.rmf-elevator button i{ position:absolute; top:-2px; right:-2px; min-width:17px; height:17px; padding:0 4px; border-radius:999px; background:var(--st-available); color:#fff; font:700 10px/17px -apple-system, sans-serif; font-style:normal; }
.rmf-legend{ border-radius:999px; padding:8px 14px; display:flex; gap:14px; font-size:13px; flex-wrap:wrap; }
.rmf-legend span{ display:inline-flex; align-items:center; gap:6px; }
.rmf-legend i{ width:9px; height:9px; border-radius:50%; box-shadow:0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); }
.rmf-legend b{ color:var(--muted); font-weight:600; }

/* tooltip */
.rmf-tip{ position:absolute; left:0; top:0; z-index:5; pointer-events:none; min-width:200px; max-width:280px; padding:12px 14px; border-radius:18px; background:var(--g-bg2); font-size:14px; transition:opacity .12s; }
.rmf-tip-h{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.rmf-tip-h b{ font-size:15px; }
.rmf-tip-m{ color:var(--muted); margin-top:3px; font-size:13px; }
.rmf-tip-p{ margin-top:6px; font-weight:700; font-size:17px; letter-spacing:-.01em; }
.rmf-tip-p small{ font-weight:500; color:var(--muted); font-size:12px; }
.rmf-tip-cta{ margin-top:6px; font-size:12px; color:var(--rmf-accent); font-weight:600; }
.rmf-ok{ color:var(--st-available); }

.rmf-pill{ --c:var(--st-available); display:inline-flex; align-items:center; gap:5px; padding:3px 10px 3px 8px; border-radius:999px; font-size:12px; font-weight:650; white-space:nowrap;
  color:color-mix(in srgb, var(--c) 75%, #000); background:color-mix(in srgb, var(--c) 16%, transparent); }
.rmf[data-theme="dark"] .rmf-pill{ color:color-mix(in srgb, var(--c) 70%, #fff); }
.rmf-pill::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--c); }
.rmf-pill.sm{ font-size:11px; padding:1px 8px 1px 6px; }

/* panel listy */
.rmf-panel{ border-radius:var(--r-xl); display:flex; flex-direction:column; min-height:0; overflow:hidden; align-self:stretch; contain:size; }
.rmf-panel-head{ padding:12px 12px 8px; }
.rmf-seg{ display:flex; padding:3px; border-radius:14px; background:var(--soft2); gap:2px; }
.rmf-seg button{ flex:1; height:36px; border:0; border-radius:11px; background:transparent; display:inline-flex; align-items:center; justify-content:center; gap:6px; font-weight:600; font-size:14px; color:var(--muted); transition:all .2s; }
.rmf-seg button.is-on{ background:var(--g-bg2); color:var(--text); box-shadow:0 2px 8px rgba(15,23,42,.12); }
.rmf-seg b{ font-size:11px; background:var(--soft2); padding:1px 7px; border-radius:999px; }
.rmf-seg .rmf-fcount{ background:var(--rmf-accent); color:#fff; }
.rmf-quick{ display:flex; gap:6px; flex-wrap:wrap; padding:2px 12px 10px; }
.rmf-chip{ height:32px; padding:0 13px; border-radius:999px; border:1px solid var(--soft2); background:var(--soft); display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:550; transition:all .18s; }
.rmf-chip .rmf-i{ width:15px; height:15px; }
.rmf-chip:hover{ background:var(--soft2); }
.rmf-chip.is-on{ background:var(--rmf-accent); border-color:transparent; color:#fff; box-shadow:0 4px 14px color-mix(in srgb, var(--rmf-accent) 40%, transparent); }
.rmf-list{ overflow:auto; padding:0 8px 10px; flex:1; overscroll-behavior:contain; }
.rmf-list::-webkit-scrollbar, .rmf-filters::-webkit-scrollbar, .rmf-card-body::-webkit-scrollbar{ width:8px; }
.rmf-list::-webkit-scrollbar-thumb, .rmf-filters::-webkit-scrollbar-thumb, .rmf-card-body::-webkit-scrollbar-thumb{ background:var(--soft2); border-radius:8px; }
.rmf-item{ position:relative; width:100%; display:grid; grid-template-columns:1fr auto; grid-template-areas:"n p" "m p"; gap:2px 10px; align-items:center; text-align:left; border:0; background:transparent; padding:11px 12px; border-radius:16px; transition:background .15s, transform .15s; }
.rmf-item:hover{ background:var(--soft); }
.rmf-item:active{ transform:scale(.985); }
.rmf-item.is-sel{ background:color-mix(in srgb, var(--rmf-accent) 12%, transparent); box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--rmf-accent) 50%, transparent); }
.rmf-item.is-off{ opacity:.62; }
.rmf-item-n{ grid-area:n; display:flex; align-items:baseline; gap:8px; }
.rmf-item-n b{ font-size:16px; letter-spacing:-.01em; }
.rmf-item-n small{ color:var(--muted); font-size:12.5px; }
.rmf-item-m{ grid-area:m; display:flex; gap:10px; color:var(--muted); font-size:13px; }
.rmf-item-p{ grid-area:p; display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.rmf-item-p b{ font-size:15px; }
.rmf-item-p small{ color:var(--muted); font-size:12px; }
.rmf-fav-dot{ position:absolute; top:8px; right:8px; color:#ff375f; }
.rmf-fav-dot .rmf-i{ width:12px; height:12px; fill:#ff375f; stroke:none; }
.rmf-empty{ padding:30px 16px; text-align:center; color:var(--muted); display:grid; gap:12px; justify-items:center; }

.rmf-filters{ overflow:auto; padding:4px 16px 16px; flex:1; }
.rmf-fgroup{ padding:12px 0; border-bottom:1px solid var(--soft2); }
.rmf-fgroup h4{ margin:0 0 10px; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:650; }
.rmf-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.rmf-factions{ display:flex; gap:8px; border:0; position:sticky; bottom:-16px; margin:8px -16px -16px; padding:12px 16px 16px !important; background:var(--g-bg2); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); border-top:1px solid var(--soft2) !important; }
.rmf-factions .rmf-btn{ flex:1; }
.rmf-range-vals{ display:flex; justify-content:space-between; font-weight:600; font-size:14px; margin-bottom:10px; }
.rmf-range-track{ position:relative; height:28px; }
.rmf-range-track::before{ content:''; position:absolute; left:0; right:0; top:12px; height:4px; border-radius:4px; background:var(--soft2); }
.rmf-range-fill{ position:absolute; top:12px; height:4px; border-radius:4px; background:var(--rmf-accent); }
.rmf-range input{ position:absolute; inset:0; width:100%; margin:0; background:none; pointer-events:none; -webkit-appearance:none; appearance:none; height:28px; }
.rmf-range input::-webkit-slider-thumb{ -webkit-appearance:none; pointer-events:auto; width:26px; height:26px; border-radius:50%; background:#fff; border:0; box-shadow:0 2px 8px rgba(0,0,0,.25), 0 0 0 .5px rgba(0,0,0,.08); cursor:grab; }
.rmf-range input::-moz-range-thumb{ pointer-events:auto; width:26px; height:26px; border-radius:50%; background:#fff; border:0; box-shadow:0 2px 8px rgba(0,0,0,.25); cursor:grab; }
.rmf-range input::-webkit-slider-runnable-track{ background:none; }

/* przyciski */
.rmf-btn{ height:42px; padding:0 16px; border-radius:14px; border:0; background:var(--soft2); display:inline-flex; align-items:center; justify-content:center; gap:7px; font-weight:600; font-size:14.5px; text-decoration:none; color:var(--text); transition:transform .12s, background .15s, box-shadow .15s; white-space:nowrap; }
.rmf-btn:hover{ background:color-mix(in srgb, var(--text) 12%, transparent); }
.rmf-btn:active{ transform:scale(.97); }
.rmf-btn.primary{ background:var(--rmf-accent); color:#fff; box-shadow:0 8px 20px color-mix(in srgb, var(--rmf-accent) 35%, transparent); }
.rmf-btn.primary:hover{ filter:brightness(1.07); }
.rmf-btn.ghost{ background:transparent; box-shadow:inset 0 0 0 1px var(--soft2); }
.rmf-btn.sm{ height:32px; padding:0 12px; border-radius:10px; font-size:13px; }
.rmf-btn.wide{ width:100%; height:50px; border-radius:16px; font-size:16px; }
.rmf-btn.is-on{ background:color-mix(in srgb, var(--rmf-accent) 16%, transparent); color:var(--rmf-accent); }
.rmf-btn:disabled{ opacity:.5; pointer-events:none; }
.rmf-btn.is-busy{ opacity:.7; }

/* karta lokalu */
.rmf-card{ position:absolute; top:0; right:0; min-height:100%; max-height:max(100%, min(760px, calc(100vh - 40px))); width:360px; z-index:6; border-radius:var(--r-xl); display:flex; flex-direction:column; overflow:hidden; background:var(--g-bg2);
  opacity:0; transform:translateX(24px) scale(.98); transition:opacity .24s ease, transform .3s cubic-bezier(.2,.9,.25,1.15); }
.rmf-card.is-open{ opacity:1; transform:none; }
.rmf-grab{ display:none; }
.rmf-card-h{ display:flex; justify-content:space-between; align-items:flex-start; padding:18px 14px 8px 20px; gap:8px; }
.rmf-eyebrow{ font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:650; }
.rmf-card-h h3{ margin:2px 0 0; font-size:30px; line-height:1.1; letter-spacing:-.025em; font-weight:750; }
.rmf-card-acts{ display:flex; gap:2px; }
.rmf-card-acts .rmf-iconbtn{ width:38px; height:38px; background:var(--soft); }
.rmf-card-acts .rmf-iconbtn:hover{ background:var(--soft2); }
.rmf-iconbtn.is-fav{ color:#ff375f; }
.rmf-iconbtn.is-fav .rmf-i{ fill:#ff375f; stroke:#ff375f; }
.rmf-card-body{ flex:1; overflow:auto; padding:6px 20px 14px; display:grid; gap:16px; align-content:start; }
.rmf-pricebox{ display:grid; gap:4px; justify-items:start; }
.rmf-price{ font-size:32px; font-weight:750; letter-spacing:-.03em; line-height:1.1; margin-top:6px; }
.rmf-price.muted{ font-size:18px; color:var(--muted); font-weight:600; }
.rmf-ppm{ color:var(--muted); font-size:14px; }
.rmf-facts{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.rmf-facts div{ background:var(--soft); border-radius:14px; padding:10px 12px; display:grid; gap:2px; }
.rmf-facts span{ font-size:12px; color:var(--muted); }
.rmf-facts b{ font-size:16px; letter-spacing:-.01em; }
.rmf-feats{ display:flex; flex-wrap:wrap; gap:6px; }
.rmf-feats span{ padding:5px 11px; border-radius:999px; background:color-mix(in srgb, var(--rmf-accent) 10%, transparent); color:var(--rmf-accent); font-size:13px; font-weight:600; }
.rmf-block{ display:grid; gap:8px; }
.rmf-block h4{ margin:0; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:650; display:flex; align-items:center; gap:6px; }
.rmf-block h4 .rmf-i{ width:15px; height:15px; }
.rmf-row{ display:flex; justify-content:space-between; padding:9px 12px; background:var(--soft); border-radius:12px; font-size:14px; }
.rmf-hist-sum{ font-size:13px; color:var(--muted); }
.rmf-hist-sum span{ font-weight:700; color:var(--text); }
.rmf-hist-sum .up{ color:#e11d48; } .rmf-hist-sum .down{ color:#16a34a; }
.rmf-spark{ width:100%; height:auto; display:block; }
.rmf-spark circle{ fill:var(--g-bg2); stroke:var(--rmf-accent); stroke-width:2; }
.rmf-spark circle.last{ fill:var(--rmf-accent); stroke:#fff; }
.rmf-hist-tbl summary{ cursor:pointer; color:var(--rmf-accent); font-size:13px; font-weight:600; list-style:none; }
.rmf-hist-tbl summary::-webkit-details-marker{ display:none; }
.rmf-hist-tbl table{ width:100%; border-collapse:collapse; margin-top:8px; font-size:13px; }
.rmf-hist-tbl th, .rmf-hist-tbl td{ text-align:left; padding:6px 4px; border-bottom:1px solid var(--soft2); }
.rmf-hist-tbl th{ color:var(--muted); font-weight:600; }
.rmf-skel{ height:90px; border-radius:12px; background:linear-gradient(90deg, var(--soft) 0%, var(--soft2) 50%, var(--soft) 100%); background-size:200% 100%; animation:rmf-sk 1.2s infinite; }
@keyframes rmf-sk{ to{ background-position:-200% 0; } }
.rmf-card-f{ padding:12px 16px 16px; border-top:1px solid var(--soft2); display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.rmf-card-f2{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px; }
.rmf-card-f2 .rmf-btn{ min-width:0; padding:0 8px; font-size:13.5px; justify-content:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rmf-card-f2 .rmf-btn:only-child, .rmf-card-f2 .rmf-btn:last-child:nth-child(odd){ grid-column:1 / -1; }

/* tabela */
.rmf-tablewrap{ margin-top:20px; }
.rmf-sec-head{ display:flex; align-items:baseline; justify-content:space-between; margin:0 6px 12px; }
.rmf-sec-head h3{ margin:0; font-size:24px; letter-spacing:-.02em; }
.rmf-tablebox{ border-radius:var(--r-l); overflow:auto; max-height:min(560px, 72vh); overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--soft2) transparent; }
.rmf-tablebox::-webkit-scrollbar{ width:8px; height:8px; }
.rmf-tablebox::-webkit-scrollbar-thumb{ background:var(--soft2); border-radius:8px; }
.rmf-table thead th{ position:sticky; top:0; z-index:2; background:rgba(248,250,252,.97); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); }
.rmf-table{ width:100%; border-collapse:collapse; font-size:14px; }
.rmf-table th{ text-align:left; padding:0; font-weight:600; color:var(--muted); font-size:12.5px; white-space:nowrap; border-bottom:1px solid var(--soft2); }
.rmf-table th button{ display:inline-flex; align-items:center; gap:4px; border:0; background:none; padding:14px 14px; color:inherit; font-weight:inherit; text-transform:uppercase; letter-spacing:.05em; font-size:11.5px; }
.rmf-table th:not(:has(button)){ padding:14px; text-transform:uppercase; letter-spacing:.05em; font-size:11.5px; }
.rmf-table th button.is-on{ color:var(--text); }
.rmf-table th .rmf-i{ width:14px; height:14px; }
.rmf-table td{ padding:12px 14px; border-bottom:1px solid var(--soft2); white-space:nowrap; }
.rmf-table tbody tr{ transition:background .12s; }
.rmf-table tbody tr:hover{ background:var(--soft); }
.rmf-table tr.is-sel{ background:color-mix(in srgb, var(--rmf-accent) 10%, transparent); }
.rmf-table .rmf-extra{ font-size:12.5px; color:var(--muted); white-space:normal; min-width:160px; }
.rmf-legal{ font-size:12.5px; margin:10px 6px 0; }

/* porównanie */
.rmf-tray{ position:fixed; left:50%; bottom:20px; transform:translateX(-50%); z-index:9990; display:flex; align-items:center; gap:8px; padding:8px 8px 8px 12px; border-radius:999px; background:var(--g-bg2); animation:rmf-up .3s cubic-bezier(.2,.9,.25,1.2); }
@keyframes rmf-up{ from{ transform:translate(-50%, 30px); opacity:0; } }
.rmf-tray-u{ display:inline-flex; align-items:center; gap:4px; padding:4px 4px 4px 12px; border-radius:999px; background:var(--soft2); font-weight:650; font-size:14px; }
.rmf-tray-u button{ width:24px; height:24px; border-radius:50%; border:0; background:transparent; display:grid; place-items:center; padding:0; }
.rmf-tray-u .rmf-i{ width:14px; height:14px; }
.rmf-tray .rmf-btn{ border-radius:999px; }

/* modal */
.rmf-modal{ position:fixed; inset:0; z-index:99999; display:grid; place-items:center; padding:20px; }
.rmf-modal-bg{ position:absolute; inset:0; background:rgba(15,23,42,.35); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); opacity:0; transition:opacity .22s; }
.rmf-modal-card{ position:relative; width:min(520px, 100%); max-height:calc(100vh - 40px); overflow:auto; border-radius:28px; padding:26px; background:var(--g-bg2); color:var(--text);
  opacity:0; transform:translateY(16px) scale(.97); transition:opacity .22s, transform .3s cubic-bezier(.2,.9,.25,1.15); }
.rmf-modal-card.wide{ width:min(900px, 100%); }
.rmf-modal.is-open .rmf-modal-bg{ opacity:1; }
.rmf-modal.is-open .rmf-modal-card{ opacity:1; transform:none; }
.rmf-modal-card h3{ margin:0 40px 6px 0; font-size:24px; letter-spacing:-.02em; }
.rmf-modal-x{ position:absolute; top:16px; right:16px; background:var(--soft2) !important; width:36px !important; height:36px !important; }
.rmf-modal-f{ display:flex; justify-content:flex-end; margin-top:14px; }
.rmf-pdf{ margin-top:14px; border-radius:18px; overflow:hidden; background:var(--soft); }
.rmf-pdf object{ width:100%; height:65vh; display:block; }
.rmf-pdf img{ width:100%; display:block; }
.rmf-form{ display:grid; gap:12px; margin-top:16px; }
.rmf-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.rmf-field{ display:grid; gap:5px; }
.rmf-field span{ font-size:13px; color:var(--muted); font-weight:550; }
.rmf-field input, .rmf-field textarea{ width:100%; font:inherit; color:var(--text); background:var(--soft); border:1px solid transparent; border-radius:14px; padding:12px 14px; outline:none; transition:border-color .15s, background .15s; resize:vertical; }
.rmf-field input:focus, .rmf-field textarea:focus{ border-color:var(--rmf-accent); background:transparent; box-shadow:0 0 0 4px color-mix(in srgb, var(--rmf-accent) 15%, transparent); }
.rmf-consent{ display:flex; gap:10px; font-size:12.5px; color:var(--muted); align-items:flex-start; }
.rmf-consent input{ margin-top:2px; width:18px; height:18px; accent-color:var(--rmf-accent); flex:none; }
.rmf-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.rmf-form-err{ color:#e11d48; font-size:13.5px; font-weight:550; }
.rmf-success{ text-align:center; padding:20px 10px 6px; display:grid; justify-items:center; gap:6px; }
.rmf-success > .rmf-i{ width:56px; height:56px; padding:12px; border-radius:50%; background:color-mix(in srgb, var(--st-available) 15%, transparent); color:var(--st-available); stroke-width:2.5; }
.rmf-success h4{ margin:6px 0 0; font-size:22px; }
.rmf-success p{ color:var(--muted); margin:0 0 10px; }
.rmf-cmp{ overflow:auto; margin-top:12px; }
.rmf-cmp table{ width:100%; border-collapse:collapse; font-size:14.5px; }
.rmf-cmp th, .rmf-cmp td{ padding:11px 12px; text-align:left; border-bottom:1px solid var(--soft2); }
.rmf-cmp thead th{ vertical-align:bottom; }
.rmf-cmp thead th b{ display:block; font-size:20px; margin-bottom:6px; letter-spacing:-.02em; }
.rmf-cmp tbody th{ color:var(--muted); font-weight:550; width:28%; }
.rmf-cmp td.is-best{ color:var(--st-available); font-weight:700; }
.rmf-yes{ color:var(--st-available); } .rmf-no{ color:var(--muted); }
.rmf-flash{ position:fixed; left:50%; top:24px; transform:translate(-50%,-20px); opacity:0; z-index:99999; padding:10px 18px; border-radius:999px; font-weight:600; transition:all .25s; }
.rmf-flash.in{ opacity:1; transform:translate(-50%,0); }

.rmf-loading{ display:flex; gap:8px; justify-content:center; padding:80px 0; }
.rmf-loading span{ width:10px; height:10px; border-radius:50%; background:var(--rmf-accent); animation:rmf-b 1s infinite ease-in-out; }
.rmf-loading span:nth-child(2){ animation-delay:.15s; } .rmf-loading span:nth-child(3){ animation-delay:.3s; }
@keyframes rmf-b{ 0%,80%,100%{ transform:scale(.5); opacity:.4; } 40%{ transform:scale(1); opacity:1; } }
.rmf-error{ padding:40px; text-align:center; color:var(--muted); }

@media (prefers-reduced-motion: reduce){ .rmf *{ animation:none !important; transition:none !important; } }

/* --- tablet / mobile --- */
@media (max-width: 980px){
  .rmf-main{ grid-template-columns:minmax(0,1fr); }
  .rmf-main, .rmf-tablewrap{ max-width:none; }
  .rmf-stage{ max-height:none; min-height:0; border-radius:22px; }
  .rmf-panel{ contain:none; height:520px; border-radius:22px; }
  .rmf-card{ position:fixed; left:0; right:0; top:auto; bottom:0; width:auto; min-height:0; max-height:88vh; border-radius:28px 28px 0 0; z-index:99990; transform:translateY(100%); opacity:1;
    transition:transform .34s cubic-bezier(.2,.9,.25,1); box-shadow:0 -10px 40px rgba(15,23,42,.25); }
  .rmf-card.is-open{ transform:none; }
  .rmf-grab{ display:block; width:40px; height:5px; border-radius:5px; background:var(--soft2); margin:8px auto 0; }
  .rmf-card-h{ padding-top:8px; }
  .rmf-card-f{ padding-bottom:max(16px, env(safe-area-inset-bottom)); }
  .rmf-tl{ right:70px; }
  .rmf-legend{ font-size:12px; gap:10px; padding:6px 12px; left:10px; right:10px; bottom:10px; justify-content:center; }
  .rmf-elevator{ right:10px; }
  .rmf-elevator button{ width:36px; height:36px; }
  .rmf-tablebox{ background:transparent; border:0; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; max-height:70vh; padding-right:4px; }
  .rmf-table thead{ display:none; }
  .rmf-table, .rmf-table tbody{ display:block; }
  .rmf-table tr{ display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; padding:14px 16px; margin-bottom:10px; border-radius:20px; background:var(--g-bg); border:1px solid var(--g-border); }
  .rmf-table td{ border:0; padding:2px 0; white-space:normal; }
  .rmf-table td[data-l]::before{ content:attr(data-l); display:block; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
  .rmf-table td:last-child{ grid-column:1 / -1; }
  .rmf-table td:last-child .rmf-btn{ width:100%; }
  .rmf-2{ grid-template-columns:1fr; }
  .rmf-modal{ padding:0; align-items:end; }
  .rmf-modal-card{ border-radius:28px 28px 0 0; max-height:92vh; transform:translateY(40px); }
  .rmf-tray{ bottom:14px; max-width:calc(100% - 20px); overflow:auto; }
}
@media (max-width: 520px){
  .rmf-crumbs{ height:36px; padding:0 12px; font-size:13px; }
  .rmf-crumbs button, .rmf-crumbs i{ display:none; }
  .rmf-iconbtn{ width:36px; height:36px; }
  .rmf-zoomctl{ display:none; }
  .rmf-tl{ right:14px; }
  .rmf-legend b{ display:none; }
  .rmf-facts{ grid-template-columns:repeat(2, 1fr); }
  .rmf-card-h h3{ font-size:26px; }
  .rmf-tl{ top:10px; left:10px; }
}

/* tabela HTML przed załadowaniem skryptu (SEO / brak JS) */
.rmf-ssr-table{ width:100%; border-collapse:collapse; font-size:14px; }
.rmf-ssr-table caption{ text-align:left; font-weight:600; padding:8px 0; }
.rmf-ssr-table th, .rmf-ssr-table td{ padding:8px 10px; border-bottom:1px solid rgba(15,23,42,.1); text-align:left; }
.rmf[data-theme="dark"] .rmf-table thead th{ background:rgba(30,33,42,.97); }

/* ---------- mobile: pasek na dole, lista jako arkusz ---------- */
.rmf-mbar, .rmf-scrim, .rmf-pclose, .rmf-pgrab, .rmf-hint{ display:none; }
@media (max-width: 980px){
  /* bez „pełnej szerokości ekranu” (100vw) — w motywach z marginesami albo niewyśrodkowaną treścią mapa wychodziła poza ekran */
  .rmf-stage{ width:100%; margin-left:0; border-radius:18px; box-shadow:0 10px 30px rgba(15,23,42,.14); }
  .rmf, .rmf-main{ max-width:100%; } .rmf{ overflow-x:clip; }
  .rmf-tl{ top:10px; left:10px; }
  .rmf-tr{ top:auto; bottom:10px; right:10px; }
  .rmf-zoomctl{ flex-direction:row; border-radius:999px; }
  .rmf-zoomctl button{ width:34px; height:34px; }
  .rmf-legend{ left:10px; right:auto; bottom:10px; padding:5px 10px; gap:8px; max-width:calc(100% - 140px); overflow:hidden; flex-wrap:nowrap; }
  .rmf-legend span{ white-space:nowrap; }
  .rmf-panel{ position:fixed; left:0; right:0; bottom:0; top:auto; height:86vh; height:86dvh; z-index:99980; border-radius:28px 28px 0 0; contain:none;
    background:var(--g-bg2); transform:translateY(105%); transition:transform .34s cubic-bezier(.2,.9,.25,1); box-shadow:0 -10px 40px rgba(15,23,42,.25); }
  .rmf.has-panel .rmf-panel{ transform:none; }
  .rmf-pgrab{ display:block; }
  .rmf-panel-head{ display:flex; align-items:center; gap:8px; flex-direction:row-reverse; padding-top:6px; }
  .rmf-panel-head .rmf-seg{ flex:1; }
  .rmf-pclose{ display:grid; background:var(--soft2); width:36px; height:36px; flex:none; }
  .rmf-list{ padding-bottom:max(16px, env(safe-area-inset-bottom)); }
  .rmf-scrim{ display:block; position:fixed; inset:0; z-index:99970; background:rgba(15,23,42,.3); opacity:0; pointer-events:none; transition:opacity .25s; }
  .rmf.has-panel .rmf-scrim{ opacity:1; pointer-events:auto; }
  .rmf-mbar{ display:flex; position:fixed; left:50%; bottom:max(14px, env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:9985; padding:5px; gap:4px; border-radius:999px; background:var(--g-bg2); }
  .rmf-mbar button{ height:46px; padding:0 18px; border:0; border-radius:999px; background:transparent; display:inline-flex; align-items:center; gap:7px; font-weight:650; font-size:15px; }
  .rmf-mbar button:first-child{ background:var(--rmf-accent); color:#fff; box-shadow:0 6px 16px color-mix(in srgb, var(--rmf-accent) 40%, transparent); }
  .rmf-mbar b{ font-size:12px; padding:1px 8px; border-radius:999px; background:rgba(255,255,255,.25); }
  .rmf-mbar button:last-child b{ background:var(--rmf-accent); color:#fff; }
  .rmf.has-card .rmf-mbar, .rmf.has-panel .rmf-mbar{ opacity:0; pointer-events:none; }
  .rmf-tray{ bottom:84px; }
  .rmf-tablewrap{ padding-bottom:80px; }
  .rmf-hint{ display:block; position:absolute; left:50%; top:56px; transform:translateX(-50%); z-index:4; padding:8px 14px; border-radius:999px; font-size:13px; font-weight:600; white-space:nowrap; transition:opacity .6s; }
  .rmf-hint.out{ opacity:0; }
  html.rmf-lock, html.rmf-lock body{ overflow:hidden; }
}
@media (max-width: 980px){
  .rmf-legend{ overflow-x:auto; scrollbar-width:none; }
  .rmf-legend::-webkit-scrollbar{ display:none; }
  .rmf-legend span{ flex:none; }
}
@media (max-width: 520px){
  .rmf-legend{ max-width:calc(100% - 20px); right:auto; }
}

/* piętra pod mapą na telefonie i tablecie — nie zasłaniają rzutu ani przycisków */
.rmf-elevator.is-out{ position:relative; top:auto; right:auto; transform:none; z-index:2; display:flex; flex-direction:row; justify-content:flex-start; gap:4px; max-height:none; max-width:100%; width:max-content; margin:10px auto 0; padding:8px 8px 6px; border-radius:999px; overflow-x:auto; overflow-y:hidden; }
.rmf-elevator.is-out button{ width:40px; height:40px; }
.rmf-elevator.is-out button i{ display:block; }
.rmf-elevator.is-out::before{ content:"Piętro"; align-self:center; padding:0 6px 0 8px; font-size:12px; font-weight:650; color:var(--muted); flex:none; }

/* mapa Google (lokalizacja inwestycji) */
.rmf-modal-card.rmf-modal-map{ width:min(760px, 100%); }
.rmf-gmap{ position:relative; border-radius:18px; overflow:hidden; aspect-ratio:16/10; background:var(--soft); }
.rmf-gmap iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.rmf-modal-map .rmf-btn{ justify-content:center; text-decoration:none; }

/* przybliżony rzut: widać, że można go przesuwać */
.rmf-stage.is-zoomed .rmf-viewport{ cursor:grab; } .rmf-stage.is-zoomed .rmf-viewport:active{ cursor:grabbing; }
.rmf-stage.is-zoomed .rmf-shape{ cursor:pointer; }
.rmf-panhint{ position:absolute; left:50%; bottom:64px; transform:translateX(-50%); z-index:4; padding:8px 14px; border-radius:999px; font-size:13px; font-weight:600; white-space:nowrap; pointer-events:none; transition:opacity .5s; max-width:calc(100% - 24px); overflow:hidden; text-overflow:ellipsis; }
.rmf-panhint.out{ opacity:0; }
.rmf-zoomctl button:disabled{ opacity:.35; cursor:default; }
@media (max-width:520px){ .rmf-elevator.is-out button{ width:36px; height:36px; } .rmf-elevator.is-out{ gap:2px; padding:7px 6px 5px; } }

/* duże inwestycje: lista i tabela doładowywane porcjami */
.rmf-more{ display:block; width:calc(100% - 8px); margin:6px 4px 10px; padding:11px 14px; border-radius:14px; border:1px dashed var(--g-border, rgba(15,23,42,.15)); background:var(--soft); color:var(--text); font-weight:650; font-size:14px; cursor:pointer; }
.rmf-more small{ color:var(--muted); font-weight:500; margin-left:4px; }
.rmf-more:hover{ border-color:var(--rmf-accent); color:var(--rmf-accent); }
.rmf-table tr.rmf-more-row td{ padding:8px; border:0; } .rmf-table tr.rmf-more-row .rmf-more{ width:100%; margin:0; }
@media (max-width:980px){ .rmf-table tr.rmf-more-row{ display:block; padding:0; background:none; border:0; } .rmf-table tr.rmf-more-row td{ display:block; } }

/* przesuwanie przybliżonego rzutu: bez przeciągania obrazka i zaznaczania */
.rmf-viewport, .rmf-viewport *{ -webkit-user-drag:none; user-select:none; -webkit-user-select:none; }
.rmf-viewport img, .rmf-viewport image{ pointer-events:none; }

/* pomieszczenia lokalu */
.rmf-layout{ border:1px solid var(--soft2); border-radius:16px; }
.rmf-layout tr:last-child td{ border-bottom-left-radius:16px; border-bottom-right-radius:16px; }
.rmf-layout-h{ padding:11px 14px; font-weight:650; font-size:14px; display:flex; align-items:center; gap:8px; }
.rmf-layout-h small{ font-size:11.5px; font-weight:600; color:var(--muted); background:var(--soft); border-radius:99px; padding:1px 7px; }
.rmf-layout table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.rmf-layout td, .rmf-layout th{ padding:7px 14px; text-align:left; border-top:1px solid var(--soft2); font-weight:500; }
.rmf-layout td:last-child, .rmf-layout th:last-child{ text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rmf-layout .rmf-layout-sum th{ font-weight:700; background:var(--soft); }
.rmf-layout .rmf-layout-out td{ color:var(--muted); }
.rmf-req{ color:#dc2626; font-style:normal; font-weight:700; } .rmf-opt{ color:var(--muted); font-weight:400; font-size:11.5px; }
