﻿
/*Arabic STYLE*/

[dir="rtl"] html, body, div, h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif !important;
    font-size: 14px !important;
}

 


body.rtl .property-section .property-2 .property-box .property-image .labels-left, body.rtl .property-section .property-box-flat .property-box .property-image .labels-left {
    right: 0px;
    text-align: right;
}

[dir="rtl"] .mr-35-x {
    margin-left: 33px !important;
    margin-right: 0px !important;
}

[dir="rtl"] .mr-33 {
    margin-left: 33px !important;
    margin-right: 5px !important;
}

[dir="rtl"] .mr-31 {
    margin-left: 31px !important;
    margin-right: 5px !important;
}

[dir="rtl"] .mr-30 {
    margin-left: 30px !important;
    margin-right: 5px !important;
}

[dir="rtl"] .infoBox .marker-detail .label {
    right: 10px !important;
    left: inherit;
}
[dir="rtl"] .riyal {
    margin-left: 31px;
    margin-right: 0px;
}
[dir="rtl"] #togglePassword {
    right: auto;
    left: 10px; /* Adjust to the left for RTL */
}

[dir="ltr"] #togglePassword {
    right: 10px; /* Default for LTR */
    left: auto;
}
[dir="rtl"].fas.fa-arrow-circle-right, .fas.fa-arrow-right, .fas.fa-arrow-left {
    transform: scaleX(-1); /* Flip horizontally */
}

[dir="ltr"].fas.fa-arrow-circle-right, .fas.fa-arrow-right, .fas.fa-arrow-left {
    transform: scaleX(-1); /* Flip horizontally */
}


[dir="rtl"] .form-control {
    text-align: right; /* Align text to the right */
    direction: rtl; /* Set text direction to RTL */
}
[dir="rtl"] .mr-35 {
    margin-right: 8px !important;
    margin-left: 35px;
}

[dir="rtl"] .property-section .property-box .property-image .labels-left .label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    font-family: Roboto, sans-serif;
    margin-right: 13px
}

[dir="rtl"] .spc-lft {
    margin-left: 0; /* Reset margin for RTL */
    margin-right: 35px; /* Add margin for RTL */
}

[dir="rtl"] header.header-2 {
    background-color: #fff;
    padding-left: 85px;
}
[dir="rtl"] .mr-10{
    margin-left: 10px;
}
#togglePassword {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    right: 10px;
}
.infoBox .marker-detail .detail-part a {
    float: left;
    color: var(--theme-default3);
    text-decoration: underline;
}
.cst-abs {
    position: absolute;
    bottom: 5px;
    left: 10px;
}

 
 
[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}
@media only screen and (max-width: 767px) {
    /* Styles for mobile devices */
    
    [dir="rtl"] .prop-details .m35 {
        margin-right: 40px !important;
    }

    [dir="rtl"] .prop-details .m33 {
        margin-right: 33px !important;
    }

    [dir="rtl"] .gallery-btn {
        padding: 5px 13px;
    }

    /* Remove extra left padding on header for RTL mobile so logo can align left */
    [dir="rtl"] header.header-2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ensure logo sits to the left in the mobile topbar */
    [dir="rtl"] .mobile-topbar { flex-wrap: nowrap; }
    [dir="rtl"] .mobile-topbar .mobile-logo { margin-right: 0 !important; margin-left: 0 !important; }
}

[dir="rtl"] .dashboard-list .nav-link {
    text-align: right;
    padding: 10px 15px;
    width: 100%;
}
[dir="rtl"] .mobile-topbar { justify-content: flex-start; }
[dir="rtl"] .mobile-topbar .mobile-logo { margin-right: 30% !important; margin-left: 0 !important; }
[dir="rtl"] .ml-3{
margin-right: 7px;
}

/* RTL support for search input wrapper */
[dir="rtl"] .search-input-wrapper .search-icon {
    left: auto;
    right: 14px;
}

[dir="rtl"] .search-input-wrapper .search-input-field {
    padding-left: 12px;
    padding-right: 42px;
}

[dir="rtl"] .dropdownSearch .dropdown-item:hover {
    padding-left: 16px;
    padding-right: 20px;
}

/* ======================================
   Feature Cards for Arabic/RTL
   Icon on LEFT side, Text on RIGHT side
   ====================================== */

/* Feature card container - normal row direction keeps icon on left */
[dir="rtl"] .feature-card-grid .feature-card,
[dir="rtl"] .feature-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 1rem 1.25rem !important;
    gap: 14px !important;
    text-align: right !important;
}

/* Icon - stays on LEFT side */
[dir="rtl"] .feature-card-grid .feature-card .feature-card__icon,
[dir="rtl"] .feature-card .feature-card__icon,
[dir="rtl"] .feature-card__icon {
    margin-left: 0 !important;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
}

/* Text - appears on RIGHT of icon */
[dir="rtl"] .feature-card-grid .feature-card > div,
[dir="rtl"] .feature-card > div {
    flex: 1 !important;
    text-align: right !important;
}

/* Headings - right aligned for Arabic */
[dir="rtl"] .feature-card h5,
[dir="rtl"] .feature-card-grid .feature-card h5 {
    text-align: right !important;
}

/* Paragraphs - right aligned for Arabic */
[dir="rtl"] .feature-card p,
[dir="rtl"] .feature-card-grid .feature-card p {
    text-align: right !important;
}

/* ======================================
   Price Range Slider for Arabic/RTL
   Labels: Min on LEFT, Max on RIGHT (keep as is)
   Slider: Flip the slider bar itself
   ====================================== */

/* Keep labels in normal order (min left, max right) */
[dir="rtl"] .price-range-slider .price-range-values {
    flex-direction: row !important;
}

/* Flip the slider track container horizontally */
[dir="rtl"] .price-range-slider .price-range-track {
    transform: scaleX(-1);
}

/* Flip the slider inputs to match */
[dir="rtl"] .price-range-slider .price-range-input {
    transform: scaleX(-1);
}

/* Flip the progress bar to match */
[dir="rtl"] .price-range-slider .price-range-progress {
    transform: translateY(-50%) scaleX(-1);
}