

/* Start:/local/components/dmcg/apartments/templates/.default/style.css?177964168827884*/
.apartment-card,
.apartment-card *,
.apartment-card:visited,
.apartment-card:hover,
.apartment-card:focus,
.apartments-table__row,
.apartments-table__row *,
.apartments-table__row:visited,
.apartments-table__row:hover,
.apartments-table__row:focus {
    text-decoration: none !important;
    color: inherit !important;
}

.section-apartments {
    background: #0E2B42 url("/local/templates/barkli-dan/images/sec_31_bg.png") center top repeat;
    background-size: contain;
    padding: 10px 0;
    color: #fff;
    text-align: center;
    font-family: "Isabella Sans", sans-serif;
    padding-bottom: 40px;
}

.section-apartments__title {
    text-align: center;
    font-family: "SangBleu Sunrise", serif;
    font-size: 2rem;
    font-weight: 300;
    color: #D2D2CC;
    margin-bottom: 0.5rem;
}

.section-apartments__subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.building-interactive {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto 36px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.building-interactive__stage {
    position: relative;
    display: block;
    line-height: 0;
}

.building-interactive__image {
    display: block;
    width: 100%;
    height: auto;
}

.building-interactive__masks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 2;
}

.building-mask-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.building-mask-svg__path {
    pointer-events: visibleFill;
    fill: rgba(255, 255, 255, 0.001);
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 0.55;
    transition: fill 0.2s ease, stroke 0.2s ease;
    cursor: pointer;
    transform: translateY(1.5px);
}


.building-mask-svg__path:hover {
    fill: rgba(255, 255, 255, 0.14);
    stroke: rgba(255, 255, 255, 0.35);
}

.building-hotspot {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    padding: 4px;
    z-index: 4;
    pointer-events: auto;
}

.building-hotspot__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4ea1ff;
    box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.35);
}

.building-hotspot__label {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    background: rgba(31, 112, 214, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-family: "Isabella Sans", sans-serif;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.building-hotspot:hover .building-hotspot__label,
.building-hotspot:focus-visible .building-hotspot__label {
    background: rgba(45, 140, 235, 0.98);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.building-hotspot:hover .building-hotspot__dot,
.building-hotspot:focus-visible .building-hotspot__dot {
    box-shadow: 0 0 0 4px rgba(78, 161, 255, 0.45);
}

.building-hotspot--1 {
    left: 26%;
    top: 63%;
}

.building-hotspot--2 {
    left: 50%;
    top: 48%;
}

.building-hotspot--3 {
    left: 69%;
    top: 56%;
}

.building-tooltip {
    position: absolute;
    min-width: 220px;
    max-width: 280px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(14, 43, 66, 0.94);
    border: 1px solid rgba(212, 191, 161, 0.45);
    color: #fff;
    text-align: left;
    pointer-events: auto;
    z-index: 20;
    font-size: 15px;
    line-height: 1.35;
}

.building-tooltip__title {
    color: #d4bfa1;
    font-family: "SangBleu Sunrise", serif;
    font-size: 16px;
    margin-bottom: 6px;
}

.building-tooltip__line {
    display: block;
    margin-top: 4px;
}

.building-tooltip__actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.building-tooltip__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: "Isabella Sans", sans-serif;
    font-size: 15px;
    color: #0e2b42;
    background: #d4bfa1;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.building-tooltip__btn:hover {
    background: #e8d9c4;
    color: #0e2b42;
}

/* === ПЕРЕКЛЮЧАТЕЛЬ ВИДОВ === */
.view-switcher {
    min-width: auto !important;
}

.view-buttons {
    display: flex;
    gap: 6px;
}

.view-btn {
    width: 40px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.view-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.8);
}

.view-btn.active {
    background: #D4BFA1;
    color: #0e2b42;
    border-color: #D4BFA1;
}

/* === СОРТИРОВКА === */
.sort-wrapper {
    position: relative;
    display: inline-block;
}

.sort-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.filter-item--actions .sort-arrow {
    right: 10px;
}

/* === ВИД ТАБЛИЦЫ === */
.apartments-list.view-table {
    display: block;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.apartments-table {
    background: rgba(18, 43, 68, 0.5);
    border-radius: 10px;
    overflow: hidden;
}


.apartments-table__row,
.apartments-table__header {
    display: grid;
    grid-template-columns:
       0.2fr
       0.2fr
       0.2fr
     0.4fr
      0.4fr
      0.4fr
        0.4fr
      0.4fr
       0.4fr
       0.5fr
        0.4fr;

    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 1.25rem;
    min-height: 3.125rem; /* 50px → относительная логика */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.apartments-table__row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.apartments-table__row.is-sold:hover {
    background-color: transparent;
}

.apartments-table__row:last-child {
    border-bottom: none;
}

/* Колонки таблицы */
.col-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-wrapper--sold {
    width: 100%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
}

.col-korpus,
.col-floor,
.col-rooms {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.col-name {
    font-family: 'SangBleu Sunrise', serif;
    color: #D4BFA1;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.col-name span {
    text-decoration: none !important;
}

.col-square {
    color: rgba(255, 255, 255, 0.85);
}

.col-price {
    font-family: 'SangBleu Sunrise', serif;
    color: #D4BFA1;
    font-size: 1rem;
    text-align: right;
}

.col-like {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Иконка галереи в таблице */
.apartments-table__row .gallery-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 100;
}
.apartments-table__row[data-href],
.apartments-table__row__mobile[data-href],
.apartment-card[data-href] {
    cursor: pointer;
}
.apartments-table__row.is-sold,
.apartments-table__row__mobile.is-sold,
.apartment-card.is-sold {
    cursor: default;
}

.apartments-table__row:hover .gallery-icon {
    opacity: 1;
}

.apartments-table__row .apartment-like {
    position: static;
}

/* === ВИД КАРТОЧЕК === */
.apartments-list.view-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.apartment-card {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 26px;
    background: #122B44;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    margin-bottom: 20px;
}

.apartment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.apartment-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.apartment-card__img {
    position: relative;
    width: 100%;
    height: 250px;
    background: #fff;
    border-radius: 26px 26px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.apartment-card__img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.apartment-card__img:hover img {
    transform: scale(1.03);
}
.apartment-card__img--sold {
    background: rgba(255, 255, 255, 0.08);
}

.apartment-card__info {
    padding: 26px 30px 32px;
    color: #fff;
    font-family: 'Isabella Sans', sans-serif;
    text-align: left;
    background: #0e283e;
    border-radius: 0 0 26px 26px;
    flex-grow: 1;
    position: relative;
}

.apartment-card__info .num {
    font-family: 'SangBleu Sunrise', serif;
    font-size: 1.1rem;
    color: #D4BFA1;
    margin-bottom: 8px;
}

.apartment-card__info .desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 14px;
}

.apartment-card__info .price {
    font-family: 'SangBleu Sunrise', serif;
    color: #D4BFA1;
    font-size: 1.3rem;
}

/* Иконка галереи в карточках */
.apartment-card .gallery-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 100;
}

.apartment-card__img:hover .gallery-icon {
    opacity: 1;
}

/* === ЛАЙКИ === */
.apartment-like {
    top: 37px;
    position: absolute;
    z-index: 1000;
    right: 26px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.apartment-like:hover {
    transform: scale(1.15);
}

.apartment-like img {
    width: 22px;
    height: 22px;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.apartment-like.active img {
    opacity: 1;
}

/* === ФИЛЬТР === */
.apartments-filter {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto 40px;
    font-family: 'Isabella Sans', sans-serif;
    color: #fff;
}

.filter-row {
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px 10px;
    border-radius: 10px;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 1000px) and (max-width: 1199px) {
    .filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .filter-item--range-price {
        flex: 1 1 160px;
        min-width: 160px;
    }

    .filter-item--range-square {
        flex: 1 1 140px;
        min-width: 140px;
    }

    .filter-item--range-floor {
        flex: 0 0 96px;
        min-width: 96px;
    }

    .filter-item {
        flex-shrink: 0;
    }
}

@media (min-width: 1200px) {
    .filter-row {
        flex-wrap: nowrap;
        gap: 8px 10px;
        padding: 10px 12px;
    }

    .filter-item--range-price {
        flex: 1.35 1 0;
        min-width: 0;
    }

    .filter-item--range-square {
        flex: 1.1 1 0;
        min-width: 0;
    }

    .filter-item--range-floor {
        flex: 0 0 108px;
        min-width: 108px;
    }

    .filter-item--actions {
        margin-left: auto;
    }

    .filter-item {
        flex-shrink: 0;
    }
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    justify-content: flex-end;
}

.filter-item--range {
    gap: 0;
    min-width: 0;
}

.filter-item label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.15;
    white-space: nowrap;
}

.filter-item__label-spacer {
    display: none;
}

.filter-item--actions {
    flex-shrink: 0;
    align-self: flex-end;
}

.filter-item--range-price .filter-range-slider__values {
    font-size: 14px;
    letter-spacing: -0.02em;
}

.filter-actions-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: nowrap;
}

.filter-actions-inline .sort-wrapper {
    flex-shrink: 0;
}

/* двойной ползунок: без фона блока, один трек по центру */
.filter-range-slider {
    box-sizing: border-box;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 2px 2px;
    color: #fff;
    text-align: left;
}

.filter-range-slider__label {
    display: block;
    font-size: 0.9rem;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
    font-family: 'Isabella Sans', sans-serif;
    white-space: nowrap;
}

.filter-range-slider__values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    font-family: 'Isabella Sans', sans-serif;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.filter-range-slider__sep {
    color: rgba(255, 255, 255, 0.28);
    font-weight: 300;
}

/* трек: одна серая линия + белый сегмент; нативный track у input скрыт (иначе 2 коричневые полосы) */
.filter-range-slider__track-wrap {
    --thumb: 12px;
    --track-h: 2px;
    --wrap-h: 26px;
    --track-y: 12px; /* (26 - 2) / 2 — одна координата для линии и fill */
    position: relative;
    height: var(--wrap-h);
    min-height: var(--wrap-h);
    margin: 0;
    isolation: isolate;
}

.filter-range-slider__track-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: var(--track-y);
    height: var(--track-h);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.24);
    pointer-events: none;
    z-index: 0;
}

.filter-range-slider__fill {
    position: absolute;
    left: 0;
    width: 0;
    top: var(--track-y);
    height: var(--track-h);
    border-radius: 1px;
    background: #fff;
    pointer-events: none;
    z-index: 1;
}

.apartments-filter .filter-range-slider__input[type="range"] {
    --thumb: 12px;
    --track-h: 2px;
    --track-y: 0px;
    --wrap-h: 26px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: var(--wrap-h);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    accent-color: transparent;
    pointer-events: none;
    z-index: 2;
}

/* невидимый нативный трек — только якорь для ручки на той же высоте, что ::before */
.apartments-filter .filter-range-slider__input[type="range"]::-webkit-slider-runnable-track {
    height: var(--track-h) !important;
    margin-top: var(--track-y) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.apartments-filter .filter-range-slider__input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: var(--thumb);
    height: var(--thumb);
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(14, 43, 66, 0.9);
    box-shadow: none;
    margin-top: calc((var(--track-h) / 2) - (var(--thumb) / 2));
    cursor: grab;
}

.apartments-filter .filter-range-slider__input[type="range"]::-moz-range-track {
    height: var(--track-h) !important;
    background: transparent !important;
    border: none !important;
}

.apartments-filter .filter-range-slider__input[type="range"]::-moz-range-progress {
    background: transparent !important;
}

.apartments-filter .filter-range-slider__input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: var(--thumb);
    height: var(--thumb);
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(14, 43, 66, 0.9);
    box-shadow: none;
    cursor: grab;
}

.apartments-filter .filter-range-slider__input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.apartments-filter .filter-range-slider__input[type="range"]:focus {
    outline: none;
}

.apartments-filter .filter-range-slider__input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 2px rgba(212, 191, 161, 0.65);
}

.apartments-filter .filter-range-slider__input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 2px rgba(212, 191, 161, 0.65);
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.filter-buttons button {
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 0;
    cursor: pointer;
    transition: all .2s ease;
}

.filter-buttons button.active {
    background: #D4BFA1;
    color: #0e2b42;
    border-color: #D4BFA1;
}

.filter-like {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 32px;
}

.filter-like img {
    width: 22px;
    height: 22px;
}

.filter-like.active img {
    content: url("/local/components/dmcg/apartments/templates/.default/images/like_set.svg");
}

.filter-item select {
    width: 100%;
    padding: 7px 36px 7px 14px;
    font-family: 'Isabella Sans', sans-serif;
    font-size: 1rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    transition: all 0.3s ease;
}

.filter-item--actions select {
    width: auto;
    min-width: 6.75rem;
    padding: 6px 30px 6px 10px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.filter-item select:focus {
    outline: none;
    border-color: #D4BFA1;
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-item option {
    color: #000;
}

.filter-reset {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .2s ease;
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 32px;
    padding: 0 2px;
}

.filter-reset:hover {
    color: #D4BFA1;
}

/* === ПРОЧЕЕ === */
.show-all-wrapper {
    display: flex;
    justify-content: center;
    margin: 60px 0 100px;
}

.btn-show-all {
    display: inline-block;
    padding: 14px 40px;
    font-family: "Isabella Sans", sans-serif;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all .3s ease;
}

.btn-show-all:hover {
    border-color: #D4BFA1;
    color: #D4BFA1;
    background: rgba(212, 191, 161, 0.15);
}

.apartments-empty {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Isabella Sans', sans-serif;
    font-size: 1.2rem;
    padding: 60px 0;
    margin-bottom: 200px;
}

.col-name a {
    text-decoration: underline !important;
}
.col-name a,
.apartments-table__row__mobile .mobile-name a {
    text-decoration: none !important;
}
.apartments-table__row__mobile{
    display: none;
}

/* === АДАПТИВ === */
@media (max-width: 1000px) {
    .section-apartments {
        background: #0E2B42 url("/local/templates/barkli-dan/images/sec_31_bg.png") center top repeat-y;
        background-size: auto;
    }

    .section-apartments__title {
        font-size: 1.4rem;
    }

    .section-apartments__subtitle {
        width: 80%;
        margin: 0 auto;
        padding-bottom: 20px;
    }

    .building-interactive {
        width: 96%;
    }

    .building-tooltip {
        min-width: 180px;
        font-size: 12px;
    }

    .filter-row {
        padding: 7px;
    }

    .section-apartments {
        padding-bottom: 1px;
    }

    .fancybox__content {
        padding: 5px !important;
    }

    /* Таблица превращается в карточки на мобильных */
    .apartments-table {
        display: flex;
        flex-direction: column;
        gap: 20px;
        background: transparent;
    }

    .apartments-table__header {
        display: none;
    }

    .apartments-table__row {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 0;
        background: #122B44;
        border-radius: 26px;
        border-bottom: none;
        overflow: hidden;
    }

    .apartments-table__row .photo-wrapper {
        width: 100%;
        height: 200px;
        border-radius: 26px 26px 0 0;
    }

    .apartments-table__row .col-photo,
    .apartments-table__row .col-korpus,
    .apartments-table__row .col-floor,
    .apartments-table__row .col-name,
    .apartments-table__row .col-rooms,
    .apartments-table__row .col-square,
    .apartments-table__row .col-price,
    .apartments-table__row .col-like {
        width: 100%;
        text-align: left;
        padding: 0 20px;
    }

    .apartments-table__row .col-photo {
        padding: 0;
        height: 200px;
    }

    .apartments-table__row .col-name {
        padding-top: 20px;
        font-size: 1.1rem;
    }

    .apartments-table__row .col-price {
        padding-bottom: 20px;
        text-align: left;
        font-size: 1.3rem;
    }

    .apartments-table__row .apartment-like {
        top: 170px;
        right: 20px;
    }

    .apartments-table__row .gallery-icon {
        bottom: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }

    .apartments-table__row .gallery-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* =========================================================
   MOBILE TABLE — CLEAN SINGLE SOURCE
   ========================================================= */
@media (max-width: 768px) {
    .apartments-table{
        gap: 0;
    }

    .building-hotspot__label {
        font-size: 11px;
        padding: 4px 8px;
    }

    .building-hotspot__dot {
        width: 12px;
        height: 12px;
    }
    /* прячем десктоп */
    .apartments-table__header,
    .apartments-table__row {
        display: none !important;
    }

    /* мобильная строка */
    .apartments-table__row__mobile {
        display: grid;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        grid-template-columns: 66px 0.7fr 1.5fr 3px;
        grid-template-rows: auto auto;
        gap: 6px 12px;

        background: #122B44;
        border-radius: 16px;
        padding-bottom: 12px;
        margin-bottom: 4px;

        position: relative;
        align-items: center;
    }

    /* ===== PHOTO ===== */
    .apartments-table__row__mobile .mobile-left {
        grid-column: 1;
        grid-row: 1 / 3;
        cursor: pointer;
    }

    .apartments-table__row__mobile .mobile-left img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 10px;
        display: block;
        pointer-events: auto;
    }

    /* ===== META TOP ===== */
    .apartments-table__row__mobile .mobile-center {
        grid-column: 2;
        grid-row: 1 / 3;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .apartments-table__row__mobile .mobile-meta {
        font-size: 14px;
        opacity: 0.7;
        margin-bottom: 5px;
        white-space: nowrap;
    }

    .apartments-table__row__mobile .mobile-name a {
        font-family: 'SangBleu Sunrise', serif;
        font-size: 16px;
        color: #D4BFA1 !important;
        text-decoration: underline;
        display: inline-block;
        line-height: 1.2;
    }

    /* ===== META BOTTOM ===== */
    .apartments-table__row__mobile .mobile-center2 {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }

    .apartments-table__row__mobile .mobile-desc {
        font-size: 14px;
        opacity: 0.85;
        line-height: 1.3;
    }

    .apartments-table__row__mobile .mobile-price {
        font-family: 'SangBleu Sunrise', serif;
        font-size: 16px;
        color: #D4BFA1;
        margin-top: 2px;
        white-space: nowrap;
    }

    /* ===== LIKE ===== */
    .apartments-table__row__mobile .mobile-like {
        grid-column: 4;
        grid-row: 0;
        display: flex;
        z-index: 4;
        align-items: center;
        justify-content: center;
    }
    .apartment-like{
        right: 5px;
        top: 28px;
    }

    .apartments-table__row__mobile .mobile-like img {
        width: 22px;
        height: 22px;
        display: block;
        pointer-events: auto;
    }
    .apartments-table__row__mobile .mobile-center2 {
        grid-column: 3;
        grid-row: 1 / 3;
        text-align: left;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.apartments-table__row__mobile .mobile-left--sold {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
}
.mobile-sold-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    line-height: 1.2;
}
.is-reserved {
    opacity: 0.5;
}
.is-sold {
    opacity: 0.5;
}
@media (max-width: 768px) {


    .apartments-table__row__mobile .mobile-left img {
        width: 60px !important;
        height: 60px !important;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }
}

.apartments-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 32px 0 40px;
    color: #777;
    font-size: 14px;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    opacity: 0.8;
}

/* End */
/* /local/components/dmcg/apartments/templates/.default/style.css?177964168827884 */
