﻿/*********************STYLE SEARCH PAGE *******************/
html::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
.navbar-custom, .footer-section, .property-body {
    background: linear-gradient( to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 1) 100% ), var(--primary-bg) !important; 
}
.map {
    height: 1256px;
    z-index:0;
}

.search-row {
    height: 1256px
}
.h-col {
    height: 1256px;
    overflow: hidden; /* important */
}

.col-overflow {
    max-height: calc((420px * 2) + 16px + 210px);
    overflow-y: auto;
    overflow-x: hidden;
}

    /* Scrollbar */
    .col-overflow::-webkit-scrollbar {
        width: 20px;
    }

    .col-overflow::-webkit-scrollbar-track {
        background: #cccccc;
    }

    .col-overflow::-webkit-scrollbar-thumb {
        background-color: #f8f9fa;
        opacity: 0.5;
        border-radius: 20px;
        /* FAKE TRACK WIDTH */
        border: 2.5px solid transparent; /* (20 - 15) / 2 */
        background-clip: padding-box;
    }

        .col-overflow::-webkit-scrollbar-thumb:hover {
            background-color: #a0a0a0;
        }

.pr-10 {
    padding-right: 10px;
}

.pl-10 {
    padding-right: 10px;
}


/************ STYLE FILTER **************/
.property-filter {
    font-family: Arial, sans-serif;
    color: var(--primary-bg);
    padding-right: 20px;
}

    .property-filter h1 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 15px;
        margin-top: 35px;
    }

    .property-filter p {
        font-size: 1.3331rem;
        margin-bottom: 20px;
    }

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 20px;
    font-size: 1.1669rem;
    border-radius: 6px;
    border: none;
    background: #f2f2f2;
    color: var(--primary-bg);
    margin-bottom: 15px;
    outline: none;
}
.search-input::placeholder{
    color:var(--primary-bg);
}

.filters-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

    .filters-row select,
    .list-view {
        width: 100%;
        height: 40px;
        font-size: 14pt;
        color: var(--primary-bg);
        text-decoration: none;
        background: #f2f2f2;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        outline: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .filters-row select,
    .list-view span {
        padding-left:14px;
       
    }
        .filters-row select,
        .list-view span .sb-icon-search {
            position: absolute;
            right: 11px;
            top: 12px;
        }
    .filters-row select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 10px;
        padding-right: 2rem;
    }
.select2-search__field::placeholder {
    color: var(--primary-bg);
}
.select2-container--default.select2-container--focus .select2-selection--multiple{
    border:none;
}


.filter-container {
    max-width: 1470px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .filters-row {
        flex-direction: column;
    }

        .filters-row > * {
            flex: 1 1 100%; /* 1 colonne */
        }

    .property-filter h1 {
        font-size: 18pt;
    }

    .property-filter p {
        font-size: 12pt;
    }
}
@media (max-width: 992px) {
    .filters-row > * {
        flex: 1 1 calc(50% - 8px); /* 2 colonnes */
    }
}

.property-card {
    height: 420px; /* ajuste si besoin */
    display: flex;
    flex-direction: column;
}
    .property-card.card-map-search {
        height: 318px;
    }
.property-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-footer {
    margin-top: auto;
}