#rem_plugin {
    /*margin-top: 30px;*/
}

.properties-archive-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

#rem_plugin #properties-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 18px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Top layout always maintains max-width 1400px */
.top-map-layout #properties-list {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Responsive grid for side draggable view only */
.side-map-layout .split-left #properties-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    max-width: 100% !important;
}

/* Keep old layout with max-width 1400px for top layout */
.top-map-layout #properties-list {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.top-map-layout .properties-archive-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Ensure filter container matches properties container width */
#rem_plugin .filter-drawer-container,
#rem_plugin .properties-filter-form {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive breakpoints for side layout only */
@media (max-width: 1400px) {
    .side-map-layout .split-left #properties-list {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }
    /* Top layout keeps original responsive behavior with max-width */
    .top-map-layout #properties-list {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        max-width: 1400px !important;
    }
}

@media (max-width: 1200px) {
    .side-map-layout .split-left #properties-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }
    /* Top layout keeps original responsive behavior with max-width */
    .top-map-layout #properties-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        max-width: 1400px !important;
    }
}

@media (max-width: 768px) {
    .side-map-layout .split-left #properties-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Top layout keeps original responsive behavior with max-width */
    .top-map-layout #properties-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        padding: 12px;
        max-width: 1400px !important;
    }
}

@media (max-width: 480px) {
    .side-map-layout .split-left #properties-list {
        grid-template-columns: 1fr !important;
    }
    /* Top layout keeps original responsive behavior with max-width */
    .top-map-layout #properties-list {
        grid-template-columns: 1fr !important;
        max-width: 1400px !important;
    }
}

.property-card-wrapper {
    display: flex;
    justify-content: center;
}

.property-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 400px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.property-badge {
    background: #f1f5f9;
    color: #1e40af;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-block;
    width: fit-content;
    text-transform: capitalize;
}

.property-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.property-location {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #eee;

}

.property-location i {
    color: #999;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 10px;
}

.property-meta .label {
    font-weight: 600;
    color: #1f2937;
}

.property-card-link {
    text-decoration: none !important;
    color: inherit;
}

.property-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.property-card-image-placeholder {
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 18px;
}

.property-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-type {
    display: inline-block;
    background-color: #e8f0fe;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.property-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.property-location {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Ensure consistent spacing between cards */
.property-card + .property-card { margin-top: 0; }

/* Normalize headings inside cards */
.property-title { margin: 0 0 6px 0; line-height: 1.3; }

/* Responsive tightening */
@media (max-width: 600px) {
    #rem_plugin #properties-list { grid-template-columns: 1fr; padding: 12px; }
}

#rem_plugin .properties-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    box-sizing: border-box;
}

#rem_plugin #properties-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    box-sizing: border-box;
}

#rem_plugin .pagination-btn {
    padding: 8px 15px;
    background-color: #fff;
    color: #28a745;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #28a745;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px;
}

#rem_plugin .pagination-btn:hover {
    background-color: #28a745;
    color: #fff;
}

#rem_plugin .pagination-btn.active {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
    font-weight: bold;
}

#rem_plugin .no-properties {
    text-align: center;
    font-size: 16px;
    color: #888;
    padding: 40px;
}
#rem_plugin .property-card-link {
    text-decoration: none;
    color: inherit;
}

#rem_plugin .property-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

#rem_plugin .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#rem_plugin .badge-type {
    display: inline-block;
    background: #eef2f7;
    color: #333;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
    text-transform: capitalize;
    margin-bottom: 8px;
}

#rem_plugin .property-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin: 0;
}

#rem_plugin .property-price,
#rem_plugin .property-area,
#rem_plugin .property-location,
#rem_plugin .property-updated {
    font-size: 14px;
    color: #444;
    margin: 0;
}

#rem_plugin .property-location i {
    margin-right: 6px;
    color: #888;
}

#rem_plugin .property-price strong,
#rem_plugin .property-area strong,
#rem_plugin .property-updated strong {
    color: #111;
    font-weight: 600;
}


/* Container Styles */
.filter-drawer-container {
    position: relative;
}
.filter-button {
    padding: 10px 20px;
    background-color: var(--rem-primary, #ce853b);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.filter-button:hover {
    background-color: var(--rem-primary-dark, #b8732e);
}

/* iOS Native Styling Reset */
.filter-div .filters_fields,
.filter-div .filter-button,
.filter-div select,
.properties-filter-form select,
.properties-filter-form input {
    -webkit-appearance: none !important;
}

/* Mobile Filter Field Padding */
@media (max-width: 767px) {
    .filter-div .filters_fields,
    .filter-div .filter-button,
    .properties-filter-form .filters_fields,
    .properties-filter-form .filter-button {
        padding: 13px 14px !important;
    }
}

.filter-button i {
    margin-right: 8px; /* Space between icon and text */
    font-size: 16px;
}

/* Drawer Header Close Button */
.close-drawer-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Clear Filters Button */
.apply-filters-button-drawer {
    background-color: #28a745; /* Red */
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 5px;
    justify-content: center;
    width: 100%;
}
.clear-filters-button {
    background-color: #f44336; /* Red */
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.clear-filters-button i {
    margin-right: 8px; /* Space between icon and text */
    font-size: 16px;
}

.clear-filters-button:hover {
    background-color: #d32f2f; /* Darker Red */
}
/* Drawer Styles */
.filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

/* Open Drawer */
.filter-drawer.open {
    right: 0;
}

/* Drawer Header */
.filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 35px;
}

/* Close Button */


/* Filter Drawer Content */
.classic-filter-layout .filter-drawer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-filter-layout .filter-drawer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
}

@media (max-width: 768px) {
    .modern-filter-layout .filter-drawer-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
}

.filter-drawer-content input,
.filter-drawer-content select {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Apply Filters Button */
.apply-filters-button {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.verified-badge {
    color: green;
    font-weight: bold;
}
.not-verified {
    color: red;
    font-weight: bold;
}
.property-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-type {
    background: #e0f2ff;
    color: #0277bd;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    text-transform: capitalize;
}

.verified-badge {
    color: #388e3c;
    background: #e8f5e9;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
}

.not-verified {
    color: #c62828;
    background: #ffebee;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
}

.property-title {
    font-size: 20px;
    font-weight: 700;
    color: #212121;
    margin: 0;
}

.property-location {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.property-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #444;
}

.property-details p strong {
    color: #222;
    font-weight: 600;
}

.property-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #777;
}
.hide-map-layout .split-right,
.hide-map-layout .top-map-wrapper,
.hide-map-layout .divider {
    display: none !important;
}

.hide-map-layout .split-left {
    width: 100% !important;
}
.property-card-modern {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

.property-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    background: #f2f2f2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image-wrapper .property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-image-wrapper .property-image-skeleton {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    opacity: 0.6;
}

/* Property badge matching project-badge style with color differentiation */
.property-badge,
.property-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    letter-spacing: 0.3px;
}

/* Sell / Secondary properties in RED */
.property-type-badge--sell,
.property-badge.property-type-badge--sell {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* Rent / Rental properties in GREEN */
.property-type-badge--rent_out,
.property-badge.property-type-badge--rent_out {
    background: #16a34a !important;
    color: #ffffff !important;
}

.property-distress-deal-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
    line-height: 1;
    pointer-events: none;
}

.property-distress-deal-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    color: #dc2626;
    font-size: 7px;
    line-height: 1;
    flex-shrink: 0;
}

.property-distress-deal-badge__text {
    white-space: nowrap;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge.featured {
    background-color: #2e7d32;
}

.badge.renting {
    background-color: #d32f2f;
}

.property-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.property-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-icons {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    font-size: 13px !important;
    color: #64748b !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.property-icons div {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.property-icons div i {
    color: #94a3b8 !important;
    font-size: 14px !important;
}

.property-bottom-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: auto !important;
    padding-top: 6px !important;
}

.property-location {
    font-size: 13px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 !important;
}

.property-location i {
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
    font-size: 13px !important;
}

.property-price {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* ==========================================================================
   LUXURY SEARCHABLE DROPDOWNS & FILTER BAR (PROPERTIES ARCHIVE)
   Matching [rem_tabs_section] & Luxury Project Presentation Aesthetics
   ========================================================================== */

/* Luxury Filter Bar Container */
.offplan-luxury-filter-bar,
.filter-div.offplan-luxury-filter-bar,
.archive-filter-luxury .filter-div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    position: relative;
    box-sizing: border-box;
}

/* Classic Filter Bar Container with Searchable Dropdowns */
.offplan-classic-filter-bar,
.filter-div.offplan-classic-filter-bar,
.archive-filter-classic .filter-div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 24px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Bulletproof reset for all wrapper containers in classic filter bar to avoid nested/double borders */
.offplan-classic-filter-bar .offplan-dropdown-wrapper,
.archive-filter-classic .offplan-dropdown-wrapper,
.classic-filter-layout .offplan-dropdown-wrapper,
.offplan-classic-dropdown.offplan-dropdown-wrapper,
.offplan-dropdown-wrapper.category_filter_select,
.offplan-dropdown-wrapper.offplan-classic-dropdown,
.offplan-classic-filter-bar .offplan-custom-dropdown,
.archive-filter-classic .offplan-custom-dropdown,
.classic-filter-layout .offplan-custom-dropdown,
.offplan-custom-dropdown.category_filter_select,
.offplan-custom-dropdown.offplan-classic-dropdown {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Classic Filter Bar Inputs & Dropdowns - Aligned 44px Height & Padding */
.offplan-classic-filter-bar input.search_filter_input,
.archive-filter-classic input.search_filter_input,
.archive-filter-classic .classic-filter-layout input.search_filter_input {
    flex: 2 !important;
    min-width: 220px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 42px !important;
    padding: 0 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.offplan-classic-filter-bar input.search_filter_input:focus,
.archive-filter-classic input.search_filter_input:focus {
    border-color: var(--rem-primary, #4a8b2c) !important;
    box-shadow: 0 0 0 2px rgba(74, 139, 44, 0.15) !important;
    background: #ffffff !important;
}

/* Classic Searchable Dropdown Wrapper & Trigger */
.offplan-classic-filter-bar .offplan-dropdown-wrapper,
.archive-filter-classic .offplan-classic-filter-bar .offplan-dropdown-wrapper {
    flex: 1 !important;
    min-width: 170px !important;
    max-width: 280px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

.offplan-classic-filter-bar .offplan-custom-dropdown,
.archive-filter-classic .offplan-classic-filter-bar .offplan-custom-dropdown {
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.offplan-classic-dropdown,
.archive-filter-classic .offplan-custom-dropdown {
    position: relative;
    box-sizing: border-box;
}

.offplan-classic-dropdown .offplan-dropdown-trigger,
.archive-filter-classic .offplan-dropdown-trigger {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 42px !important;
    background: #ffffff !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.offplan-classic-dropdown .offplan-dropdown-trigger:hover,
.archive-filter-classic .offplan-dropdown-trigger:hover {
    border-color: #999999 !important;
    background: #fafafa !important;
}

.offplan-classic-dropdown.offplan-active .offplan-dropdown-trigger,
.archive-filter-classic .offplan-custom-dropdown.offplan-active .offplan-dropdown-trigger {
    border-color: var(--rem-primary, #4a8b2c) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(74, 139, 44, 0.15) !important;
}

.offplan-classic-dropdown .offplan-dropdown-icon,
.archive-filter-classic .offplan-classic-dropdown .offplan-dropdown-icon {
    display: none !important;
}

.offplan-classic-dropdown .offplan-dropdown-selected-label,
.archive-filter-classic .offplan-dropdown-selected-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1 !important;
}

.offplan-classic-dropdown .offplan-dropdown-arrow,
.archive-filter-classic .offplan-dropdown-arrow {
    stroke: #666666 !important;
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

.offplan-classic-dropdown.offplan-active .offplan-dropdown-arrow,
.archive-filter-classic .offplan-custom-dropdown.offplan-active .offplan-dropdown-arrow {
    stroke: var(--rem-primary, #4a8b2c) !important;
    transform: rotate(180deg) !important;
}

/* Classic Button in Filter Bar - Exactly 44px Height & Centered */
.offplan-classic-filter-bar .filter_adv_btn,
.offplan-classic-filter-bar #offplan-advanced-filter-btn,
.offplan-classic-filter-bar #offplan-advanced-filter-btn-top,
.offplan-classic-filter-bar #advanced-filter-btn,
.archive-filter-classic .filter-button.filter_adv_btn,
.archive-filter-classic #advanced-filter-btn,
.archive-filter-classic #offplan-advanced-filter-btn,
.archive-filter-classic #offplan-advanced-filter-btn-top {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 44px !important;
    padding: 0 20px !important;
    background: var(--rem-primary, #4a8b2c) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.offplan-classic-filter-bar .filter_adv_btn:hover,
.offplan-classic-filter-bar #offplan-advanced-filter-btn:hover,
.offplan-classic-filter-bar #offplan-advanced-filter-btn-top:hover,
.offplan-classic-filter-bar #advanced-filter-btn:hover,
.archive-filter-classic .filter-button.filter_adv_btn:hover,
.archive-filter-classic #advanced-filter-btn:hover,
.archive-filter-classic #offplan-advanced-filter-btn:hover,
.archive-filter-classic #offplan-advanced-filter-btn-top:hover {
    background: var(--rem-primary-dark, #3b7023) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    filter: brightness(1.03) !important;
}

.offplan-classic-filter-bar .filter_adv_btn img,
.archive-filter-classic .filter_adv_btn img {
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
}

/* Classic Drawer Styling */
.archive-filter-classic .filter-drawer-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    background: #ffffff;
}

.archive-filter-classic .offplan-drawer-input {
    height: 44px !important;
    padding: 0 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    box-sizing: border-box !important;
}

.archive-filter-classic .offplan-drawer-input:focus {
    border-color: var(--rem-primary, #4a8b2c) !important;
    box-shadow: 0 0 0 2px rgba(74, 139, 44, 0.15) !important;
}

.archive-filter-classic .offplan-filter-field-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: #555555 !important;
}

/* Search Input Wrap with Icon (Luxury Mode) */
.offplan-search-field-wrap {
    position: relative !important;
    flex: 2 !important;
    min-width: 240px !important;
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.offplan-search-field-wrap .offplan-search-icon,
.offplan-search-field-wrap .offplan-field-search-icon,
.offplan-search-field-wrap svg.offplan-field-search-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    stroke: #94a3b8 !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    z-index: 5 !important;
    transition: stroke 0.2s ease, color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.offplan-search-field-wrap .offplan-search-icon svg,
.offplan-search-field-wrap svg.offplan-field-search-icon {
    display: block !important;
    stroke: currentColor !important;
    width: 16px !important;
    height: 16px !important;
}

.offplan-search-field-wrap:focus-within .offplan-search-icon,
.offplan-search-field-wrap:focus-within .offplan-field-search-icon {
    stroke: var(--rem-primary, #4a8b2c) !important;
    color: var(--rem-primary, #4a8b2c) !important;
}

.offplan-search-field-wrap input.search_filter_input {
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 18px 0 52px !important;
    padding-left: 52px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

html[dir="rtl"] .offplan-search-field-wrap input.search_filter_input,
body.rtl .offplan-search-field-wrap input.search_filter_input {
    padding: 0 52px 0 18px !important;
    padding-right: 52px !important;
}

html[dir="rtl"] .offplan-search-field-wrap .offplan-search-icon,
body.rtl .offplan-search-field-wrap .offplan-search-icon {
    left: auto !important;
    right: 16px !important;
}

.offplan-search-field-wrap input.search_filter_input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.offplan-search-field-wrap input.search_filter_input:focus {
    border-color: var(--rem-primary, #4a8b2c) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(74, 139, 44, 0.14) !important;
}

/* Dropdown Wrapper in Filter Bar & Drawer */
.offplan-dropdown-wrapper {
    position: relative;
    flex: 1.2;
    min-width: 175px;
    box-sizing: border-box;
}

.offplan-filter-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
    user-select: none;
}

/* Custom Dropdown Trigger */
.offplan-custom-dropdown {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.offplan-dropdown-trigger {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.offplan-dropdown-trigger:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.offplan-custom-dropdown.offplan-active .offplan-dropdown-trigger {
    border-color: var(--rem-primary, #ce853b);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(206, 133, 59, 0.14);
}

.offplan-dropdown-trigger-left {
    display: flex;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    flex: 1;
}

.offplan-dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rem-primary, #ce853b);
    flex-shrink: 0;
}

.offplan-dropdown-icon svg {
    display: block;
}

.offplan-dropdown-selected-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offplan-dropdown-arrow {
    stroke: #64748b;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
    flex-shrink: 0;
    margin-left: 6px;
}

.offplan-custom-dropdown.offplan-active .offplan-dropdown-arrow {
    transform: rotate(180deg);
    stroke: var(--rem-primary, #ce853b);
}

/* Custom Dropdown Menu (Floating Panel) */
.offplan-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 220px;
    max-width: 380px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 100030 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.offplan-custom-dropdown.offplan-active .offplan-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Live Search Box inside Dropdown */
.offplan-dropdown-search-wrap {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.offplan-dropdown-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    stroke: #94a3b8;
    pointer-events: none;
    z-index: 3;
}

.offplan-dropdown-search-input {
    width: 100% !important;
    height: 36px !important;
    padding: 0 12px 0 34px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.offplan-dropdown-search-input:focus {
    border-color: var(--rem-primary, #ce853b) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(206, 133, 59, 0.12) !important;
}

/* Options List */
.offplan-dropdown-options-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.offplan-dropdown-options-list::-webkit-scrollbar {
    width: 5px;
}

.offplan-dropdown-options-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.offplan-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    box-sizing: border-box;
}

.offplan-dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.offplan-dropdown-item.is-selected {
    background: rgba(206, 133, 59, 0.10);
    color: var(--rem-primary, #ce853b);
    font-weight: 600;
}

.offplan-item-check {
    stroke: var(--rem-primary, #ce853b);
    flex-shrink: 0;
    margin-left: 8px;
}

.offplan-dropdown-no-results {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

/* Luxury Advanced Filter Button */
.offplan-luxury-filter-bar .filter_adv_btn,
.offplan-luxury-filter-bar #advanced-filter-btn,
.archive-filter-luxury .filter-button.filter_adv_btn,
.archive-filter-luxury #advanced-filter-btn {
    height: 48px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--rem-primary, #ce853b) 0%, var(--rem-primary-dark, #b8732e) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px var(--rem-primary-shadow, rgba(206, 133, 59, 0.25)) !important;
    flex-shrink: 0;
    text-decoration: none !important;
    box-sizing: border-box;
}

.offplan-luxury-filter-bar .filter_adv_btn:hover,
.offplan-luxury-filter-bar #advanced-filter-btn:hover,
.archive-filter-luxury .filter-button.filter_adv_btn:hover,
.archive-filter-luxury #advanced-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--rem-primary-shadow, rgba(206, 133, 59, 0.38)) !important;
    filter: brightness(1.05);
}

/* Modern Filter Drawer */
.modern-filter-drawer,
#modern-filter-drawer {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-filter-drawer:not(.active),
#modern-filter-drawer:not(.active) {
    display: none;
}

.modern-filter-drawer.active,
#modern-filter-drawer.active {
    display: block;
    animation: offplanFadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-filter-header {
    background: linear-gradient(135deg, var(--rem-primary, #ce853b) 0%, var(--rem-primary-dark, #b8732e) 100%) !important;
    color: #ffffff !important;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

.mobile-filter-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.mobile-filter-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.1);
}

.filter-drawer-content {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background: #ffffff;
    box-sizing: border-box;
}

.offplan-filter-field-group {
    display: flex;
    flex-direction: column;
}

/* Range input pair in Drawer */
.offplan-input-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.offplan-drawer-input {
    flex: 1;
    height: 48px !important;
    padding: 0 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box;
}

.offplan-drawer-input:focus {
    border-color: var(--rem-primary, #ce853b) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(206, 133, 59, 0.14) !important;
}

.offplan-range-separator {
    color: #94a3b8;
    font-weight: 600;
    user-select: none;
}

/* Clear Filters Action - Full Width Row at Bottom-Left */
.offplan-drawer-actions,
.offplan-filter-actions-group,
.archive-filter-classic .offplan-drawer-actions,
.archive-filter-classic .offplan-filter-actions-group,
.archive-filter-luxury .offplan-drawer-actions,
.archive-filter-luxury .offplan-filter-actions-group,
.filter-drawer-content .offplan-drawer-actions,
.filter-drawer-content .offplan-filter-actions-group {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding-top: 4px !important;
}

.offplan-clear-filters-btn,
.clear-filters-button.offplan-clear-filters-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    padding: 0 20px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.archive-filter-classic .offplan-clear-filters-btn,
.archive-filter-classic .clear-filters-button.offplan-clear-filters-btn {
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    background: #fdfdfd !important;
    color: #444444 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.offplan-clear-filters-btn:hover,
.clear-filters-button.offplan-clear-filters-btn:hover,
.archive-filter-classic .offplan-clear-filters-btn:hover,
.archive-filter-classic .clear-filters-button.offplan-clear-filters-btn:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
    transform: translateY(-1px);
}

.offplan-clear-filters-btn svg {
    stroke: currentColor;
    transition: stroke 0.2s ease;
}

/* Mobile Responsiveness for Filter Bar and Drawer */
@media (max-width: 1024px) {
    .offplan-luxury-filter-bar,
    .filter-div.offplan-luxury-filter-bar,
    .archive-filter-luxury .filter-div,
    .offplan-classic-filter-bar,
    .filter-div.offplan-classic-filter-bar,
    .archive-filter-classic .filter-div {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .offplan-search-field-wrap,
    .offplan-dropdown-wrapper,
    .offplan-classic-filter-bar input.search_filter_input,
    .archive-filter-classic input.search_filter_input,
    .offplan-classic-filter-bar .offplan-classic-dropdown,
    .archive-filter-classic .offplan-custom-dropdown {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .filter-button.filter_adv_btn,
    #advanced-filter-btn {
        width: 100%;
        justify-content: center;
    }

    .modern-filter-drawer,
    #modern-filter-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        z-index: 99999;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: block !important;
    }

    .modern-filter-drawer.active,
    #modern-filter-drawer.active {
        transform: translateX(0);
    }

    .modern-filter-drawer:not(.active),
    #modern-filter-drawer:not(.active) {
        transform: translateX(100%);
        pointer-events: none;
    }

    .filter-drawer-content {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .filter-backdrop,
    #filter-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99998;
        display: none;
    }

    .filter-backdrop.active,
    #filter-backdrop.active {
        display: block;
    }
}

