@charset "UTF-8";
/* Custom Search Results Styles */

/**
 * Custom Search Result Styles - Core Components
 * 
 * This stylesheet provides core styling for the listing-search page
 * in the Pro-Found IDX/MLS WordPress plugin.
 * 
 * @since 1.0.0
 */

/* ==========================================================================
   Button & Base Styles
   ========================================================================== */
button,
input[type="button"],
input[type="reset"],
input[type="select"],
input[type="submit"],
.button,
#cmc #cmc-auto-input button,
#cmc #cmc-auto-input .button {
    border: 1px solid rgb(209, 209, 213) !important;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 2px;
    line-height: 1;
    padding: 10px 10px !important;
    text-decoration: none;
    text-transform: uppercase;
    width: auto;
    border-radius: 5px;
    margin: 3px !important
}

/* ========================================================================
   1. General & Base Styles
   ======================================================================== */
button,
input[type="button"],
input[type="reset"],
input[type="select"],
input[type="submit"],
.button,
#cmc #cmc-auto-input button,
#cmc #cmc-auto-input .button {
    border: 1px solid rgb(209, 209, 213);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px !important;
    -webkit-font-smoothing: antialiased;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    line-height: 1;
    padding: 12px 20px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: normal;
    width: auto;
    transition: all 0.3s ease;
}

.fa,
.fas {
    font-family: Font Awesome\ 5 Pro;
    font-weight: 500 !important;
}

/* ========================================================================
   2. Layout & Structure
   ======================================================================== */
.site-inner {
    clear: both;
    max-width: 100% !important;
    word-wrap: break-word;
}

.site-inner .wrap {
    clear: both;
    max-width: 100% !important;
    word-wrap: break-word;
}

.results-page .entry-title {
    display: none !important;
}

.results-page .entry-header::after{
     display: none !important;
}
.map-result-res {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.map-margin {
    margin: 0 !important;
}

.results-section {
    overflow: visible;
    padding-right: 0px;
    scrollbar-width: thin;
    scrollbar-color: #bbb #f1f1f1;
}

/* Grids */
.search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.budget-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.budget-grid-container .budget-item {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dynamic-input-label {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Search Criteria & Lookups */
.search-criteria-placeholder {
    border: none;
}

.search-results-after-map .ifound-wrap {
    width: 100%;
}

/* Price Range Filter */
.price-range-header {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

/* Boolean Toggle Switch */
.boolean-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.boolean-toggle-label {
    font-size: 16px;
    color: #374151;
    font-weight: 500;
    min-width: 40px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 68px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "✕";
    height: 28px;
    width: 28px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #9ca3af;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(34px);
    content: "✓";
    color: #10b981;
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Min/Max Inputs */
.min-max-separator {
    display: none;
}

/* Custom Select Dropdown */
.custom-select-option.selected label {
    font-weight: 500;
    color: #1e40af;
}

.custom-select-dropdown.has-active-filter {
    border: 2px solid #1B5EA3 !important;
    background: #e8f1f9 !important;
}

.custom-select-dropdown.has-active-filter .custom-select-trigger,
.custom-select-dropdown.has-active-filter .custom-select-value {
    color: #1B5EA3 !important;
    font-weight: 600 !important;
}

/* Autofill Input */
.autofill-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.autofill-field {
    position: relative;
    width: 100%;
}

.autofill-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.autofill-input::placeholder {
    color: #9ca3af;
}

.autofill-input:focus {
    border-color: #d1d5db;
    background: #fff;
}

.autofill-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.autofill-add-button:hover,
.autofill-add-button:active,
.autofill-add-button:focus {
    transform: scale(0.98);
    outline: none;
}

.autofill-add-button i {
    display: none;
}

.autofill-add-button .button-text {
    font-weight: 600;
}

/* Sort Dropdown */
.sort-container {
    display: flex;
    align-items: center;
}

.sort-container .sort-select-wrap {
    margin: 0;
}

.sort-container select {
    padding: 6px 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
    font-size: 13px;
    min-width: 140px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.sort-container select:hover {
    border-color: #1B5EA3;
}

.sort-container select:focus {
    outline: none;
    border-color: #1B5EA3;
    box-shadow: 0 0 0 2px rgba(27, 94, 163, 0.1);
}

.save-this-wrapper{
    display: flex;
    align-items: center;
}

.custom-sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 200px;
}

.sort-dropdown-trigger:hover {
    border-color: #9ca3af;
}

.custom-sort-dropdown.open .sort-dropdown-trigger {
    border-color: #1B5EA3 !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.sort-label {
    font-size: 14px;
    font-weight: 600;
    color: #1B5EA3 !important;
}

.sort-current-value {
    flex: 1;
    font-size: 14px;
    color: #1B5EA3 !important;
    font-weight: 500;
}

.sort-arrow {
    font-size: 12px;
    color: #1B5EA3 !important;
    transition: transform 0.2s ease;
}

.custom-sort-dropdown.open .sort-arrow {
    transform: rotate(180deg);
}

.sort-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #1B5EA3 !important;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sort-select-wrap {
    display: inline-block;
    position: relative;
}

.sort-select-wrap select.sort_select,
.sort_select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 220px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1E40AF !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%231E40AF' height='14' viewBox='0 0 20 20' width='14'><path d='M5 7l5 5 5-5'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 2px center !important;
    background-size: 14px !important;
    text-align: left;
}

.sort-select-wrap select.sort_select:hover,
.sort-select-wrap select.sort_select:focus,
.sort-container .sort-select-wrap .ifound-wrap .sort_select:hover,
.sort-container .sort-select-wrap .ifound-wrap .sort_select:focus {
    color: #1E3A8A !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: underline;
    font-weight: 550;
}

.sort-select-wrap select.sort_select option {
    padding: 10px;
    font-size: 14px;
    color: #374151;
    text-align: right;
}

.dynamic-value {
    padding: 4px 0;
}

.dynamic-value .sort_select,
.dynamic-value mls_class_select {
    font-size: 16px !important;
    text-align: end;
}

.mls-class-select-wrap {
    min-width: 100%;
}

.mls-class-select-wrap .ifound-wrap:before,
.sort-select-wrap .ifound-wrap:before {
    display: none;
}

.lookups-body .dynamic-heading.has-active-filter::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #1B5EA3;
    font-weight: bold;
    font-size: 14px;
}

.custom-overlay-trigger.has-active-filter,
.more-filters-heading.has-active-filter {
    background: #e8f1f9 !important;
    border: 2px solid #1B5EA3 !important;
    color: #1B5EA3 !important;
    font-weight: 700 !important;
}

.custom-overlay-trigger.has-active-filter::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: #1B5EA3;
    border-radius: 50%;
    border: 2px solid #fff;
}

.lookup-checkbox-item.has-active-filter {
    background: #e8f1f9 !important;
    border-left: 3px solid #1B5EA3 !important;
}

.lookup-checkbox-item.has-active-filter label {
    color: #1B5EA3 !important;
    font-weight: 600 !important;
}

.lookup-checkbox-item.has-active-filter input[type="checkbox"] {
    accent-color: #1B5EA3 !important;
}

.mls-class-dropdown.has-active-filter,
.custom-select-dropdown.mls-class-dropdown.has-active-filter {
    background: #e8f1f9 !important;
    border: none !important;
}

.mls-class-dropdown.has-active-filter .custom-select-trigger .custom-select-arrow,
.custom-select-dropdown.mls-class-dropdown.has-active-filter .custom-select-trigger .custom-select-arrow {
    color: #002774 !important;
    font-size: 10px !important;
}

.mls-class-dropdown.has-active-filter .custom-select-trigger,
.custom-select-dropdown.mls-class-dropdown.has-active-filter .custom-select-trigger {
    color: #1B5EA3 !important;
    font-weight: 600 !important;
    background: #e8f1f9 !important;
    border-left: 3px solid #1B5EA3 !important;
}

.mls-class-dropdown.has-active-filter .custom-select-trigger:before,
.custom-select-dropdown.mls-class-dropdown.has-active-filter .custom-select-trigger:before {
    content: none;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #1B5EA3;
    border-radius: 2px;
}

.mls-class-dropdown.has-active-filter .custom-select-value,
.custom-select-dropdown.mls-class-dropdown.has-active-filter .custom-select-value {
    color: #1B5EA3 !important;
    font-weight: 600 !important;
}

.clear-all-filters {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}
.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom {
  bottom: 85% !important;
}
.clear-all-filters:hover {
    background: #c82333 !important;
}

/* ========================================================================
   7. Utility Classes
   ======================================================================== */
.height-fit {
    height: fit-content;
}

.margin_top_zero {
    margin-top: 0px;
}

.margin_bottom_zero {
    margin-bottom: 0px;
}

.price-stats {
    background: none !important;
    margin-bottom: 0 !important;
    padding: 10px 5px !important;
    border: none !important;
}
.stats-row {
    margin-bottom: 16px;
}

.ifound-stats-cards {
     display: grid;
     grid-template-columns: repeat(4, minmax(0, 1fr));
     gap: 8px;
     padding: 12px;
     background: #f8fafc;
     border: 1px solid #e2e8f0;
     border-radius: 12px;
 }

 .ifound-stats-card {
     background: #ffffff;
     border: 1px solid #e2e8f0;
     border-radius: 8px;
     padding: 12px;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
     transition: box-shadow 0.2s ease;
     position: relative;
     overflow: hidden;
 }

 .ifound-stats-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, #1B5EA3 0%, #3b82f6 100%);
 }

 .ifound-stats-card:nth-child(2)::before {
     background: linear-gradient(90deg, #059669 0%, #10b981 100%);
 }

 .ifound-stats-card:nth-child(3)::before {
     background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%);
 }

 .ifound-stats-card:nth-child(4)::before {
     background: linear-gradient(90deg, #dc2626 0%, #f87171 100%);
 }

 .ifound-stats-card:hover {
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
 }

 .ifound-stats-card-title {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 6px;
     font-size: 13px;
     font-weight: 600;
     color: #1e293b;
     margin-bottom: 10px;
     padding-bottom: 8px;
     border-bottom: 1px solid #f1f5f9;
 }

 .ifound-stats-card-title::before {
     content: '';
     display: inline-block;
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: #1B5EA3;
     margin-right: 4px;
     flex-shrink: 0;
 }

 .ifound-stats-card:nth-child(2) .ifound-stats-card-title::before {
     background: #059669;
 }

 .ifound-stats-card:nth-child(3) .ifound-stats-card-title::before {
     background: #7c3aed;
 }

 .ifound-stats-card:nth-child(4) .ifound-stats-card-title::before {
     background: #dc2626;
 }

 .ifound-stats-card-hint {
     font-size: 9px;
     font-weight: 600;
     color: #64748b;
     background: #f1f5f9;
     padding: 2px 6px;
     border-radius: 10px;
     white-space: nowrap;
     text-transform: uppercase;
     letter-spacing: 0.3px;
 }

 .ifound-stats-card-metrics {
     display: flex;
     flex-direction: column;
     gap: 8px;
 }

 .ifound-stats-card-metric {
     display: flex;
     align-items: baseline;
     justify-content: space-between;
     gap: 8px;
     padding: 6px 8px;
     background: #f8fafc;
     border-radius: 6px;
 }

 .ifound-stats-card-label {
     font-size: 11px;
     font-weight: 500;
     color: #64748b;
     text-transform: uppercase;
     letter-spacing: 0.3px;
     white-space: nowrap;
 }

 .ifound-stats-card-value {
     font-size: 14px;
     font-weight: 600;
     color: #0f172a;
     white-space: nowrap;
 }

 @media (max-width: 1100px) {
     .ifound-stats-cards {
         grid-template-columns: repeat(2, minmax(0, 1fr));
         gap: 8px;
         padding: 10px;
     }
 }

 @media (max-width: 520px) {
     .ifound-stats-cards {
         display: grid;
         grid-template-columns: repeat(2, minmax(0, 1fr));
         gap: 6px;
         padding: 0;
         background: transparent;
         border: none;
         margin-bottom: 8px;
     }

     .ifound-stats-cards.collapsed .ifound-stats-card {
         display: none;
     }

     .ifound-stats-cards.collapsed .ifound-stats-card:first-child {
         display: block;
     }

     .ifound-stats-card {
         padding: 8px 10px;
         border-radius: 8px;
         background: #ffffff;
         border: 1px solid #e2e8f0;
         box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
     }

     .ifound-stats-card::before {
         height: 2px;
     }

     .ifound-stats-card-title {
         font-size: 11px;
         margin-bottom: 6px;
         padding-bottom: 4px;
     }

     .ifound-stats-card-metrics {
         flex-direction: row;
         gap: 8px;
     }

     .ifound-stats-card-metric {
         flex: 1;
         padding: 3px 5px;
         background: #f8fafc;
         border-radius: 4px;
     }

     .ifound-stats-card-label {
         font-size: 9px;
     }

     .ifound-stats-card-value {
         font-size: 12px;
     }

     .stats-toggle-btn {
         display: flex;
         align-items: center;
         justify-content: center;
         gap: 4px;
         width: 100%;
         padding: 6px 10px;
         margin-bottom: 6px;
         background: #e8f4fc;
         border: 1px solid #b8d4e8;
         border-radius: 6px;
         font-size: 11px;
         font-weight: 500;
         color: #1B5EA3;
         cursor: pointer;
         transition: all 0.2s ease;
         grid-column: 1 / -1;
     }

     .stats-toggle-btn:hover {
         background: #d0e8f5;
     }

     .stats-toggle-btn i {
         transition: transform 0.2s ease;
         font-size: 10px;
     }

     .ifound-stats-cards.collapsed .stats-toggle-btn i {
         transform: rotate(-90deg);
     }
 }

/* Hide toggle button on desktop */
@media (min-width: 521px) {
    .stats-toggle-btn {
        display: none;
    }
} 

.total-properties {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.mls-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #9ca3af;
}

.mls-id {
    font-weight: 500;
}

/* NOTE: .broker-name styles are in propertycard.css */
/* NOTE: .budget-msg-wrapper styles are in current-filter.css */

.search-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1B5EA3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-results-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ifound_no_results {
    background: #ffffff;
    padding: 60px 20px;
    min-height: 400px;
    display: flex;
    grid-column: 1 / -1 !important;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.replace-results-here {
    flex: 0 0 calc(50% - 0px) !important;
    height: 100%;
    overflow: auto;
}

.no-results-icon {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-results-icon svg {
    width: 120px;
    height: 120px;
    animation: float 3s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.no-results-heading {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.no-results-message {
    font-size: 16px;
    color: #374151;
    margin: 0 0 30px 0;
    line-height: 1.6;
    font-weight: 400;
}

.no-results-suggestion {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.no-results-actions {
    margin-top: 30px;
}

.no-results-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    padding: 14px 28px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(27, 94, 163, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.no-results-button:hover {
    background: #164C84;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 163, 0.3);
    color: #fff;
    text-decoration: none;
}

.no-results-button:active,
.no-results-button:focus {
    background: #164C84;
    transform: translateY(0);
    color: #fff;
}

.no-results-button svg {
    width: 16px;
    height: 16px;
}

.mobile-sort {
    display: none;
}

/* Additional Component Styles */
.ifound-results .save-this {
    margin-top: 10px;
    background-color: white;
}

.button.save-this:hover {
    margin-top: 10px;
}

.replace-results-here .total h2 {
    margin-bottom: 0;
}

.listing-results-container.sdfsdfdsf {
    margin: 0 !important;
    gap: 0 !important;
}

.results .new-listing {
    background: #017301;
}

.results .for-sale {
    background: #0B0DA47D;
}

.results .pending {
    background: #BA5917B5;
}

.results .under-contract {
    background: #F6C00294;
}

.results-page .qsearch-button-wrapper,
.results-page .show-map-button-wrapper {
    display: inline-block;
    margin-top: 1px;
}

.search-results-after-map {
    margin: 2px 0 !important;
}

.ifound-dynamic-form {
    border: #ddd 1px solid;
    border-radius: 4px;
    display: inline-block;
    min-height: 50px;
    margin-top: 0px !important;
    overflow: auto !important;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.replace-results-here {
    padding: 0px 3px 8px 8px;
    height: 100%;
    overflow: auto;
    overflow-y: scroll;
    scrollbar-width: none;
}

.site-inner .site-main {
    padding: 0% 0% 1% 0.4% !important
}

.price-sort {
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sort-select-wrap {
    display: flex !important;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.total {
    flex-shrink: 0;
}

.filter-content .sort-select-wrap {
    display: none !important;
}

.filter-toggle {
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    width: 101px;
    display: flex;
    font-weight: 500 !important;
    width: fit-content;
    padding: 5px 15px !important;
    color: #000 !important;
    border: 1px solid rgb(209, 209, 213);
    cursor: pointer;
    letter-spacing: 0px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.filter-toggle i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.filter-toggle.active i {
    transform: rotate(180deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filter-content.active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.close-map-btn:hover {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

button:hover,
input:hover[type="button"],
input:hover[type="reset"],
input:hover[type="submit"],
.button:hover,
button:focus,
input:focus[type="button"],
input:focus[type="reset"],
input:focus[type="submit"],
.button:focus {
    color: #fff;
}

/* Additional Select Styles */
.list_price::after {
    content: '';
    display: none;
    width: 0;
    height: 0;
    border-top: 30px solid #EB1933;
    border-left: 20px solid transparent;
    position: absolute;
    top: 0;
    right: 100%;
}

.mls-class-select-wrap .ifound-wrap:before,
.sort-select-wrap .ifound-wrap:before {
    content: none;
    display: inline-block;
    font-family: 'Font Awesome 5 Pro';
    vertical-align: middle;
    position: absolute;
    right: 13px !important;
    top: 2px;
    text-align: center;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
}

/* ---------- INNER WRAPPER ---------- */
.sort-select-wrap .ifound-wrap {
    width: auto;
}

/* ---------- SELECT BOX DESIGN ---------- */
.sort-select-wrap .sort_select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #fff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    padding: 6px 0px 6px 13px !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    position: relative;
    min-width: 180px;
}

/* ---------- CUSTOM ARROW ICON ---------- */
.sort-select-wrap .sort_select {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* ---------- HOVER EFFECT ---------- */
.sort-select-wrap .sort_select:hover {
    border-color: #888 !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1) !important;
}

/* ---------- FOCUS EFFECT ---------- */
.sort-select-wrap .sort_select:focus {
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2) !important;
}

#ifound_save_this_search-2 .save-this-spinner {
    display: none !important;
}

.ifound-results .listing-id {
    text-align: left !important;
}

.ifound-grid .ifound-results .beds {
    padding-left: 12px !important;
}

.filter-content .ifound-wrap .dynamic-button,
.ifound-wrap .dynamic-input,
.ifound-wrap select.mls_class_select,
.ifound-wrap select.sort_selectt {
    border-radius: 5px !important;
    padding: 5px 7px !important;
}

.filter-content .ifound-wrap .dynamic-button,
.ifound-wrap .dynamic-input,
.ifound-wrap .dynamic-input-label {
    font-size: 14px !important;
}

.fa.fa-times-circle.dynamic-input-remove {
    margin-left: 4px !important;
}

/* Removed incomplete font-family declaration */
.ifound-dynamic-form .dynamic-input {
    background: #4e4e4e !important;
    color: black;
    border-radius: 20px !important;
}

.ifound-dynamic-form .dynamic-input-label {
    padding: 1px !important;
}

.map-heading {
    position: relative !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Blurred background pseudo-element */
.map-heading::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../images/map-loader-img.webp') !important;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: 0;
}

/* Text Overlay with Dark Background */
.map-heading::after {
    content: "Click here to open map";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    cursor: pointer;
    pointer-events: none;
}

.map-heading:hover::before {
    background-image: url('../../images/map-loader-img.webp');
    background-size: cover;
    background-position: center;
    filter: blur(3px);
}

.map-and-palette-wrapper {
    position: relative;
}

.entry-content > [aria-labelledby] {
    padding-left: 64px;
    padding-right: 64px;
}

@media (max-width: 768px) {
    .entry-content > [aria-labelledby] {
        padding-left: 32px;
        padding-right: 32px;
    }
}
.ifound-results[name] {
    transition: opacity 0.2s ease, transform 0.2s ease;
    will-change: opacity;
}

.ifound-results[name].dimmed {
    opacity: 0.4;
}

.ifound-results[name].marker-hover,
.ifound-results[name].active-property {
    opacity: 1 !important;
}

.zoom-marker .zoom-marker-close {
    display: none !important;
}

.button-wrapper.button.save-this .ifound-wrap * {
    display: none !important;
}

.pre-header {
    z-index: 999 !important;
}

.entry-header {
    text-align: center !important;
    padding-top: 15px;
}

.sort-select-wrap .ifound-wrap {
    position: relative;
}

.sort-select-wrap .ifound-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 25px !important;
}

/* Arrow Icon */
.sort-select-wrap .ifound-wrap::after {
    content: "\f107";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    color: #1B5EA3;
    font-size: 16px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.budget-search-container.dynamic-button {
    margin-top: 4px !important;
    margin-bottom: 0px !important;
    height: fit-content;
    padding-bottom: 1px !important;
}

.button.button-invisible.search-button {
    padding-bottom: 8px !important;
    border-radius: 5px;
}

/* Additional Utility Classes */
.full-width-content .content {
    float: none;
    margin-left: auto;
    margin-right: auto;
    width: 100% !important;
    max-width: 100% !important;
}

.page .content .entry {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 40px;
    padding: 0px !important;
}

#campaign-builder,
.dynamic-heading {
    padding: 0px;
}

body.page-template-advanced-search .show-map-button-wrapper,
body.advanced-search .show-map-button-wrapper,
.advanced-search .show-map-button-wrapper,
.show-map-button-wrapper {
    display: none !important;
}

body.page-template-advanced-search .criteria-heading,
body.advanced-search .criteria-heading,
.advanced-search .criteria-heading,
.criteria-heading {
    display: none !important;
}

body.page-template-advanced-search .ifound_save_this_search-2,
body.advanced-search .ifound_save_this_search-2,
.advanced-search .ifound_save_this_search-2,
.ifound_save_this_search-2 {
    display: none !important;
}

body.page-template-advanced-search .map-search,
body.advanced-search .map-search,
.advanced-search .map-search {
    display: none !important;
}

.gm-control-active {
    margin: 0px !important;
    border-radius: 0px !important;
}

.ifound-virtual-tour .button.vt-link {
    border: none;
    border-radius: 0;
    display: block;
    letter-spacing: normal;
    font-size: 1rem;
    padding: 7px;
    color: #fff;
    margin: 0 !important;
}

.gm-style-mtc button {
    font-weight: 500 !important;
    color: #333 !important;
}

#ifound_save_this_search-2 .button.save-this .ifound-wrap,
.widget_ifound_save_this_search .button.save-this .ifound-wrap {
    font-size: 14px !important;
}

#ifound_save_this_search-2 .button.save-this,
.widget_ifound_save_this_search .button.save-this {
    position: static !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    transform: none !important;
    padding: 0 !important;
    border: 1px solid rgb(209, 209, 213) !important;
    cursor: pointer !important;
    -webkit-font-smoothing: antialiased !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    padding: 9px 12px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    width: auto !important;
    border-radius: 5px !important;
}

.ifound-shapes-map {
    width: 100%;
    height: calc(100vh - 173px) !important;
}

/* ==========================================================================
   Layout Adjustments (Map Top, Cards Bottom when Sidebar Present)
   ========================================================================== */

/* Main container - flex layout */
.content-sidebar-wrap {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
}

/* Main content area */
.content-sidebar-wrap #genesis-content {
    flex: 1 1 auto;
    width: auto;
}

/* Sidebar - let theme handle completely */

/* When sidebar is present - stack map and results vertically */
.content-sidebar-wrap:has(.sidebar-primary) #genesis-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Map and results container */
.map-result-res {
    display: flex;
    flex-direction: row; /* Default side-by-side */
    gap: 20px;
    width: 100%;
    height: calc(100vh - 0px);
}

/* When sidebar is present - stack map on top, cards below */
.content-sidebar-wrap:has(.sidebar-primary) .map-result-res,
.content-sidebar-wrap.has-sidebar .map-result-res,
.content-sidebar-wrap.sidebar-active .map-result-res {
    flex-direction: column !important;
    gap: 20px !important;
}

/* Alternative: If sidebar exists in the DOM */
body.sidebar-present .map-result-res,
body.has-sidebar .map-result-res {
    flex-direction: column !important;
    gap: 20px !important;
}

/* Force column layout when any sidebar widget exists */
.sidebar-primary .widget ~ .content-sidebar-wrap .map-result-res,
.content-sidebar-wrap .sidebar-primary ~ #genesis-content .map-result-res {
    flex-direction: column !important;
    gap: 20px !important;
}



/* Map section - normal behavior */
.ifound-shapes-map {
    width: 100%;
    height: calc(100vh - 173px) !important;
}

/* Results section - normal behavior */
.replace-results-here {
    flex: 1 1 auto;
    width: auto;
}

/* When sidebar is present - results take full width below map */
.content-sidebar-wrap:has(.sidebar-primary) .replace-results-here {
    flex: 1 1 100% !important;
    width: 100% !important;
}

/* When no sidebar is present - main content takes full width */
.content-sidebar-wrap:not(:has(.sidebar-primary)) #genesis-content {
    flex: 1 1 100% !important;
    width: 100% !important;
}

/* Force vertical stacking only when sidebar is present */
.content-sidebar-wrap:has(.sidebar-primary) .custom-listing-results-container,
.content-sidebar-wrap.has-sidebar .custom-listing-results-container,
body.sidebar-present .custom-listing-results-container {
    display: flex !important;
    width: 100% !important;
    flex-direction: column !important;
    height : 100% !important;
}
.content-sidebar-wrap:has(.sidebar-primary) .map-heading,
.content-sidebar-wrap.has-sidebar .map-heading,
body.sidebar-present .map-heading {
    position: relative !important;
    width: 100%;
    height: 100vh !important;
    overflow: hidden;
}


/* When no sidebar is present - keep horizontal layout */
.content-sidebar-wrap:not(:has(.sidebar-primary)) .custom-listing-results-container,
body:not(.sidebar-present) .custom-listing-results-container {
    display: flex !important;
    width: 100% !important;
    flex-direction: row !important;
}

@media (min-width: 1600px) {

.content-sidebar-wrap:has(.sidebar-primary) .search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
}
.content-sidebar-wrap:has(.sidebar-primary) .map-expanded.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {

.content-sidebar-wrap {
    display: block !important;
    align-items: flex-start !important;
    gap: 20px !important;
}
.content-sidebar-wrap:not(:has(.sidebar-primary)) .custom-listing-results-container, body:not(.sidebar-present) .custom-listing-results-container {
    display: block!important;
    width: 100% !important;
    flex-direction: row !important;
}

}