/* ==============================
   Karty mieszkań
   ============================== */
.smda-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.smda-mieszkanie-card {
    flex: 1 1 calc(33.333% - 20px);
    background: #fff;
    padding: 22px 28px;
    box-sizing: border-box;
    position: relative;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    max-width: 33%;
}

.smda-mieszkanie-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.smda-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.smda-card-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.smda-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}

.smda-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.smda-card-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 22px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.smda-card-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 21px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    color: rgb(100,102,104);
}

.smda-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.smda-card-price {
    font-weight: 500;
    color: #000;
    font-size: 16px;
    line-height: 24px;
}

.smda-card-more {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 2px;
}

/* ==============================
   Tabela mieszkań
   ============================== */
.smda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    position: relative;
}

.smda-table th,
.smda-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.smda-table th {
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.smda-table thead {
    position: sticky;
    top: 0;
    /*background: #fff;*/
    z-index: 10;
    /*border-bottom: 2px solid #ddd;*/
}

.smda-table-row:hover {
    background-color: #f7f7f7;
}

.smda-sort-icon {
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.6;
}

.smda-sort-icon.active {
    opacity: 1;
    font-weight: bold;
}

/* ==============================
   Filtry i przyciski
   ============================== */
.smda-filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 12px;
}

.smda-filter-item {
    flex: 1 1 150px;
}

.smda-filters label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

/*.smda-filters input[type="range"],*/
/*.smda-filters select {*/
/*    width: 100%;*/
/*    margin-bottom: 12px;*/
/*    padding: 6px;*/
/*}*/

.smda-filter-buttons {
    display: flex;
    gap: 6px;
}

.smda-filter-buttons button {
    padding: 8px 16px;
    cursor: pointer;
    background: #000;
    color: #fff;
    border: none;
    transition: background 0.2s ease;
}

.smda-filter-buttons button:hover {
    background: #333;
}

.smda-view-toggle {
    margin-bottom: 12px;
}

.smda-view-toggle button {
    padding: 6px 12px;
    margin-right: 6px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
}

.smda-view-toggle button.active {
    background: #000;
    color: #fff;
}

.smda-total-info {
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 24px;
}

#smda-load-more {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease;
}

#smda-load-more:hover {
    background: #333;
}

/* ==============================
   Wyłączone mieszkania
   ============================== */
.smda-unavailable {
    /*opacity: 0.6;*/
    pointer-events: none;
}

.smda-unavailable .smda-card-more {
    display: none;
}

/* ==============================
   Ukrycie starego sortowania
   ============================== */
.smda-sort {
    display: none;
}

/* ==============================
   Tabela mieszkań
   ============================== */
.smda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    position: relative;
}

.smda-table th,
.smda-table td {
    padding: 12px 10px;
    text-align: center; /* wyśrodkowanie */
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.smda-table th {
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    background: transparent; /* brak tła */
    color: #000; /* czarny tekst w nagłówku */
}

.smda-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #ddd;
}

.smda-table tbody tr {
    background: #fff; /* białe tło dla wierszy */
    transition: background 0.2s ease, color 0.2s ease;
}

.smda-table tbody tr:hover {
    background-color: #f9ad4a; /* bordowe tło */
    color: #fff; /* biały tekst */
}

.smda-sort-icon {
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.6;
}

.smda-sort-icon.active {
    opacity: 1;
    font-weight: bold;
}

/* ==============================
   Tabela mieszkań – div-grid
   ============================== */
.smda-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    border-collapse: collapse;
}

.smda-table-header,
.smda-table-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    text-align: center;
}

.smda-table-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    background: transparent;
    color: #000;
    cursor: pointer;
}

.smda-table-row {
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 1.28em 3em 1.22em;
}

.smda-table-row:hover {
    background: #f9ad4a;
    color: #fff;
}

.smda-cell {
    font-size: 14px;
    padding-left: .63em;
    padding-right: .63em;
}

.smda-sort-icon {
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.6;
}

.smda-sort-icon.active {
    opacity: 1;
    font-weight: bold;
}

.smda-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.smda-table .smda-table-row.smda-unavailable {
    opacity: 0.6;
    pointer-events: none;
}

/* === Stylizacja listy mieszkań === */

.se_item {
    background: #fff;
    border: none;
    /*border-bottom: 1px solid #e0e0e0;*/
    transition: all 0.3s ease;
}

.se_item:hover {
    background-color: #f9ad4a;
    color: #fff;
}

.se_item_grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr 1fr 1fr;
    align-items: center;
    padding: 15px 20px;
    text-align: center;
}

.se_list_header{
    margin-bottom: 20px;
}

.se_item_column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text_16px {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.text_14px{
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    color: rgb(67,65,63);
}

.text_16px.is--se-label-mobile {
    display: none;
    font-weight: 500;
    color: #666;
}

.cena-cena {
    font-weight: 500;
    color: #000;
    font-size: 16px;
    line-height: 24px;
}

.se_item:hover .cena-cena {
    color: #fff;
}

/* Tag dostępności */
.se_tag_flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.se_tag_circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #87d358; /* dostępne */
}

.se_tag_circle--orange {
    background: #eb9a1d; /* zarezerwowane */
}

.se_tag_circle--red {
    background: red; /* sprzedane */
}

/* Link "Zobacz szczegóły" */
.se_item_link {
    text-decoration: none;
    /*color: #000;*/
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /*transition: color 0.3s ease;*/
}

.se_item_link:hover {
    color: #fff;
}

.button_arrow_icon {
    width: 12px;
    height: auto;
}

/* Responsywność */
@media (max-width: 800px) {
    .se_item_grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 12px;
        padding: 12px;
    }

    .text_16px.is--se-label-mobile {
        display: block;
        font-size: 12px;
        color: #999;
    }
}
.se_list_wrap,
.se_item,
.se_item_grid {
    font-family: "Montserrat", sans-serif;
}

.text_12px{
    font-size: 12px;
    line-height: 18px;
}

.is--upper{
    font-weight: 600;
    text-transform: uppercase;
}


/* Firefox track */
.smda-custom-range::-moz-range-track {
    background: #f9ad4a !important;
    height: 1px;
    border-radius: 2px;
}



.smda-filters{
    display: flex;
    gap: 1.88em;
}

.smda-filters label{
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
}

#smda-status {
    background: transparent;
    border: 1px solid #f9ad4a;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 0.25em;
    height: auto;
    margin-bottom: 0;
    padding: 0.95em 1.05em;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    max-width: 220px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 20px;
    margin-top: 16px;
}

.smda-total-info{
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: rgb(67,65,63);
}

.smda-filter-buttons{
    display: flex;
    gap: 6px;
    flex-direction: column;
}

#smda-search{
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    background-color: #f9ad4a;
    border: 1px solid #f9ad4a;
    border-radius: 3px;
    font-family: "Montserrat", sans-serif;
}

#smda-search:hover{
    background-color: #fff;
    color: #f9ad4a;
}

#smda-reset{
    background-color: transparent;
    transition: border-color .3s, color .3s, background-color .3s;
    color: #43413f;
    align-items: center;
    padding: 14px;
    text-decoration: none;
    font-size: 14px;
    line-height: 21px;
    font-family: "Montserrat", sans-serif;
}

#smda-reset svg{
    color: #9ea2a4;
    width: 1em;
    transition: color .3s;
    top: 4px;
    position: relative;
}

#smda-reset:hover{
    color: #000;
}

.smda-view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0.6em;
}

.smda-view-toggle button {
    background: none;
    border: none;
    padding: 0.4em;
    cursor: pointer;
    color: #999793;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smda-view-toggle button:hover {
    color: #f9ad4a;
}

.smda-view-toggle button.active {
    color: #f9ad4a;
    background-color: transparent;
    border: none;
}

.smda-view-toggle svg {
    width: 2.5em;
    height: 2.5em;
    display: block;
}

#smda-load-more{
    border: 1px solid #f9ad4a;
    color: #f9ad4a;
    background-color: transparent;
    margin: 40px auto 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 2px;
    border-radius: 4px;
}

#smda-load-more:hover{
    background-color: #f9ad4a;
    color: #fff;
}

/* tablet / mały laptop: 2 kolumny zamiast 3 */
@media (max-width: 1024px) {
    .smda-mieszkanie-card {
        flex: 0 1 50%;
        max-width: 50%;
    }
}

/* telefony poziome / mniejsze tablety: filtry w kolumnę, karty 2 kolumny */
@media (max-width: 768px) {
    .smda-filters {
        flex-direction: column;    /* filtry pod sobą — czytelniej na węższych ekranach */
        align-items: stretch;
    }

    .smda-mieszkanie-card {
        flex: 0 1 50%;
        max-width: 50%;
    }
}

/* telefony pionowe: 1 kolumna kart, filtry w kolumnie, większe odstępy */
@media (max-width: 480px) {
    .smda-filters {
        gap: 10px;
        padding: 8px 0;
    }

    .smda-mieszkanie-card {
        flex: 0 1 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* opcjonalne: jeśli chcesz by filtr był "sticky" na mobilkach (przydatne) */
.smda-filters.sticky-on-mobile {
    position: static;
}
@media (max-width: 768px) {
    .smda-filters.sticky-on-mobile {
        position: sticky;
        top: 0;
        background: #fff;           /* dopasuj do tła strony */
        z-index: 20;
        padding: 8px 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }
}

@media (max-width: 768px) {
    .smda-total-info {
        padding-left: 12px;
    }

    .se_item .se_item_grid {
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        margin-bottom: 10px;
        border-radius: 6px;
        margin-left: 4px;
        margin-right: 4px;
    }

    .se_item .se_item_grid:hover{
        background-color: #f9ad4a;
        color: #fff;
    }

    .smda-filters {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .smda-mieszkanie-card {
        margin: 8px;
    }
}

.smda-range-wrapper {
    position: relative;
    width: 220px;
    height: 20px;
    margin: 40px 0;
}

/* obie ścieżki suwaków */
.smda-custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: #dadae5;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* oba thumb’y mają pointer-events */
.smda-custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 20;
    pointer-events: all;
}

/* kolorowy thumb – minimalna wartość */
.smda-custom-range:not(.smda-custom-range-max)::-webkit-slider-thumb {
    background: #f9ad4a;
}

/* biały thumb – maksymalna wartość */
.smda-custom-range-max::-webkit-slider-thumb {
    background: white;
}

/* Firefox */
.smda-custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
}
.smda-custom-range:not(.smda-custom-range-max)::-moz-range-thumb {
    background: #f9ad4a;
}
.smda-custom-range-max::-moz-range-thumb {
    background: white;
}

/* kolor toru między wartościami */
.slider-track {
    position: absolute;
    height: 2px;
    border-radius: 1px;
    background: #dadae5;
    z-index: 1;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* liczby pod suwakiem */
.smda-thumb-value {
    position: absolute;
    top: 16px;
    left: 0%;
//transform: translate(-40%, -40%);
    color: red;
    font-weight: bold;
    font-size: 13px;

    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}

.smda-end-value {
    position: absolute;
    right: -2px;
    top: 15px;
    transform: translateY(-50%);

    color: #f9ad4a;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    z-index: 3;

    width: 20px;
    height: 20px;
    pointer-events: none;
    background: #fff;
}

.smda-thumb-value {
    position: absolute;
    top: 5px;
    left: 50%;
//transform: translate(-40%, -40%);
    color: white;
    font-weight: bold;
    font-size: 13px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    background: #f9ad4a;
}

.se_item_grid:hover .se_item_link{
    color: #fff;
}