/* =====================================================
   Realworks V3 - Archive Page Styles
   ===================================================== */

/* --- Reset & Base --- */
.rwv3-archive-wrap {
    display: flex;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #1a2b3c;
}


.rwv3-archive-wrap *,
.rwv3-archive-wrap *::before,
.rwv3-archive-wrap *::after {
    box-sizing: border-box;
}

/* --- Sidebar --- */
.rwv3-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.rwv3-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E5E5E5;
}

.rwv3-sidebar-header h2 {
    color: var(--Black, #171717);
    font-family: Poppins;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.026px;
    margin: 0;
}

button#rwv3-filters-reset {
    color: #AEAEAE !important;
    text-align: right !important;
    font-family: Poppins !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    letter-spacing: 0.024px !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
}

button#rwv3-filters-reset:hover {
    text-decoration: none;
    color: #095C74 !important;
    background-color: transparent !important;
}

/* Filter Groups */
.rwv3-filter-group {
    margin-bottom: 24px;
}

.rwv3-filter-group h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1a2b3c;
}

/* Price Range Slider */
.rwv3-price-slider-wrap {
    padding: 0 4px;
}

.rwv3-price-range-track {
    position: relative;
    height: 4px;

    background: #1a5276;
    border-radius: 2px;
    margin: 12px 0;
}

.rwv3-price-range-fill {
    position: absolute;
    height: 100%;
    background: #d1d5db;
    border-radius: 2px;
}

.rwv3-price-range-thumb {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #1a5276;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
    outline: 1px solid #1a5276;
}

.rwv3-price-range-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0 0 4px rgba(26, 82, 118, 0.15);
}

.rwv3-price-range-thumb.rwv3-thumb-min {
    left: 0%;
}

.rwv3-price-range-thumb.rwv3-thumb-max {
    left: 100%;
}

.rwv3-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Checkbox Filters */
.rwv3-checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rwv3-checkbox-list li {
    margin-bottom: 8px;
}

.rwv3-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
}

.rwv3-checkbox-label input[type="checkbox"] {
    display: none;
}

.rwv3-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: #fff;
}

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

.rwv3-checkmark svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.rwv3-checkbox-label input[type="checkbox"]:checked+.rwv3-checkmark svg {
    opacity: 1;
}

/* Radio Filters */
.rwv3-radio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rwv3-radio-list li {
    margin-bottom: 8px;
}

.rwv3-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
}

.rwv3-radio-label input[type="radio"] {
    display: none;
}

.rwv3-radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: #fff;
}

.rwv3-radio-label input[type="radio"]:checked+.rwv3-radiomark {
    border-color: #1a5276;
}

.rwv3-radiomark::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a5276;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.rwv3-radio-label input[type="radio"]:checked+.rwv3-radiomark::after {
    opacity: 1;
}

/* --- Main Content --- */
.rwv3-main-content {
    flex: 1;
    min-width: 0;
}

/* Results Header */
.rwv3-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.rwv3-results-count {
    font-size: 18px;
    font-weight: 600;
    color: #1a2b3c;
}

.rwv3-sort-select {
    padding: 10px 36px 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    max-width: 300px;
    width: 100%;
}

.rwv3-sort-select:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

/* --- Property Grid --- */
.rwv3-property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Property Card --- */
.rwv3-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.rwv3-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.rwv3-card:hover * {
    color: #fff;
    fill: #fff;
}

.rwv3-card:hover .rwv3-card-image::before {
    transform: translate(-50%, -50%) scale(1);
}

.rwv3-card:hover .rwv3-card-body {
    background-color: #095C74;
}

.rwv3-card:hover img {
    opacity: 0.7;
}

/* Card Image */
.rwv3-card-image {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 260px;
    transition: all 0.2s ease;
}

.rwv3-card-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 70px;
    height: 70px;
    background-image: url(http://localhost/makelarsv2/wp-content/uploads/2026/02/yellow-arrow.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: all 0.3s ease;
}

.rwv3-card-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.rwv3-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    font-size: 14px;
}

.rwv3-card-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
}

.rwv3-card-status.status-verkocht {
    background: rgba(220, 38, 38, 0.9);
}

.rwv3-card-status.status-verhuurd {
    background: rgba(220, 38, 38, 0.9);
}

.rwv3-card-status.status-onder_bod {
    background: rgba(234, 179, 8, 0.9);
    color: #1a2b3c;
}

.rwv3-card-status.status-onder_optie {
    background: rgba(234, 179, 8, 0.9);
    color: #1a2b3c;
}

.rwv3-card-status.status-verkocht_onder_voorbehoud {
    background: rgba(249, 115, 22, 0.9);
}

.rwv3-card-status.status-verhuurd_onder_voorbehoud {
    background: rgba(249, 115, 22, 0.9);
}

/* Card Body */
.rwv3-card-body {
    padding: 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #EBEBEB;
    border-top: none;
    background: #fff;
    justify-content: space-between;
}

.rwv3-card-header {
    display: grid;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
}


.rwv3-card-address {
    overflow: hidden;
    color: var(--Primary, #095C74);
    text-overflow: ellipsis;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px;
    margin: 0;
}


.rwv3-card-price {
    color: var(--Secondary, #F7A607) !important;
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
}

.rwv3-card-city {
    font-size: 12px;
    color: #6b7280;
}

/* Card Type */
.rwv3-card-type {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--Dark, #101010);
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
    /* 216.667% */
}

.rwv3-card-type svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Card Features */
.rwv3-card-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    white-space: nowrap;
    justify-content: space-between;
}

.rwv3-card-feature {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #095C74;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.048px;
}


.rwv3-card-feature svg,
.rwv3-card-feature img {
    width: 15px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* --- Pagination --- */
.rwv3-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
}


.rwv3-pagination .rwv3-page-prev,
.rwv3-pagination .rwv3-page-next {
    padding: 0;
    border: none;
}

.rwv3-pagination .rwv3-page-prev svg,
.rwv3-pagination .rwv3-page-next svg {
    width: 26px;
    height: 26px;
}

.rwv3-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 0;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.rwv3-page-btn:hover {
    border-color: #1a5276;
    color: #1a5276;
    background: transparent;
}

.rwv3-page-btn.active {
    background: #1a5276;
    border-color: #1a5276;
    color: #fff;
}

.rwv3-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.rwv3-page-btn svg {
    width: 26px;
    height: 26px;
}

/* --- Loading Overlay --- */
.rwv3-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.rwv3-main-content.is-loading .rwv3-loading-overlay {
    display: flex;
}

.rwv3-main-content.is-loading .rwv3-property-grid {
    opacity: 0.4;
    pointer-events: none;
}

.rwv3-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #1a5276;
    border-radius: 50%;
    animation: rwv3-spin 0.6s linear infinite;
}

/* Mobile filter toggle (hidden on desktop) */
[type="button"].rwv3-mobile-filter-toggle {
    display: none;
    max-width: max-content;
    color: #AEAEAE !important;
    text-align: right !important;
    font-family: Poppins !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    letter-spacing: 0.024px !important;
    padding: 0 !important;
    border: none !important;
    margin: 0;
    background-color: transparent !important;
}
[type="button"].rwv3-mobile-filter-toggle:hover{
    color: #095C74 !important;
}

/* WordPress theme overrides */
.rwv3-archive-wrap a {
    text-decoration: none;
    color: inherit;
}

.rwv3-archive-wrap h1,
.rwv3-archive-wrap h2,
.rwv3-archive-wrap h3 {
    line-height: 1.3;
}

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

/* --- No Results --- */
.rwv3-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .rwv3-property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .rwv3-archive-wrap {
        flex-direction: column;
        gap: 24px;
        padding: 20px 16px;
    }

    .rwv3-sidebar {
        width: 100%;
    }

    .rwv3-sidebar-filters {
        display: none;
    }

    .rwv3-sidebar-filters.is-open {
        display: block;
        margin-top: 20px;
    }

    [type="button"].rwv3-mobile-filter-toggle {
        display: block;
        font-size: 14px !important;
    }

    .rwv3-property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .rwv3-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rwv3-sort-select {
        max-width: 100%;
    }

    .rwv3-sidebar-header {
        margin: 0;
    }

    .rwv3-sidebar-header{
        flex-direction: column;
        align-items: flex-start;
    }

    .rwv3-sidebar-header .btn-group{
        display: inline-flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    }

    body .rwv3-sidebar-header .btn-group button,
    body .rwv3-sidebar-header .btn-group button#rwv3-filters-reset{
      padding: 10px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    width: 50%;
    max-width: 50%;
    text-align: center !important;
    }
}

@media (max-width: 520px) {
    .rwv3-property-grid {
        grid-template-columns: 1fr;
    }

    .rwv3-card-features {
        flex-wrap: wrap;
        gap: 10px;
    }
}