@font-face { font-family: "Fraunces"; src: url("assets/fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;                   /* one deliberate dark look: the UI floats over the panorama */
  --ground: #141414;
  --gold: #d4aa72;
  --gold-deep: #b98a4c;                   /* chevron on the white arrow disc: gold with enough contrast on white */
  --arrow-disc: #ffffff;
  --gold-ink: #1d1710;
  --ink: #f4f1ea;
  --ink-dim: rgba(244, 241, 234, .72);
  --glass: rgba(18, 18, 18, .62);
  --glass-strong: rgba(18, 18, 18, .82);
  --line: rgba(255, 255, 255, .16);
  --paper: #f6f2ea;
  --paper-ink: #1d1b18;
  --paper-dim: #6b655c;
  --navbar: 40px;
  --gap: 16px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
#viewer { position: absolute; inset: 0; }
button { font: inherit; color: inherit; }
.btn svg, .cmp-grip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* splash until the first panorama is ready */
#splash { position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 10px;
          background: var(--ground); transition: opacity .6s ease; text-align: center; padding: 0 var(--gap); }
#splash.gone { opacity: 0; pointer-events: none; }
.splash-mark { width: 64px; height: 64px; object-fit: contain; animation: breathe 1.8s ease-in-out infinite; }
.splash-title { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .01em; }
.splash-sub { font-size: 13px; color: var(--ink-dim); }
@keyframes breathe { 50% { opacity: .45; } }

/* header */
.top { position: absolute; z-index: 120; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start;
       gap: 12px; padding: calc(var(--gap) + env(safe-area-inset-top)) var(--gap) 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 14px 8px 10px; border-radius: 14px;
         background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.brand-mark { width: 30px; height: 30px; object-fit: contain; flex: none; }
.title { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subtitle { font-size: 12px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subtitle:empty { display: none; }
.actions { display: flex; gap: 8px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
       border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
       font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--glass-strong); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .chip:focus-visible, .cmp-grip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn.icon { width: 40px; padding: 0; }
.btn.primary { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); font-weight: 600; }
.btn.primary:hover { background: #e0b981; }
.btn.ghost { background: transparent; border-color: transparent; backdrop-filter: none; color: var(--paper-ink); }
.btn.wide { width: 100%; }

/* time of day: morning to night */
.tod { position: absolute; z-index: 110; left: var(--gap); bottom: calc(var(--navbar) + 34px + 58px); display: flex; align-items: center; gap: 8px;
       height: 40px; padding: 0 14px; border-radius: 999px; box-sizing: border-box;
       background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.tod-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tod-name { min-width: 76px; font-size: 13px; color: var(--ink); white-space: nowrap; }
#tod-range { -webkit-appearance: none; appearance: none; width: 150px; height: 4px; border-radius: 2px; cursor: pointer;
             background: linear-gradient(90deg, #f3d9a6, #fff6e2 30%, #e5a25d 55%, #4f5f9a 78%, #1b2340); }
#tod-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
#tod-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
#tod-range:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* style switcher */
.styles { position: absolute; z-index: 110; left: var(--gap); bottom: calc(var(--navbar) + 34px);
          display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; max-width: calc(100% - 290px); box-sizing: border-box;
          background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.styles-label { display: none; }
.chips { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid transparent;
        background: transparent; cursor: pointer; font-size: 13.5px; white-space: nowrap; scroll-snap-align: center; color: var(--ink-dim);
        transition: background .15s, color .15s; }
.chip:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper-ink); }
.chip .sw { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .25); }
.chip .tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); }
.chip-compare { height: 36px; flex: none; }
.chip-compare[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* compare overlay: a second viewer, clipped to the right of the handle */
#compare { position: absolute; inset: 0; z-index: 1; pointer-events: none; --x: 50%; }
#compare[hidden] { display: none; }
#compare-viewer { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--ink); box-shadow: 0 0 12px rgba(0, 0, 0, .5); }
.cmp-grip { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid var(--ink);
            background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; cursor: ew-resize; pointer-events: auto; touch-action: none; padding: 0; }
.cmp-label { position: absolute; top: 50%; margin-top: 34px; padding: 5px 10px; border-radius: 8px; background: var(--glass-strong); font-size: 12px; white-space: nowrap; }
.cmp-label.left { right: calc(100% - var(--x) + 12px); }
.cmp-label.right { left: calc(var(--x) + 12px); }

/* small print, toast */
.disclaimer { position: absolute; z-index: 110; left: calc(var(--gap) + 4px); bottom: calc(var(--navbar) + 10px); max-width: calc(100% - 300px); font-size: 11px; line-height: 1.35;
              color: var(--ink-dim); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); pointer-events: none; }
.toast { position: absolute; z-index: 130; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); padding: 10px 16px; border-radius: 12px;
         background: var(--glass-strong); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-align: center; max-width: calc(100% - 48px); }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* enquiry */
dialog { border: none; border-radius: 18px; padding: 0; width: min(400px, calc(100vw - 32px)); background: var(--paper); color: var(--paper-ink);
         box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }
dialog::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px); }
dialog form { padding: 20px; display: grid; gap: 12px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin: -6px -8px -4px 0; }
.dlg-head strong { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.dlg-context { margin: 0; font-size: 13px; color: var(--paper-dim); }
dialog label { display: grid; gap: 4px; font-size: 13px; color: var(--paper-dim); }
dialog input:not([type=checkbox]), dialog textarea { font: inherit; font-size: 15px; color: var(--paper-ink); background: #fff; border: 1px solid #d9d2c6;
         border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
dialog input:focus, dialog textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
dialog textarea { resize: vertical; }
.consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px !important; font-size: 12px !important; line-height: 1.4; }
.consent input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: #8a6a3f; }
.consent a { color: var(--paper-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 13px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: #2f5d4a; }
.form-status.err { color: #a03a2a; }
dialog .btn.primary { height: 46px; font-size: 15px; }

/* Photo Sphere Viewer skin */
.psv-navbar { background: rgba(18, 18, 18, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.psv-caption-content { font-size: 13px; }
.psv-loader { color: var(--gold); }
.tour-arrow { width: 100%; height: 100%; cursor: pointer; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); transition: transform .15s ease; }
.tour-arrow svg { display: block; width: 100%; height: 100%; }
.tour-arrow .ta-disc { fill: var(--arrow-disc); stroke: var(--gold); stroke-opacity: .5; stroke-width: 1.5; }
.tour-arrow .ta-chev { fill: none; stroke: var(--gold-deep); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.tour-arrow:hover { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .tour-arrow { transition: none; } }

/* phones and narrow embeds: styles row moves under the header */
@media (max-width: 900px) {
  .styles { left: var(--gap); right: var(--gap); max-width: none; top: calc(var(--gap) + 64px + env(safe-area-inset-top)); bottom: auto; border-radius: 14px; }
  .tod { bottom: calc(var(--navbar) + 12px); }
  #tod-range { width: 120px; }
  .chips { flex: 1; }
  .disclaimer { max-width: calc(100% - 90px); }
}
@media (max-width: 560px) {
  :root { --gap: 12px; }
  .title { font-size: 15px; }
  .brand { padding: 6px 12px 6px 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .btn#book { padding: 0 14px; }
  .chip { padding: 0 12px 0 6px; font-size: 13px; }
  .chip-compare .lbl { display: none; }
}

/* depth walk between viewpoints: its own canvas over the panorama while moving */
.walk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; display: none; opacity: 1; transition: opacity .2s linear; }
.walk-canvas.on { display: block; }
.walking .psv-virtual-tour-link, .walking .psv-virtual-tour-arrows { opacity: 0 !important; pointer-events: none; transition: opacity .15s; }

/* ---------- Stanza theme (tour.json "theme": "stanza"): Geist, Crna on Bela, square corners, hairlines, Opeka only for focus ---------- */
@font-face { font-family: "Geist"; src: url("assets/Geist.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
[data-theme="stanza"] {
  color-scheme: light;
  --ground: #f4f4f4; --ink: #111111; --ink-dim: #5f5f5f; --line: #111111;
  --glass: rgba(255, 255, 255, .96); --glass-strong: #ffffff;
  --gold: #a8432b; --gold-deep: #111111; --arrow-disc: #ffffff; --gold-ink: #ffffff;
  --paper: #ffffff; --paper-ink: #111111; --paper-dim: #5f5f5f;
  --serif: "Geist", system-ui, sans-serif; --sans: "Geist", system-ui, sans-serif;
}
[data-theme="stanza"] .brand, [data-theme="stanza"] .btn, [data-theme="stanza"] .styles, [data-theme="stanza"] .tod, [data-theme="stanza"] .chip,
[data-theme="stanza"] dialog, [data-theme="stanza"] dialog input, [data-theme="stanza"] dialog textarea, [data-theme="stanza"] .cmp-label,
[data-theme="stanza"] .toast, [data-theme="stanza"] .chip .sw, [data-theme="stanza"] .chip .tag, [data-theme="stanza"] .cmp-grip { border-radius: 0; }
[data-theme="stanza"] .brand, [data-theme="stanza"] .btn, [data-theme="stanza"] .styles, [data-theme="stanza"] .tod {
  backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid #111111; }
[data-theme="stanza"] .brand { gap: 14px; padding: 10px 16px 10px 14px; }
[data-theme="stanza"] .brand-mark { width: auto; height: 20px; padding-right: 14px; border-right: 1px solid #e3e3e3; }
[data-theme="stanza"] .title { font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="stanza"] .subtitle { font-size: 12px; margin-top: 2px; }
[data-theme="stanza"] .btn { height: 38px; padding: 0 14px; background: #ffffff; color: #111111; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
[data-theme="stanza"] .btn.icon { width: 38px; padding: 0; }
[data-theme="stanza"] .btn:hover, [data-theme="stanza"] .btn.primary, [data-theme="stanza"] .chip-compare[aria-pressed="true"] { background: #111111; color: #ffffff; border-color: #111111; }
[data-theme="stanza"] .btn.primary:hover { background: #2a2a2a; }
[data-theme="stanza"] .btn:active { transform: none; }
[data-theme="stanza"] .btn.ghost { background: transparent; border-color: transparent; color: #111111; }
[data-theme="stanza"] .styles { padding: 4px; gap: 4px; }
[data-theme="stanza"] .chip { height: 32px; padding: 0 12px 0 8px; color: #5f5f5f; font-size: 13px; }
[data-theme="stanza"] .chip:hover { background: #f4f4f4; color: #111111; }
[data-theme="stanza"] .chip[aria-checked="true"] { background: #111111; color: #ffffff; }
[data-theme="stanza"] .chip .sw { width: 14px; height: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .6); }
[data-theme="stanza"] .chip .tag { background: #a8432b; color: #ffffff; }
[data-theme="stanza"] .chip-compare { height: 32px; }
[data-theme="stanza"] #tod-range::-webkit-slider-thumb { background: #ffffff; border-color: #111111; }
[data-theme="stanza"] #tod-range::-moz-range-thumb { background: #ffffff; border-color: #111111; }
[data-theme="stanza"] .cmp-line { background: #ffffff; }
[data-theme="stanza"] .cmp-grip { background: #111111; color: #ffffff; border: 2px solid #ffffff; }
[data-theme="stanza"] .cmp-label, [data-theme="stanza"] .toast { background: #ffffff; color: #111111; border: 1px solid #111111; }
[data-theme="stanza"] .disclaimer { color: rgba(255, 255, 255, .92); }
[data-theme="stanza"] dialog { box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
[data-theme="stanza"] .dlg-head strong { font-weight: 500; font-size: 20px; }
[data-theme="stanza"] dialog input:not([type=checkbox]), [data-theme="stanza"] dialog textarea { border-color: #111111; }
[data-theme="stanza"] .consent input { accent-color: #111111; }
[data-theme="stanza"] #splash { background: #ffffff; color: #111111; gap: 18px; }
[data-theme="stanza"] .splash-mark { width: 200px; height: auto; animation-duration: 2.4s; }
[data-theme="stanza"] .splash-title { font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; padding-top: 16px; border-top: 1px solid #111111; }
[data-theme="stanza"] .splash-sub { color: #5f5f5f; }
[data-theme="stanza"] .psv-navbar { background: rgba(17, 17, 17, .78); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="stanza"] .psv-loader { color: #ffffff; }
[data-theme="stanza"] .tour-arrow .ta-disc { fill: #ffffff; stroke: #111111; stroke-opacity: .9; stroke-width: 1.5; }
[data-theme="stanza"] .tour-arrow .ta-chev { stroke: #111111; stroke-linecap: square; stroke-linejoin: miter; }
@media (max-width: 900px) { [data-theme="stanza"] .styles { border-radius: 0; } }
@media (max-width: 560px) {
  [data-theme="stanza"] .brand-mark { height: 16px; padding-right: 10px; }
  [data-theme="stanza"] .brand { gap: 10px; padding: 8px 12px 8px 10px; }
}

/* phones: nothing may be wider than the screen; the header shrinks instead of spilling out */
html, body { overflow-x: hidden; max-width: 100vw; }
.brand { flex: 1 1 0; min-width: 0; }
.brand > div { min-width: 0; }
.actions { flex: none; }
[data-theme="stanza"] .btn.primary, [data-theme="stanza"] .btn.primary * { color: #ffffff !important; -webkit-text-fill-color: #ffffff; }
.chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
@media (max-width: 560px) {
  .subtitle { display: none; }
  .btn#book { padding: 0 10px; font-size: 11px; letter-spacing: .04em; }
  [data-theme="stanza"] .btn { height: 36px; padding: 0 10px; }
  [data-theme="stanza"] .btn.icon { width: 36px; padding: 0; }
  .top { gap: 8px; }
}
.brand { overflow: hidden; }
.brand > div { flex: 1 1 auto; overflow: hidden; }
@media (max-width: 560px) {
  .brand { flex: 0 0 auto; padding-right: 10px; }
  .brand > div { display: none; }
  .top { justify-content: space-between; }
  .actions { margin-left: auto; }
}

/* submit button: brand red, white text, readable on any panorama */
[data-theme="stanza"] .btn.primary { background: #E52600; border-color: #E52600; color: #fff; }
[data-theme="stanza"] .btn.primary:hover, [data-theme="stanza"] .btn.primary:active { background: #B81E00; border-color: #B81E00; }
.disclaimer[hidden] { display: none; }

/* embedded in the site's dialog: the close button sits in the header, the share link makes room on phones */
#close-tour[hidden] { display: none; }
@media (max-width: 560px) { .embedded #share { display: none; } }

/* plan card */
.tmap { position: absolute; z-index: 115; top: calc(var(--gap) + 66px + env(safe-area-inset-top)); right: var(--gap); width: 252px; box-sizing: border-box; padding: 10px;
        border-radius: 16px; background: rgba(24, 24, 24, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff;
        font-family: var(--sans); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: width .25s ease; }
.tmap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tmap-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tmap-tabs { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.tmap-tabs button { height: 30px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .75); font-size: 13px; cursor: pointer; }
.tmap-tabs button.on { background: #fff; color: #111; }
.tmap-x { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 8px; }
.tmap-x:hover { background: rgba(255, 255, 255, .12); }
.tmap-body { position: relative; height: 196px; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .28); }
.tmap-body .psv-map { position: relative !important; inset: auto !important; margin: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; box-shadow: none; transition: none; }
.tmap-body .psv-map__container { background: transparent; }
.tmap-body .psv-map__toolbar, .tmap-body .psv-map__button { display: none; }
.tmap-foot { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 10px; padding: 2px 4px 0; border: 0; background: none; color: #fff; font-size: 14px; cursor: pointer; }
.tmap-foot svg { transition: transform .2s; }
.tmap--min .tmap-body { display: none; }
.tmap--min .tmap-foot svg { transform: rotate(180deg); }
.tmap--big { width: min(720px, calc(100vw - 2 * var(--gap))); }
.tmap--big .tmap-body { height: min(520px, 58vh); }
@media (max-width: 900px) { .tmap { top: calc(var(--gap) + 128px + env(safe-area-inset-top)); width: 220px; } .tmap-body { height: 160px; } }
[data-theme="stanza"] .tmap { border-radius: 16px; }
.tmap-body .psv-map__overlay { display: none; }

/* bottom style banner: dark rounded bar with thumbnail cards */
.styles { left: 50%; transform: translateX(-50%); bottom: calc(var(--navbar) + 16px); width: min(900px, calc(100% - 2 * (var(--gap) + 130px))); max-width: none; min-width: 520px;
          padding: 8px 10px; gap: 12px; border-radius: 20px; background: rgba(24, 24, 24, .86); border: 0; color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.styles-label { display: flex; align-items: center; flex: none; padding: 0 6px 0 10px; font-size: 13px; color: #fff; white-space: nowrap; }
.chips { gap: 8px; -webkit-mask-image: none; mask-image: none; flex: 1; }
.chip { position: relative; flex: none; width: 118px; height: 66px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #2a2a2a; color: #fff; }
.chip:hover { background: #2a2a2a; color: #fff; }
.chip .th { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip .sw { display: none; }
.chip .th ~ .nm, .chip .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; text-align: center; font-size: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.chip .tag { position: absolute; top: 4px; left: 4px; z-index: 2; background: #fff; color: #111; }
.chip .ck { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; display: none; fill: #111; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip .ck circle { stroke: none; fill: rgba(17, 17, 17, .85); }
.chip[aria-checked="true"] { background: #2a2a2a; color: #fff; border-color: #fff; }
.chip[aria-checked="true"] .ck { display: block; }
.chip-compare { height: 36px; flex: none; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px; }
.chip-compare[aria-pressed="true"] { background: #fff; color: #111; }
[data-theme="stanza"] .styles { border-radius: 20px; padding: 8px 10px; gap: 12px; border: 0; }
[data-theme="stanza"] .chip { height: 66px; padding: 0; border-radius: 12px; color: #fff; }
[data-theme="stanza"] .chip:hover, [data-theme="stanza"] .chip[aria-checked="true"] { background: #2a2a2a; color: #fff; }
[data-theme="stanza"] .chip .tag { background: #fff; color: #111; }
[data-theme="stanza"] .chip-compare { height: 36px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; border: 0; }
[data-theme="stanza"] .chip-compare[aria-pressed="true"] { background: #fff; color: #111; }
[data-theme="stanza"] .chip-compare:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.tod { left: auto; right: calc(var(--gap) + 270px); }

/* left rail */
.rail { position: absolute; z-index: 115; left: var(--gap); top: calc(var(--gap) + 66px + env(safe-area-inset-top)); width: 84px; padding: 8px; box-sizing: border-box; display: grid; gap: 4px;
        border-radius: 16px; background: rgba(24, 24, 24, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.rail button { display: grid; justify-items: center; gap: 6px; padding: 12px 2px 9px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .78); font-size: 12px; cursor: pointer; }
.rail button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.rail button.on { background: rgba(255, 255, 255, .16); color: #fff; }
.rail svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-info { position: absolute; z-index: 115; left: calc(var(--gap) + 96px); top: calc(var(--gap) + 66px + env(safe-area-inset-top)); width: 260px; padding: 16px; border-radius: 16px; background: rgba(24, 24, 24, .9); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.rail-info strong { font-size: 15px; font-weight: 600; }
.rail-info p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
@media (max-width: 1200px) { .styles { width: calc(100% - 2 * var(--gap)); min-width: 0; } .tod { right: var(--gap); bottom: calc(var(--navbar) + 100px); left: auto; } }
@media (max-width: 900px) {
  .rail { display: none; }
  .styles { top: calc(var(--gap) + 64px + env(safe-area-inset-top)); bottom: auto; left: var(--gap); transform: none; width: auto; right: var(--gap); }
  .styles-label { display: none; }
  .chip { width: 96px; height: 56px; }
}
.tmap-zoom { position: absolute; right: 8px; bottom: 8px; z-index: 5; display: grid; gap: 4px; }
.tmap-zoom button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: rgba(24, 24, 24, .85); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.tmap-zoom button:hover { background: #fff; color: #111; }
.tmap-zoom svg { width: 15px; height: 15px; }

/* text cursor in Stanza red, as on the rest of the site */
input, textarea { caret-color: #E52600; }

/* ---------- top bar (reference layout): one dark bar across the top ----------
   logo and project on the left, then Deli, a white enquiry button and a round close */
[data-theme="stanza"] .top { --bar-h: 72px; align-items: center; min-height: var(--bar-h); padding: env(safe-area-inset-top) 24px 0 28px; gap: 16px;
  background: rgba(20, 20, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); pointer-events: auto; }
[data-theme="stanza"] .brand { background: transparent; border: 0; padding: 0; gap: 22px; color: #fff; }
[data-theme="stanza"] .brand-mark { height: 26px; padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, .28); filter: brightness(0) invert(1); }
[data-theme="stanza"] .title { color: #fff; font-size: 14px; letter-spacing: .08em; }
[data-theme="stanza"] .subtitle { color: rgba(255, 255, 255, .62); font-size: 13px; margin-top: 3px; }
[data-theme="stanza"] .actions { align-items: center; gap: 10px; }
[data-theme="stanza"] .top .btn { height: 44px; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; gap: 9px; }
[data-theme="stanza"] .top .btn svg { width: 19px; height: 19px; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
[data-theme="stanza"] .top .bar-link { background: transparent; border: 0; color: #fff; padding: 0 14px; }
[data-theme="stanza"] .top .bar-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
[data-theme="stanza"] .top .btn.primary { background: #fff; border: 0; padding: 0 22px; margin-left: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
[data-theme="stanza"] .top .btn.primary, [data-theme="stanza"] .top .btn.primary * { color: #111 !important; -webkit-text-fill-color: #111; }
[data-theme="stanza"] .top .btn.primary:hover { background: #E52600; }
[data-theme="stanza"] .top .btn.primary:hover, [data-theme="stanza"] .top .btn.primary:hover * { color: #fff !important; -webkit-text-fill-color: #fff; }
[data-theme="stanza"] .top #close-tour { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; margin-left: 4px; }
[data-theme="stanza"] .top #close-tour:hover { background: rgba(255, 255, 255, .22); }
/* panels below the bar start under it */
.rail, .rail-info, .tmap { top: calc(72px + var(--gap) + env(safe-area-inset-top)); }
@media (max-width: 900px) { .tmap { top: calc(72px + 70px + env(safe-area-inset-top)); } .styles { top: calc(72px + var(--gap) + env(safe-area-inset-top)); } }
@media (max-width: 560px) {
  [data-theme="stanza"] .top { --bar-h: 60px; padding: env(safe-area-inset-top) 12px 0 14px; gap: 8px; }
  [data-theme="stanza"] .brand-mark { height: 20px; padding-right: 0; border-right: 0; }
  [data-theme="stanza"] .top .btn { height: 38px; font-size: 13px; }
  [data-theme="stanza"] .top .btn.primary { padding: 0 12px; margin-left: 0; }
  [data-theme="stanza"] .top .btn.primary svg { display: none; }
  [data-theme="stanza"] .top #close-tour { width: 38px; height: 38px; }
  .rail, .rail-info, .tmap { top: calc(60px + var(--gap) + env(safe-area-inset-top)); }
  .styles { top: calc(60px + var(--gap) + env(safe-area-inset-top)); }
}

/* ---------- style bar: static pictures, labelled cards, arrows on both sides, soft cut-off edges ---------- */
[data-theme="stanza"] .styles { border-radius: 44px; padding: 10px 14px; gap: 14px; }
.chips-wrap { position: relative; flex: 1; min-width: 0; }
[data-theme="stanza"] .chips, .chips { gap: 14px; scrollbar-width: none; overflow-x: auto; padding: 2px; -webkit-mask-image: none; mask-image: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap.more-right .chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent); }
.chips-wrap.more-left .chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 96px); mask-image: linear-gradient(90deg, transparent, #000 96px); }
.chips-wrap.more-left.more-right .chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent); }
[data-theme="stanza"] .chip { width: 146px; height: 76px; border-radius: 16px; border: 2px solid transparent; background: #2a2a2a; }
.chip .th { width: 100%; height: 100%; object-fit: cover; }
[data-theme="stanza"] .chip .nm, .chip .nm { left: 4px; right: 4px; bottom: 4px; padding: 5px 6px; border-radius: 10px; background: rgba(24, 24, 24, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="stanza"] .chip[aria-checked="true"] { border-color: #fff; }
.chip .ck { top: 6px; right: 6px; width: 22px; height: 22px; fill: none; stroke: #111; stroke-width: 2.4; }
.chip .ck circle { stroke: none; fill: #fff; }
.st-arrow { position: absolute; top: 50%; z-index: 4; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(60, 60, 60, .92); color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transition: background .2s ease; }
.st-arrow:hover { background: #fff; color: #111; }
.st-arrow[hidden] { display: none; }
.st-arrow--prev { left: 2px; }
.st-arrow--next { right: 2px; }
.st-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { [data-theme="stanza"] .styles { border-radius: 20px; } [data-theme="stanza"] .chip { width: 108px; height: 62px; } .chip .nm { font-size: 11px; } }

/* the furniture bar can be put away from the rail ("Oprema"); the rail is desktop only, so is the hiding */
@media (min-width: 901px) {
  .styles { transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .styles.styles--off { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 24px); transition: opacity .25s ease, transform .35s ease, visibility 0s .35s; }
}
@media (prefers-reduced-motion: reduce) { .styles, .styles.styles--off { transition: none; } }

/* "Primerjaj" sits at the left of the style bar as a soft pill with its icon */
[data-theme="stanza"] .styles .chip-compare { height: auto; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; }
[data-theme="stanza"] .styles .chip-compare svg { width: 22px; height: 22px; flex: none; stroke-width: 1.6; }
[data-theme="stanza"] .styles .chip-compare:hover { background: rgba(255, 255, 255, .18); color: #fff; }
[data-theme="stanza"] .styles .chip-compare[aria-pressed="true"] { background: #fff; color: #111; }

/* the style bar fades back after a while untouched; it comes straight back when pointed at */

/* ---------- plan card: close to an icon, open again; + / − zoom; full screen from the button under − ---------- */
.tmap[hidden], .tmap-open[hidden] { display: none !important; }
.tmap { display: flex; flex-direction: column; transition: none; }
.tmap-head { margin-bottom: 8px; padding-left: 4px; }
.tmap-floor { font-size: 14px; font-weight: 500; color: #fff; }
.tmap-x { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.tmap-x:hover { background: rgba(255, 255, 255, .22); }
.tmap-x svg { width: 16px; height: 16px; }
.tmap-open { position: absolute; z-index: 115; top: calc(72px + var(--gap) + env(safe-area-inset-top)); right: var(--gap); width: 52px; height: 52px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 16px; background: rgba(24, 24, 24, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: background .2s ease; }
.tmap-open:hover { background: rgba(60, 60, 60, .92); }
.tmap-open svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tmap-zoom .tmap-full { margin-top: 6px; background: #fff; color: #111; }
.tmap-zoom .tmap-full:hover { background: #E52600; color: #fff; }
.tmap-zoom svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* full screen: the card fills the space between the top bar and the bottom bar */
.tmap.tmap--big { width: auto; left: var(--gap); right: var(--gap); bottom: calc(var(--navbar, 40px) + var(--gap)); z-index: 130; }
.tmap.tmap--big .tmap-body { height: auto; flex: 1; }
@media (max-width: 900px) { .tmap-open { top: calc(72px + 70px + env(safe-area-inset-top)); } }
@media (max-width: 560px) { .tmap-open { top: calc(60px + var(--gap) + 70px + env(safe-area-inset-top)); width: 46px; height: 46px; } }

/* plan card top row: floor name left; zoom in, zoom out, full screen and close on the right, all the same small squares */
.tmap-head .tmap-tools { position: static; display: flex; align-items: center; gap: 6px; }
.tmap-head .tmap-tools button, .tmap-head .tmap-tools .tmap-x { width: 34px; height: 34px; margin: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 19px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.tmap-head .tmap-tools button:hover { background: #fff; color: #111; }
.tmap-head .tmap-tools .tmap-x { margin-left: 6px; }
.tmap-head .tmap-tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* room name at the top centre */
.room-label { position: absolute; z-index: 114; left: 50%; top: calc(72px + var(--gap) + env(safe-area-inset-top)); transform: translateX(-50%); padding: 10px 20px; border-radius: 999px;
  background: rgba(24, 24, 24, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.room-label:empty { display: none; }
@media (max-width: 900px) { .room-label { top: auto; bottom: calc(var(--navbar, 40px) + 12px); } }

/* the viewer never scrolls sideways (a focused button near the edge could shift the whole tour) */
.psv-container { overflow: clip !important; }

/* plan card opens and closes with the same fade-and-slide as the furniture bar */
.tmap { transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.tmap-open { transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), background .2s ease; }
.tmap-open.tmap-open--off { opacity: 0; transform: scale(.85); }
@media (prefers-reduced-motion: reduce) { .tmap, .tmap-open { transition: none; } }

/* walk arrows: lying on the floor (tilted back), pointing into the next room, a little see-through */
.tour-arrow { opacity: .8; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .35)); transition: transform .2s ease, opacity .2s ease; }
.tour-arrow svg { transform: perspective(240px) rotateX(46deg); transform-origin: 50% 60%; }
.tour-arrow:hover { opacity: 1; transform: scale(1.12); }
[data-theme="stanza"] .tour-arrow .ta-disc { fill: rgba(255, 255, 255, .82); stroke: rgba(17, 17, 17, .35); stroke-width: 1; }
[data-theme="stanza"] .tour-arrow .ta-chev { stroke: #111; stroke-width: 6; }

/* plan card: the close button keeps the same gap as the others and has its own colour */
.tmap-head .tmap-tools .tmap-x { margin-left: 0; background: rgba(229, 38, 0, .9); }
.tmap-head .tmap-tools .tmap-x:hover { background: #E52600; color: #fff; }

/* details panel: description and a short fact list; fades and slides in like the plan */
.rail-info { width: 300px; padding: 18px 18px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.rail-info.rail-info--off { opacity: 0; transform: translateX(-12px); pointer-events: none; }
.rail-info strong { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.rail-info p { margin: 10px 0 0; }
.rail-info dl { margin: 14px 0 0; display: grid; gap: 0; }
.rail-info dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.35; }
.rail-info dt { color: rgba(255, 255, 255, .55); }
.rail-info dd { margin: 0; color: #fff; }
.rail-info small { display: block; margin-top: 10px; font-size: 11px; color: rgba(255, 255, 255, .45); }
@media (prefers-reduced-motion: reduce) { .rail-info { transition: none; } }

/* walk arrows: a little larger, floating above the floor (less tilt, shadow further below), soft rings on hover */
.tour-arrow { position: relative; transform: translateY(-14px); filter: drop-shadow(0 20px 10px rgba(0, 0, 0, .32)); }
.tour-arrow svg { transform: perspective(260px) rotateX(34deg); }
.tour-arrow:hover { opacity: 1; transform: translateY(-18px) scale(1.06); }
.tour-arrow::before, .tour-arrow::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85);
  transform: perspective(260px) rotateX(34deg) scale(1); transform-origin: 50% 60%; opacity: 0; pointer-events: none; }
.tour-arrow:hover::before { animation: ta-ring 1.8s cubic-bezier(.2,.7,.2,1) infinite; }
.tour-arrow:hover::after { animation: ta-ring 1.8s cubic-bezier(.2,.7,.2,1) .9s infinite; }
@keyframes ta-ring {
  0% { opacity: .75; transform: perspective(260px) rotateX(34deg) scale(1); }
  100% { opacity: 0; transform: perspective(260px) rotateX(34deg) scale(1.9); }
}
@media (prefers-reduced-motion: reduce) { .tour-arrow:hover::before, .tour-arrow:hover::after { animation: none; } }

/* ---------- furniture bar: one set of rules for shown / put away / faded (the faded rule used to override "put away") ---------- */
@media (min-width: 901px) {
  .styles { transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0s; }
  .styles.styles--off, .styles.styles--off.styles--idle { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 28px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.4,0,.2,1), visibility 0s linear .45s; }
}
.styles.styles--idle:not(.styles--off) { opacity: .28; transition: opacity .8s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.styles.styles--idle:not(.styles--off):hover, .styles.styles--idle:not(.styles--off):focus-within { opacity: 1; transition: opacity .2s ease; }

/* ---------- plan card grows out of its icon (top-right corner) and shrinks back into it ---------- */
.tmap { transform-origin: top right; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.tmap.tmap--off { opacity: 0; transform: scale(.18); pointer-events: none; transition: opacity .28s ease .05s, transform .35s cubic-bezier(.4,0,.2,1); }
.tmap-open { transform-origin: top right; }

/* ---------- bars: hover effects ease in with a short delay instead of snapping ---------- */
[data-theme="stanza"] .top .bar-link, .rail button, .tmap-head .tmap-tools button { transition: background .35s ease .06s, color .35s ease .06s, transform .2s ease; }

/* ---------- "Pošljite povpraševanje": red fills in from below on hover, like the buttons on the website ---------- */
/* (mouse only: on phones the clipped, animated fill showed up as a black block over the button) */
@media (hover: hover) and (pointer: fine) {
[data-theme="stanza"] .top .btn.primary { position: relative; overflow: hidden; isolation: isolate; transition: color .3s ease .05s; }
[data-theme="stanza"] .top .btn.primary::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: #E52600; transform: translateY(102%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
[data-theme="stanza"] .top .btn.primary:hover { background: #fff; }
[data-theme="stanza"] .top .btn.primary:hover::before, [data-theme="stanza"] .top .btn.primary:focus-visible::before { transform: none; }
[data-theme="stanza"] .top .btn.primary svg, [data-theme="stanza"] .top .btn.primary span { position: relative; }
}
@media (hover: none), (pointer: coarse) {
  [data-theme="stanza"] .top .btn.primary, [data-theme="stanza"] .top .btn.primary:hover, [data-theme="stanza"] .top .btn.primary:active, [data-theme="stanza"] .top .btn.primary:focus { background: #fff; outline: 0; }
  [data-theme="stanza"] .top .btn.primary, [data-theme="stanza"] .top .btn.primary:hover *, [data-theme="stanza"] .top .btn.primary * { color: #111 !important; -webkit-text-fill-color: #111; }
  [data-theme="stanza"] .top .btn.primary::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tmap, .tmap.tmap--off, .styles, .styles.styles--off, [data-theme="stanza"] .top .btn.primary::before { transition: none; } }

/* plan close button: red, but softer (see-through) */
.tmap-head .tmap-tools .tmap-x { background: rgba(229, 38, 0, .5); }
.tmap-head .tmap-tools .tmap-x:hover { background: rgba(229, 38, 0, .85); }

/* bottom bar: zoom and the instant-transition toggle sit on the right, next to full screen (phones too) */
.psv-navbar { justify-content: flex-end; }
.psv-navbar .psv-caption { display: none; }

/* ---------- phones and small tablets ---------- */
.tour-info-btn, .m-furnish { display: none !important; }
@media (max-width: 900px) {
  /* bottom bar: zoom on the left, room name in the middle, details / transitions / full screen on the right */
  .psv-navbar { justify-content: flex-start; }
  .psv-navbar .tour-info-btn { display: flex !important; margin-left: auto; }
  .room-label { top: auto; bottom: 0; height: var(--navbar); padding: 0 6px; display: flex; align-items: center; z-index: 130; background: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 13px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }

  /* furniture button top left; the style bar sits beside it and slides away / back */
  .m-furnish { display: grid !important; place-items: center; position: absolute; z-index: 116; left: var(--gap); top: calc(72px + var(--gap) + env(safe-area-inset-top)); width: 46px; height: 46px; padding: 0;
    border: 0; border-radius: 14px; background: rgba(24, 24, 24, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: background .3s ease .05s; }
  .m-furnish[aria-pressed="true"] { background: #fff; color: #111; }
  .m-furnish svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .styles { left: calc(var(--gap) + 54px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0s; }
  .styles.styles--off, .styles.styles--off.styles--idle { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-16px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear .35s; }

  /* plan: the icon bottom right above the bar; the card opens from it */
  .tmap-open { top: auto; bottom: calc(var(--navbar) + 12px); right: var(--gap); width: 46px; height: 46px; transform-origin: bottom right; }
  .tmap { top: auto; bottom: calc(var(--navbar) + 12px); transform-origin: bottom right; }
  .tmap.tmap--big { top: calc(72px + var(--gap) + env(safe-area-inset-top)); }

  /* details: a panel above the bottom bar */
  .rail-info { left: var(--gap); right: var(--gap); top: auto; bottom: calc(var(--navbar) + 12px); width: auto; max-height: 58vh; overflow: auto; transform-origin: bottom left; }
  .rail-info.rail-info--off { transform: translateY(12px); }
}
@media (max-width: 560px) {
  .m-furnish { top: calc(60px + var(--gap) + env(safe-area-inset-top)); }
  .tmap.tmap--big { top: calc(60px + var(--gap) + env(safe-area-inset-top)); }
}

/* plan close button: white, so it reads as "close" without shouting */
.tmap-head .tmap-tools .tmap-x { background: #fff; color: #111; }
.tmap-head .tmap-tools .tmap-x:hover { background: #E52600; color: #fff; }

/* desktop bottom bar: zoom on the left, transitions and full screen on the right */
@media (min-width: 901px) {
  .psv-navbar { justify-content: flex-start; }
  .psv-navbar .tour-motion-btn { margin-left: auto; }
  /* room name sits in the top bar, centred, as a soft pill with a red dot */
  .room-label { top: calc(env(safe-area-inset-top) + 17px); z-index: 125; padding: 9px 18px 9px 16px; display: flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 14px; letter-spacing: .01em; }
  .room-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E52600; box-shadow: 0 0 0 4px rgba(229, 38, 0, .22); flex: none; }
}

/* phones: the plan card spans the width, its buttons stay inside */
@media (max-width: 900px) {
  .tmap { left: var(--gap); right: var(--gap); width: auto; max-width: 420px; margin-left: auto; }
  .tmap-body { height: 46vw; max-height: 240px; }
  .tmap-head .tmap-tools { gap: 5px; }
  .tmap-head .tmap-tools button, .tmap-head .tmap-tools .tmap-x { width: 32px; height: 32px; font-size: 18px; }
}
/* desktop: the project name never runs under the room pill in the middle (long subtitles get an ellipsis) */
@media (min-width: 901px) { [data-theme="stanza"] .top .brand { flex: 0 1 auto; max-width: calc(50% - 130px); } }

/* phones: the plan opens as a small card; "povečaj" makes it the phone's full width as a square (1:1), not the whole screen */
@media (max-width: 900px) {
  .tmap { left: auto; right: var(--gap); width: min(290px, calc(100% - 2 * var(--gap))); max-width: none; margin-left: 0; }
  .tmap-body { height: 176px; max-height: none; }
  .tmap.tmap--big { top: auto; left: var(--gap); right: var(--gap); width: auto; bottom: calc(var(--navbar) + 12px); }
  .tmap.tmap--big .tmap-body { flex: none; height: auto; aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) { .tmap.tmap--big { top: auto; } }

/* phones: "Primerjaj" moves to the right end of the style bar as a smaller round button;
   the style bar grows out of the furniture button and shrinks back into it, like the plan does */
@media (max-width: 900px) {
  .styles .chips-wrap { order: 1; }
  [data-theme="stanza"] .styles .chip-compare { order: 2; min-height: 0; width: 40px; height: 40px; padding: 0; justify-content: center; gap: 0; }
  [data-theme="stanza"] .styles .chip-compare .lbl { display: none; }
  [data-theme="stanza"] .styles .chip-compare svg { width: 19px; height: 19px; }
  .styles { transform-origin: top left; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0s; }
  .styles.styles--off, .styles.styles--off.styles--idle { transform: translateX(-54px) scale(.16); opacity: 0;
    transition: opacity .28s ease .05s, transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear .4s; }
}

/* desktop room name: plain text with a small location pin, no box (phones keep their layout) */
@media (min-width: 901px) {
  .room-label { background: none; border: 0; padding: 9px 4px; gap: 8px; font-size: 15px; }
  .room-label::before { width: 16px; height: 16px; border-radius: 0; box-shadow: none; background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.3-7-11.5A7 7 0 0 1 19 9.5C19 14.7 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.6' fill='%23E52600' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat; }
}

/* room name: its own icon per room type on desktop (instead of the generic pin); phones show the name only */
.room-ico { display: none; }
@media (min-width: 901px) {
  .room-label::before { display: none; }
  .room-label .room-ico { display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
}

/* "Primerjaj" at the right end of the style bar on desktop too */
.styles .chips-wrap { order: 1; }
[data-theme="stanza"] .styles .chip-compare { order: 2; }

/* desktop: the enlarged plan is a square (1:1) on the right half of the screen, from the top bar down to the bottom bar */
@media (min-width: 901px) {
  .tmap.tmap--big { left: auto; right: var(--gap); top: calc(72px + var(--gap) + env(safe-area-inset-top)); bottom: calc(var(--navbar, 40px) + var(--gap));
    width: auto; height: auto; aspect-ratio: 1 / 1; max-width: calc(50vw - var(--gap)); }
}

/* compass (look around by turning the phone): leftmost in the bottom bar on phones, hidden on desktop where it cannot work */
@media (max-width: 900px) { .psv-navbar .psv-gyroscope-button { order: -1; } }

/* exit button: always shown; on narrow phones the share button shows its icon only, so everything fits */
@media (max-width: 560px) { [data-theme="stanza"] .top #share span { display: none; } }

/* ---------- right angles: every button, button group and tab is square (26 Nov) ---------- */
button, .btn, .chip, .chip-compare, .fs-btn, .fs-btn::after, .st-next, .st-arrow, .tmap-open, .tmap-x, .tmap-tabs, .tmap-tabs button, .tmap-zoom button, .tmap-foot,
.m-furnish, .rail button, .cmp-grip, .styles, .chips, .tmap-head .tmap-tools button, .tour-info-btn, .tour-motion-btn, .psv-button, .psv-navbar,
body.is-full .styles, body.is-full .styles .chip, [data-theme="stanza"] .btn, [data-theme="stanza"] .chip, [data-theme="stanza"] .chip-compare, [data-theme="stanza"] .top #close-tour,
[data-theme="stanza"] .top .btn.primary, [data-theme="stanza"] .top .btn.primary::before { border-radius: 0 !important; }
.tmap-tabs button.on { border-radius: 0 !important; }

/* everything square: panels, bars, cards, labels and dialogs as well */
html body *, html body *::before, html body *::after { border-radius: 0 !important; }

/* Garden House: walk arrows on the floor stay round (the square rule above is for buttons and panels) */
.tour-arrow::before, .tour-arrow::after { border-radius: 50% !important; }

/* computer, full screen (bottom-right button): the top bar is hidden, so the side menu, plan and plan button sit as close to the top edge as to the side */
@media (min-width: 901px) {
#viewer:fullscreen .rail, #viewer:fullscreen .rail-info, #viewer:fullscreen .tmap, #viewer:fullscreen .tmap-open,
#viewer.psv-fullscreen-emulation .rail, #viewer.psv-fullscreen-emulation .rail-info, #viewer.psv-fullscreen-emulation .tmap, #viewer.psv-fullscreen-emulation .tmap-open { top: calc(var(--gap) + env(safe-area-inset-top)) !important; }
}

/* Oprema: the row fades out earlier near the arrows (hidden right under the arrow), so the arrows stand out */
.chips-wrap.more-right .chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 180px), transparent calc(100% - 44px)); mask-image: linear-gradient(90deg, #000 calc(100% - 180px), transparent calc(100% - 44px)); }
.chips-wrap.more-left .chips { -webkit-mask-image: linear-gradient(90deg, transparent 44px, #000 180px); mask-image: linear-gradient(90deg, transparent 44px, #000 180px); }
.chips-wrap.more-left.more-right .chips { -webkit-mask-image: linear-gradient(90deg, transparent 44px, #000 180px, #000 calc(100% - 180px), transparent calc(100% - 44px)); mask-image: linear-gradient(90deg, transparent 44px, #000 180px, #000 calc(100% - 180px), transparent calc(100% - 44px)); }
/* mouse: grab and drag the row */
@media (hover: hover) and (pointer: fine) { .chips { cursor: grab; } .chips.chips--drag, .chips.chips--drag * { cursor: grabbing !important; user-select: none; } }
.chips.chips--drag { scroll-snap-type: none; scroll-behavior: auto; }

/* compare: the grip sits higher (not dead centre) with the two style names beside it, as dark labels with an A / B tag */
.cmp-grip { top: 24%; }
.cmp-label, [data-theme="stanza"] .cmp-label { top: 24%; margin-top: -17px; height: 34px; padding: 0 14px 0 0; display: flex; align-items: center; gap: 10px;
  background: rgba(17, 17, 17, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; letter-spacing: .02em; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.cmp-label b { display: grid; place-items: center; align-self: stretch; width: 32px; background: #fff; color: #111; font-size: 12px; font-weight: 700; }
.cmp-label.right b { background: #E52600; color: #fff; }
.cmp-label.left { right: calc(100% - var(--x) + 34px); }
.cmp-label.right { left: calc(var(--x) + 34px); }
@media (max-width: 560px) { .cmp-label, [data-theme="stanza"] .cmp-label { font-size: 12px; height: 30px; margin-top: -15px; } .cmp-label b { width: 28px; } }

/* plan card: the floor name stays on one line (e.g. "3. nadstropje") */
.tmap-floor { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* style bar: only as wide as its cards (two styles give a short bar), never wider than before */
@media (min-width: 901px) {
  .styles { width: auto; min-width: 0; max-width: min(900px, calc(100% - 2 * (var(--gap) + 130px))); }
  .styles .chips-wrap { flex: 0 1 auto; }
}
@media (min-width: 901px) and (max-width: 1200px) { .styles { max-width: calc(100% - 2 * var(--gap)); } }

/* phones: the plan button sits at the top right, level with the furniture button; the plan opens downwards from it */
@media (max-width: 900px) {
  .tmap-open, .tmap, .tmap.tmap--big { top: calc(72px + var(--gap) + env(safe-area-inset-top)); bottom: auto; transform-origin: top right; }
  .styles { right: calc(var(--gap) + 54px); }
}
@media (max-width: 560px) {
  .tmap-open, .tmap, .tmap.tmap--big { top: calc(60px + var(--gap) + env(safe-area-inset-top)); }
}

/* listing button: agency logo after the text (on the white button) */
#book-lbl .book-logo { height: 20px; width: auto; vertical-align: middle; margin: -3px 0 0 4px; }
@media (max-width: 560px) { #book-lbl .book-logo { height: 16px; } }
@media (hover: hover) and (pointer: fine) { [data-theme="stanza"] .top .btn.primary:hover .book-logo, [data-theme="stanza"] .top .btn.primary:focus-visible .book-logo { filter: brightness(0) invert(1); transition: filter .3s ease .05s; } }

/* buttons the script hides (e.g. inside another site's page) */
.top #book[hidden], .top #close-tour[hidden] { display: none !important; }
/* compass: never on a mouse device (also when a narrow window or embed gets the phone layout) */
@media (hover: hover) and (pointer: fine) { .psv-navbar .psv-gyroscope-button { display: none !important; } }

/* phones / narrow windows: the style bar is only as wide as its cards too (it still stops before the plan button) */
@media (max-width: 900px) {
  .styles { right: auto; width: auto; max-width: calc(100% - 2 * (var(--gap) + 54px)); }
  .styles .chips-wrap { flex: 0 1 auto; }
}

/* phones / narrow windows: the style bar gets its own row under the furniture and plan buttons, from edge to edge,
   so the cards are not squeezed between the two buttons; text in it cannot be selected by a long press */
@media (max-width: 900px) {
  .styles { top: calc(72px + var(--gap) + 54px + env(safe-area-inset-top)); left: var(--gap); right: auto; max-width: calc(100% - 2 * var(--gap)); }
  .styles.styles--off, .styles.styles--off.styles--idle { transform: translateY(-54px) scale(.16); }
}
@media (max-width: 560px) {
  .styles { top: calc(60px + var(--gap) + 54px + env(safe-area-inset-top)); }
}
.styles, .styles * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* details panel: no scrollbar; on phones it may grow up to just below the top buttons; a fade at the bottom shows there is more */
.rail-info { box-sizing: border-box; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent; }
.rail-info::-webkit-scrollbar { width: 3px; }
.rail-info::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.rail-info::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .45); border-radius: 0; }
.rail-info::-webkit-scrollbar-thumb:hover { background: #fff; }
.rail-info::after { content: ""; position: sticky; display: block; bottom: -16px; height: 64px; margin: -64px -18px -16px; background: linear-gradient(rgba(24, 24, 24, 0), rgba(24, 24, 24, .97) 85%); pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.rail-info.rail-info--more::after { opacity: 1; }
@media (max-width: 900px) { .rail-info { max-height: min(62vh, calc(100% - 72px - 46px - var(--navbar) - 4 * var(--gap) - env(safe-area-inset-top))); } }   /* stays below the Oprema / plan buttons */
@media (max-width: 560px) { .rail-info { max-height: min(62vh, calc(100% - 60px - 46px - var(--navbar) - 4 * var(--gap) - env(safe-area-inset-top))); } }

/* compare handle: on phones in the lower quarter (desktop keeps it in the upper quarter) */
@media (max-width: 900px) { .cmp-grip, .cmp-label, [data-theme="stanza"] .cmp-label { top: 68%; } }
@media (max-width: 560px) { .cmp-label.left { right: calc(100% - var(--x) + 26px); } .cmp-label.right { left: calc(var(--x) + 26px); } .cmp-label, [data-theme="stanza"] .cmp-label { padding-right: 10px; gap: 8px; } }
/* compare labels never run off the screen: they get only the room up to the edge, a long name ends with "…" */
.cmp-label { overflow: hidden; min-width: 0; }
.cmp-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cmp-label b { flex: none; }
.cmp-label.left { max-width: calc(var(--x) - 34px - 12px); }
.cmp-label.right { max-width: calc(100% - var(--x) - 34px - 12px); }
@media (max-width: 560px) { .cmp-label.left { max-width: calc(var(--x) - 26px - 8px); } .cmp-label.right { max-width: calc(100% - var(--x) - 26px - 8px); } }

/* phones / narrow windows (e.g. the agency embed): the room name in the bottom bar has its room icon too */
@media (max-width: 900px) {
  .room-label { gap: 6px; }
  .room-label .room-ico { display: block; width: 16px; height: 16px; flex: none; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
}
@media (max-width: 900px) { .room-label::before { display: none !important; } }   /* the room icon replaces the generic dot */

/* desktop: the style bar opens at the bottom left (under the side menu), not in the middle */
@media (min-width: 901px) {
  .styles { left: var(--gap); transform: none; max-width: min(900px, calc(100% - 2 * var(--gap) - 260px)); }
  .styles.styles--off, .styles.styles--off.styles--idle { transform: translateY(28px); }
}

/* desktop: the disclaimer sits bottom right, so the style bar (bottom left) never covers it */
@media (min-width: 901px) { .disclaimer { left: auto; right: calc(var(--gap) + 4px); text-align: right; max-width: 420px; } }

/* desktop bottom bar: zoom (− slider +) on the right next to the walk and full-screen buttons; the disclaimer takes the left of the bar */
@media (min-width: 901px) {
  .psv-navbar > .psv-zoom-button, .psv-navbar > .psv-zoom-range { order: 1; }
  .psv-navbar > .psv-zoom-button:not(.psv-zoom-range ~ *) { margin-left: auto; }
  .psv-navbar > .tour-motion-btn { order: 2; margin-left: 8px !important; }
  .psv-navbar > .psv-fullscreen-button { order: 3; }
  .disclaimer { left: calc(var(--gap) + 4px) !important; right: auto !important; bottom: 0; height: var(--navbar); display: flex; align-items: center; text-align: left !important;
    max-width: calc(100% - 360px) !important; z-index: 120; pointer-events: none; color: rgba(255, 255, 255, .72); }
}

/* phones: compare shows a column of small style pictures on each side (left picks A, right picks B); the style row hides its cards meanwhile */
.cmp-pick { display: none; }
@media (max-width: 900px) {
  .cmp-pick { position: absolute; z-index: 6; top: calc(72px + var(--gap) + 54px + 64px + env(safe-area-inset-top)); display: grid; gap: 8px; pointer-events: auto; }
  .cmp-pick--a { left: var(--gap); }
  .cmp-pick--b { right: var(--gap); }
  .cmp-pick button { width: 46px; height: 46px; padding: 0; border: 2px solid rgba(255, 255, 255, .25); background: #222; overflow: hidden; cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35); opacity: .78; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
  .cmp-pick button img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
  .cmp-pick button.on { border-color: #fff; opacity: 1; transform: scale(1.06); }
  .cmp-pick--b button.on { border-color: #E52600; }
  .cmp-on .styles .chips-wrap { display: none; }
}
@media (max-width: 560px) { .cmp-pick { top: calc(60px + var(--gap) + 54px + 64px + env(safe-area-inset-top)); } }

/* phones while comparing: no style row (the picture columns do the choosing); the plan button shows an X that ends the comparison */
@media (max-width: 900px) {
  .cmp-on .styles, .cmp-on .styles.styles--idle { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
  .cmp-on .tmap-open svg { display: none; }
  .cmp-on .tmap-open::after { content: ""; width: 20px; height: 20px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
  .cmp-pick { top: calc(72px + var(--gap) + 54px + env(safe-area-inset-top)); }
}
@media (max-width: 560px) { .cmp-pick { top: calc(60px + var(--gap) + 54px + env(safe-area-inset-top)); } }

/* compare: the split position can animate; opening slides the second style in, then the handle pops in */
@property --x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
#compare.cmp-intro { transition: --x 1s cubic-bezier(.22, .8, .2, 1); }
#compare.cmp-pre .cmp-grip, #compare.cmp-pre .cmp-label { opacity: 0; }
#compare.cmp-intro .cmp-grip { animation: cmp-pop .45s cubic-bezier(.2, .7, .2, 1) .55s both; }
#compare.cmp-intro .cmp-line { animation: cmp-fade .4s ease both; }
@keyframes cmp-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes cmp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #compare.cmp-intro { transition: none; } #compare.cmp-intro .cmp-grip, #compare.cmp-intro .cmp-line { animation: none; } }
/* no name labels beside the handle (the style row / picture columns already show which is which) */
.cmp-label { display: none !important; }
#compare.cmp-outro { transition: --x .7s cubic-bezier(.5, 0, .75, .3); }
#compare.cmp-outro .cmp-grip { transition: opacity .2s ease, transform .2s ease; opacity: 0; transform: scale(.7); }
#compare.cmp-outro .cmp-pick { opacity: 0; transition: opacity .2s ease; }
@media (prefers-reduced-motion: reduce) { #compare.cmp-outro { transition: none; } }

/* desktop / tablet landscape: the details panel never runs below the bottom bar (it scrolls, with the thin bar and the fade) */
@media (min-width: 901px) { .rail-info { max-height: calc(100% - 72px - var(--navbar) - 3 * var(--gap) - env(safe-area-inset-top)); } }

/* compass: shown on every touch device (phones and tablets, any width), hidden only with a mouse;
   in the wide layout it sits on the right with zoom, walk and full screen (the disclaimer has the left) */
@media (min-width: 901px) {
  .psv-navbar > .psv-gyroscope-button { order: 2; }
  .psv-navbar > .tour-motion-btn { order: 3; }
  .psv-navbar > .psv-fullscreen-button { order: 4; }
}

/* phones: the compare picture squares are exactly as big as the furniture / plan buttons (border included),
   framed in the same dark grey; the picked one gets a thin white inner ring */
@media (max-width: 900px) {
  .cmp-pick button, .cmp-pick button.on { box-sizing: border-box; width: 46px; height: 46px; border: 3px solid rgba(24, 24, 24, .86); background: rgba(24, 24, 24, .86); transform: none; }
  .cmp-pick button img { box-sizing: border-box; }
  .cmp-pick button.on, .cmp-pick--b button.on { border-color: rgba(24, 24, 24, .86); box-shadow: inset 0 0 0 2px #fff, 0 6px 16px rgba(0, 0, 0, .35); opacity: 1; }
  .cmp-pick button.on img { outline: 2px solid #fff; outline-offset: -2px; }
}
@media (max-width: 900px) { .cmp-on .m-furnish[aria-pressed="true"] { background: rgba(24, 24, 24, .86); color: #fff; } }   /* the row is hidden while comparing, so the button does not look switched on */

/* phones: compare squares with a thin dark border, white when picked; the picked style's name shows beside it */
@media (max-width: 900px) {
  .cmp-pick button, .cmp-pick button.on, .cmp-pick--b button.on { position: relative; overflow: visible; border: 1.5px solid rgba(24, 24, 24, .86); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); outline: none; }
  .cmp-pick button.on, .cmp-pick--b button.on { border-color: #fff; }
  .cmp-pick button.on img { outline: none; }
  .cmp-pick button.on::after { content: attr(data-name); position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
    padding: 5px 8px; font: 500 11px/1 var(--sans); color: #fff; background: rgba(24, 24, 24, .86); border: 1px solid rgba(255, 255, 255, .25); }
  .cmp-pick--a button.on::after { left: calc(100% + 6px); }
  .cmp-pick--b button.on::after { right: calc(100% + 6px); }
}

/* desktop, 3+ styles: comparing shows the first half of the styles bottom left (they set the left side) and the second half bottom right
   (they set the right side), each with a small heading and the style names; the style row steps aside and a close button sits in the middle */
.cmp-close { display: none; }
@media (min-width: 901px) {
  .has-picks.cmp-on .styles, .has-picks.cmp-on .styles.styles--idle { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
  .has-picks .cmp-pick { display: flex; position: absolute; z-index: 6; top: auto; bottom: calc(var(--navbar) + 16px); gap: 8px; padding: 10px; pointer-events: auto;
    background: rgba(24, 24, 24, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: opacity .3s ease; }
  .has-picks .cmp-pick--a { left: var(--gap); }
  .has-picks .cmp-pick--b { right: var(--gap); }
  .has-picks .cmp-pick::before { content: attr(data-title); position: absolute; bottom: calc(100% + 6px); font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
  .has-picks .cmp-pick--a::before { left: 2px; }
  .has-picks .cmp-pick--b::before { right: 2px; }
  .has-picks .cmp-pick button { position: relative; width: 112px; height: 64px; padding: 0; border: 1.5px solid rgba(255, 255, 255, .16); background: #222; overflow: hidden; cursor: pointer; opacity: .8; transition: opacity .2s ease, border-color .2s ease; }
  .has-picks .cmp-pick button img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
  .has-picks .cmp-pick button::after { content: attr(data-name); position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 7px 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font: 500 11px/1 var(--sans); color: #fff; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .72)); pointer-events: none; }
  .has-picks .cmp-pick button:hover { opacity: 1; }
  .has-picks .cmp-pick button.on { opacity: 1; border-color: #fff; }
  .has-picks .cmp-close { display: inline-flex; align-items: center; gap: 8px; position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(var(--navbar) + 16px);
    height: 40px; padding: 0 16px; border: 0; background: rgba(24, 24, 24, .86); color: #fff; font: 500 13px/1 var(--sans); cursor: pointer; pointer-events: auto; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .has-picks .cmp-close:hover { background: #fff; color: #111; }
  .has-picks .cmp-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  #compare.cmp-outro .cmp-close { opacity: 0; transition: opacity .2s ease; }
}
/* narrower desktops / tablets in landscape: smaller cards so the two panels and the close button fit side by side */
@media (min-width: 901px) and (max-width: 1100px) {
  .has-picks .cmp-pick button { width: 96px; height: 54px; }
  .has-picks .cmp-close span { display: none; }
  .has-picks .cmp-close { width: 40px; padding: 0; justify-content: center; }
}

/* desktop: "Zapri primerjavo" sits top right beside the small plan button; when the plan card is open it moves left of the card,
   when the plan is enlarged it hides behind it */
@media (min-width: 901px) {
  .has-picks .cmp-close { top: calc(72px + var(--gap) + 6px + env(safe-area-inset-top)); bottom: auto; left: auto; transform: none;
    right: calc(var(--gap) + 52px + 8px); transition: right .35s cubic-bezier(.2, .7, .2, 1), opacity .2s ease; }
  .psv-container:has(.tmap:not([hidden]):not(.tmap--off)) .cmp-close { right: calc(var(--gap) + var(--tmap-w, 252px) + 8px); }
  .psv-container:has(.tmap.tmap--big:not([hidden])) .cmp-close { opacity: 0; pointer-events: none; }
}
@media (min-width: 901px) and (max-width: 1280px) { .has-picks .cmp-close { width: 40px; padding: 0; justify-content: center; } }

/* desktop: the close button is exactly as tall as the plan button and level with it */
@media (min-width: 901px) { .has-picks .cmp-close { top: calc(72px + var(--gap) + env(safe-area-inset-top)); height: 52px; } }
@media (min-width: 901px) and (max-width: 1280px) { .has-picks .cmp-close { width: 52px; } }

/* details panel: the same space below the last line as above the title (the fade no longer eats the bottom padding) */
.rail-info { padding: 18px; }
.rail-info::after { bottom: -18px; margin: -64px -18px 0; }
.rail-info small { margin-bottom: 0; }
.rail-info { overflow-y: auto; }   /* scrolls inside when the screen is low (desktop too) */

/* compare handle: slightly see-through */
[data-theme="stanza"] .cmp-grip, [data-theme="stanza"] .cmp-grip:hover { background: rgba(17, 17, 17, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }   /* see-through, no hover change */

/* "Zapri primerjavo": the same delayed hover as the plan's X (fills red after a short pause) */
@media (min-width: 901px) {
  .has-picks .cmp-close { transition: background .35s ease .06s, color .35s ease .06s, right .35s cubic-bezier(.2, .7, .2, 1), opacity .2s ease; }
  .has-picks .cmp-close:hover, .has-picks .cmp-close:focus-visible { background: #E52600; color: #fff; }
}

/* desktop compare panels: cards exactly as big as in the style row (146 × 76, same padding and gaps), and an animated hand-over:
   the style row slides down and fades, then the two panels slide in from their sides; closing plays it backwards */
@media (min-width: 901px) {
  .has-picks .cmp-pick { padding: 12px 14px; gap: 14px; }
  .has-picks .cmp-pick button { width: 146px; height: 76px; border-width: 2px; }
  .has-picks .cmp-pick button::after { font-size: 12.5px; padding: 14px 9px 7px; }
  .has-picks .styles { transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0s; }
  .has-picks.cmp-on .styles { transform: translateY(18px) !important; transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s; }
  .has-picks .cmp-pick--a { animation: pick-in-a .5s cubic-bezier(.2, .7, .2, 1) .18s both; }
  .has-picks .cmp-pick--b { animation: pick-in-b .5s cubic-bezier(.2, .7, .2, 1) .26s both; }
  #compare.cmp-outro .cmp-pick--a { animation: pick-out-a .3s ease both; }
  #compare.cmp-outro .cmp-pick--b { animation: pick-out-b .3s ease both; }
}
@media (min-width: 1101px) and (max-width: 1280px) { .has-picks .cmp-pick button { width: 120px; height: 64px; } }
@keyframes pick-in-a { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes pick-in-b { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pick-out-a { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-28px); } }
@keyframes pick-out-b { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) { .has-picks .cmp-pick--a, .has-picks .cmp-pick--b { animation: none; } }
@media (min-width: 901px) { .has-picks .cmp-pick button { box-sizing: border-box; } }   /* border inside the 146 x 76, like the style row cards */

/* full screen (desktop): the top bar is hidden, so "Zapri primerjavo" moves up level with the plan button and side menu */
@media (min-width: 901px) { #viewer:fullscreen .cmp-close, #viewer.psv-fullscreen-emulation .cmp-close { top: calc(var(--gap) + env(safe-area-inset-top)); } }

/* compare: the white line stops at the see-through handle (no line visible behind it) */
#compare { --gy: 24%; }
@media (max-width: 900px) { #compare { --gy: 68%; } }
.cmp-grip, #compare .cmp-grip { top: var(--gy); }
[data-theme="stanza"] .cmp-line { background: linear-gradient(to bottom, #fff calc(var(--gy) - 22px), transparent calc(var(--gy) - 22px), transparent calc(var(--gy) + 26px), #fff calc(var(--gy) + 26px)); }

/* touch devices: no backdrop blur over the panorama canvas (iOS Safari showed black boxes where a blurred bar met a button) */
@media (hover: none), (pointer: coarse) {
  .top, .tmap, .tmap-open, .styles, .m-furnish, .rail, .rail-info, .room-label, .psv-navbar, .cmp-label, .toast, .chips-wrap, .st-arrow, .tod {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  [data-theme="stanza"] .top { background: rgba(20, 20, 20, .94); }
  [data-theme="stanza"] .top .btn.primary { overflow: visible; isolation: auto; box-shadow: none; will-change: auto; }
}
/* phones: the picked style's name shows only for a few seconds after a pick */
@media (max-width: 900px) {
  .cmp-pick button.on::after { opacity: 0; transition: opacity .4s ease; }
  .cmp-pick.show-name button.on::after { opacity: 1; }
}
/* walk animation: the zoom slider handle stays on the resting level ("−") */
.zoom-frozen .psv-zoom-range-handle { left: var(--zh, 0) !important; }

/* desktop: one "Zapri …" button beside the plan button while the style row (Oprema / Slogi) or the comparison is open;
   it moves left of the open plan card, hides behind the enlarged plan, goes up in full screen; phones keep their own X */
.cmp-close { display: none !important; }
.panel-close { display: none; }
@media (min-width: 901px) {
  .panel-open .panel-close { display: inline-flex; align-items: center; gap: 8px; position: absolute; z-index: 114;
    top: calc(72px + var(--gap) + env(safe-area-inset-top)); right: calc(var(--gap) + 52px + 8px); height: 52px; padding: 0 16px; border: 0;
    background: rgba(24, 24, 24, .86); color: #fff; font: 500 13px/1 var(--sans); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: background .35s ease .06s, color .35s ease .06s, right .35s cubic-bezier(.2, .7, .2, 1), opacity .2s ease; }
  .panel-close:hover, .panel-close:focus-visible { background: #E52600; color: #fff; }
  .panel-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
  .psv-container:has(.tmap:not([hidden]):not(.tmap--off)) .panel-close { right: calc(var(--gap) + var(--tmap-w, 252px) + 8px); }
  .psv-container:has(.tmap.tmap--big:not([hidden])) .panel-close { opacity: 0; pointer-events: none; }
  #viewer:fullscreen .panel-close, #viewer.psv-fullscreen-emulation .panel-close { top: calc(var(--gap) + env(safe-area-inset-top)); }
}
@media (min-width: 901px) and (max-width: 1280px) { .panel-open .panel-close { width: 52px; padding: 0; justify-content: center; } .panel-close span { display: none; } }

/* phones in full screen (top bar hidden): the furniture button, the plan button / card, the style row and the compare pictures move up */
@media (max-width: 900px) {
  #viewer:fullscreen .m-furnish, #viewer.psv-fullscreen-emulation .m-furnish,
  #viewer:fullscreen .tmap-open, #viewer.psv-fullscreen-emulation .tmap-open,
  #viewer:fullscreen .tmap, #viewer.psv-fullscreen-emulation .tmap { top: calc(var(--gap) + env(safe-area-inset-top)) !important; }
  #viewer:fullscreen .styles, #viewer.psv-fullscreen-emulation .styles,
  #viewer:fullscreen .cmp-pick, #viewer.psv-fullscreen-emulation .cmp-pick { top: calc(var(--gap) + 54px + env(safe-area-inset-top)) !important; }
  #viewer:fullscreen .rail-info, #viewer.psv-fullscreen-emulation .rail-info { max-height: calc(100% - 46px - var(--navbar) - 4 * var(--gap) - env(safe-area-inset-top)); }
  .m-furnish { z-index: 116; }
}

/* phones: zoom out / zoom in buttons beside the compass (no slider; the viewer would otherwise fold them into a hidden menu) */
@media (max-width: 900px) {
  .psv-navbar > .psv-zoom-button, .psv-navbar > .psv-zoom-button.psv-button--collapsed { display: flex !important; order: -1; }
  .psv-navbar > .psv-zoom-range { display: none !important; }
  .psv-navbar > .psv-gyroscope-button { order: -2; }
}
@media (max-width: 900px) { .room-label { max-width: calc(100% - 2 * 132px) !important; } .room-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } }   /* room name fits between the three buttons on each side */

/* disclaimer: across the whole width (edge to edge with the usual side gap), shown for the first 8 s, then it fades out */
.disclaimer { transition: opacity .8s ease, visibility 0s linear 0s; }
.disclaimer.disclaimer--off { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
@media (max-width: 900px) { .disclaimer { left: var(--gap) !important; right: var(--gap) !important; max-width: none !important; text-align: left; } }
@media (min-width: 901px) { .disclaimer { max-width: calc(100% - 300px) !important; } }

/* compare open / close: the handle is part of the line from the first frame and slides with it (no separate pop-in or fade) */
#compare.cmp-pre .cmp-grip, #compare.cmp-intro .cmp-grip, #compare.cmp-outro .cmp-grip { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
#compare.cmp-intro .cmp-line { animation: none; }

/* plan card: the frame (floor name, buttons, edges) is solid; only the plan area inside stays see-through as before */
.tmap, [data-theme="stanza"] .tmap { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 0 !important; border: 10px solid rgb(24, 24, 24) !important; }
.tmap-head { background: rgb(24, 24, 24); margin: 0 !important; padding: 0 0 8px 4px; }
.tmap-body { background: rgba(24, 24, 24, .86) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (hover: none), (pointer: coarse) { .tmap-body { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(24, 24, 24, .9) !important; } }

/* details panel: scrolls with a finger on iPhones too; dims like the style row when left alone */
.rail-info { -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.rail-info.rail-info--idle:not(.rail-info--off) { opacity: .28; transition: opacity .8s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.rail-info.rail-info--idle:not(.rail-info--off):hover { opacity: 1; transition: opacity .2s ease; }

/* desktop: with the plan enlarged the close button stays visible and moves left of it (the card width var follows the big plan) */
@media (min-width: 901px) { .psv-container:has(.tmap.tmap--big:not([hidden])) .panel-close { opacity: 1; pointer-events: auto; right: calc(var(--gap) + var(--tmap-w, 252px) + 8px); } }

/* plan card: the see-through plan area's corners match the frame's inner curve and a dark hairline covers the seam, so no light from the room flickers around its edge during walks */
.tmap-body { border-radius: 6px !important; outline: 1px solid rgb(24, 24, 24); isolation: isolate; }
/* plan card head: the tool buttons sit a touch tighter so a longer floor name ("1. nadstropje") fits in full */
.tmap-head .tmap-tools { gap: 4px !important; }
.tmap-head .tmap-tools button, .tmap-head .tmap-tools .tmap-x { width: 31px !important; height: 31px !important; }

/* phones / small embeds (e.g. the iframe on qudos.si): the enlarged plan is a square only while it fits; in short, wide windows it stops above the bottom bar */
@media (max-width: 900px) { .tmap.tmap--big .tmap-body { max-height: calc(100dvh - 72px - var(--gap) - env(safe-area-inset-top) - var(--navbar, 40px) - 12px - 66px); min-height: 120px; } }
@media (max-width: 560px) { .tmap.tmap--big .tmap-body { max-height: calc(100dvh - 60px - var(--gap) - env(safe-area-inset-top) - var(--navbar, 40px) - 12px - 66px); } }
