.public-footer{max-width:1680px;margin:12px auto 0;padding:13px 16px;background:#dce1e6;border:1px solid #c4ccd4;color:#364152;display:flex;gap:12px 24px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:.77rem;line-height:1.6}
.public-footer nav{display:flex;gap:8px 20px;flex-wrap:wrap}.public-footer a{color:#364152;text-decoration:underline;text-underline-offset:3px}.public-footer a:hover{color:#111827}.public-map .workspace{height:calc(100vh - 180px);min-height:500px}
.public-dialog{box-sizing:border-box;width:min(740px,calc(100% - 24px));max-height:85vh;max-height:85dvh;padding:0;border:1px solid #b6c0cb;color:#172033;background:#fff;box-shadow:0 16px 60px #0003;overflow:auto}.public-dialog::backdrop{background:#17203399}.public-dialog-content{padding:28px 30px;font-size:.9rem;line-height:1.75}.public-dialog-content h2{margin:0 35px 18px 0;font-size:1.5rem}.public-dialog-content h3{font-size:1rem;margin:22px 0 5px}.public-close{position:sticky;float:right;top:8px;margin:8px 8px 0 0;width:36px;height:36px;border:1px solid #c4ccd4;background:white;font-size:24px;line-height:1;z-index:1}.public-dialog a,.catalog a{color:#1d4ed8}
.facebook-toggle{position:fixed;right:0;top:46%;width:42px;height:48px;background:#1877f2;color:#fff;border:0;display:grid;place-items:center;z-index:1100;box-shadow:0 3px 12px #0002}.facebook-toggle[aria-expanded=true]{visibility:hidden}.facebook-drawer{position:fixed;right:0;top:0;bottom:0;width:min(420px,100vw);background:white;border-left:1px solid #c4ccd4;z-index:1300;display:flex;flex-direction:column;box-shadow:-12px 0 40px #17203324;transform:translateX(105%);visibility:hidden;transition:transform .22s ease,visibility .22s;pointer-events:none}.facebook-drawer.is-open{transform:translateX(0);visibility:visible;pointer-events:auto}.facebook-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px;background:#f2f4f6;border-bottom:1px solid #d0d7df}.facebook-head h2{font-size:1rem;margin:0}.facebook-close{width:36px;height:36px;background:white;border:1px solid #c4ccd4;font-size:24px;line-height:1}.facebook-body{padding:14px;overflow:auto;font-size:.85rem;line-height:1.6;flex:1}.facebook-body iframe{display:block;border:0;max-width:100%;height:min(600px,70vh)}.facebook-fallback a{color:#1d4ed8}.public-action{display:inline-block;padding:10px 15px;background:#172033;color:white!important;text-decoration:none;border:1px solid #172033;font-size:.86rem;font-weight:600}.public-action:hover{background:#334155}
.catalog-shell{max-width:1240px;margin:0 auto;padding:18px}.catalog{background:#fff;border:1px solid #c4ccd4;padding:clamp(16px,3vw,32px);line-height:1.65}.catalog h1{font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.25;margin:10px 0 14px}.catalog h2{font-size:1.2rem}.catalog-lead{color:#5f6b7a;max-width:75ch}.catalog-breadcrumb{font-size:.8rem;color:#5f6b7a}.catalog-nav{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.catalog-list{list-style:none;padding:0;margin:0}.catalog-list li{padding:11px 0;border-top:1px solid #dce1e6}.catalog-list a{font-weight:600;text-decoration:none}.catalog-list a:hover{text-decoration:underline}.catalog-meta{color:#5f6b7a;font-size:.8rem;display:block}.catalog-streets{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:0 18px}.catalog-streets li{padding:8px 0}.catalog-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px;margin:20px 0}.catalog-photos img{width:100%;height:auto;max-height:420px;object-fit:contain;background:#f4f6f8}.catalog-description{overflow-wrap:anywhere}.catalog-facts{display:flex;gap:12px 30px;flex-wrap:wrap;background:#f2f4f6;padding:12px 16px;margin:20px 0}.catalog-facts dt{color:#5f6b7a;font-size:.8rem}.catalog-facts dd{margin:0;font-weight:600}.catalog .public-dialog-content{padding:0}.catalog .public-dialog-content h2{margin-right:0}
@media(max-width:960px){.public-map .workspace{height:calc(100vh - 140px);min-height:480px}.public-footer{padding:10px;gap:8px}.public-footer nav{gap:6px 14px}.facebook-toggle{width:36px;height:44px;top:43%}.catalog-shell{padding:10px}.public-dialog-content{padding:22px 18px}}
@media(prefers-reduced-motion:reduce){.facebook-drawer{transition:none}}

.public-dialog:not([open]){display:none}

/* Przyklejony nagłówek tylko na podstronach katalogu. */
.catalog-shell > .site-header{position:sticky;top:0;z-index:1000;background:var(--bg,#e9eef3);border-bottom:1px solid var(--line,#cfd7df);padding:8px 2px;box-shadow:0 5px 12px rgba(15,23,42,.07)}
.catalog-shell > .site-header .public-action{max-width:100%;overflow-wrap:anywhere}
.catalog-shell > .site-header .catalog-map-action{flex-shrink:0;text-align:center}
.catalog-meta .catalog-map-link{font-size:inherit;font-weight:500;text-decoration:underline}
@media(max-width:540px){.catalog-shell > .site-header{gap:8px;min-height:62px}.catalog-shell > .site-header .public-action{padding:8px 10px;font-size:.75rem}.catalog-shell > .site-header > div{min-width:0}}

/* Facebook: caly dostepny obszar panelu, bez stalej wysokosci 600px. */
.facebook-toggle{width:58px;height:62px;cursor:pointer}
.facebook-toggle svg{width:34px;height:34px}
.facebook-drawer{height:100vh;height:100dvh;bottom:auto;box-sizing:border-box}
.facebook-head{flex:0 0 auto}
.facebook-body{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1 1 auto;padding:12px}
#facebook-frame{flex:1 1 0;min-height:0;min-width:0;overflow:hidden;display:flex;justify-content:center}
.facebook-body iframe{width:100%;max-width:500px;height:100%;flex:0 1 auto;border:0}
.facebook-fallback{flex:0 0 auto;margin:8px 0 0;font-size:.78rem}
@media(max-width:960px){.facebook-toggle{width:48px;height:54px}.facebook-toggle svg{width:30px;height:30px}}

/* Stały odnośnik awaryjny niezależny od osadzonej ramki Meta. */
.facebook-body .facebook-fallback{margin:0 0 12px;flex:0 0 auto;min-width:0}
.facebook-fallback .facebook-direct{display:block;box-sizing:border-box;padding:10px 12px;background:#1877f2;color:#fff;text-align:center;text-decoration:none;font-weight:600;line-height:1.4;border:1px solid #1877f2;overflow-wrap:anywhere}
.facebook-fallback .facebook-direct:hover{background:#145fc2;border-color:#145fc2}
.facebook-fallback .facebook-direct:focus-visible{outline:2px solid #172033;outline-offset:3px}
.facebook-fallback p{margin:7px 0 0;color:#526174;line-height:1.45;font-size:.75rem}
