/* November review: floor first, compact plan, readable apartment details. */
body.reference-redesign .model-layout-choice{grid-area:types;min-width:0;align-self:start}
body.reference-redesign .model-layout-choice fieldset{margin:0;padding:0;border:0;min-width:0}
body.reference-redesign .model-layout-choice legend{font:600 13px/1.5 var(--sans);letter-spacing:0;margin:0 0 10px;color:var(--ink)}
body.reference-redesign .model-layout-choice .segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body.reference-redesign .model-layout-choice .segmented button{min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:14px}
body.reference-redesign .model-layout-choice .segmented button[aria-pressed=true]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
body.reference-redesign .building-picker{grid-template-areas:'title variants' 'image controls' 'image types' 'units units' 'selection selection' 'caption caption'}
body.reference-redesign #cenik{scroll-margin-top:calc(var(--header-height) + 20px)}
body.reference-redesign .floor-stage{position:relative;max-width:none;align-self:start}
body.reference-redesign .floor-canvas{width:100%;max-width:610px;margin:16px auto;max-height:none}
body.reference-redesign .floor-caption{flex-wrap:wrap;gap:10px 16px}
body.reference-redesign .floor-caption .floor-source-original{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
body.reference-redesign .map-unit-card .map-card-links{gap:10px 18px;flex-wrap:wrap}
body.reference-redesign .map-card-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
body.reference-redesign .map-card-actions>.viewing-cta{width:100%;justify-content:space-between;min-height:48px}
body.reference-redesign .map-card-actions>.unit-detail-button{justify-self:start;min-height:44px;padding:7px 0;text-decoration:underline;text-underline-offset:4px;font-size:15px}
body.reference-redesign .map-standard-disclosure{padding-top:4px;margin-top:0}
body.reference-redesign #unit-dialog-title,body.reference-redesign #furnished-plan-title{font-family:var(--sans);font-size:clamp(44px,5.5vw,68px);font-weight:650;line-height:1.05;letter-spacing:-.035em;margin:8px 0 14px}
body.reference-redesign .compare-table .compare-unit-heading{font-size:clamp(24px,2.3vw,34px);font-weight:650;line-height:1.2;white-space:nowrap}
.unit-location{display:block;margin:20px 0;padding:14px 16px;border:1px solid var(--line,#cdd2d0);border-radius:10px;background:var(--paper,#f0eee7);color:var(--ink,#17272e)}
.unit-location figcaption{font:600 14px/1.5 var(--sans);margin-bottom:10px}
.unit-location-views{display:grid;grid-template-columns:85px minmax(0,1fr);gap:12px;align-items:center;min-width:0}
.unit-location-building{display:block;width:85px;height:116px;overflow:visible}
.unit-location-building rect{fill:#e5e7e2;stroke:#97a39e;stroke-width:1}
.unit-location-building text{fill:#52625c;font:500 10px var(--sans);text-anchor:middle}
.unit-location-building .is-active rect{fill:var(--accent,#d1b786);stroke:var(--ink,#17272e);stroke-width:1.6}
.unit-location-building .is-active text{fill:var(--ink,#17272e);font-weight:700}
.unit-location-plan{display:block;width:100%;max-height:155px;min-height:100px;overflow:visible}
.unit-location-plan image{opacity:.6}
.unit-location-plan path{fill:#e8ece6;fill-opacity:.35;stroke:#82908a;stroke-width:2;vector-effect:non-scaling-stroke}
.unit-location-plan path.is-active{fill:var(--accent,#d1b786);fill-opacity:.8;stroke:var(--ink,#17272e);stroke-width:2.5}
.unit-location>p{font:400 12px/1.5 var(--sans);margin:8px 0 0;color:var(--muted,#52625c)}
.floor-orientation{display:flex;align-items:center;gap:8px;font:400 12px/1.5 var(--sans);color:var(--muted,#52625c);margin:8px 0 0}
.floor-orientation svg{width:34px;height:34px;flex:none;fill:var(--accent,#d1b786);stroke:var(--ink,#17272e);stroke-width:1.5}
.unit-overview .unit-location{margin-top:0}
.furnished-room-legend>.unit-location{margin:0 0 20px}
.furnished-plan-links>.viewing-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}
@media(min-width:901px){
body.reference-redesign .explorer-workbench{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(390px,1.15fr);align-items:start}
body.reference-redesign .building-picker{grid-column:1/-1}
body.reference-redesign .map-unit-card{display:block;grid-template-columns:none;border-left:1px solid var(--line);border-top:0}
body.reference-redesign .map-card-visuals{margin-top:24px}
body.reference-redesign .floor-stage>.map-mobile-jump{display:inline-flex}
}
@media(min-width:1350px){
body.reference-redesign .map-unit-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:24px}
body.reference-redesign .map-card-visuals{margin-top:0}
body.reference-redesign .map-card-empty{grid-column:1/-1}
}
@media(min-width:701px) and (max-width:900px){
body.reference-redesign .explorer-workbench{display:block}
body.reference-redesign .map-unit-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;border-left:0;border-top:1px solid var(--line)}
body.reference-redesign .building-picker{grid-template-areas:'title variants' 'image controls' 'image types' 'units units' 'selection selection' 'caption caption'}
}
@media(max-width:700px){
body.reference-redesign .building-picker{grid-template-areas:'title' 'variants' 'image' 'controls' 'types' 'units' 'selection' 'caption'}
body.reference-redesign .model-layout-choice .segmented{grid-template-columns:repeat(4,minmax(0,1fr))}
body.reference-redesign .model-layout-choice .segmented button{padding-inline:5px}
body.reference-redesign .explorer-workbench{display:block}
body.reference-redesign .map-unit-card{display:block;border-left:0;border-top:1px solid var(--line)}
body.reference-redesign .floor-canvas{max-width:520px}
body.reference-redesign #unit-dialog-title,body.reference-redesign #furnished-plan-title{font-size:44px}
.unit-location{padding:12px;margin-block:16px}
.unit-location-views{grid-template-columns:76px minmax(0,1fr);gap:10px}
.unit-location-building{width:76px;height:104px}
.furnished-plan-links>.viewing-cta{width:100%}
}

/* The drawing stays horizontal; the compass uses the same original image axes. */
body.reference-redesign #map-floor-orientation{display:flex;justify-content:flex-end;margin:8px 0 -8px}
body.reference-redesign .floor-orientation.is-confirmed{display:flex;gap:10px;align-items:center;color:var(--ink);font-size:12px}
body.reference-redesign .floor-orientation.is-confirmed svg{display:block;width:72px;height:72px;flex:none;fill:none;stroke:var(--ink);stroke-width:1}
body.reference-redesign .floor-orientation .compass-axis{stroke:#8a9692}
body.reference-redesign .floor-orientation .compass-north{fill:var(--ink);stroke:var(--ink)}
body.reference-redesign .floor-orientation text{fill:var(--ink);stroke:none;text-anchor:middle;dominant-baseline:central;font:600 12px var(--sans)}
body.reference-redesign .unit-location .floor-orientation{margin-top:8px;margin-bottom:0}
body.reference-redesign .unit-location .floor-orientation svg{width:58px;height:58px}

/* Fixed Montserrat weights keep small contact details legible in WebKit. */
@font-face {
  font-family: AlexandraUnitSans; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/projekt-20261124/montserrat-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02FF,U+0300-036F,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0;
}
@font-face {
  font-family: AlexandraUnitSans; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/projekt-20261124/montserrat-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: AlexandraUnitSans; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/projekt-20261124/montserrat-latin-ext-600.woff2) format('woff2');
  unicode-range: U+0100-02FF,U+0300-036F,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0;
}
@font-face {
  font-family: AlexandraUnitSans; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/projekt-20261124/montserrat-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
#map-unit-card, #unit-dialog, #furnished-plan-dialog { --sans:AlexandraUnitSans,Arial,Helvetica,sans-serif;font-family:var(--sans); }
.unit-location { container-type:inline-size; }
.unit-location .unit-location-views { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items:center; }
.unit-location .unit-location-building { width:100%; height:auto; overflow:hidden; border-radius:5px; background:white; }
.unit-facade-floor { fill:var(--dr-red);fill-opacity:.28;stroke:var(--dr-red);stroke-width:2;vector-effect:non-scaling-stroke; }
.unit-facade-switch { display:flex;flex-wrap:wrap;gap:4px;margin:0 0 10px; }
.unit-facade-switch button { min-height:44px;padding:6px 12px;border:1px solid var(--dr-line);border-radius:5px;background:white;color:var(--ink);font:600 13px/1.35 var(--sans);cursor:pointer; }
.unit-facade-switch button[aria-pressed=true] { background:var(--ink);border-color:var(--ink);color:white; }
.unit-facade-switch button:focus-visible { outline:2px solid var(--dr-red);outline-offset:2px; }
@container (max-width: 290px) {
  .unit-location .unit-location-views { grid-template-columns:minmax(0,1fr); }
  .unit-location .unit-location-plan { max-height:130px; }
}
.unit-gallery-link { margin-top:12px; }
.detail-interior-link { display:block;margin-bottom:16px;border:1px solid var(--dr-line);border-radius:8px;overflow:hidden;color:var(--ink);text-decoration:none; }
.detail-interior-link img { display:block;width:100%;height:auto; }
.detail-interior-link span { display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;font:600 14px/1.45 var(--sans); }
