/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.sp-idx-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 16px; /* small side padding for mobile */
}
.sp-idx-agent-contact-information {
    margin-bottom: 10px;
}
.sp-idx-contact-item strong, .sp-idx-contact-item span, .sp-idx-contact-item a{
    font-size: 14px;
}
.sp-idx-container h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sp-idx-address {
    font-size: 14px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    line-height: 16px;
}
.sp-idx-price {
    font-size: 34px;
    font-weight: bold;
}
.sp-idx-quick-facts .sp-idx-mls {
    font-weight: 400;
    font-size: 15px;
    margin: 10px 0;
}
.sp-idx-listing-updated {
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
}
.sp-idx-inner-container {
    display: flex;
    gap: 50px;
}

.sp-idx-sidebar {
    width: 35%;
}

.sp-idx-main-content {
    width: 70%;
}

.sp-idx-related-listings {
    width: 100%;
    margin-bottom: 20px;
}
.sp-results-grid {
    max-width: 100%;
    overflow-x: auto;
}
.sp-idx-related-listings h4 {
    text-align: center;
}
.sp-idx-carousel {
    width: 100%;
    margin-bottom: 20px;
}
.sp-idx-listing-features {
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .sp-idx-inner-container {
        flex-direction: column;
    }

    .sp-idx-sidebar,
    .sp-idx-main-content {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .sp-idx-container {
        padding: 0 10px;
    }

    .sp-idx-inner-container {
        gap: 12px;
    }
}

.sp-idx-cta {
    display: flex;
    flex-direction: column;
}
.sp-idx-cta a:hover {
    color: #FFFFFF;
    background: rgb(86, 84, 85);
}
.sp-idx-main-image {
    width: 100%;
    height: 450px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.sp-idx-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-idx-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.sp-idx-agent-name {
	margin: 10px 0px;
	font-weight: bold;
}

.sp-idx-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sp-idx-thumb:hover {
    opacity: 1;
}

.sp-idx-thumb.active {
    border-color: #0073aa;
    opacity: 1;
}

/**
 * Styles for Listing Widget
 */

/* Container for listings */
.sp-listing-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Term buttons row */
.sp-idx-term-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.sp-idx-term-buttons, .sp-idx-sidebar .sp-idx-cta a {
    background: #D3471C;
    text-transform: uppercase;
    padding: 10px 15px;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    width: 170px;
    border-radius: 4px;
    letter-spacing: 1px;
    font-family: Montserrat, sans-serif;
    box-shadow: rgba(73, 73, 73, 0.37) 0px 3px 15px 1px;
}

.sp-idx-sidebar .sp-idx-cta a {
    display: block;
    text-align: center;
    width: auto;
    margin-bottom: 10px;
}

.sp-idx-term-buttons:hover,
.sp-idx-term-buttons.active {
    cursor: pointer;
    background: rgb(86, 84, 85);
}

/* Listing grid */
.sp-idx-listing-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sp-idx-listing-container.active {
    display: grid;
}

.sp-idx-listing {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
}

.sp-idx-listing img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 10px;
}

.sp-idx-listing h2 {
    font-size: 16px;
    margin-bottom: 0;
    color: #565455;
}

.sp-idx-listing h2 span {
    display: block;
    text-transform: capitalize;
}

.sp-idx-listing span.sp-by-text {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 10px;
    font-size: 12px;
    color: rgb(87, 85, 86);
    border-bottom: 1px solid #eee;
}

.sp-idx-listing-meta {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 400;
    color: rgb(89, 87, 88);
}

/* ========================= */
/*      RESPONSIVE BREAKS    */
/* ========================= */

@media (max-width: 992px) {
    .sp-idx-listing-container.active {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-idx-listing img {
        height: 220px;
    }

    .sp-idx-term-buttons {
        width: 150px;
        font-size: 13px;
        padding: 8px 10px;
    }
}

@media (max-width: 600px) {
    .sp-listing-container {
        padding: 0 10px;
    }

    .sp-idx-listing-container.active {
        grid-template-columns: 1fr;
    }

    .sp-idx-listing img {
        height: 200px;
    }

    .sp-idx-term-buttons-container {
        justify-content: center;
    }

    .sp-idx-term-buttons {
        width: 100%;
        max-width: 260px;
    }
}


/**
 * Styles for Autocomplete Form
 */
/* Wrapper */
.sp-idx-no-results {
	font-size: 14px;
	color: #000000;
}
#sp_idx_autocomplete {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

/* Inner container centered with max width */
#sp_idx_autocomplete .sp-idx-inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    position: relative;
}


.sp-idx-autocomplete-form-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
}
#sp-idx-autocomplete-form-container label {
	line-height: 25px;
}
@media (min-width: 768px) {
    #sp-idx-autocomplete-form-container label {
        width: 720px;
    }

}
/* Input */
#sp-idx-autocomplete-input {
    width: 100%;
    min-width: 400px;
    max-width: 1000px;
    line-height: 30px;
    padding: 6px 10px;
    box-sizing: border-box;
	height: 45px !important;
}

/* Button */
.sp-idx-autocomplete-form-container button, #sp-search-apply, #sp-search-map {
    background: #D3471C;
    text-transform: uppercase;
    padding: 10px 15px;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    width: 200px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: rgba(73, 73, 73, 0.37) 0px 3px 15px 1px;
    cursor: pointer;
    text-align: center !important;
}

/* Results dropdown */
#sp_idx_autocomplete .sp-idx-autocomplete-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 720px;
    margin-top: 8px;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    z-index: 1020;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* List styles */
.sp-idx-autocomplete-list {
    list-style: none;
    padding: 0;
    margin: 0;
	font-size: 14px !important;
}

.sp-idx-autocomplete-item {
	text-align: left !important;
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.sp-idx-autocomplete-item:hover {
    background: #eee;
}
.sp-idx-autocomplete-item:last-child {
    border-bottom: none;
}

.sp-idx-autocomplete-item a {
    text-decoration: none;
    color: #333;
    display: block;
}


@media (max-width: 768px) {
    #sp_idx_autocomplete .sp-idx-inner-container {
        max-width: 100%;
    }

    .sp-idx-autocomplete-form-container {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-idx-autocomplete-form-container button {
        width: 100%;
    }

    #sp_idx_autocomplete .sp-idx-autocomplete-results {
        max-width: 100%;
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    #sp_idx_autocomplete {
        padding: 0 10px;
    }

    #sp_idx_autocomplete-input {
        max-width: 100%;
    }
}
.sp-search-controls {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 16px;
}
.sp-search-filters {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
#sp-search-q {
    width: 70%;
    padding: 10px;
    border-radius: 6px;
}
#sp-search-apply, #sp-search-map {
    margin-bottom: 16px;
}

.sp-filter {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 14px;
    width: 100%;
    margin-bottom: 16px;
}
.sp-filter label {
    font-weight: 600;
    font-size: 14px;
}
.sp-filter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

#sp-search-keyword {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#sp-search-btn {
    margin-top: 10px;
    width: 100%;
    background: #D3471C;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.sp-range-slider {
    margin-top: 6px;
}

.sp-results-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.sp-idx-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
@media (max-width: 992px) {
    .sp-search-filters { grid-template-columns: 1fr; }
    .sp-results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .sp-results-grid { grid-template-columns: 1fr; }
}


.sp-filters {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}


/* Scope to your search page wrapper to increase specificity */
.sp-listing-search-page .noUi-connect {
    background: #D3471C !important;
}

.sp-listing-search-page .noUi-target {
    background: #eee !important;
    border: none !important;
    box-shadow: none !important;
}

.sp-listing-search-page .noUi-handle {
    background: #D3471C !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    cursor: pointer;
}

/* remove default handle bars */
.sp-listing-search-page .noUi-handle:before,
.sp-listing-search-page .noUi-handle:after {
    display: none !important;
}

/* size/position the circle handles */
.sp-listing-search-page .noUi-horizontal .noUi-handle {
    width: 20px !important;
    height: 20px !important;
    right: -10px !important;
    top: -7px !important;
}

/* optional: thinner track */
.sp-listing-search-page .noUi-horizontal {
    height: 6px !important;
}
.sp-listing-search-page .noUi-connects {
    border-radius: 3px !important;
}

#sp-search-results {
    margin-bottom: 20px;
}
.sp-search-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#sp-search-clear {
    text-transform: uppercase;
    padding: 10px 15px;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    width: 200px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: rgba(73, 73, 73, 0.37) 0px 3px 15px 1px;
    cursor: pointer;
    background: rgb(86, 84, 85);
    margin-bottom: 16px;
}

#sp-search-clear:hover {
    background: #D3471C;
}

#sp-search-apply:hover, #sp-search-map:hover {
    background: rgb(86, 84, 85);
}

.sp-no-results {
    width: 100%;
    padding: 20px;
    border: 1px solid #eee;
}
#listing-sidebar {
    height: 60vh;
}
#listing-list {
    max-height: 90%;
    overflow-y: auto;
}

.sp-idx-autocomplete-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    font-size: 14px;
    color: #565455;
}

.sp-idx-autocomplete-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: #D3471C; /* brand color */
    border-radius: 50%;
    animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

