

/* Start:/local/components/pashkei/catalog.chess/templates/.default/style.css?179423652628757*/
.pc-chess {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    position: relative;
    height: calc(100vh - 120px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.pc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
    z-index: 300;
    position: relative;
}
.pc-toolbar__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-toolbar__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pc-view-btns { display: flex; gap: 4px; }
.pc-view-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; box-sizing: border-box;
    border: 1px solid #ccc; border-radius: 4px;
    background: #fff; cursor: pointer; color: #666;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pc-view-btn:hover { background: #f0f0f0; color: #333; }
.pc-view-btn--active { background: #e0e0e0; color: #333; border-color: #bbb; }
.pc-view-btn--active:hover { background: #d4d4d4; color: #333; }

.fpv-nav__item { position: relative; display: inline-block; max-width: 100%; min-width: 0; }
.fpv-nav__item--hidden { display: none; }
.fpv-nav__select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; border: none; background: transparent; }
.fpv-custom-select { display: block; position: relative; max-width: 100%; }
.fpv-custom-select__trigger {
    display: block; height: 36px; box-sizing: border-box; line-height: 34px;
    padding: 0 28px 0 12px; font-size: 14px; font-weight: 500; color: #333;
    cursor: pointer; border: 1px solid #ccc; border-radius: 4px; background: #fff;
    white-space: nowrap; position: relative; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis;
    user-select: none; -webkit-user-select: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fpv-custom-select__trigger::after {
    content: ''; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px;
    border-right: 1.5px solid #666; border-bottom: 1.5px solid #666;
    transform: translateY(-50%) rotate(-45deg); transition: transform 0.2s; pointer-events: none;
}
.fpv-custom-select__trigger--open { background: #f0f0f0; border-color: #bbb; }
.fpv-custom-select__trigger--open::after { transform: translateY(-50%) rotate(45deg); }
.fpv-custom-select__trigger:hover { background: #f0f0f0; color: #333; }
.fpv-custom-select__options {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%; max-width: 100%;
    background: #fff; border: 1px solid #ccc; border-radius: 4px;
    padding: 4px 0; z-index: 100;
    max-height: 300px; overflow-y: auto; list-style: none; margin: 0;
}
.fpv-custom-select__option {
    padding: 10px 14px; font-size: 14px; color: #333; cursor: pointer;
    white-space: normal; transition: background 0.1s;
}
.fpv-custom-select__option:hover { background: #f5f5f5; }
.fpv-custom-select__option--selected { font-weight: 600; color: #333; background: #f0f0f0; }

/* ===== Filters ===== */

.pc-filters {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: wrap;
    flex-shrink: 0;
    background: #f9f9f9;
    border-bottom: 1px solid #ececec;
}
.pc-multiselect { position: relative; display: inline-block; }
.pc-multiselect__trigger {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; box-sizing: border-box;
    padding: 0 14px; font-size: 14px; font-weight: 500; font-family: inherit;
    border: 1px solid #ccc; border-radius: 4px; background: #fff;
    cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
    color: #333; white-space: nowrap;
}
.pc-multiselect__trigger:hover { background: #f0f0f0; }
.pc-multiselect__trigger--has-value { background: #e0e0e0; border-color: #bbb; }
.pc-multiselect__trigger--has-value:hover { background: #d4d4d4; }
.pc-multiselect__trigger::after {
    content: ''; display: inline-block; width: 6px; height: 6px;
    border-right: 1.5px solid #666; border-bottom: 1.5px solid #666;
    transform: rotate(-45deg); transition: transform 0.2s; margin-left: 4px;
}
.pc-multiselect__trigger--open { background: #f0f0f0; border-color: #bbb; }
.pc-multiselect__trigger--open::after { transform: rotate(45deg); }
.pc-multiselect__label { pointer-events: none; }
.pc-multiselect__panel {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 100;
    min-width: 180px; background: #fff; border: 1px solid #ccc; border-radius: 4px;
    padding: 4px 0;
    max-height: 320px; overflow-y: auto;
    display: none;
}
.pc-multiselect__panel--open { display: block; }
.pc-multiselect__option {
    margin: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; cursor: pointer; font-size: 13px; color: #333;
    transition: background 0.1s; user-select: none;
}
.pc-multiselect__option:hover { background: #f5f5f5; }
.pc-multiselect__option input { margin: 0; accent-color: #009640; }
.pc-multiselect__clear {
    display: block; width: 100%; text-align: left;
    padding: 6px 12px; background: none; border: 0; border-bottom: 1px solid #ececec;
    font-size: 12px; font-family: inherit; color: #333; cursor: pointer;
}
.pc-multiselect__clear:hover { background: #f5f5f5; }

.pc-filter-btn {
    margin: 0;
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; box-sizing: border-box;
    padding: 0 14px; font-size: 14px; font-weight: 500; font-family: inherit;
    border: 1px solid #ccc; border-radius: 4px; background: #fff;
    cursor: pointer; color: #333; white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    user-select: none; -webkit-user-select: none;
}
.pc-filter-btn input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pc-filter-btn:hover { background: #f0f0f0; }
.pc-filter-btn--active { background: #e0e0e0; color: #333; border-color: #bbb; }
.pc-filter-btn--active:hover { background: #d4d4d4; }


.pc-range-group { display: flex; flex-direction: column; gap: 3px; min-width: 200px; max-width: 260px; }
.pc-range__title { font-size: 11px; color: #999; font-weight: 500; line-height: 1.2; padding-left: 2px; }
.pc-range__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 2px; }
.pc-range__clear {
    background: none; border: 0; padding: 0;
    font-size: 11px; font-family: inherit; color: #666; cursor: pointer;
    line-height: 1.2; text-decoration: underline; text-decoration-style: dotted;
}
.pc-range__clear:hover { color: #333; }
.pc-range {
    position: relative; display: flex; align-items: center;
    background: #fff; border: 1px solid #ccc; border-radius: 4px;
    height: 36px; padding: 0 12px;
    box-sizing: border-box;
}
.pc-range__inputs { display: flex; align-items: center; gap: 6px; width: 100%; }
.pc-range__input {
    flex: 1; min-width: 0; padding: 1px 0; font-size: 14px; font-weight: 500; line-height: 17px; font-family: inherit;
    border: none; background: transparent; text-align: left; color: #333; box-sizing: border-box;
    -moz-appearance: textfield;
}
.pc-range__input::-webkit-outer-spin-button,
.pc-range__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-range__input:focus { outline: none; }
.pc-range__input::placeholder { color: #bbb; font-weight: 400; }
.pc-range__sep { color: #ddd; font-size: 14px; font-weight: 300; flex-shrink: 0; }
.pc-range__slider { position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; }
.pc-range__fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: #009640; border-radius: 1px; pointer-events: none;
}
.pc-range__thumb {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    margin: 0; pointer-events: none; -webkit-appearance: none; appearance: none;
    background: transparent; z-index: 2;
}
.pc-range__thumb::-webkit-slider-runnable-track { background: transparent; border: none; }
.pc-range__thumb::-moz-range-track { background: transparent; border: none; }
.pc-range__thumb::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto;
    width: 14px; height: 14px; border-radius: 50%;
    background: #009640; border: 2px solid #fff; cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.35); box-sizing: border-box;
}
.pc-range__thumb::-moz-range-thumb {
    pointer-events: auto; width: 14px; height: 14px; border-radius: 50%;
    background: #009640; border: 2px solid #fff; cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.35); box-sizing: border-box;
}
.pc-range__thumb--min { z-index: 1; }
.pc-range__thumb--max { z-index: 3; }

.pc-filter-reset {
    height: 36px; box-sizing: border-box;
    padding: 0 14px; font-size: 14px; font-weight: 500; font-family: inherit;
    color: #333; background: #fff; border: 1px solid #ccc; border-radius: 4px;
    cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.pc-filter-reset:hover { background: #f0f0f0; }

/* ===== Presets ===== */

.pc-preset-section { position: relative; display: inline-block; }
.pc-preset-btn {
    width: 36px; height: 36px; box-sizing: border-box; padding: 0; border: 1px solid #ccc; border-radius: 4px;
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #666; transition: background 0.15s, color 0.15s;
}
.pc-preset-btn:hover { background: #f0f0f0; color: #333; }
.pc-preset-dropdown {
    position: absolute; top: calc(100% + 4px); right: 0; z-index: 100;
    min-width: 260px; background: #fff; border: 1px solid #ccc; border-radius: 4px;
    padding: 4px; display: none;
    max-height: 360px; overflow-y: auto;
}
.pc-preset-dropdown--open { display: block; }
.pc-preset-save-current {
    display: block; width: 100%; text-align: left; padding: 8px 12px;
    font-size: 13px; font-weight: 600; color: #333; font-family: inherit;
    background: #f9f9f9; border: 1px solid #ccc; border-radius: 4px; cursor: pointer;
    transition: background 0.15s; margin-bottom: 4px;
}
.pc-preset-save-current:hover { background: #f0f0f0; }
.pc-preset-list { display: flex; flex-direction: column; gap: 2px; }
.pc-preset-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 8px;
    border-radius: 4px; transition: background 0.1s;
}
.pc-preset-item:hover { background: #f5f5f5; }
.pc-preset-item__title {
    flex: 1; font-size: 13px; color: #333; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-preset-item__actions { display: flex; gap: 4px; flex-shrink: 0; }
.pc-preset-item__apply {
    font-size: 11px; font-weight: 600; font-family: inherit; color: #333;
    background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 3px 8px; cursor: pointer;
    transition: background 0.15s;
}
.pc-preset-item__apply:hover { background: #f0f0f0; }
.pc-preset-item__delete {
    width: 22px; height: 22px; padding: 0; border: none; border-radius: 4px;
    background: none; cursor: pointer; color: #999; font-size: 16px; line-height: 1;
    transition: color 0.15s, background 0.15s;
}
.pc-preset-item__delete:hover { color: #d32f2f; background: rgba(211,47,47,0.1); }
.pc-preset-empty { padding: 16px 12px; text-align: center; color: #999; font-size: 13px; }

.pc-filter-count { font-size: 13px; color: #666; margin-left: auto; }
.pc-filter-count strong { color: #333; }

/* ===== Search bar ===== */

.pc-search-section {
    flex-shrink: 0;
    background: #f9f9f9;
    border-bottom: 1px solid #ececec;
}
.pc-search-bar {
    padding: 6px 0;
}
.pc-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 420px;
}
.pc-search__icon {
    position: absolute;
    left: 10px;
    color: #999;
    pointer-events: none;
}
.pc-search__input {
    width: 100%;
    height: 36px; box-sizing: border-box;
    padding: 0 56px 0 32px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.15s;
}
.pc-search__input:focus { outline: none; border-color: #999; }
.pc-search__input::placeholder { color: #aaa; }
.pc-search__clear {
    position: absolute;
    right: 30px;
    background: none; border: none; cursor: pointer;
    font-size: 18px; color: #999; line-height: 1;
    padding: 2px 6px; border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.pc-search__clear:hover { color: #333; background: #f0f0f0; }
.pc-search__mode-btn {
    position: absolute;
    right: 4px;
    background: none; border: none; cursor: pointer;
    font-size: 18px; font-weight: 300; line-height: 1;
    color: #999; padding: 4px 8px; border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.pc-search__mode-btn:hover { color: #333; background: #f0f0f0; }
.pc-search__mode-btn--active { color: #333; background: #e0e0e0; }

.pc-search__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
}
.pc-search__dropdown--open { display: block; }
.pc-search__group { padding: 4px 0; }
.pc-search__group + .pc-search__group { border-top: 1px solid #f0f0f0; }
.pc-search__group-label {
    font-size: 11px; font-weight: 600; color: #999;
    text-transform: uppercase; letter-spacing: 0.4px;
    padding: 4px 12px 2px;
}
.pc-search__item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; cursor: pointer; font-size: 13px; color: #333;
    transition: background 0.1s;
}
.pc-search__item:hover { background: #f5f5f5; }
.pc-search__item--active { background: #f0f0f0; color: #333; }
.pc-search__check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; flex-shrink: 0;
    border: 1.5px solid #ccc; border-radius: 4px;
    font-size: 12px; color: #333; font-weight: bold;
}
.pc-search__item--active .pc-search__check { border-color: #999; }
.pc-search__empty {
    padding: 16px 12px; text-align: center; color: #999; font-size: 13px;
}

/* ===== Search tags ===== */

.pc-search-hint {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 0 4px;
    flex-shrink: 0;
}
.pc-search-hint__text { font-size: 12px; color: #959BA6; }
.pc-search-hint .pc-tag { cursor: pointer; }

.pc-search-tags {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 0 4px;
    flex-shrink: 0;
}
.pc-tag-group__op {
    font-size: 10px; font-weight: 700; font-family: inherit;
    color: #009640; background: #f0f8f4;
    border: 1px solid #c8e6d0; border-radius: 4px;
    padding: 2px 8px; cursor: pointer;
    transition: background 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}
.pc-tag-group__op:hover { background: #e0f0e8; }
.pc-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 4px 3px 10px;
    font-size: 13px; color: #333;
    background: #e8f5e9; border: 1px solid #c8e6c9;
    border-radius: 14px;
    white-space: nowrap;
}
.pc-tag__remove {
    background: none; border: none; cursor: pointer;
    font-size: 16px; line-height: 1; color: #999;
    padding: 0 2px; border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.pc-tag__remove:hover { color: #d32f2f; background: rgba(211,47,47,0.1); }

/* ===== Controls ===== */

.pc-controls {
    position: absolute; top: 10px; right: 10px; z-index: 20;
    display: flex; flex-direction: row; gap: 4px;
}
.pc-control-btn {
    width: 36px; height: 36px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px;
    background: #fff; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    color: #555;
    transition: background 0.15s, color 0.15s;
    font-size: 20px; line-height: 1;
}
.pc-control-btn:hover { background: #f0f0f0; color: #333; }
.pc-control-btn--active { background: #e0e0e0; color: #333; border-color: #bbb; }
.pc-control-btn--active:hover { background: #d4d4d4; }

/* ===== Cell status colors ===== */

.pc-cell[data-status="on_sale"] { background: #b7e8cb; border-color: #4cbc7b; }
.pc-cell[data-status="reservation"] { background: #ffe1b5; border-color: #edb96c; }
.pc-cell[data-status="sales"], .pc-cell[data-status="sold"] { background: #fff; border-color: #d9d9d9; }
.pc-cell[data-status="failed"] { background: #f54819; border-color: darkred; }
.pc-cell[data-status="owner"] { background: #dbd9d9; border-color: gray; }
.pc-cell--assignation { background: #d9d9d9 !important; border-color: #bfbfbf !important; }

/* ===== Board ===== */

.pc-board-wrap {
    overflow: hidden; border: 1px solid #ddd; border-radius: 0; background: #f9f9f9;
    flex: 1; min-height: 0; position: relative;
    cursor: grab; user-select: none; -webkit-user-select: none;
    touch-action: pan-y;
}
.pc-board-wrap--dragging { cursor: grabbing; }
.pc-board { transform-origin: 0 0; will-change: transform; padding: 8px; }

.pc-complex--hidden { display: none; }
.pc-line--hidden { display: none; }
.pc-house { display: flex; gap: 2px; }
.pc-house--hidden { display: none; }

.pc-entrance { display: flex; flex-direction: column; border: 1px solid #ececec; border-radius: 4px; margin-right: 2px; background: #fff; }
.pc-entrance--compact { align-self: flex-start; }
.pc-entrance__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 4px 4px 0; }
.pc-entrance__name { text-align: center; padding: 4px 8px; font-size: 12px; color: #666; border-top: 1px solid #ececec; }
.pc-entrance--filtered { display: none !important; }

.pc-floor-group { display: contents; }
.pc-floor-group--expanded { display: contents; }
.pc-floor-row { display: flex; align-items: stretch; padding: 0; min-height: 24px; gap: 4px; }
.pc-floor-row--overflow { display: none; }
.pc-floor-group--expanded .pc-floor-row--overflow,
.pc-floor-group--search-open .pc-floor-row--overflow { display: flex; }

.pc-floor-toggle {
    flex-shrink: 0; width: 18px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; background: none; border: none; color: #999; padding: 0; transition: color 0.15s;
}
.pc-floor-toggle:hover { color: #333; }
.pc-floor-group--expanded .pc-floor-toggle svg,
.pc-floor-group--search-open .pc-floor-toggle svg { transform: rotate(180deg); }
.pc-floor-toggle svg { transition: transform 0.2s; }

.pc-folded { display: none !important; }

.pc-fold-divider {
    display: flex; align-items: center; gap: 6px;
    height: 16px; color: #999; font-size: 10px; line-height: 1;
    user-select: none; white-space: nowrap;
}
.pc-fold-divider::before,
.pc-fold-divider::after { content: ""; flex: 1 1 auto; min-width: 8px; border-top: 1px dashed #d5d5d5; }

.pc-floor-group--reflow { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; position: relative; padding-left: 24px; }
.pc-floor-group--reflow .pc-floor-row,
.pc-floor-group--reflow .pc-floor-row--overflow { display: contents; }
.pc-floor-group--reflow .pc-cells { display: contents; }
.pc-floor-group--reflow .pc-floor-label:not(.pc-floor-label--spacer) { position: absolute; left: 0; top: 0; height: 24px; }
.pc-floor-group--reflow .pc-floor-label--spacer,
.pc-floor-group--reflow .pc-floor-toggle,
.pc-floor-group--reflow .pc-cell--empty { display: none; }

.pc-floor-label { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; font-size: 10px; color: #888; cursor: pointer; }
.pc-floor-label:hover { background: #ececec; border-radius: 3px; color: #333; }
.pc-floor-label--spacer { cursor: default; }
.pc-floor-label--spacer:hover { background: none; color: #888; }

.pc-cells { display: flex; gap: 4px; flex: 1; }

.pc-cell {
    width: 24px; height: 24px; border-radius: 2px;
    border: 1px solid #ececec; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer;
    transition: box-shadow 0.15s; position: relative;
}
.pc-cell:hover { box-shadow: 0 0 0 2px var(--pc-ring, #ececec); z-index: 5; }
.pc-cell[data-status="on_sale"] { --pc-ring: #4cbc7b; }
.pc-cell[data-status="reservation"] { --pc-ring: #edb96c; }
.pc-cell[data-status="sales"], .pc-cell[data-status="sold"] { --pc-ring: #d9d9d9; }
.pc-cell[data-status="failed"] { --pc-ring: darkred; }
.pc-cell[data-status="owner"] { --pc-ring: gray; }
.pc-cell--empty { background: #f9f9f9; border-color: #f0f0f0; cursor: default; }
.pc-cell--empty:hover { box-shadow: none; }
.pc-cell--filtered { display: none !important; }

.pc-cell__sticker {
    position: absolute; right: 0; bottom: 0; z-index: 1;
    width: 10px; height: 10px; display: block;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    pointer-events: none;
}
.pc-cell--stickered .pc-cell__rooms,
.pc-cell--stickered .pc-cell__number,
.pc-cell--stickered .pc-cell__square,
.pc-cell--stickered .pc-cell__price,
.pc-cell--stickered .pc-cell__rooms--market,
.pc-cell--stickered .pc-cell__price--market { color: inherit; }

.pc-legend__marker { width: 16px; height: 16px; border-radius: 2px; border: 1px solid #ececec; position: relative; overflow: hidden; background: #fff; flex-shrink: 0; box-sizing: border-box; }
.pc-legend__square { display: block; position: absolute; inset: 0; }
.pc-legend__tri { display: block; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }

.pc-legend-dd { position: relative; display: flex; }
.pc-legend-pop {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 200px; max-width: min(320px, calc(100vw - 32px)); background: #fff;
    border: 1px solid #ccc; border-radius: 4px;
    padding: 10px 12px; z-index: 300; flex-direction: column; gap: 8px;
    overflow-y: auto; box-sizing: border-box;
}
.pc-legend-pop--open { display: flex; }
.pc-legend-pop__title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #999; margin-bottom: -2px; user-select: none; }
.pc-legend__item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #333; min-width: 0; }
.pc-legend__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.pc-cell__rooms { font-size: 11px; font-weight: 700; color: #333; line-height: 1; }
.pc-cell__rooms--market { color: #d32f2f; }
.pc-cell__rooms--m, .pc-cell__rooms--l { display: none !important; }
.pc-cell__row1 { display: contents; }
.pc-cell__meta { display: none; }
.pc-cell__number, .pc-cell__square, .pc-cell__price { display: none; font-size: 9px; color: #555; line-height: 1.2; }
.pc-cell__price--market { color: #d32f2f; font-weight: 700; }

/* ===== Label overlays ===== */

.pc-entrance-labels-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; height: 22px;
    pointer-events: none; z-index: 10; overflow: hidden;
}
.pc-entrance-label-floating {
    position: absolute; bottom: 0; text-align: center;
    font-size: 12px; color: #666; background: rgba(255,255,255,0.92);
    border-top: 1px solid #ececec; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
    padding: 3px 4px; box-sizing: border-box; line-height: 1;
}

.pc-floor-labels-overlay {
    position: absolute; top: 0; left: 0; bottom: 0; width: 20px;
    pointer-events: none; z-index: 10; overflow: hidden;
}
.pc-floor-label-floating {
    position: absolute; left: 0;
    display: flex; align-items: center; justify-content: center;
    color: #888; background: rgba(255,255,255,0.92);
    border-right: 1px solid #ececec; box-sizing: border-box;
    font-size: 10px;
}

/* ===== Fullscreen ===== */

.pc-chess--fullscreen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999; background: #fff;
    display: flex; flex-direction: column;
    max-width: none; margin: 0; padding: 12px;
    overflow: hidden; height: 100vh;
}
.pc-chess--fullscreen .pc-toolbar,
.pc-chess--fullscreen .pc-filters,
.pc-chess--fullscreen .pc-search-section { display: none; }
.pc-chess--fullscreen .pc-board-wrap { flex: 1; min-height: 0; height: auto; }
@media (max-width: 640px) {
    .pc-range-group { min-width: 180px; }
    .pc-filter-btn { padding: 0 12px; }
    .pc-filter-count { width: 100%; text-align: right; }
    .pc-search { max-width: 100%; }
    .pc-search__dropdown { max-width: 100%; }
    .pc-tag-group { width: 100%; }
}

.pc-view-btn--text { width: auto; padding: 0 12px; gap: 7px; font-size: 14px; font-weight: 500; color: #333; }

@media (pointer: coarse) {
    .pc-search__input, .pc-range__input { font-size: 16px; }
}

/* ===== Full-bleed bars & board (site page inside .container) =====
   On a standalone/embed page (no .container parent) 50% == 50vw and every
   calc() below collapses to zero; padding floors at 16px so the content
   keeps side indents (embed modal, container-less hosts). */

.pc-chess {
    overflow: visible;
    height: auto;
}
.pc-toolbar {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(16px, calc(50vw - 50%));
    padding-right: max(16px, calc(50vw - 50%));
}
.pc-filters {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(16px, calc(50vw - 50%));
    padding-right: max(16px, calc(50vw - 50%));
}
.pc-search-section {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(16px, calc(50vw - 50%));
    padding-right: max(16px, calc(50vw - 50%));
}
.pc-board-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    z-index: 0;
}
.pc-board-wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.pc-board-clip {
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-height: 100%;
    padding-bottom: 56px;
    overflow: hidden;
    overflow: clip;
}
.pc-board {
    padding: 8px 20px 20px 20px;
}
.pc-entrance-labels-overlay {
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
}
.pc-floor-labels-overlay {
    left: calc(50% - 50vw);
}
.pc-chess > .pc-boot {
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
}

/* ===== Fullscreen hardening =====
   The full-bleed section above re-declares .pc-chess (equal specificity,
   later position) — its height/overflow can beat the fullscreen geometry.
   Re-pin the fullscreen box with higher specificity at the END of the
   cascade; JS (toggleFullscreen) additionally sets an inline height. */

.pc-chess.pc-chess--fullscreen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh; max-height: none; min-height: 0;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.pc-chess.pc-chess--fullscreen .pc-board-wrap {
    flex: 1 1 auto; min-height: 0; height: auto; max-height: none;
}

/* Fixed-height modes (fullscreen / embed): the in-flow clip's
   `max-height: 100%` does NOT resolve against the flexed auto-height wrap
   in Chrome (percentages of an auto-height flex item = none) — the clip
   stayed content-sized and `overflow: clip` cut the fitted board, leaving
   the gray ::before frame below. Absolute inset-0 against the relative
   wrap gives a definite height with no percentages. */
.pc-chess.pc-chess--fullscreen .pc-board-clip,
.pc-chess.pc-chess--embed .pc-board-clip {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: 0;
    max-height: none;
}
.pc-chess.pc-chess--fullscreen .pc-floor-labels-overlay,
.pc-chess.pc-chess--embed .pc-floor-labels-overlay,
.pc-chess.pc-chess--fullscreen .pc-entrance-labels-overlay,
.pc-chess.pc-chess--embed .pc-entrance-labels-overlay {
    left: 0; right: 0;
}
.pc-chess button:focus { outline: none; }
.pc-chess button:focus-visible { outline: 2px solid #009640; outline-offset: 1px; }

/* End */
/* /local/components/pashkei/catalog.chess/templates/.default/style.css?179423652628757 */
