/* 
 * Artbin Search Redesign 
 */

/* 1. Modern Filter Redesign */
.houzez-search-wrapper .bootstrap-select .btn,
.houzez-search-wrapper input.form-control,
.houzez-search-wrapper select.form-control {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
    padding: 10px 15px;
    height: auto;
}

.houzez-search-wrapper .bootstrap-select .btn:hover,
.houzez-search-wrapper input.form-control:focus {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

.houzez-search-wrapper .bootstrap-select .dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.houzez-search-wrapper .bootstrap-select .dropdown-menu li a {
    padding: 8px 20px;
    transition: background 0.2s, color 0.2s;
}

.houzez-search-wrapper .bootstrap-select .dropdown-menu .dropdown-item:hover,
.houzez-search-wrapper .bootstrap-select .dropdown-menu .dropdown-item.active,
.houzez-search-wrapper .bootstrap-select .dropdown-menu .dropdown-item:active,
.houzez-search-wrapper .bootstrap-select .dropdown-menu li a:hover,
.houzez-search-wrapper .bootstrap-select .dropdown-menu li.active a,
.houzez-search-wrapper .bootstrap-select .dropdown-menu li.selected a {
    background-color: rgb(255, 241, 198) !important;
    color: #000 !important;
}

/* 1.5 Button Styles Redesign */
.houzez-search-wrapper .btn-primary,
.houzez-search-wrapper .advanced-search-btn,
.houzez-search-button-wrap .btn,
.houzez-search-button-wrap .btn-primary,
.half-map-search-buttons .btn-primary,
.houzez-search-wrapper .btn-search {
    background-color: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 600;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100% !important; /* Ensure they fill the wrapper */
}

.houzez-search-wrapper .btn-primary:hover,
.houzez-search-wrapper .advanced-search-btn:hover,
.houzez-search-button-wrap .btn:hover,
.houzez-search-button-wrap .btn-primary:hover,
.half-map-search-buttons .btn-primary:hover,
.houzez-search-wrapper .btn-search:hover {
    background-color: #e65c00 !important;
    border-color: #e65c00 !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3) !important;
    transform: translateY(-1px);
}

/* Secondary Buttons (Clear, Save Search) */
.houzez-search-wrapper .btn-clear,
.houzez-search-wrapper #btn-clear,
.half-map-search-buttons #btn-clear,
.houzez-search-wrapper .btn-save-search,
.houzez-search-wrapper #btn-save-search,
.half-map-search-buttons #btn-save-search,
.houzez-search-wrapper .reset-search-btn,
.houzez-search-wrapper #save_search_click,
#save_search_click {
    background-color: #fff !important;
    border: 2px solid #ff6600 !important;
    color: #ff6600 !important;
    border-radius: 12px !important;
    font-weight: 600;
    height: 48px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
}

.houzez-search-wrapper .btn-clear:hover,
.houzez-search-wrapper #btn-clear:hover,
.half-map-search-buttons #btn-clear:hover,
.houzez-search-wrapper .btn-save-search:hover,
.houzez-search-wrapper #btn-save-search:hover,
.half-map-search-buttons #btn-save-search:hover,
.houzez-search-wrapper .reset-search-btn:hover,
.houzez-search-wrapper #save_search_click:hover,
#save_search_click:hover {
    background-color: #ff6600 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2) !important;
}

/* Fix Flex Layout for Button Row */
.advanced-search-v1 .d-flex.flex-wrap,
.half-map-buttons-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    width: 100%;
}

/* Horizontal Filters Layout (Demo 43 Style) */
.houzez-search-wrapper form > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin: 0 -5px !important;
}

.houzez-search-wrapper form > .row > div[class*="col-"] {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 160px !important;
    padding: 0 5px !important;
    margin-bottom: 10px !important;
}

/* Fix Bootstrap Select inside Flex */
.houzez-search-wrapper .bootstrap-select {
    width: 100% !important;
}

.houzez-search-wrapper .flex-search.btn-no-right-padding,
.half-map-buttons-wrap .btn-search {
    flex: 2 1 0 !important; /* Search button slightly larger */
    padding: 0 !important;
    width: 100% !important;
}

.houzez-search-wrapper .reset-search-btn-wrap,
.houzez-search-wrapper .save-search-btn-wrap,
.half-map-buttons-wrap .save-search-form-wrap,
.half-map-buttons-wrap .reset-search-btn-wrap {
    flex: 1 1 0 !important; /* Equal size for secondary buttons */
    padding: 0 !important;
    width: 100% !important;
}

/* 2. "More Filters" Toggle */
.artbin-more-filters-toggle-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
    flex-basis: 100%;
}

.artbin-btn-more-filters {
    background: none;
    border: none;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.artbin-btn-more-filters:hover {
    color: #000;
    background: rgba(0,0,0,0.03);
}

.artbin-btn-more-filters.active i {
    transform: rotate(180deg);
}

.artbin-more-filters-wrap {
    width: 100%;
    flex-basis: 100%;
    margin-top: 10px;
    padding: 20px;
    background: #fcfcfc;
    border-radius: 16px;
    border: 1px solid #eee;
}

.artbin-more-filters-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 5. Custom Footer & Buttons styling */
/* Hide author and date footer on property cards */
.item-footer {
    display: none !important;
}

/* Beautiful buttons row in half-map */
.half-map-buttons-wrap {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
    justify-content: space-between;
    margin-top: 15px;
}

.half-map-buttons-wrap .btn-search {
    flex: 1 1 auto;
    min-width: 200px;
    height: 54px;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 16px;
}

.half-map-buttons-wrap .save-search-form-wrap,
.half-map-buttons-wrap .reset-search-btn-wrap {
    flex: 0 0 auto;
    display: flex;
}

.half-map-buttons-wrap .save_search_click,
.half-map-buttons-wrap .reset-search-btn {
    height: 54px;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Save Search Button - Soft gray */
.half-map-buttons-wrap .save_search_click {
    background-color: #f7f7f7 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}
.half-map-buttons-wrap .save_search_click:hover {
    background-color: #eaeaea !important;
}

/* Clear Button - Outline Orange */
.half-map-buttons-wrap .reset-search-btn {
    background-color: #ffffff !important;
    color: #ff6600 !important;
    border: 1px solid #ff6600 !important;
}
.half-map-buttons-wrap .reset-search-btn:hover {
    background-color: #fff5eb !important;
}



/* 3. Custom Leaflet/Mapbox Popup & Interface Styling (Orange Brand) */
.leaflet-popup-content-wrapper, .mapboxgl-popup-content {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
    overflow: hidden;
    background-color: #ffffff !important;
}

.leaflet-popup-content, .mapboxgl-popup-content {
    margin: 0 !important;
    min-width: 300px !important;
}

.leaflet-popup-content .item-wrap, .mapboxgl-popup-content .item-wrap {
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-popup-tip, .mapboxgl-popup-tip {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.leaflet-popup-close-button, .mapboxgl-popup-close-button {
    color: #ff6600 !important;
    font-size: 16px !important;
    padding: 8px 10px 0 0 !important;
    z-index: 999;
}

/* 4. Map Marker Highlighting */
/* All Price Markers for Mapbox, Leaflet, Google */
.gm-marker-price, .houzez-map-marker-price,
.osm-marker.map-marker-label,
.mapbox-marker .gm-marker-price, .mapbox-custom-marker .gm-marker-price {
    background-color: #ff6600 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4);
    padding: 5px 10px !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    min-width: max-content;
}

.gm-marker-price::after, .houzez-map-marker-price::after,
.osm-marker.map-marker-label::after,
.mapbox-marker.map-marker-label::after, .mapbox-custom-marker.map-marker-label::after {
    border-top-color: #ff6600 !important;
}

/* Search results footer: remove the blank light band before the promo block. */
body.page-template-template-search .elementor-location-footer .elementor-element-c2af8dd {
    margin-top: 0 !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    background: #202a30 !important;
    background-image: none !important;
}

body.page-template-template-search .elementor-location-footer .elementor-element-e3a7aab > .e-con-inner {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

body.page-template-template-search #houzez-gmap-full-osm.map-btn {
    min-width: max-content;
    white-space: nowrap;
}

/* If the marker has an icon or svg inside */
.gm-marker-price svg path, .houzez-map-marker-price svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Hover effects */
.gm-marker-price:hover, .houzez-map-marker-price:hover, .leaflet-marker-icon:hover,
.osm-marker.map-marker-label:hover, .mapbox-marker:hover, .mapbox-custom-marker:hover {
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4) !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
}

/* Cluster markers */
.houzez-osm-cluster, .mapbox-cluster, .cluster-marker {
    background-color: #ff6600 !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5) !important;
    border-radius: 50% !important;
}

/* Beautiful Mapbox Markers for non-price pins */
.mapboxgl-marker, .mapbox-marker, .mapbox-custom-marker {
    background-color: #ff6600 !important;
    background-image: none !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4) !important;
}

/* Price pin markers should be styled with orange background */
.mapbox-marker.map-marker-label, .mapbox-custom-marker.map-marker-label {
    background-color: #ff6600 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4) !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    min-width: max-content;
}

.mapbox-marker.map-marker-label::after, .mapbox-custom-marker.map-marker-label::after {
    border-top-color: #ff6600 !important;
}

