.im-player {
  --project-accent: #baff29;
  --im-ink: #f4f3ef;
  --im-glass: rgba(18, 20, 18, 0.62);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  min-height: 420px;
  min-width: 0;
  background: #121412;
  color: var(--im-ink);
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
}
.im-player * {
  box-sizing: border-box;
}
.im-player button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.im-player [hidden] {
  display: none !important;
}
.im-player :focus-visible {
  outline: 2px solid var(--project-accent);
  outline-offset: 3px;
}
.im-player:fullscreen {
  height: 100vh;
}
/* Where the browser has no fullscreen (iPhone), the player covers the whole window instead. */
.im-player.im-player--expanded {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
html.im-player-expanded,
html.im-player-expanded body {
  overflow: hidden;
}

/* Floating header: four corners over the stage, with a soft shade along the top. */
.im-top {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  transition:
    opacity 0.3s,
    color 0.3s;
}
.im-top::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--top-reach, 84px) + 12px);
  background: linear-gradient(rgba(10, 11, 10, 0.72), rgba(10, 11, 10, 0));
  pointer-events: none;
}
.im-single .im-top {
  display: none;
}
.im-corner {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 40px);
}
.im-corner > * {
  pointer-events: auto;
}
.im-corner--top-left,
.im-corner--top-center,
.im-corner--top-right {
  top: 14px;
}
.im-corner--bottom-left,
.im-corner--bottom-center,
.im-corner--bottom-right {
  bottom: 22px;
}
.im-corner--top-center,
.im-corner--bottom-center {
  left: 50%;
  translate: -50% 0;
  justify-content: center;
}
/* At the middle of a side, elements stack and the menu runs vertically. */
.im-corner--middle-left,
.im-corner--middle-right {
  top: 50%;
  translate: 0 -50%;
  flex-direction: column;
  max-height: calc(100% - var(--top-reach, 84px) - max(24px, var(--bottom-reach, 24px)));
}
/* A long side menu scrolls within the room between the top and bottom elements. */
.im-corner--middle-left .im-menu,
.im-corner--middle-right .im-menu,
.im-corner--middle-left .im-menu-list,
.im-corner--middle-right .im-menu-list {
  min-height: 0;
  max-height: 100%;
}
.im-corner--middle-left .im-menu--icons .im-menu-list,
.im-corner--middle-right .im-menu--icons .im-menu-list {
  flex-wrap: nowrap;
  overflow-y: auto;
  scrollbar-width: none;
}
.im-corner--middle-left {
  left: 20px;
  align-items: flex-start;
}
.im-corner--middle-right {
  right: 20px;
  align-items: flex-end;
}
.im-corner--middle-left .im-menu-list,
.im-corner--middle-right .im-menu-list {
  flex-direction: column;
  overflow-x: visible;
}
.im-corner--middle-left .im-menu--open .im-menu-list,
.im-corner--middle-right .im-menu--open .im-menu-list {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.im-player .im-corner--middle-left .im-menu--open .im-menu-list button {
  border-bottom: 0;
  border-left: 2px solid transparent;
  text-align: left;
}
.im-player .im-corner--middle-right .im-menu--open .im-menu-list button {
  border-bottom: 0;
  border-right: 2px solid transparent;
  text-align: right;
}
.im-player .im-corner--middle-left .im-menu--open .im-menu-list button[aria-current='true'] {
  border-left-color: var(--project-accent);
}
.im-player .im-corner--middle-right .im-menu--open .im-menu-list button[aria-current='true'] {
  border-right-color: var(--project-accent);
}
.im-corner--top-left,
.im-corner--bottom-left {
  left: 20px;
}
.im-corner--top-right,
.im-corner--bottom-right {
  right: 20px;
  justify-content: flex-end;
}
.im-player .im-brand {
  flex: none;
  display: flex;
  align-items: center;
  max-width: calc(180px * var(--logo-scale, 1));
  min-height: 40px;
  border: 0;
  background: none;
  padding: 0;
  font-size: calc(15px * var(--logo-scale, 1));
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.im-brand img {
  display: block;
  max-width: calc(150px * var(--logo-scale, 1));
  max-height: calc(42px * var(--logo-scale, 1));
  object-fit: contain;
}

/* Section menu */
.im-menu {
  position: relative;
  display: flex;
  min-width: 0;
}
.im-player .im-menu .im-menu-toggle {
  display: none;
  flex: none;
  width: calc(50px * var(--icon-scale, 1));
  height: calc(50px * var(--icon-scale, 1));
  min-height: 0;
  padding: 0;
}
.im-player .im-menu-toggle svg {
  flex: none;
  width: calc(26px * var(--icon-scale, 1));
  height: calc(26px * var(--icon-scale, 1));
  stroke-width: 2;
}
.im-menu-list {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.im-menu-list::-webkit-scrollbar {
  display: none;
}
.im-player .im-menu-list button {
  flex: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: calc(10px * var(--menu-scale, 1));
  color: rgba(244, 243, 239, 0.82);
  font-size: calc(13px * var(--menu-scale, 1));
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.im-player .im-menu-list button:hover {
  color: #fff;
}
.im-player .im-menu-list button[aria-current='true'] {
  border-bottom-color: var(--project-accent);
  color: #fff;
}
/* A list behind a button, opening downwards from a top corner and upwards from a bottom one. */
.im-player .im-menu--list .im-menu-toggle {
  display: inline-flex;
}
.im-menu--list .im-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 220px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: rgba(18, 20, 18, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.im-menu--list.is-expanded .im-menu-list {
  display: flex;
}
.im-menu[data-drop='up'] .im-menu-list {
  top: auto;
  bottom: calc(100% + 8px);
}
.im-menu[data-align='center'],
.im-menu--icons[data-align='center'] .im-menu-list {
  justify-content: center;
}
.im-menu--list[data-align='center'] .im-menu-list {
  left: 50%;
  translate: -50% 0;
}
.im-menu[data-align='right'] .im-menu-list {
  left: auto;
  right: 0;
}
.im-player .im-menu--list .im-menu-list button {
  border-bottom: 0;
  border-left: 2px solid transparent;
  border-radius: 6px;
  padding: calc(10px * var(--menu-scale, 1)) calc(12px * var(--menu-scale, 1));
  color: rgba(244, 243, 239, 0.86);
  text-align: left;
  text-shadow: none;
}
.im-player .im-menu--list .im-menu-list button[aria-current='true'] {
  border-left-color: var(--project-accent);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
/* Icons, each section's name appearing beside the pointer. */
.im-menu--icons .im-menu-list {
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}
.im-menu--icons[data-align='right'] .im-menu-list {
  justify-content: flex-end;
}
.im-player .im-menu--icons .im-menu-list button {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(42px * var(--icon-scale, 1));
  height: calc(42px * var(--icon-scale, 1));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--im-glass);
  backdrop-filter: blur(12px);
  color: #fff;
  text-shadow: none;
}
.im-player .im-menu--icons .im-menu-list button svg {
  width: calc(19px * var(--icon-scale, 1));
  height: calc(19px * var(--icon-scale, 1));
}
.im-player .im-menu--icons .im-menu-list button[aria-current='true'] {
  border-color: var(--project-accent);
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
}
.im-menu-tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  padding: 5px 9px;
  border-radius: 6px;
  background: #202420;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.im-menu[data-drop='up'] .im-menu-tip {
  top: auto;
  bottom: calc(100% + 8px);
}
.im-menu[data-drop='right'] .im-menu-tip,
.im-menu[data-drop='left'] .im-menu-tip {
  top: 50%;
  translate: 0 -50%;
}
.im-menu[data-drop='right'] .im-menu-tip {
  left: calc(100% + 8px);
}
.im-menu[data-drop='left'] .im-menu-tip {
  left: auto;
  right: calc(100% + 8px);
}
.im-menu--list[data-drop='right'] .im-menu-list,
.im-menu--list[data-drop='left'] .im-menu-list {
  top: 50%;
  translate: 0 -50%;
}
.im-menu--list[data-drop='right'] .im-menu-list {
  left: calc(100% + 8px);
}
.im-menu--list[data-drop='left'] .im-menu-list {
  left: auto;
  right: calc(100% + 8px);
}
.im-menu button:hover .im-menu-tip,
.im-menu button:focus-visible .im-menu-tip {
  opacity: 1;
}
/* Controls along the bottom make room for anything placed in a bottom corner. */
/* Section controls stay at the bottom, centred between the bottom corners; only something in the
   bottom centre lifts them. */
.im-player.im-has-bottom:not(.im-has-bottom-center) .im-actions {
  left: max(20px, var(--bottom-side-w, 0px));
  right: max(20px, var(--bottom-side-w, 0px));
}
.im-player.im-has-bottom-center .im-actions {
  bottom: max(24px, var(--bottom-reach, 76px));
}
.im-player.im-has-bottom-center .im-strip {
  bottom: calc(max(24px, var(--bottom-reach, 76px)) + 58px);
}
.im-player.im-has-bottom-center .im-heading--bottom {
  bottom: calc(max(24px, var(--bottom-reach, 76px)) + 66px);
}

/* Pills */
.im-player .im-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: var(--im-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.im-player button.im-pill:hover,
.im-player button.im-pill:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #1c1f1c;
}
.im-player .im-pill[aria-pressed='true'] {
  border-color: var(--project-accent);
  background: var(--project-accent);
  color: #111;
}
.im-counter,
.im-zoom-value {
  min-width: 64px;
  font-variant-numeric: tabular-nums;
}
.im-extras {
  display: contents;
}

/* Stage and views */
.im-stage,
.im-stage-host,
.im-view,
.im-frame,
.im-layer-content,
.im-panorama,
.im-frames {
  position: absolute;
  inset: 0;
}
.im-view {
  overflow: hidden;
  background: #121412;
}
/* Blurred, enlarged copy of the current media behind it, so no band of the screen stays empty. */
.im-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  filter: blur(32px) brightness(0.6) saturate(1.15);
  pointer-events: none;
  user-select: none;
}
.im-backdrop--dim {
  filter: blur(32px) brightness(0.3);
}
.im-frame {
  z-index: 1;
}
.im-fit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.im-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    rgba(0, 0, 0, 0.38),
    rgba(0, 0, 0, 0) 26%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.66)
  );
  pointer-events: none;
}
.im-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 30px;
  color: rgba(244, 243, 239, 0.72);
  font-size: 15px;
  text-align: center;
}

/* Headings over the media */
.im-heading {
  position: absolute;
  z-index: 5;
  left: 28px;
  max-width: min(580px, calc(100% - 56px));
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  transition: opacity 0.3s;
}
.im-heading--top {
  top: var(--top-reach, 84px);
}
.im-heading--bottom {
  bottom: 96px;
}
.im-single .im-heading--top,
.im-layer .im-heading--top {
  top: 24px;
}
.im-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.im-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.im-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Bottom controls and strips */
.im-actions {
  position: absolute;
  z-index: 6;
  left: 20px;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.im-actions > *,
.im-extras > * {
  pointer-events: auto;
}
.im-strip {
  position: absolute;
  z-index: 7;
  left: 20px;
  right: 20px;
  bottom: 82px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 14px;
  background: rgba(18, 20, 18, 0.84);
  backdrop-filter: blur(14px);
}
.im-player .im-thumb {
  flex: 0 0 132px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}
.im-player .im-thumb[aria-pressed='true'],
.im-player .im-thumb:hover {
  border-color: var(--project-accent);
}
.im-thumb img,
.im-thumb-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 74px;
  object-fit: cover;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
}
.im-thumb span:last-child {
  display: block;
  overflow: hidden;
  padding: 7px 8px;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.im-player .im-side {
  position: absolute;
  z-index: 6;
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 32px;
  background: var(--im-glass);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 36px;
  line-height: 1;
}
.im-player .im-side:hover {
  background: rgba(18, 20, 18, 0.9);
}
.im-side--prev {
  left: 20px;
}
.im-side--next {
  right: 20px;
}

/* Cover */
.im-cover-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.im-cover-video {
  opacity: 0;
  transition: opacity 0.6s;
}
.im-cover-video.is-playing {
  opacity: 1;
}
.im-shade--cover {
  background: linear-gradient(
    rgba(12, 13, 11, 0.45),
    rgba(12, 13, 11, 0.1) 40%,
    rgba(12, 13, 11, 0.72)
  );
}
.im-cover-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 90px 24px 110px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.im-cover-logo {
  max-width: min(calc(240px * var(--cover-logo-scale, 1)), 90%);
  max-height: min(calc(180px * var(--cover-logo-scale, 1)), 45vh);
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}
.im-cover-title {
  max-width: min(900px, 100%);
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.im-cover-title--small {
  font-size: clamp(22px, 2.6vw, 34px);
}
.im-cover-title--medium {
  font-size: clamp(28px, 4vw, 48px);
}
.im-cover-title--large {
  font-size: clamp(34px, 6vw, 76px);
}
/* System sans-serif families only: no remote fonts are loaded. */
.im-cover-title[data-font='modern'] {
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
}
.im-cover-title[data-font='geometric'] {
  font-family: Futura, 'Century Gothic', Avenir, 'Trebuchet MS', sans-serif;
  letter-spacing: 0.04em;
}
.im-cover-title[data-font='humanist'] {
  font-family: 'Segoe UI', 'Gill Sans', Candara, 'Noto Sans', sans-serif;
}
.im-cover-title[data-font='condensed'] {
  font-family: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', sans-serif;
  font-stretch: condensed;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.im-cover-content p {
  max-width: 560px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.im-player .im-start {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 7px 7px 7px 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(12, 13, 11, 0.32);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: none;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.im-player .im-start:hover,
.im-player .im-start:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.im-start-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
  transition: transform 0.2s;
}
.im-start-icon svg {
  width: 20px;
  height: 20px;
}
.im-player .im-start:hover .im-start-icon,
.im-player .im-start:focus-visible .im-start-icon {
  transform: translateX(4px);
}

/* Floorplan and location */
.im-view--plan {
  background: #fff;
  color: #2c302c;
}
.im-view--plan .im-heading {
  color: #2c302c;
  text-shadow: none;
}
.im-view--plan .im-heading p {
  color: #4b504b;
}
.im-view--plan .im-empty {
  color: #5d615d;
}
.im-player[data-type='plan'] .im-top::before,
.im-player[data-type='compare'] .im-top::before {
  background: linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}
.im-player[data-type='plan'] .im-brand,
.im-player[data-type='plan'] .im-menu--open .im-menu-list button,
.im-player[data-type='compare'] .im-brand,
.im-player[data-type='compare'] .im-menu--open .im-menu-list button {
  color: #3c413c;
  text-shadow: none;
}
.im-player[data-type='plan'] .im-menu--open .im-menu-list button[aria-current='true'],
.im-player[data-type='compare'] .im-menu--open .im-menu-list button[aria-current='true'] {
  color: #1f231f;
}
.im-plan-space {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.im-plan-space.is-still {
  cursor: default;
}
.im-plan-space.is-dragging {
  cursor: grabbing;
}
.im-plan-space.is-placing {
  cursor: crosshair;
}
.im-plan-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}
.im-plan-sheet > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.im-player .im-pin {
  position: absolute;
  z-index: 2;
  translate: -50% -50%;
  scale: var(--pin-scale, 1);
  display: grid;
  place-items: center;
  width: calc(18px * var(--pin-size, 1));
  height: calc(18px * var(--pin-size, 1));
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--pin-color, var(--project-accent));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 3px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition:
    width 0.15s,
    height 0.15s;
}
/* A larger invisible target keeps the small dot easy to hit with a finger. */
.im-player .im-pin::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
}
.im-player .im-pin:hover,
.im-player .im-pin:focus-visible,
.im-player .im-pin[aria-expanded='true'] {
  z-index: 4;
  width: calc(24px * var(--pin-size, 1));
  height: calc(24px * var(--pin-size, 1));
  outline: none;
}
.im-pin-card {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  display: none;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #202420;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
}
.im-pin-card img {
  display: block;
  width: 132px;
  height: 74px;
  margin-bottom: 7px;
  border-radius: 5px;
  object-fit: cover;
}
.im-pin-card small {
  display: block;
  margin-top: 3px;
  color: var(--project-accent);
  font-size: 12px;
}
.im-pin:hover .im-pin-card,
.im-pin:focus-visible .im-pin-card,
.im-pin[aria-expanded='true'] .im-pin-card {
  display: block;
}

/* 360° tour */
.im-player .im-scene-select {
  min-height: 42px;
  max-width: min(320px, 70vw);
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: var(--im-glass);
  backdrop-filter: blur(12px);
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.im-scene-select option {
  color: #111;
}
.im-player .im-tour-arrow {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(16, 18, 17, 0.72);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.15s,
    box-shadow 0.15s;
}
.im-player .im-tour-arrow:hover,
.im-player .im-tour-arrow:focus-visible {
  border-color: #fff;
  background: var(--project-accent);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.35),
    0 3px 15px rgba(0, 0, 0, 0.4);
  color: #111;
  outline: none;
}
.im-tour-arrow-icon {
  font-size: 24px;
  line-height: 1;
}
.im-tour-arrow-label {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  translate: -50% 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(16, 18, 17, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.im-tour-arrow:hover .im-tour-arrow-label,
.im-tour-arrow:focus-visible .im-tour-arrow-label {
  opacity: 1;
}

/* Film */
.im-player .im-play {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  padding: 18px 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1c1f1c;
  font-size: 16px;
}
.im-view.is-playing .im-heading {
  opacity: 0;
}

/* Spin and day / night */
.im-frames {
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
}
.im-track {
  gap: 12px;
  padding: 6px 18px;
}
.im-range {
  width: min(420px, 55vw);
  accent-color: var(--project-accent);
}
.im-player .im-range-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
}
.im-player .im-range-icon:hover,
.im-player .im-range-icon:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--project-accent);
}
.im-range-icon svg {
  width: 20px;
  height: 20px;
}

/* Room and file layers */
.im-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #0e100e;
}
.im-player .im-close {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: var(--im-glass);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.im-player .im-close:hover {
  background: #fff;
  color: #1c1f1c;
}

@media (hover: none) {
  .im-tour-arrow-label {
    padding: 4px 8px;
    font-size: 11px;
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .im-corner--top-left,
  .im-corner--top-center,
  .im-corner--top-right {
    top: 10px;
  }
  .im-corner--top-left,
  .im-corner--bottom-left {
    left: 12px;
  }
  .im-corner--top-right,
  .im-corner--bottom-right {
    right: 12px;
  }
  .im-corner {
    gap: 6px;
  }
  .im-has-bottom .im-actions {
    left: 12px;
    right: 12px;
  }
  .im-heading {
    left: 16px;
    max-width: calc(100% - 32px);
  }
  .im-heading--top {
    top: var(--top-reach, 84px);
  }
  .im-heading--bottom {
    bottom: 86px;
  }
  .im-heading h1 {
    font-size: 28px;
  }
  .im-heading p {
    font-size: 13px;
  }
  .im-actions {
    left: 10px;
    right: 10px;
    bottom: 14px;
    gap: 6px;
  }
  .im-player .im-pill {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .im-player .im-side {
    width: 42px;
    height: 52px;
    font-size: 30px;
  }
  .im-side--prev {
    left: 8px;
  }
  .im-side--next {
    right: 8px;
  }
  .im-strip {
    left: 10px;
    right: 10px;
    bottom: 64px;
  }
  .im-player .im-thumb {
    flex-basis: 108px;
  }
  .im-thumb img,
  .im-thumb-icon {
    height: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .im-cover-video,
  .im-top,
  .im-heading {
    transition: none;
  }
}

/* Long project texts need a darker corner to stay readable over bright renders. */
.im-view--project .im-shade,
.im-view--gallery .im-shade {
  background:
    linear-gradient(80deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 55%),
    linear-gradient(
      rgba(0, 0, 0, 0.38),
      rgba(0, 0, 0, 0) 26%,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, 0.7)
    );
}

@media (max-width: 700px) {
  /* Pills wrap to two rows on phones; keep bottom headings clear of them. */
  .im-heading--bottom {
    bottom: 164px;
  }
}

/* Text on the accent colour uses dark or white ink, whichever the accent contrasts with. */
.im-player .im-pill[aria-pressed='true'],
.im-player .im-pin:hover,
.im-player .im-pin:focus-visible,
.im-player .im-pin[aria-expanded='true'],
.im-player .im-tour-arrow:hover,
.im-player .im-tour-arrow:focus-visible {
  color: var(--project-accent-ink, #111);
}

/* The point unlocked for moving in the editor pulses and hides its card while it is dragged. */
.im-player .im-pin.is-moving {
  z-index: 5;
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
  cursor: grab;
  touch-action: none;
  animation: im-pin-pulse 1.4s ease-in-out infinite;
}
.im-player .im-pin.is-moving:active {
  cursor: grabbing;
}
.im-player .im-pin.is-moving .im-pin-card {
  display: none;
}
@keyframes im-pin-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 6px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 14px rgba(0, 0, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .im-player .im-pin.is-moving {
    animation: none;
    box-shadow: 0 0 0 3px #fff;
  }
}

/* The cover opens clean: the header appears once the visitor enters the presentation. */
.im-player[data-type='cover'] .im-top {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* "Drag to look around" over a panorama: a hand sways between two arrows, then fades away. */
.im-drag-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 14px;
  border-radius: 18px;
  background: rgba(10, 12, 10, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0s linear 0.45s;
}
.im-drag-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.im-drag-hint-gesture {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 52px;
}
.im-drag-hint-gesture > svg {
  width: 92px;
  height: 30px;
  opacity: 0.7;
}
.im-drag-hint-hand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: im-drag-sway 1.8s ease-in-out infinite;
}
.im-drag-hint-hand svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.im-drag-hint-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes im-drag-sway {
  0%,
  100% {
    transform: translateX(-18px) rotate(-8deg);
  }
  50% {
    transform: translateX(18px) rotate(8deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .im-drag-hint-hand {
    animation: none;
  }
  .im-drag-hint {
    transition: none;
  }
}

/* Facade with units: outlines over the photo; the one under the pointer glows, the rest darkens. */
.im-units-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
}
.im-units-sheet > img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.im-units-shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.im-units-shade {
  fill: rgba(8, 10, 8, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.im-units-sheet.has-active .im-units-shade {
  opacity: 1;
}
.im-unit {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.25;
  cursor: pointer;
  outline: none;
  pointer-events: all;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}
.im-unit.is-active {
  fill: var(--project-accent);
  fill-opacity: 0.32;
  stroke: var(--project-accent);
  stroke-width: 2.5;
}
.im-unit-card {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: 260px;
  padding: 10px 14px 11px;
  border-left: 3px solid var(--project-accent);
  border-radius: 10px;
  background: rgba(18, 21, 18, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: #fff;
  pointer-events: none;
}
.im-unit-card strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.im-unit-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}
.im-units-sheet.is-drawing {
  cursor: crosshair;
}
.im-units-sheet.is-drawing .im-unit {
  opacity: 0.6;
  cursor: crosshair;
  pointer-events: none;
}
.im-draw-line {
  fill: var(--project-accent);
  fill-opacity: 0.2;
  stroke: var(--project-accent);
  stroke-width: 2;
  pointer-events: none;
}
.im-draw-guide {
  stroke: #fff;
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  pointer-events: none;
}
.im-draw-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.im-draw-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  translate: -50% -50%;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.im-draw-dot.is-closing {
  width: 20px;
  height: 20px;
}
.im-player .im-pill:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Tour floorplan: a small plan in the corner, closed by default, whose points jump to their scene
   while a radar cone shows where the visitor looks. */
/* The viewer keeps its arrows and markers in its own layer, under the cards drawn over it. */
.im-panorama {
  isolation: isolate;
}
.im-player .im-map-toggle svg {
  width: 16px;
  height: 16px;
}
.im-tour-map {
  position: absolute;
  z-index: 6;
  right: 20px;
  bottom: 82px;
  width: min(260px, 34%);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: bottom right;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0.22s;
}
.im-tour-map.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.im-tour-map-sheet {
  position: relative;
}
.im-tour-map-sheet > img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.im-map-radar {
  position: absolute;
  z-index: 1;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  overflow: visible;
  pointer-events: none;
}
.im-map-radar path {
  fill: var(--project-accent);
  fill-opacity: 0.42;
  stroke: var(--project-accent);
  stroke-opacity: 0.9;
  stroke-width: 1.5;
}
.im-player .im-map-pin {
  position: absolute;
  z-index: 2;
  width: 12px;
  min-width: 0;
  height: 12px;
  min-height: 0;
  padding: 0;
  translate: -50% -50%;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition:
    background-color 0.15s,
    scale 0.15s;
}
.im-player .im-map-pin:hover,
.im-player .im-map-pin:focus-visible {
  scale: 1.3;
  outline: none;
}
.im-player .im-map-pin.is-current {
  background: var(--project-accent);
  scale: 1.35;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.4),
    0 1px 4px rgba(0, 0, 0, 0.5);
}
.im-map-pin::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  translate: -50% 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: #202420;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.im-map-pin:hover::after,
.im-map-pin:focus-visible::after {
  opacity: 1;
}
@media (max-width: 640px) {
  .im-tour-map {
    width: min(200px, calc(100% - 40px));
    bottom: 136px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .im-tour-map,
  .im-tour-map.is-open {
    transition: none;
  }
}

/* Lead contact: an accent pill in the header opens a form over the stage. */
.im-player .im-lead-button {
  border-color: var(--project-accent);
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
  font-weight: 600;
}
.im-player button.im-lead-button:hover,
.im-player button.im-lead-button:focus-visible {
  border-color: #fff;
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
}
.im-player .im-lead-button svg {
  width: 17px;
  height: 17px;
}
.im-lead {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 72px 16px 24px;
  background: rgba(8, 10, 8, 0.55);
  backdrop-filter: blur(6px);
}
.im-lead-card {
  width: min(460px, 100%);
  padding: 28px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(18, 20, 18, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #fff;
}
.im-lead-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.im-lead-intro {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.45;
}
.im-lead-form {
  display: grid;
  gap: 12px;
}
.im-lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.im-lead-field {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.im-lead-field input,
.im-lead-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
}
.im-lead-field textarea {
  min-height: 92px;
  resize: vertical;
}
.im-lead-field input:focus,
.im-lead-field textarea:focus {
  border-color: var(--project-accent);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.im-lead-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.im-lead-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.45;
}
.im-lead-error {
  margin: 0;
  color: #ff8a80;
  font-size: 13px;
}
.im-player .im-lead-submit {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.im-player .im-lead-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.im-lead-done {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.im-lead-done svg {
  width: 46px;
  height: 46px;
  color: var(--project-accent);
}
.im-lead-done p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}
@media (max-width: 640px) {
  .im-lead-label {
    display: none;
  }
  .im-lead-row {
    grid-template-columns: 1fr;
  }
}

/* Facade units with a sales status: always tinted, with a legend and a details panel. */
.im-player {
  --unit-available: #34a853;
  --unit-reserved: #f2b01e;
  --unit-sold: #e5484d;
}
.im-unit.is-selected {
  fill: var(--project-accent);
  fill-opacity: 0.32;
  stroke: var(--project-accent);
  stroke-width: 2.5;
}
.im-units-shapes .im-unit[data-status='available'] {
  fill: var(--unit-available);
  stroke: var(--unit-available);
}
.im-units-shapes .im-unit[data-status='reserved'] {
  fill: var(--unit-reserved);
  stroke: var(--unit-reserved);
}
.im-units-shapes .im-unit[data-status='sold'] {
  fill: var(--unit-sold);
  stroke: var(--unit-sold);
}
.im-units-shapes .im-unit[data-status] {
  fill-opacity: 0.34;
  stroke-opacity: 0.9;
}
.im-units-shapes .im-unit[data-status].is-active,
.im-units-shapes .im-unit[data-status].is-selected {
  fill-opacity: 0.62;
  stroke: #fff;
  stroke-opacity: 1;
  stroke-width: 2.5;
}
.im-unit-card[data-status='available'] {
  border-left-color: var(--unit-available);
}
.im-unit-card[data-status='reserved'] {
  border-left-color: var(--unit-reserved);
}
.im-unit-card[data-status='sold'] {
  border-left-color: var(--unit-sold);
}
.im-units-legend {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  translate: -50% 0;
  border-radius: 999px;
  background: var(--im-glass);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.im-units-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.im-units-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.im-units-legend-item[data-status='available'] i {
  background: var(--unit-available);
}
.im-units-legend-item[data-status='reserved'] i {
  background: var(--unit-reserved);
}
.im-units-legend-item[data-status='sold'] i {
  background: var(--unit-sold);
}
.im-unit-panel {
  position: absolute;
  z-index: 6;
  top: 150px;
  left: 24px;
  width: min(320px, calc(100% - 48px));
  max-height: calc(100% - 190px);
  overflow-y: auto;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(18, 20, 18, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  color: #fff;
}
.im-single .im-unit-panel {
  top: 90px;
  max-height: calc(100% - 130px);
}
.im-unit-panel h2 {
  margin: 0 36px 8px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.im-player .im-unit-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.im-unit-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.im-unit-status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.im-unit-status[data-status='available'] {
  color: var(--unit-available);
}
.im-unit-status[data-status='reserved'] {
  color: var(--unit-reserved);
}
.im-unit-status[data-status='sold'] {
  color: var(--unit-sold);
}
.im-unit-facts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin: 14px 0 0;
  font-size: 13px;
}
.im-unit-facts dt {
  align-self: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.im-unit-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.im-unit-description {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}
.im-player .im-unit-plan {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}
.im-unit-plan img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.im-unit-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.im-player .im-unit-action {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.im-player .im-unit-action:hover,
.im-player .im-unit-action:focus-visible {
  border-color: #fff;
}
.im-player .im-unit-action--primary {
  border-color: var(--project-accent);
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
}
@media (max-width: 640px) {
  .im-unit-panel,
  .im-single .im-unit-panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 62%;
  }
}

/* Floor views: the floors are listed at the left of the stage. */
.im-view--views .im-side {
  display: none;
}
.im-floor-list {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: calc(100% - 260px);
  overflow-y: auto;
  padding: 6px;
  translate: 0 -50%;
  border-radius: 14px;
  background: rgba(18, 20, 18, 0.45);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
}
.im-single .im-floor-list {
  max-height: calc(100% - 180px);
}
.im-player .im-floor {
  min-width: 170px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  cursor: pointer;
}
.im-player .im-floor:hover,
.im-player .im-floor:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}
.im-player .im-floor[aria-current='true'] {
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
  text-shadow: none;
}
@media (max-width: 640px) {
  .im-floor-list,
  .im-single .im-floor-list {
    top: auto;
    right: 12px;
    bottom: 20px;
    left: 12px;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    translate: none;
  }
  .im-player .im-floor {
    min-width: max-content;
  }
}

/* Project credits: one card per author, scrolling over a dim background. */
.im-credits {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  padding: 110px 24px 48px;
}
.im-single .im-credits {
  padding-top: 40px;
}
.im-credits-head {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #fff;
  text-align: center;
}
.im-credits-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.im-credits-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  white-space: pre-line;
}
.im-credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}
.im-credit {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(18, 20, 18, 0.72);
  backdrop-filter: blur(12px);
  color: #fff;
}
.im-credit-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #222;
  object-fit: cover;
}
.im-credit-discipline {
  color: var(--project-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.im-credit h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.im-credit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

/* While outlining a unit the picture can be zoomed and dragged; corner dots keep their size. */
.im-draw-dot {
  scale: var(--draw-scale, 1);
}
.im-units-sheet.is-pan-ready,
.im-units-sheet.is-pan-ready .im-unit {
  cursor: grab;
}
.im-units-sheet.is-panning,
.im-units-sheet.is-panning .im-unit {
  cursor: grabbing;
}

/* Location points: a map pin whose tip marks the place. */
.im-player .im-pin.im-pin--drop {
  translate: -50% -100%;
  transform-origin: 50% 100%;
  width: calc(30px * var(--pin-size, 1));
  height: calc(38px * var(--pin-size, 1));
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.im-player .im-pin.im-pin--drop::before {
  inset: -8px;
}
.im-player .im-pin--drop svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.im-player .im-pin--drop .im-drop-body {
  fill: var(--pin-color, var(--project-accent));
  stroke: #fff;
  stroke-width: 1.6;
}
.im-player .im-pin--drop .im-drop-hole {
  fill: #fff;
  stroke: none;
}
.im-player .im-pin.im-pin--drop:hover,
.im-player .im-pin.im-pin--drop:focus-visible,
.im-player .im-pin.im-pin--drop[aria-expanded='true'] {
  width: calc(36px * var(--pin-size, 1));
  height: calc(46px * var(--pin-size, 1));
}
/* A round badge in the point colour with a white icon. */
.im-player .im-pin.im-pin--badge {
  width: calc(32px * var(--pin-size, 1));
  height: calc(32px * var(--pin-size, 1));
  border-width: 2px;
  color: #fff;
}
.im-player .im-pin.im-pin--badge:hover,
.im-player .im-pin.im-pin--badge:focus-visible,
.im-player .im-pin.im-pin--badge[aria-expanded='true'] {
  width: calc(38px * var(--pin-size, 1));
  height: calc(38px * var(--pin-size, 1));
  color: #fff;
}
.im-player .im-pin--badge svg {
  width: 56%;
  height: 56%;
  stroke-width: 2;
}

/* Location card: above the pin, shown on hover and kept open by a click. */
.im-place-card {
  position: absolute;
  z-index: 6;
  display: none;
  width: 240px;
  scale: var(--pin-scale, 1);
  transform-origin: 50% 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  color: #202420;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}
.im-pin--drop:hover + .im-place-card,
.im-place-card.is-open {
  display: block;
}
.im-place-card.is-open {
  z-index: 7;
  pointer-events: auto;
}
.im-place-card img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.im-place-card strong,
.im-place-card small,
.im-place-card p,
.im-place-card a {
  display: block;
  margin: 0;
  padding: 0 12px;
}
.im-place-card strong {
  padding-top: 10px;
  font-size: 14px;
}
.im-place-card small {
  margin-top: 2px;
  color: #5d615d;
}
.im-place-card p {
  margin-top: 6px;
  white-space: pre-wrap;
}
.im-place-card > :last-child {
  padding-bottom: 12px;
}
.im-player .im-place-link {
  margin-top: 8px;
  color: #202420;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.im-place-card.is-below {
  transform-origin: 50% 0;
}
.im-pin--badge:hover + .im-place-card,
.im-pin:not(.im-pin--drop):not(.im-pin--badge):hover + .im-place-card {
  display: block;
}

/* In the editor tour arrows are dragged to a new place. */
.im-player .im-tour-arrow.is-draggable {
  cursor: grab;
  touch-action: none;
}
.im-player .im-tour-arrow.is-dragging {
  cursor: grabbing;
  opacity: 0.85;
}

/* The development on a location map: a larger badge that pulses, with its name always shown. */
.im-player .im-pin.im-pin--project {
  z-index: 5;
  width: calc(52px * var(--pin-size, 1));
  height: calc(52px * var(--pin-size, 1));
  border: 3px solid #fff;
  background: var(--project-accent);
  color: var(--project-accent-ink, #111);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.im-player .im-pin.im-pin--project:hover,
.im-player .im-pin.im-pin--project:focus-visible,
.im-player .im-pin.im-pin--project[aria-expanded='true'] {
  width: calc(58px * var(--pin-size, 1));
  height: calc(58px * var(--pin-size, 1));
  color: var(--project-accent-ink, #111);
}
.im-player .im-pin--project > svg {
  position: relative;
  width: 52%;
  height: 52%;
  stroke-width: 2;
}
.im-project-rings,
.im-project-rings::after {
  position: absolute;
  inset: -3px;
  border: 2px solid var(--project-accent);
  border-radius: 50%;
  animation: im-project-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.im-project-rings::after {
  content: '';
  inset: -2px;
  animation-delay: 1.2s;
}
@keyframes im-project-ring {
  from {
    opacity: 0.9;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 2.4;
  }
}
.im-project-tag {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #1d201d;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.im-project-tag img {
  max-width: 60px;
  max-height: 18px;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .im-project-rings,
  .im-project-rings::after {
    animation: none;
    opacity: 0;
  }
}

/* Headings keep clear of an element at the middle of a side. */
.im-player.im-has-middle-left .im-heading {
  left: var(--side-left, 28px);
}
.im-player.im-has-middle-left .im-heading,
.im-player.im-has-middle-right .im-heading {
  max-width: min(580px, calc(100% - var(--side-left, 28px) - var(--side-right, 28px)));
}

/* Floorplans compared side by side. */
.im-compare {
  position: absolute;
  inset: calc(var(--top-reach, 84px) + 120px) 28px 120px;
  display: grid;
  grid-template-columns: repeat(var(--compare-count, 2), minmax(0, 1fr));
  gap: 20px;
  touch-action: none;
  cursor: grab;
}
.im-compare.is-dragging {
  cursor: grabbing;
}
.im-compare-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.im-compare-frame {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e3e1db;
  border-radius: 12px;
  background: #fff;
}
.im-compare-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  user-select: none;
}
.im-compare-item figcaption {
  margin-top: 10px;
  color: #2c302c;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.im-compare-pick {
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 700px) {
  .im-compare {
    inset: calc(var(--top-reach, 84px) + 76px) 8px 110px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--compare-count, 2), minmax(0, 1fr));
    gap: 12px;
  }
  .im-compare-item figcaption {
    margin-top: 4px;
    font-size: 13px;
  }
}

/* "Turn your phone sideways", shown briefly to phones held upright. */
.im-rotate-hint {
  position: absolute;
  z-index: 40;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 220px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(14, 16, 14, 0.82);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  text-align: center;
  transition: opacity 0.4s;
}
.im-rotate-hint svg {
  width: 42px;
  height: 42px;
  animation: im-rotate-phone 1.8s ease-in-out infinite;
}
.im-rotate-hint.is-hidden {
  opacity: 0;
}
@keyframes im-rotate-phone {
  0%,
  30% {
    rotate: 0deg;
  }
  60%,
  100% {
    rotate: -90deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .im-rotate-hint svg {
    animation: none;
    rotate: -90deg;
  }
}

/* Small frames (phones either way, a presentation embedded in a site): the logo stays modest and
   side icons shrink a little. */
@media (max-width: 700px), (max-height: 560px) {
  .im-brand img {
    max-width: min(calc(150px * var(--logo-scale, 1)), 32vw);
    max-height: min(calc(42px * var(--logo-scale, 1)), 18vh);
  }
  .im-player .im-menu--icons .im-menu-list button {
    width: calc(36px * var(--icon-scale, 1));
    height: calc(36px * var(--icon-scale, 1));
  }
}
/* Section controls also keep clear of an element at the middle of a side. */
.im-player.im-has-middle-left .im-actions {
  left: var(--side-left, 20px);
}
.im-player.im-has-middle-right .im-actions {
  right: var(--side-right, 20px);
}

/* Small screens: the section controls (the day-to-night slider, zoom…) sit at the very bottom,
   squeezed between the bottom corners rather than lifted above them. */
@media (max-width: 700px), (max-height: 560px) {
  .im-player.im-has-bottom:not(.im-has-bottom-center) .im-actions {
    bottom: 14px;
    left: max(12px, var(--bottom-side-w, 0px));
    right: max(12px, var(--bottom-side-w, 0px));
  }
  /* Both sides keep the wider corner's room, so the slider stays in the middle of the screen. */
  .im-player.im-has-middle-left .im-actions,
  .im-player.im-has-middle-right .im-actions {
    left: max(12px, var(--bottom-side-w, 0px));
    right: max(12px, var(--bottom-side-w, 0px));
  }
  .im-player.im-has-bottom:not(.im-has-bottom-center) .im-strip {
    bottom: 74px;
  }
}
/* The day-to-night track shrinks to the room it has, keeping the sun and moon in view. */
.im-player .im-track {
  max-width: 100%;
  min-width: 0;
}
.im-player .im-track .im-range {
  flex: 1 1 auto;
  min-width: 60px;
}

/* Small screens: smaller headings, and every section's controls right at the bottom. */
@media (max-width: 700px), (max-height: 560px) {
  .im-heading h1 {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .im-heading p {
    font-size: 12px;
    line-height: 1.45;
  }
  .im-eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
  }
  .im-player .im-actions {
    bottom: 10px;
  }
  .im-player .im-strip {
    bottom: 60px;
  }
}
/* Elements sharing a corner line up with that corner's edge, not with the middle of a tall logo. */
.im-corner--top-left,
.im-corner--top-center,
.im-corner--top-right {
  align-items: flex-start;
}
.im-corner--bottom-left,
.im-corner--bottom-center,
.im-corner--bottom-right {
  align-items: flex-end;
}

/* "Use my location" in the directions card. */

/* The route map fills the layer, with its buttons along the bottom. */
.im-route-view {
  position: absolute;
  inset: 0;
  background: #101211;
}
.im-route-map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.im-route-tools {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
}
.im-player a.im-pill {
  text-decoration: none;
}
/* Titles and subtitles sit on a light, translucent black band so they stand out on any picture. */
.im-player .im-heading {
  padding: 14px 20px 16px;
  border-radius: 14px;
  background: rgba(8, 9, 8, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: none;
}
.im-player .im-heading:not(:has(> :not([hidden]))) {
  display: none;
}
.im-player .im-heading h1 {
  margin-bottom: 6px;
}
.im-player .im-heading > :last-child:not([hidden]),
.im-player .im-heading h1:last-of-type {
  margin-bottom: 0;
}
.im-player .im-view--plan .im-heading {
  color: #fff;
}
.im-player .im-view--plan .im-heading p {
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 700px), (max-height: 560px) {
  .im-player .im-heading {
    padding: 10px 14px 12px;
    border-radius: 12px;
  }
}
/* On the white floorplan pages the band is darker, so white text still reads well. */
.im-player .im-view--plan .im-heading {
  background: rgba(8, 9, 8, 0.72);
}
/* Films play without the logo in the corner. */
.im-player[data-type='film'] .im-brand {
  display: none;
}

/* Comparing on a phone: the plan names stay compact and two fingers do the zooming. */
@media (max-width: 700px) {
  .im-compare-zoom {
    display: none;
  }
  .im-player .im-compare-pick .im-pill {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* The comparison opens over the presentation on a white page. */
.im-player .im-layer--plan {
  background: #fff;
  color: #2c302c;
}
.im-player .im-layer--plan .im-close {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #2c302c;
}

/* Where the section's title sits, and how big it is. Until the studio picks a place, each section
   keeps its own: most at the top, the media ones at the bottom. */
.im-player .im-heading {
  translate: var(--title-x, 0px) var(--title-y, 0px);
}
.im-player[data-title^='top'] .im-heading {
  top: var(--top-reach, 84px);
  bottom: auto;
}
.im-player[data-title^='bottom'] .im-heading {
  top: auto;
  bottom: max(96px, calc(var(--bottom-reach, 76px) + 66px));
}
.im-player[data-title^='middle'] .im-heading {
  top: 50%;
  bottom: auto;
  translate: var(--title-x, 0px) calc(-50% + var(--title-y, 0px));
}
.im-player[data-title$='-left'] .im-heading {
  left: max(28px, var(--side-left, 0px));
  right: auto;
  text-align: left;
}
.im-player[data-title$='-right'] .im-heading {
  left: auto;
  right: max(28px, var(--side-right, 0px));
  text-align: right;
}
.im-player[data-title$='-center'] .im-heading {
  left: 50%;
  right: auto;
  translate: calc(-50% + var(--title-x, 0px)) var(--title-y, 0px);
  text-align: center;
}
.im-player .im-heading h1 {
  font-size: calc(clamp(26px, 4vw, 52px) * var(--title-scale, 1));
}
.im-player .im-heading p {
  font-size: calc(14px * var(--title-scale, 1));
}
/* Icons that end up in the collapsed list keep the size the studio chose. */
.im-player .im-menu--list .im-menu-list button svg,
.im-player .im-menu--open .im-menu-list button svg {
  width: calc(19px * var(--icon-scale, 1));
  height: calc(19px * var(--icon-scale, 1));
}
@media (max-width: 700px), (max-height: 560px) {
  .im-player .im-heading h1 {
    font-size: calc(22px * var(--title-scale, 1));
  }
  .im-player .im-heading p {
    font-size: calc(12px * var(--title-scale, 1));
  }
  .im-player[data-title$='-left'] .im-heading {
    left: max(16px, var(--side-left, 0px));
  }
  .im-player[data-title$='-right'] .im-heading {
    right: max(16px, var(--side-right, 0px));
  }
  .im-player[data-title^='bottom'] .im-heading {
    bottom: max(164px, calc(var(--bottom-reach, 76px) + 66px));
  }
}

/* The fullscreen button is drawn, so it looks the same on every phone, and follows the icon size. */
.im-player .im-fullscreen {
  padding: 0;
  width: calc(42px * var(--icon-scale, 1));
  height: calc(42px * var(--icon-scale, 1));
  min-height: 0;
}
.im-player .im-fullscreen svg {
  width: calc(19px * var(--icon-scale, 1));
  height: calc(19px * var(--icon-scale, 1));
}

/* Controls keep clear of the phone's own bars, at the bottom and, held sideways, at the sides. */
.im-player .im-corner--bottom-left,
.im-player .im-corner--bottom-center,
.im-player .im-corner--bottom-right {
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}
.im-player .im-corner--top-left,
.im-player .im-corner--top-center,
.im-player .im-corner--top-right {
  top: calc(14px + env(safe-area-inset-top, 0px));
}
@media (max-width: 700px), (max-height: 560px) {
  .im-player .im-actions {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .im-player.im-has-bottom:not(.im-has-bottom-center) .im-actions {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .im-player .im-strip {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  .im-player.im-has-bottom:not(.im-has-bottom-center) .im-strip {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  .im-player .im-fullscreen {
    width: calc(36px * var(--icon-scale, 1));
    height: calc(36px * var(--icon-scale, 1));
  }
  /* The spin and day-to-night sliders take less room on a phone. */
  .im-player .im-track {
    gap: 4px;
    padding: 4px 10px;
  }
  .im-player .im-track .im-range {
    width: min(130px, 34vw);
    max-width: 130px;
  }
  .im-player .im-track .im-range-icon {
    width: 26px;
    height: 26px;
  }
  .im-player .im-track .im-range-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* The sound button matches the other round controls. */
.im-player .im-sound {
  padding: 0;
  width: calc(42px * var(--icon-scale, 1));
  height: calc(42px * var(--icon-scale, 1));
  min-height: 0;
}
.im-player .im-sound svg {
  width: calc(19px * var(--icon-scale, 1));
  height: calc(19px * var(--icon-scale, 1));
}
@media (max-width: 700px), (max-height: 560px) {
  .im-player .im-sound {
    width: calc(36px * var(--icon-scale, 1));
    height: calc(36px * var(--icon-scale, 1));
  }
}

/* A 3D walkthrough fills the stage; a small note says how far the model has loaded. */
.im-player .im-walk {
  position: absolute;
  inset: 0;
  background: #dfe3e6;
}
.im-player .im-walk canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.im-player .im-walk canvas:active {
  cursor: grabbing;
}
.im-player .im-walk-status {
  position: absolute;
  inset: 50% 0 auto;
  translate: 0 -50%;
  margin: 0;
  color: #2c302c;
  font-size: 14px;
  text-align: center;
}

/* The legend filters the facade: the chosen status stays lit, the others step back. */
.im-player .im-units-legend button.im-units-legend-item {
  border: 0;
  border-radius: 999px;
  background: none;
  padding: 3px 8px;
  margin: -3px -4px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.im-player .im-units-legend button.im-units-legend-item:hover {
  background: rgba(255, 255, 255, 0.12);
}
.im-player .im-units-legend button.im-units-legend-item[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}
.im-units-shapes[data-filter] .im-unit {
  transition:
    fill-opacity 0.2s,
    stroke-opacity 0.2s;
}
.im-units-shapes[data-filter='available'] .im-unit:not([data-status='available']),
.im-units-shapes[data-filter='reserved'] .im-unit:not([data-status='reserved']),
.im-units-shapes[data-filter='sold'] .im-unit:not([data-status='sold']) {
  fill-opacity: 0.03;
  stroke-opacity: 0.12;
}
.im-units-shapes[data-filter='available'] .im-unit[data-status='available'],
.im-units-shapes[data-filter='reserved'] .im-unit[data-status='reserved'],
.im-units-shapes[data-filter='sold'] .im-unit[data-status='sold'] {
  fill-opacity: 0.55;
}

/* Editing an outline: the shape in its status colour, corners to drag, and fainter dots in the middle
   of each side that become a new corner when dragged. */
.im-units-shapes .im-edit-shape {
  fill: var(--project-accent);
  fill-opacity: 0.25;
  stroke: #fff;
  stroke-width: 2;
}
.im-units-shapes .im-edit-shape[data-status='available'] {
  fill: var(--unit-available);
}
.im-units-shapes .im-edit-shape[data-status='reserved'] {
  fill: var(--unit-reserved);
}
.im-units-shapes .im-edit-shape[data-status='sold'] {
  fill: var(--unit-sold);
}
.im-player .im-edit-dot {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  translate: -50% -50%;
  scale: var(--draw-scale, 1);
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}
.im-player .im-edit-dot:active {
  cursor: grabbing;
}
.im-player .im-edit-dot.is-middle {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0.8;
  cursor: copy;
}
.im-player .im-edit-dot.is-middle:hover {
  opacity: 1;
}
.im-player .im-unit-type {
  margin: -4px 0 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* The unit's panel opens on the right, clear of the section title at the top left. */
.im-player .im-unit-panel {
  top: calc(var(--top-reach, 84px) + 12px);
  right: max(24px, var(--side-right, 0px));
  left: auto;
  max-height: calc(100% - var(--top-reach, 84px) - 90px);
}
.im-player.im-single .im-unit-panel {
  top: 24px;
  max-height: calc(100% - 100px);
}
/* A title placed at the top right moves the panel to the other side. */
.im-player[data-title$='-right'] .im-unit-panel {
  right: auto;
  left: max(24px, var(--side-left, 0px));
}
@media (max-width: 700px), (max-height: 560px) {
  .im-player .im-unit-panel,
  .im-player.im-single .im-unit-panel,
  .im-player[data-title$='-right'] .im-unit-panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 62%;
  }
}
/* A picture opened whole sits between the title and the bottom of the screen, never cut. */
.im-player .im-whole .im-frame {
  inset: calc(var(--top-reach, 84px) + 70px) 28px 28px;
}
.im-player .im-whole .im-fit {
  object-fit: contain;
}
.im-player .im-layer--sheet .im-whole .im-backdrop {
  display: none;
}
@media (max-width: 700px), (max-height: 560px) {
  .im-player .im-whole .im-frame {
    inset: calc(var(--top-reach, 84px) + 56px) 12px 16px;
  }
}
/* On a white sheet the title band is darker, as on the floorplan pages. */
.im-player .im-layer--plan .im-heading {
  background: rgba(8, 9, 8, 0.72);
  color: #fff;
}
