/*
Theme Name: Houzez Child
Theme URI: http://www.favethemes.com/
Author: Favethemes
Author URI: http://www.favethemes.com/
Description: Houzez is a premium WordPress theme for real estate agents where modern aesthetics are combined with tasteful simplicity, and where the ease of use is achieved without compromise in your ability to customise the design. Whether you are a real estate agent looking to build a website for your company or a web developer seeking a perfect WordPress theme for your next project, you are certain to appreciate the numerous features and benefits that our theme provides.
Version: 1.0
Tags: white, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, post-formats, theme-options, translation-ready
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: houzez
Template: houzez
*/


@import url("../houzez/style.css");

/* Your CSS code goes here
-------------------------------------- */

/* =========================
   News section
========================= */

.news-section {
    background: #fff8ef;
    padding: 60px 0;
}

/* =========================
   Listing grid
========================= */

.news-listing .jet-listing-grid__items {
    align-items: stretch !important;
    row-gap: 24px !important;
}

.news-listing .jet-listing-grid__item {
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
}

/* تأكيد تمدد محتوى الـ Listing بالكامل */

.news-listing .jet-listing-grid__item > .elementor,
.news-listing .jet-listing-grid__item > .elementor > .elementor-element,
.news-listing .jet-listing-grid__item > .elementor > .elementor-element > .e-con-inner {
    width: 100%;
    height: 100%;
}

/* =========================
   Main card
========================= */

.news-card {
    position: relative;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;

    gap: 0 !important;

    width: 100%;
    height: 100% !important;
    min-height: 0 !important;

    padding: 24px;

    background: #fff;
    border-radius: 26px;
    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.07);
}

/* إلغاء أي ارتفاعات داخلية غير مطلوبة */

.news-card.e-con {
    min-height: 0 !important;
}

.news-card > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;

    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
}

/* =========================
   Image wrapper
========================= */

.news-card-image {
    position: relative !important;

    flex: 0 0 auto;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 0 28px !important;

    overflow: visible !important;
}

/* Dynamic Image wrappers */

.news-card-thumbnail,
.news-card-thumbnail .elementor-widget-container,
.news-card-thumbnail .jet-listing-dynamic-image,
.news-card-thumbnail .jet-listing-dynamic-image__link,
.news-card-thumbnail picture {
    display: block;

    width: 100%;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Image container */

.news-card-thumbnail {
    overflow: hidden;
    border-radius: 15px;
}

/* Actual image */

.news-card-thumbnail img,
.news-card-thumbnail .jet-listing-dynamic-image__img {
    display: block;

    width: 100% !important;
    height: auto !important;

    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center !important;

    border-radius: 15px;

    transition: transform 0.5s ease;
}

.news-card:hover .news-card-thumbnail img,
.news-card:hover .news-card-thumbnail .jet-listing-dynamic-image__img {
    transform: scale(1.04);
}

/* =========================
   Date badge
========================= */

.news-date-badge {
    position: absolute !important;

    left: 16px !important;
    right: auto !important;
    bottom: -24px !important;
    top: auto !important;

    z-index: 20;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: 48px !important;
    min-width: 48px !important;
    min-height: 64px !important;

    padding: 8px 7px !important;

    background: #fff;
    border-radius: 12px;

    text-align: center;

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

/* إزالة مسافات Elementor داخل التاريخ */

.news-date-badge .elementor-widget,
.news-date-badge .elementor-widget-container,
.news-date-badge .jet-listing-dynamic-field,
.news-date-badge .jet-listing-dynamic-field__content {
    width: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Month */

.news-date-month {
    display: block;

    margin: 0 !important;

    color: #565656;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;

    text-align: center;
}

/* Day */

.news-date-day {
    display: block;

    margin: 6px 0 0 !important;

    color: #111;

    font-size: 17px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
}

/* =========================
   Category
========================= */

.news-category {
    flex: 0 0 auto;

    width: 100%;

    margin: 0 0 13px !important;

    text-align: right;
}

.news-category .elementor-widget-container,
.news-category .jet-listing-dynamic-terms {
    margin: 0 !important;
    padding: 0 !important;
}

.news-category a,
.news-category .jet-listing-dynamic-terms__link {
    color: #72533d;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    text-decoration: none;
}

/* =========================
   Title
========================= */

.news-title {
    flex: 0 0 auto;

    width: 100%;

    /*
     * مساحة ثابتة تساوي سطرين.
     * بذلك العنوان القصير والطويل يأخذان نفس الارتفاع.
     */
    min-height: calc(2 * 1.55em) !important;

    margin: 0 0 17px !important;

    color: #111;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.55;

    text-align: right;
}

.news-title .elementor-widget-container,
.news-title .jet-listing-dynamic-field {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
}

.news-title .jet-listing-dynamic-field__content,
.news-title a {
    display: -webkit-box !important;

    width: 100%;
    min-height: calc(2 * 1.55em);

    overflow: hidden;

    color: #111;

    line-height: 1.55;

    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* =========================
   Read more
========================= */

.news-read-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    flex: 0 0 auto;

    width: fit-content !important;
    min-height: 0 !important;

    /*
     * يدفع الزر لأسفل الكارت،
     * وبالتالي يكون في نفس المستوى في كل الكروت.
     */
    margin-top: auto !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;

    color: #8b542f !important;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none !important;
}

.news-read-more .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

.news-read-more .jet-listing-dynamic-link__link {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;

    color: #8b542f !important;

    text-decoration: none !important;
}

/* السهم */

.news-read-more .jet-listing-dynamic-link__link::before {
    content: "↖";

    display: inline-block;

    font-size: 18px;
    line-height: 1;
}

.news-read-more .jet-listing-dynamic-link__icon {
    display: none !important;
}

/* =========================
   Tablet
========================= */

@media (max-width: 1024px) {
    .news-card {
        padding: 20px;
        border-radius: 22px;
    }

    .news-title {
        min-height: calc(2 * 1.55em) !important;
        font-size: 16px;
    }

    .news-title .jet-listing-dynamic-field__content,
    .news-title a {
        min-height: calc(2 * 1.55em);
    }
}

/* =========================
   Mobile
========================= */

@media (max-width: 767px) {
    .news-section {
        padding: 45px 0;
    }

    .news-listing .jet-listing-grid__items {
        row-gap: 20px !important;
    }

    .news-card {
        padding: 17px;
        border-radius: 20px;
    }

    .news-card-image {
        margin-bottom: 27px !important;
    }

    .news-date-badge {
        left: 13px !important;
        bottom: -22px !important;

        width: 48px !important;
        min-width: 48px !important;
        min-height: 60px !important;
    }

    .news-title {
        min-height: calc(2 * 1.55em) !important;

        margin-bottom: 15px !important;

        font-size: 16px;
        line-height: 1.55;
    }

    .news-title .jet-listing-dynamic-field__content,
    .news-title a {
        min-height: calc(2 * 1.55em);
    }
}
/* =====================================
   Houzez Footer - 3 Equal Columns
   RTL + Right Aligned
===================================== */

.footer-wrap-v1 .footer-top-wrap {
    background-color: #7d5d48;
    padding: 65px 0 55px;
    direction: rtl;
}

/* عرض الفوتر */
.footer-wrap-v1 .footer-top-wrap > .container {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 25px;
    padding-left: 25px;
}

/* 3 أعمدة متساوية */
.footer-wrap-v1 .footer-top-wrap .row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 70px;
    align-items: start;
    direction: rtl;
    margin: 0 !important;
}

/* إلغاء مقاسات Bootstrap القديمة */
.footer-wrap-v1 .footer-top-wrap .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* جميع Widgets */
.footer-wrap-v1 .footer-top-wrap .footer-widget {
    width: 100%;
    margin: 0 0 16px !important;
    padding: 0 !important;
    text-align: right !important;
}

/* آخر Widget بدون مسافة */
.footer-wrap-v1 .footer-top-wrap .footer-widget:last-child {
    margin-bottom: 0 !important;
}

/* جميع النصوص */
.footer-wrap-v1 .footer-top-wrap,
.footer-wrap-v1 .footer-top-wrap p,
.footer-wrap-v1 .footer-top-wrap a,
.footer-wrap-v1 .footer-top-wrap span,
.footer-wrap-v1 .footer-top-wrap li {
    color: #ffffff;
}

/* العناوين */
.footer-wrap-v1 .footer-top-wrap .widget-title {
    margin: 0 0 28px !important;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right !important;
}

/* =====================================
   Logo Column
===================================== */

.footer-wrap-v1 .footer-top-wrap .col-lg-3:first-child {
    align-items: flex-start !important;
    text-align: right !important;
}

/* اللوجو */
.footer-wrap-v1 .widget_media_image {
    text-align: right !important;
}

.footer-wrap-v1 .widget_media_image figure {
    margin: 0 0 18px auto !important;
    text-align: right !important;
}

.footer-wrap-v1 .widget_media_image img {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* عنوان الشركة */
.footer-wrap-v1 #block-8 p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
    text-align: right !important;
}

/* وصف الشركة */
.footer-wrap-v1 #block-9 p {
    max-width: 340px;
    margin: 0 !important;
    font-size: 15px;
    line-height: 2;
    text-align: right !important;
}

/* =====================================
   Quick Links
===================================== */

.footer-wrap-v1 .widget_nav_menu {
    text-align: right !important;
}

.footer-wrap-v1 .widget_nav_menu ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
}

.footer-wrap-v1 .widget_nav_menu ul li {
    margin: 0 0 16px;
    padding: 0;
    text-align: right !important;
}

.footer-wrap-v1 .widget_nav_menu ul li:last-child {
    margin-bottom: 0;
}

.footer-wrap-v1 .widget_nav_menu ul li a {
    display: inline-block;
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none;
    text-align: right !important;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.footer-wrap-v1 .widget_nav_menu ul li a:hover {
    opacity: 0.75;
    transform: translateX(-4px);
}

/* =====================================
   Contact Column
===================================== */

.footer-wrap-v1 .widget-contact-us {
    text-align: right !important;
}

.footer-wrap-v1 .widget-contact-us .widget-body,
.footer-wrap-v1 .widget-contact-us .widget-content {
    width: 100%;
    text-align: right !important;
}

.footer-wrap-v1 .widget-contact-us .contact-list {
    width: 100%;
    align-items: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 17px !important;
    text-align: right !important;
}

.footer-wrap-v1 .widget-contact-us .contact-list li {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start !important;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 8px;
    line-height: 1.7;
    text-align: right !important;
}

/* أيقونات التواصل */
.footer-wrap-v1 .widget-contact-us .contact-list li i {
    margin: 0 !important;
    flex-shrink: 0;
    order: 0;
}

/* النص بعد الأيقونة */
.footer-wrap-v1 .widget-contact-us .contact-list li span,
.footer-wrap-v1 .widget-contact-us .contact-list li a {
    text-align: right !important;
}

/* الإيميل */
.footer-wrap-v1 .widget-contact-us .contact-list a {
    word-break: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
}

/* =====================================
   Footer Bottom
===================================== */

.footer-wrap-v1 .footer-bottom-wrap {
    background-color: #7d5d48;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* عرض الجزء السفلي */
.footer-wrap-v1 .footer-bottom-wrap > .container {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 25px;
    padding-left: 25px;
}

/* ترتيب الجزء السفلي */
.footer-wrap-v1 .footer-bottom-wrap .d-flex {
    width: 100%;
    gap: 25px;
    direction: rtl;
}

/* الحقوق */
.footer-wrap-v1 .footer-copyright {
    text-align: right;
}

.footer-wrap-v1 .footer-copyright p {
    margin: 0;
    color: #ffffff;
}

/* إخفاء مساحة اللوجو الفارغة في الأسفل */
.footer-wrap-v1 .footer-bottom-wrap .footer-logo:empty {
    display: none !important;
}

/* السوشيال */
.footer-wrap-v1 .footer-social ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.footer-wrap-v1 .footer-social li {
    margin-right: 0 !important;
    margin-left: 14px !important;
}

.footer-wrap-v1 .footer-social li:last-child {
    margin-left: 0 !important;
}

.footer-wrap-v1 .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.footer-wrap-v1 .footer-social a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.footer-wrap-v1 .footer-social a i {
    margin: 0 !important;
}

/* =====================================
   Tablet
===================================== */

@media (max-width: 991px) {

    .footer-wrap-v1 .footer-top-wrap {
        padding: 55px 0 45px;
    }

    .footer-wrap-v1 .footer-top-wrap .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 40px;
    }

    /* عمود الاتصال بعرض كامل */
    .footer-wrap-v1 .footer-top-wrap .row > div:last-child {
        grid-column: 1 / -1;
    }
}

/* =====================================
   Mobile
===================================== */

@media (max-width: 767px) {

    .footer-wrap-v1 .footer-top-wrap {
        padding: 45px 0 35px;
    }

    .footer-wrap-v1 .footer-top-wrap > .container,
    .footer-wrap-v1 .footer-bottom-wrap > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .footer-wrap-v1 .footer-top-wrap .row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-wrap-v1 .footer-top-wrap .row > div:last-child {
        grid-column: auto;
    }

    .footer-wrap-v1 .footer-top-wrap .widget-title {
        margin-bottom: 20px !important;
        font-size: 20px;
    }

    .footer-wrap-v1 #block-9 p {
        max-width: 100%;
    }

    /* الجزء السفلي */
    .footer-wrap-v1 .footer-bottom-wrap .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 18px;
    }

    .footer-wrap-v1 .footer-copyright {
        order: 2;
        width: 100%;
        text-align: right;
        margin: 0 !important;
    }

    .footer-wrap-v1 .footer-social {
        order: 1;
        width: 100%;
    }

    .footer-wrap-v1 .footer-social ul {
        justify-content: flex-start;
    }
}
/* منع نص الحقوق من النزول على سطرين */
.footer-wrap-v1 .footer-copyright {
    width: auto !important;
    min-width: max-content;
    flex-shrink: 0;
}

.footer-wrap-v1 .footer-copyright p {
    margin: 0 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
.footer-wrap-v1 .footer-bottom-wrap .d-flex {
    flex-wrap: nowrap !important;
}

.footer-wrap-v1 .footer-social {
    flex: 1;
}
@media (max-width: 767px) {

    .footer-wrap-v1 .footer-bottom-wrap .d-flex {
        flex-wrap: wrap !important;
    }

    .footer-wrap-v1 .footer-copyright {
        width: 100% !important;
        min-width: 0;
    }
}
/* =====================================
   Center Desktop Main Menu Only
===================================== */

@media (min-width: 992px) {

    .header-v4 .navbar {
        position: relative;
    }

    .header-v4 .main-nav {
        position: absolute;
        top: 0;
        right: 50%;
        transform: translateX(50%);
        width: auto !important;
        height: 100%;
        flex-grow: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-v4 .main-nav .navbar-nav {
        width: max-content;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}
