:root {
    --primary-color: #1E1E24;
    --secondary-color: #666666;
    --card-bg-grid: #E0E0E6;
    --button-bg-color: #3D40BF;
    --button-bg-hover: #1E2067;
    --button-text-color: #FAFAFA;
}

/* =========================================
   KONTENER SIATKI (SLIDER)
   ========================================= */

.asari-offers-grid .tile-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;
    /* FIX: usuwa scroll góra–dół w tracku */

    align-items: stretch;

    padding-bottom: 0;

    scrollbar-width: none;
    -ms-overflow-style: none;

    cursor: grab;

    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    user-select: none;
    -webkit-user-drag: none;

    /* FIX: lepsze zachowanie gestów na mobile */
    touch-action: pan-x;
    overscroll-behavior-y: contain;
}

.asari-offers-grid .tile-container::-webkit-scrollbar {
    display: none;
}

.asari-offers-grid .tile-container.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

/* =========================================
   KAFELEK (KARTA)
   ========================================= */

.asari-offers-grid .property-tile {
    flex: 0 0 409px;
    width: 409px;

    min-height: 535px;
    height: auto;

    background-color: var(--card-bg-grid);
    border-radius: 12px;
    padding: 8px;

    display: flex;
    flex-direction: column;

    /* FIX: spójne box-sizing wewnątrz karty */
    box-sizing: border-box;
    overflow: hidden;
    /* FIX: nic nie ma prawa „wyjść” poza radius */
}

/* =========================================
   OBRAZEK
   ========================================= */

.property-image-placeholder {
    width: 100%;

    /* FIX: responsywny obraz zamiast sztywnej wysokości */
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 200px;
    /* bezpiecznie dla bardzo małych ekranów */

    background-color: #CCCCCC;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

.property-image-placeholder img {
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.property-image-link {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-user-drag: none;
}

.asari-offers-grid .property-tile:hover .property-image-placeholder img {
    transform: scale(1.05);
}

.fresh-offer-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #FFFFFF;
    color: var(--primary-color);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* =========================================
   TREŚĆ
   ========================================= */

.property-details {
    padding: 20px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.property-top-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.property-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.1;
}

.listing-type {
    font-size: 13px;
    color: var(--secondary-color);
    margin: 0 0 4px 0;
    font-weight: 500;
}

.property-location {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;

    /* FIX: bez losowych overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-location a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    -webkit-user-drag: none;
}

/* =========================================
   SPECYFIKACJE (IKONY) – unifikacja i stabilna wysokość
   ========================================= */


.property-specs-wrapper {
    width: 100%;
    border-top: 1px solid #C2C2C2;
    border-bottom: 1px solid #C2C2C2;
    padding: 14px 0;
    margin-top: 10px;

    /* stała wysokość sekcji – bez „skoków” */
    min-height: 56px;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;              /* pozwala przejść do 2 wiersza tylko gdy naprawdę musi */
    align-items: center;

    /* FIX: dużo mniejsze odstępy między itemami */
    gap: 8px 12px;                /* (wiersz, kolumna) – możesz zejść nawet do 6px 10px */
}


/* pojedyncza pozycja (ikona + tekst) */
.property-specs .spec-item {
    display: inline-flex;
    align-items: center;

    /* FIX: mniejszy gap ikona-tekst */
    gap: 5px;

    font-size: 13px;
    line-height: 1.2;
    color: #333333;

    /* FIX: trzymamy w 1 linii */
    white-space: nowrap;

    /* bez ucinek/ellipsis */
    overflow: visible;
    text-overflow: unset;

    min-width: 0;
}

.property-specs .spec-item span,
.property-specs .spec-item {
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-specs .spec-item::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.8;
}

/* Ikony */
.property-specs .spec-item--rooms::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/bed.svg");
}

.property-specs .spec-item--area::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/ruler.svg");
}

.property-specs .spec-item--lot-area::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/land-plot.svg");
}

.property-specs .spec-item--floor::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/arrow-up-wide-narrow.svg");
}

.property-specs .spec-item--year::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/calendar.svg");
}

.property-specs .spec-item--building::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/house.svg");
}

.property-specs .spec-item--type::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/map-pin-house.svg");
}

.property-specs .spec-item--location::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/map.svg");
}

.property-specs .spec-item--price-m2::before {
    background-image: url("https://wroclawskienieruchomosci.com/wp-content/uploads/2025/12/circle-dollar-sign-1.svg");
}

/* =========================================
   PRZYCISK
   ========================================= */

.property-btn-wrapper {
    margin-top: auto;
}

.check-button {
    display: block;
    width: 100%;

    /* FIX: kluczowe – usuwa wyłażenie poza kontener przez padding */
    box-sizing: border-box;

    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: none;
    padding: 18px 20px;
    /* trochę bezpieczniej responsywnie */
    border-radius: 12px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    -webkit-user-drag: none;
}

.check-button:hover {
    background-color: var(--button-bg-hover);
    transform: translateY(-1px);
}

/* =========================================
   STRZAŁKI
   ========================================= */

.asari-offers-grid__slider {
    position: relative;
}

.asari-offers-grid__arrow {
    display: none;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #FFFFFF;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.asari-offers-grid__arrow--prev {
    left: -15px;
}

.asari-offers-grid__arrow--next {
    right: -15px;
}

.asari-offers-grid__arrow-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: -2px;
}



/* =========================================
   RESPONSYWNOŚĆ
   ========================================= */

/* Mobile/tablet: strzałki statycznie w pionie – na środku obrazka */
@media (max-width: 1000px) {
    /* wysokość strefy zdjęcia = aspect-ratio; więc kotwica w px jest stabilna */
    .asari-offers-grid__arrow {
        top: 120px;              /* statycznie, bez pływania */
        transform: translateY(-50%);
        will-change: transform;
    }

    .asari-offers-grid__arrow--prev {
        left: 10px;
    }

    .asari-offers-grid__arrow--next {
        right: 10px;
    }

    .asari-offers-grid .tile-container {
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
        scroll-snap-type: x mandatory;
    }

    .asari-offers-grid .property-tile {
        flex: 0 0 85vw;
        width: 85vw;
        max-width: 409px;
        min-height: auto;
        scroll-snap-align: start;
    }

    .property-image-placeholder {
        min-height: 180px;
        aspect-ratio: 16 / 11;
    }

    .property-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .property-specs-wrapper {
        min-height: 72px;
    }

    .check-button {
        font-size: 18px;
        padding: 16px 18px;
    }
}


