/* Satış vitrinlərinin paylaşılan vidjetləri: blok siyahısı, şahmat cədvəli,
   səhnə üzərindəki nişanlar. liman.html və vake.html eyni şəkildə istifadə edir. */

/* ---------- blok siyahısı ---------- */
.blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  text-align: left;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
.block:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.b-name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
}
.b-free {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.b-free b {
  color: var(--ok);
  font-family: var(--f-mono);
  font-size: 15px;
}
.b-meta,
.b-price {
  font-size: 12px;
  color: var(--muted);
}
.b-price {
  text-align: right;
  font-family: var(--f-mono);
}

/* ---------- şahmat cədvəli (mərtəbə × mənzil) ---------- */
.chess {
  display: grid;
  grid-template-columns: 44px repeat(4, 1fr);
  gap: 3px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.chess .h {
  color: var(--muted);
  text-align: center;
  padding: 2px 0 4px;
  font-family: var(--f-body);
  font-weight: 600;
}
/* mərtəbə nömrəsi olan sol sütun */
.chess .fl {
  background: none;
  border: 0;
  border-radius: 5px;
  text-align: right;
  padding: 0 8px 0 0;
  color: var(--muted);
  height: 24px;
}
.chess .fl:hover,
.chess .fl.hl {
  background: var(--accent-soft);
  color: var(--ink);
}
/* mənzil xanası */
.cell {
  height: 24px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  padding: 0;
  transition: transform .1s, opacity .15s;
}
.cell.free { background: var(--ok) }
.cell.hold { background: var(--hold) }
.cell.sold { background: var(--sold) }
.cell.dim  { opacity: .18 }
.cell:hover { transform: scale(1.06) }
.cell.sel {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* ---------- səhnə üzərində üzən nişan ---------- */
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.pin span {
  background: var(--surface);
  color: var(--ink);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  line-height: 1.25;
  text-align: center;
}
.pin b {
  font-family: var(--f-display);
  font-size: 13px;
  display: block;
}
/* nişanı obyektə bağlayan incə xətt */
.pin::after {
  content: "";
  width: 1px;
  height: 13px;
  background: #fff;
}
