.featured-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-box a {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(0deg 0% 0% / 20%);
}

.category-box {
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    height: 360px;
    display: flex;
    position: relative;
    flex-direction: row;
    z-index: 0;
}

.category-box:hover {
    background-size: 110%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-align:left;
    color: #fff;
}

.category-content p {
    margin: 5px 0 0;
    font-size: 14px;
    text-align:left;
    color: #fff;
}

.category-content {
    align-self: end;
    z-index: 1;
}

.latest-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.latest-news-header a {
    margin-bottom: 15px;
    color: #000;
    font-weight: 500;
}

 /*Property grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
   }

.property-item {
    background: #fff;
    transition: transform 0.3s ease-in-out;
    position: relative;
    box-shadow: 1px 3px 6px #ece4d9;
}

.property-item:hover {
    transform: translateY(-5px);
}

.property-thumbnail {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.property-content {
    padding: 10px 15px;
}
.property-meta img {
    width: 20px;
}
.property-meta {
    display: flex;
    gap: 20px;
}

.property-content h3 {
    font-size: 18px;
    margin: 0;
}

.property-content p {
    font-size: 14px;
    color: var(--blue);
}
.property-content .property-name {
    font-weight: 500;
    margin: 0;
}
.property-content p.property-price {
    margin: 0;
    display: flex;
    justify-content: end;
    font-weight: 600;
    font-size: 16px;
}
.property-meta p {
    display: flex;
    gap: 5px;
}
.property-item .property-content .property-name {
    min-height: 40px;
    font-size: 18px;
    line-height: 20px;
}
.property-content  hr {
    background-color: var(--brown) !important;
    margin: 7px 0 !important;
    border: none;
    height: 2px;
}
.property-item span.property-type {
    background-color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 18px;
    color: #000000;
}
.property-item .property-thumbnail-taxonomy {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-item  span.plus-icon {
    background-color: #fff;
    height: 16px;
    width: 16px;
    line-height: 15px;
    display: flex;
    justify-content: center;
    color: #000000;
    font-weight: 400;
    border-radius: 3px;
    font-size: 20px;
}

.property-item a {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

/*Homepage slider*/

.hp-slider .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 100dvh;
}

.slider-overlay {
    position: absolute;
    width: 100%;
    bottom: 80px;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.slider-overlay .slider-content {
    width: 1140px;
    padding: 0 30px;
    box-sizing: content-box;
    position: relative;
}
.slider-overlay .slider-content:after {
    content: "";
    background: hsl(0deg 0% 0% / 20%);
    filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    max-width: 725px;
}
.slider-overlay h1.slider-title {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    width: min(100%, 750px);
    text-transform: uppercase;
    letter-spacing: 5px;
}

.slider-overlay .slider-text {
    color: #fff;
    font-size: 14px;
    width: min(100%, 750px);
}

.slider-pagination {
    position: absolute;
    bottom: 120px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.slider-pagination .swiper-pagination {
    bottom: unset !important;
    top: unset !important;
    width: 250px !important;
    position: relative;
    text-align: left;
}

.slider-pagination .slider-pagination-content {
    width: 1140px;
    padding: 0 30px;
    box-sizing: content-box;
    position: relative;
    display: grid;
    z-index: 10;
    justify-content: right;
}

.slider-property-price-content  .slider-property-price {
    color: #fff;
    font-size: 14px;
    width: 1140px;
    padding: 0 30px;
    box-sizing: content-box;
    display: flex;
    justify-content: end;
}

.slider-property-price-content {
    position: absolute;
    bottom: 80px;
    display: flex;
    width: 100%;
    justify-content: center;
}

.slider-property-price p {
    width: 250px;
}

.slider-pagination span.swiper-pagination-bullet {
    width: 50px;
    height: 3px;
    border-radius: 0;
    background: var(--brown);
}

.slider-pagination .swiper-pagination .swiper-pagination-bullet:first-child {
    margin-left: 0;
}

/* Property search result */
.property-sorting {
    width: fit-content;
}

select#sort-property {
    border: none;
    padding-left: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue);
    margin-left: -3px;
}

h2.property-sorting-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 5px;
}
select#sort-property option {
    font-size: 12px;
}

/* Homepage latest news */
.latest-news-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

.latest-news-grid .first-news {
    flex-basis: 70%;
}

.latest-news-grid .other-news {
    flex-basis: 30%;
    display: grid;
    gap: 15px;
}

.latest-news-grid .latest-news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.latest-news-background {
    height: 410px;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}

.latest-news-content {
    position: absolute;
    bottom: 0;
    padding: 20px;
    color: #FFF;
}

.latest-news-item {
    position: relative;
    transition: all 0.3s ease-in-out;
}

p.latest-news-date {
    font-size: 12px;
    margin: 0;
}

p.latest-news-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.latest-news-content {
    background: hsl(0deg 0% 0% / 35%);
}

.other-news .latest-news-background {
    height: 125px;
}


.other-news .latest-news-content {
    height: 125px;
    padding: 0 20px;
    top: 0;
}

.other-news p.latest-news-title {
    margin-top: 60px;
    font-size: 13px;
    margin-bottom: 0;
    line-height: 16px;
}

.other-news p.latest-news-excerpt {
    margin: 0;
    font-size: 12px;
    display: none;
}

.other-news p.latest-news-date {
    font-size: 12px;
    margin-top: 5px;
    color: #fff;
    font-weight: 700;
}

.latest-news-item a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.latest-news-item:hover .latest-news-background {
    background-size: 110%;
}


/* Testimonial Slider */
.testimonial-slider {
    background-color: #f1f1f1;
    padding: 80px 0!important;
}
.testimonial-content {
    padding: 0 20px;
}

.swiper-button-prev {
    top: 85%!important;
    left: 20px !important;
}

.swiper-button-next {
    top: 85%!important;
    left: 80px!important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 10px!important;
    background: var(--blue);
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    color: #fff;
}

.testimonial-text {
    color: #000;
    font-size: 14px;
    line-height: 16px;
}

p.testimonial-meta {
    font-size: 20px;
    color: #000;
    font-weight: 800;
}

/*Price range*/
.price-range {
    position: relative;
    height: 60px;
    max-width: 400px;
    background: #fff;
    padding: 10px 15px;
    width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-top: -60px;
}
.price-range input[type=range]:nth-child(1)::-webkit-slider-thumb::before {
    background-color: var(--brown);
}
.price-range input[type=range]:nth-child(2) {
    background: none;
}
.price-range input[type=range]:nth-child(2)::-webkit-slider-thumb::before {
    background-color: var(--brown);
}
.price-range input[type=range]::-moz-range-track {
    background: none;
}
.price-range input[type=range] {
    position: absolute;
    width: calc(100% - 30px);
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: linear-gradient(var(--blue), var(--blue)) no-repeat center;
    background-size: 100% 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    pointer-events: none;
    cursor: pointer;
}
.price-range input[type=range]:active,
.price-range input[type=range]:focus,
.price-range input[type=range]::-moz-focus-outer {
    border: none;
    outline: none;
}
.price-range input[type=range]::-moz-range-thumb {
    position: relative;
    height: 28px;
    width: 28px;
    margin: 5px 0;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 4px 0.5px rgba(0,0,0,0.3);
    -moz-appearance: none;
    appearance: none;
    pointer-events: all;
}
.price-range input[type=range]::-moz-range-thumb:hover {
    background-color: var(--brown);
}
.price-range input[type=range]::-moz-range-thumb:active {
    background-color: var(--brown);
}
.price-range input[type=range]::-webkit-slider-thumb {
    position: relative;
    height: 28px;
    width: 28px;
    margin: 5px 0;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 4px 0.5px rgba(0,0,0,0.3);
    -webkit-appearance: none;
    appearance: none;
    pointer-events: all;
}
.price-range input[type=range]::-webkit-slider-thumb:hover {
    background-color: var(--brown)
}
.price-range input[type=range]::-webkit-slider-thumb:active {
    background-color: var(--brown);
}
#property-price {
    cursor: pointer;
}


/*Site Units*/
ul.site-units {
    list-style: none;
    padding: 0;
    width: 100%;
}

ul.site-units select {
    background: transparent;
    color: #fff;
    font-size: 12px;
    width: 400px;
    border-radius: 0;
    max-width: 100%;
    border: 1px solid #fff;
}

ul.site-units select option {
    color: #000;
    text-transform: uppercase;
    font-size: 12px;
}



@media (max-width: 1024px) {

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-categories-wrapper,
    .property-grid-wrapper,
    .latest-news-wrapper{
        padding: 0 20px;
    }
    .latest-news-grid {
        display: none;
    }
    .search-cnt {
        top: 30%!important;
    }
    .search-bar {
        flex-wrap: wrap;
    }
    .search-bar fieldset.region-field {
        width: 100%;
    }
    .search-bar fieldset {
        flex-grow: 1;
        border: 1px solid #d4d4d4!important;
    }
    .slider-overlay h1.slider-title{
        font-size: 30px;
    }
    .slider-property-price-content {
        bottom: 30px;
    }
    .slider-overlay {
        bottom: 115px;
    }
    .slider-pagination {
        position: relative;
        margin-top: -60px;
        bottom: unset;
    }
    .search-bar button {
        width: 100%;
        margin: 0 10px 20px;
    }
    .search-bar fieldset.region-field,
    .search-bar fieldset.property-price,
    .search-bar fieldset.property-type,
    .search-bar fieldset.property-beds{
        margin: 0 10px 20px;
    }
}

@media (max-width: 768px) {
    .slider-overlay h1.slider-title{
        font-size: 24px;
    }
    .slider-overlay {
        top: 120px;
        bottom: unset;
    }
    .search-cnt {
        position: relative!important;
        top: 50%!important;
        margin-top: 40px;
    }
    .featured-property-header,
    .latest-news-header{
        align-items: start;
        flex-direction: column;
    }
    .featured-property-header .view-all,
    .latest-news-header a {
        width: 100%;
        text-align: right;
    }
    .search-bar {
        display: flex;
        background: white;
        overflow: hidden;
        gap: 20px;
    }
    .slider-property-price-content {
        bottom: 30px;
    }


}
@media (max-width: 640px) {
    .property-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .featured-categories {
        grid-template-columns: repeat(1, 1fr);
    }
    .slider-overlay h1.slider-title {
        font-size: 19px;
    }
    .slider-property-price-content {
        bottom: 20px;
    }
    .slider-overlay {
        top: 100px;
        bottom: unset;
    }
    div#page .news-homepage-grid div.elementor{
        margin-top: 0!important;
    }
}

@media (max-width: 480px) {
    .property-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .slider-overlay h1.slider-title {
        font-size: 16px;
    }
    .slider-overlay {
        top: 40px;
    }
    .slider-pagination {
        margin-top: -50px;
    }
    main.property-page {
        margin: 40px auto 50px!important;
    }

    /*div#page div.elementor {*/
    /*    margin-top: 65px;*/
    /*}*/
}