@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* Цвета и типографика как в vybor-shahmatka (плагин сайта) */
.lc-shahmatka-scope {
  --lc-bg: #eef5fa;
  --lc-card: #ffffff;
  --lc-muted: #5c7384;
  --lc-text: #07324e;
  --lc-border: #c8dbe8;
  --lc-soft: #e8f1f8;
  --lc-primary: #0f74b4;
  --lc-primary-dark: #07324e;
  --lc-accent: #0041d4;
  --lc-gold: #ffd166;
  --lc-status-free: #0041d4;
  --lc-status-free-border: rgba(0, 65, 212, 0.3);
  --lc-status-reserved: #1f90ff;
  --lc-status-booking: #ffd166;
  --lc-status-booking-border: #ce9b24;
  --lc-sold: #f2f2f2;
  --lc-sold-text: var(--lc-text);
  --lc-axis-fill: rgba(7, 50, 78, 0.15);
  --lc-empty-dash: rgba(169, 169, 169, 0.4);
  --lc-shadow: 0 18px 45px rgba(7, 50, 78, 0.1);
  color: var(--lc-text);
  font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.015rem;
  font-size: 14px;
  line-height: 1.35;
  box-sizing: border-box;
}

.lc-shahmatka-scope *,
.lc-shahmatka-scope *::before,
.lc-shahmatka-scope *::after {
  box-sizing: border-box;
}

.lc-board-card {
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--lc-shadow);
}

.lc-board-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--lc-primary-dark);
}

.lc-board-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 12px;
}

.lc-board {
  width: 100%;
  min-width: 940px;
}

.lc-matrix {
  display: grid;
  gap: 3px;
}

.lc-matrix-head,
.lc-floor-row {
  display: grid;
  grid-template-columns: 58px repeat(var(--lc-columns, 11), minmax(72px, 1fr));
  gap: 3px;
  align-items: stretch;
}

.lc-matrix-head {
  margin-bottom: 3px;
}

.lc-head-cell,
.lc-floor-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 9px;
  background: var(--lc-axis-fill);
  border: 0;
  color: var(--lc-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lc-floor-number {
  color: #4a6578;
  padding: 0 4px;
  gap: 6px;
}

.lc-floor-number-plain {
  font-weight: 700;
  font-size: 13px;
  text-transform: none;
}

.lc-floor-select-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
}

.lc-floor-select-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--lc-primary-dark);
}

.lc-cell-wrap {
  position: relative;
  min-height: 60px;
}

.lc-flat,
.lc-flat-empty {
  width: 100%;
  min-height: 60px;
  border-radius: 10px;
  transition: filter 0.2s ease;
}

.lc-flat-empty {
  display: block;
  background: transparent;
  border: 1px dashed var(--lc-empty-dash);
}

.lc-flat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 6px 9px 6px 26px;
  border: 0;
  background: var(--lc-status-free);
  color: #ffffff;
  cursor: pointer;
  font: 600 12px/1.1 "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  text-align: left;
}

.lc-flat.lc-flat--broker {
  padding: 6px 9px;
}

.lc-flat:hover,
.lc-head-cell:hover,
.lc-floor-number:hover,
.lc-flat-empty:hover {
  filter: brightness(0.94);
}

.lc-flat-room {
  font-size: 12px;
}

.lc-flat-area {
  font-size: 10px;
  opacity: 0.9;
}

.lc-flat[data-status="free"] {
  background: var(--lc-status-free);
  color: #ffffff;
  border: 1px solid var(--lc-status-free-border);
}

.lc-flat[data-status="reserved"] {
  background: var(--lc-status-reserved);
  color: #ffffff;
  border: 0;
}

.lc-flat[data-status="booking"] {
  background: var(--lc-status-booking);
  color: var(--lc-text);
  border: 1px solid var(--lc-status-booking-border);
}

.lc-flat[data-status="sold"] {
  background: var(--lc-sold);
  color: var(--lc-sold-text);
  border: 0;
}

.lc-flat[data-status="pending_info"],
.lc-flat.lc-flat--pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px dashed #f59e0b;
  cursor: not-allowed;
  pointer-events: none;
}

.lc-board--storage {
  width: 100%;
  min-width: 0;
}

.lc-storage-floor-block {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
  align-items: stretch;
}

.lc-storage-floor-block:last-child {
  margin-bottom: 0;
}

.lc-storage-floor-label {
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 56px;
  border-radius: 9px;
  background: var(--lc-axis-fill);
  color: #4a6578;
  font-size: 13px;
  font-weight: 700;
}

.lc-storage-tiles-grid {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  gap: 3px;
  align-content: start;
  align-items: start;
}

.lc-board--storage .lc-cell-wrap {
  width: 96px;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  align-self: start;
}

.lc-board--storage .lc-flat,
.lc-board--storage .lc-flat-empty {
  width: 100%;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  overflow: hidden;
  justify-content: flex-start;
  padding: 7px 8px;
  gap: 0;
  box-sizing: border-box;
}

.lc-board--storage .lc-flat-room {
  font-size: 11px;
  line-height: 1.1;
}

.lc-board--storage .lc-flat-area {
  font-size: 9px;
  line-height: 1.1;
  opacity: 0.9;
}

.lc-board--storage .lc-flat-price {
  margin-top: auto;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lc-board--storage .lc-flat[data-status="sold"] .lc-flat-price,
.lc-board--storage .lc-flat[data-status="booking"] .lc-flat-price {
  opacity: 0.85;
}

.lc-board--storage .lc-flat--pending .lc-flat-price {
  opacity: 0.7;
}

.lc-flat.is-filter-hidden {
  opacity: 0.22;
  pointer-events: none;
  filter: grayscale(1);
}

.lc-flat.is-selected {
  outline: 2px solid var(--lc-primary-dark);
  outline-offset: 2px;
}

.lc-tile-check {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.lc-tile-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.lc-tile-check-mark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  background: rgba(7, 50, 78, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.lc-flat[data-status="sold"] .lc-tile-check-mark,
.lc-flat[data-status="booking"] .lc-tile-check-mark {
  border-color: rgba(7, 50, 78, 0.35);
  background: rgba(255, 255, 255, 0.55);
}

.lc-tile-check input:checked + .lc-tile-check-mark {
  background: var(--lc-primary-dark);
  border-color: var(--lc-primary-dark);
}

.lc-tile-check input:checked + .lc-tile-check-mark::after {
  content: "";
  display: block;
  width: 6px;
  height: 3px;
  margin: 4px 0 0 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.lc-tile-check.is-disabled {
  pointer-events: none;
  opacity: 0.35;
}

.lc-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.lc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  min-height: 40px;
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  background: var(--lc-soft);
  color: var(--lc-text);
  font-size: 12px;
  white-space: nowrap;
}

.lc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(7, 50, 78, 0.14);
}

.lc-dot.free { background: var(--lc-status-free); }
.lc-dot.reserved { background: var(--lc-status-reserved); }
.lc-dot.booking { background: var(--lc-status-booking); }
.lc-dot.sold { background: var(--lc-sold); border: 1px solid var(--lc-border); }

.lc-floors-host--broker {
  max-width: min(100%, 1880px);
  margin: 0 auto;
  padding: 0 20px 32px;
}
