:root {
    --primary: 111, 48, 243;
    --secondary: 250, 250, 250;
    --background: 255, 255, 255;
    --foreground: 250, 250, 250;
    --text_color: 28, 29, 32;
    --foreground_text_color_alt: 107, 114, 128;
    --text_color_alt: 250, 250, 250;
    --border_color: 28, 29, 32;
    --border_color_alt: 250, 250, 250;
    --overlay: 28, 29, 32;
    --overlay_text: 250, 250, 250;
}

.dark-mode {
    --background: 28, 29, 32;
    --foreground: 37, 38, 41;
    --text_color: 250, 250, 250;
    --text_color_alt: 28, 29, 32;
    --border_color: 250, 250, 250;
    --border_color_alt: 28, 29, 32;
    --foreground_text_color_alt: 200, 200, 200;
}

:root:has(#blue:checked) {
    --primary: 0, 92, 230;
    --secondary: 250, 250, 250;
}
:root:has(#orange:checked) {
    --primary: 249, 85, 57;
    --secondary: 250, 250, 250;
}
:root:has(#green:checked) {
    --primary: 35, 190, 110;
    --secondary: 250, 250, 250;
}
:root:has(#purple:checked) {
    --primary: 123, 39, 124;
    --secondary: 250, 250, 250;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.plus-jakarta {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    position: relative;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: rgb(var(--text_color));
}

#preloader {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #fff; /* Or any other color */
    z-index: 9999; /* Ensures it covers everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid rgb(var(--primary)); /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.sec-heading {
    font-size: 1rem;
    text-transform: uppercase;
    color: rgb(var(--primary));
    text-align: center;
}

.sec-title {
    font-size: 3.8rem;
    margin: 10px 0 20px 0;
    color: rgb(var(--text_color));
    text-align: center;
    text-transform: capitalize;
}

section {
    padding: 60px 8%;
}

.underline {
    display: flex;
    gap: 6px;
    margin: 30px 0;
    justify-content: center;
}

.underline .item {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgb(var(--primary));
}

.underline .item:last-child {
    width: 120px;
    border-radius: 5px;
}

.swiper-pagination-bullet {
    background: rgb(var(--text_color)) !important;
}

.swiper-pagination-bullet-active {
    background: rgb(var(--primary)) !important;
}

/* .animated_btn[btn-data] {
    position: relative;
    overflow: hidden;
}

.animated_btn[btn-data]:hover::before {
    transform: translateY(0%);
    border-radius: 0%;
}

.animated_btn[btn-data]::before {
    position: absolute;
    content: attr(btn-data);
    color: rgb(var(--primary));
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: translateY(101%);
    background: rgb(var(--foreground));
    border-radius: 50% 50% 0 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1),
        border-radius 0.5s cubic-bezier(0.4, 0, 0, 1);
} */

.re-btn_cta {
    position: relative;
    display: inline-block;
    color: rgb(var(--secondary));
    background-color: rgb(var(--primary));
    padding: 1rem 2rem;
    border-radius: 1000px;
    font-size: 1.1rem;
}

.re-btn_cta-ripple {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    transform: translateZ(0);
    border-radius: inherit;
}

.re-btn_cta-ripple span {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
    height: 100%;
    transform: translateY(101%);
    background: rgb(var(--secondary));
    border-radius: 50% 50% 0 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1),
        border-radius 0.5s cubic-bezier(0.4, 0, 0, 1);
}
.re-btn_cta-title {
    position: relative;
    display: block;
    overflow: hidden;
    z-index: 2;
}

.re-btn_cta-title span {
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.re-btn_cta-title span::after {
    content: attr(data-text);
    display: block;
    position: absolute;
    top: 110%;
    left: 0;
    color: rgb(var(--primary));
}

@media (pointer: fine) {
    .re-btn_cta:hover .re-btn_cta-ripple span {
        border-radius: 1000px;
        transform: translateY(0);
        transition-duration: 0.5s, 0.9s;
    }
}

@media (pointer: fine) {
    .re-btn_cta:hover .re-btn_cta-title span {
        transform: translateY(-110%);
    }
}

@media (pointer: fine) {
    .re-btn_cta:hover {
        transform: scaleX(1.02);
        transition: transform 0.6s cubic-bezier(0.34, 5.56, 0.64, 1);
    }
}

/* Service Card */

.service {
    background-color: rgb(var(--background));
}

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding-top: 30px;
}

.services .item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    box-shadow: 0 1px 30px 2px rgba(var(--primary), 0.1);
    cursor: pointer;
    background-color: rgb(var(--background));
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid rgba(var(--primary), 0);
}

.services .item:hover {
    border: 1px solid rgb(var(--primary));
}

.services .item .title {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.services .item .title img {
    width: 40px;
}

.dark-mode .services .item .title img {
    filter: invert(99%) sepia(9%) saturate(192%) hue-rotate(66deg)
        brightness(114%) contrast(100%);
}

.services .item .description {
    font-size: 0.9rem !important;
    line-height: 1.8 !important;
    margin-bottom: 10px !important;
}

.services .item .details-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    color: rgb(var(--text_color));
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.services .item .details-btn:hover {
    color: rgb(var(--primary));
}

/* Search Property */

.property-search {
    background-color: rgb(var(--background));
}

.property-search .search-form {
    padding: 1rem;
    border: 1px solid rgba(var(--border_color), 0.3);
    border-radius: 50px;
    display: flex;
    gap: 1rem;
    align-items: end;
}

.property-search .search-form .searchInputWrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    flex-grow: 1;
}

.property-search .search-form .searchBar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 0%;
}

.property-search .search-form .searchBar .icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(var(--border_color), 0.3);
    font-size: 1.1rem;
}

.property-search .search-form .searchBar .input {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-search .search-form .searchBar .input select,
.property-search .search-form .searchBar .input input {
    min-width: 170px;
    border: 0;
    outline: 0;
    font-size: 1rem;
    color: rgb(var(--foreground_text_color_alt));
    background-color: rgb(var(--background));
}

.property-search .search-form .searchBtn button {
    background-color: rgb(var(--primary));
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    border: 0;
    outline: 0;
    color: rgb(var(--secondary));
    font-size: 0.9rem;
    font-weight: 500;
}

/* Property Card */
.properties .item {
    display: flex;
    width: 100%;
    gap: 2rem;
    padding: 1rem;
    background-color: rgb(var(--foreground));
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(var(--primary), 0);
    color: rgb(var(--text_color));
}

.properties .item:hover {
    box-shadow: 0 1px 30px 2px rgba(var(--primary), 0.1);
    border: 1px solid rgb(var(--primary));
}

.properties .item .img-wrapper {
    max-height: 200px;
    width: 30%;
}

.properties .item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.properties .item .details {
    padding: 1rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.properties .item .details .title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.properties .item .details .location {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.properties .item .details .location .tags {
    flex-grow: 1;
    display: flex;
    gap: 0.5rem;
    align-items: start;
    justify-content: end;
}

.properties .item .details .location .tag {
    font-size: 0.7rem;
    padding: 0.8rem 0.5rem;
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
    border-radius: 9999px;
    text-wrap: nowrap;
    line-height: 0;
}

.properties .item .details .price {
    font-weight: 600;
}

.properties .item .footer {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.properties .item .footer div p:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.properties .item .footer div p:first-child img {
    width: 1.2rem;
}

.dark-mode .properties .item .footer div p:first-child img {
    filter: invert(94%) sepia(2%) saturate(4789%) hue-rotate(208deg)
        brightness(114%) contrast(104%);
}

.properties .item .footer div p:last-child {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.featured_listing .properties .item {
    display: block;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.featured_listing .properties .item .img-wrapper {
    width: 100%;
    height: 220px;
}
.featured_listing .properties .item .img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.featured_listing .properties .item .title {
    margin-top: 20px;
    font-size: 1rem;
}

.featured_listing .properties .item .location {
    margin: 8px 0;
    font-size: 0.8rem;
}

.featured_listing .properties .item .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured_listing .properties .item .price {
    margin: 10px 0;
    font-size: 1.2rem;
}

.featured_listing .properties .item .details-btn {
    display: inline-block;
    color: rgb(var(--primary));
    border: 1px solid rgb(var(--primary));
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.featured_listing .properties .item .details-btn:hover {
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
}

/* Testimonial */

.testimonial {
    background-color: rgb(var(--background));
}

.testimonial .swiper-wrapper {
    padding-bottom: 50px;
    height: auto;
    padding-top: 30px;
}

.testimonial .swiper-wrapper .item {
    padding: 2rem;
    background-color: rgb(var(--background));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial .swiper-wrapper .item .review {
    color: rgb(var(--foreground_text_color_alt));
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.testimonial .swiper-wrapper .item .author {
    width: 140px;
    height: 140px;
}

.testimonial .swiper-wrapper .item .author img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.testimonial .swiper-wrapper .item .info h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgb(var(--primary));
}

.testimonial .swiper-wrapper .item .info span {
    color: rgb(var(--foreground_text_color_alt));
    font-size: 14px;
}

@media only screen and (max-width: 1330px) {
    .property-search .search-form {
        border-radius: 20px;
    }
    .property-search .search-form .searchBar .icon {
        border-radius: 20%;
        font-size: 1.3rem;
    }
    .property-search .search-form .searchInputWrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .property-search .search-form .searchBtn span i {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 1280px) {
    html {
        font-size: 90%;
    }
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 1024px) {
    html {
        font-size: 85%;
    }
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 80%;
    }
    .property-search .search-form {
        flex-direction: column;
        align-items: normal;
    }
    .property-search .search-form .searchInputWrapper {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .property-search .search-form .searchBtn span {
        width: 100%;
        border-radius: 10px;
        height: 40px;
    }
}

@media only screen and (max-width: 600px) {
    html {
        font-size: 70%;
    }

    .services {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    section {
        padding: 40px 5%;
    }

    .sec-title {
        font-size: 3rem;
    }

    .properties .item {
        flex-direction: column;
    }

    .properties .item .img-wrapper {
        height: 240px;
        width: 100%;
    }
}

@media only screen and (max-width: 500px) {
    .testimonial .swiper-wrapper .item {
        flex-direction: column-reverse;
    }
}
