

/* Start:/local/components/dmcg/apartments/templates/.default/style.css?176710140216536*/
.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;
}

/* === ПЕРЕКЛЮЧАТЕЛЬ ВИДОВ === */
.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;
}

/* === ВИД ТАБЛИЦЫ === */
.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: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;
}

.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-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: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__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 {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto 40px;
    font-family: 'Isabella Sans', sans-serif;
    color: #fff;
}

.filter-row {
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    padding: 15px;
    flex-wrap: wrap;
    gap: 5px 20px;
    border-radius: 10px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 105px;
}

.filter-item label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.filter-range input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1rem;
    width: 50px;
    padding: 6px 10px;
    border-radius: 4px;
}

.filter-range input:focus {
    outline: none;
    border-color: #D4BFA1;
}

.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: 6px;
    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: 37px;
    padding-top: 4px;
    padding-bottom: 5px;
}

.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 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.95rem;
    transition: color .2s ease;
    text-align: right;
}

.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;
}
.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;
    }

    .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;
    }
    /* прячем десктоп */
    .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;
    }
}
.is-reserved {
    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?176710140216536 */
