/* Liman Residences — hazır render üzərində SVG qatları.
   3D yoxdur: zoom CSS transform ilə, qüllə və mərtəbələr SVG çoxbucaqlıları ilə.
   Blok siyahısı, şahmat cədvəli və nişanlar sales.css-dən gəlir. */

/* ---------- render səhnəsi ---------- */
.stage-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stage);
  padding: 16px;
  min-height: 0;
}

/* 16:9 saxlanılır ki, SVG koordinatları render pikselləri ilə üst-üstə düşsün */
.stage {
  position: relative;
  width: min(100%, calc((100dvh - 120px) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--stage);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* zoom edilən qat: şəkil + SVG + nişanlar birlikdə sürüşür */
.world {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transition: transform .85s cubic-bezier(.2, .7, .15, 1);
  will-change: transform;
}
.world img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  max-width: none;
}
.world svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- qüllə konturları ---------- */
.tower {
  fill: var(--accent);
  fill-opacity: .16;
  stroke: #fff;
  stroke-opacity: .85;
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill-opacity .2s;
}
.tower:hover,
.tower.hl {
  fill-opacity: .42;
}
/* seçilmiş qüllədən başqaları solğunlaşır */
.tower.ghost {
  fill-opacity: .05;
  stroke-opacity: .35;
}
.tower.ghost:hover {
  fill-opacity: .2;
}

/* ---------- mərtəbə zolaqları ---------- */
.band {
  stroke: #fff;
  stroke-opacity: .55;
  stroke-width: .6;
  cursor: pointer;
  transition: fill-opacity .15s;
}
.band.hl {
  fill: var(--accent) !important;
  fill-opacity: .7 !important;
  stroke-opacity: 1;
  stroke-width: 1.2;
}
.band.sel {
  fill: #fff !important;
  fill-opacity: .9 !important;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-opacity: 1;
}

/* ---------- mərtəbə planı (SVG) ---------- */
.plan {
  background: var(--surface2);
  border-radius: 10px;
  padding: 10px;
}
.plan svg {
  display: block;
  width: 100%;
  height: auto;
}
.plan .plate {
  fill: var(--surface);
  stroke: var(--line);
}
.plan .core {
  fill: var(--line);
}
.plan .room {
  stroke: var(--ink);
  stroke-opacity: .55;
  stroke-width: .06;
}
.plan .unit {
  cursor: pointer;
}
.plan .unit:hover .room {
  stroke-opacity: 1;
}
.plan .unit.sel .outline {
  stroke: var(--accent);
  stroke-width: .35;
  fill: none;
}
/* fasad xətti = tam hündürlüklü şüşə */
.plan .glass {
  stroke: var(--accent);
  stroke-width: .32;
}
.plan text {
  font-family: var(--f-body);
  fill: var(--ink);
  pointer-events: none;
}
.plan .ul {
  font-family: var(--f-display);
  font-weight: 700;
}

@media (max-width: 900px) {
  .stage-wrap {
    padding: 10px;
  }
  .stage {
    width: 100%;
  }
}
