/**
 * Properties page styles.
 * Global-looking selectors are scoped under .properties-page so they don't override theme (e.g. header/footer buttons).
 */

.filter-container {
    display: none;
    transition: max-height 0.9s ease-in-out, opacity 0.8s ease-in-out;
    overflow: hidden;
}

#toggleFilter {
    background: #ff6f00 !important;
    color: #fff !important;
    transition: all 0.8s ease-in-out;
}

#toggleFilter:hover {
    transform: scale(1.05);
}

.properties-page .btn-check:focus + .btn {
    outline: 0;
    box-shadow: 0 0 0 .25rem #ff6f00 !important;
}

.properties-page .btn:focus {
    box-shadow: unset !important;
}

.homec-form__form {
    position: relative;
    display: flex;
    max-width: 100%;
    width: 100% !important;
    justify-content: end;
    padding: 10px 11px 10px 20px;
    background: #f4f3fe;
    border-radius: 8px;
    align-items: center;
    height: 72px;
    gap: 15px;
}

@media (min-width: 576px) {
    .homec-form__form {
        max-width: 480px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: Arial, sans-serif;
}

.properties-page button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.properties-page button:hover {
    background-color: #f0f0f0;
}

.page-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.page-number {
    border-radius: 0 !important;
    padding: 8px 12px;
}

.page-number:hover {
    background-color: #ff6f00;
    color: #fff;
}

.page-number.active {
    background-color: #ff6f00;
    color: white;
}

.prev,
.next {
    font-weight: bold;
    border-radius: 0 !important;
}

.prev:disabled,
.next:disabled {
    cursor: not-allowed;
    color: #ccc;
}

.properties-page .homec-btn {
    background: #7166F0;
    color: #fff;
    font-weight: 500;
    padding: 10px 30px !important;
    line-height: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    transition: all 0.5s ease;
    max-width: fit-content;
    cursor: pointer;
    height: 40px !important;
    font-size: 18px;
    z-index: 2;
    overflow: hidden;
    text-align: center;
    line-height: 20px !important;
}

.homec-form__form.homec-form__form--bar button {
    min-width: 125px !important;
    height: 42px;
    line-height: 42px;
}

.pgb-properties__type--filter > div {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 0px 0px !important;
    margin-left: 10px !important;
    white-space: nowrap;
}

.properties-page .homec-btn {
    background: #7166F0;
    color: #fff;
    font-weight: 500;
    padding: 0 30px;
    line-height: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    transition: all 0.5s ease;
    max-width: fit-content;
    cursor: pointer;
    height: 60px;
    font-size: 13px !important;
    z-index: 2;
    overflow: hidden;
    text-align: center;
    line-height: 60px;
}

#filterForm input,
#filterForm select {
    height: 30px;
    font-size: 14px !important;
    line-height: 13px !important;
    padding: 2px 10px !important;
    border-radius: 0 !important;
}

#filterForm input:focus,
#filterForm select:focus {
    border: 1px solid #FF6F00;
    box-shadow: 0 0 0 .15rem #FF6F00;
}

.filter-box {
    margin: 10px 0;
    padding: 2px 12px !important;
    width: 100%;
}

.filter-box1 input {
    border: 2px solid silver;
    box-shadow: 0 0 8px 3px darkgrey;
}

.filter-box2 input {
    border: 2px solid goldenrod;
    box-shadow: 0 0 8px 3px darkgoldenrod;
}

.filter-box3 input {
    border: 2px solid black;
    box-shadow: 0 0 8px 3px #333;
}

.filter-box1 {
    background: linear-gradient(to right, silver 0%, silver 50%, #808080 100%);
}

.filter-box2 {
    background: linear-gradient(to right, goldenrod 0%, goldenrod 50%, #b8860b 100%);
}

.filter-box3 {
    background: linear-gradient(to right, #000000 0%, #000000 50%, #1a1a1a 100%) !important;
    color: #fff !important;
}

.filter-box input {
    height: 23px !important;
}

.filter-box > label {
    display: flex;
    justify-content: space-between;
    justify-items: center;
    align-items: center;
}

.filter-box img {
    height: 30px;
}

.pgb-properties__type--filter {
    display: flex;
    align-items: center;
}

.pgb-properties__type--filter-all div:first-child {
    background-color: unset !important;
}

.pgb-properties__search {
    background: unset !important;
    border: 1px solid #000;
    padding: 0 0 0 20px !important;
    height: 37px !important;
    border-radius: 0 !important;
}

.pgb-properties__search button {
    height: 100% !important;
    display: flex;
    align-items: center;
    border-radius: 0 !important;
}

.pgb-properties__search input {
    border-radius: 0 !important;
}

#searchPropertyBtn {
    border-radius: 0 !important;
}

.pgb-properties__search button:hover {
    background-color: #fff !important;
    color: #ff6f00;
    border: 1px solid #ff6f00;
}

.pgb-search-autocomplete__group {
    padding: 6px 0 4px;
    border-bottom: 1px solid #eee;
}

.pgb-search-autocomplete__group:last-child {
    border-bottom: 0;
}

.pgb-search-autocomplete__group-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    padding: 4px 12px 6px;
    text-align: left;
}

.pgb-search-autocomplete__item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    border: 0;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.pgb-search-autocomplete__item:hover,
.pgb-search-autocomplete__item:focus {
    background: #f5f5f5;
    outline: 0;
}

.pgb-search-autocomplete__item--highlight {
    background: #fff3e0;
}

.pgb-search-autocomplete__empty {
    padding: 12px;
    font-size: 14px;
    color: #888;
}

.filter,
.filter select,
.filter input,
.w-100.filter {
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: 14px !important;
}

#facing_direction + .select2-container {
    width: 100% !important;
}

#facing_direction + .select2-container .select2-selection--multiple {
    min-height: 37px;
    border-radius: 0 !important;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
    padding: 2px 6px;
    font-family: inherit !important;
    font-size: 14px !important;
}

#facing_direction + .select2-container .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    font-family: inherit !important;
    font-size: 14px !important;
}

#facing_direction + .select2-container .select2-search__field {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-family: inherit !important;
    font-size: 14px !important;
}

#facing_direction + .select2-container .select2-selection__choice {
    border-radius: 0 !important;
    border: 1px solid #ccc !important;
    background-color: #f1f1f1 !important;
    font-size: 14px !important;
    color: #333 !important;
    height: 22px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    font-family: inherit !important;
    margin-top: 0 !important;
}

#facing_direction + .select2-container .select2-selection__choice__remove {
    margin: 0 !important;
    padding: 0 4px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    cursor: pointer;
}

#facing_direction + .select2-container .select2-selection__choice__remove span[aria-hidden="true"] {
    display: none !important;
}

#facing_direction + .select2-container .select2-selection__choice__remove::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin-right: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#facing_direction + .select2-container .select2-selection__choice__remove:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='red' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

@media only screen and (max-width: 1100px) {
    .pgb-properties__type--filter {
        justify-content: center !important;
    }

    .pgb-properties__type--filter-all div:first-child {
        width: 100% !important;
    }
}

@media only screen and (max-width: 767px) {
    .pgb-properties__search {
        flex-direction: row !important;
    }
}

@media only screen and (max-width: 375px) {
    #searchPropertyBtn {
        min-width: 110px !important;
        padding: 5px !important;
    }

    #searchPropertyBtn span {
        width: unset !important;
    }
}

.filter-box {
    flex: 0 0 auto;
}

.filter-option {
    border-radius: 50% !important;
    vertical-align: middle;
    background: #fff !important;
}

input[type="checkbox"]:checked::before {
    color: #000 !important;
}

.price-filter {
    padding: 0px 0px 0px !important;
    border-radius: 4px;
    border: none !important;
    width: 100% !important;
    max-width: 100%;
}

.price-filter-inner {
    width: 100% !important;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

#amount-2,
#amount {
    border: none !important;
    outline: none !important;
    width: 150% !important;
}

#amount-2:focus,
#amount-2:active,
#amount:focus,
#amount:active {
    outline: none !important;
    box-shadow: unset !important;
}

#propertySearchForm > div > div.col-12 > div > div:nth-child(2) > label,
#propertySearchForm > div > div.col-12 > div > div:nth-child(3) > label,
#propertySearchForm > div > div.col-12 > div > div:nth-child(4) > label {
    color: #fff;
}

#propertySearchForm > div > div.col-12 > div > div:nth-child(2) > label:hover,
#propertySearchForm > div > div.col-12 > div > div:nth-child(3) > label:hover,
#propertySearchForm > div > div.col-12 > div > div:nth-child(4) > label:hover {
    color: #FF6F00;
}

.filterBTN {
    width: 100% !important;
}

.isShowFilterOptions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filterSelected-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0px 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #f1f1f1;
    cursor: pointer;
    font-size: 14px;
    height: 22px;
    text-transform: capitalize;
}

.filterSelected-btn svg {
    stroke: #555;
}

.filterSelected-btn svg:hover {
    stroke: red;
}

.filterSelected-btn:hover {
    border: 1px solid red;
}

@media only screen and (max-width: 425px) {
    .properties-page .homec-btn:hover {
        background: #ff6f00 !important;
        box-shadow: none !important;
        transition: none !important;
        color: #fff !important;
    }

    .properties-page .homec-btn:hover::before {
        background: none !important;
        box-shadow: none !important;
        transition: none !important;
    }
}

.price-filter .ui-slider-horizontal {
    width: 100% !important;
    height: 6px !important;
    border: none !important;
    background: #eceaff !important;
    border-radius: 100px;
}

.price-filter .ui-slider-range {
    height: 6px !important;
    border: none !important;
    border-radius: 100px;
    background: var(--theme-primary, #7166f0) !important;
}

.price-filter .ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    margin-left: -9px !important;
    top: -6px !important;
    border: 2px solid var(--theme-primary, #7166f0) !important;
    background: #fff !important;
    background-image: none !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.price-filter .ui-slider-handle:hover,
.price-filter .ui-slider-handle:focus {
    background: #fff !important;
    border-color: var(--theme-primary, #7166f0) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.price-filter .ui-slider-handle .slider-handle-icon {
    font-size: 10px !important;
    padding: 1.5px;
    color: var(--theme-primary, #7166f0) !important;
}

@media only screen and (max-width: 768px) {
    .price-filter-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .price-filter .ui-slider-handle {
        width: 22px !important;
        height: 22px !important;
        margin-left: -11px !important;
        top: -8px !important;
    }

    .price-filter .ui-slider-horizontal {
        height: 6px !important;
    }

    .ui-slider {
        touch-action: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }

    .price-filter {
        padding: 10px !important;
    }
}

.homec-property__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.homec-property__price {
    line-height: 1.2;
    max-width: 70%;
}

.pgb-add-to-wishlist svg {
    vertical-align: middle;
}
