/*
	Theme Name: RealHomes
	Theme URI: http://themeforest.net/item/real-homes-wordpress-real-estate-theme/5373914
	Author: InspiryThemes
	Author URI: https://www.inspirythemes.com/
	Description: RealHomes is a handcrafted WordPress theme for real estate websites. It offers purpose-oriented design with all the essential features that a real estate website needs. RealHomes theme facilitates its users on both the front-end and admin-side, making property management a breeze.
    Requires at least: 6.0
    Tested up to: 6.9.1
    Requires PHP: 8.3
	Version: 4.5.0
	Text Domain: framework
    Domain Path: /languages
	License: GNU General Public License version 3.0
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Tags: custom-background, light, one-column, two-columns, three-columns, four-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready

	----------------------------------------------------------------------------------------------------------------*/

/* ==============================================================
   SMARTMOVE — MODERN MOBILE HEADER
   Applied on screens ≤ 1140px. Desktop view is untouched.
   ============================================================== */
@media (max-width: 1140px) {

    /* ── 1. FORCE BLUE on the header element and ALL sticky variants ── */
    .rh_header.sm_mobile_header,
    .rh_header.rh_temp_header_responsive_view,
    .rh_header.rh_temp_header_responsive_view.rh_header_advance,
    .rh_header.rh_temp_header_responsive_view.rh_header_responsive {
        background: #121ee4 !important;
        background-color: #121ee4 !important;
        border: none !important;
        box-shadow: 0 2px 20px rgba(18, 30, 228, 0.35) !important;
        padding: 0 !important;
        transition: background 0.3s ease !important;
    }

    /* Sticky bar variants → also blue */
    .rh_mod_sticky_header,
    .rh_mod_sticky_header.sticky_header_dark,
    .rh_mod_sticky_header.sticky_header_light,
    .rh_mod_sticky_header.sticky_header_custom,
    .rh-mobile-sticky-header,
    .rh-mobile-custom-sticky-header {
        background: #121ee4 !important;
        background-color: #121ee4 !important;
        border: none !important;
        box-shadow: 0 2px 20px rgba(18, 30, 228, 0.35) !important;
    }

    /* ── 2. TOP BAR: logo centred, hamburger right ── */
    .sm_top_bar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        width: 100% !important;
        min-height: 64px !important;
        padding: 10px 55px !important;
        box-sizing: border-box !important;
        background: #121ee4 !important;
    }

    /* Logo link */
    .sm_logo_link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Logo image */
    .sm_logo_img {
        display: block !important;
        max-height: 46px !important;
        height: auto !important;
        width: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* subtle drop shadow so white logo pops on blue */
        filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25)) !important;
    }

    /* ── 3. HAMBURGER — absolute right ── */
    .sm_hamburger_wrap,
    .sm_top_bar .rh_menu {
        position: absolute !important;
        right: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 50 !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hamburger lines → white */
    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        background-color: #ffffff !important;
    }

    /* Hamburger button hover */
    .hamburger:hover .hamburger-inner,
    .hamburger:hover .hamburger-inner::before,
    .hamburger:hover .hamburger-inner::after {
        background-color: rgba(255,255,255,0.75) !important;
    }

    /* ── 4. PHONE STRIP ── */
    .sm_phone_strip {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 9px 16px !important;
        box-sizing: border-box !important;
        background: rgba(0, 0, 0, 0.15) !important;
    }

    .sm_phone_strip .rh_menu__user_phone {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .sm_phone_strip .rh_menu__user_phone a.contact-number,
    .sm_phone_strip .contact-number {
        color: #ffffff !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        letter-spacing: 0.6px !important;
        text-decoration: none !important;
    }

    .sm_phone_strip .rh_menu__user_phone span {
        display: inline-flex !important;
        align-items: center !important;
        margin-right: 8px !important;
    }

    .sm_phone_strip .rh_menu__user_phone span svg,
    .sm_phone_strip .rh_menu__user_phone span img {
        fill: #ffffff !important;
        filter: brightness(0) invert(1) !important;
        width: 17px !important;
        height: 17px !important;
    }

    /* ── 5. STICKY header logo & text ── */
    .rh_mod_sticky_header .rh_sticky_header_logo,
    .rh_mod_sticky_header .rh_logo_wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .rh_mod_sticky_header .rh_sticky_header_logo img,
    .rh_mod_sticky_header .rh_sticky_header_logo a img,
    .rh_mod_sticky_header .rh_logo img {
        max-height: 40px !important;
        width: auto !important;
        display: block !important;
    }

    .rh_mod_sticky_header .rh_sticky_header_menu a,
    .rh_mod_sticky_header .rh_sticky_header_menu ul li a,
    .rh_mod_sticky_header .rh_menu__user_phone .contact-number {
        color: #ffffff !important;
    }

    .rh_mod_sticky_header .rh_menu__user_phone svg {
        fill: #ffffff !important;
    }

    /* ── 6. HIDE unused elements ── */
    .rh_menu__user_submit,
    .rh_user_menu_wrapper_responsive {
        display: none !important;
    }

    /* ── 7. SLIDE-OUT MENU (sidenav) — modern style ── */
    .rh_menu__responsive {
        background-color: #ffffff !important;
    }

    .rh_menu__responsive li a {
        color: #1a1a2e !important;
        font-weight: 500 !important;
        font-size: 15px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding: 14px 22px !important;
        transition: color 0.2s, background 0.2s !important;
    }

    .rh_menu__responsive li a:hover {
        color: #121ee4 !important;
        background: #f0f2ff !important;
        padding-left: 28px !important;
    }

    .rh_menu__responsive .rh_menu__indicator {
        color: #1a1a2e !important;
    }
}



/* --- Custom Calculator Sidebar Buttons & Modals --- */
.rh-sidebar-calculators {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rh-calc-btn {
    background-color: #121ee4;
    color: #fff !important;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rh-calc-btn i, .rh-calc-btn svg {
    margin-right: 15px;
    width: 18px;
    height: 18px;
}

.rh-calc-btn:hover {
    background-color: #0b14ab;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.rh-modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    overflow-y: auto;
}

.rh-modal-content {
    background-color: #fff;
    margin: 40px auto;
    padding: 35px;
    border-radius: 12px;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.sdc-modal-content {
    max-width: 800px;
    padding: 15px;
}

.rh-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.rh-modal-header h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #121ee4;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    font-size: 22px;
}

.rh-modal-field {
    margin-bottom: 18px;
}

.rh-modal-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.rh-modal-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: #fdfdfd;
}

.rh-calc-action-btn {
    background: #121ee4;
    color: white !important;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.rh-modal-results {
    margin-top: 30px;
    background: #f4f6f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #121ee4;
}

.res-item {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.res-item:last-child { margin-bottom: 0; }

.res-item strong {
    color: #121ee4;
    font-size: 18px;
}
/* --- End Custom Calculators --- */

/* Ensure modals are correctly positioned */
.rh-modal-overlay {
    display: none; /* jQuery will use display: flex via .css() in my script */
    position: fixed;
    z-index: 999999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

/* Sidebar Button Styling Improved */
.rh-sidebar-calculators {
    margin-top: 10px;
}
.rh-calc-btn {
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1) !important;
    letter-spacing: 0.5px;
    justify-content: center;
}
.rh-calc-btn i {
    font-style: normal;
}
