/*!
Theme Name: Hello Elementor Child
Theme URI: https://crocoblock.com/
Author: Crocoblock
Author URI: https://crocoblock.com/
Description: Child theme for Hello Elementor with all CrocoBlock features compatibility.
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/
/*
 * CSH single-listing gallery image sizing.
 * Scoped to the CrocoBuilder single template so listing cards are unaffected.
 */
.cb-csh_listing_single_media {
        overflow: hidden;
}

.cb-csh_listing_single_media > .cb-csh_listing_single_image {
        display: block;
        width: 100% !important;
        height: 100% !important;
        max-width: none;
        object-fit: cover;
}


/* CSH launch housekeeping 20261016 */
header a[href$="/guides/"],
header a[href$="/guides"] {
        display: none !important;
}

.csh-launch-footer {
        margin-top: 48px;
        padding: 24px;
        border-top: 1px solid #e5e7eb;
        background: #fff;
        color: #000;
}

.csh-launch-footer__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        width: min(1200px, 100%);
        margin: 0 auto;
}

.csh-launch-footer p {
        margin: 0;
        font-size: 14px;
}

.csh-launch-footer nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 20px;
}

.csh-launch-footer a {
        color: inherit;
        font-size: 14px;
        text-decoration: underline;
        text-underline-offset: 3px;
}

@media (max-width: 767px) {
        .csh-launch-footer__inner {
                align-items: flex-start;
                flex-direction: column;
        }
}


/*
 * CSH MVP homepage cleanup 20261016.
 * Hide the duplicate WordPress title and unfinished location-image section.
 */
.home .page-header {
        display: none !important;
}

.home .cb-csh_home_locations_section {
        display: none !important;
}

/*
 * CSH launch header refinement.
 * Enlarges the high-resolution horizontal logo and removes the redundant
 * homepage strapline while retaining the main search question.
 */
.home .cb-csh_home_hero_heading {
        display: none !important;
}

.cb-csh_public_header_logo_link {
        display: inline-flex !important;
        align-items: center;
        width: 220px !important;
        max-width: 45vw;
}

.cb-csh_public_header_logo {
        display: block;
        width: 220px !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain;
}

@media (max-width: 767px) {
        .cb-csh_public_header_logo_link,
        .cb-csh_public_header_logo {
                width: 170px !important;
        }
}

/*
 * CSH mobile launch usability corrections.
 */

/* Key facts use Yes rather than repeating Pool and Parking. */
.cb-csh_listing_single_pool > strong,
.cb-csh_listing_single_parking > strong {
        font-size: 0 !important;
}

.cb-csh_listing_single_pool > strong::after,
.cb-csh_listing_single_parking > strong::after {
        content: "Yes";
        font-size: 16px;
}

/* Explicit completion control inside the location selector. */
.csh-home-location-search__panel-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;

        display: flex;
        justify-content: center;

        margin: 12px -12px -12px;
        padding: 12px;

        background: #fff;
        border-top: 1px solid var(--csh-colour-border-subtle, #e5e7eb);
}

.csh-home-location-search__done {
        width: 100%;
        min-height: 44px;
        padding: 10px 16px;

        border: 1px solid #000;
        border-radius: var(--csh-layout-control-radius, 8px);

        color: #fff;
        background: #000;

        font: inherit;
        font-weight: 600;
        cursor: pointer;
}

@media (max-width: 767px) {

        /*
         * Give the logo its own row, then keep Properties and account
         * controls clearly separated beneath it.
         */
        .cb-csh_public_header_inner {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) auto !important;
                align-items: center !important;
                gap: 12px 24px !important;
        }

        .cb-csh_public_header_logo_link {
                grid-column: 1 / -1;
                justify-self: center;
        }

        .cb-csh_public_header_navigation {
                grid-column: 1;
                justify-self: start;
                min-width: 0;
        }

        .cb-csh_public_header_account_actions {
                grid-column: 2;
                justify-self: end;
                min-width: 0;
        }

        .csh-header-account-actions {
                display: flex;
                flex-wrap: wrap;
                justify-content: flex-end;
                gap: 8px 14px;
        }

        /*
         * Prevent the long area prompt from overflowing its trigger.
         */
        .csh-home-location-search,
        .csh-home-location-search__inner,
        .csh-home-location-search__controls,
        .csh-home-location-search .csh-tax-control {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                box-sizing: border-box;
        }

        .csh-home-location-search__controls {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) !important;
                gap: 12px !important;
        }

        .csh-home-location-search .csh-tax-control__trigger {
                display: flex !important;
                align-items: center;
                justify-content: space-between;
                gap: 10px;

                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;

                white-space: normal !important;
                text-align: left;
                box-sizing: border-box;
        }

        .csh-home-location-search
        .csh-tax-control__trigger-text {
                display: block;
                flex: 1 1 auto;
                min-width: 0;

                overflow-wrap: anywhere;
                word-break: normal;
                white-space: normal !important;
        }

        /*
         * Keep the chooser usable without occupying the entire screen.
         * The sticky Done button remains visible at its lower edge.
         */
        .csh-home-location-search .csh-tax-control__panel {
                max-width: calc(100vw - 32px) !important;
                max-height: 58vh !important;
                overflow-y: auto !important;
                box-sizing: border-box;
        }

        /*
         * Tighten the transition between search and first listings.
         */
        .home .cb-csh_home_hero {
                margin-bottom: 0 !important;
                padding-bottom: 20px !important;
        }

        .home .cb-csh_home_new_listings_section {
                margin-top: 0 !important;
                padding-top: 20px !important;
        }
}
