@font-face {
    font-family: 'Myriad Pro Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Myriad Pro Regular'), url('../assets/font/MYRIADPRO-REGULAR.woff') format('woff');
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --highlight_color: #232523;
    --border-color: #575656;
    --header-nav-bg: #575656;
    --defaultBorderRadius: 6px;
    --radiusForMiniBoxes: 3px;
}

body {
    color: #373737;
    background: #eaebf08c;
    font-family: 'Myriad Pro Regular', sans-serif;
    overflow-y: auto !important;
}

.hide-scrollbar {
    overflow-y: hidden !important;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

select {
    -webkit-appearance: none;
    border-radius: var(--radiusForMiniBoxes);
}

img {
    max-width: 100%;
}

.dflex {
    display: flex;
    align-items: center;
}

.dnone,
.mobile-filter-btn,
.mobile-filter-bottom {
    display: none !important;
}

.mobile-filter-btn {
    cursor: pointer;
    align-items: center;
}

.mobile-filter-btn .mobile-filter-arrow {
    transition: .2s ease;
}

.mobile-filter-btn.active .mobile-filter-arrow {
    transform: rotate(180deg) translate(-1px, 1px);
}

.t-center {
    text-align: center;
}

.w49 {
    width: 49% !important;
}

.w100 {
    width: 100% !important;
}

.w65 {
    width: 65% !important;
}

.w25 {
    width: 24% !important;
}

.w33 {
    width: 32% !important;
}

i.bathroom-icon:after,
i.bedroom-icon:after {
    content: "";
    width: 22px;
    height: 22px;
    user-select: none;
    pointer-events: none;
    display: block;
    background-size: contain !important;
    margin-right: 5px;
}

i.bathroom-icon:after {
    background: url('../assets/icon/bath.png') no-repeat center;
}

i.bedroom-icon:after {
    background: url('../assets/icon/bed.png') no-repeat center;
}

button,
input {
    outline: none;
}

input[type="checkbox"] {
    cursor: pointer;
}

button {
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 85%;
    max-width: 1500px;
    margin: auto;
}


/*      header code start from here     */

header {
    background: var(--header-nav-bg);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-main nav {
    color: white;
    text-transform: capitalize;
}

.header-main .logo-container {
    height: 100%;
    padding: 15px 0;
    display: inline-block;
}

.header-main .logo-container img {
    height: 100%;
    filter: brightness(1.5);
    object-fit: contain;
}

.header-main nav * {
    padding: 8px 10px;
}

.header-main nav button,
main .container button.strt-property-search-btn {
    color: white;
    background: var(--highlight_color);
    font-weight: bold;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 1rem;
}

main .container button.strt-property-search-btn {
    margin-bottom: 30px;
    display: block;
 	
}

header .header-menu {
    display: none;
    position: relative;
}

header .header-menu input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0;
    /* hide this */
    z-index: 2;
    /* and place it over the hamburger */
    -webkit-touch-callout: none;
}

header .header-menu span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: #cdcdcd;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
}

header .header-menu:hover span,
header .header-menu input:checked~span {
    background: var(--highlight_color);
}

header .header-menu span:first-child {
    transform-origin: 0% 0%;
}

header .header-menu span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

header .header-menu input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-8px, -15px);
}

header .header-menu input:checked~span:nth-last-child(2) {
    transform: rotate(-45deg) translate(-4px, 13px);
}

header .header-menu input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}


/* header filter */

.filter {
    height: 65px;
    background: #e9e9e9;
    user-select: none;
}

.filter .container {
    justify-content: space-between;
    height: 100%;
}

.filter .area-search-box {
    position: relative;
    width: 450px;
    max-width: 100%;
    background: white;
    height: 40px;
    margin-right: 15px;
}

.filter .area-search-box input {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    padding-left: 10px;
}

.filter .area-search-box span {
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-left: 1px solid;
}

.filter ul.filter-drop-down-menus {
    gap: 16px;
    font-size: 15px;
    user-select: none;
    height: 100%;
}

.filter .area-search-box ul.filter-drop-down-menus {
    position: absolute;
    right: 0;
}

.filter ul.filter-drop-down-menus li {
    min-width: max-content;
    height: 100%;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.filter ul.filter-drop-down-menus li::after,
.mobile-filter-btn .mobile-filter-arrow::after {
    content: "";
    display: block;
    width: 15px;
    height: 8px;
    background-color: #373737;
    clip-path: polygon(100% 0, 0 0, 50% 100%);
    border-radius: 100%;
    display: inline-block;
    margin: 0 0 0 3px;
}

.filter .area-search-box ul.filter-drop-down-menus li::after {
    margin: 0 5px 0 3px;
}

.filter ul.filter-drop-down-menus li ul {
    position: absolute;
    width: 100%;
    min-width: max-content;
    max-height: clamp(50vh, 50vh, 500px);
    top: 100%;
    left: 0;
    border: 1px solid var( --border-color);
    background: white;
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: .2s ease;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1;
}

.filter ul.filter-drop-down-menus li ul::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 4px;
}

.filter ul.filter-drop-down-menus li ul::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.138);
    /* box-shadow: 0 0 1px rgba(255, 255, 255, .5); */
}

.filter ul.filter-drop-down-menus li ul input {
    margin-right: 5px;
}

.filter ul.filter-drop-down-menus li:hover ul {
    opacity: 1;
    visibility: visible;
    user-select: all;
    pointer-events: all;
}

.filter ul.filter-drop-down-menus li ul li {
    padding: 7px 10px;
    margin-bottom: 5px;
    transition: .2s ease;
    text-align: center;
    cursor: pointer;
}

.filter ul.filter-drop-down-menus li ul li input[type="checkbox"] {
    pointer-events: none;
}

.filter ul.filter-drop-down-menus li:last-child ul li,
.filter ul.filter-drop-down-menus li:nth-child(5) ul li {
    text-align: left;
}

.filter ul.filter-drop-down-menus li ul li::after {
    display: none;
}

.filter ul.filter-drop-down-menus li ul li:last-child {
    margin-bottom: 0 !important;
}

.filter ul.filter-drop-down-menus li:hover ul li:hover {
    background: var(--border-color);
}


/*  global css      */

.features ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.wish-btn svg {
    stroke: var(--border-color);
}

.wish-btn * {
    pointer-events: none;
}

.wish-btn.active svg {
    stroke: var(--highlight_color);
    fill: var(--highlight_color);
}


/*      loader      */

.loader-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 55%);
    z-index: 9;
}

.loader-container.hide {
    display: none;
}

.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* ---------------- user sign in ---------------- */

.header-main nav .user-btn.sign-in {
    background: transparent;
    border: 2px solid var(--highlight_color);
    background: var(--highlight_color);
    transition: .2s ease-in-out;
}

.header-main nav .user-btn.sign-in:hover {
    background: transparent;
}

.sign-in-window {
    width: 300px;
    max-width: 100%;
    height: 100vh;
    background: white;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    position: fixed;
    right: 0;
    top: 0;
    padding-top: 10px;
    transform: translateX(100%);
    transition: .3s ease-in-out;
    z-index: 999;
}

.sign-in-window.active {
    transform: translateX(0);
}

.sign-in-window .window-close {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.sign-in-window .sign-in-window-inner .sign-in-title {
    padding: 10px 0;
}

.sign-in-window .sign-in-window-inner hr {
    height: 1px;
    border: none;
    background-color: var(--border-color);
    width: 100%;
}

.sign-in-window .sign-in-window-inner .input-fields {
    padding: 20px 20px 10px 20px;
}

.sign-in-window .sign-in-window-inner button.user-sign-in-submit {
    width: 100px;
    height: 38px;
    font-size: 17px;
    color: white;
    background: var(--highlight_color);
    border-radius: var(--radiusForMiniBoxes);
    justify-content: center;
    align-self: center;
}

.sign-in-window .sign-in-window-inner,
.sign-in-window .sign-in-window-inner .input-fields,
.sign-in-window .sign-in-window-inner .form-second-stage div {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.sign-in-window .sign-in-window-inner .input-fields input {
    border: 1px solid var(--border-color);
    font-size: 16px;
    height: 38px;
    padding: 0 0 0 10px;
    border-radius: var(--radiusForMiniBoxes);
    appearance: none;
    transition: .3s ease-in-out;
}

.sign-in-window .sign-in-window-inner .input-fields input.active:first-child:not(.form-second-stage input) {
    height: 0px;
    transform: translateX(120%)
}

.sign-in-window .sign-in-window-inner .form-second-stage {
    height: 0px;
    overflow: hidden;
    transition: .3s ease-in-out;
}


/* Chrome, Safari, Edge, Opera */

.sign-in-window .sign-in-window-inner .input-fields input::-webkit-outer-spin-button,
.sign-in-window .sign-in-window-inner .input-fields input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Firefox */

.sign-in-window .sign-in-window-inner .input-fields input[type=number] {
    -moz-appearance: textfield;
}


/* ---------------- end user sign in ---------------- */


/*      typeform        */

.typeform-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: white;
    top: 0;
    left: 0;
    z-index: 999;
}

.typeform-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 99999;
}

@media only screen and (max-width: 1080px) {
    .w33 {
        width: 49% !important;
    }
    .w25 {
        width: 32% !important;
    }
    .container {
        width: 90%;
    }
    .mobile-filter-btn,
    .mobile-filter-bottom {
        display: flex !important;
    }
    .filter {
        position: sticky;
        top: -1px;
        z-index: 1;
    }
    .filter ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) {
        position: absolute;
        top: 100vh;
        left: 0;
        background: white;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        height: min-content;
        padding: 40px 5%;
        gap: 10px;
        align-content: flex-start;
        justify-content: space-between;
        transition: .3s ease-in-out;
        pointer-events: none;
        height: calc(100vh - 145px) !important;
        opacity: 0;
        visibility: hidden;
    }
    .filter-drop-down-menus.main-filter.dflex.active:after {
        content: "";
        width: 100vw;
        height: 50vh;
        position: absolute;
        top: 100%;
        display: block;
        background: white;
        z-index: -1;
    }
    .filter.is-pinned ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) {
        height: calc(100vh - 64px) !important;
    }
    .filter.filter.is-pinned .mobile-filter-bottom {
        top: 73% !important;
    }
    .filter ul.filter-drop-down-menus li[data-key="property_type"]::before,
    .filter ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) li:first-child::before {
        content: "Property type:";
        display: block;
        position: absolute;
        width: max-content;
        height: 22px;
        top: -23px;
        font-size: 17px;
        left: 0;
        background: none;
        clip-path: none;
    }
    .filter ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) li:first-child::before {
        content: 'Price:' !important;
    }
    .filter ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) li:nth-child(5):not(li>ul li) {
        margin-top: 30px;
    }
    .filter ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) li:nth-child(5),
    .filter ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) li:nth-child(6),
    .filter ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) li:last-child {
        min-width: 100%;
        max-width: 100%;
    }
    .filter ul.filter-drop-down-menus.main-filter.active {
        top: 100% !important;
        pointer-events: all !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .filter ul.filter-drop-down-menus li ul {
        z-index: 999;
    }
    .filter ul.filter-drop-down-menus [data-key] {
        width: calc(50% - 5px);
        padding: 5px 0;
        min-height: 42px;
        max-height: 42px;
        justify-content: center;
        border: 1px solid var(--border-color);
        border-radius: var(--radiusForMiniBoxes);
    }
    .mobile-filter-bottom {
        border: none !important;
        background: none;
        justify-content: space-between !important;
        align-items: flex-end;
        height: 88vh !important;
        position: fixed !important;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
        min-width: 100% !important;
        padding: 0 5%;
    }
    .mobile-filter-bottom button {
        position: relative;
        pointer-events: all;
        bottom: 20px;
        background-color: var(--highlight_color) !important;
        color: white;
    }
    .mobile-filter-bottom.dflex .results-counter {
        position: absolute;
        left: 50%;
        bottom: 65px;
        transform: translate(-50%, -50%);
    }
    .mobile-filter-bottom:after {
        content: "" !important;
        display: none !important;
    }
    .mobile-filter-bottom button {
        width: 49%;
        font-size: 16px;
        padding: 8px 0;
        border-radius: var(--radiusForMiniBoxes);
    }
}

@media only screen and (max-width: 768px) {
    .w25 {
        width: calc(50% - 10px) !important;
    }
    header nav {
        position: fixed;
        left: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: 100vh;
        background: #130c01d9;
        width: 280px;
        padding: 40px 20px;
        border-right: 1px solid #ffffff21;
        transform-origin: 0% 0%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 9;
    }
    header nav.active {
        transform: none;
    }
    header .header-menu {
        display: initial;
    }
}

@media only screen and (max-width: 500px) {
    .filter ul.filter-drop-down-menus:not(.area-search-box ul.filter-drop-down-menus) {
        padding: 20px 5%;
    }
    main .sort-container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}