/* ========= VoxCRM – styl (karty + mockup + filtry + pager) ========= */

/* ZMIENNE UŻYTKOWNIKA + sensowne domyślne */
:root {
    --vox-font-size: 14px;
    --vox-head-bg: #fff;
    --vox-row-bg: #fff;
    --vox-row-alt: #fbf7ef;
    --vox-border: #e9e9e9;
    --vox-text: #2d2d2d;

    --vox-badge-green-bg: #e7f6ec;
    --vox-badge-green: #1a7f37;
    --vox-badge-yellow-bg: #fff7e6;
    --vox-badge-yellow: #9a6700;
    --vox-badge-gray-bg: #f1f1f1;
    --vox-badge-gray: #6b7280;

    --vox-btn-border: #dadada;
    --vox-btn-hover: #bdbdbd;
    --vox-price: #232323;
    --vox-price-m2: #8c8c8c;

    /* wariant oliwkowy – jeśli chcesz, nadpisuje zieleń */
    --vox-accent: #ffffff;
    /* zamiennik oliwkowy: */
    --vox-badge-green-bg: #2C8125;
    --vox-badge-green: #fff;

    /* szerokości kolumn „mockup” */
    --vox-grid-desktop: 120px 100px 110px 90px 1fr 130px 180px 160px;
    --vox-grid-tablet: 90px 80px 90px 80px 1fr 120px 160px 1fr;
}

/* ====== Tabela bazowa (layout="table") ====== */
.voxcrm-table {
    border-collapse: collapse;
    width: 100%
}

.voxcrm-table th, .voxcrm-table td {
    border: 1px solid var(--vox-border);
    padding: .5rem
}

.voxcrm-table th {
    background: #f6f7f7;
    text-align: left
}

/* ====== Badge/status ====== */
.voxcrm-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.voxcrm-badge--green {
    background: var(--vox-badge-green-bg);
    color: var(--vox-badge-green);
}

.voxcrm-badge--yellow {
    background: var(--vox-badge-yellow-bg);
    color: var(--vox-badge-yellow);
}

.voxcrm-badge--gray {
    background: var(--vox-badge-gray-bg);
    color: var(--vox-badge-gray);
}

/* ====== LISTA „MOCKUP” ====== */
.voxcrm-list {
    font-size: var(--vox-font-size);
    color: var(--vox-text);
    text-align: center;
}

.voxcrm-list__head,
.voxcrm-list__row {
    display: grid;
    grid-template-columns:var(--vox-grid-desktop);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: var(--vox-row-bg) !important; /* wygaszamy tła z motywu */
    border-bottom: 1px solid var(--vox-border);
    box-sizing: border-box;
}

.voxcrm-list__head {
    background: var(--vox-head-bg) !important;
    position: sticky;
    top: 0;
    z-index: 1;
    color: #232323;
    text-transform: uppercase;
    font-size: .9rem;
    font-weight: 600;
}

.voxcrm-list__row:nth-child(even) {
    background: var(--vox-row-alt) !important;
}

/* wariant oliwkowy – delikatna kreska */
.voxcrm-list__row {
    border-bottom: 1px solid #efe9dd;
}

.voxcrm-opis div {
    line-height: 1.35
}

/* cena */
.voxcrm-price div {
    font-weight: 800;
    color: var(--vox-price);
    font-size: 1rem;
}

.voxcrm-price small {
    color: var(--vox-price);
    display: block;
}

/* przycisk */
.voxcrm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--vox-btn-border);
    background: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
    color: inherit
}

.voxcrm-btn:hover {
    border-color: var(--vox-btn-hover);
    color: #000 !important
}

.voxcrm-card__body .voxcrm-btn {

    background: #E06423;
    color: #fff;
    font-size: 14px;
}

.voxcrm-card__body .voxcrm-btn:hover {
    border: 1px solid #000 !important;
    background: #fff;
    color: #000 !important;
}


.voxcrm-btn span {
    transition: transform .15s ease
}

.voxcrm-btn:hover span {
    transform: translateX(2px)
}

/* RWD „mockup” */
@media (max-width: 1024px) {
    .voxcrm-list__head, .voxcrm-list__row {
        grid-template-columns:var(--vox-grid-tablet);
        gap: 12px
    }
}

@media (max-width: 760px) {
    .voxcrm-list__head {
        display: none
    }

    .voxcrm-list__row {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        padding: 14px 12px;
        background: #fff !important;
        border-radius: 0;
        box-shadow: 0 1px 0 var(--vox-border);
    }

    .voxcrm-list__row .c {
        display: flex;
        gap: .5rem;
        align-items: flex-start
    }

    .voxcrm-list__row .c--opis {
        grid-column: 1 / -1
    }

    .voxcrm-list__row .c--btn {
        grid-column: 1 / -1;
        justify-content: flex-end
    }
}

/* ====== GRID KART (layout="cards") ====== */
.voxcrm-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 16px
}

@media (max-width: 1024px) {
    .voxcrm-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 640px) {
    .voxcrm-grid {
        grid-template-columns:1fr
    }
}

.voxcrm-card {
    border: 1px solid #C4C4C4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.voxcrm-card__media {
    position: relative;
    background: #f6f6f6
}

.voxcrm-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block
}

.voxcrm-card__ph {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888
}

.voxcrm-card__badges {
    position: absolute;
    top: 5px;
    left: 10px;
}

.voxcrm-card__body {
    padding: 14px 16px 16px;
}

.voxcrm-card__title {
    font-size: 16px;
    line-height: 1.3;
    margin: 8px 0 4px
}

.voxcrm-card__loc {
    color: #7E7E7E;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #C4C4C4;
}

.voxcrm-card__icons {
    display: flex;
    gap: 14px;
    color: #232323;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid #C4C4C4;
}

.voxcrm-card__icons {
    display: flex;
    gap: 16px;
    align-items: center
}

.voxcrm-card__icons .icon-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap
}

.voxcrm-card__price {
    border-bottom: 1px solid #C4C4C4;
    padding: 10px 0;
}

.voxcrm-card__price strong {
    font-size: 18px;
    color: #232323;
}

.voxcrm-card__price small {
    color: #232323;
}


.voxcrm-card__btn {
    margin-top: 15px;
    width: 100%;
    justify-content: center;
    z-index: 999999;
    position: relative;
    pointer-events: auto;
}

/* ====== Pasek filtrów (cards) ====== */
.voxcrm-filters-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 6px
}

.voxcrm-filters-bar .vf-line {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap
}

.voxcrm-filters-bar label {
    font-size: 12px;
    color: #666;
    margin-right: 6px
}

.voxcrm-filters-bar select,
.voxcrm-filters-bar input {
    padding: .45rem .6rem;
    border: 1px solid var(--vox-btn-border);
    border-radius: 10px;
    background: #fff
}

.vf-adv-toggle {
    color: #000;
    background: #fff;
    cursor: pointer
}

.vf-advanced {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0
}

.vf-adv-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.vf-adv-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.vf-btn {
    color: #000;
    border-radius: 999px;
    background: #fff
}

.vf-reset {
    color: #666;
    text-decoration: none
}

.vf-info {
    color: #666;
    font-size: 13px
}

/* ====== Paginacja ====== */
.voxcrm-pager {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 22px 0
}

.voxcrm-pager a {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vox-btn-border);
    border-radius: 999px;
    text-decoration: none;
    color: #333;
    padding: 0 12px
}

.voxcrm-pager a.active {
    background: #333;
    color: #fff;
    border-color: #333
}

.voxcrm-pager a:hover {
    border-color: var(--vox-btn-hover)
}

/* ===== Etykieta: dostępne mieszkania ===== */
.voxcrm-available-badge {
    background: #2C8125;
    color: #fff;
    padding: 8px 10px;
    font-weight: 700;
    line-height: 1;
    font-size: 12px;
}

.voxcrm-available-badge--sold {
    background: #9e9e9e;
    color: #fff;
    padding: 8px 10px;
    font-weight: 700;
    line-height: 1;
    font-size: 12px;
}


/* === Price history (ikonka + popover) === */
.voxcrm-pricewrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.voxcrm-priceinfo, .vox-price-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 9px !important;
    border-radius: 50%;
    border: 1px solid #232323;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: #232323;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.voxcrm-priceinfo:hover, .vox-price-info:hover {
    border-color: #bbb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.voxcrm-ph-popover {
    position: fixed;
    z-index: 99999;
    width: 360px;
    max-width: 92vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
    overflow: hidden;
    font-size: 13px;
    color: #232323;
}

.voxcrm-ph-popover .ph-head {
    display: flex;
    padding: 14px 16px;
    border-bottom: 1px solid #C4C4C4;
    background: #fff;
    justify-content: center;
}

.voxcrm-ph-popover .ph-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.voxcrm-ph-popover .ph-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.voxcrm-ph-popover .ph-body {
    padding: 12px 16px;
    max-height: 55vh;
    overflow: auto;
}

.voxcrm-ph-popover .ph-empty {
    color: #666;
    padding: 12px 0;
}

.voxcrm-ph-popover .ph-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
}

.voxcrm-ph-popover .ph-table thead th {
    text-align: left;
    font-weight: 700;
    border: none;
    border-bottom: 1px solid #C4C4C4;
    padding: 10px 6px;
}

.voxcrm-ph-popover .ph-table td {
    padding: 10px 6px;
    border: none;
    border-bottom: 1px solid #C4C4C4;
}

.voxcrm-ph-popover .ph-table td.num {
    text-align: left;
    white-space: nowrap;
}

.voxcrm-ph-popover .ph-actions {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.voxcrm-ph-popover .ph-btn-close {
    padding: 6px;
    height: auto;
    width: 140px;
    font-size: 14px;
    border: 1px solid #232323;
    border-radius: 999px;
    background-color: #fff;
    font-weight: 600;
    color: #232323;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.voxcrm-ph-popover .ph-btn-close:hover {
    border-color: #bdbdbd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}


/*filtry mieszkania*/

/* VoxCRM: zaawansowane filtry domyślnie ukryte */
.vf-advanced[hidden] {
    display: none !important;
}

.wgl-properties_search-advanced {
    transition: height .25s ease;
    overflow: hidden;
}

.wgl-properties_search .form-control {
    max-width: 100%;
}

/* ====== Pasek filtrów – layout jak w makiecie ====== */
.wgl-properties_search {
    margin: 0 0 16px;
}

.wgl-properties_search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto; /* 3 selecty + przycisk */
    gap: 24px;
}

/* Etykiety */
.wgl-properties_search .item_field .title_label {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    color: #7a7a7a;
    margin: 0 0 8px;
}

/* Selecty „podkreślane” */
.wgl-properties_search .form-control {
    width: 100%;
    height: 42px;
    border: 0;
    border-bottom: 1px solid #dcdcdc;
    border-radius: 0;
    background: transparent;
    padding: 0 28px 0 0; /* miejsce na strzałkę */
    box-shadow: none;
    cursor: pointer;
}

.voxcrm-filters select.form-control option {
    cursor: pointer;
    text-indent: 10px !important;
}

.wgl-properties_search .form-control:focus {
    outline: none;
    border-bottom-color: #111;
    box-shadow: none;
}

/* Strzałka w selectach */
.wgl-properties_search .item_field {
    position: relative;
}

.wgl-properties_search .item_field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

/* Przycisk „Zaawansowane filtry” */
.wgl-properties_search .advanced_filter .adv_toggle {
    height: 42px;
    padding: 0 18px;
    border: 1px solid #111;
    border-radius: 24px;
    background: #fff;
    color: #111;
    line-height: 42px;
    cursor: pointer;
    white-space: nowrap;
}

.wgl-properties_search .advanced_filter .adv_toggle.is-open {
    background: #111;
    color: #fff;
}

/* Panel zaawansowany – animacja + siatka */
.wgl-properties_search-advanced {
    transition: height .25s ease;
    overflow: hidden;
    margin-top: 16px;
}

.wgl-properties_search-advanced .search_wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 5px 24px;
}

/* Podwójne pola (od/do) */
.wgl-properties_search-advanced .double-input {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px;
}

.wgl-properties_search-advanced .form-control {
    height: 40px;
    border-bottom: 1px solid #dcdcdc;
}

/* Grupy przycisków (typy, pokoje itp.) */
.wgl-properties_search-advanced .btn-group-toggle label {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: 18px;
    padding: 6px 10px;
    margin: 4px 6px 0 0;
    cursor: pointer;
    user-select: none;
}

.wgl-properties_search-advanced .btn-group-toggle input {
    display: none;
}

.wgl-properties_search-advanced .btn-group-toggle input:checked + span {
    background: #111;
    color: #fff;
    border-radius: 16px;
    padding: 4px 8px;
}

/* Link „Wyczyść” */
.wgl-properties_search-advanced .field-reset-btn .reset_btn {
    background: none;
    border: 0;
    color: #666;
    text-decoration: underline;
    padding: 0;
    cursor: pointer;
    margin-left: 10px;
}

/* RWD */
@media (max-width: 1024px) {
    .wgl-properties_search-fields {
        grid-template-columns:1fr 1fr auto;
    }
}

@media (max-width: 900px) {
    .wgl-properties_search-fields {
        grid-template-columns:1fr 1fr;
    }

    .wgl-properties_search .advanced_filter {
        grid-column: 1 / -1;
    }

    .wgl-properties_search-advanced .search_wrapper {
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width: 600px) {
    .wgl-properties_search-fields {
        grid-template-columns:1fr;
        gap: 5px;
    }

    .wgl-properties_search-advanced .search_wrapper {
        grid-template-columns:1fr;
    }
}

/* === VOXCRM: single (layout "pro") === */
.voxcrm-single2.container {
    max-width: 1200px;
    margin: -10px auto 0;
}

.vs2-grid {
    display: grid;
    grid-template-columns:1fr 310px;
    gap: 10px;
    align-items: start;
}

.vs2-media {
    position: relative;
    padding: 0 10px;
}

.vs2-ph {
    padding: 60px;
    text-align: center;
    color: #777;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

.vs2-gallery {
    position: relative;
}

.vs2-main {
    aspect-ratio: 16/10;
    border: 1px solid #C4C4C4;
    overflow: hidden;
}

.vs2-main img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    display: none;
}

.vs2-main img.active {
    display: block;
}

.vs2-nav {
    position: absolute;
    top: 50%;
    border: 1px solid #000;
    background: #ffffff6b;
    border-radius: 999px;
    cursor: pointer;
    padding: 15px;
}

.vs2-nav:hover, .vs2-nav:active {
    background: #ffffff6b !important;
}

.vs2-prev {
    left: 10px;
}

.vs2-next {
    right: 10px;
}

.voxcrm-single2 .vs2-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    --cols: 9;
    margin-top: 10px;
}

.voxcrm-single2 .vs2-thumb {
    flex: 0 0 calc((100% - (var(--cols) - 1) * 8px) / var(--cols));
    padding: 0;
    border: 1px solid #eee;
    border-radius: 1px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
}

.voxcrm-single2 .vs2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* mniejsze ekrany – mniej kolumn */
@media (max-width: 1399px) {
    .voxcrm-single2 .vs2-thumbs {
        --cols: 8;
    }
}

@media (max-width: 1199px) {
    .voxcrm-single2 .vs2-thumbs {
        --cols: 7;
    }
}

@media (max-width: 991px) {
    .voxcrm-single2 .vs2-thumbs {
        --cols: 6;
    }
}

@media (max-width: 767px) {
    .voxcrm-single2 .vs2-thumbs {
        --cols: 5;
    }
}

.vs2-thumb.active {
    outline: 1px solid #232323;
}

.vs2-card {
    border: 1px solid #C4C4C4;
    position: sticky;
    top: 24px;
    will-change: transform;
}

.vs2-badges {
    margin-bottom: 15px;
}

.vs2-badges .voxcrm-badge {
    font-size: 12px !important;
}

.vs2-title {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 4px;
}

.vs2-meta {
    color: #232323;
    display: grid;
    gap: 16px;
    padding: 15px !important;
}

.vs2-price {
    margin: 6px 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #232323;
}

.vs2-price-main {
    font-weight: 700;
    font-size: 18px;
}

.vs2-price-sub {
    color: #232323;
    font-size: 12px;
}

.vs2-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E06423;
    color: #fff;
    padding: 14px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    justify-content: center;
    border: 1px solid transparent;

}

.vs2-cta:hover {
    border: 1px solid #000;
    color: #000 !important;
    background: #fff;
}

.vs2-cta:hover img.vs2-field__ico {
    filter: brightness(0) saturate(100%);
}


.vs2-details {
    border-top: 1px solid #eee;
    margin-top: 28px;
    padding: 50px 10px 0 10px;
}

.vs2-details h2 {
    font-size: 20px;
    margin: 0 0 14px;
}

.vs2-table {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px 40px;
    font-size: 14px;
}

.vs2-table > div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.vs2-table > div span {
    color: #232323;
}


.vs2-docs {
    margin-top: 28px;
    padding: 50px 10px 0 10px;
}

.text-document-lokal {
    color: #6B6B6B;
}

.vs2-docs h2 {
    font-size: 20px;
    margin: 0 0 12px;
    line-height: 1.6;
}

.vs2-docs-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.vs2-docbtn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #232323;
    border-radius: 999px;
    padding: 12px 20px;
    text-decoration: none;
    color: #232323;
    font-size: 14px;
    font-weight: 600;

}

.desktop {
    display: block;
}

.mobile {
    display: none;
}

.vs2-docbtn:hover, .vs2-docbtn:focus {
    color: #232323 !important;
}

/* Logo inwestycji w kartach lokali */
.container-logo {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #C4C4C4;
    padding: 5px 15px;
}

.container-lokal {
    border-bottom: 1px solid #C4C4C4;
    padding: 10px 15px;
}

.vs2-card .vs2-logo {
    display: block;
    width: 200px;
    object-fit: contain;
    margin: 0 0 10px;
}

.vs2-card {
    margin: 0 10px 10px 0;
}

.vs2-field.with-ico {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* VoxCRM – breadcrumbs */
.voxcrm-bc {
    margin: 0 0 16px;
    color: #232323;
    font-weight: 700 !important;
    font-family: "Playfair Display", Sans-serif;
    font-style: italic;
    font-size: 18px !important;
    padding: 0 10px 0;

}

.voxcrm-bc a {
    color: inherit;
    text-decoration: none;

}

.voxcrm-bc a:hover {
    color: #6b6b6b !important;
}

.voxcrm-bc .sep {
    margin: 0 6px;
    color: #232323
}

.lokal-container {
    margin-top: 28px;
    padding: 50px 0 0 0;
}

.full-width-breakout {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 768px) {
    .vs2-table {
        grid-template-columns:1fr;
    }
}

/* Odstęp nad pierwszą siatką (dopasuj np. 8–24px) */
.voxcrm-single2 .vs2-grid:first-of-type {
    margin-top: 12px;
}

/* Subtelne wygładzenie ruchu karty (działa też bez JS-lerp) */
.vs2-card {
    will-change: transform;
    transition: transform .12s ease-out;
}


/*galeria podglad*/
/* ===== VoxCRM: Lightbox galerii ===== */
.voxcrm-lb {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    z-index: 999999;
    display: none; /* otwarty -> .is-open */
    align-items: center;
    justify-content: center;
}

.voxcrm-lb.is-open {
    display: flex;
}

.voxcrm-lb__inner {
    position: relative;
    max-width: 96vw;
    max-height: 92vh;
}

.voxcrm-lb__img {
    max-width: 96vw;
    max-height: 92vh;
    display: block;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}

/* Sterowanie */
.voxcrm-lb__close,
.voxcrm-lb__prev,
.voxcrm-lb__next {
    position: absolute;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

.voxcrm-lb__close {
    top: -14px;
    right: -14px;
    font-size: 22px;
    line-height: 1;
}

.voxcrm-lb__prev {
    left: -52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
}

.voxcrm-lb__next {
    right: -52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
}

@media (max-width: 768px) {
    .voxcrm-lb__prev {
        left: 10px;
    }

    .voxcrm-lb__next {
        right: 10px;
    }
}

body.voxcrm-lb-open {
    overflow: hidden;
}

/* Podpowiedź „powiększ” na dużym kadrze */
.vs2-main {
    cursor: zoom-in;
}

.voxcrm-el-lb {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
}


/**/
/* VOX: prosty lightbox dla .vs2-gallery */
.voxlb {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999
}

.voxlb.is-open {
    display: flex
}

.voxlb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .85)
}

.voxlb__stage {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1
}

.voxlb__stage img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    height: auto;
    width: auto
}

.voxlb__close {
    position: absolute;
    cursor: pointer;
    top: 20px;
    right: 20px;
    width: 38px;
    height: auto;
    padding: 5px;
    border-radius: 1px;
    font-size: 20px;
}

.voxlb__nav:hover {
    color: #fff !important;
    background: #ffffff29 !important;

}

.voxlb__nav {
    position: absolute;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid #fff;
    background: #ffffff6e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 15px;
    z-index: 9999;
}

.voxlb__nav:hover {
    border: 1px solid #fff;
    background: #ffffff29;

}


.voxlb__prev {
    left: 24px
}

.voxlb__next {
    right: 24px
}

.voxlb__counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    z-index: 2;
    font-size: 14px
}

body.voxlb-open {
    overflow: hidden
}

/* kosmetyka kursora na dużym zdjęciu */
.voxcrm-single2 .vs2-main {
    cursor: zoom-in
}


/* ===== Slider kart VoxCRM ===== */
.voxcrm-slider {
    position: relative;
}

.voxcrm-slider .vx-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, 28vw, 320px); /* szer. pojedynczej karty */
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 64px; /* miejsce na strzałki */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 64px;
    scroll-padding-right: 64px;
}

.voxcrm-slider .vx-track::-webkit-scrollbar {
    height: 0;
}

.voxcrm-slide {
    scroll-snap-align: start;
}

/* Strzałki */
.vx-sbtn {
    position: absolute;
    top: 30%;
    border: 1px solid #000;
    background: #ffffff6b;
    border-radius: 999px;
    cursor: pointer;
    padding: 16px;
    z-index: 999;
}

.vx-prev {
    left: -5px;
}

.vx-next {
    right: -5px;
}

.vx-sbtn:disabled {
    opacity: .4;
    pointer-events: none;
}

/* RWD */
@media (max-width: 900px) {
    .voxcrm-slider .vx-track {
        grid-auto-columns: 75%;
        padding: 6px 0;
    }
}

@media (max-width: 600px) {
    .voxcrm-slider .vx-track {
        grid-auto-columns: 80%;
    }

    .vx-prev {
        left: -5px;
    }

    .vx-next {
        right: -5px;
    }
}


/* ===== MOCKUP – MOBILE: układ zgodny z makietą ===== */
@media (max-width: 767px) {

    .voxcrm-list__row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        /* ZMIANA: cena + przycisk w ostatnim rzędzie */
        grid-template-areas:
      "status  ."
      "budynek opis"
      "lokal   opis"
      "metraz  opis"
      "pokoje  opis"
      "cena    btn";
        gap: 10px 20px;
        padding: 15px;
        border: 1px solid #eee;
        background: #fff;
    }

    /* przypisanie obszarów */
    .voxcrm-list__row .c--status {
        grid-area: status;
        align-self: start;
        margin-bottom: 5px;
    }

    .voxcrm-list__row .c--budynek {
        grid-area: budynek;
        flex-direction: column;
        line-height: 10px !important;
    }

    .voxcrm-list__row .c--lokal {
        grid-area: lokal;
    }

    .voxcrm-list__row .c--metraz {
        grid-area: metraz;
    }

    .voxcrm-list__row .c--pokoje {
        grid-area: pokoje;
    }

    .voxcrm-list__row .c--opis {
        grid-area: opis;
        text-align: left;
        place-self: self-start
    }

    /* ZMIANA: cena lewy dół */
    .voxcrm-list__row .c--cena {
        grid-area: cena;
        justify-self: start;
        align-self: end;
        text-align: left;
    }

    /* ZMIANA: przycisk prawy dół */
    .voxcrm-list__row .c--btn {
        grid-area: btn;
        justify-self: left;

    }

    /* status */
    .voxcrm-list__row .c--status .voxcrm-badge {
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 6px;
    }

    /* wygląd ceny + zł/m2 + (i) */
    .voxcrm-list__row .c--cena .voxcrm-price {
        font-size: 22px;
        line-height: 1.15;
        font-weight: 600;
        width: max-content;
    }

    .voxcrm-list__row .c--cena .voxcrm-price small {
        display: block;
        font-size: 12px;
        opacity: .75;
        margin-top: 2px;
    }

    .voxcrm-list__row .c--cena .voxcrm-priceinfo {
        margin-left: 8px;
        vertical-align: middle;
    }

    /* lewa kolumna (etykieta + wartość w jednej linii) */
    .voxcrm-list__row .c--budynek,
    .voxcrm-list__row .c--lokal,
    .voxcrm-list__row .c--metraz,
    .voxcrm-list__row .c--pokoje {
        display: flex;
        gap: 8px;
        align-items: baseline;
        font-size: 14px;
        line-height: 16px;
    }

    .voxcrm-list__row .c--budynek::before {
        content: "Budynek:";
        color: #111;
    }

    .voxcrm-list__row .c--lokal::before {
        content: "Lokal:";
        color: #111;
    }

    .voxcrm-list__row .c--metraz::before {
        content: "Metraż:";
        color: #111;
    }

    .voxcrm-list__row .c--pokoje::before {
        content: "Pokoje:";
        color: #111;
    }

    .voxcrm-list__row .c--opis .voxcrm-opis {
        gap: 5px;
        display: flex;
        flex-direction: column;
        bottom: 5px;
        position: relative;
    }


    .voxcrm-list__row .c--opis .voxcrm-opis strong {
        font-weight: 400;
    }

    /* przycisk – nie na full width, wyrównany do prawej */
    .voxcrm-list__row .c--btn .voxcrm-btn {
        width: auto;
        justify-content: center;
        padding: 10px 14px;
    }

    .voxcrm-pricewrap {
        gap: 0;
    }

    .voxcrm-list__row .c--budynek,
    .voxcrm-list__row .c--lokal,
    .voxcrm-list__row .c--metraz,
    .voxcrm-list__row .c--pokoje {
        font-weight: 700; /* WARTOŚĆ = bold */
    }

    .voxcrm-list__row .c--budynek::before,
    .voxcrm-list__row .c--lokal::before,
    .voxcrm-list__row .c--metraz::before,
    .voxcrm-list__row .c--pokoje::before {
        font-weight: 400; /* ETYKIETA = normal */
        /* (jeśli wcześniej dałeś 600 dla before — to to nadpisuje) */
    }

    /* prawa kolumna (opis: Typ lokalu / Ogródek / Piętro) */
    .voxcrm-list__row .c--opis .voxcrm-opis > div {
        font-weight: 700; /* WARTOŚĆ = bold */
    }

    .voxcrm-list__row .c--opis .voxcrm-opis > div strong {
        font-weight: 400; /* ETYKIETA = normal (tekst w <strong>) */
    }
}


/* --- ULUBIONE: licznik w headerze --- */
.vx-fav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    text-decoration: none;
}

.vx-fav-ico {
    width: 19px;
    height: auto;
    display: inline-block;
    position: relative;
}

.vx-fav-ico::before {
    content: "";
    position: absolute;
    inset: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 21s-6.7-4.35-9.33-7.28A6 6 0 1 1 12 5.5 6 6 0 1 1 21.33 13.7C18.7 16.65 12 21 12 21z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 21s-6.7-4.35-9.33-7.28A6 6 0 1 1 12 5.5 6 6 0 1 1 21.33 13.7C18.7 16.65 12 21 12 21z'/%3E%3C/svg%3E") no-repeat center / contain;
    background: #fff;
    opacity: .9;
}

.vx-fav-count {
    background: #E06423;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    min-width: 18px;
    padding: 2px 6px;
    border-radius: 999px;
    display: inline-block;
    text-align: center;
    transform: translate(-14px, -10px);
}

.mobile_header .vx-fav-link {
    top: 3px;
}

/* --- Serduszko na karcie --- */
.voxcrm-card__media {
    position: relative;
}

.voxcrm-fav {
    position: absolute;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #232323;
    cursor: pointer;
    transition: .3s ease;
    height: 36px;
    line-height: 36px;
    min-height: auto;
    padding: 0;
    width: 36px;
    background-color: #fff;
}

.voxcrm-fav .vx-heart {
    color: #333;
}

.voxcrm-fav.is-active {
    background: #232323 !important;
    border-color: #232323 !important;
}

.voxcrm-fav:hover {
    background: #232323;
    border-color: #232323;
    color: #fff;
}

.voxcrm-fav:hover .vx-heart {
    color: #fff;
}

.voxcrm-fav.is-active .vx-heart {
    color: #fff;
}

.voxcrm-fav:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}


@media (max-width: 768px) {
    .desktop {
        display: none !important;
    }

    .mobile {
        display: block;
        margin: 40px 0 0 !important;
    }

    .vs2-grid {
        grid-template-columns:1fr;
    }

    .voxcrm-single2.container {
        margin: 15px auto 0;
    }

    .voxcrm-bc {
        padding: 10px 10px 0 !important;
    }

    .vs2-thumbs {
        gap: 5px;
    }

    .vs2-card {
        margin: 0 10px 10px 10px;
    }

    /*  slider inwestycja pojedyncza  */
    .vs2-nav {
        top: 40%;
        display: flex;
        padding: 12px;
        height: auto;
    }

    .vs2-nav img, .voxlb__nav img, .vx-sbtn img {
        width: 20px;
        height: auto !important;
    }

    .voxlb__nav, .vx-sbtn {
        display: flex;
        padding: 12px;
        height: auto;
    }

    .voxlb__prev {
        left: 10px
    }

    .voxlb__next {
        right: 10px
    }
}

/* style do york*/
.iframe-container {
    height: auto !important;
}

@media (max-width: 1395px) {
    .iframe-container iframe {
        height: 1000px !important;
    }
}

@media (max-width: 768px) {
    .iframe-container iframe {
        height: 800px !important;
    }
}

.vf-rooms-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 5px;
}

.vf-room-pill {
    border: 1px solid #232323;
    color: #232323;
    padding: 10px 14px;
    background: #fff;
    cursor: pointer;
    line-height: 1;
    height: auto;
    transition: .3s ease;
}

.vf-room-pill:hover {
    background: #111;
    color: #fff;
}

.vf-room-pill.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
    position: relative;
}

.vf-room-pill.is-active::after {
    content: "✓";
    font-size: 11px;
    position: absolute;
    top: -4px;
    right: -4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px #111;
}

.wgl-field {
    font-size: 12px;
    color: #666666;
}