
/**

 * NeuraRealty Search CSS

 * Search page specific styles

 * NeuraWeb Global Inc.

 */



/* ============================================

   SEARCH PAGE LAYOUT

   ============================================ */

.nr-search-page {

    max-width: 1800px;

    margin: 0 auto;

    padding: 20px 24px;

}



/* ============================================

   FILTERS BAR - BASIC

   ============================================ */

.nr-filters {

    background: var(--nr-bg-card);

    border: 1px solid var(--nr-border);

    border-radius: var(--nr-radius-lg);

    padding: 20px;

    margin-bottom: 16px;

}



.nr-filters-row {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 16px;

}



/* Filter Field */

.nr-filter {

    flex: 1;

    min-width: 140px;

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.nr-filter-wide {

    flex: 2;

    min-width: 280px;

}



.nr-filter-narrow {

    flex: 0 0 100px;

    min-width: 80px;

}



/* Filter Label */

.nr-filter-label {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 11px;

    font-weight: 600;

    color: var(--nr-text-muted);

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.nr-filter-label .gf-icon {

    opacity: 0.6;

    width: 14px;

    height: 14px;

}



/* Filter Input/Select */

.nr-filter-input,

.nr-filter-select {

    width: 100%;

    padding: 10px 14px;

    font-family: var(--font-body);

    font-size: 14px;

    color: var(--nr-text-primary);

    background: var(--nr-bg-secondary);

    border: 1px solid var(--nr-border);

    border-radius: var(--nr-radius-sm);

    transition: all var(--nr-transition-fast);

}



.nr-filter-input:hover,

.nr-filter-select:hover {

    border-color: var(--nr-text-muted);

}



.nr-filter-input:focus,

.nr-filter-select:focus {

    outline: none;

    border-color: var(--nr-primary);

    background: var(--nr-bg-card);

    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);

}



.nr-filter-select {

    cursor: pointer;

    appearance: none;

    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='%23A8A29E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 12px center;

    padding-right: 36px;

}



.nr-filter-input::placeholder {

    color: var(--nr-text-muted);

}



/* Location with autocomplete */

.nr-filter-location {

    position: relative;

}



.nr-filter-suggestions {

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    z-index: var(--nr-z-dropdown);

    background: var(--nr-bg-card);

    border: 1px solid var(--nr-border);

    border-radius: var(--nr-radius-sm);

    box-shadow: var(--nr-shadow-lg);

    max-height: 300px;

    overflow-y: auto;

    display: none;

}



.nr-filter-suggestions.active {

    display: block;

}



.nr-suggestion-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 14px;

    font-size: 14px;

    cursor: pointer;

    transition: background var(--nr-transition-fast);

}



.nr-suggestion-item:hover {

    background: var(--nr-bg-secondary);

}



.nr-suggestion-type {

    font-size: 10px;

    text-transform: uppercase;

    color: var(--nr-text-muted);

    background: var(--nr-bg-tertiary);

    padding: 2px 6px;

    border-radius: 3px;

}



/* Filter Actions */

.nr-filters-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}



/* ============================================

   FILTERS - ADVANCED PANEL

   ============================================ */

.nr-filters-advanced {

    background: var(--nr-bg-secondary);

    border: 1px solid var(--nr-border);

    border-radius: var(--nr-radius-lg);

    padding: 20px;

    margin-bottom: 16px;

}



.nr-filters-advanced.nr-hidden {

    display: none;

}



/* Advanced filters in grouped sections */

.nr-filters-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

    gap: 16px;

}



/* Filter Group (for grouping related filters) */

.nr-filter-group {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.nr-filter-group-label {

    font-size: 11px;

    font-weight: 600;

    color: var(--nr-text-muted);

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



/* Range inputs (min-max) */

.nr-filter-range {

    display: flex;

    align-items: center;

    gap: 8px;

}



.nr-filter-range input {

    flex: 1;

    min-width: 0;

    padding: 8px 10px;

    font-size: 13px;

    border: 1px solid var(--nr-border);

    border-radius: var(--nr-radius-sm);

    background: var(--nr-bg-card);

}



.nr-filter-range input:focus {

    outline: none;

    border-color: var(--nr-primary);

}



.nr-filter-range span {

    color: var(--nr-text-muted);

    font-size: 14px;

}



/* Checkbox filters */

.nr-filter-checkbox {

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 13px;

    color: var(--nr-text-secondary);

}



.nr-filter-checkbox input {

    width: 16px;

    height: 16px;

    accent-color: var(--nr-primary);

    cursor: pointer;

}



/* Active filter indicator */

.nr-filter-active {

    position: relative;

}



.nr-filter-active::after {

    content: '';

    position: absolute;

    top: 6px;

    right: 6px;

    width: 8px;

    height: 8px;

    background: var(--nr-primary);

    border-radius: 50%;

}



/* ============================================

   SEARCH TOOLBAR

   ============================================ */

.nr-search-toolbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid var(--nr-border);

    margin-bottom: 20px;

    flex-wrap: wrap;

    gap: 12px;

}



.nr-toolbar-left,

.nr-toolbar-center,

.nr-toolbar-right {

    display: flex;

    align-items: center;

    gap: 12px;

}



/* Results count */

.nr-results-count {

    font-size: 15px;

    font-weight: 600;

    color: var(--nr-text-primary);

}



.nr-results-count span {

    color: var(--nr-primary);

}



/* Toolbar select */

.nr-toolbar-select {

    padding: 6px 32px 6px 10px;

    font-size: 13px;

    border: 1px solid var(--nr-border);

    border-radius: var(--nr-radius-sm);

    background: var(--nr-bg-card);

    cursor: pointer;

    appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23A8A29E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 10px center;

}



/* View toggle buttons */

.nr-view-toggle {

    display: flex;

    border: 1px solid var(--nr-border);

    border-radius: var(--nr-radius-sm);

    overflow: hidden;

}



.nr-view-btn {

    padding: 6px 10px;

    border: none;

    background: var(--nr-bg-card);

    cursor: pointer;

    color: var(--nr-text-muted);

    transition: all var(--nr-transition-fast);

    display: flex;

    align-items: center;

    justify-content: center;

}



.nr-view-btn:not(:last-child) {

    border-right: 1px solid var(--nr-border);

}



.nr-view-btn:hover {

    background: var(--nr-bg-secondary);

    color: var(--nr-text-primary);

}



.nr-view-btn.active {

    background: var(--nr-primary);

    color: var(--nr-text-inverse);

}



.nr-view-btn.active .gf-icon {

    filter: brightness(0) saturate(100%) invert(1);

}



/* View mode toggle (Casual / Power) */

.nr-mode-toggle {

    display: flex;

    background: var(--nr-bg-secondary);

    border-radius: var(--nr-radius-sm);

    padding: 3px;

}



.nr-mode-btn {

    padding: 6px 14px;

    font-size: 12px;

    font-weight: 500;

    border: none;

    background: transparent;

    color: var(--nr-text-secondary);

    border-radius: var(--nr-radius-xs);

    cursor: pointer;

    transition: all var(--nr-transition-fast);

}



.nr-mode-btn.active {

    background: var(--nr-bg-card);

    color: var(--nr-primary);

    box-shadow: var(--nr-shadow-sm);

}



/* ============================================

   RESULTS GRID

   ============================================ */

.nr-results {

    min-height: 400px;

}



.nr-results-grid {

    display: grid;

    gap: 20px;

}



/* Grid column variations */

.nr-grid-6 { grid-template-columns: repeat(6, 1fr); }

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

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

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

.nr-grid-1 { grid-template-columns: 1fr; }



/* List view */

.nr-view-list .nr-property-card {

    display: flex;

    flex-direction: row;

}



.nr-view-list .nr-card-image {

    width: 280px;

    flex-shrink: 0;

}



.nr-view-list .nr-card-body {

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;

}



/* Responsive grid */

@media (max-width: 1400px) {

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

}



@media (max-width: 1100px) {

    .nr-grid-6, .nr-grid-4 { grid-template-columns: repeat(3, 1fr); }

}



@media (max-width: 800px) {

    .nr-grid-6, .nr-grid-4, .nr-grid-3, .nr-grid-2 { 

        grid-template-columns: repeat(2, 1fr); 

    }

    .nr-view-list .nr-property-card { 

        flex-direction: column; 

    }

    .nr-view-list .nr-card-image { 

        width: 100%; 

    }

}



@media (max-width: 500px) {

    .nr-grid-6, .nr-grid-4, .nr-grid-3, .nr-grid-2 { 

        grid-template-columns: 1fr; 

    }

}



/* ============================================

   PROPERTY CARD

   ============================================ */

.nr-property-card {

    position: relative;

    background: var(--nr-bg-card);

    border-radius: var(--nr-radius-md);

    overflow: hidden;

    box-shadow: var(--nr-shadow-sm);

    transition: all var(--nr-transition-base);

}



.nr-property-card:hover {

    box-shadow: var(--nr-shadow-lg);

    transform: translateY(-2px);

}



.nr-card-link {

    display: block;

    text-decoration: none;

    color: inherit;

}



/* Card Image */

.nr-card-image {

    position: relative;

    aspect-ratio: 4/3;

    background: var(--nr-bg-secondary);

    overflow: hidden;

}



.nr-card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform var(--nr-transition-slow);

}



.nr-property-card:hover .nr-card-image img {

    transform: scale(1.05);

}



/* No image placeholder */

.nr-card-noimage {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    height: 100%;

    gap: 8px;

    color: var(--nr-text-muted);

}



.nr-card-noimage .gf-icon {

    opacity: 0.3;

}



.nr-card-noimage-text {

    font-size: 11px;

    opacity: 0.6;

}



/* Card badges */

.nr-card-badge {

    position: absolute;

    top: 10px;

    left: 10px;

    padding: 5px 10px;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.3px;

    border-radius: var(--nr-radius-xs);

    color: var(--nr-text-inverse);

}



.nr-badge-active { background: var(--nr-success); }

.nr-badge-pending { background: var(--nr-warning); }

.nr-badge-sold { background: var(--nr-danger); }

.nr-badge-off { background: rgba(0, 0, 0, 0.65); }



.nr-card-badge-new {

    position: absolute;

    top: 10px;

    right: 10px;

    padding: 4px 8px;

    background: var(--nr-accent);

    color: var(--nr-text-inverse);

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    border-radius: var(--nr-radius-xs);

}



/* Quick view button */

.nr-card-quickview {
    opacity: 1;

    position: absolute;

    top: 10px;

    right: 10px;

    padding: 8px;

    background: rgba(255, 255, 255, 0.9);

    border: none;

    border-radius: var(--nr-radius-sm);

    cursor: pointer;

    opacity: 0;

    transition: opacity var(--nr-transition-fast);

    color: var(--nr-text-primary);

}



.nr-property-card:hover .nr-card-quickview {
    opacity: 1;

    opacity: 1;

}



.nr-card-quickview:hover {

    background: var(--nr-bg-card);

}



/* Save/favorite button */

.nr-card-save {

    position: absolute;

    bottom: 10px;

    right: 10px;

    padding: 8px;

    background: rgba(255, 255, 255, 0.9);

    border: none;

    border-radius: var(--nr-radius-full);

    cursor: pointer;

    opacity: 0;

    transition: all var(--nr-transition-fast);

    color: var(--nr-text-muted);

}



.nr-property-card:hover .nr-card-save {

    opacity: 1;

}



.nr-card-save:hover {

    background: var(--nr-bg-card);

    color: var(--nr-danger);

}



.nr-card-save.saved {

    opacity: 1;

    color: var(--nr-danger);

}



/* Card Body */

.nr-card-body {

    padding: 14px;

}



.nr-card-price {

    font-family: var(--font-display);

    font-size: 20px;

    font-weight: 700;

    color: var(--nr-primary);

    margin-bottom: 4px;

}



.nr-card-price-na {

    font-size: 14px;

    font-weight: 400;

    color: var(--nr-text-muted);

}



.nr-card-address {

    font-size: 14px;

    font-weight: 500;

    color: var(--nr-text-primary);

    margin: 0 0 2px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.nr-card-location {

    font-size: 12px;

    color: var(--nr-text-muted);

    margin: 0 0 10px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



/* Card Meta (beds, baths, sqft) */

.nr-card-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 10px;

}



.nr-card-meta-item {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    font-size: 12px;

    color: var(--nr-text-secondary);

}



.nr-card-meta-item .gf-icon {

    opacity: 0.6;

}



/* Card Footer */

.nr-card-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 10px;

    border-top: 1px solid var(--nr-border);

}



.nr-card-type {

    font-size: 10px;

    text-transform: uppercase;

    color: var(--nr-text-muted);

    letter-spacing: 0.3px;

}



.nr-card-actions {

    display: flex;

    gap: 4px;

}



.nr-card-action-btn {

    padding: 4px;

    border: none;

    background: transparent;

    color: var(--nr-text-muted);

    cursor: pointer;

    border-radius: var(--nr-radius-xs);

    transition: all var(--nr-transition-fast);

}



.nr-card-action-btn:hover {

    background: var(--nr-bg-secondary);

    color: var(--nr-primary);

}



/* ============================================

   NO RESULTS

   ============================================ */

.nr-no-results {

    text-align: center;

    padding: 80px 20px;

}



.nr-no-results .gf-icon {

    opacity: 0.2;

    margin-bottom: 20px;

}



.nr-no-results h3 {

    font-size: 20px;

    margin-bottom: 8px;

    color: var(--nr-text-primary);

}



.nr-no-results p {

    color: var(--nr-text-muted);

    margin-bottom: 24px;

}



/* ============================================

   SEARCH PAGINATION

   ============================================ */

.nr-search-pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin-top: 32px;

    padding-top: 24px;

    border-top: 1px solid var(--nr-border);

    flex-wrap: wrap;

}



/* ============================================

   QUICK VIEW MODAL

   ============================================ */

.nr-quickview-modal .nr-modal-content {

    max-width: 900px;

}



.nr-quickview-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

}



.nr-quickview-image {

    aspect-ratio: 4/3;

    background: var(--nr-bg-secondary);

    border-radius: var(--nr-radius-md);

    overflow: hidden;

}



.nr-quickview-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.nr-quickview-details {

    display: flex;

    flex-direction: column;

}



.nr-quickview-price {

    font-family: var(--font-display);

    font-size: 28px;

    font-weight: 700;

    color: var(--nr-primary);

    margin-bottom: 8px;

}



.nr-quickview-address {

    font-size: 18px;

    font-weight: 600;

    margin-bottom: 4px;

}



.nr-quickview-location {

    font-size: 14px;

    color: var(--nr-text-muted);

    margin-bottom: 20px;

}



.nr-quickview-stats {

    display: flex;

    gap: 20px;

    padding: 16px 0;

    border-top: 1px solid var(--nr-border);

    border-bottom: 1px solid var(--nr-border);

    margin-bottom: 20px;

}



.nr-quickview-stat {

    text-align: center;

}



.nr-quickview-stat-value {

    font-size: 20px;

    font-weight: 700;

    color: var(--nr-text-primary);

}



.nr-quickview-stat-label {

    font-size: 12px;

    color: var(--nr-text-muted);

}



.nr-quickview-actions {

    margin-top: auto;

    display: flex;

    gap: 12px;

}



@media (max-width: 700px) {

    .nr-quickview-grid {

        grid-template-columns: 1fr;

    }

}



/* ============================================

   MAP PLACEHOLDER

   ============================================ */

.nr-map-placeholder {

    background: var(--nr-bg-secondary);

    border-radius: var(--nr-radius-lg);

    padding: 60px;

    text-align: center;

    margin-top: 24px;

}



.nr-map-placeholder .gf-icon {

    opacity: 0.3;

    margin-bottom: 12px;

}



.nr-map-placeholder p {

    color: var(--nr-text-muted);

    margin: 0;

}



/* ============================================

   RESPONSIVE - FILTERS

   ============================================ */

@media (max-width: 900px) {

    .nr-filters-row {

        flex-direction: column;

    }

    

    .nr-filter,

    .nr-filter-wide,

    .nr-filter-narrow {

        flex: none;

        width: 100%;

        min-width: 0;

    }

    

    .nr-filters-actions {

        flex-direction: column;

    }

    

    .nr-filters-actions .nr-btn {

        width: 100%;

    }

}



@media (max-width: 600px) {

    .nr-search-toolbar {

        flex-direction: column;

        align-items: stretch;

    }

    

    .nr-toolbar-left,

    .nr-toolbar-center,

    .nr-toolbar-right {

        justify-content: space-between;

    }

    

    .nr-filters-grid {

        grid-template-columns: 1fr 1fr;

    }

}




/* Override - always show quick view and save buttons */

.nr-card-quickview,

.nr-card-save {

    opacity: 0.85 !important;

}



.nr-property-card:hover .nr-card-quickview,

.nr-property-card:hover .nr-card-save {

    opacity: 1 !important;

}




/* ============================================

   LIST VIEW FIX

   ============================================ */

.nr-view-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.nr-view-list .nr-property-card {

    display: grid;

    grid-template-columns: 300px 1fr;

    grid-template-rows: 1fr;

    max-height: 220px;

}



.nr-view-list .nr-card-link {

    display: contents;

}



.nr-view-list .nr-card-image {

    aspect-ratio: auto;

    height: 100%;

    min-height: 200px;

    max-height: 220px;

}



.nr-view-list .nr-card-body {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 20px 24px;

}



@media (max-width: 700px) {

    .nr-view-list .nr-property-card {

        grid-template-columns: 1fr;

        max-height: none;

    }

    

    .nr-view-list .nr-card-image {

        aspect-ratio: 16/9;

        max-height: 200px;

    }

}



/* Fix quick view button position - don't overlap NEW badge */

.nr-card-quickview {

    top: auto;

    bottom: 10px;

    right: 50px;

}



.nr-card-badge-new {

    z-index: 5;

}




/* ============================================

   COLOR ENHANCEMENTS

   ============================================ */



/* Subtle gradient on filter bar */

.nr-filters {

    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAF9 100%);

    border-left: 4px solid var(--nr-primary);

}



/* Price with accent underline */

.nr-card-price {

    position: relative;

    display: inline-block;

}



/* Property type badges with category colors */

.nr-card-type {

    padding: 4px 8px;

    border-radius: 4px;

    font-weight: 600;

}



.nr-card-footer {

    background: linear-gradient(to right, var(--nr-bg-secondary) 0%, transparent 100%);

}



/* Residential - blue tint */

.nr-property-card[data-category="residential"] .nr-card-type {

    background: rgba(59, 130, 246, 0.1);

    color: #2563EB;

}



/* Commercial - purple tint */

.nr-property-card[data-category="commercial"] .nr-card-type {

    background: rgba(139, 92, 246, 0.1);

    color: #7C3AED;

}



/* Land - amber tint */

.nr-property-card[data-category="land"] .nr-card-type,

.nr-card-type:contains("LAND") {

    background: rgba(245, 158, 11, 0.1);

    color: #D97706;

}



/* Industrial - slate tint */

.nr-property-card[data-category="industrial"] .nr-card-type {

    background: rgba(100, 116, 139, 0.1);

    color: #475569;

}



/* Default category colors based on text content */

.nr-card-footer:has(.nr-card-type) {

    padding: 12px 14px;

}



/* Hover glow effect */

.nr-property-card:hover {

    box-shadow: 0 10px 40px -10px rgba(27, 77, 62, 0.25);

}



/* Status badges more vibrant */

.nr-card-badge.nr-badge-active,

.nr-card-badge:contains("FOR SALE") {

    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);

    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);

}



/* NEW badge pop */

.nr-card-badge-new {

    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);

    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);

    animation: pulse-new 2s ease-in-out infinite;

}



@keyframes pulse-new {

    0%, 100% { transform: scale(1); }

    50% { transform: scale(1.05); }

}



/* Toolbar with subtle accent */

.nr-search-toolbar {

    background: var(--nr-bg-card);

    padding: 12px 16px;

    border-radius: var(--nr-radius-md);

    margin-bottom: 20px;

    border: 1px solid var(--nr-border);

}



/* Results count emphasis */

.nr-results-count span {

    color: var(--nr-primary);

    font-weight: 700;

    font-size: 18px;

}



/* Active view button */

.nr-view-btn.active {

    background: var(--nr-primary);

    color: white;

}



.nr-view-btn.active .gf-icon {

    filter: brightness(0) invert(1);

}



/* Casual/Power toggle styling */

.nr-mode-toggle {

    background: linear-gradient(135deg, var(--nr-bg-secondary) 0%, var(--nr-bg-tertiary) 100%);

}



.nr-mode-btn.active {

    background: var(--nr-primary);

    color: white;

}



/* Quick action buttons on hover */

.nr-card-quickview:hover,

.nr-card-save:hover {

    background: var(--nr-primary);

    color: white;

}



.nr-card-quickview:hover .gf-icon,

.nr-card-save:hover .gf-icon {

    filter: brightness(0) invert(1);

}



/* Heart when saved */

.nr-card-save.saved {

    background: #FEE2E2;

    color: #DC2626;

}



/* Meta icons with subtle color */

.nr-card-meta-item .gf-icon {

    filter: brightness(0) saturate(100%) invert(23%) sepia(15%) saturate(1500%) hue-rotate(115deg) brightness(95%) contrast(90%);

    opacity: 0.8;

}




/* ============================================

   CONTENT WIDTH ALIGNMENT

   ============================================ */

.nr-search-page {

    max-width: 1400px;

    margin: 0 auto;

    padding: 24px 32px;

}



/* Match header inner width */

@media (min-width: 1600px) {

    .nr-search-page {

        max-width: 1440px;

    }

}



@media (max-width: 1200px) {

    .nr-search-page {

        max-width: 100%;

        padding: 20px 24px;

    }

}



@media (max-width: 768px) {

    .nr-search-page {

        padding: 16px;

    }

}




/* ============================================

   DUAL MODE THEME SYSTEM

   Casual = Green, Power = Blue

   ============================================ */



/* Base: Casual Mode (Green) - Default */

.nr-search-page {

    --mode-primary: #1B4D3E;

    --mode-primary-light: #2A6B54;

    --mode-primary-dark: #0F3328;

    --mode-accent: #D4A574;

    --mode-bg-tint: rgba(27, 77, 62, 0.05);

    --mode-border-tint: rgba(27, 77, 62, 0.2);

}



/* Power Mode (Blue) */

.nr-search-page.power-mode {

    --mode-primary: #1E40AF;

    --mode-primary-light: #3B82F6;

    --mode-primary-dark: #1E3A8A;

    --mode-accent: #F59E0B;

    --mode-bg-tint: rgba(30, 64, 175, 0.05);

    --mode-border-tint: rgba(30, 64, 175, 0.2);

}



/* Apply mode colors throughout */

.nr-search-page .nr-btn-primary {

    background: var(--mode-primary);

    border-color: var(--mode-primary);

}



.nr-search-page .nr-btn-primary:hover {

    background: var(--mode-primary-dark);

    border-color: var(--mode-primary-dark);

}



.nr-search-page .nr-results-count span {

    color: var(--mode-primary);

}



.nr-search-page .nr-card-price {

    color: var(--mode-primary);

}



.nr-search-page .nr-view-btn.active {

    background: var(--mode-primary);

}



.nr-search-page .nr-mode-btn.active {

    background: var(--mode-primary);

    color: white;

}



.nr-search-page .nr-filters {

    border-left-color: var(--mode-primary);

}



/* ============================================

   QUICK FILTERS BAR (Above main filters)

   ============================================ */

.nr-quick-filters {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding: 12px 20px;

    background: var(--mode-bg-tint);

    border: 1px solid var(--mode-border-tint);

    border-radius: var(--nr-radius-lg) var(--nr-radius-lg) 0 0;

    border-bottom: none;

    flex-wrap: wrap;

}



.nr-quick-filters-left {

    display: flex;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;

}



.nr-quick-filters-right {

    display: flex;

    align-items: center;

    gap: 12px;

}



/* Quick filter checkbox */

.nr-quick-check {

    display: flex;

    align-items: center;

    gap: 6px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 500;

    color: var(--nr-text-secondary);

    transition: color var(--nr-transition-fast);

    white-space: nowrap;

}



.nr-quick-check:hover {

    color: var(--nr-text-primary);

}



.nr-quick-check input[type="checkbox"] {

    width: 16px;

    height: 16px;

    accent-color: var(--mode-primary);

    cursor: pointer;

}



.nr-quick-check.checked {

    color: var(--mode-primary);

    font-weight: 600;

}



/* Mode Toggle - Enhanced */

.nr-mode-switch {

    display: flex;

    background: white;

    border: 2px solid var(--mode-border-tint);

    border-radius: var(--nr-radius-full);

    padding: 3px;

    position: relative;

}



.nr-mode-switch-btn {

    padding: 6px 16px;

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    border: none;

    background: transparent;

    color: var(--nr-text-muted);

    border-radius: var(--nr-radius-full);

    cursor: pointer;

    transition: all var(--nr-transition-fast);

    position: relative;

    z-index: 1;

}



.nr-mode-switch-btn:hover {

    color: var(--nr-text-primary);

}



.nr-mode-switch-btn.active {

    background: var(--mode-primary);

    color: white;

}



/* Casual specific styling */

.nr-mode-switch-btn.casual-btn.active {

    background: #1B4D3E;

}



/* Power specific styling */

.nr-mode-switch-btn.power-btn.active {

    background: #1E40AF;

}



/* Connect quick filters to main filters visually */

.nr-quick-filters + .nr-filters {

    border-radius: 0 0 var(--nr-radius-lg) var(--nr-radius-lg);

    border-top: 1px dashed var(--nr-border);

}



/* ============================================

   POWER MODE CARD ENHANCEMENTS

   Show extra data for power users

   ============================================ */

.nr-card-power-data {

    display: none;

    font-size: 10px;

    font-family: var(--font-mono);

    color: var(--nr-text-muted);

    padding: 8px 14px;

    background: var(--nr-bg-secondary);

    border-top: 1px solid var(--nr-border);

}



.power-mode .nr-card-power-data {

    display: block;

}



.nr-card-power-data span {

    margin-right: 12px;

}



.nr-card-power-data .label {

    color: var(--nr-text-muted);

}



.nr-card-power-data .value {

    color: var(--mode-primary);

    font-weight: 500;

}



/* ============================================

   SAVE PREFERENCE TOAST

   ============================================ */

.nr-mode-toast {

    position: fixed;

    bottom: 24px;

    left: 50%;

    transform: translateX(-50%) translateY(100px);

    background: var(--nr-text-primary);

    color: white;

    padding: 16px 24px;

    border-radius: var(--nr-radius-lg);

    box-shadow: var(--nr-shadow-xl);

    display: flex;

    align-items: center;

    gap: 16px;

    z-index: 9999;

    opacity: 0;

    transition: all 0.3s ease;

}



.nr-mode-toast.visible {

    transform: translateX(-50%) translateY(0);

    opacity: 1;

}



.nr-mode-toast-text {

    font-size: 14px;

}



.nr-mode-toast-actions {

    display: flex;

    gap: 8px;

}



.nr-mode-toast-btn {

    padding: 6px 12px;

    font-size: 12px;

    font-weight: 600;

    border: none;

    border-radius: var(--nr-radius-sm);

    cursor: pointer;

    transition: all var(--nr-transition-fast);

}



.nr-mode-toast-btn.primary {

    background: white;

    color: var(--nr-text-primary);

}



.nr-mode-toast-btn.secondary {

    background: transparent;

    color: rgba(255,255,255,0.7);

    border: 1px solid rgba(255,255,255,0.3);

}



.nr-mode-toast-btn:hover {

    opacity: 0.9;

}



/* ============================================

   RESPONSIVE ADJUSTMENTS

   ============================================ */

@media (max-width: 768px) {

    .nr-quick-filters {

        flex-direction: column;

        align-items: stretch;

        gap: 12px;

    }

    

    .nr-quick-filters-left {

        justify-content: flex-start;

    }

    

    .nr-quick-filters-right {

        justify-content: flex-end;

    }

}




/* ============================================

   LOGO TAGLINE

   ============================================ */

.nr-logo-tagline {

    font-size: 9px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: var(--nr-text-muted);

    margin-top: -2px;

}



/* ============================================

   FULL PAGE THEMING (Header/Footer)

   ============================================ */



/* Move mode vars to body level so header/footer can use them */

body.casual-mode {

    --mode-primary: #1B4D3E;

    --mode-primary-light: #2A6B54;

    --mode-primary-dark: #0F3328;

    --mode-accent: #D4A574;

    --mode-bg-tint: rgba(27, 77, 62, 0.05);

    --mode-border-tint: rgba(27, 77, 62, 0.2);

}



body.power-mode {

    --mode-primary: #1E40AF;

    --mode-primary-light: #3B82F6;

    --mode-primary-dark: #1E3A8A;

    --mode-accent: #F59E0B;

    --mode-bg-tint: rgba(30, 64, 175, 0.05);

    --mode-border-tint: rgba(30, 64, 175, 0.2);

}



/* Header theming */

body.power-mode .nr-header {

    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);

}



body.power-mode .nr-logo-icon {

    background: var(--mode-primary-light);

}



body.power-mode .nr-nav-link.active,

body.power-mode .nr-nav-link:hover {

    background: var(--mode-primary-light);

}



body.power-mode .nr-btn-primary {

    background: var(--mode-primary);

    border-color: var(--mode-primary);

}



body.power-mode .nr-btn-primary:hover {

    background: var(--mode-primary-dark);

    border-color: var(--mode-primary-dark);

}



/* Footer theming */

body.power-mode .nr-footer {

    background: #0F172A;

}



body.power-mode .nr-footer a:hover {

    color: var(--mode-primary-light);

}



/* Power mode indicator in header */

body.power-mode .nr-logo-tagline {

    color: var(--mode-accent);

}



body.power-mode .nr-logo-tagline::after {

    content: ' • Power Mode';

    color: var(--mode-primary-light);

    font-weight: 600;

}




/* ============================================

   LOGO TAGLINE FIX - Position under logo

   ============================================ */

.nr-logo {

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 12px;

}



.nr-logo-brand {

    display: flex;

    flex-direction: column;

}



.nr-logo-tagline {

    font-size: 9px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--nr-text-muted);

    margin-top: 2px;

    line-height: 1;

}



/* Power mode tagline */

body.power-mode .nr-logo-tagline {

    color: #1E40AF;

}



/* ============================================

   REMOVE BLUE HEADER BACKGROUND IN POWER MODE

   Keep header white, just change accents to blue

   ============================================ */

body.power-mode .nr-header {

    background: white;

}



body.power-mode .nr-logo-icon {

    background: #1E40AF;

}



body.power-mode .nr-nav-link.active {

    background: #1E40AF;

}



body.power-mode .nr-nav-link:hover:not(.active) {

    color: #1E40AF;

}



body.power-mode .nr-logo-text span {

    color: #1E40AF;

}




/* ============================================

   POWER MODE - Blue + Orange (not all blue)

   ============================================ */



/* Logo - Realty text stays orange, but icon is blue */

body.power-mode .nr-logo-text span {

    color: #D4A574; /* Keep orange accent */

}



body.power-mode .nr-logo-icon {

    background: #1E40AF; /* Blue icon */

}



/* Navigation - Blue accents */

body.power-mode .nr-nav-link.active {

    background: #1E40AF;

    color: white;

}



body.power-mode .nr-nav-link:hover:not(.active) {

    background: rgba(30, 64, 175, 0.1);

    color: #1E40AF;

}



/* Buttons */

body.power-mode .nr-btn-primary,

body.power-mode .nr-search-page .nr-btn-primary {

    background: #1E40AF;

    border-color: #1E40AF;

}



body.power-mode .nr-btn-primary:hover,

body.power-mode .nr-search-page .nr-btn-primary:hover {

    background: #1E3A8A;

    border-color: #1E3A8A;

}



/* Mode switch - Power button blue */

body.power-mode .nr-mode-switch-btn.power-btn.active {

    background: #1E40AF;

}



/* Quick filters border */

body.power-mode .nr-quick-filters {

    background: rgba(30, 64, 175, 0.05);

    border-color: rgba(30, 64, 175, 0.2);

}



/* Filter bar left accent */

body.power-mode .nr-filters {

    border-left-color: #1E40AF;

}



/* Price color */

body.power-mode .nr-card-price {

    color: #1E40AF;

}



/* Results count */

body.power-mode .nr-results-count span {

    color: #1E40AF;

}



/* View toggle active */

body.power-mode .nr-view-btn.active {

    background: #1E40AF;

}



/* Checkboxes */

body.power-mode .nr-quick-check input[type="checkbox"] {

    accent-color: #1E40AF;

}



body.power-mode .nr-quick-check.checked {

    color: #1E40AF;

}



/* Card hover glow */

body.power-mode .nr-property-card:hover {

    box-shadow: 0 10px 40px -10px rgba(30, 64, 175, 0.25);

}



/* Tagline in power mode */

body.power-mode .nr-logo-tagline {

    color: #64748B;

}




/* ============================================

   POWER MODE OVERRIDES - More Specific

   ============================================ */



/* Force blue on logo icon */

body.power-mode .nr-header .nr-logo .nr-logo-icon {

    background: #1E40AF !important;

}



/* Force blue on active nav */

body.power-mode .nr-header .nr-nav-link.active {

    background: #1E40AF !important;

}



/* Force blue on Discover button */

body.power-mode .nr-header .nr-nav .nr-nav-link.active {

    background: #1E40AF !important;

    color: white !important;

}




/* ============================================

   POWER MODE - Override CSS Variables

   ============================================ */

body.power-mode {

    --nr-primary: #1E40AF;

    --nr-primary-dark: #1E3A8A;

    --nr-gradient-hero: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);

}



/* Direct overrides with !important as fallback */

body.power-mode .nr-logo-icon {

    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%) !important;

}



body.power-mode .nr-nav-item.active {

    background: #1E40AF !important;

}



body.power-mode .nr-nav-link.active {

    background: #1E40AF !important;

}




/* ============================================

   GRID COLUMN MODES

   ============================================ */

.nr-results-grid {

    display: grid;

    gap: 24px;

}



/* 4 Column Grid (default) */

.nr-results-grid.nr-view-grid.nr-cols-4 {

    grid-template-columns: repeat(4, 1fr);

}



/* 2 Column Grid */

.nr-results-grid.nr-view-grid.nr-cols-2 {

    grid-template-columns: repeat(2, 1fr);

}



/* 2 Column - Larger cards */

.nr-results-grid.nr-cols-2 .nr-property-card .nr-card-image {

    aspect-ratio: 16/10;

}



.nr-results-grid.nr-cols-2 .nr-card-price {

    font-size: 28px;

}



.nr-results-grid.nr-cols-2 .nr-card-address {

    font-size: 16px;

}



/* List View */

.nr-results-grid.nr-view-list {

    grid-template-columns: 1fr;

}



.nr-results-grid.nr-view-list .nr-property-card {

    display: grid;

    grid-template-columns: 320px 1fr;

    max-height: 220px;

}



.nr-results-grid.nr-view-list .nr-card-link {

    display: contents;

}



.nr-results-grid.nr-view-list .nr-card-image {

    aspect-ratio: auto;

    height: 100%;

    min-height: 200px;

    max-height: 220px;

    border-radius: 12px 0 0 12px;

}



.nr-results-grid.nr-view-list .nr-card-body {

    padding: 20px 24px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}



.nr-results-grid.nr-view-list .nr-card-footer {

    border-radius: 0 0 12px 0;

}



/* Responsive */

@media (max-width: 1200px) {

    .nr-results-grid.nr-view-grid.nr-cols-4 {

        grid-template-columns: repeat(3, 1fr);

    }

}



@media (max-width: 900px) {

    .nr-results-grid.nr-view-grid.nr-cols-4,

    .nr-results-grid.nr-view-grid.nr-cols-2 {

        grid-template-columns: repeat(2, 1fr);

    }

}



@media (max-width: 600px) {

    .nr-results-grid.nr-view-grid.nr-cols-4,

    .nr-results-grid.nr-view-grid.nr-cols-2 {

        grid-template-columns: 1fr;

    }

    

    .nr-results-grid.nr-view-list .nr-property-card {

        grid-template-columns: 1fr;

        max-height: none;

    }

    

    .nr-results-grid.nr-view-list .nr-card-image {

        border-radius: 12px 12px 0 0;

        max-height: 200px;

    }

}




/* ============================================

   FILTER ROW LAYOUT FIX

   Location field should be wider

   ============================================ */

.nr-filters-row {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr 0.7fr 0.7fr;

    gap: 16px;

    align-items: end;

}



.nr-filter-location {

    min-width: 280px;

}



.nr-filter-location .nr-filter-input {

    width: 100%;

}



/* Responsive adjustments */

@media (max-width: 1200px) {

    .nr-filters-row {

        grid-template-columns: 2fr 1fr 1fr 1fr;

    }

    

    .nr-filter-beds,

    .nr-filter-baths {

        grid-column: span 1;

    }

}



@media (max-width: 900px) {

    .nr-filters-row {

        grid-template-columns: 1fr 1fr;

    }

    

    .nr-filter-location {

        grid-column: span 2;

    }

}



@media (max-width: 600px) {

    .nr-filters-row {

        grid-template-columns: 1fr;

    }

    

    .nr-filter-location {

        grid-column: span 1;

    }

}




/* ============================================

   FILTERS BUTTON STYLING

   ============================================ */

.nr-btn-ghost#toggleAdvanced {

    border: 2px solid var(--mode-primary, #1B4D3E);

    color: var(--mode-primary, #1B4D3E);

}



.nr-btn-ghost#toggleAdvanced:hover {

    background: var(--mode-bg-tint, rgba(27, 77, 62, 0.05));

}



.nr-btn-ghost#toggleAdvanced.has-filters {

    background: var(--mode-bg-tint, rgba(27, 77, 62, 0.1));

}



.nr-filter-count {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 20px;

    height: 20px;

    padding: 0 6px;

    background: var(--mode-primary, #1B4D3E);

    color: white;

    border-radius: 10px;

    font-size: 11px;

    font-weight: 600;

    margin-left: 4px;

}



/* ============================================

   ADVANCED FILTERS PANEL

   ============================================ */

.nr-advanced-filters {

    background: white;

    border: 1px solid var(--nr-border, #E5E7EB);

    border-top: none;

    border-radius: 0 0 12px 12px;

    padding: 24px;

    margin-bottom: 24px;

}



.nr-advanced-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

}



.nr-advanced-grid .nr-filter-group {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.nr-advanced-grid .nr-filter-label {

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: var(--nr-text-muted, #64748B);

}



.nr-advanced-grid .nr-filter-select,

.nr-advanced-grid .nr-filter-input {

    width: 100%;

    padding: 10px 12px;

    border: 1px solid var(--nr-border, #E5E7EB);

    border-radius: 8px;

    font-size: 14px;

    background: white;

    color: var(--nr-text-primary, #1F2937);

}



.nr-advanced-grid .nr-filter-select:focus,

.nr-advanced-grid .nr-filter-input:focus {

    outline: none;

    border-color: var(--mode-primary, #1B4D3E);

    box-shadow: 0 0 0 3px var(--mode-bg-tint, rgba(27, 77, 62, 0.1));

}



.nr-advanced-grid .nr-filter-range {

    display: flex;

    align-items: center;

    gap: 8px;

}



.nr-advanced-grid .nr-filter-range-sep {

    color: var(--nr-text-muted, #64748B);

}



/* Responsive */

@media (max-width: 1200px) {

    .nr-advanced-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}



@media (max-width: 900px) {

    .nr-advanced-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}



@media (max-width: 600px) {

    .nr-advanced-grid {

        grid-template-columns: 1fr;

    }

}




/* Search Results Privacy Card */

.nr-listing-privacy .nr-listing-image {

    background: linear-gradient(135deg, #1B4D3E 0%, #2A6B54 100%);

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 180px;

}



.nr-privacy-overlay {

    position: relative;

}



.nr-privacy-lock {

    display: flex;

    align-items: center;

    justify-content: center;

}



.nr-listing-badge-private {

    background: rgba(0,0,0,0.5) !important;

    color: white !important;

}



.nr-privacy-message {

    text-align: center;

    padding: 12px;

}



.nr-privacy-message strong {

    display: block;

    color: #1B4D3E;

    margin-bottom: 4px;

}



.nr-privacy-message p {

    font-size: 13px;

    color: #666;

    margin: 0;

}




/* Search Results Privacy Card */

.nr-privacy-card .nr-card-image,

.nr-privacy-image {

    background: linear-gradient(135deg, #1B4D3E 0%, #2A6B54 100%) !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    min-height: 180px !important;

    flex-direction: column;

}



.nr-privacy-lock {

    margin-bottom: 10px;

}



.nr-badge-private {

    background: rgba(0,0,0,0.4) !important;

}



.nr-privacy-message {

    text-align: center;

    padding: 16px;

}



.nr-privacy-message strong {

    color: #1B4D3E;

    display: block;

    margin-bottom: 4px;

}



.nr-privacy-message p {

    font-size: 13px;

    color: #666;

    margin: 0;

}




/* Market Value pricing on cards */

.nr-card-price-est {

    color: var(--nr-primary, #1B4D3E);

    font-weight: 600;

}

.nr-card-price-label {

    display: block;

    font-size: 11px;

    color: #888;

    font-weight: 400;

    margin-top: 2px;

}

.nr-card-price-na {

    color: #999;

    font-size: 14px;

}

