/* 
Theme Name:		 Hello Elementor Child
Theme URI:		 http://childtheme-generator.com/
Description:	 Hello Elementor Child is a child theme of Hello Elementor, created by ChildTheme-Generator.com
Author:			 The Deciding Factor
Author URI:		 http://childtheme-generator.com/
Template:		 hello-elementor
Version:		 1.0.0
Text Domain:	 hello-elementor-child
*/


/*
    Add your custom styles here
*/

div:has(> .partner-box) {
    height: 100%;
}
.partner-box {
    height: 100%;
box-shadow: 0px 12px 33px -17px rgba(0,0,0,0.4)!important;
-webkit-box-shadow: 0px 12px 33px -17px rgba(0,0,0,0.4)!important;
-moz-box-shadow: 0px 12px 33px -17px rgba(0,0,0,0.4)!important;
}
.partner-box-options {
    flex-grow: 2!important;
}
.partner-box > div,
.partner-box > div > div {
    height: 100%!important;
}
.partner-box .elementor-element-populated {
    flex-direction: column;
}
.partner-box-logo {
    position: relative;
}
.recommended-label {
    position: absolute !important;
    top: 25px;
    right: -35px;
}

div:has(> .partner-logo-box) {
    flex-direction: row !important;
    align-items: flex-start !important;
}
.partner-logo-box {
    border-radius: 50% !important;
    border: 4px solid #d89e4c;
    height: 80px !important;
    width: 80px !important;
    max-width: 80px;
    max-height: 80px;
    padding: 0!important;
    overflow: hidden !important;
    display: flex !important;
}
.partner-logo-box *:not(.geodir-images-image, .geodir-images-image img) {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0!important;

}
nav.elementor-pagination {
    margin-top: 100px;
}
.elementor-location-footer {
    margin-top: 50px;
}
div#wp_widget_gd_map_map_nofound,
.bsui .alert-info {
    display: none!important
}

/* Remove on prod */
.partner-box-logo {
    display: none;
}

div#partner-background + .partner-box-logo {
    display: block;
}
.btn-fullwidth .elementor-button {
    width: 100% !important;
    max-width: 500px;
}
.bsui .embed-item-cover-xy {
    min-width: 72px!important;
}
div#partner-background .e-con-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
}

ul#all-listing-types {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0px;
}
ul#all-listing-types li a {
    font-weight: 500;
    color: #333;
    margin: 5px 20px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}
ul#all-listing-types li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: all 0.3s ease;
}
ul#all-listing-types li a:hover,
ul#all-listing-types li a.active {
    color: #c8102e;
}
ul#all-listing-types li a:hover::after,
ul#all-listing-types li a.active::after {
    background-color: #c8102e;
}

.ysn-extend-filter {
    position: relative;
    display: flex;
    width: 100%;
    text-align: right;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15px;
}
.ysn-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
}
button.ysn-modal-close span {
    margin: -6px 0 0;
    display: block;
}
.ysn-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 15px;
}
.ysn-modal[aria-hidden="false"] {
    display: block;
}
.ysn-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.ysn-modal-content {
    position: relative;
    max-width: 500px;
    margin: 10vh auto;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
button.ysn-modal-close {
    font-size: 30px;
    border: 0;
}
h3#ysn-filter-title {
    margin: 0;
    font-size: 20px;
}
button#ysn-filter-toggle {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
}
.ysn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.ysn-modal-body {
    display: flex;
    padding: 16px;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}
.ysn-filter-group:first-child {
    width: 100%;
    margin: 0 0 20px;
}

.ysn-filter-group {
    margin-bottom: 20px;
}
.ysn-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
}
.ysn-modal-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.ysn-filter-apply {
    padding: 8px 14px;
    background: #c36;
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.ysn-filter-group h4 {
    margin: 0 0 8px;
    font-size: 14px;
    text-align: left;
}
.ysn-checkboxes {
    display: flex;
    gap: 6px;
    flex-direction: column;
}
.ysn-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.home #listing-type-list .e-con-inner {
    display: none;
}

/* Age Slider Styles */
.ysn-age-slider {
    width: 100%;
    margin: 10px 0;
}

.ysn-slider-container {
    position: relative;
    height: 40px;
}

.ysn-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    transform: translateY(-50%);
}

.ysn-slider-range {
    position: absolute;
    top: 0;
    height: 100%;
    background: #c36;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.ysn-slider-input {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 20px;
    background: transparent;
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    left: 0;
}

.ysn-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #c36;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ysn-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #c36;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ysn-slider-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.ysn-slider-min-value,
.ysn-slider-max-value {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

.ysn-slider-separator {
    color: #666;
}
article.elementor-grid-item .elementor-background-overlay {
    background-image: none!important;
    /* background-image: linear-gradient(133deg, var(--e-global-color-secondary) 37%, var(--e-global-color-primary) 74%); */
}
.listing-card-banner {
    background-image: linear-gradient(133deg, var(--e-global-color-secondary) 37%, var(--e-global-color-primary) 105%);
}
#geodir_search_post_category {
    min-width: 120px;
}
#geodir_search_post_category option[value="118"] {
    display: none;
}
#partner-name-autocomplete {
    max-width: 180px;
}
.registration-info {
    margin: 10px 0 0;
}
.registration-info a,
.registration-info a:hover {
    color: #c36!important;
}

@media (max-width: 768px) {
    .bsui .embed-item-cover-xy {
        min-width: 50px !important;
        max-width: 50px !important;
    }
    .partner-logo-box {
        height: 66px !important;
        width: 66px !important;
    }
    .recommended-label {
        position: absolute !important;
        top: 10px;
        right: -33px;
    }
    .geodir-search.flex-nowrap.flex-md-nowrap.flex-lg-nowrap.form-row.align-items-center {
        flex-wrap: wrap !important;
    }
    input#partner-name-autocomplete {
        width: 100%;
        max-width: 100%;
    }
}