/* Resales WebsiteSpain Frontend Styles */

/* CSS Reset for plugin elements */
.resales-search-form *,
.resales-property-grid *,
.resales-property-detail *,
.resales-featured-properties *,
.resales-property-map-container *,
.resales-quick-search * {
    box-sizing: border-box;
}

/* Main Container */
.resales-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SEARCH FORM ===== */
.resales-search-form {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    --resales-label-color: #E86822;
    --resales-button-color: #E86822;
}

.resales-form-horizontal .resales-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.resales-form-vertical .resales-form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resales-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.resales-form-group label {
    font-weight: 600;
    color: var(--resales-label-color, #E86822);
    margin-bottom: 5px;
    font-size: 14px;
}

.resales-form-group input,
.resales-form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
}

/* Select2 overrides - prevent text clipping */
.resales-search-form .select2-container .select2-selection--single {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.resales-search-form .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
}

.resales-search-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.resales-search-form .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
}

.resales-search-form .select2-container--default .select2-selection--single:focus,
.resales-search-form .select2-container--default.select2-container--focus .select2-selection--single,
.resales-search-form .select2-container--default.select2-container--focus .select2-selection--multiple {
    outline: none;
    border-color: #E86822;
    box-shadow: 0 0 0 2px rgba(232, 104, 34, 0.15);
}

/* Force font-size 14px on Property Type and Location Select2 dropdowns */
.resales-search-form select[name="property_type[]"],
.resales-search-form select[name="location[]"],
.resales-filters-sidebar select[name="property_type[]"],
.resales-filters-sidebar select[name="location[]"] {
    font-size: 14px !important;
}

.resales-search-form select[name="property_type[]"] + .select2-container .select2-selection--multiple,
.resales-search-form select[name="location[]"] + .select2-container .select2-selection--multiple,
.resales-filters-sidebar select[name="property_type[]"] + .select2-container .select2-selection--multiple,
.resales-filters-sidebar select[name="location[]"] + .select2-container .select2-selection--multiple {
    font-size: 14px !important;
}

.resales-search-form select[name="property_type[]"] + .select2-container .select2-selection--single,
.resales-search-form select[name="location[]"] + .select2-container .select2-selection--single,
.resales-filters-sidebar select[name="property_type[]"] + .select2-container .select2-selection--single,
.resales-filters-sidebar select[name="location[]"] + .select2-container .select2-selection--single {
    font-size: 14px !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    font-size: 14px !important;
}

.resales-form-group input:focus,
.resales-form-group select:focus {
    outline: none;
    border-color: #E86822;
    box-shadow: 0 0 0 2px rgba(232, 104, 34, 0.15);
}

.resales-price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
}

.resales-price-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.resales-price-row .resales-price-group {
    max-width: 100%;
}

/* Price Slider (noUiSlider) */
.resales-price-slider {
    margin: 10px 8px 0;
}

.resales-price-slider .noUi-connect {
    background: #E86822;
}

.resales-price-slider .noUi-handle {
    border-radius: 50%;
    width: 20px !important;
    height: 20px !important;
    right: -10px !important;
    top: -6px !important;
    background: #E86822;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.resales-price-slider .noUi-handle::before,
.resales-price-slider .noUi-handle::after {
    display: none;
}

.resales-price-slider .noUi-target {
    background: #e1e5e9;
    border: none;
    height: 6px;
    box-shadow: none;
}

.resales-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.resales-filters-sidebar .resales-price-slider {
    margin: 10px 4px 0;
}

.resales-search-button {
    background: var(--resales-button-color, #E86822);
    color: #fff;
    border: 1px solid var(--resales-button-color, #E86822);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
}

.resales-search-button:hover {
    background: var(--resales-button-color, #E86822);
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.resales-search-button:active {
    background: var(--resales-button-color, #E86822);
    filter: brightness(0.85);
    transform: translateY(0);
}

/* Advanced Search */
.resales-form-advanced {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.resales-features-section,
.resales-must-have-section {
    margin: 20px 0;
}

.resales-features-section h4,
.resales-must-have-section h4 {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.resales-toggle-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resales-toggle-header .toggle-icon {
    font-size: 16px;
    font-weight: bold;
}

.resales-features-grid,
.resales-must-have-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.resales-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
    word-break: break-word;
    overflow-wrap: break-word;
}

.resales-checkbox-label:hover {
    background: #fef0e8;
    border-color: #E86822;
}

.resales-checkbox-label input[type="checkbox"] {
    margin: 0;
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    left: 12px;
    pointer-events: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
}

.resales-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #E86822;
    border-color: #E86822;
}

.resales-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* Feature category sections */
.resales-feature-category {
    margin-bottom: 12px;
    grid-column: 1 / -1;
}

.resales-feature-category:last-child {
    margin-bottom: 0;
}

.resales-feature-category-title {
    font-size: 13px;
    font-weight: 600;
    color: #E86822;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e1e5e9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resales-feature-category .resales-checkbox-label {
    margin-bottom: 4px;
}

.resales-toggle-advanced {
    margin-top: 15px;
    text-align: center;
}

.resales-toggle-button {
    background: transparent;
    border: 1px solid #E86822;
    color: #E86822;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.resales-toggle-button:hover {
    background: #E86822;
    color: #fff;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.resales-toggle-button.active .toggle-icon {
    transform: rotate(180deg);
}

/* ===== SEARCH RESULTS ===== */
.resales-search-results-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin: 20px 0;
}

.resales-filters-sidebar {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
}

.resales-filters-sidebar h3 {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #E86822;
    padding-bottom: 10px;
}

.resales-filters-sidebar .resales-features-grid,
.resales-filters-sidebar .resales-must-have-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: visible;
}

.resales-results-main {
    min-width: 0;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
}

.resales-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e1e5e9;
    flex-wrap: wrap;
    gap: 15px;
}

.resales-results-count {
    font-size: 16px;
    color: #000000;
    font-weight: 600;
}

.count-number {
    color: #E86822;
    font-weight: 700;
}

.resales-results-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.resales-sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resales-sort-options label {
    font-weight: 500;
    color: #000000;
    font-size: 14px;
    white-space: nowrap;
}

.resales-sort-options select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.resales-layout-toggle {
    display: flex;
    gap: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.layout-btn {
    background: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border-right: 1px solid #ddd;
}

.layout-btn:last-child {
    border-right: none;
}

.layout-btn:hover {
    background: #f8f9fa;
}

.layout-btn.active {
    background: #E86822;
    color: #fff;
}

/* Loading States */
.resales-results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.resales-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e1e5e9;
    border-top: 3px solid #E86822;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* ===== PROPERTY GRID ===== */
.resales-property-grid {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

.resales-layout-grid.resales-columns-1 {
    grid-template-columns: 1fr;
}

.resales-layout-grid.resales-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.resales-layout-grid.resales-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.resales-layout-grid.resales-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.resales-layout-list {
    grid-template-columns: 1fr;
}

.resales-layout-masonry {
    column-count: 3;
    column-gap: 25px;
}

/* Property Item */
.resales-property-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    break-inside: avoid;
    margin-bottom: 25px;
}

.resales-property-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.resales-property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.resales-property-image img,
.no-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resales-property-item:hover .resales-property-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
}

.property-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.property-image-carousel .carousel-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-image-carousel .carousel-image.active {
    display: block;
}

.image-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-carousel-control.prev {
    left: 10px;
}

.image-carousel-control.next {
    right: 10px;
}

.property-image-carousel:hover .image-carousel-control {
    opacity: 1;
}

.resales-property-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.property-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resales-property-item:hover .property-actions {
    opacity: 1;
}

.action-save {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-save:hover {
    background: #fff;
    transform: scale(1.1);
}

.image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.resales-property-grid .resales-property-content {
    padding: 20px 10px;
}

.property-header {
    margin-bottom: 15px;
}

.property-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
}

.property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: #E86822;
}

.property-type {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.resales-property-details {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.detail-item .icon {
    font-size: 16px;
}

.detail-item .value {
    font-weight: 600;
    color: #000000;
}

.detail-item .label {
    color: #666;
}

.property-features {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    background: #fef5ef;
    color: #E86822;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.more-features {
    background: #e1e5e9;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.property-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.property-reference {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.property-updated {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* List Layout Specific */
.resales-layout-list .resales-property-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 200px;
}

.resales-layout-list .resales-property-image {
    height: 100%;
}

.resales-layout-list .resales-property-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== PROPERTY DETAIL ===== */
.resales-property-detail {
    width: 100%;
    margin: 0;
    padding: 0;
}

.resales-property-header {
    padding: 0;
    margin-bottom: 30px;
    background: none;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 20px;
}

.property-title-section h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.property-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.property-meta-section {
    text-align: right;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.property-reference,
.property-updated {
    font-size: 14px;
    opacity: 0.9;
    margin: 5px 0;
}

.resales-property-content {
    display: block;
}

.resales-property-main {
    /*padding: 30px;*/
}

/* Gallery */
.resales-gallery {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.resales-gallery-carousel .resales-carousel-main {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.resales-gallery-carousel #main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    pointer-events: all;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.resales-carousel-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    background: #f8f9fa;
}

.resales-carousel-thumbs .thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.resales-carousel-thumbs .thumb:hover,
.resales-carousel-thumbs .thumb.active {
    opacity: 1;
    border-color: #E86822;
}

.resales-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

/* Lightbox */
.resales-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.resales-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.resales-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* Property Information */
.resales-basic-info h3,
.resales-description h3,
.resales-features h3,
.resales-map h3 {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #E86822;
    padding-bottom: 10px;
}

.resales-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #E86822;
}

.info-item .label {
    font-weight: 500;
    color: #666;
}

.info-item .value {
    font-weight: 600;
    color: #000000;
}

.description-content {
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fef5ef;
    border-radius: 4px;
    font-size: 14px;
}

.feature-icon {
    color: #E86822;
    font-weight: bold;
}

/* Contact Sidebar */

/* ===== FEATURED PROPERTIES ===== */
.resales-featured-properties {
    margin: 20px 0;
}

.resales-featured-properties h3 {
    color: #000000;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

.resales-featured-grid {
    display: grid;
    gap: 20px;
}

.resales-featured-carousel {
    position: relative;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #000000;
}

.carousel-btn:hover {
    background: #E86822;
    color: #fff;
    border-color: #E86822;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.resales-featured-item {
    flex: 0 0 auto;
    margin-right: 20px;
}

.property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== PROPERTY MAP ===== */
.resales-property-map-container {
    position: relative;
    margin: 20px 0;
}

.map-search-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.map-legend {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 12px;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-marker.available {
    background: #000000;
}

.legend-marker.featured {
    background: #ff6b35;
}

.map-info-window {
    max-width: 200px;
}

.map-info-window img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.map-info-window h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #000000;
}

.map-info-window .price {
    font-weight: 600;
    color: #E86822;
    margin: 0 0 5px 0;
}

.map-info-window .type,
.map-info-window .details {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px 0;
}

.view-details {
    display: inline-block;
    background: #E86822;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 11px;
    margin-top: 5px;
}

/* ===== QUICK SEARCH ===== */
.resales-quick-search {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    margin: 20px 0;
}

.resales-quick-compact {
    background: #fff;
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.resales-quick-inline .quick-field {
    flex: 1;
    min-width: 120px;
}

.quick-field select,
.quick-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.quick-search-btn {
    background: #000000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-search-btn:hover {
    background: #E86822;
}

/* ===== PAGINATION ===== */
.resales-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #000000;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #fef5ef;
    border-color: #E86822;
}

.page-btn.active {
    background: #E86822;
    color: #fff;
    border-color: #E86822;
}

.page-btn:disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

/* WordPress paginate_links plain output */
.resales-pagination a,
.resales-pagination span.current,
.resales-pagination span.dots {
    background: #fff;
    border: 1px solid #ddd;
    color: #000000;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.resales-pagination a:hover {
    background: #fef5ef;
    border-color: #E86822;
    color: #000000;
}

.resales-pagination span.current {
    background: #E86822;
    color: #fff;
    border-color: #E86822;
    cursor: default;
}

.resales-pagination span.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* ===== LOAD MORE ===== */
.resales-load-more-container {
    text-align: center;
    margin: 30px 0;
}

.resales-load-more-btn {
    background: #fff;
    border: 2px solid #E86822;
    color: #E86822;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resales-load-more-btn:hover {
    background: #E86822;
    color: #fff;
}

/* ===== SIMILAR PROPERTIES ===== */

/* ===== PROPERTY SHOWCASE ===== */
.resales-property-showcase {
    margin: 20px 0;
}

/* ===== ERROR STATES ===== */
.resales-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
    text-align: center;
}

.resales-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Debug mode styles para añadir a assets/frontend.css */

/* Debug Information Panel */
.resales-debug-info {
    background: #f8f9fa !important;
    border: 2px solid #007cba !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    border-radius: 4px !important;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    box-shadow: 0 2px 4px rgba(0, 123, 186, 0.1) !important;
}

.resales-debug-info h4 {
    margin: 0 0 10px 0 !important;
    color: #007cba !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
}

.resales-debug-info h4 .dashicons {
    margin-right: 5px !important;
    font-size: 16px !important;
}

.resales-debug-info h4 small {
    font-weight: normal !important;
    color: #666 !important;
    margin-left: 10px !important;
}


.resales-debug-info > div > div {
    background: #fff !important;
    padding: 10px !important;
    border-radius: 3px !important;
    border: 1px solid #e1e5e9 !important;
}

.resales-debug-info strong {
    color: #000000 !important;
    font-weight: 600 !important;
}

.resales-debug-info pre {
    background: #fff !important;
    padding: 8px !important;
    margin: 5px 0 !important;
    border-radius: 2px !important;
    overflow-x: auto !important;
    max-height: 150px !important;
    border: 1px solid #e1e5e9 !important;
    font-size: 11px !important;
}

/* Success/Error status colors */
.resales-debug-info .status-success {
    color: #28a745 !important;
    font-weight: 600 !important;
}

.resales-debug-info .status-error {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

/* Responsive adjustments for debug panel */
@media (max-width: 768px) {
    .resales-debug-info {
        margin: 15px 0 !important;
        padding: 12px !important;
        font-size: 11px !important;
    }
    
    .resales-debug-info > div {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .resales-debug-info h4 {
        font-size: 13px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .resales-debug-info h4 small {
        margin-left: 0 !important;
        margin-top: 2px !important;
    }
}

/* Hide debug from print */
@media print {
    .resales-debug-info {
        display: none !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .resales-search-results-container {
        grid-template-columns: 1fr;
    }
    
    .resales-filters-sidebar {
        order: 2;
        position: static;
    }
    
    .resales-form-horizontal .resales-form-row {
        grid-template-columns: 1fr;
    }

    .resales-form-horizontal .resales-basic-fields {
        display: flex;
        flex-direction: column;
    }

    .resales-form-horizontal .resales-basic-fields .resales-submit-group {
        order: 99;
    }
    
    .resales-results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .resales-results-controls {
        justify-content: space-between;
    }
    
    .resales-property-grid {
        grid-template-columns: 1fr !important;
    }
    
    .resales-layout-list .resales-property-item {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .resales-layout-list .resales-property-image {
        height: 200px;
    }
    
    .resales-property-content {
        gap: 20px;
    }

    .resales-property-header {
        flex-direction: column;
        text-align: left;
    }
    
    .property-meta-section {
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .resales-quick-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .resales-featured-properties.resales-columns-2,
    .resales-featured-properties.resales-columns-3,
    .resales-featured-properties.resales-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .resales-layout-masonry {
        column-count: 1;
    }
    
    .resales-info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .resales-carousel-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
}

@media (max-width: 480px) {
    .resales-container {
        padding: 0 10px;
    }
    
    .resales-search-form,
    .resales-filters-sidebar {
        padding: 15px;
    }

    .resales-property-main {
        padding: 20px 15px;
    }
    
    .property-title-section h1 {
        font-size: 22px;
    }
    
    .property-price {
        font-size: 20px;
    }
    
    .resales-gallery-carousel .resales-carousel-main {
        height: 250px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .resales-search-form,
    .property-actions,
    .carousel-nav {
        display: none !important;
    }

    .resales-property-content {
        display: block;
    }
    
    .resales-property-detail {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .resales-property-header {
        background: none !important;
        color: #000 !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.resales-search-button:focus,
.submit-btn:focus,
.page-btn:focus,
.quick-search-btn:focus {
    outline: 2px solid #E86822;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .resales-property-item {
        border-width: 2px;
    }
    
    .resales-search-button,
    .submit-btn {
        border: 2px solid #000;
    }
}