/**
 * Ray White New Construction Listings - Main Styles
 *
 * Font Scheme:
 * - Lato (all weights): Headings, body text, and UI elements
 *   - 700-900: Headings
 *   - 400-600: Body and UI
 *
 * Color Scheme:
 * - Primary Button: #ffe512 (bright yellow)
 * - Button Text: #171e18 (dark green)
 * - Accent Colors: Professional grays and whites
 */

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

.rwnc-container * {
    box-sizing: border-box;
}

.rwnc-container {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.rwnc-container h1,
.rwnc-container h2,
.rwnc-container h3,
.rwnc-container h4,
.rwnc-container h5,
.rwnc-container h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #171e18;
}

.rwnc-container h1 { font-size: 2.5rem; font-weight: 800; }
.rwnc-container h2 { font-size: 2rem; font-weight: 800; }
.rwnc-container h3 { font-size: 1.5rem; font-weight: 700; }
.rwnc-container h4 { font-size: 1.25rem; font-weight: 700; }
.rwnc-container h5 { font-size: 1.125rem; font-weight: 600; }
.rwnc-container h6 { font-size: 1rem; font-weight: 600; }

.rwnc-container p {
    margin: 0 0 1rem 0;
    font-family: 'Lato', sans-serif;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.rwnc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
}

.rwnc-btn-primary {
    background-color: #ffe512 !important;
    color: #171e18 !important;
    border-color: #ffe512 !important;
}

.rwnc-btn-primary:hover {
    background-color: #e6cc0f !important;
    border-color: #e6cc0f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 229, 18, 0.3);
}

.rwnc-btn-secondary {
    background-color: #f8f9fa;
    color: #171e18;
    border-color: #dee2e6;
}

.rwnc-btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.rwnc-btn-outline {
    background-color: transparent;
    color: #171e18;
    border-color: #171e18;
}

.rwnc-btn-outline:hover {
    background-color: #171e18;
    color: #fff;
    transform: translateY(-1px);
}

.rwnc-btn-full {
    width: 100%;
}

.rwnc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   Filter Section - Sidebar Layout
   ========================================================================== */

.rwnc-main-layout {
    display: flex;
    gap: 2rem;
    position: relative;
}

.rwnc-filters-section {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.25rem;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rwnc-filters-section.collapsed {
    transform: translateX(-100%);
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.rwnc-listings-main {
    flex: 1;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

.rwnc-filters-section.collapsed + .rwnc-listings-main {
    margin-left: 0;
}

.rwnc-filters-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.rwnc-filters-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #171e18;
    margin-bottom: 0.15rem;
}

.rwnc-filters-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.rwnc-mobile-filter-bar {
    display: none;
    margin-bottom: 1.5rem;
}

.rwnc-sidebar-toggle {
    background: #ffe512;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #171e18;
}

.rwnc-sidebar-toggle:hover {
    background: #e6cc0f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.rwnc-sidebar-toggle svg {
    transition: transform 0.3s ease;
}

.rwnc-sidebar-toggle.active svg {
    transform: rotate(90deg);
}

.rwnc-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rwnc-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.rwnc-search-section {
    margin-bottom: 0.75rem;
}

.rwnc-search-input-wrapper {
    position: relative;
    width: 100%;
}

.rwnc-search-input {
    width: 100%;
    padding: 10px 45px 10px 12px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.rwnc-search-input:focus {
    outline: none;
    border-color: #ffe512;
    box-shadow: 0 0 0 3px rgba(255, 229, 18, 0.1);
}

.rwnc-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rwnc-search-btn:hover {
    color: #171e18;
    background-color: rgba(255, 229, 18, 0.1);
}

.rwnc-filters-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.rwnc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0; /* Prevent overflow */
}

.rwnc-filter-label {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rwnc-filter-select,
.rwnc-price-input {
    padding: 8px 10px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #fff;
    transition: all 0.3s ease;
    min-height: 38px;
    width: 100%;
}

.rwnc-filter-select {
    cursor: pointer;
}

.rwnc-filter-select:focus,
.rwnc-price-input:focus {
    outline: none;
    border-color: #ffe512;
    box-shadow: 0 0 0 3px rgba(255, 229, 18, 0.1);
}

.rwnc-price-inputs {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
}

.rwnc-price-input {
    width: 100%;
    font-size: 12px;
    padding: 8px 8px;
}

.rwnc-range-inputs {
    display: flex;
    gap: 0.5rem;
}

.rwnc-range-inputs .rwnc-filter-select {
    flex: 1;
    min-width: 0; /* Prevent overflow */
}

.rwnc-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rwnc-filter-actions .rwnc-btn {
    width: 100%;
    font-size: 13px;
    padding: 10px 16px;
}

/* Location Multi-Select */
.rwnc-location-select {
    width: 100%;
    min-height: 150px;
    padding: 4px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

.rwnc-location-select:focus {
    border-color: #ffe512;
    box-shadow: 0 0 0 3px rgba(255, 229, 18, 0.1);
    outline: none;
}

.rwnc-location-select option {
    padding: 6px 8px;
    font-size: 14px;
}

/* ==========================================================================
   Results Section
   ========================================================================== */

.rwnc-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.rwnc-results-count {
    font-family: 'Lato', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #171e18;
}

.rwnc-new-construction-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.rwnc-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.rwnc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffe512;
    border-radius: 50%;
    animation: rwnc-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.rwnc-loading-text {
    font-family: 'Lato', sans-serif;
    color: #6c757d;
    font-size: 1rem;
}

.rwnc-loading-state {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================================================
   Listings Grid
   ========================================================================== */

.rwnc-listings-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.rwnc-listing-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.rwnc-listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.rwnc-listing-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.rwnc-listing-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.rwnc-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rwnc-listing-card:hover .rwnc-property-image {
    transform: scale(1.05);
}

.rwnc-listing-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f8f9fa;
    color: #6c757d;
}

.rwnc-listing-no-image svg {
    margin-bottom: 0.5rem;
}

.rwnc-listing-no-image p {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    margin: 0;
}

.rwnc-image-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rwnc-listing-badges {
    position: absolute;
    top: 12px;
    left: 12px;
}

.rwnc-listing-price {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #171e18;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rwnc-listing-content {
    padding: 1.5rem;
}

.rwnc-listing-header {
    margin-bottom: 1rem;
}

.rwnc-listing-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #171e18;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.rwnc-listing-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #6c757d;
}

.rwnc-listing-address svg {
    flex-shrink: 0;
}

.rwnc-listing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.rwnc-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.rwnc-feature svg {
    color: #6c757d;
    flex-shrink: 0;
}

.rwnc-listing-description {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.rwnc-listing-agent {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.rwnc-agent-info {
    display: flex;
    justify-content: space-between;
}

.rwnc-agent-details {
    display: flex;
    flex-direction: column;
}

.rwnc-agent-name {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #171e18;
    margin-bottom: 2px;
}

.rwnc-office-name {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #6c757d;
}

.rwnc-agent-phone {
    color: #ffe512;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rwnc-agent-phone:hover {
    background-color: rgba(255, 229, 18, 0.1);
    color: #e6cc0f;
}

.rwnc-listing-actions {
    display: flex;
    gap: 0.75rem;
}

.rwnc-listing-actions .rwnc-btn {
    flex: 1;
    font-size: 12px;
    padding: 10px 16px;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.rwnc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rwnc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.rwnc-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: rwnc-modal-appear 0.3s ease-out;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for webkit browsers (Chrome, Safari, Edge) */
.rwnc-modal-container::-webkit-scrollbar {
    width: 10px;
}

.rwnc-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.rwnc-modal-container::-webkit-scrollbar-thumb {
    background: #ffe512;
    border-radius: 5px;
}

.rwnc-modal-container::-webkit-scrollbar-thumb:hover {
    background: #e6cc0f;
}

/* Custom scrollbar for Firefox */
.rwnc-modal-container {
    scrollbar-width: thin;
    scrollbar-color: #ffe512 transparent;
}

@keyframes rwnc-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.rwnc-modal-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.rwnc-modal-close {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rwnc-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.rwnc-modal-property {
    padding: 2rem;
}

.rwnc-modal-header-info {
    margin-bottom: 2rem;
}

.rwnc-modal-badges {
    margin-bottom: 1rem;
}

.rwnc-modal-title {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #171e18;
    margin-bottom: 0.5rem;
}

.rwnc-modal-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 1.5rem;
}

.rwnc-modal-price {
    font-family: 'Lato', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #171e18;
}

/* Modal Gallery */
.rwnc-modal-gallery {
    margin-bottom: 2rem;
}

.rwnc-gallery-main {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rwnc-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s ease;
    /* Keep aspect ratio, no stretching or cropping */
}

.rwnc-gallery-main img:hover {
    opacity: 0.95;
}

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

.rwnc-gallery-prev,
.rwnc-gallery-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.rwnc-gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.rwnc-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.rwnc-gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rwnc-gallery-thumb:hover,
.rwnc-gallery-thumb.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Modal Details */
.rwnc-modal-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.rwnc-property-features h3,
.rwnc-property-description h3,
.rwnc-property-additional-features h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #171e18;
    margin-bottom: 1rem;
}

.rwnc-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.rwnc-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rwnc-feature-item svg {
    color: #ffe512;
    flex-shrink: 0;
}

.rwnc-feature-item div {
    display: flex;
    flex-direction: column;
}

.rwnc-feature-item strong {
    font-family: 'Lato', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #171e18;
}

.rwnc-feature-item span {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rwnc-description-content {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 2rem;
}

.rwnc-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rwnc-features-list li {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #495057;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
    padding-left: 1.5rem;
}

.rwnc-features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Modal Sidebar */
.rwnc-modal-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

.rwnc-agent-contact h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #171e18;
    margin-bottom: 1rem;
}

.rwnc-agent-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.rwnc-agent-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rwnc-agent-card .rwnc-agent-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rwnc-agent-card .rwnc-agent-name {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #171e18;
    margin: 0;
    line-height: 1.2;
}

.rwnc-agent-card .rwnc-office-name {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    display: block;
    line-height: 1.2;
}

.rwnc-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.rwnc-contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.rwnc-contact-method svg {
    flex-shrink: 0;
    color: #ffe512;
}

.rwnc-contact-method:hover {
    color: #171e18;
}

.rwnc-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rwnc-property-events h3,
.rwnc-property-events h4 {
    font-family: 'Lato', sans-serif;
    color: #171e18;
}

.rwnc-property-events h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.rwnc-property-events h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.rwnc-event-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rwnc-event-item svg {
    color: #ffe512;
    flex-shrink: 0;
}

.rwnc-event-item div {
    display: flex;
    flex-direction: column;
}

.rwnc-event-item strong {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #171e18;
}

.rwnc-event-item span {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #6c757d;
}

/* Modal Loading & Error States */
.rwnc-modal-loading,
.rwnc-modal-error {
    text-align: center;
    padding: 3rem 2rem;
}

.rwnc-modal-loading .rwnc-loading-spinner {
    margin-bottom: 1rem;
}

.rwnc-modal-error .rwnc-error-icon {
    margin-bottom: 1rem;
}

.rwnc-modal-error .rwnc-error-icon svg {
    color: #dc3545;
}

.rwnc-modal-error h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #171e18;
    margin-bottom: 1rem;
}

.rwnc-modal-error p {
    font-family: 'Lato', sans-serif;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.rwnc-pagination {
    text-align: center;
    padding: 2rem 0;
}

.rwnc-pagination-info {
    margin-top: 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #6c757d;
}

/* ==========================================================================
   Infinite Scroll Loader
   ========================================================================== */

.rwnc-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #6c757d;
}

.rwnc-infinite-loader .rwnc-loading-spinner {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

/* ==========================================================================
   Error & No Results States
   ========================================================================== */

.rwnc-error-message,
.rwnc-no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.rwnc-error-icon,
.rwnc-no-results-icon {
    margin-bottom: 1.5rem;
}

.rwnc-error-icon svg {
    color: #dc3545;
}

.rwnc-no-results-icon svg {
    color: #6c757d;
}

.rwnc-error-message h3,
.rwnc-no-results h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #171e18;
    margin-bottom: 1rem;
}

.rwnc-error-message p,
.rwnc-no-results p {
    font-family: 'Lato', sans-serif;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.rwnc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    animation: rwnc-lightbox-fade-in 0.3s ease;
}

.rwnc-lightbox.active {
    display: flex;
}

@keyframes rwnc-lightbox-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rwnc-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rwnc-lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    animation: rwnc-lightbox-zoom-in 0.3s ease;
}

@keyframes rwnc-lightbox-zoom-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rwnc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.rwnc-lightbox-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.rwnc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.rwnc-lightbox-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.rwnc-lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.rwnc-lightbox-nav:disabled:hover {
    transform: translateY(-50%);
}

.rwnc-lightbox-prev {
    left: 30px;
}

.rwnc-lightbox-next {
    right: 30px;
}

.rwnc-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .rwnc-lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .rwnc-lightbox-prev {
        left: 15px;
    }

    .rwnc-lightbox-next {
        right: 15px;
    }

    .rwnc-lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .rwnc-lightbox-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* ==========================================================================
   Body Modal Open State
   ========================================================================== */

body.rwnc-modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

body.rwnc-sidebar-open {
    overflow: hidden;
}

body.rwnc-lightbox-open {
    overflow: hidden !important;
}

/* Ensure modal container is on top and can scroll */
.rwnc-modal-container {
    pointer-events: auto;
}

.rwnc-modal-overlay {
    pointer-events: auto;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* ==========================================================================
   Mobile Filter Toggle Button
   ========================================================================== */

.rwnc-mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 1rem;
    background: #ffe512;
    border: none;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #171e18;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.rwnc-mobile-filter-toggle:hover {
    background: #e6cc0f;
}

.rwnc-mobile-filter-toggle svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Mobile Filter Modal
   ========================================================================== */

.rwnc-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.rwnc-filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.rwnc-filter-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.rwnc-filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.rwnc-filter-modal-header h3 {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #171e18;
}

.rwnc-filter-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.rwnc-filter-modal-close:hover {
    background: #eee;
}

.rwnc-filter-modal-content {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.rwnc-filter-modal-group {
    margin-bottom: 1rem;
}

.rwnc-filter-modal-group:last-child {
    margin-bottom: 0;
}

.rwnc-filter-modal-group .rwnc-filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rwnc-filter-modal-input,
.rwnc-filter-modal-select {
    width: 100%;
    padding: 10px 12px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
}

.rwnc-filter-modal-input:focus,
.rwnc-filter-modal-select:focus {
    outline: none;
    border-color: #ffe512;
    box-shadow: 0 0 0 3px rgba(255, 229, 18, 0.15);
}

.rwnc-filter-modal-select[multiple] {
    height: 120px;
}

.rwnc-filter-modal-row {
    display: flex;
    gap: 0.75rem;
}

.rwnc-filter-modal-row > * {
    flex: 1;
}

.rwnc-filter-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.rwnc-filter-modal-footer .rwnc-btn {
    flex: 1;
}

@media (max-width: 768px) {
    .rwnc-container {
        padding: 0 15px;
    }

    .rwnc-main-layout {
        flex-direction: column;
        gap: 0;
    }

    .rwnc-mobile-filter-toggle {
        display: flex;
    }

    .rwnc-filters-section {
        display: none;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin: 0 0 1rem 0;
        border-radius: 8px;
        padding: 1rem;
        background: #f8f9fa;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .rwnc-filters-section.active {
        display: block;
    }

    .rwnc-results-info {
        justify-content: flex-end;
    }

    .rwnc-listings-main {
        width: 100%;
        margin-left: 0 !important;
    }
    
    .rwnc-listings-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rwnc-listing-actions {
        flex-direction: column;
    }
    
    .rwnc-modal-container {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .rwnc-modal-property {
        padding: 1.5rem;
    }
    
    .rwnc-modal-title {
        font-size: 1.5rem;
    }
    
    .rwnc-modal-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rwnc-features-grid {
        grid-template-columns: 1fr;
    }
    
    .rwnc-gallery-main {
        height: 300px;
    }

    .rwnc-gallery-nav {
        padding: 0 10px;
    }

    .rwnc-gallery-prev,
    .rwnc-gallery-next {
        width: 40px;
        height: 40px;
    }

    .rwnc-modal-header {
        top: 10px;
        right: 10px;
    }

    .rwnc-modal-close {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .rwnc-filters-section {
        padding: 1rem;
    }
    
    .rwnc-filters-title {
        font-size: 1.5rem;
    }
    
    .rwnc-price-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rwnc-range-inputs {
        flex-direction: column;
    }
    
    .rwnc-listing-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rwnc-modal-property {
        padding: 1rem;
    }

    .rwnc-modal-title {
        font-size: 1.25rem;
    }

    .rwnc-modal-price {
        font-size: 1.5rem;
    }

    .rwnc-modal-container {
        margin: 5px;
        max-height: calc(100vh - 10px);
        border-radius: 8px;
    }

    .rwnc-gallery-main {
        height: 250px;
    }

    .rwnc-gallery-thumbs {
        gap: 0.25rem;
    }

    .rwnc-gallery-thumb {
        width: 60px;
        height: 45px;
    }

    .rwnc-features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .rwnc-feature-item {
        padding: 0.75rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .rwnc-filters-section,
    .rwnc-pagination,
    .rwnc-modal {
        display: none !important;
    }
    
    .rwnc-listing-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .rwnc-listing-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

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

.rwnc-btn:focus,
.rwnc-filter-select:focus,
.rwnc-price-input:focus,
.rwnc-search-input:focus {
    outline: 2px solid #ffe512;
    outline-offset: 2px;
}

.rwnc-listing-card:focus {
    outline: 2px solid #ffe512;
    outline-offset: 4px;
}

/* Screen reader only content */
.rwnc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Button Loading Spinner
   ========================================================================== */

.rwnc-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(23, 30, 24, 0.3);
    border-radius: 50%;
    border-top-color: #171e18;
    animation: rwnc-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

.rwnc-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
