/* ===========================
   PROPERTIES PAGE ONLY
=========================== */

.properties-page {
    --purple: #6a1b9a;
    --gold: #f6c453;
    --orange: #ff7a2a;
    --emerald: #009c6a;
    --royal: #2b2a7f;
}

/* ================= FILTER ================= */
.properties-page .filter-title {
    font-weight: 700;
    color: var(--purple);
}

.properties-page .filter-label {
    font-weight: 600;
    font-size: .85rem;
}

.properties-page .btn-reset {
    border: none;
    background: none;
    color: var(--orange);
    font-size: .85rem;
    cursor: pointer;
}

/* ================= MOBILE FILTER ================= */
@media (min-width:992px) {
    .properties-page .filter-box {
        position: sticky;
        top: 100px;
        max-height: 80vh;
        overflow-y: auto;

        box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px,
            rgba(0, 0, 0, 0.23) 0px 3px 6px;

        /* Firefox */
        scrollbar-width: thin;
        scrollbar-color: var(--orange) transparent;
    }

    /* Chrome, Edge, Safari */
    .properties-page .filter-box::-webkit-scrollbar {
        width: 8px;
    }

    .properties-page .filter-box::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 10px;
    }

    .properties-page .filter-box::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg,
                var(--purple),
                var(--orange));
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    .properties-page .filter-box::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg,
                var(--orange),
                var(--purple));
    }

}

@media (max-width: 991px) {

    .properties-page .filter-box {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        max-height: 75vh;
        background: #fff;
        z-index: 1050;
        border-radius: 20px 20px 0 0;
        transition: bottom .35s ease;
        overflow-y: auto;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .15);
    }

    .properties-page .filter-box.active {
        bottom: 0;
    }



    .btn-filter-toggle {
        position: sticky;
        top: 100px;
        width: 100%;
    }
}

/* ================= FILTER TOGGLE BUTTON ================= */
.properties-page .btn-filter-toggle {
    background: linear-gradient(90deg, var(--purple), var(--orange));
    color: #fff;
    border-radius: 14px;
    padding: .7rem 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
}

/* ================= FILTER PILLS ================= */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    cursor: pointer;
}

.filter-pill span {
    display: inline-block;
    border-radius: 14px;
    padding: .3rem .6rem;
    font-size: .8rem;
    font-weight: 600;
    background: #fff;
    color: var(--royal);
    border: 1px solid #ddd;
    transition: .25s;
}

.filter-pill input {
    display: none;
}

.filter-pill input:checked+span {
    background: linear-gradient(135deg, var(--purple), var(--orange));
    color: #fff;
    border-color: transparent;
}

/* ================= RANGE SLIDERS ================= */
.range-input {
    width: 100%;
    accent-color: var(--purple);
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    background: var(--orange);
}

/* ================= PROPERTY CARD ================= */
.property-card {
    transition: .3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .15);
}

#filterForm {
    transition: .3s;
}

#filterForm:hover{
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .15);
}

/* ================= SKELETON ================= */
.skeleton-card {
    height: 420px;
    border-radius: 20px;
    background: linear-gradient(90deg,
            #eee 25%,
            #f5f5f5 37%,
            #eee 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0
    }

    100% {
        background-position: -100% 0
    }
}

/* ================= FILTER LOADING ================= */
.filter-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.brand-spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid #eee;
    border-top: 4px solid var(--orange);
    animation: spin 1s linear infinite;
}

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

.floating-share-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)) !important;
    color: var(--bg-royal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 1054;
    transition: all 0.25s ease;
}

.floating-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* Mobile safe spacing */
@media (max-width: 576px) {
    .floating-share-btn {
        left: 14px;
        bottom: 14px;
    }
}

.zi1000{
    position: relative;
    z-index: 1000;
}

.tab-content-details img{
    width: 60%;
}
