/*
 Theme Name:   Homez Child
 Theme URI:    https://themeforest.net/item/homez-real-estate-wordpress-theme/44173800
 Description:  Homez Child Theme
 Author:       ApusTheme
 Author URI:   http://apusthemes.com
 Template:     homez
 Version:      1.0.0
 Text Domain:  homez-child
*/

/* ============================================
   Compact property sidebar: Contact block
   (avatar, agent text and trigger button reduced)
============================================ */
.widget_apus_property_contact_form .widget-title,
.widget_apus_property_contact_form .widget-title span {
    font-size: 15px;
    margin-bottom: 10px;
}
.widget_apus_property_contact_form .agent-content-wrapper .agent-thumbnail {
    width: 46px;
    height: 46px;
}
.widget_apus_property_contact_form .agent-content-wrapper .agent-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.widget_apus_property_contact_form .agent-content-wrapper .agent-content {
    padding-left: 12px;
    font-size: 12px;
    line-height: 1.5;
}
.widget_apus_property_contact_form .agent-content h3 {
    font-size: 14px;
    margin: 0 0 2px;
}
.widget_apus_property_contact_form .agent-content .email,
.widget_apus_property_contact_form .agent-content .phone {
    font-size: 12px;
}
.widget_apus_property_contact_form .contact-form-agent .agent-content-wrapper {
    margin-bottom: 14px;
}
.widget_apus_property_contact_form .contact-form-agent .btn {
    padding: 9px 14px;
    font-size: 12px;
}

/* ============================================
   Property sidebar: enquiry form heading a little bigger
   (theme default was 1rem / 16px)
============================================ */
.ccb-sidebar-enquiry-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: capitalize;
    margin: 0 0 14px;
}

/* ============================================
   Compare sidebar (slide-in panel on /properties/)
   Theme z-index 5 put it under the header (z 99).
============================================ */
#compare-sidebar {
    z-index: 100000;
}
@media (max-width: 767px) {
    #compare-sidebar {
        padding: 24px 16px 80px;
    }
}

/* ============================================
   Compare page (/compare/) table
   Equal property columns, fixed label column,
   images fill their column. Template override:
   template-properties/misc/property-compare.php
============================================ */
.wrapper-compare {
    -webkit-overflow-scrolling: touch;
}
.compare-tables {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}
.compare-tables th.compare-label,
.compare-tables td.compare-label {
    width: 200px;
    min-width: 0 !important;
}
.compare-tables thead th,
.compare-tables tbody td {
    max-width: none;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.compare-tables tbody td {
    border-width: 1px 0 0;
    line-height: 1.6;
}
.compare-tables tbody tr:last-child td {
    border-bottom-width: 1px;
}
.compare-tables tbody td:first-child {
    text-align: left;
}
.compare-tables .compare-top th {
    vertical-align: middle;
}
.compare-tables .thumb {
    width: 100%;
    border-radius: 8px;
}
.compare-tables .thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.compare-tables .property-price {
    margin-bottom: 4px;
}
.compare-tables .compare-empty {
    color: #B5B5B5;
}
.compare-tables .property-public-facilities > .clearfix {
    margin: 0;
}
.compare-tables .property-public-facilities .property-public-facility-wrapper {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0 0 6px;
}
.compare-tables .property-public-facility {
    justify-content: space-between;
    gap: 10px;
}
.compare-tables .property-public-facility .property-public-facility-title {
    min-width: 0;
    font-weight: 500;
}

@media (max-width: 767px) {
    /* labels stay visible while the property columns scroll sideways */
    .compare-tables th.compare-label,
    .compare-tables td.compare-label {
        width: 105px;
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
        box-shadow: 1px 0 0 #E9E9E9;
    }
    .compare-tables .compare-top th.compare-label {
        background: #F7F7F7;
    }
    .compare-tables th:not(.compare-label) {
        width: 175px;
    }
    .compare-tables thead th,
    .compare-tables tbody td {
        padding: 10px;
        font-size: 13px;
    }
    .compare-tables tbody td:first-child {
        font-size: 13px;
    }
    .compare-tables .property-title,
    .compare-tables .property-price {
        font-size: 14px;
    }
    .compare-tables .property-address {
        font-size: 12px;
        line-height: 1.5;
    }
    .compare-tables .thumb {
        margin-bottom: 10px;
    }
    .compare-tables .thumb .btn-remove-property-compare {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }
    .compare-tables .property-public-facility {
        flex-direction: column;
        gap: 0;
    }
}
.print-detail .print-logo img {
    width: auto;
    height: auto;
    max-height: 60px;
    max-width: 100%;
}
