/* ================================================================
   Real Estate Detail Page — Nam Long Social Plugin
   ================================================================ */

body {
    margin: 0;
    --wp--style--global--content-size : 1280px !important;
    --wp--style--global--wide-size: 1280px;
}

/* Wrapper */
.nls-re-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    display: grid;
    gap: 24px;
    grid-template-columns: 5fr 2fr;
}

.nls-re-section {
    margin-bottom: 20px;
}

/* ── Land lots table ── */
.nls-re-lots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.nls-re-lots-table thead tr {
    background: #f5f5f5;
}

.nls-re-lots-table th,
.nls-re-lots-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.nls-re-lots-table tbody tr:last-child td {
    border-bottom: none;
}

.nls-re-lots-table tbody tr:hover {
    background: #fafafa;
}

/* ── Info row (seller + attributes) ── */
.nls-re-info-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

/* ── Seller card ── */
.nls-re-seller-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 12px;
    background: #fff;
}

.nls-re-seller-name {
    font-weight: 700;
    font-size: 16px;
    color: #222;
    text-align: center;
    padding-bottom: 14px;
}

.nls-re-badges {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    min-width: 200px;
    justify-content: center;
    gap: 12px;
    flex-direction: column;
}

.nls-re-badge {
    display: flex;
    font-size: 14px;
    text-align: center;
    padding: 5px 8px;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: #336 solid 1px;
    border-radius: 6px;
}

.nls-re-badge--list {
    background: #cfcfcf;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    gap: 6px;
    padding: 2px 6px;
    font-weight: 500;
}

.nls-re-badge-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nls-re-badge-icon--list {
    width: 20px;
    height: 20px;
}

/* rating badge */
.nls-re-badge--rating {
    margin-bottom: 12px;
    padding: 10px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.rating-value {
    color: #1e293b;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    position: relative;
    width: 16px;
    height: 16px;
}

.star svg {
    width: 16px;
    height: 16px;
    display: block;
}

.star-empty {
    position: absolute;
    inset: 0;
    fill: #d1d5db;
}

.star-fill {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.star-fill svg {
    fill: #f4b400;
}

.review-count {
    color: #6b7280;
}

.nls-re-chat-btn {
    display: block;
    text-align: center;
    margin-top: 4px;
    padding: 8px 0;
    background: #c62828;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.nls-re-chat-btn:hover {
    background: #1976d2;
    color: #fff;
}

/* ── Attributes table ── */
.nls-re-attributes {
    flex: 1;
}

.nls-re-attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.nls-re-attr-table tr:nth-child(odd) {
    background: #fafafa;
}

.nls-re-attr-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #eee;
}

.nls-re-attr-table tr:last-child td {
    border-bottom: none;
}

.nls-re-attr-label {
    color: #555;
    width: 58%;
}

/* ── Property card ── */
.nls-re-property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.nls-re-property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.nls-re-property-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.nls-re-property-views {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nls-re-property-views .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.nls-re-property-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.nls-re-meta-item {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nls-re-meta-price {
    font-weight: 700;
    color: #d32f2f;
    font-size: 14px;
}

.nls-re-meta-label {
    font-size: 11px;
    color: #888;
    display: block;
}

/* ── Action buttons ── */
.nls-re-property-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.nls-re-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nls-re-btn:hover {
    opacity: 0.85;
}

.nls-re-btn--secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.nls-re-btn--primary {
    background: #c62828;
    color: #fff;
}

.nls-re-btn--saved {
    background: #1976d2;
    color: #fff;
}

/* ── Descriptions section ── */
.nls-re-descriptions {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.nls-re-descriptions-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
}

.nls-re-descriptions-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.nls-re-descriptions-content a {
    color: #1976d2;
    text-decoration: none;
}

.nls-re-descriptions-content a:hover {
    text-decoration: underline;
}

/* ── Image slider ── */
.nls-re-slider-section {
    border-radius: 10px;
    overflow: hidden;
}

.nls-slider {
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* placeholder when no images */
.nls-slider-placeholder {
    height: 280px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #aaa;
    font-size: 15px;
}
.nls-slider-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
}

/* ── Main viewport ── */
.nls-slider-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    background: #fff;
}

/* ── Slide track (horizontal strip of all slides) ── */
.nls-slider-track {
    display: flex;
    height: 100%;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.nls-slider-slide {
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}
.nls-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Navigation arrows ── */
.nls-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
    padding: 0;
}
.nls-slider-arrow:hover { background: rgba(0,0,0,.7); }
.nls-slider-arrow--prev { left: 10px; }
.nls-slider-arrow--next { right: 10px; }

/* ── Image counter ── */
.nls-slider-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 10;
}

/* ── Thumbnail strip ── */
.nls-slider-thumbs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #fff;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #fff #fff;
}
.nls-slider-thumbs::-webkit-scrollbar {
    height: 4px;
}
.nls-slider-thumbs::-webkit-scrollbar-track { background: #fff; }
.nls-slider-thumbs::-webkit-scrollbar-thumb { background: #fff; border-radius: 2px; }

.nls-slider-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: .55;
    transition: opacity .2s, border-color .2s;
    background: #333;
}
.nls-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.nls-slider-thumb:hover {
    opacity: .85;
    border-color: #e57373;
}
.nls-slider-thumb.active {
    opacity: 1;
    border-color: #c62828;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .nls-slider-viewport {
        aspect-ratio: 4 / 3;
        max-height: none;
    }
    .nls-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
    .nls-slider-thumb {
        width: 62px;
        height: 44px;
    }
}

@media (max-width: 850px) {
    .nls-re-wrap {
        display: flex;
        flex-direction: column;
    }
}

.nls-re-seller-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.nls-re-rating-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

.nls-re-property-meta {
    flex-wrap: wrap;
}

.nls-re-meta-item {
    min-width: calc(33% - 8px);
}



/* ================================================================
   Real Estate LISTING Page  (mobile-first, matches mockup)
   ================================================================ */

.nls-list-wrap {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .nls-list-wrap {
        padding: 24px;
    }
}


/* ── Sidebar layout ── */
.nls-list-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.nls-list-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    position: sticky;
    top: 80px;
    margin-top: 16px;
}

.nls-list-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

.nls-list-sidebar-clear {
    font-size: 0.8rem;
    color: #c0392b;
    text-decoration: none;
}
.nls-list-sidebar-clear:hover { text-decoration: underline; }

.nls-list-sidebar-section {
    border-top: 1px solid #ececec;
    padding: 14px 0;
}

.nls-list-sidebar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nls-list-main {
    flex: 1;
    min-width: 0;
    margin-top: 16px;
}

.nls-list-results-wrap {
    flex: 1;
    min-width: 0;
}

/* ── Mobile filter sheet backdrop ── */
.nls-mobile-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1001;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nls-mobile-filter-backdrop.is-visible {
    display: block;
}

@media (min-width: 768px) {
    .nls-mobile-filter-backdrop {
        display: none !important;
    }
}

/* ── Section header row (title + "Chọn tất cả") ── */
.nls-sheet-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.nls-sheet-section-header .nls-list-sidebar-title {
    margin-bottom: 0;
}
.nls-sheet-section-reset {
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    flex-shrink: 0;
}
.nls-sheet-section-reset:hover {
    color: #c62828;
}

/* ── Outlined-active chip variant (estate/transaction type) ── */
.nls-filter-chip--outline.is-active {
    background: #fff !important;
    border-color: #c62828 !important;
    border-width: 2px !important;
    color: #c62828 !important;
    font-weight: 700 !important;
}
.nls-filter-chip--outline:hover {
    border-color: #c62828 !important;
    color: #c62828 !important;
}

/* ── Mobile sheet handle & footer (hidden on desktop) ── */
.nls-mobile-sheet-handle {
    display: none;
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 2px;
    margin: 10px auto 12px;
    flex-shrink: 0;
}
.nls-mobile-sheet-footer {
    display: none;
    gap: 10px;
    padding: 14px 0 8px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    bottom: 0;
    background: transparent;
}
.nls-mobile-sheet-close-btn {
    flex: 1;
    padding: 12px;
    border: 1.5px solid rgba(255,255,255,0.7) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.7) !important;
    font-weight: 600 !important;
    color: #444 !important;
    cursor: pointer;
    font-size: 0.9rem !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    height: auto !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.nls-mobile-sheet-apply-btn {
    flex: 2;
    padding: 12px;
    border: none !important;
    border-radius: 14px !important;
    background: #c62828 !important;
    color: #fff !important;
    font-weight: 700 !important;
    cursor: pointer;
    font-size: 0.9rem !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    height: auto !important;
}
.nls-mobile-sheet-apply-btn:hover { background: #b71c1c !important; }

/* Mobile: centered modal (frosted glass) */
@media (max-width: 767px) {
    .nls-list-layout {
        display: block;
    }
    .nls-list-sidebar {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: calc(100% - 32px) !important;
        max-width: 420px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 1002 !important;
        border-radius: 24px !important;
        border: none !important;
        padding: 8px 14px 0 !important;
        background: transparent !important;
        transform: translate(-50%, -50%) scale(0.92) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
                    opacity 0.3s ease !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: none !important;
    }
    .nls-list-sidebar.is-open {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* Hide drag handle for centered modal */
    .nls-mobile-sheet-handle {
        display: none !important;
    }
    .nls-mobile-filter-toggle {
        display: inline-flex;
    }
    .nls-mobile-sheet-footer {
        display: flex;
    }
    /* Hide desktop-only header title */
    .nls-list-sidebar-header {
        display: none !important;
    }
    /* Sections as frosted white cards */
    .nls-list-sidebar-section {
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-radius: 18px !important;
        padding: 18px 16px 16px !important;
        margin-bottom: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
        flex-shrink: 0 !important;
    }
    .nls-list-sidebar-title {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #111 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        margin-bottom: 0 !important;
    }
    /* Larger pill chips */
    .nls-filter-chip {
        padding: 8px 16px !important;
        font-size: 0.875rem !important;
        border-radius: 20px !important;
    }
}

/* Tablet / desktop: sidebar always visible, toggle hidden */
@media (min-width: 768px) {
    .nls-mobile-filter-toggle {
        display: none;
    }
    /* On desktop the section header resets are always visible */
    .nls-sheet-section-header {
        margin-bottom: 10px;
    }
}

/* Mobile filter toggle button */
.nls-mobile-filter-toggle {
    display: none; /* shown only on mobile via media query above */
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin-bottom: 10px;
    transition: border-color .15s, color .15s;
    position: relative;
}
.nls-mobile-filter-toggle:hover,
.nls-mobile-filter-toggle[aria-expanded="true"] {
    border-color: #c0392b;
    color: #c0392b;
}

/* ── Unified filter form ── */
.nls-list-filter-form {
    margin-bottom: 10px;
}

/*  Search bar  */
.nls-list-search-bar {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    background: #fff;
    height: 50px;
    gap: 0;
    overflow: hidden;
    transition: border-color .15s;
    padding: 0;
    width: 100%;
}

.nls-list-search-bar:focus-within {
    border-color: #c62828;
}

.nls-list-search-icon {
    display: none;
}

.nls-list-search-input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    font-size: 15px;
    background: transparent;
    min-width: 0;
    padding: 0 14px;
}

.nls-list-search-clear {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 50%;
    transition: background .12s, color .12s;
    align-self: center;
}

.nls-list-search-clear:hover {
    background: #f0f0f0;
    color: #333;
}

.nls-list-search-btn {
    flex-shrink: 0;
    width: 52px;
    border: none;
    border-radius: 0;
    background: #c62828;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.nls-list-search-btn:hover { background: #b71c1c; }

/* ── Filter row: tabs + advanced toggle ── */
.nls-list-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.nls-list-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Province / city select */
.nls-list-province-wrap {
    flex: 1;
    min-width: 160px;
}

.nls-list-province-select {
    width: 100%;
    padding: 7px 32px 7px 12px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nls-list-province-select:focus,
.nls-list-province-select:hover {
    border-color: #c62828;
    outline: none;
}

.nls-list-province-select option,
.nls-list-province-select optgroup {
    font-weight: 500;
    color: #333;
}

.nls-list-tab {
    padding: 7px 18px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
    line-height: 1;
}

.nls-list-tab.active,
.nls-list-tab:hover {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
    text-decoration: none;
}

/* Advanced toggle button */
.nls-list-advanced-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}

.nls-list-advanced-toggle:hover,
.nls-list-advanced-toggle[aria-expanded="true"] {
    border-color: #c62828;
    color: #c62828;
}

.nls-list-filter-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f44336;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Advanced filter panel ── */
.nls-list-advanced-panel {
    display: none;
    margin-top: 10px;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
}

.nls-list-advanced-panel.open { display: block; }

.nls-list-filter-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nls-list-filter-group {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.nls-list-filter-group-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.nls-area-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 6px 14px;
    background: #fff3f3;
    border: 1.5px solid #c62828;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #c62828;
    min-width: 80px;
    text-align: center;
    justify-content: center;
}

.nls-list-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}

/* ── Sidebar filter chips (estate type / legal) ── */
.nls-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.nls-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1.5px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
    line-height: 1.4;
}

.nls-filter-chip:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.nls-filter-chip.is-active {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    font-weight: 600;
}


/* ── Dual range slider ──*/
.nls-dual-slider {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 0 6px;
}

.nls-dual-slider-track {
    position: absolute;
    left: 6px;
    right: 6px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    pointer-events: none;
}

.nls-dual-slider-fill {
    position: absolute;
    height: 100%;
    background: #c62828;
    border-radius: 4px;
}

.nls-dual-slider-thumb {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
    margin: 0;
    padding: 0;
    border: none;
}

.nls-dual-slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #c62828;
    pointer-events: auto;
    cursor: pointer;
    transition: border-color .12s;
}

.nls-dual-slider-thumb::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #c62828;
    pointer-events: auto;
    cursor: pointer;
    transition: border-color .12s;
}

.nls-dual-slider-thumb::-webkit-slider-thumb:hover,
.nls-dual-slider-thumb:focus::-webkit-slider-thumb {
    border-color: #c62828;
}

input[type=range].nls-dual-slider-thumb::-webkit-slider-runnable-track {
    box-shadow: none !important;
}

.nls-dual-slider-vals {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 6px;
}

.nls-dual-slider-val-label {
    font-size: 12px;
    font-weight: 600;
    color: #c62828;
    background: #e3f2fd;
    border-radius: 4px;
    padding: 2px 8px;
}

/* Hide the number inputs (values are submitted via hidden inputs kept in sync) */
/* ── Active filter chips ──*/
.nls-list-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.nls-list-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 20px;
    font-size: 13px;
    color: #1565c0;
    white-space: nowrap;
    text-decoration: none;
}

.nls-list-chip--clear {
    background: #fff;
    border-color: #ccc;
    color: #888;
    cursor: pointer;
}

.nls-list-chip--clear:hover {
    border-color: #f44336;
    color: #f44336;
    text-decoration: none;
}

.nls-list-chip-remove {
    font-size: 11px;
    color: #1976d2;
    text-decoration: none;
    line-height: 1;
    padding: 0 1px;
    border-radius: 50%;
    transition: background .12s;
}

.nls-list-chip-remove:hover {
    background: #90caf9;
    color: #0d47a1;
    text-decoration: none;
}

/*  Result meta  */
.nls-list-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 0 2px;
}

.nls-list-sort-select {
    padding: 6px 32px 6px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    color: #444;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
    width: fit-content;
}

.nls-list-sort-select:focus,
.nls-list-sort-select:hover {
    border-color: #c62828;
    outline: none;
}

.nls-list-result-count {
    font-weight: 700;
    color: #333;
}

/*  Cards grid  single column mobile  */
.nls-list-grid {
    display: grid; 
    gap: 16px;
}

/*  Card  */
.nls-list-card {
    border: 1.5px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* ── Card gallery ───────────────────────────────────────────────────────── */
.nls-card-gallery-wrap {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

/* Shared grid height */
.nls-card-gallery {
    height: 280px;
    overflow: hidden;
}

/* 0 images: placeholder */
.nls-card-gallery--0 {
    display: flex;
}
.nls-card-gallery-placeholder {
    flex: 1;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #aaa;
    font-size: 14px;
}
.nls-card-gallery-placeholder .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #ccc;
}

/* 1 image: full width */
.nls-card-gallery--1 {
    display: block;
}
.nls-card-gallery--1 .nls-card-gallery-main {
    height: 100%;
}

/* 2 images: two equal columns */
.nls-card-gallery--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.nls-card-gallery-thumbs {
    height: 280px;
}
.nls-card-gallery--2 .nls-card-gallery-thumbs {
    display: flex;
}
.nls-card-gallery--2 .nls-card-gallery-thumb {
    flex: 1;
}

/* 3 images: large left (2/3) + two stacked right (1/3) */
.nls-card-gallery--3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
}
.nls-card-gallery--3 .nls-card-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nls-card-gallery--3 .nls-card-gallery-thumb {
    flex: 1;
}

/* 4 images: large left (2/3) + three stacked right (1/3) */
.nls-card-gallery--4 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
}
.nls-card-gallery--4 .nls-card-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nls-card-gallery--4 .nls-card-gallery-thumb {
    flex: 1;
}

/* Main image slot */
.nls-card-gallery-main {
    overflow: hidden;
    position: relative;
}
.nls-card-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.nls-card-gallery-wrap:hover .nls-card-gallery-main img {
    transform: scale(1.04);
}

/* Thumbnail slots */
.nls-card-gallery-thumb {
    overflow: hidden;
    position: relative;
}
.nls-card-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* "+N more" overlay on the last thumbnail */
.nls-card-gallery-more {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
}

.nls-list-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,200,0,.92);
    color: #5a3c00;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.nls-re-badge--owner {
    background: #D1E3F6;
    color: #1976d2;
}

.nls-re-badge--resident {
    background: #f3d4d4;
    color: #c62828;
}

/* Card body */
.nls-list-card-body {
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Row 1: Title + resident badge */
.nls-list-card-row1 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Row 1: Title + resident badge */
.nls-list-card-row1 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nls-list-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    text-decoration: none;
    line-height: 1.3;
    flex-shrink: 1;
}

.nls-list-card-title:hover { color: #c62828; }

.nls-list-resident-badge {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #f5f5f5;
    color: #555;
    white-space: nowrap;
    margin-top: 2px;
}

/* Row 2: 4 spec boxes */
.nls-list-card-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.nls-list-spec-label {
    font-size: 16px;
    color: #1d2327;
    font-weight: 500;
}

.nls-list-spec-val {
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
    word-break: break-word;
    line-height: 1.2;
    align-content: center;
}

.nls-list-highlight-val {
    font-size: 16px;
    font-weight: 700;
    color: #c62828;
    word-break: break-word;
    line-height: 1.2;
}



/* Row 3: seller | date | Chat | Save */
.nls-list-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.nls-list-footer-seller,
.nls-list-footer-date {
    font-size: 12px;
    color: #666;
    /* border: 1px solid #ddd;
    border-radius: 4px; */
    padding-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.nls-list-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity .15s;
    white-space: nowrap;
}

.nls-list-btn:hover { opacity: .85; text-decoration: none; }

.nls-list-btn--chat {
    background: #c62828;
    color: #fff;
}

.nls-list-btn--save {
    background: #c62828;
    color: #fff;
}

.nls-list-btn--saved {
    background: #1976d2;
    color: #fff;
}

.nls-list-btn--saved:disabled,
.nls-list-btn--save:disabled {
    background: #aaa;
    cursor: default;
}

/*  Empty state  */
.nls-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

.nls-list-empty .dashicons {
    font-size: 52px;
    width: 52px;
    height: 52px;
    display: block;
    margin: 0 auto 12px;
}

.nls-list-empty p { font-size: 15px; color: #aaa; margin: 0; }

/*  Pagination  */
.nls-list-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.nls-list-page-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s;
}

.nls-list-page-btn.active,
.nls-list-page-btn:hover {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
    text-decoration: none;
}

/*  Desktop: 2-column grid  */
@media (min-width: 1024px) {
    .nls-list-card-footer { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .nls-list-card-specs { grid-template-columns: repeat(2, 1fr); }
    .nls-list-spec-label { font-size: 14px; }
}

/* ============================================================
   REF PROPERTIES COMPONENT  .nls-ref-*
   [nam_long_ref_properties]  context-aware property strip
   ============================================================ */

.nls-ref-wrap {
    margin: 2rem 0;
    font-family: inherit;
}

@media (min-width: 1024px) {
    .nls-ref-wrap {
        padding: 24px;
    }
}

.nls-ref-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.nls-ref-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.nls-ref-view-all {
    font-size: 0.82rem;
    color: #c62828;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}
.nls-ref-view-all:hover { text-decoration: underline; }

/*  Scrollable track (mobile-first)  */
.nls-ref-track {
    display: flex;
    gap: 0.875rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    will-change: scroll-position;
}

/* Disable browser's native drag on links and images so pointer capture works */
.nls-ref-track *        { -webkit-user-drag: none; user-select: none; }
.nls-ref-track img      { pointer-events: none; }
.nls-ref-track a        { -webkit-user-drag: none; }
.nls-ref-track::-webkit-scrollbar        { height: 4px; }
.nls-ref-track::-webkit-scrollbar-track  { background: transparent; }
.nls-ref-track::-webkit-scrollbar-thumb  { background: #ddd; border-radius: 2px; }

/*  Card  */
.nls-ref-card {
    flex: 0 0 200px;
    min-width: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .18s;
    display: flex;
    flex-direction: column;
}
.nls-ref-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
    transform: translateY(-3px);
}

/*  Card image  */
.nls-ref-card-img {
    position: relative;
    width: 100%;
    padding-top: 62%;
    background: #f0f0f0;
    overflow: hidden;
}
.nls-ref-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.nls-ref-card:hover .nls-ref-card-img img { transform: scale(1.04); }

.nls-ref-card-img--placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #bbb;
    background: #f7f7f7;
}

/*  Badges  */
.nls-ref-type-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    line-height: 1.5;
}
.nls-ref-type-badge--sale { background: #c62828; }
.nls-ref-type-badge--rent { background: #2b6cb0; }

.nls-ref-featured-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 0.82rem;
    background: rgba(255,255,255,.88);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/*  Card body  */
.nls-ref-card-body {
    padding: 0.65rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.nls-ref-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nls-ref-card-specs {
    display: flex;
    gap: 0.35rem;
}

.nls-ref-spec {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    background: #f8f8f8;
    border-radius: 5px;
    padding: 4px 5px;
    min-width: 0;
}

.nls-ref-spec-label {
    font-size: 0.58rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.nls-ref-spec-val {
    font-size: 0.7rem;
    font-weight: 700;
    font-size: 14px;
    color: #c62828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*  Card footer (seller + views)  */
.nls-ref-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.25rem;
    border-top: 1px solid #f0f0f0;
}

.nls-ref-card-seller,
.nls-ref-card-views {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    color: #888;
    min-width: 0;
}

.nls-ref-card-seller {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.nls-ref-card-views { flex-shrink: 0; }

.nls-ref-empty {
    font-size: 0.9rem;
    color: #999;
    padding: 0.75rem 0;
    margin: 0;
}

/*
 * Desktop: keep the horizontal scroll strip but widen each card so
 * they feel proportional on larger screens.
 */
@media (min-width: 1024px) {
    .nls-ref-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
}

/* ============================================================
   FULL-WIDTH BREAKOUT UTILITY  .nls-fw-*
   [nls_full_width] / expand="true" on any NLS shortcode
   Uses the calc(50% - 50vw) technique  no JS needed.
   Works when the element lives inside a centered container.
   ============================================================ */

.nls-fw-wrap {
    width: 100vw;
    /* Pull left edge to the viewport boundary */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* clip trims overflow visually but does NOT create a scroll container,
       so child overflow-x:auto elements (e.g. .nls-ref-track) can still scroll. */
    position: relative;
    left: 0;
    overflow-x: clip;
}

/*
 * Inner padding container  re-adds comfortable reading margin.
 * Components that manage their own horizontal space (like the list grid)
 * can override or the user can set pad="false" on [nls_full_width].
 */
.nls-fw-inner {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 3rem);
    padding-right: clamp(1rem, 4vw, 3rem);
}

.nls-fw-inner--nopad {
    padding-left: 0;
    padding-right: 0;
}

/* ================================================================
   Project Map Shortcode  [nam_long_project_map]
   ================================================================ */

.nls-pm-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    margin: 0 auto;
    max-width: 1400px;
}

@media (min-width: 1024px) {
    .nls-pm-wrap {
        padding: 24px;
    }
}

.nls-pm-section {
    margin-bottom: 28px;
}

/* ── Section header ── */
.nls-pm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.nls-pm-section-header > span:first-child {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    border-left: 4px solid #c62828;
    padding-left: 10px;
}

.nls-pm-count {
    font-size: 0.82rem;
    background: #f1f3f5;
    color: #555;
    border-radius: 20px;
    padding: 2px 12px;
}

/* ── Map container ── */
.nls-pm-map {
    width: 100%;
    height: 800px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    background: #f5f5f5;
}

@media (max-width: 600px) {
    .nls-pm-map {
        height: 320px;
    }
}

/* ── OSM attribution link ── */
.nls-pm-osm-credit {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #888;
    text-align: right;
}

.nls-pm-osm-credit a {
    color: #1565c0;
    text-decoration: none;
}

.nls-pm-osm-credit a:hover {
    text-decoration: underline;
}

/* ── Map legend ── */
.nlsm-legend {
    --nlsm-phase-1: #6BBF59;
    --nlsm-phase-2: #C4A574;
    --nlsm-phase-3: #E8A0B4;
    --nlsm-phase-4: #8ECAE6;

    margin: 16px 0 8px;
    padding: 14px 16px;
    background: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.nlsm-legend-heading {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nlsm-legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.nlsm-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #4B5563;
}

.nlsm-legend-chip {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.nlsm-legend-chip--phase-1 { background: var(--nlsm-phase-1); }
.nlsm-legend-chip--phase-2 { background: var(--nlsm-phase-2); }
.nlsm-legend-chip--phase-3 { background: var(--nlsm-phase-3); }
.nlsm-legend-chip--phase-4 { background: var(--nlsm-phase-4); }
.nlsm-legend-chip--lake    { background: #4A90D9; }
.nlsm-legend-chip--river   { background: #219EBC; }
.nlsm-legend-chip--road    { background: #FFFFFF; box-shadow: inset 0 0 0 1px #9CA3AF; }
.nlsm-legend-chip--green   { background: #2D6A4F; }

/* ── Empty state ── */
.nls-pm-empty {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 20px 0;
}

/* ── Popup ── */
.nls-pm-popup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    max-width: 220px;
}

.nls-pm-popup-title {
    font-size: 0.88rem;
    color: #1a1a2e;
    line-height: 1.3;
}

.nls-pm-popup-price {
    font-size: 0.82rem;
    color: #c62828;
    font-weight: 600;
}

.nls-pm-popup-type {
    display: inline-block;
    font-size: 0.72rem;
    border-radius: 4px;
    padding: 1px 7px;
    font-weight: 600;
    width: fit-content;
}

.nls-pm-popup-type--sale {
    background: #e8f5e9;
    color: #2e7d32;
}

.nls-pm-popup-type--rent {
    background: #e3f2fd;
    color: #1565c0;
}

.nls-pm-popup-link {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
}

.nls-pm-popup-link:hover {
    text-decoration: underline;
}

/* ── Land lots table ── */
.nls-pm-lots-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.nls-pm-lots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: #fff;
}

.nls-pm-lots-table thead tr {
    background: #1a1a2e;
    color: #fff;
}

.nls-pm-lots-table th,
.nls-pm-lots-table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.nls-pm-lots-table tbody tr:last-child td {
    border-bottom: none;
}

.nls-pm-lots-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.nls-pm-lots-table tbody tr:hover {
    background: #fff3e0;
}

.nls-pm-lots-price {
    font-weight: 600;
    color: #c62828;
    white-space: nowrap;
}


/* ── Search bar shortcode (re-search-bar.php) ── */
.nls-sb-wrap {
    margin: 0 auto;
    max-width: 100%; /* allow full container width, not constrained by nls-list-wrap's 640px */
}

/* Hide clear button until user types */
.nls-sb-clear-hidden { display: none !important; }

/* ── Tabs accordion (collapsed by default, expands on search input focus) ── */
.nls-sb-tabs-row {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    background: #fff;
    border: 1.5px solid transparent;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 0 10px;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease, border-color 0.2s ease;
}
.nls-sb-tabs-row.nls-sb-tabs-open {
    max-height: 80px;
    opacity: 1;
    padding: 10px 10px;
    border-color: #ddd;
}

/* Search bar container override */
.nls-sb-wrap .nls-list-search-bar,
.nls-list-filter-form .nls-list-search-bar {
    border-radius: 4px !important;
    padding: 0 !important;
    height: 50px !important;
    overflow: hidden !important;
    gap: 0 !important;
    transition: border-radius 0.1s ease;
}

/* Flatten bottom radius when accordion is open so panels connect */
.nls-sb-wrap:has(.nls-sb-tabs-open) .nls-list-search-bar,
.nls-list-filter-form:has(.nls-sb-tabs-open) .nls-list-search-bar {
    border-radius: 4px 4px 0 0 !important;
}

/* ================================================================
   Theme compatibility: Astra / Elementor aggressive form-reset
   overrides — scoped to .nls-sb-wrap / .nls-list-filter-form so
   they don't bleed into the rest of the page.
   !important is intentional: Astra loads inline CSS after our
   stylesheet and uses multi-selector rules that can win the cascade.
   ================================================================ */

/* ── Search submit button (icon button) ── */
.nls-sb-wrap .nls-list-search-btn,
.nls-list-filter-form .nls-list-search-btn {
    background-color: #c62828 !important;
    color: #fff !important;
    width: 52px !important;
    height: 100% !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
    font-weight: normal !important;
    line-height: 1 !important;
}
.nls-sb-wrap .nls-list-search-btn:hover,
.nls-list-filter-form .nls-list-search-btn:hover {
    background-color: #b71c1c !important;
    color: #fff !important;
}

/* ── Type tabs (Tất cả / Mua Bán / Cho Thuê) ── */
.nls-sb-wrap .nls-list-tab,
.nls-list-filter-form .nls-list-tab {
    background: #fff !important;
    color: #444 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    padding: 7px 18px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    height: auto !important;
}
.nls-sb-wrap .nls-list-tab.active,
.nls-sb-wrap .nls-list-tab:hover,
.nls-list-filter-form .nls-list-tab.active,
.nls-list-filter-form .nls-list-tab:hover {
    background: #c62828 !important;
    border-color: #c62828 !important;
    color: #fff !important;
}

/* ── Advanced toggle + reset filter button ── */
.nls-sb-wrap .nls-list-advanced-toggle,
.nls-list-filter-form .nls-list-advanced-toggle {
    background: #fff !important;
    color: #444 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 7px 14px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    height: auto !important;
}
.nls-sb-wrap .nls-list-advanced-toggle:hover,
.nls-sb-wrap .nls-list-advanced-toggle[aria-expanded="true"],
.nls-list-filter-form .nls-list-advanced-toggle:hover,
.nls-list-filter-form .nls-list-advanced-toggle[aria-expanded="true"] {
    border-color: #c62828 !important;
    color: #c62828 !important;
    background: #fff !important;
}


/* ── Clear search button (✕) ── */
.nls-sb-wrap .nls-list-search-clear,
.nls-list-filter-form .nls-list-search-clear {
    background: none !important;
    color: #aaa !important;
    font-size: 14px !important;
    font-weight: normal !important;
    padding: 4px 6px !important;
    border: none !important;
    border-radius: 50% !important;
    height: auto !important;
    box-shadow: none !important;
    text-transform: none !important;
    line-height: 1 !important;
}
.nls-sb-wrap .nls-list-search-clear:hover,
.nls-list-filter-form .nls-list-search-clear:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* ── Search text input ── */
.nls-sb-wrap .nls-list-search-input,
.nls-list-filter-form .nls-list-search-input {
    height: auto !important;
    padding: 0 14px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 15px !important;
    box-shadow: none !important;
    color: inherit !important;
    line-height: normal !important;
    margin: 0 !important;
    width: auto !important;
    outline: none !important;
}


/* ── Range slider thumbs (input[type="range"]) ── */
.nls-sb-wrap .nls-dual-slider-thumb,
.nls-list-filter-form .nls-dual-slider-thumb {
    height: 4px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: inherit !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    color: transparent !important;
}

/* ── Province / estate-type selects ── */
.nls-sb-wrap .nls-list-province-select,
.nls-list-filter-form .nls-list-province-select {
    height: auto !important;
    padding: 7px 32px 7px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 1.5px solid #ccc !important;
    border-radius: 20px !important;
    /* keep our custom chevron arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-color: #fff !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color: #444 !important;
    box-shadow: none !important;
    width: 100%;
}
.nls-sb-wrap .nls-list-province-select:hover,
.nls-sb-wrap .nls-list-province-select:focus,
.nls-list-filter-form .nls-list-province-select:hover,
.nls-list-filter-form .nls-list-province-select:focus {
    border-color: #c62828 !important;
    outline: none !important;
}

/* ── Fieldsets (filter group containers) ── */
.nls-sb-wrap .nls-list-filter-group,
.nls-list-filter-form .nls-list-filter-group {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

/* ── Mobile filter button (nls-sb-filter-btn) ── */
/* Hidden on desktop; visible only on mobile */
.nls-sb-wrap .nls-sb-filter-btn,
.nls-list-filter-form .nls-sb-filter-btn {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 100% !important;
    padding: 0 !important;
    border: none !important;
    border-left: 1.5px solid rgba(255,255,255,0.3) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: #c62828 !important;
    color: #fff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
    line-height: 1 !important;
}
.nls-sb-wrap .nls-sb-filter-btn:hover,
.nls-list-filter-form .nls-sb-filter-btn:hover {
    background-color: #b71c1c !important;
}
.nls-sb-wrap .nls-sb-filter-btn[aria-expanded="true"],
.nls-list-filter-form .nls-sb-filter-btn[aria-expanded="true"] {
    background-color: #b71c1c !important;
}
@media (max-width: 767px) {
    .nls-sb-wrap .nls-sb-filter-btn,
    .nls-list-filter-form .nls-sb-filter-btn {
        display: flex !important;
    }
}

/* ── Avatar button ── */

/* .nlsd-avatar-button {
  border: none !important;
  background: #fff !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
   box-shadow: none !important;
  align-items: center;
  justify-content: center;
}

.nlsd-avatar-img{
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  min-width: 36px !important;
}

.nlsd-user-name-col{
    align-items: flex-start;
  }

.nlsd-user-name-col{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
} */

.profile-card {
width: 280px;
background: #ffffff;
border-radius: 28px;
overflow: hidden;
box-shadow: 0 12px 30px rgba(0,0,0,0.08);
/* position: relative; */
}

.avatar-wrapper {
position: relative;
width: 84px;
height: 84px;
margin: auto;
border-radius: 50%;
background: conic-gradient(
    #ff4d6d,
    #ffbe0b,
    #70e000,
    #4cc9f0,
    #8338ec,
    #ff4d6d
);
padding: 3px;
}

.avatar {
width: 100%;
height: 100%;
border-radius: 50%;
background: #fff;
padding: 4px;
}

.avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
display: block;
}

.nls-re-seller-content {
text-align: center;
padding: 8px 22px 24px;
}

.nls-fb-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.nls-fb-verified {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    position: relative;
    cursor: pointer;
}
/* ── Property Rating Card ── */
.nls-re-rating-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 12px;
    background: #fff;
}

.nls-re-rating-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.nls-re-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nls-re-rating-avg {
    font-size: 28px;
    font-weight: 700;
    color: #c62828;
    line-height: 1;
}

.nls-re-rating-count {
    font-size: 13px;
    color: #888;
}

/* Star shared */
.nls-re-rating-stars {
    display: flex;
    gap: 2px;
}

.nls-re-star {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.1s ease, color 0.1s ease;
}

/* Display stars */
.nls-re-rating-stars--display .nls-re-star--full  { color: #f59e0b; }
.nls-re-rating-stars--display .nls-re-star--half  { color: #f59e0b; }
.nls-re-rating-stars--display .nls-re-star--empty { color: #d1d5db; }

/* Interactive stars */
.nls-re-rating-stars--interactive .nls-re-star--interactive {
    color: #d1d5db;
    cursor: pointer;
    font-size: 28px;
}

.nls-re-rating-stars--interactive .nls-re-star--interactive.selected,
.nls-re-rating-stars--interactive .nls-re-star--interactive.hovered {
    color: #f59e0b;
    transform: scale(1.15);
}

.nls-re-rating-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.nls-re-rating-label {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.nls-re-rating-feedback {
    font-size: 13px;
    color: #16a34a;
    min-height: 18px;
    margin: 0;
}

.nls-re-rating-login {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.nls-re-rating-login a {
    color: #c62828;
    text-decoration: underline;
}

.nls-re-rating-submit {
    align-self: center;
    padding: 8px 20px;
    background: #c62828;
    color: #fff;
    border: none;
    margin-top: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.nls-re-rating-submit:hover:not(:disabled) {
    background: #961e1e;
}

.nls-re-rating-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
