/* Developer showcase (3dhouse-demo.html): the building fills the screen like a model on a table; the title, the
   apartment list and the card float over it, so the list never scrolls the building away. Builds on app.css;
   logical properties only (RTL needs no overrides). */
[hidden] { display: none !important; }

.sc-page {
  --sc-bg: #efe9e1;
  --sc-card: rgb(250 247 242 / 0.94);
  --sc-solid: #faf7f2;
  --sc-ink: #2b2622;
  --sc-muted: #6d645b;
  --sc-line: rgb(43 38 34 / 0.12);
  --sc-shadow: 0 12px 34px -14px rgb(43 38 34 / 0.45);
  --st-available: #1f7a4a;
  --st-reserved: #8a5a00;
  --st-sold: #5b6069;
  --sc-panel-w: 26rem;
  --sc-filters-w: 15.5rem;
  /* where the free part of the scene starts and ends, from the left and right edge: the side panels and the gutters
     round them; a collapsed panel leaves only its tab (see "Collapsible side panels") */
  --sc-l: calc(var(--sc-filters-w) + 2rem);
  --sc-r: calc(var(--sc-panel-w) + 2rem);
  --sc-ease: cubic-bezier(0.22, 0.7, 0.2, 1);   /* the side panels slide in 0.22 s; showcase.js tweens the camera over the same time */
  /* glass: a light veil over the scene, blurred and a little more saturated behind it */
  --sc-glass: rgb(250 247 242 / 0.62);
  --sc-glass-edge: rgb(255 255 255 / 0.55);
  --sc-glass-blur: blur(18px) saturate(1.35);
  background: var(--sc-bg);
  color: var(--sc-ink);
}
.sc-page .site-header { background: var(--sc-solid); position: relative; z-index: 2; }
.sc-badge { margin: 0; margin-inline-start: auto; font-size: 0.85rem; color: var(--sc-muted); }

/* ---------- The stage: the whole screen under the header ---------- */

.sc-stage {
  position: relative;
  block-size: calc(100svh - var(--sc-header, 4rem));
  min-block-size: 30rem;
  overflow: hidden; overflow: clip;   /* clip: nothing can scroll the stage sideways (a panel slid off its edge is still inside it) */
  touch-action: none;
  user-select: none;
  background: linear-gradient(#8fb0d4, #f0cfa8 70%, #c9b9a5);
}
.sc-stage canvas { display: block; inline-size: 100%; block-size: 100%; cursor: grab; opacity: 0; transition: opacity 0.6s; }
.sc-stage.is-ready canvas { opacity: 1; }
.sc-stage.is-dragging canvas { cursor: grabbing; }

.sc-title {
  position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem; pointer-events: none;
  inline-size: var(--sc-filters-w); box-sizing: border-box;
  padding: 0.8rem 1rem 0.9rem; border-radius: 14px; background: var(--sc-card); box-shadow: var(--sc-shadow); backdrop-filter: blur(8px);
}
.sc-title > * { pointer-events: auto; }
.sc-title h1 { margin: 0.1rem 0 0.6rem; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
/* a real building's preview (the page names its data file): a longer name, kept on one line beside the filters */
.sc-page[data-project] .sc-title h1 { font-size: clamp(1.6rem, 2.4vw, 1.9rem); }
.sc-eyebrow { margin: 0; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-muted); }
.sc-counts { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; }
.sc-title .sc-status { padding: 0.12rem 0.45rem; font-size: 0.72rem; gap: 0.3rem; }

.sc-hint {
  position: absolute; inset-block-end: 5rem; inset-inline-start: calc(var(--sc-l) + (100% - var(--sc-l) - var(--sc-r)) / 2); translate: -50% 0;
  margin: 0; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: rgb(43 38 34 / 0.78); color: #fff; font-size: 0.85rem; pointer-events: none; white-space: nowrap;
  transition: opacity 0.4s, inset-inline-start 0.22s var(--sc-ease);
}
[dir="rtl"] .sc-hint { translate: 50% 0; }
.sc-hint.is-gone { opacity: 0; }
.sc-hint-touch { display: none; }
@media (hover: none) { .sc-hint-mouse { display: none; } .sc-hint-touch { display: inline; } }

.sc-turn { position: absolute; inset-block-end: 1rem; inset-inline-start: 1.5rem; display: flex; gap: 0.35rem; }
.sc-turn-btn {
  display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; padding: 0;
  border: 1px solid var(--sc-line); border-radius: 50%; background: var(--sc-solid); color: var(--sc-ink); cursor: pointer;
  box-shadow: 0 2px 6px -3px rgb(43 38 34 / 0.4); transition: background 0.15s;
}
.sc-turn-btn:hover { background: #fff; }
.sc-turn-btn svg { inline-size: 1.2rem; block-size: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] #sc-left svg, [dir="rtl"] #sc-right svg { scale: -1 1; }
.sc-note { position: absolute; z-index: 3; inset-block-end: 3.7rem; inset-inline-start: 1.5rem; margin: 0; font-size: 0.75rem; color: var(--sc-muted); max-inline-size: 19rem; display: flex; align-items: flex-start; gap: 0.25rem; padding: 0.4rem 0.35rem 0.4rem 0.7rem; border-radius: 12px; background: var(--sc-glass); backdrop-filter: var(--sc-glass-blur); -webkit-backdrop-filter: var(--sc-glass-blur); }
.sc-note-close {
  flex: none; display: grid; place-items: center; inline-size: 1.5rem; block-size: 1.5rem; margin-block: -0.1rem 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--sc-muted); cursor: pointer;
}
.sc-osm { display: none; margin: 0.35rem 0 0; font-size: 0.65rem; color: var(--sc-muted); }
.sc-stage.is-note-off .sc-osm { display: block; }
.sc-note-close:hover { background: var(--sc-line); }
.sc-note-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sc-note-close svg { inline-size: 0.9rem; block-size: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- The view switch: 3D model, floor plans, site plan ---------- */

.sc-modes {
  position: absolute; inset-block-start: 1rem; inset-inline-start: calc(var(--sc-l) + (100% - var(--sc-l) - var(--sc-r)) / 2);
  translate: -50% 0; z-index: 3; display: flex; gap: 0.2rem; padding: 0.25rem;
  border-radius: 999px; background: var(--sc-glass); box-shadow: var(--sc-shadow), inset 0 0 0 1px var(--sc-glass-edge);
  backdrop-filter: var(--sc-glass-blur); -webkit-backdrop-filter: var(--sc-glass-blur);
  transition: inset-inline-start 0.22s var(--sc-ease);
}
[dir="rtl"] .sc-modes { translate: 50% 0; }
.sc-mode { padding: 0.45rem 1rem; border: 0; border-radius: 999px; background: none; color: var(--sc-ink); font: inherit; font-size: 0.88rem; cursor: pointer; white-space: nowrap; }
.sc-mode[aria-pressed="true"] { background: var(--sc-ink); color: #fff; }
.sc-stage:not([data-mode="model"]) .sc-time, .sc-stage:not([data-mode="model"]) .sc-turn, .sc-stage:not([data-mode="model"]) .sc-hint { display: none; }

/* ---------- Floor plans: a glass sheet over the scene between the filters and the list ---------- */

.sc-plans {
  position: absolute; inset-block: 4.4rem 1rem; inset-inline: var(--sc-l) var(--sc-r); z-index: 2;
  transition: inset-inline 0.22s var(--sc-ease);
  display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 1rem;
  border-radius: 16px; background: rgb(250 247 242 / 0.86); box-shadow: var(--sc-shadow), inset 0 0 0 1px var(--sc-glass-edge);
  backdrop-filter: var(--sc-glass-blur); -webkit-backdrop-filter: var(--sc-glass-blur);
}
.sc-plans-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.sc-plans-bar .sc-seg button { flex: 0 0 auto; padding-inline: 1rem; }
.sc-floor-step { display: flex; align-items: center; gap: 0.4rem; }
.sc-step { inline-size: 2rem; block-size: 2rem; border: 1px solid var(--sc-line); border-radius: 50%; background: #fff; color: var(--sc-ink); font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.sc-step:disabled { opacity: 0.35; cursor: default; }
#sc-floor-out { min-inline-size: 4.6rem; text-align: center; font-weight: 600; }
.sc-plan-wrap { flex: 1; min-block-size: 0; display: grid; place-items: center; }
.sc-plan-wrap svg { inline-size: 100%; block-size: 100%; }
.sc-plan-unit { cursor: pointer; }
.sc-plan-unit .fill { transition: fill-opacity 0.15s; }
.sc-plan-unit:hover .fill, .sc-plan-unit.is-hover .fill { fill-opacity: 0.5; }
.sc-plan-unit.is-picked .edge { stroke-width: 0.35; }
.sc-plan-unit.is-dim { opacity: 0.3; }
.sc-plan-legend { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.sc-plan-north { margin-inline-start: auto; font-size: 0.8rem; font-weight: 600; color: var(--sc-muted); }

/* ---------- Site plan: labels on the towers seen from above ---------- */

.sc-site { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sc-site-tag {
  position: absolute; translate: -50% -50%; pointer-events: auto;
  padding: 0.5rem 0.8rem; border: 0; border-radius: 12px; background: var(--sc-glass); color: var(--sc-ink);
  box-shadow: var(--sc-shadow), inset 0 0 0 1px var(--sc-glass-edge); backdrop-filter: var(--sc-glass-blur); -webkit-backdrop-filter: var(--sc-glass-blur);
  font: inherit; font-size: 0.85rem; text-align: start; cursor: pointer;
}
.sc-site-tag strong { display: block; font-size: 1.05rem; }
.sc-site-tag:hover { background: rgb(255 255 255 / 0.85); }
.sc-site-north { position: absolute; inset-block-start: 4.6rem; inset-inline-end: var(--sc-r); padding: 0.4rem 0.6rem; border-radius: 10px; background: var(--sc-glass); font-weight: 700; font-size: 0.8rem; }

/* ---------- Time of day: a slider at the bottom of the free part of the scene ---------- */

.sc-time {
  position: absolute; inset-block-end: 1rem; inset-inline-start: calc(var(--sc-l) + (100% - var(--sc-l) - var(--sc-r)) / 2); translate: -50% 0;
  display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border-radius: 999px; background: var(--sc-card); box-shadow: var(--sc-shadow); backdrop-filter: blur(8px);
  transition: inset-inline-start 0.22s var(--sc-ease);
}
[dir="rtl"] .sc-time { translate: 50% 0; padding: 0.4rem 0.4rem 0.4rem 0.9rem; }
.sc-time-play {
  display: grid; place-items: center; inline-size: 2.2rem; block-size: 2.2rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--sc-ink); color: #fff; cursor: pointer;
}
.sc-time-play svg { inline-size: 1rem; block-size: 1rem; fill: currentColor; }
.sc-time-play .i-pause, .sc-time-play[aria-pressed="true"] .i-play { display: none; }
.sc-time-play[aria-pressed="true"] .i-pause { display: block; }
.sc-time-sun { inline-size: 1.15rem; block-size: 1.15rem; fill: none; stroke: #c0782a; stroke-width: 1.8; stroke-linecap: round; flex: none; }
#sc-hour {
  --fill: 76%;
  inline-size: clamp(9rem, 22vw, 17rem); block-size: 0.35rem; margin: 0; appearance: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #f3b37a 0%, #7fb0de 30%, #8dbbe6 60%, #f08c5a 85%, #2c3360 100%);
}
#sc-hour::-webkit-slider-thumb { appearance: none; inline-size: 1.15rem; block-size: 1.15rem; border-radius: 50%; background: #fff; border: 3px solid var(--sc-ink); box-shadow: 0 1px 4px rgb(0 0 0 / 0.3); }
#sc-hour::-moz-range-thumb { inline-size: 1rem; block-size: 1rem; border-radius: 50%; background: #fff; border: 3px solid var(--sc-ink); }
#sc-hour:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
#sc-hour-out { min-inline-size: 2.9rem; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9rem; }

/* ---------- The card next to the flat: fades in and out quickly ---------- */

.sc-card {
  position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 3;
  inline-size: 16.5rem; padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 12px; background: var(--sc-solid); box-shadow: var(--sc-shadow);
  pointer-events: none; font-size: 0.9rem;
  opacity: 0; scale: 0.97; transition: opacity 0.14s ease-out, scale 0.14s ease-out;
}
.sc-card.is-on { opacity: 1; scale: 1; }
.sc-card.is-on.is-pinned { pointer-events: auto; }
.sc-card p { margin: 0; }
.sc-card-head { display: flex; align-items: center; gap: 0.5rem; margin-block-end: 0.25rem; }
.sc-card-no { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.6rem; font-weight: 500; line-height: 1; }
.sc-card-head .sc-status, .sc-card-head .sc-card-close { flex: none; }
.sc-card-close {
  inline-size: 1.8rem; block-size: 1.8rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--sc-muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.sc-card-close:hover { background: var(--sc-line); }
.sc-card-line { color: var(--sc-muted); }
.sc-card-price { font-size: 1.05rem; font-weight: 500; }
/* the flat's plan: a square, the drawing scaled to fit it whatever its proportions (the picture is square itself, showcase-state.js planBox) */
.sc-card-plan { margin-block: 0.5rem; aspect-ratio: 1; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--sc-line); }
.sc-card-plan:empty { background: linear-gradient(90deg, #fff, #f3eee7, #fff); }
.sc-card-plan img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
/* the bottom row: the price on the left, the walk button on the right (the button alone sits at the right) */
.sc-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.6rem; margin-block-start: 0.6rem; }
.sc-walk { display: flex; align-items: center; justify-content: center; text-align: center; }   /* the text centred both ways (the embed and the plain cards: the whole width) */
.sc-card-foot .sc-walk { display: inline-flex; margin-inline-start: auto; min-block-size: 36px; padding: 0.3rem 16px; font-size: 13px; line-height: 1.25; }
.sc-card-cta { padding: 0.5rem; border-radius: var(--radius); background: var(--sc-ink); color: #fff; font-weight: 600; text-align: center; }
.sc-card-tip { margin-block-start: 0.35rem !important; font-size: 0.78rem; color: var(--sc-muted); text-align: center; }
.sc-alt {
  inline-size: 100%; padding: 0.55rem; border: 1px solid var(--sc-line); border-radius: var(--radius);
  background: #fff; color: var(--sc-ink); font: inherit; cursor: pointer;
}
.sc-alt:hover { border-color: var(--sc-ink); }
/* a flat the current filters leave out: the card goes grey, with the reasons on a band across its top */
.sc-card.is-filtered { background: #e4e0da; }
.sc-card.is-filtered > :not(.sc-card-filtered) { opacity: 0.6; filter: grayscale(1); }
.sc-card-filtered {
  margin: -0.75rem -0.85rem 0.6rem !important; padding: 0.45rem 0.85rem; border-radius: 12px 12px 0 0;
  background: var(--sc-ink); color: #fff; font-size: 0.78rem; line-height: 1.35;
}
.sc-card-filtered strong { display: block; font-size: 0.82rem; letter-spacing: 0.02em; }

/* status: a word and a mark, never colour alone */
.sc-status {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap; background: rgb(255 255 255 / 0.75);
}
.sc-status::before { content: ""; inline-size: 0.55rem; block-size: 0.55rem; border-radius: 50%; background: currentColor; flex: none; }
.sc-status[data-status="available"] { color: var(--st-available); }
.sc-status[data-status="reserved"] { color: var(--st-reserved); }
.sc-status[data-status="reserved"]::before { background: transparent; border: 2px solid currentColor; }
.sc-status[data-status="sold"] { color: var(--st-sold); }
.sc-status[data-status="sold"]::before { border-radius: 1px; inline-size: 0.6rem; block-size: 2px; }

/* ---------- The apartment list: a panel on the right, over the scene ---------- */

.sc-panel {
  position: absolute; inset-block: 1rem; inset-inline-end: 1rem; z-index: 2;
  inline-size: var(--sc-panel-w);
  display: flex; flex-direction: column;
  border-radius: 16px; background: var(--sc-glass); box-shadow: var(--sc-shadow), inset 0 0 0 1px var(--sc-glass-edge);
  backdrop-filter: var(--sc-glass-blur); -webkit-backdrop-filter: var(--sc-glass-blur);
  overflow: hidden;
}
.sc-panel-head {
  display: flex; align-items: baseline; gap: 0.75rem; padding: 1rem 1.1rem 0.4rem;
  border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: default;
}
.sc-panel-title { font-size: 1.25rem; font-weight: 500; }
.sc-shown { font-size: 0.82rem; color: var(--sc-muted); }
.sc-panel-chev { display: none; }
.sc-panel-body { display: flex; flex-direction: column; min-block-size: 0; flex: 1; }
/* ---------- Filters: a glass panel on the left, under the project's name ---------- */

.sc-filters {
  position: absolute; inset-block-start: var(--sc-filters-top, 10.8rem); max-block-size: calc(100% - var(--sc-filters-top, 10.8rem) - 8.2rem);   /* under the title card (showcase.js sets --sc-filters-top to its real height); room for the note under it */ inset-inline-start: 1rem; z-index: 2;
  inline-size: var(--sc-filters-w); overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem 1rem;
  border-radius: 16px; background: var(--sc-glass); box-shadow: var(--sc-shadow), inset 0 0 0 1px var(--sc-glass-edge);
  backdrop-filter: var(--sc-glass-blur); -webkit-backdrop-filter: var(--sc-glass-blur);
}
.sc-filters-head { display: flex; align-items: baseline; justify-content: space-between; margin-block-end: 0.3rem; }
.sc-filters-title { margin: 0; font-size: 1.05rem; font-weight: 500; }
.sc-reset { padding: 0; border: 0; background: none; color: var(--sc-muted); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.sc-filter-label { margin: 0.55rem 0 0.15rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-muted); }
.sc-seg { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.sc-seg button {
  flex: 1 0 auto; min-inline-size: 2.3rem; padding: 0.38rem 0.6rem; border: 1px solid var(--sc-line); border-radius: 999px;
  background: rgb(255 255 255 / 0.7); color: var(--sc-ink); font: inherit; font-size: 0.82rem; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.sc-seg button[aria-pressed="true"] { background: var(--sc-ink); color: #fff; border-color: var(--sc-ink); }
/* a range with two thumbs: two range inputs on one track, only their thumbs take the pointer */
.sc-range { margin-block-start: 0.55rem; }
.sc-range-head { display: flex; justify-content: space-between; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-muted); }
.sc-range-val { letter-spacing: 0; text-transform: none; color: var(--sc-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-range-track { position: relative; block-size: 1.5rem; }
.sc-range-track::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%; block-size: 4px; translate: 0 -50%; border-radius: 4px; background: rgb(43 38 34 / 0.15); }
.sc-range-fill { position: absolute; inset-block-start: 50%; block-size: 4px; translate: 0 -50%; border-radius: 4px; background: var(--sc-ink); }
.sc-range input { position: absolute; inset: 0; inline-size: 100%; margin: 0; appearance: none; background: none; pointer-events: none; }
.sc-range input::-webkit-slider-thumb { appearance: none; pointer-events: auto; inline-size: 1.05rem; block-size: 1.05rem; border-radius: 50%; background: #fff; border: 3px solid var(--sc-ink); cursor: pointer; }
.sc-range input::-moz-range-thumb { pointer-events: auto; inline-size: 0.9rem; block-size: 0.9rem; border-radius: 50%; background: #fff; border: 3px solid var(--sc-ink); cursor: pointer; }
.sc-range input:focus-visible { outline: none; }
.sc-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--focus); }
.sc-filters .sc-check { margin-block-start: 0.55rem; }
.sc-stage:not([data-mode="model"]) .sc-only-model { display: none; }
.sc-chips { display: flex; gap: 0.3rem; inline-size: 100%; }
.sc-chip {
  padding: 0.35rem 0.7rem; border: 1px solid var(--sc-line); border-radius: 999px;
  background: #fff; color: var(--sc-ink); font: inherit; font-size: 0.85rem; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.sc-chip[aria-pressed="true"] { background: var(--sc-ink); color: #fff; border-color: var(--sc-ink); }
.sc-check { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; cursor: pointer; }
.sc-check input { inline-size: 1rem; block-size: 1rem; accent-color: var(--sc-ink); }

.sc-table-wrap { flex: 1; min-block-size: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; }
.sc-table { inline-size: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.84rem; }
.sc-table th, .sc-table td { padding: 0.55rem 0.35rem; text-align: start; border-block-end: 1px solid var(--sc-line); white-space: nowrap; }
.sc-table tr > :first-child { padding-inline-start: 0.9rem; }
.sc-table tr > :last-child { padding-inline-end: 0.9rem; }
.sc-table thead th { position: sticky; inset-block-start: 0; background: var(--sc-solid); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-muted); font-weight: 600; z-index: 1; }
.sc-table tbody tr { cursor: pointer; transition: background 0.12s; }
.sc-table tbody th { font-weight: 600; }
.sc-table tbody tr:hover, .sc-table tbody tr.is-hover { background: #fff; }
.sc-table tbody tr.is-picked { background: #fff; box-shadow: inset 3px 0 0 var(--sc-ink); }
[dir="rtl"] .sc-table tbody tr.is-picked { box-shadow: inset -3px 0 0 var(--sc-ink); }
.sc-table tbody tr:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sc-table .sc-status { padding: 0; background: none; }

.sc-why { padding-block: 3rem 4rem; }
.sc-why h2 { font-size: 1.4rem; font-weight: 500; }
.sc-why ul { padding-inline-start: 1.2rem; color: var(--sc-muted); line-height: 1.7; }

/* ---------- A building's preview (a page that names its data file) fills the window ---------- */
/* the demo strip under the header says, always, that none of it is the real thing; the stage takes the rest of the window and the page
   never scrolls (the explainer block that used to sit below the stage is gone). A frame (?embed=1) keeps its own sizing. */
.sc-demo { flex: none; position: relative; z-index: 2; margin: 0; padding: 0.3rem 1rem; text-align: center; font-size: 0.78rem; line-height: 1.35; color: #5c4300; background: #fbeccb; border-block-end: 1px solid rgb(138 90 0 / 0.22); }
html:not(.sc-embed) .sc-page[data-project] { display: flex; flex-direction: column; block-size: 100vh; block-size: 100dvh; overflow: hidden; }
html:not(.sc-embed) .sc-page[data-project] main { flex: 1; min-block-size: 0; display: flex; flex-direction: column; }
html:not(.sc-embed) .sc-page[data-project] .sc-stage { flex: 1; block-size: auto; min-block-size: 0; }
@media (max-width: 900px) { .sc-demo { padding-inline: 0.8rem; font-size: 0.72rem; } }

/* ---------- Collapsible side panels (wide screens): each slides off its edge and leaves a tab to bring it back ---------- */

.sc-edge { display: none; }
@media (min-width: 901px) {
  .sc-edge {
    position: absolute; z-index: 3; display: grid; place-items: center; inline-size: 1.4rem; block-size: 3rem; padding: 0;
    border: 0; background: var(--sc-glass); color: var(--sc-ink); cursor: pointer;
    box-shadow: var(--sc-shadow), inset 0 0 0 1px var(--sc-glass-edge); backdrop-filter: var(--sc-glass-blur); -webkit-backdrop-filter: var(--sc-glass-blur);
    transition: inset-inline 0.22s var(--sc-ease), background 0.15s;
  }
  .sc-edge:hover { background: rgb(255 255 255 / 0.85); }
  .sc-edge:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .sc-edge svg { inline-size: 1.1rem; block-size: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.22s var(--sc-ease); }
  .sc-edge[aria-expanded="false"] svg { rotate: 180deg; }
  [dir="rtl"] .sc-edge svg { scale: -1 1; }
  /* the tab sits on the panel's outer edge; collapsed, it moves to the edge of the stage with it */
  .sc-edge-start {
    inset-block-start: calc(var(--sc-filters-top, 10.8rem) + 0.6rem); inset-inline: calc(1rem + var(--sc-filters-w)) auto;
    border-start-end-radius: 12px; border-end-end-radius: 12px;
  }
  .sc-edge-end {
    inset-block-start: 1.5rem; inset-inline: auto calc(1rem + var(--sc-panel-w));
    border-start-start-radius: 12px; border-end-start-radius: 12px;
  }
  .sc-stage.is-filters-off .sc-edge-start { inset-inline-start: 0; }
  .sc-stage.is-panel-off .sc-edge-end { inset-inline-end: 0; }
  /* the free part of the scene grows to the tab */
  .sc-stage.is-filters-off { --sc-l: 2.4rem; }
  .sc-stage.is-panel-off { --sc-r: 2.4rem; }

  .sc-filters, .sc-panel { transition: translate 0.22s var(--sc-ease), visibility 0s; }
  .sc-stage.is-filters-off .sc-filters { translate: calc(-100% - 1.5rem) 0; visibility: hidden; transition: translate 0.22s var(--sc-ease), visibility 0s 0.22s; }
  .sc-stage.is-panel-off .sc-panel { translate: calc(100% + 1.5rem) 0; visibility: hidden; transition: translate 0.22s var(--sc-ease), visibility 0s 0.22s; }
  [dir="rtl"] .sc-stage.is-filters-off .sc-filters { translate: calc(100% + 1.5rem) 0; }
  [dir="rtl"] .sc-stage.is-panel-off .sc-panel { translate: calc(-100% - 1.5rem) 0; }}
/* panels restored from the last visit: set in place, no slide */
.sc-stage.is-restoring, .sc-stage.is-restoring * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .sc-filters, .sc-panel, .sc-edge, .sc-edge svg, .sc-plans, .sc-modes, .sc-hint, .sc-time { transition: none !important; }
}

/* ---------- Narrow screens: the list is a sheet at the bottom that opens over the scene ---------- */

/* ---------- ?embed=1: the building alone in an iframe (showcase-embed.js sets the class before the first paint) ---------- */

.sc-embed, .sc-embed .sc-page { background: transparent; }
.sc-embed .skip-link, .sc-embed .site-header, .sc-embed .sc-title, .sc-embed .sc-modes, .sc-embed .sc-plans, .sc-embed .sc-site,
.sc-embed .sc-filters, .sc-embed .sc-edge, .sc-embed .sc-hint, .sc-embed .sc-turn, .sc-embed .sc-time, .sc-embed .sc-note, .sc-embed .sc-panel,
.sc-embed .sc-why, .sc-embed .sc-demo { display: none !important; }
/* a vertical swipe scrolls the page around the frame; a sideways drag turns the building */
.sc-embed .sc-stage { block-size: 100vh; min-block-size: 0; background: transparent; touch-action: pan-y; }
/* the card stays beside the flat however narrow the frame (no bottom sheet) */
.sc-embed .sc-card { inset: 0 auto auto 0 !important; inline-size: 11.5rem; display: block; translate: none; padding: 0.6rem 0.75rem 0.7rem; font-size: 0.85rem; }
.sc-embed .sc-card-no { flex: none; overflow: visible; font-size: 1.3rem; }   /* the embed card keeps its own head: the name whole, the status pushed to the right */
.sc-embed .sc-card-head .sc-status { margin-inline-start: auto; }
.sc-embed .sc-card-cta { margin-block-start: 0.45rem !important; padding: 0.35rem; font-size: 0.8rem; }

@media (max-width: 900px) {
  .sc-title { inline-size: auto; }
  .sc-page { --sc-filters-w: 0rem; }
  .sc-filters, .sc-edge-start { display: none !important; }   /* no filters on a phone (owner 2026-11-10): the list alone, and it scrolls */
  .sc-modes { inset-block-start: auto; inset-block-end: 8.3rem; inset-inline-start: 50%; }
  .sc-plans { inset: 0.5rem 0.5rem 4.4rem; }
  .sc-site-north { inset-block-start: auto; inset-block-end: 8.5rem; inset-inline-end: 1rem; }
  .sc-page { --sc-panel-w: 0rem; }
  .sc-badge { display: none; }
  .sc-title { inset-block-start: 0.7rem; inset-inline: 1rem; padding: 0.5rem 0.8rem 0.55rem; border-radius: 12px; }
  .sc-eyebrow { font-size: 0.66rem; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sc-title h1, .sc-page[data-project] .sc-title h1 { margin-block: 0.05rem 0.3rem; font-size: 1.4rem; }
  .sc-counts .sc-status { font-size: 0.72rem; }
  .sc-note { inset-block: 7.6rem auto; inset-inline-start: 1rem; }
  /* the note under the title: one line (cut with an ellipsis), with its close button */
  .sc-page[data-project] .sc-note { inset-block: 7.6rem auto; inset-inline: 1rem; max-inline-size: none; align-items: center; padding: 0.15rem 0.2rem 0.15rem 0.6rem; border-radius: 999px; background: rgba(250, 247, 241, 0.82); }
  .sc-osm { display: block; margin-block-start: 0.2rem; }
  .sc-note-text { flex: 1; min-inline-size: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sc-note-close { inline-size: 2.2rem; block-size: 2.2rem; margin: 0; }
  .sc-turn { display: none; }   /* a finger turns the building; the buttons would crowd the slider */
  .sc-hint { inset-block-end: 8.3rem; inset-inline-start: 50%; }
  .sc-time { inset-block-end: 4.4rem; inset-inline: 0.8rem; translate: none; }
  [dir="rtl"] .sc-time { translate: none; }
  #sc-hour { flex: 1; inline-size: auto; }
  .sc-panel {
    inset-block: auto 0; inset-inline: 0; inline-size: auto; max-block-size: 70%;
    border-radius: 16px 16px 0 0;
    transition: max-block-size 0.25s ease;
  }
  .sc-panel-head { cursor: pointer; padding-block: 0.9rem; align-items: center; flex: none; }
  .sc-panel-chev {
    display: block; margin-inline-start: auto; inline-size: 1.3rem; block-size: 1.3rem;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.2s;
  }
  .sc-panel:not(.is-open) .sc-panel-body { display: none; }
  .sc-panel.is-open .sc-panel-chev { rotate: 180deg; }
  .sc-panel.is-open { block-size: 70%; }
  /* the list scrolls under a finger inside its sheet; the stage's touch-action: none stops at the scroller, and the page does not chain */
  .sc-panel-body { overflow: hidden; }
  .sc-table-wrap { overflow-y: auto; overflow-x: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; padding-block-end: env(safe-area-inset-bottom); }
  .sc-card {
    inset: auto 0.5rem 0.5rem 0.5rem !important; inline-size: auto; z-index: 4;
    display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; column-gap: 0.75rem; align-items: start;
    /* a low sheet: at most 40 % of the stage, what does not fit scrolls inside (touch-action: the stage's none stops at this scroller) */
    max-block-size: 40%; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding-block: 0.6rem 0.7rem;
    translate: 0 1rem; transition: opacity 0.16s ease-out, translate 0.16s ease-out;
  }
  .sc-card.is-on { translate: 0 0; }
  .sc-card > * { grid-column: 1 / -1; }
  /* owner 2026-11-10: on a phone the card says only rooms, area and price (and the status), in the desktop's type size: the floor,
     the balcony, extras, the small plan and the tips stay on the desktop card (the button itself says "sample: a typical flat") */
  .sc-card .sc-card-more, .sc-card .sc-card-plan, .sc-card .sc-card-tip { display: none; }
  .sc-card > .sc-walk, .sc-card .sc-alt { grid-column: 1 / -1; margin-block-start: 0.45rem; padding-block: 0.5rem; }
  .sc-card-foot { margin-block-start: 0.45rem; }
  .sc-card-no { font-size: 1.6rem; }
  .sc-card p { line-height: 1.3; }
  .sc-card-tip { margin-block-start: 0.2rem !important; font-size: 0.74rem; text-align: start; }
  .sc-card-head { padding-inline-end: 2.6rem; }
  /* the close button rides the sheet's top corner, a thumb-sized target */
  .sc-card-close { position: absolute; inset-block-start: 0.35rem; inset-inline-end: 0.35rem; inline-size: 2.4rem; block-size: 2.4rem; font-size: 1.6rem; background: var(--sc-line); color: var(--sc-ink); }
  .sc-card .sc-card-filtered { grid-column: 1 / -1; }
  .sc-card.is-filtered .sc-card-plan { grid-row: 2 / span 5; }
}

/* ---------- Compact layout for a short or narrow computer window (owner 2026-11-23: 1280x569 of page on a 1920x1080 laptop at 150 %) ---------- */
/* A building's preview only (the sample page keeps its layout). Same limits as the viewer's compact layout (view.css): 700 px tall or less, or 1366 px
   wide or less; above 900 px wide, where the side panels exist (a phone's sheet layout is untouched). Text keeps its size: the header and the demo strip
   are thinner, the title card drops the eyebrow (the header's badge says the same words), the panels are narrower and tighter, and the turn buttons
   move up beside the time slider so the filters can use the whole left column. */
@media (min-width: 901px) and (max-height: 700px), (min-width: 901px) and (max-width: 1366px) {
  .sc-page[data-project] { --sc-panel-w: 22rem; --sc-filters-w: 14rem; }
  html:not(.sc-embed) .sc-page[data-project] .header-bar { min-block-size: 2.75rem; padding-block: 0.1rem; }
  .sc-page[data-project] .wordmark { min-block-size: 36px; }
  .sc-page[data-project] .sc-demo { padding-block: 0.15rem; }
  .sc-page[data-project] .sc-title { inset-block-start: 0.6rem; inset-inline-start: 1rem; padding: 0.5rem 0.9rem 0.6rem; }
  .sc-page[data-project] .sc-eyebrow { display: none; }
  .sc-page[data-project] .sc-title h1 { margin-block: 0 0.35rem; }
  .sc-page[data-project] .sc-filters {
    inset-block-start: calc(var(--sc-filters-top, 7rem) - 0.4rem); max-block-size: calc(100% - var(--sc-filters-top, 7rem) - 0.4rem);   /* to the foot of the stage: no turn buttons under it now */
    gap: 0.1rem; padding: 0.55rem 0.8rem 0.65rem; line-height: 1.25;
  }
  .sc-page[data-project] .sc-title { line-height: 1.25; }
  .sc-page[data-project] .sc-filters-head { margin-block-end: 0.1rem; }
  .sc-page[data-project] .sc-filter-label { margin-block: 0.35rem 0.1rem; }
  .sc-page[data-project] .sc-seg { gap: 0.2rem; }
  .sc-page[data-project] .sc-seg button { padding-block: 0.22rem; }
  .sc-page[data-project] .sc-range { margin-block-start: 0.35rem; }
  .sc-page[data-project] .sc-range-track { block-size: 1.25rem; }
  .sc-page[data-project] .sc-filters .sc-check { margin-block-start: 0.35rem; }
  .sc-page[data-project] .sc-edge-start { inset-block-start: calc(var(--sc-filters-top, 7rem) + 0.2rem); }
  .sc-page[data-project] .sc-panel { inset-block: 0.75rem; inset-inline-end: 0.75rem; }
  .sc-page[data-project] .sc-panel-head { padding: 0.65rem 0.9rem 0.25rem; }
  .sc-page[data-project] .sc-table th, .sc-page[data-project] .sc-table td { padding-block: 0.4rem; padding-inline: 0.2rem; }
  .sc-page[data-project] .sc-table tr > :first-child { padding-inline-start: 0.7rem; }
  .sc-page[data-project] .sc-table tr > :last-child { padding-inline-end: 0.7rem; }
  .sc-page[data-project] .sc-edge-end { inset-block-start: 1rem; inset-inline-end: calc(0.75rem + var(--sc-panel-w)); }
  .sc-page[data-project] .sc-modes { inset-block-start: 0.6rem; }
  .sc-page[data-project] .sc-plans { inset-block-start: 3.8rem; inset-block-end: 0.75rem; }
  .sc-page[data-project] .sc-time { inset-block-end: 0.75rem; }
  .sc-page[data-project] #sc-hour { inline-size: clamp(7rem, 16vw, 14rem); }
  .sc-page[data-project] .sc-hint { inset-block-end: 4rem; }
  .sc-page[data-project] .sc-turn { inset-block-end: 0.75rem; inset-inline-start: calc(var(--sc-l) + 0.25rem); gap: 0.25rem; transition: inset-inline-start 0.22s var(--sc-ease); }
  .sc-page[data-project] .sc-turn-btn { inline-size: 2.2rem; block-size: 2.2rem; }
  .sc-page[data-project] .sc-card { inline-size: 15rem; padding: 0.6rem 0.75rem 0.7rem; }
  .sc-page[data-project] .sc-card-plan { margin-block: 0.35rem; }
}
