/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/**
 * SECTION: Directorist Map Listing Shortcode
 */

/**
 * SECTION: Search Bar
 */
.directorist-map-wrapper,
.directorist-map-columns-three .directorist-map-listing .directorist-listing,
.directorist-map-columns-three .directorist-map-listing .directorist-map,
.directorist-map-columns-three .directorist-ajax-search-result .directorist-listing,
.bdmv-columns-two .directorist-map-listing,
.directorist-map-columns-three .directorist-map-search {
    height: 100vh !important;
}

.directorist-map-wrapper .directorist-listing, .directorist-map-wrapper .directorist-ajax-search-result .directorist-listing {
    background-color: #fff;
    padding-bottom: 20vh;
}

.directorist-map-wrapper .directorist-map .directorist-container-fluid,
.directorist-map-wrapper .directorist-map .directorist-container-fluid .atbdp-body {
    height: 100% !important;
}

.directorist-map-wrapper .directorist-map-search {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto !important;
    display: block !important;
}

.directorist-map-wrapper .directorist-map-listing,
.directorist-map-wrapper .directorist-ajax-search-result {
    position: relative;
    top: 240px;
}

.directorist-map-wrapper .directorist-map-search #directorist-search-area-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    gap: 15px;
}

#directorist-search-area-form > .directorist-basic-search-fields-each:first-child,
#directorist-search-area-form > .directorist-basic-search-fields-each:nth-child(3),
#directorist-search-area-form .directorist-search-field-pricing,
#directorist-search-area-form .directorist-search-field-review {
    display: none;
}

/* #directorist-search-area-form > .directorist-basic-search-fields-each:first-child, */
#directorist-search-area-form > .directorist-basic-search-fields-each:nth-child(2) {
    /* width: 38%; */
    width: 75%;
}

.directorist-map-wrapper .directorist-map-search .directorist-search-field__label {
    color: #001c33;
    z-index: 10;
    margin-left: 18px;
    font-family: "Graphik", sans-serif;
}

#directorist-search-area-form input.directorist-search-field__input {
    border: none;
    background-color: #fff;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    padding: 10px 18px;
    height: 50px;
    font-family: "Graphik", sans-serif;
}

.directorist-map-wrapper .directorist-map-search .directorist-search-field.directorist-icon-right .directorist-input-icon,
.directorist-map-wrapper .directorist-map-search .directorist-search-field__btn--clear {
    right: 18px;
}

.directorist-map-wrapper .directorist-map-search .directorist-search-field .directorist-filter-location-icon ~ .directorist-search-field__btn--clear,
.directorist-map-wrapper .directorist-map-search .directorist-search-field.input-is-focused .directorist-filter-location-icon ~ .directorist-search-field__btn--clear {
    right: 44px;
}

#directorist-search-area-form > .directorist-search-field-radius_search {
    position: absolute;
    bottom: 0;
    width: 97%;
}

.directorist-map-wrapper .directorist-map-search .directorist-search-field.directorist-search-field-radius_search>label {
    color: #fff;
    margin-top: 15px;
}

#directorist-search-area-form > .directorist-search-field-radius_search .directorist-custom-range-slider__range__wrap {
    margin-top: 15px;
}

.directorist-custom-range-slider-connect {
    background-color: #83fad8;
}

.directorist-map-wrapper .directorist-map-search .directorist-advanced-filter__action {
    border: none;
}

.directorist-map-wrapper .directorist-map-search .directorist-btn-submit {
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    font-family: "Graphik", sans-serif;
    color: #081a2c;
    background-color: #4decd4;
    border: none;
}

.directorist-map-wrapper .directorist-map-search .directorist-btn-submit:hover {
    background-color: #44d5bd;
}

.directorist-map-wrapper .directorist-map-search .directorist-btn-reset-js {
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    font-family: "Graphik", sans-serif;
    border: none;
}

.directorist-map-wrapper .directorist-map-search .directorist-btn-reset-js:hover {
    background-color: #081a2c;
}

.directorist-map-columns-three .directorist-map-listing .directorist-listing {
    background-color: #fff;
    padding-bottom: 20vh !important;
}

#directorist.directorist-wrapper .directorist-generic-header .directorist-generic-header__title h3 {
    font-family: "Graphik", sans-serif;
    font-size: 36px;
    line-height: 44px;
    font-weight: 700;
    color: #081a2c;
}

/* !SECTION */

/**
 * SECTION: Search Listing Card
 */
.directorist-row>* {
    margin-top: 5px;
}

.directorist-listing-single {
    flex-direction: column;
}

.directorist-listing-single .directorist-listing-single__thumb {
    max-width: 100% !important;
    width: 100%;
}

.directorist-listing .directorist-listing-single.directorist-listing-list .directorist-listing-single__thumb .directorist-thumnail-card {
    height: 204px !important;
}

.directorist-content-active .directorist-listing-single__info .directorist-listing-title {
    color: #001c33;
    font-family: "Graphik", sans-serif;
    font-size: 30px;
    line-height: 38px;
    font-weight: 700;
}

#directorist-listing-single_portmandentex-info_container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 15px;
    gap: 30px;
}

#directorist-listing-single_portmandentex-contact-treatment-info,
#directorist-listing-single_portmandentex-opening-hrs {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

#directorist-listing-single_portmandentex-contact-treatment-info {
    width: 70%;
}

#directorist-listing-single_portmandentex-contact-treatment-info #listing-address,
#directorist-listing-single_portmandentex-contact-treatment-info #listing-phone-landing-pg,
#listing-treatments_container {
    color: #001c33;
    font-family: "Graphik", sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    margin-bottom: 20px;
}

#directorist-listing-single_portmandentex-contact-treatment-info #listing-phone-landing-pg {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

#directorist-listing-single_portmandentex-contact-treatment-info #listing-phone-landing-pg a {
    text-decoration: underline;
}

#directorist-listing-single_portmandentex-contact-treatment-info #listing-phone-landing-pg #listing-phone {
    padding-right: 15px;
    border-right: 1px solid #fa871f;
}

#directorist-listing-single_portmandentex-contact-treatment-info #listing-phone-landing-pg #listing-landing-pg-url {
    padding-left: 15px;
}

#directorist-listing-single_portmandentex-opening-hrs {
    width: 30%;
    font-family: "Graphik", sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #001c33;
    font-weight: 400;
    align-items: flex-start;
}

#directorist-listing-single_portmandentex-info_container p.heading-title {
    font-family: "Graphik", sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: #001c33;
}

#listing-treatments_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

#listing-treatments_container .listing-treatments_single {
    width: auto;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    border: 1px solid #e5e6e6;
    padding: 5px 10px;
}

#listing-ftr-btn .listing-btn {
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    font-family: "Graphik", sans-serif;
    font-size: 14px;
    font-weight: 500;
    background-color: #001c33;
    color: #83fad8;
    text-decoration: underline;
    padding: 10px 24px;
    display: block;
    margin-top: 24px;
}
/* !SECTION */

/**
 * SECTION: Directorist - Map Info Window
 */
.map-listing-card-single__content__title {
    color: #001c33;
    font-family: "Graphik", sans-serif;
}

.map-listing-card-single__content__location,
.map-listing-card-single__content__info .directorist-info-item {
    color: #001c33;
    font-family: "Graphik", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
}
/* !SECTION */

/**
 * SECTION: Plugin Fixes
 */

/*
 * Fix: "No Practices Found" message is invisible (white text on a white
 * background) in the practice finder widget's results area.
 *
 * Root cause: the site's Elementor Kit sets a global "Text" colour of
 * white (#FFFFFF) at the <body> level - meant for the dark hero section
 * at the top of the page - which every element inherits unless something
 * overrides it. The listing/results area has a white background, so any
 * text that never got its own colour (like this JS-injected message)
 * inherits that white and disappears. This override is scoped to just
 * the no-results message inside the practice finder widget, so it won't
 * affect anything else on the site.
 */
.directorist-map-wrapper .atbd-ajax-404error h3,
.directorist-map-wrapper .atbd-ajax-404error p {
    color: #081A2C;
}

/*
 * Fix: the map disappears after a search on screens roughly 1200-1216px
 * wide (e.g. searching "Implants" at that width), with no way to bring
 * it back.
 *
 * Root cause: the "Directorist - Listings with Map" extension hides the
 * map after a search using two different mechanisms that disagree with
 * each other by exactly the width of the browser's scrollbar:
 *
 *   - Its JS measures the window width with jQuery's $(window).width(),
 *     which EXCLUDES the scrollbar, and hides the map (inline
 *     `style="display:none"`) once that's 1199px or less.
 *   - Its CSS uses `@media (max-width: 1199px)`, which Chrome evaluates
 *     INCLUDING the scrollbar, and that same breakpoint also controls
 *     whether the "Search / Listings / Map" toggle buttons (the only way
 *     to bring the map back) are shown at all.
 *
 * A typical vertical scrollbar is ~15-17px wide, so there's a dead zone
 * (about 1200-1216px of actual browser width) where the JS's narrower
 * measurement has already crossed its threshold and hidden the map, but
 * the CSS's wider measurement hasn't crossed its threshold yet, so the
 * toggle buttons that would let a visitor switch back to the map view
 * never appear. Net effect: the map vanishes and there is no way to get
 * it back, purely because of a browser scrollbar's width.
 *
 * Fix: force the map to stay visible through that dead zone (and a
 * little beyond, to safely cover scrollbar widths on other browsers/OSes)
 * with !important, so it overrides the inline style the plugin's JS sets.
 * The existing flex layout on `.directorist-ajax-search-result` still
 * sizes it correctly side-by-side with the results list - this only
 * cancels the "hide" instruction, nothing about the layout itself.
 *
 * Deliberately bounded to a `min-width` of 1200px: below the genuine,
 * both-mechanisms-agree 1199px breakpoint, Directorist's own design is
 * to hide the map and rely on its "Search / Listings / Map" toggle
 * buttons instead (there's no side-by-side layout at mobile widths to
 * fall back to), so this fix intentionally leaves that range alone.
 */
@media (min-width: 1200px) and (max-width: 1230px) {
    .directorist-ajax-search-result .directorist-map {
        display: block !important;
    }
}

/*
 * Fix: the map disappears after a search on screens 1199px wide or
 * narrower (it's only ever hidden after a search - before searching it
 * still shows correctly, e.g. stacked at the top of the practice list).
 *
 * Root cause: your theme's stylesheet already has custom rules that make
 * the map visible on narrow screens - but only for the map shown on
 * FIRST page load (the `.directorist-map-listing .directorist-map`
 * element, hidden/shown via a `directorist-map-hide` class your theme
 * neutralises). Once you run a search, the plugin swaps in a completely
 * different, separately-rendered copy of the map inside
 * `.directorist-ajax-search-result` - and that copy was never given the
 * same treatment. The plugin's own CSS unconditionally hides it below
 * 1199px (`display: none`), and its JS reinforces that with an inline
 * style, so this second map stays hidden with no equivalent fix in place
 * for it.
 *
 * Fix: give that post-search map copy the exact same two-tier treatment
 * your theme already applies to the first-load map:
 *   - 1025px-1199px wide: shown side-by-side with the results list, same
 *     as before a search.
 *   - 1024px and narrower: shown as a 300px-tall banner stacked above the
 *     results list, same as before a search.
 * `!important` is needed on `display` because the plugin's JS sets an
 * inline `display:none` style on this element, which only a stylesheet
 * rule marked `!important` can override.
 *
 * This is a separate range from the map-disappearing-1200px-fix.css
 * snippet - that one covers 1200-1230px (a browser-scrollbar edge case),
 * this one covers 1199px and below. Both can be added together.
 */

/* 1025px-1199px: side-by-side, matching the pre-search layout */
@media (min-width: 1025px) and (max-width: 1199px) {
    .directorist-map-columns-three .directorist-ajax-search-result .directorist-map,
    .directorist-map-columns-two .directorist-ajax-search-result .directorist-map {
        display: block !important;
    }
}

/* 1024px and below: stacked banner above the results, matching the pre-search layout */
@media (max-width: 1024px) {
    .directorist-map-columns-three .directorist-ajax-search-result .directorist-map,
    .directorist-map-columns-two .directorist-ajax-search-result .directorist-map {
        display: block !important;
        position: absolute;
        top: 0;
        z-index: 100;
        width: 100vw;
        height: 300px !important;
    }
    .directorist-map-columns-three .directorist-ajax-search-result .directorist-listing {
        position: relative;
        top: 300px;
        padding-bottom: 600px !important;
    }
}

/*
 * Fix: clicking the "What are you looking for?" field where the
 * placeholder-style text sits doesn't focus the field - only clicking
 * near the end of the box (past the text) works.
 *
 * Root cause: that placeholder text isn't a real placeholder - it's a
 * separate <label> element positioned on top of the <input>. Because the
 * label's `for` attribute and the input's `id` are both empty, clicking
 * the label doesn't focus the input the way a normal <label>/<input>
 * pairing would - the click just lands on the label and goes nowhere.
 * Only the part of the field where the label doesn't visually cover the
 * input still works, which is why clicking near the end (past the text)
 * does focus it.
 *
 * Fix: let clicks pass straight through the label to the input
 * underneath. Checked the other search fields that share this same
 * label class (Pricing, Review, Radius Search) - their labels are
 * collapsed/invisible in this widget, so this doesn't change anything
 * for them; it only affects the one field where the label is actually
 * visible and overlapping.
 */
.directorist-search-field__label {
    pointer-events: none;
}

/*
 * Make the "Radius Search" slider always visible in the practice finder,
 * instead of only appearing after a location has been entered.
 *
 * Directorist ships this field with conditional-display logic: it's
 * given an inline `style="display:none"` by default, and JS only
 * removes that once the Location field has a value (i.e. once you've
 * picked a place from the autocomplete). This overrides that inline
 * style with `!important` so the slider shows immediately on page load.
 *
 * Note: the radius only has an effect once a location is also entered -
 * a distance needs a centre point to measure from. This just makes the
 * control visible up front rather than hiding it until then.
 */
.directorist-search-field-radius_search {
    display: block !important;
}

/* !SECTION */

/**
 * SECTION: Responsive
 */

/**
 * SECTION: 1541px
 */
@media only screen and (max-width: 1541px) {
    /* #directorist-search-area-form > .directorist-basic-search-fields-each:first-child, */
    #directorist-search-area-form > .directorist-basic-search-fields-each:nth-child(2) {
        /* width: 35%; */
        width: 70%;
    }

    #directorist-search-area-form > .directorist-search-field-radius_search {
        width: 95%;
    }
}
/* !SECTION */

/**
 * SECTION: 1279px
 */
@media only screen and (max-width: 1279px) {
    #directorist-listing-single_portmandentex-info_container {
        flex-direction: column;
    }

    #directorist-listing-single_portmandentex-contact-treatment-info,
    #directorist-listing-single_portmandentex-opening-hrs {
        width: 100%;
    }
}
/* !SECTION */

/**
 * SECTION: 1244px
 */
@media only screen and (max-width: 1244px) {
    .directorist-map-wrapper .directorist-map-search .directorist-advanced-filter__action {
        width: 20%;
    }
}
/* !SECTION */

/**
 * SECTION: 1199px
 */
@media only screen and (max-width: 1199px) {
    .directorist-map-wrapper .directorist-map-listing,
    .directorist-map-wrapper .directorist-ajax-search-result {
        top: 290px;
    }

    .directorist-res-btns {
        display: none;
    }

    .directorist-map-columns-three .directorist-map.directorist-map-hide,
    .directorist-map-columns-two .directorist-map-listing.directorist-map-hide {
        position: unset;
        visibility: unset;
        opacity: unset;
        pointer-events: unset;
        width: unset;
        height: unset;
        left: unset;
        top: unset;
    }
}
/* !SECTION */

/**
 * SECTION: 1024px - Tablet Breakpoint
 */
@media only screen and (max-width: 1024px) {
    .directorist-map-wrapper,
    .directorist-map-columns-three .directorist-map-listing .directorist-listing,
    .directorist-map-columns-three .directorist-map-listing .directorist-map,
    .directorist-map-columns-three .directorist-ajax-search-result .directorist-listing,
    .bdmv-columns-two .directorist-map-listing,
    .directorist-map-columns-three .directorist-map-search {
        height: calc( 100vh + 200px ) !important;
    }

    .directorist-map-columns-three .directorist-map.directorist-map-hide,
    .directorist-map-columns-two .directorist-map-listing.directorist-map-hide {
        position: absolute;
        top: 0;
        z-index: 100;
        width: 100vw;
        height: 300px !important;
    }

    .directorist-map-columns-three .directorist-map-listing .directorist-listing {
        position: relative;
        top: 300px;
        padding-bottom: 600px !important;
    }

    .directorist-map-wrapper .directorist-map-search #directorist-search-area-form {
        flex-direction: column;
        gap: 10px;
    }

    /* #directorist-search-area-form > .directorist-basic-search-fields-each:first-child, */
    #directorist-search-area-form > .directorist-basic-search-fields-each:nth-child(2) {
        width: 100%;
    }

    #directorist-search-area-form > .directorist-search-field-radius_search {
        width: 92%;
        bottom: unset;
        /* top: 175px; */
        top: 95px;
    }

    .directorist-map-wrapper .directorist-map-search .directorist-advanced-filter__action {
        flex-direction: row;
        width: 100%;
    }

    .directorist-map-wrapper .directorist-map-search .directorist-btn-submit,
    .directorist-map-wrapper .directorist-map-search .directorist-btn-reset-js {
        width: 48%;
    }

    .directorist-map-wrapper .directorist-map-listing,
    .directorist-map-wrapper .directorist-ajax-search-result {
        /* top: 325px; */
        top: 250px;
    }

    .directorist-content-active .directorist-listing-single.directorist-listing-list .directorist-listing-single__thumb {
        min-height: 150px;
    }

    .directorist-listing .directorist-listing-single.directorist-listing-list .directorist-listing-single__thumb .directorist-thumnail-card {
        height: 150px !important;
    }

    .directorist-map-wrapper .directorist-map-search #directorist-search-area-form {
        justify-content: unset;
    }

    .directorist-content-active .directorist-listing-single.directorist-listing-list .directorist-listing-single__info {
        padding: 10px 20px 0;
    }

    #directorist-listing-single_portmandentex-info_container {
        gap: 0;
    }
}
/* !SECTION */

/**
 * SECTION: 767px - Mobile Breakpoint
 */
@media only screen and (max-width: 767px) {
    #directorist-listing-single_portmandentex-contact-treatment-info #listing-phone-landing-pg {
        flex-direction: column;
        gap: 10px;
    }

    #directorist-listing-single_portmandentex-contact-treatment-info #listing-phone-landing-pg #listing-phone {
        padding-right: 0;
        border-right: none;
    }

    #directorist-listing-single_portmandentex-contact-treatment-info #listing-phone-landing-pg #listing-landing-pg-url {
        padding-left: 0;
    }

    .directorist-content-active .directorist-listing-single.directorist-listing-list .directorist-listing-single__thumb {
        min-height: 100px;
    }

    .directorist-listing .directorist-listing-single.directorist-listing-list .directorist-listing-single__thumb .directorist-thumnail-card {
        height: 100px !important;
    }

    .directorist-info-item.map-listing-card-single__content__website > a {
        word-wrap: anywhere;
    }
}
/* !SECTION */

/**
 * SECTION: 575px
 */
@media only screen and (max-width: 575px) {
    .directorist-content-active .directorist-listing-single__info .directorist-listing-title {
        font-size: 20px !important;
        line-height: 28px;
    }

    .directorist-content-active .directorist-listing-single.directorist-listing-list .directorist-listing-single__info {
        gap: 0;
    }

    .directorist-content-active .directorist-listing-single.directorist-listing-list .directorist-listing-single__thumb {
        padding: 0;
    }

    .directorist-content-active .directorist-listing-single.directorist-listing-list .directorist-listing-single__thumb {
        min-height: 50px;
    }

    .directorist-listing .directorist-listing-single.directorist-listing-list .directorist-listing-single__thumb .directorist-thumnail-card {
        height: 75px !important;
    }

    #directorist.directorist-wrapper .directorist-generic-header .directorist-generic-header__title h3 {
        font-size: 30px;
        line-height: 38px;
    }

    .atbdp-map .gm-style .gm-style-iw, .atbd_google_map .gm-style .gm-style-iw, .directorist-details-info-wrap .gm-style .gm-style-iw {
        width: 80vw;
        max-width: unset !important;
    }

    .map-listing-card-single {
        padding: 0 10px 15px 10px;
    }
}
/* !SECTION */

/**
 * SECTION: 419px
 */
@media only screen and (max-width: 419px) {
    .directorist-map-wrapper .directorist-map-search .directorist-advanced-filter__action {
        flex-direction: column;

    }

    .directorist-map-wrapper .directorist-map-search .directorist-btn-submit,
    .directorist-map-wrapper .directorist-map-search .directorist-btn-reset-js {
        width: 100%;
    }

    .directorist-map-wrapper .directorist-map-search .directorist-btn-reset-js {
        padding: 0;
        line-height: unset;
    }

    .directorist-map-wrapper .directorist-map-listing, .directorist-map-wrapper .directorist-ajax-search-result {
        /* top: 375px; */
        top: 300px;
    }

    .map-listing-card-single__content__title {
        font-size: 14px;
    }

    .map-listing-card-single__content__location, .map-listing-card-single__content__info .directorist-info-item,
    .map-listing-card-single__content__info a {
        font-size: 12px;
    }
}
/* !SECTION */

/* !SECTION */

/* !SECTION */