/* RTL (Right-to-Left) CSS Styles Only */

/* Custom Styles */
[dir=rtl] .search-wrapper .search-btn {
    margin-right: 10px;
}

[dir=rtl] h2.flex.lg\:flex-col.gradient-heading.remove-text-gradient.text-white.gap-2.lg\:gap-0 {
    background: linear-gradient(-97.08deg, #ffffff 0%, #ffffff 55.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 1124px) {
    [dir=rtl] .lg\:mr-\[150px\] {
        margin-right: 0;
        margin-left: 150px;
    }
}

@media (min-width: 1124px) {
    [dir=rtl] .lg\:pr-16 {
        padding-left: 4rem;
        padding-right: 0rem;
    }
}

[dir=rtl] .market-overlay {
    background: linear-gradient(0deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .7)), linear-gradient(0deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)), linear-gradient(91deg, rgba(255, 255, 255, 0) 36.85%, rgba(255, 255, 255, .742497) 54.38%, rgba(255, 255, 255, .9) 75.39%);
}

/* Accordion RTL Styles */
[dir=rtl] .accordion {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

[dir=rtl] .accordion p {
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 30px !important;
    margin: 0 !important;
    flex: 1 !important;
    order: 2 !important;
}

[dir=rtl] .plus-icon-wrapper {
    position: absolute !important;
    left: 30px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    order: 1 !important;
}

[dir=rtl] a.block.text-sm.text-white.mt-2.hover\:underline {
    text-align: right;
}

[dir=rtl] .hover-link:after {
    right: 20px;
}

[dir=rtl] .flex-1.flex.gap-8.text-white.lg\:justify-end.justify-center.right-to-left-aboutus {
    display: flex;
    flex-direction: row-reverse;
    gap: 5rem;
}

@media (max-width: 400px) {
    [dir=rtl] .flex-1.flex.gap-8.text-white.lg\:justify-end.justify-center.right-to-left-aboutus {
        display: flex;
        flex-direction: row-reverse;
        gap: 2rem;
    }
}

/* Listing page Custom */

[dir=rtl] .mr-4 {
    margin-right: 0rem;
    margin-left: 1rem;
}

[dir=rtl] .pr-4 {
    padding-right: 1rem;
    padding-left: 1rem;
}

.ml-2 {
    margin-left: .5rem;
    margin-right: .5rem;
}

/* end listing custom  */

/* end custom style */

[dir=rtl] h2.gradient-heading.remove-text-gradient.text-white.text-center.leading-6.w-fit.mx-auto.\!text-\[2rem\].md\:\!text-\[3rem\].font-bold {
    background: linear-gradient(-97.08deg, #ffffff 0%, #ffffff 55.06%);
    -webkit-background-clip: text;
}

[dir=rtl] h2.h2.text-white.bg-none.font-messina-light.\!font-normal {
    background: linear-gradient(-97.08deg, #ffffff 0%, #ffffff 55.06%);
    -webkit-background-clip: text;
}

[dir=rtl] h2.title.gradient-heading.remove-text-gradient.text-center {
    background: linear-gradient(-97.08deg, #ffffff 0%, #ffffff 55.06%);
    -webkit-background-clip: text;
    text-align: center;
}

[dir=rtl] .mr-\[100px\] {
    margin-left: 100px;
}

@media (min-width: 1124px) {
    [dir=rtl] .lg\:space-x-8>:not([hidden])~:not([hidden]) {
        --tw-space-x-reverse: 0;
        margin-right: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
        margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
    }
}


[dir=rtl] .dropdown-content.pl-16.pt-5 {
    padding-left: 4rem;
    padding-right: 4rem;
}

[dir=rtl] .mega-menu:nth-child(3) .custom-dropdown .dropdown-content .flex {
    position: relative;
    right: -24px;
    left: 0px;
}

[dir=rtl] .ml-3 {
    margin-left: 0px;
    margin-right: 1rem;
}

[dir=rtl] .space-x-16>:not([hidden])~:not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(4rem * calc(1 - var(--tw-space-x-reverse)));
    margin-left: calc(4rem * calc(1 - var(--tw-space-x-reverse)));
}

[dir=rtl] .h1, [dir=rtl] h1 {
    background: linear-gradient(-97.08deg, #ef6079 0%, #001e60 55.06%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media screen and (max-width: 1023px) {
    [dir=rtl] .mr-\[100px\] {
        margin-right: 0px;
    }

    [dir=rtl] .mr-\[40px\] {
        margin-right: 0px !important;
    }
}

[dir=rtl] h2.gradient-heading.text-5xl.text-center.leading-6.w-fit.mx-auto {
    text-align: center;
}

[dir=rtl] .custom-dd-arrow {
    background-position: left 0px center !important;
}

[dir=rtl] h2.h2-unset.location-item {
    background: linear-gradient(-97.08deg, #545c6c 0%, #545c6c 55.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir=rtl] h5.h5.font-semibold.font-messina-sans {
    background: linear-gradient(-97.08deg, #001e60 0%, #001e60 55.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir=rtl] h5.font-normal.hidden-sm {
    background: linear-gradient(-97.08deg, #001e60 0%, #001e60 55.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir=rtl] h6.text-lg.text-primary-blue.font-semibold {
    background: linear-gradient(-97.08deg, #001e60 0%, #001e60 55.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir=rtl] h4.text-capitalize.text-primary-blue.text-xxl {
    background: linear-gradient(-97.08deg, #001e60 0%, #001e60 55.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir=rtl] h5.font-messina-sans {
    background: linear-gradient(-97.08deg, #001e60 0%, #001e60 55.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {
    [dir=rtl] .sm\:space-x-3>:not([hidden])~:not([hidden]) {
        margin-right: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
        margin-left: calc(-0rem * calc(1 - var(--tw-space-x-reverse)));
    }
}

/* end custom style */

/* Hero Section RTL Styles */
[dir=rtl] .hero-section-outer-wrapper .hero-inner .gallery-section {
    padding-right: 80px;
    padding-left: 0
}

[dir=rtl] .hero-section-outer-wrapper .hero-inner .left-search-section {
    margin-left: 0;
    margin-right: 3rem
}

/* Responsive RTL Styles */
@media screen and (min-width: 1600px) {
    [dir=rtl] .testimonials-section .left-content-outer {
        padding-right: calc((100vw - 1500px)/2);
        padding-left: 0
    }
}

@media screen and (max-width: 1024px) {
    [dir=rtl] .hero-section-outer-wrapper .hero-inner .gallery-section {
        padding-right: 0
    }

    [dir=rtl] .hero-section-outer-wrapper .hero-inner .left-search-section {
        margin-right: 0rem
    }
}

/* Navigation and Layout RTL Styles */
[dir=rtl] .top-nav a {
    direction: ltr
}

[dir=rtl] .timeline_indicator {
    right: 0;
    left: auto
}

[dir=rtl] .timeline_indicator ul li a {
    padding-right: 90px
}

[dir=rtl] .timeline_indicator ul li a:before {
    right: 0;
    left: auto
}

/* Section Layout RTL Styles */
[dir=rtl] .center-bordered-section .left_section {
    padding-left: 190px;
    padding-right: 0
}

[dir=rtl] .center-bordered-section.reverse-section .left_section {
    padding-right: 190px !important;
    padding-left: 0
}

[dir=rtl] .center-bordered-section .right_section {
    padding-right: 80px;
    padding-left: 0
}

[dir=rtl] .center-bordered-section.reverse-section .right_section {
    padding-left: 80px !important;
    padding-right: 0
}

[dir=rtl] .center-bordered-section .left_section:after {
    left: 0;
    right: auto
}

[dir=rtl] .center-bordered-section.reverse-section .left_section:after {
    right: -1px;
    left: auto
}

[dir=rtl] .center-bordered-section.reverse-section .left_section:before {
    right: -5px;
    left: auto
}

[dir=rtl] .timeline-mesh .date {
    left: -94px;
    right: auto
}

[dir=rtl] .center-bordered-section.reverse-section .timeline-mesh .date {
    right: -94px;
    left: auto
}

[dir=rtl] .center-bordered-section .left_section:before {
    left: -5px;
    right: auto
}

/* Utility Classes RTL Styles */
[dir=rtl] .mr-5 {
    margin-left: 20px;
    margin-right: 0
}

[dir=rtl] .two-col-layout .video-wrapper {
    padding-right: 140px;
    padding-left: 0
}

[dir=rtl] .reverse-column .video-wrapper {
    padding-left: 140px;
    padding-right: 0
}

[dir=rtl] .accordion p {
    padding-left: 15px;
    padding-right: 0
}

/* Footer RTL Styles */
[dir=rtl] footer .footer-blocks {
    padding-left: 1rem !important;
    padding-right: 0rem
}

[dir=rtl] footer .quick-links li:last-child:after {
    display: block
}

[dir=rtl] footer .quick-links li:first-child:after {
    display: none
}

/* Property and Navigation RTL Styles */
[dir=rtl] .property-hero .share-btn {
    direction: ltr !important
}

[dir=rtl] .breadcrumb-wrapper .inline-flex li:first-child {
    margin-left: 15px
}

[dir=rtl] .breadcrumb-wrapper .inline-flex li a {
    margin-right: .5rem;
    margin-left: 0
}

[dir=rtl] .ending-section-two-col .left-section {
    padding-left: 2rem;
    padding-right: 0rem
}

[dir=rtl] .aside-text {
    text-align: right
}

[dir=rtl] .breadcrumb-wrapper .inline-flex svg {
    transform: rotate(180deg)
}

/* Rotate breadcrumb arrow image in RTL */
[dir=rtl] img[src*="barrow-ad3a2263.svg"] {
    transform: rotate(180deg);
}

/* Rotate arrow circle right image in RTL */
[dir=rtl] img[src*="ArrowCircleRight-12106a0f.svg"] {
    transform: rotate(180deg);
}

/* Rotate play circle image in RTL */
[dir=rtl] img[src*="PlayCircle-a498a1f7.svg"] {
    transform: rotate(180deg);
}

/* Rotate white arrow image in RTL */
[dir=rtl] img[src*="white-arrow-af2a3279.svg"] {
    transform: rotate(180deg);
}

[dir=rtl] .avatar-box {
    text-align: right
}

/* Form and Button RTL Styles */
[dir=rtl] .utility-buttons .select-filter.rounded-l {
    border-radius: 0 4px 4px 0/0px 4px 4px 0px
}

[dir=rtl] .utility-buttons .select-filter.rounded-r {
    border-radius: 4px 0 0 4px/4px 0px 0px 4px
}

[dir=rtl] .search-results ul li:first-child {
    padding-right: 0;
    padding-left: 16px
}

[dir=rtl] .search-results ul li:first-child:after {
    display: none
}

[dir=rtl] .search-results ul li .recent .mr-2 {
    margin-left: .5rem;
    margin-right: 0
}

[dir=rtl] .wide-tab {
    direction: ltr
}

[dir=rtl] .breadcrumb-wrapper .back-link {
    flex-direction: row-reverse;
    padding-right: 0;
    padding-left: 1rem;
    margin-left: 0 !important
}

/* List and Counter RTL Styles */
[dir=rtl] .counter-list li:after {
    right: 2px;
    left: auto
}

[dir=rtl] .counter-list li:before {
    left: auto;
    right: 0
}

[dir=rtl] .counter-list ul li {
    padding-right: 60px;
    padding-left: 0
}

[dir=rtl] .img-outer {
    left: 0;
    right: auto;
    padding-right: 160px;
    padding-left: 0
}

[dir=rtl] .right-section-50 {
    padding-right: 160px
}

[dir=rtl] .breadcrumb-wrapper .back-link:after {
    left: 0;
    right: auto
}

[dir=rtl] .breadcrumb-wrapper .back-link a {
    margin-right: 10px !important
}

[dir=rtl] .breadcrumb-wrapper .back-link>.flex svg {
    transform: rotate(0) !important
}

[dir=rtl] .left-info-section {
    padding-left: 120px;
    padding-right: 0
}

[dir=rtl] .get-in-touch-wrapper .btn-primary {
    margin-left: 1rem;
    margin-right: 0
}

[dir=rtl] .left-news-col {
    padding-left: 24px;
    padding-right: 0;
    border-left: 1px solid #e2e2e2;
    border-right: none
}

/* Responsive RTL Media Queries */
@media screen and (max-width: 1024px) {
    [dir=rtl] .timeline-section .container {
        padding-left: 16px;
        padding-right: 16px
    }

    [dir=rtl] .left-news-col {
        padding-left: 0;
        border-left: none
    }

    [dir=rtl] .two-col-layout .video-wrapper {
        padding-right: 0
    }

    [dir=rtl] .reverse-column .video-wrapper {
        padding-left: 0
    }

    [dir=rtl] .left-info-section {
        padding-left: 0
    }
}

@media screen and (min-width: 1440px) {
    [dir=rtl] .no-accent-banner .two-col-layout .video-wrapper {
        padding-right: 140px;
        padding-left: 0
    }

    [dir=rtl] .timeline-section .center-bordered-section.reverse-section .left_section {
        padding-right: 190px !important
    }

    [dir=rtl] .center-bordered-section .right_section {
        padding-right: 80px
    }

    [dir=rtl] .timeline-section .center-bordered-section .left_section {
        padding-left: 190px
    }

    [dir=rtl] .left-news-col {
        padding-left: 24px;
        border-left: 1px solid #e2e2e2;
        border-right: none
    }

    [dir=rtl] .ending-section-two-col .left-section {
        padding-left: 2rem
    }

    [dir=rtl] .reverse-column .video-wrapper {
        padding-left: 140px
    }
}

/* Slider RTL Styles - Keep same behavior as LTR */
[dir=rtl] .slick-slide {
    direction: ltr !important;
}

[dir=rtl] .slick-prev {
    left: 25px !important;
    right: auto !important;
}

[dir=rtl] .slick-prev:before {
    content: "←"
}

[dir=rtl] .slick-next {
    left: 65px !important;
    right: auto !important;
}

[dir=rtl] .slick-next:before {
    content: "→"
}

/* Keep slider behavior exactly same as LTR */
[dir=rtl] .slick-track {
    direction: ltr !important;
}

[dir=rtl] .slick-list {
    direction: ltr !important;
}

[dir=rtl] .slick-slide {
    float: left !important;
    direction: ltr !important;
}

/* Specific fixes for slick-sell-betterhomes - same as LTR */
[dir=rtl] .slick-sell-betterhomes .slick-track {
    direction: ltr !important;
}

[dir=rtl] .slick-sell-betterhomes .slick-list {
    direction: ltr !important;
}

[dir=rtl] .slick-sell-betterhomes .slick-slide {
    float: left !important;
    direction: ltr !important;
}

/* RTL positioning for slider-ck arrows */
[dir=rtl] .slider-ck .slick-prev {
    left: 25px !important;
    right: auto !important;
}

[dir=rtl] .slider-ck .slick-next {
    left: 65px !important;
    right: auto !important;
}

/* International Telephone Input RTL Styles */
[dir=rtl] .iti__arrow {
    left: 6px;
    right: auto
}

[dir=rtl] .iti__country-name, [dir=rtl] .iti__flag-box {
    margin-left: 6px;
    margin-right: 0
}

[dir=rtl] .iti--allow-dropdown input.iti__tel-input, [dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=tel], [dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=text] {
    padding-left: 52px;
    padding-right: 6px;
    margin-right: 0
}

[dir=rtl] .iti--allow-dropdown .iti__country-container {
    left: 0;
    right: auto
}

[dir=rtl] .iti .iti__selected-dial-code {
    margin-right: 6px;
    margin-left: 0
}

/* Typography RTL Styles */
[dir=rtl] .h1, [dir=rtl] h1 {
    text-align: right
}

[dir=rtl] .no-gradient-text {
    text-align: right
}

[dir=rtl] .h2, [dir=rtl] h2, [dir=rtl] .h3, [dir=rtl] h3, [dir=rtl] .h4, [dir=rtl] h4, [dir=rtl] .h5, [dir=rtl] h5, [dir=rtl] .h6, [dir=rtl] h6 {
    text-align: right
}

/* Text Alignment RTL Styles */
[dir=rtl] .text-left {
    text-align: right !important;
}

/* Tailwind RTL Utility */
.rtl\:text-right:where([dir=rtl], [dir=rtl] *) {
    text-align: right
}