/*
 Theme Name:   Houzez Child
 Theme URI:    https://test2.penangindustrial.com
 Description:  Child theme for the Houzez Real Estate theme.
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     houzez
 Version:      1.0.0
*/

/* Makes menu headers non-clickable across all languages */
/* --- Useful Info Headers --- */
#menu-item-17709 > a, /* English: Useful Info */
#menu-item-25746 > a, /* Malay: Maklumat Berguna */
#menu-item-25745 > a, /* Chinese: 有用信息 */

/* --- News & Articles Headers --- */
#menu-item-19732 > a, /* English: News & Articles */
#menu-item-22786 > a, /* Malay: Berita & Artikel */
#menu-item-22784 > a  /* Chinese: 新闻与文章 */
{
    cursor: default;
    pointer-events: none;
}
/* Constrain the footer logo and add spacing */
.footer-logo-spacing {
  margin-top: 20px;
  padding-left: 15px;
  padding-right: 15px;
}

/* Force the logo to fit within its container on ALL devices */
.footer-logo-spacing img {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

/* Center the WPML custom language switcher */
.announcement-language-switcher {
  width: 100%;
  text-align: center;
}

/* --- Make Price Text Visible ONLY on Mobile Property Cards --- */
@media (max-width: 768px) {
  .item-header .item-price,
  .item-header .item-price span.price,
  .item-header .item-sub-price {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  }
}

/*
 * Corrects alignment and width in the Houzez Agent Contact widget.
 *
 * 1. Overrides 'justify-content-between' on the list item to align content left.
 * 2. Overrides the theme's fixed 'width: 60px' on the hidden phone number
 * to prevent truncation.
*/

/* Fixes the overall alignment of each line item */
.agent-contacts-wrap .list-unstyled > li {
    justify-content: flex-start;
}

/* Specifically targets the phone number link to remove the fixed width */
.agent-contacts-wrap .agent-phone {
    width: auto !important; /* Force override of the theme's 60px width */
    white-space: nowrap; /* Prevent the number from wrapping to a new line */
}

/* Adds a consistent space between the label and the value */
.agent-contacts-wrap .list-unstyled > li > strong {
    margin-right: 8px;
}

/* =========================================
   MOBILE STICKY FOOTER BAR (Added Nov 2025)
   ========================================= */
@media only screen and (max-width: 767px) {
    .mobile-sticky-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background-color: #06408b !important;
        border-top: 1px solid #dddddd !important;
        box-shadow: 0px -2px 10px rgba(0,0,0,0.05);
    }
}
/* =======================================================
   PLP MOBILE-ONLY LAYOUTS (V12 - Correct 1-2-2 Structure)
   ======================================================= */

@media only screen and (max-width: 767px) {

    /* --- 1. TRIANGLE LAYOUT (1-Centered, 2-Below) --- */
    /* (Factory, Land, Services) */
    
    /* Set all columns to 50% width and float left */
    .elementor-section.mobile-triangle-grid .elementor-inner-section .elementor-column {
        width: 50% !important;
        float: left !important;
    }
    
    /* Center the 1st item */
    .elementor-section.mobile-triangle-grid .elementor-inner-section .elementor-column:nth-child(1) {
        margin-left: 25% !important;
        margin-right: 25% !important;
    }
    
    /* Start new row for 2nd item */
    .elementor-section.mobile-triangle-grid .elementor-inner-section .elementor-column:nth-child(2) {
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Reset margins for 3rd item */
    .elementor-section.mobile-triangle-grid .elementor-inner-section .elementor-column:nth-child(3) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* --- 2. PARKS LAYOUT (1-Centered, 2-Below, 2-Below) --- */
    
    .elementor-section.mobile-parks-grid .elementor-inner-section .elementor-column {
        width: 50% !important;
        float: left !important;
    }
    
    /* Center the 1st item */
    .elementor-section.mobile-parks-grid .elementor-inner-section .elementor-column:nth-child(1) {
        margin-left: 25% !important;
        margin-right: 25% !important;
    }
    
    /* Start new row for 2nd item */
    .elementor-section.mobile-parks-grid .elementor-inner-section .elementor-column:nth-child(2) {
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Reset margins for 3rd item */
    .elementor-section.mobile-parks-grid .elementor-inner-section .elementor-column:nth-child(3) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Start new row for 4th item */
    .elementor-section.mobile-parks-grid .elementor-inner-section .elementor-column:nth-child(4) {
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Reset margins for 5th item */
    .elementor-section.mobile-parks-grid .elementor-inner-section .elementor-column:nth-child(5) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* --- 3. LEADERS LAYOUT (Simple Side-by-Side) --- */
    
    .elementor-section.mobile-2col-grid .elementor-inner-section .elementor-column {
        width: 50% !important;
        float: left !important;
        margin: 0 !important; /* Reset all margins */
    }
}
/* =======================================================
   PLP MOBILE-ONLY LAYOUTS (V13 - Corrected 1-2-2 Logic)
   ======================================================= */

@media only screen and (max-width: 767px) {

    /* --- 5. STICKY FOOTER BUFFER --- */
    /* Adds space at the bottom of the page so the bar doesn't cover content */
    body {
        padding-bottom: 70px !important;
    }
    
    /* --- 1. TRIANGLE LAYOUT (1-Centered, 2-Below) --- */
    /* (Your other grid code... ) */

}
/* A-Park CTA Form White Text Override */
.dark-cta-section .wpforms-field-label, 
.dark-cta-section .wpforms-field-sublabel {
    color: #ffffff !important;
}

/* Force 100% Width and Center the Button Container */
.wp-block-buttons.pi-master-btn {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Color the Button Link PI Vivid Blue */
.wp-block-buttons.pi-master-btn .wp-block-button__link {
    background-color: #06408b !important;
    color: #ffffff !important;
}

/* PI 2.0 - Houzez listing gallery navigation */
.hz-item-gallery-js .listing-gallery-wrap .slick-arrow {
    background: #3D6FA8 !important;
    color: #FFFFFF !important;
    border: 1px solid #06408B !important;
}

.hz-item-gallery-js .listing-gallery-wrap .slick-arrow:hover,
.hz-item-gallery-js .listing-gallery-wrap .slick-arrow:focus {
    background: #06408B !important;
    color: #FFFFFF !important;
    border-color: #06408B !important;
}

.hz-item-gallery-js .listing-gallery-wrap .slick-arrow::before {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

/* PI 2.0 - Featured Listings sidebar carousel navigation */
.widget-featured-property-slider-wrap .slick-prev,
.widget-featured-property-slider-wrap .slick-next {
    font-size: 0 !important;
    line-height: 0 !important;
    background: #06408B !important;
    color: #FFFFFF !important;
    border: 1px solid #06408B !important;
}

.widget-featured-property-slider-wrap .slick-prev:hover,
.widget-featured-property-slider-wrap .slick-next:hover,
.widget-featured-property-slider-wrap .slick-prev:focus,
.widget-featured-property-slider-wrap .slick-next:focus {
    background: #032E63 !important;
    color: #FFFFFF !important;
    border-color: #032E63 !important;
}

.widget-featured-property-slider-wrap .slick-prev::before,
.widget-featured-property-slider-wrap .slick-next::before {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

.pi-resource-links .elementor-icon-list-item a {
    width: 100%;
    padding: 2px 6px;
    border-radius: 4px;
    color: #06408B;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pi-resource-links .elementor-icon-list-item a .elementor-icon-list-text {
    color: inherit;
}

.pi-resource-links .elementor-icon-list-item a:hover,
.pi-resource-links .elementor-icon-list-item a:focus-visible {
    background-color: #EAF2FB;
    color: #032E63;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.pi-resource-links .elementor-icon-list-item a:focus-visible {
    outline: 2px solid #06408B;
    outline-offset: 2px;
}