/*
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
-------------------------------------- */

/* Let breadcrumb links (and the page-title header generally) take priority
   over the full-banner lightbox-trigger overlay that sits on top of them */
.property-banner .breadcrumb-wrap,
.property-banner .breadcrumb-wrap a,
.property-banner .page-title-wrap {
    position: relative;
    z-index: 5;
}

.property-banner .property-banner-trigger {
    z-index: 1;
}

/* =========================================================================
   Pre-Con Builder Cards — styling for [builders_in_city] shortcode output
   -------------------------------------------------------------------------
   Add this to your child theme's style.css (or your site's custom CSS
   area / Additional CSS in Elementor). Designed to feel consistent with
   a typical Houzez-style property card: image on top, rounded corners,
   subtle shadow, gentle hover lift.

   Uses a CSS custom property (--builder-cards-columns) set inline by the
   shortcode's "columns" attribute, so column count is controllable per
   shortcode instance without editing this file.
   ========================================================================= */

.builder-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--builder-cards-columns, 3), 1fr);
    gap: 24px;
    margin: 24px 0;
}

/* Responsive breakpoints — override the shortcode's column count on
   smaller screens regardless of what "columns" was set to, so cards
   never get uncomfortably cramped on tablet/mobile. */
@media (max-width: 992px) {
    .builder-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .builder-cards-grid {
        grid-template-columns: 1fr;
    }
}

.builder-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Only apply the hover lift to actual links — a static (unlinked) card
   shouldn't visually suggest it's clickable. */
a.builder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.builder-card-static {
    cursor: default;
}

.builder-card-image-wrap {
    position: relative;
    width: 100%;
    /* This padding-top percentage controls the image area's height,
       relative to the card's width (the standard CSS "aspect ratio box"
       trick). Lower percentage = shorter image area. Common reference
       points: 56.25% = 16:9 (video-like, taller), 42% = ~21:9 (wide,
       shorter — current setting), 33% = 3:1 (very short banner strip).
       Adjust this single number to taste. */
    padding-top: 42%;
    background: #eef1f4; /* neutral placeholder background when no image is set */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.builder-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* "contain" (not "cover") suits logos — avoids
                             cropping a builder's logo awkwardly the way
                             a photographic property image can tolerate */
    object-position: center center; /* ensures the logo sits centered
                             within its box both horizontally and
                             vertically, regardless of the logo's own
                             aspect ratio (wide vs. tall vs. square) */
    padding: 12px;
    box-sizing: border-box;
}

.builder-card-body {
    padding: 16px 18px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.builder-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1B4F91; /* matches the Serik Realty brand blue */
    line-height: 1.3;
}

a.builder-card:hover .builder-card-name {
    color: #ED1C24; /* brand red on hover, matching the logo's accent color */
}