/*
Theme Name: iTrobes Regent
Theme URI: https://regantpoint-beta.itrobes.in/
Author: iTrobes
Author URI: https://itrobes.in
Description: Custom theme for Regent Point by iTrobes
Version: 1.1.1
Template: homeid
Text Domain: itrobes-regent
*/

/* ======================================
   Page Loading Animation
   ====================================== */

.rp-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.rp-page-loader.rp-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.rp-loader-inner {
    text-align: center;
}

.rp-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(196, 164, 105, 0.2);
    border-top-color: #c4a469;
    border-radius: 50%;
    animation: rp-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.rp-loader-text {
    color: #c4a469;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes rp-spin {
    to { transform: rotate(360deg); }
}

body.rp-loading {
    overflow: hidden;
}

/* Hero banner shimmer effect */
.rp-hero-shimmer {
    position: relative;
    overflow: hidden;
}

.rp-hero-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: rp-shimmer 1.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes rp-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ======================================
   Arabic RTL overrides
   dir="rtl" stays on <html> for proper
   Elementor layout. These rules handle
   specific component RTL fixes.
   ====================================== */

/* G5 ERE search form */
html[lang="ar"] .home-txt .g5ere__sf-advanced-button a.btn::before {
    content: "\062A\0635\0641\064A\0629" !important;
}

/* RTL layout fixes for shortcode sections */
html[lang="ar"] .feat-box-sec ul,
html[lang="ar"] .amenition-sec ul,
html[lang="ar"] .unit-sec-box ul {
    direction: ltr;
}

html[lang="ar"] .property-price,
html[dir="rtl"] .g5ere__property-price,
html[dir="rtl"] .g5ere__loop-property-price,
html[dir="rtl"] .g5ere__lpp-price {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* RTL listing card alignment */
html[dir="rtl"] .g5ere__loop-content,
html[dir="rtl"] .g5ere__property-content,
html[dir="rtl"] body.archive .g5ere__property-content {
    text-align: right !important;
    direction: rtl !important;
}

html[dir="rtl"] .g5ere__loop-property-title,
html[dir="rtl"] .g5ere__property-content-top .g5ere__loop-property-title {
    text-align: right !important;
}

html[dir="rtl"] .g5ere__loop-property-address,
html[dir="rtl"] .g5ere__property-content-top .g5ere__loop-property-address {
    text-align: right !important;
    direction: rtl !important;
}

html[dir="rtl"] .g5ere__loop-property-price,
html[dir="rtl"] .g5ere__lpc-top .property-price,
html[dir="rtl"] .g5ere__lpc-top .ere__loop-property-price {
    text-align: right !important;
    width: 100%;
}

html[dir="rtl"] .g5ere__lpc-top {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .g5ere__loop-property-meta,
html[dir="rtl"] .g5ere__lpc-bottom .g5ere__loop-property-meta {
    justify-content: flex-end !important;
    direction: rtl !important;
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .g5ere__lpc-bottom {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .g5ere__loop-property-meta .g5ere__lpm-item {
    flex-direction: row-reverse !important;
}

/* RTL fix for search form */
html[lang="ar"] .g5ere-property-search-form {
    direction: ltr;
}

html[lang="ar"] .g5ere-property-search-form input,
html[lang="ar"] .g5ere-property-search-form select {
    text-align: right;
}

/* RTL fix for property cards */
html[lang="ar"] .g5ere__loop-property-content {
    direction: ltr;
    text-align: right;
}

/* RTL fix for city location cards */
html[lang="ar"] .g5ere__property-location-content {
    direction: ltr;
    text-align: right;
}

/* ======================================
   Slick Carousel RTL Fix
   Override Slick's [dir="rtl"] CSS rules
   that conflict with G5's rtl:false default.
   dir="rtl" stays on <html> for Elementor
   layout, but carousels forced to LTR.
   ====================================== */

/* Override Slick's built-in RTL rules */
[dir="rtl"] .slick-slide {
    float: left !important;
    visibility: visible !important;
}

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

/* Carousel wrappers: force LTR */
html[lang="ar"] .slick-initialized,
html[lang="ar"] .slick-slider,
html[lang="ar"] .g5ere__listing-inner,
html[lang="ar"] .g5ere__properties-wrap,
html[lang="ar"] .g5ere__location-wrap {
    direction: ltr !important;
}

/* Keep card content RTL inside LTR carousel */
html[lang="ar"] .g5ere__property-item,
html[lang="ar"] .g5ere__property-location-item {
    direction: ltr;
    text-align: right;
}

/* Ensure Slick list clips correctly */
html[lang="ar"] .slick-list {
    overflow: hidden;
}

/* Smoother Slick carousel transitions */
.slick-track {
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.slick-slide {
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}
.slick-list {
    overflow: hidden;
}

/* ======================================
   Popup Form – Select Dropdown Fix
   Make the <select> placeholder match
   input placeholder styling (light gray)
   ====================================== */

.elementor-popup-modal .elementor-field-type-select .elementor-field-textual {
    color: #9a9a9a;
    font-weight: 400;
    font-size: inherit;
    font-family: inherit;
}

/* When an actual option is selected (not the placeholder), show dark text */
.elementor-popup-modal .elementor-field-type-select .elementor-field-textual.elementor-field--has-value {
    color: #333;
}

/* Also target via option styling for browsers that support it */
.elementor-popup-modal .elementor-field-type-select select option:first-child {
    color: #9a9a9a;
}

.elementor-popup-modal .elementor-field-type-select select option {
    color: #333;
    font-weight: 400;
}

/* ======================================
   Header Nav – Single-Line Layout Fix
   Ensures all header items (logo, menu,
   phone, lang switcher, CTA) fit on one
   line at 100% zoom on all screen sizes.
   ====================================== */

/* Force single-line, no wrapping anywhere in header */
.elementor-location-header .e-con {
    flex-wrap: nowrap !important;
}

/* Reduce outer header container padding */
.elementor-location-header > .e-con {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Inner container: tight gaps, single line */
.elementor-location-header .e-con > .e-con {
    gap: 10px !important;
    align-items: center;
    flex-wrap: nowrap !important;
}

/* Menu: match live site sizing */
.elementor-location-header .wpr-nav-menu {
    flex-wrap: nowrap !important;
}

.elementor-location-header .wpr-nav-menu > li > a {
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 16px !important;
    white-space: nowrap;
}

/* Phone number: no wrapping */
.elementor-location-header .elementor-icon-list-items {
    white-space: nowrap;
}

.elementor-location-header .elementor-icon-list-text {
    font-size: 15px !important;
    white-space: nowrap;
}

/* Enquire Now button: compact, no wrap, with breathing room */
.elementor-location-header .elementor-button {
    white-space: nowrap;
    padding: 12px 22px !important;
    font-size: 14px !important;
}

.elementor-location-header .elementor-widget-button {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Language switcher: compact, zero spacing to button */
.rp-lang-switcher {
    min-width: auto !important;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Eliminate gap between switcher and enquire button */
.rp-lang-switcher + .elementor-element,
.elementor-element:has(> .elementor-widget-container > .elementor-button-wrapper) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.rp-lang-switcher .rp-lang-selected {
    padding: 5px 8px !important;
    gap: 10px !important;
}

.rp-lang-switcher .rp-lang-globe svg {
    width: 14px;
    height: 14px;
}

.rp-lang-switcher .rp-lang-current-text {
    font-size: 13px !important;
}

/* ---- Responsive tightening ---- */
@media (max-width: 1500px) {
    .elementor-location-header .wpr-nav-menu > li > a {
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 15px !important;
    }

    .elementor-location-header .elementor-icon-list-text {
        font-size: 14px !important;
    }

    .elementor-location-header .elementor-button {
        padding: 10px 18px !important;
    }

    .elementor-location-header .e-con > .e-con {
        gap: 6px !important;
    }
}

@media (max-width: 1400px) {
    .elementor-location-header .wpr-nav-menu > li > a {
        padding-left: 7px !important;
        padding-right: 7px !important;
        font-size: 14px !important;
    }

    .elementor-location-header .elementor-icon-list-text {
        font-size: 13px !important;
    }

    .elementor-location-header .elementor-button {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .elementor-location-header > .e-con {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .elementor-location-header .e-con > .e-con {
        gap: 10px !important;
    }

    /* Hide globe icon at tight widths to save space */
    .rp-lang-switcher .rp-lang-globe {
        display: none;
    }
}

/* ============================================
   Property Archive: Fix search/toolbar overlap
   ============================================ */

/* The Elementor header template on property archive extends into the content area.
   #main-content has margin-top:-46px from ERE plugin, pulling toolbar under the header.
   Fix: remove negative margin on property archive pages so toolbar doesn't overlap. */

/* Remove the negative margin that causes overlap on property archive */
body.post-type-archive-property #main-content,
body.tax-property-type #main-content,
body.tax-property-status #main-content,
body.tax-property-city #main-content {
    margin-top: 0 !important;
}

/* Ensure the sorting toolbar and its dropdown sit above the header search section */
body.post-type-archive-property #wrapper_content,
body.tax-property-type #wrapper_content,
body.tax-property-status #wrapper_content,
body.tax-property-city #wrapper_content {
    position: relative;
    z-index: 2;
}

.g5ere__toolbar .g5ere__listing-orderby {
    position: relative;
    z-index: 10;
}

/* ============================================
   RTL (Arabic) Header: Menu alignment fix
   ============================================ */

/* Structure: b9af878 > 0b01df0 [logo(e527992) + ec4b006(menu+phone+btn)]
   In LTR: logo LEFT, nav items RIGHT — works with flex-end/center.
   In RTL: logo stays RIGHT (correct), but nav items also go RIGHT leaving
   a gap in the middle. We need nav items to sit NEXT to the logo. */

/* Make the nav container (ec4b006) not grow — remove flex:1 so it
   doesn't push away from the logo. Instead, let items sit naturally. */
html[dir="rtl"] .elementor-element-0b01df0 {
    direction: rtl !important;
}

/* The nav container should align items from the end (right in RTL = near logo) */
html[dir="rtl"] .elementor-element-ec4b006 {
    direction: rtl !important;
    justify-content: flex-start !important;
}

/* The WPR mega menu nav: override the hardcoded wpr-main-menu-align-left */
html[dir="rtl"] .elementor-location-header .wpr-mega-menu-container,
html[dir="rtl"] .elementor-location-header .wpr-nav-menu-container {
    text-align: right;
    direction: rtl !important;
}

/* Menu items should flow right-to-left */
html[dir="rtl"] .elementor-location-header .wpr-nav-menu {
    direction: rtl !important;
    justify-content: flex-start !important;
}


/* RTL fix for general header (15602) - same alignment rules */
html[dir="rtl"] .elementor-element-7879d39 {
    direction: rtl !important;
}
html[dir="rtl"] .elementor-element-8cb684d {
    direction: rtl !important;
    justify-content: flex-start !important;
}

/* ============================================
   RTL (Arabic) Search form: icon/text overlap fix
   ============================================ */

/* Move search icon to left side in RTL (it's on the right by default which overlaps the label) */
html[dir="rtl"] .g5ere__sf-keyword .input-group-prepend {
    position: absolute;
    left: 0;
    right: auto !important;
    z-index: 3;
}
html[dir="rtl"] .g5ere__sf-keyword .g5ere__sf-icon-submit {
    right: auto !important;
    left: 0 !important;
}
/* Add left padding to the input so text doesn't go under the icon */
html[dir="rtl"] .g5ere__sf-keyword .form-control {
    padding-left: 50px !important;
    padding-right: 10px !important;
}
/* Align label text to right in RTL */
html[dir="rtl"] .g5ere__s-label {
    text-align: right;
    display: block;
}

/* ============================================
   AR Popup Modal – wider width & no scroll
   Popup 15592 (AR) now has DB width settings
   matching EN popup (900px). These CSS rules
   handle overflow/scroll removal on RTL pages.
   ============================================ */

/* Remove internal scroll on AR popup content */
html[dir="rtl"] .elementor-popup-modal .dialog-message {
    overflow: visible !important;
    max-height: none !important;
}

/* Ensure the popup widget content does not clip */
html[dir="rtl"] .elementor-popup-modal .dialog-widget-content {
    overflow: visible !important;
    max-height: none !important;
}

/* Prevent body-level scroll when AR popup is open */
html[dir="rtl"] .elementor-popup-modal .dialog-message .elementor {
    overflow: visible !important;
}

/* ======================================
   Floating Instagram icon – RTL fix
   The Elementor HTML widget in the AR footer renders CSS
   numerals as Arabic-Indic (١ instead of 1) which breaks
   the selector and property values. Redefine here.
   ====================================== */
.floating-icon1 {
    position: fixed !important;
    right: 27px !important;
    bottom: 99px !important;
    z-index: 9999 !important;
    display: block !important;
}

/* ======================================
   Slick Carousel Arrows – RTL Flip
   Flip prev/next arrows visually on AR pages
   so → becomes ← and vice versa.
   ====================================== */
html[dir="rtl"] .slick-prev,
html[dir="rtl"] .slick-next,
html[dir="rtl"] .elementor-swiper-button-prev,
html[dir="rtl"] .elementor-swiper-button-next {
    transform: scaleX(-1);
}

/* Flip generic arrow icons (→ / ←) in RTL context */
html[dir="rtl"] .eicon-chevron-right:before {
    content: "\e90a"; /* chevron-left */
}
html[dir="rtl"] .eicon-chevron-left:before {
    content: "\e909"; /* chevron-right */
}


/* === RTL Arrow Direction Fix === */
/* Flip right-pointing arrow SVGs to left for Arabic/RTL */
html[lang="ar"] .elementor-button-icon svg,
html[dir="rtl"] .elementor-button-icon svg {
    transform: scaleX(-1) !important;
}

/* Also flip any arrow icons (font-awesome) used in buttons */
html[lang="ar"] .elementor-button-icon .fa-arrow-right:before,
html[dir="rtl"] .elementor-button-icon .fa-arrow-right:before {
    content: "\f060" !important; /* fa-arrow-left */
}

html[lang="ar"] .elementor-button-icon .fa-long-arrow-alt-right:before,
html[dir="rtl"] .elementor-button-icon .fa-long-arrow-alt-right:before {
    content: "\f30b" !important; /* fa-long-arrow-alt-left */
}

/* Flip any general arrow-right icons in RTL context */
html[lang="ar"] .eicon-arrow-right:before,
html[dir="rtl"] .eicon-arrow-right:before {
    content: "\e910" !important; /* eicon-arrow-left */
}

/* === Header Spacing Fix (button + switcher) === */
/* Remove gap specifically between language switcher and enquire button */
.elementor-location-header .rp-lang-switcher + .elementor-element {
    margin-inline-start: 0 !important;
}
.elementor-location-header .elementor-element + .rp-lang-switcher {
    margin-inline-end: 0 !important;
}

/* === Fix double header on 404 page === */
/* Hide duplicate header inside 404 template (the real header is from header template) */
body.error404 .elementor-location-single > .she-header-yes,
body.error404 .elementor-location-single > .elementor-element-7eea4c9,
body.error404 .elementor-location-single > .elementor-element-b503a30 {
    display: none !important;
}


/* Match outer wrapper background to gold section on contact pages */
.elementor-15478 .elementor-element.elementor-element-680d0d5,
.elementor-9865 .elementor-element.elementor-element-680d0d5 {
    background-color: var(--e-global-color-gray) !important;
}

/* Remove white gap between last section and footer */
.page-id-15478 #primary-content,
.page-id-9865 #primary-content,
.page-id-7580 #primary-content,
.page-id-15425 #primary-content {
    padding-bottom: 0 !important;
    --g5-content-padding-bottom: 0px !important;
}




/* Fix menu wrapping on 1536px and similar screens */
@media (max-width: 1600px) {
    .elementor-location-header .wpr-nav-menu > .menu-item {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
    .elementor-location-header .wpr-nav-menu .wpr-menu-item {
        font-size: 13px !important;
    }
}

/* Desktop AR: menus stay right near logo, buttons on left with padding */
@media (min-width: 1025px) {
    html[dir="rtl"] .e-con.elementor-element-65158d0,
    html[dir="rtl"] .elementor-15602 .elementor-element.elementor-element-65158d0 {
        --padding-left: 40px !important;
        --padding-right: 40px !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* Mobile & Tablet: sticky header + hamburger alignment */
/* ======================================
   Single Property Detail Page - Gallery Padding
   ====================================== */
.g5ere__single-property-galleries {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

@media (max-width: 767px) {
    .g5ere__single-property-galleries {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ======================================
   Mobile & Tablet Responsive
   ====================================== */
@media (max-width: 1024px) {
    /* Sticky header - overlay on top, no white gap */
    .elementor-location-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 99999 !important;
    }
    /* Header row: full width, logo and hamburger on opposite ends */
    .e-con.elementor-element-7879d39 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: calc(100% - 40px) !important;
        margin: 10px 20px !important;
    }
    /* Logo: don't grow, stay on start side */
    .elementor-element-7879d39 > .elementor-element-5965a9d {
        flex: 0 0 auto !important;
    }
    /* Hamburger + switcher container: shrink to content, push to opposite end */
    .e-con.elementor-element-8cb684d {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        gap: 8px !important;
    }
}


/* Fix header overlap on privacy/terms pages - target banner not header */
.page-id-15506 .elementor-element-bf760f8,
.page-id-15507 .elementor-element-4926849,
.page-id-9599 .elementor-element-bf760f8,
.page-id-9547 .elementor-element-4926849 {
    --padding-top: 250px !important;
    --padding-bottom: 200px !important;
}
@media (max-width: 1024px) {
    .page-id-15506 .elementor-element-bf760f8,
    .page-id-15507 .elementor-element-4926849,
    .page-id-9599 .elementor-element-bf760f8,
    .page-id-9547 .elementor-element-4926849 {
        --padding-top: 200px !important;
        --padding-bottom: 120px !important;
    }
}
@media (max-width: 767px) {
    .page-id-15506 .elementor-element-bf760f8,
    .page-id-15507 .elementor-element-4926849,
    .page-id-9599 .elementor-element-bf760f8,
    .page-id-9547 .elementor-element-4926849 {
        --padding-top: 165px !important;
        --padding-bottom: 60px !important;
    }
}

/* Fix toolbar overlap on mobile - stack result count below controls */
@media (max-width: 767px) {
    .g5ere__toolbar .g5ere__toolbar-content-inner {
        flex-direction: column !important;
        position: relative !important;
    }
    .g5ere__toolbar-left {
        position: relative !important;
        left: auto !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* Homepage form section - stack on mobile */
@media (max-width: 767px) {
    .elementor-element-6a8682d {
        flex-direction: column !important;
    }
    .elementor-element-6a8682d > .e-con {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Listing page side padding */
@media (max-width: 767px) {
    body.archive .g5ere__property-halt-map {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    body.archive .g5ere__property-halt-map {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
/* RTL listing: cards flush against edge due to reversed flex */
@media (min-width: 1501px) {
    body.rtl.archive #main-content .g5ere__property-halt-map {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (max-width: 1500px) and (min-width: 1200px) {
    body.rtl.archive #main-content .g5ere__property-halt-map {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* Mobile: switcher alignment */
@media (max-width: 1024px) {
    .elementor-location-header .rp-lang-switcher,
    .elementor-location-header .rp-lang-wrapper {
        flex-shrink: 0;
    }
    /* RTL mobile: push hamburger+switcher together to left edge */
    html[dir="rtl"] .elementor-location-header .rp-lang-switcher,
    html[dir="rtl"] .elementor-location-header .rp-lang-wrapper {
        margin-right: auto !important;
    }
    html[dir="rtl"] .elementor-location-header .elementor-element-ec4b006,
    html[dir="rtl"] .elementor-location-header .elementor-element-8cb684d {
        justify-content: flex-end !important;
    }
}

/* WPR mobile menu overlay - dark theme like live site */
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #1a1a2e !important;
    overflow-y: auto !important;
    padding: 0 !important;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active > .elementor-widget-container {
    height: 100%;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-mega-menu-wrap {
    background: #1a1a2e !important;
    display: block !important;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-nav-menu {
    background: #1a1a2e !important;
    padding-top: 20px;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-menu-item {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    padding: 14px 25px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-menu-item:hover,
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-active-menu-item {
    color: #c8a97e !important;
    background: transparent !important;
}
/* Close (X) button */
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-toggle-wrap {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-toggle {
    border: 2px solid rgba(255,255,255,0.4) !important;
    border-radius: 6px;
    padding: 10px !important;
    background: transparent !important;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-toggle-line {
    background-color: #fff !important;
}
/* Logo inside mobile menu */
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-mega-menu-wrap::before {
    content: '';
    display: block;
    width: 140px;
    height: 80px;
    background: url('/wp-content/uploads/2026/02/Frame.webp') no-repeat center/contain;
    margin: 20px 0 15px 25px;
}
/* Sub-menu items */
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-sub-icon {
    color: rgba(255,255,255,0.5) !important;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-sub-mega-menu {
    background: #1a1a2e !important;
}
.elementor-widget-wpr-mega-menu.rp-mobile-menu-active .wpr-mobile-sub-menu-item {
    color: rgba(255,255,255,0.7) !important;
    background: transparent !important;
}

/* Normalize header spacing across full-width and regular pages */
.elementor-template-full-width .elementor-location-header .e-con-inner,
.elementor-template-full-width .elementor-location-header > .e-con > .e-con-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Fix filter button: translate text and add spacing for Arabic */
html[dir="rtl"] .g5ere__sf-advanced-button a.btn::before {
    content: "تصفية" !important;
}
html[dir="rtl"] .g5ere__sf-advanced-button a.btn::after {
    margin-left: 8px !important;
}
html[dir="rtl"] .home-txt .g5ere__sf-advanced-button a.btn::before {
    content: "تصفية" !important;
    padding-left: 8px !important;
}

/* Push the CTA button and phone to the far left in RTL header */
html[dir="rtl"] .elementor-element-7a80584,
html[dir="rtl"] .elementor-element-9551683,
html[dir="rtl"] .elementor-element-e9fd514 {
    margin-inline-start: auto;
}



/* Inline select styling for Elementor forms */
.elementor-field-type-select .elementor-field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 12px;
    padding-left: 30px !important;
}
html[dir="rtl"] .elementor-field-type-select .elementor-field {
    background-position: left 10px center;
    padding-left: 30px !important;
    padding-right: 10px !important;
}
body:not(.rtl) .elementor-field-type-select .elementor-field {
    background-position: right 10px center;
    padding-right: 30px !important;
}

