/*!
Theme Name: Divi - Child
Version: 1.0
Author: Hari Om Web
Author URI: https://www.hariomweb.org
Description: For any kind of support with Web Design, Development, Mobile App Designs, E-Commerce, please contact us at support@hariomweb.org
Template: Divi
*/

/* =========================================================
   CUSTOM LISTS
   ========================================================= */
.CustomList {
    display: flex;
    flex-wrap: wrap;
    padding: 0px !important;
}

.CustomList .list-item {
    width: 50%;
    text-align: left;
    list-style-type: none;
}

.list-item strong, .list-item {
    font-size: 15px;
    line-height: 2em;
}

.ModuleItemRow:not(:last-child) {
    margin-bottom: 30px;
}

/* =========================================================
   ACF MAP
   ========================================================= */
.acf-map {
    width: 100%;
    height: 400px;
    border: #ccc solid 1px;
    margin: 20px 0;
}

.acf-map > img {
    max-width: inherit !important;
}

/* =========================================================
   PROPERTY IMAGES GALLERY
   ========================================================= */
.PropertyImages .et_pb_gallery_items .et_pb_gallery_item {
    margin: 0px 2px !important;
}

.PropertyImages .et_pb_gallery_items {
    display: flex;
    text-align: center;
}

/* =========================================================
   PROPERTY SEARCH BOX
   ========================================================= */
#PropertySearch {
    width: 80%;
    background-color: #fff;
    padding: 16px 20px !important;
    margin: -50px auto auto auto;
    box-shadow: 0 5px 10px rgb(0 0 0 / 50%);
    position: relative;
}

.property-search-box, .et_pb_column.selectbox select {
    overflow: hidden;
    border-radius: 0;
    background-color: #fff !important;
    color: #0B0D0E !important;
    font-size: 15px;
    padding: 10px !important;
    line-height: 1.6;
    border-color: #e8e9eb !important;
    height: 46px;
    width: 100%;
}

#PropertySearch .et_pb_row {
    width: 100%;
}

#PropertySearch .et_pb_column {
    margin-right: 10px !important;
}

/* =========================================================
   SEARCH TABS
   ========================================================= */
ul#pills-tab {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

#pills-tab button {
    border: 1px solid;
    border-color: #eaeaea;
    border-radius: 2px;
    background-color: transparent;
    margin-right: 5px;
    color: #0B0D0E;
    border-width: 1px;
    transition: all ease-in-out 1s;
    outline: none !important;
    letter-spacing: .4px;
    padding: 10px 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

#pills-tab button span {
    position: relative;
    z-index: 2;
}

#pills-tab button:after {
    content: "";
    position: absolute;
    height: 0%;
    left: 50%;
    top: 50%;
    width: 150%;
    background: #05C8E0;
    transform: translateX(-50%) translateY(-50%) rotate(25deg);
    transition: all 0.75s ease 0s;
}

#pills-tab button:hover {
    color: #fff;
}

#pills-tab button:hover::after,
#pills-tab button.active:hover::after {
    height: 450%;
}

/* =========================================================
   LOADER
   ========================================================= */
.loader:before {
    content: "";
    position: absolute;
    background: url(/wp-content/themes/Divi-Child/loader.svg) no-repeat center rgb(0 0 0 / 60%);
    width: 100%;
    height: 100%;
    display: block;
    z-index: 9;
}

/* =========================================================
   TOTAL PROPERTIES COUNTER
   ========================================================= */
#TotalProperties {
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding: 0px 10px;
    position: absolute;
    top: 6%;
    background: #00000080;
    z-index: 999;
    color: #fff;
    left: 0;
}

/* =========================================================
   MAP MARKERS
   ========================================================= */
.MarkerTitle {
    font-size: 15px;
    text-align: center;
}

.MarkerAddress {
    font-size: 10px;
    text-align: center;
}

/* =========================================================
   BLURB MODULE - IMAGE POSITIONING FIXES
   Fix for animation classes causing negative margins
   ========================================================= */
img.et_pb_animation_top,
img.et_pb_animation_top_tablet,
img.et_pb_animation_top_phone {
    margin: 0 auto !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
}

.et_pb_blurb .et_pb_main_blurb_image {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

.et_pb_blurb .et_pb_main_blurb_image img {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Fix margin offset in blurb links at desktop sizes */
@media (min-width: 981px) {
    .et_pb_blurb a {
        margin: 0 !important;
    }
}

/* Add spacing between project cards ONLY - NOT site-wide */
#RelatedProperties .et_pb_column,
#PropertiesGrid .et_pb_column {
    padding: 10px !important;
}

/* Remove all spacing from blurb modules */
.et_pb_module.et_pb_blurb {
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 20px !important;
}

.et_pb_module.et_pb_blurb .et_pb_blurb_container {
    padding: 0 !important;
    margin: 0 !important;
}

.et_pb_module.et_pb_blurb .et_pb_blurb_content {
    padding: 15px !important;
    padding-top: 0 !important;
    margin: 0 !important;
}

/* Force the image container to have no negative margins */
.et_pb_module.et_pb_blurb .et_pb_main_blurb_image,
div.et_pb_main_blurb_image {
    margin: 0 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
}

.et_pb_module.et_pb_blurb .et_pb_main_blurb_image .et_pb_image_wrap,
span.et_pb_image_wrap {
    margin: 0 !important;
    padding: 0 !important;
}

/* Force the link wrapper to have no padding */
.et_pb_blurb a.et_pb_blurb_container {
    padding: 0 !important;
    display: block !important;
}

/* Target the specific animation classes on the image wrapper */
div.et_pb_main_blurb_image.et_pb_animation_top,
div.et_pb_main_blurb_image.et_pb_animation_top_tablet,
div.et_pb_main_blurb_image.et_pb_animation_top_phone {
    margin: 0 !important;
    margin-bottom: 10px !important;
}
/* =========================================================
   HEADER MENU PADDING FIX
   Override hardcoded padding on header menu
   ========================================================= */
.et_pb_menu_0_tb_header,
.et_pb_menu_1_tb_header {
    padding-top: 12px !important;
    padding-bottom: 20px !important;
}
/* =========================================================
   OUR APPROACH PAGE - RESPONSIVE STACKING FOR TILE CARDS
   ========================================================= */
@media (max-width: 980px) {
    /* Force the row containing tile cards to stack */
    .et_pb_row_6 {
        flex-direction: column !important;
        column-gap: 0 !important;
        row-gap: 0 !important;
    }
    
    /* Ensure columns take full width and stack */
    .et_pb_column_1_3.et_clickable {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 30px !important;
    }
    
    /* Remove hover arrow on mobile since touch devices don't hover well */
    .et_pb_column_1_3.et_clickable::before {
        display: none;
    }
    
    /* Adjust box shadow for mobile */
    .et_pb_column_1_3.et_clickable:hover {
        box-shadow: none;
    }
}

@media (max-width: 767px) {
    /* Additional phone adjustments */
    .et_pb_column_1_3.et_clickable {
        margin-bottom: 25px !important;
    }
}

/* =========================================================
   GENERAL RESPONSIVE FIXES
   ========================================================= */
@media (max-width: 980px) {
    /* Ensure sections don't constrain content */
    .et_pb_section {
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    /* Ensure rows can stack properly */
    .et_pb_row {
        flex-wrap: wrap !important;
    }
}
/* =========================================================
   FIX SAFARI TEXT CLIPPING IN OUR APPROACH/RESULTS BOXES
   ========================================================= */
.et_pb_column_1_2 .et_pb_module.et_pb_text {
    overflow: visible !important;
    line-height: 1.5 !important;
}

.et_pb_column_1_2 .et_pb_module.et_pb_text .et_pb_text_inner {
    padding-bottom: 5px !important;
    overflow: visible !important;
}

/* Specific fix for text modules in colored overlay sections */
.et_pb_column_1_2 .et_pb_text_inner p,
.et_pb_column_1_2 .et_pb_text_inner h1,
.et_pb_column_1_2 .et_pb_text_inner h2,
.et_pb_column_1_2 .et_pb_text_inner h3 {
    line-height: 1.4 !important;
    padding-bottom: 3px !important;
    overflow: visible !important;
}

/* Fix for buttons in these sections */
.et_pb_column_1_2 .et_pb_button_module_wrapper {
    padding-bottom: 10px !important;
    overflow: visible !important;
}
/* =========================================================
   CENTER ALIGN TEAM MEMBER IMAGES
   ========================================================= */
/* Center the team member module itself */
.et_pb_team_member {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center the image container */
.et_pb_team_member_image {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: block !important;
    float: none !important;
}

/* Center the actual image */
.et_pb_team_member_image img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Ensure the column is centered on mobile */
@media (max-width: 980px) {
    .et_pb_team_member {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 400px !important;
    }
    
    .et_pb_team_member_image {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* For very small screens */
@media (max-width: 600px) {
    .et_pb_team_member_image {
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}