/* 
 * Premium RealPlus Listings Styles 
 */

:root {
    --rp-primary: #000;
    --rp-secondary: #007bff;
    --rp-accent: #f8f9fa;
    --rp-text: #333;
    --rp-text-muted: #6c757d;
    --rp-border: #dee2e6;
    --rp-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --rp-radius: 8px;
}

/* Global Plugin Box Sizing */
.realplus-search-wrapper,
.realplus-listings-wrapper,
.rp-full-width-section,
.rp-schedule-showing-section,
.rp-agent-profile-card,
.rp-mortgage-section,
.rp-features-grid-restructured,
.rp-showing-flex-container,
.rp-showing-form-col,
.rp-showing-carousel-wrapper {
    box-sizing: border-box;
}

.realplus-search-wrapper *,
.realplus-listings-wrapper *,
.rp-full-width-section *,
.rp-schedule-showing-section *,
.rp-agent-profile-card *,
.rp-mortgage-section *,
.rp-features-grid-restructured *,
.rp-showing-flex-container *,
.rp-showing-form-col *,
.rp-showing-carousel-wrapper * {
    box-sizing: border-box;
}

/* Container */
.realplus-grid {
    display: grid;
    row-gap: 30px;
    column-gap: 30px;
}

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

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

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

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

@media (max-width: 992px) {
    .realplus-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .realplus-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Sorting UI */
.rp-listings-sort-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
    padding: 0 5px;
}

.rp-sort-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rp-sort-inner label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rp-sort-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background-color: #fff;
    font-size: 14px;
    color: var(--rp-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease;
}

.rp-sort-select:focus {
    outline: none;
    border-color: var(--rp-secondary);
}

@media (max-width: 768px) {
    .rp-listings-sort-container {
        justify-content: flex-start;
    }
}

/* Card Styling */
.realplus-card {
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rp-card-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.rp-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rp-card-link:hover .rp-card-img {
    transform: scale(1.05);
}

.rp-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.rp-card-link:hover .rp-card-hover-overlay {
    opacity: 1;
}

.rp-view-button {
    border: 1px solid #9d7515;
    padding: 15px 30px;
    color: #9d7515;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 14px;
}

.rp-card-badge-top {
    position: absolute;
    top: 0;
    right: 0;
    background: #1a4a6e;
    color: #fff;
    padding: 10px 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status Specific Badge Colors */
.rp-card-badge-top.status-pending,
.rp-badge.status-pending {
    background: #9d7515 !important;
    /* Gold for Pending */
}

.rp-card-badge-top.status-sold,
.rp-badge.status-sold {
    background: #666 !important;
    /* Grey for Sold */
}

.rp-card-badge-top.status-leased,
.rp-badge.status-leased {
    background: #888 !important;
    /* Lighter Grey for Leased */
}

.rp-card-badge-top.status-off-market,
.rp-badge.status-off-market {
    background: #333 !important;
    /* Dark for Off Market */
}

.rp-badge {
    display: inline-block;
    background: #1a4a6e;
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rp-card-open-house {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    z-index: 8;
}

.realplus-card-content {
    padding: 0;
}

.rp-card-title {
    margin: 0 0 4px;
}

.rp-card-title a {
    color: #333;
    text-decoration: none !important;
}

.rp-card-address {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin-bottom: 5px;
}

.rp-card-specs {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin-bottom: 5px;
}

.rp-card-price {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.rp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    padding-top: 0;
    margin-top: 10px;
}

.rp-card-courtesy {
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
    flex: 1;
    font-style: italic;
    line-height: 1.4;
    padding-right: 20px;
}

.rp-card-rls-logo img {
    width: 60px;
    height: auto;
}

/* Inline Search Bar Styling */
.realplus-search-wrapper.inline-mode {
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 30px;
    /* border: 1px solid #e0e0e0; */
    position: relative;
    z-index: 9999;
}

.realplus-inline-search .inline-search-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.inline-field {
    padding: 10px 15px;
    position: relative;
}

.inline-field:last-child {
    border-right: none;
}

.inline-field.keyword-field {
    flex: 1;
    min-width: 180px;
}

.inline-field input,
.inline-field select {
    border: 1px solid #e4e4e4;
    background: #fff !important;
    border-radius: 5px !important;
    font-size: 14px;
    font-weight: 600;
    color: #1a2a40;
    width: 100%;
    padding: 5px;
}

.inline-field input:focus {
    border: 1px solid #000 !important;
}

.inline-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23333' d='M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
    padding: 5px 30px 5px 10px;
}

.inline-field input:focus,
.inline-field select:focus {
    outline: none;
}

/* Price Popup */
.price-popup-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 1px solid #e4e4e4;
    background: #fff !important;
    border-radius: 5px;
    padding: 6px 10px;
}

.current-price-range {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a2a40;
}

/* Price Popup Refinements */
.price-popup-content {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 20px;
}

.price-popup-trigger.active .price-popup-content {
    display: block !important;
}

.popup-price-inputs.inline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
    width: 100%;
}

.popup-price-inputs.inline-row .input-wrap {
    width: 100%;
}

.popup-price-inputs.inline-row input {
    min-width: 100%;
    padding: 5px;
    border: 1px solid #e4e4e4 !important;
    border-radius: 4px;
    background: #fff !important;
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
}

.popup-price-inputs.inline-row input:focus {
    border: 1px solid #000 !important;
}

/* Modern Text Toggle (Pill Switch) */
.modern-text-toggle {
    display: flex;
    background: #e4e4e4;
    padding: 4px;
    border-radius: 30px;
    position: relative;
    width: 140px;
    height: 38px;
}

.modern-text-toggle input[type="radio"] {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute;
    opacity: 0;
}

.modern-text-toggle label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin: 0;
    transition: color 0.3s;
}

.modern-text-toggle input:checked+label {
    color: #1a2a40;
}

.modern-text-toggle .toggle-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

#view-hybrid:checked~.toggle-indicator {
    transform: translateX(100%);
}

/* Modern Apply Button */
.btn-apply-price {
    width: 100%;
    background: linear-gradient(135deg, #1a2a40 0%, #2a3f5f 100%);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 42, 64, 0.2);
    transition: all 0.3s ease;
}

.btn-apply-price:hover {
    background: linear-gradient(135deg, #2a3f5f 0%, #1a2a40 100%);
    box-shadow: 0 6px 20px rgba(26, 42, 64, 0.3);
    transform: translateY(-1px);
}

/* Modern jQuery UI Slider Overrides */
.ui-slider.ui-widget-content {
    background: #e9ecef;
    border: none;
    height: 4px;
    border-radius: 4px;
    margin: 15px 5px;
}

.ui-slider .ui-slider-range {
    background: #9d7515;
    border-radius: 4px;
}

.ui-slider .ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    border: 2px solid #9d7515 !important;
    border-radius: 50% !important;
    top: -7px !important;
    margin-left: -9px !important;
    cursor: grab !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.1s;
    outline: none !important;
}

.ui-slider .ui-slider-handle:active {
    cursor: grabbing !important;
    transform: scale(1.1);
}

.icon-list,
.icon-split {
    width: 20px;
    height: 20px;
    display: block;
}


.icon-list {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

.icon-split {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 17V7m0 10a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2m0 10a2 2 0 002 2h2a2 2 0 002-2V7a2 2 0 00-2-2h-2a2 2 0 00-2 2'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

@media (max-width: 1200px) {
    .realplus-inline-search .inline-search-container {
        flex-wrap: wrap;
    }

    .inline-field {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        flex: 1 1 200px;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a2a40;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
}

.price-inputs .divider {
    color: #ccc;
}

.rp-hybrid-split {
    display: flex;
    gap: 0;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
}

.rp-hybrid-list {
    flex: 1;
    width: 50%;
    padding: 20px;
    max-height: 800px;
    overflow-y: auto;
}

.rp-hybrid-map {
    flex: 1;
    width: 50%;
}

.rp-hybrid-list::-webkit-scrollbar {
    width: 6px;
}

.rp-hybrid-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.rp-view-icon.hybrid {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 17V7m0 10a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2m0 10a2 2 0 002 2h2a2 2 0 002-2V7a2 2 0 00-2-2h-2a2 2 0 00-2 2'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

@media (max-width: 1024px) {
    .rp-hybrid-split {
        flex-direction: column;
    }

    .rp-hybrid-list,
    .rp-hybrid-map {
        width: 100%;
        max-height: none;
    }

    .rp-hybrid-map {
        height: 500px;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

/* Standalone 2-Column List View — tall images */
.view-mode-list .realplus-grid.columns-2 .rp-card-img {
    height: 400px;
    aspect-ratio: auto;
    object-fit: cover;
}

/* 3-Column List View — proper aspect ratio */
.realplus-grid.columns-3 .rp-card-img {
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
}

/* Split View (Hybrid) — compact proportional images */
.realplus-hybrid-view .rp-card-img {
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
}

/* Map Marker Styling */
.rp-map-marker-icon {
    background: none !important;
    border: none !important;
}

.rp-price-marker {
    background: #1a2a40;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    position: relative;
    border: 1px solid #fff;
    display: inline-block;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rp-price-marker:hover {
    background: #9d7515;
    transform: scale(1.1);
    z-index: 1000;
}

.rp-marker-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1a2a40;
}

.rp-price-marker:hover .rp-marker-arrow {
    border-top-color: #9d7515;
}

.rp-btn-primary {
    background: #9d7515;
    color: #fff;
    border: none;
    padding: 13px 40px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.rp-btn-primary:hover {
    background: #1a2a40;
}

/* Row 3: Footer/View */
.search-row-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.view-toggles {
    display: flex;
    gap: 15px;
}

.view-toggles input {
    display: none;
}

.view-toggles label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #eee;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.view-toggles input:checked+label {
    background: #f8f9fa;
    border-color: #9d7515;
    color: #9d7515;
}

.rp-view-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.rp-view-icon.list {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

.rp-view-icon.map {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-1.447-.894L15 7m0 10V7'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

@media (max-width: 992px) {
    .search-row-filters {
        grid-template-columns: 1fr 1fr;
    }

    .search-submit-group {
        grid-column: span 2;
    }

    .search-submit-group button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .search-row-main {
        flex-direction: column;
        align-items: stretch;
    }

    .search-row-filters {
        grid-template-columns: 1fr;
    }

    .search-submit-group {
        grid-column: span 1;
    }
}

/* Single View Improvements */
.realplus-detail-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
}

.realplus-badges {
    margin-top: 20px;
}

.realplus-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--rp-accent);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--rp-primary);
    margin-right: 8px;
}

/* Card Enhancements */
.rp-card-image {
    position: relative;
    overflow: hidden;
}

.rp-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Badges */
.rp-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.rp-badge {
    width: 145px;
    background-color: #34607b;
    padding: 8px 34px;
    text-transform: uppercase;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.status-active {
    background: #10b981;
}

.status-other {
    background: #64748b;
}

/* Pagination */
.realplus-pagination {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.realplus-pagination a,
.realplus-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    text-decoration: none !important;
    color: #9d7515;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 17px;
    font-weight: 400;
    border: none;
}

.realplus-pagination span.current,
.realplus-pagination a:hover {
    background: #9d7515;
    color: #fff !important;
}

.realplus-pagination .next,
.realplus-pagination .prev {
    font-size: 30px;
    color: #d1b87e;
    /* Lighter gold for arrows as per image */
}

.realplus-pagination .next {
    color: #9d7515;
    /* Darker gold for next arrow as per image */
}

.realplus-pagination .dots {
    color: #9d7515;
    font-size: 20px;
}

/* Neighborhood Grid */
.realplus-neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.rp-neighborhood-card {
    position: relative;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--rp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.rp-neighborhood-card:hover {
    transform: translateY(-5px);
}

.rp-neighborhood-card h4 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.rp-neighborhood-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(30, 58, 138, 0.4) 100%);
    z-index: 1;
}

.rp-favorite-btn:hover {
    transform: scale(1.1);
}

.rp-favorite-btn.active {
    color: #e74c3c;
}

/* Mortgage Calculator */
.realplus-mortgage-calc {
    background: #fff;
    padding: 25px;
    border-radius: var(--rp-radius);
    border: 1px solid var(--rp-border);
    margin-top: 30px;
}

.rp-calc-row {
    margin-bottom: 15px;
}

.rp-calc-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--rp-primary);
}

.rp-calc-row input,
.rp-calc-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--rp-border);
    border-radius: 4px;
}

.rp-calc-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--rp-border);
    text-align: center;
}

.rp-calc-result p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--rp-text-muted);
}

.rp-calc-result span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rp-secondary);
}

/* No Results */
.realplus-no-results {
    padding: 40px;
    text-align: center;
    background: var(--rp-accent);
    border-radius: var(--rp-radius);
    color: var(--rp-text-muted);
}

.rp-card-provider-logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.rp-card-provider-logo img {
    width: 70px;
    height: auto;
}

/* Single Listing Redesign V3 - Section & Container Utilities */
.rp-full-width-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    /* Default background */
}

.rp-container-1400 {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

.rp-address-title {
    font-size: 32px;
    font-weight: 700;
    margin: 15px 0 10px;
    color: var(--rp-primary);
}

.rp-address-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.rp-cross-street {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.rp-price-main {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--rp-primary);
    margin: 0;
}

/* Content Grid Section */
.rp-content-grid {
    display: flex;
    gap: 50px;
}

.rp-main-content {
    flex: 0 0 80%;
    max-width: 80%;
}

.rp-stats-sidebar {
    flex: 1;
}

.rp-sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    position: sticky;
}

.rp-sidebar-stat {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rp-sidebar-stat i {
    font-size: 24px;
    color: #9d7515;
    width: 35px;
    text-align: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info strong {
    font-size: 20px;
    color: var(--rp-primary);
    line-height: 1.2;
}

.stat-info span {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Description Section */
.rp-desc-section {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.rp-desc-section h3 {
    margin-top: 0;
    color: var(--rp-primary);
}

/* Gallery Improvements */
.rp-gallery-container {
    margin-bottom: 40px;
}

.rp-single-gallery-top {
    height: 600px;
    margin-bottom: 15px;
}

.rp-single-gallery-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Premium Swiper Arrows */
.rp-single-gallery-top .swiper-button-next,
.rp-single-gallery-top .swiper-button-prev {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff !important;
    transition: all 0.3s ease;
}

.rp-single-gallery-top .swiper-button-next:after,
.rp-single-gallery-top .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.rp-single-gallery-top .swiper-button-next:hover,
.rp-single-gallery-top .swiper-button-prev:hover {
    background: rgba(157, 117, 21, 0.8);
    /* Gold accent */
    transform: scale(1.1);
}

.rp-single-gallery-top .swiper-button-next {
    right: 50px;
    /* Increased for full width */
}

.rp-single-gallery-top .swiper-button-prev {
    left: 50px;
    /* Increased for full width */
}

.rp-single-gallery-thumbs {
    height: 120px;
}

.rp-single-gallery-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
}

.rp-single-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.rp-single-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .rp-content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .rp-main-content {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
    }

    .rp-stats-sidebar {
        order: 1;
    }

    .rp-sidebar-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        position: static;
        padding: 20px;
    }

    .rp-sidebar-stat {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    .rp-single-gallery-top {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .rp-sidebar-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .rp-address-title {
        font-size: 24px;
    }
}

/* Video Section */
.rp-video-section {
    height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
}

.rp-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-video-play-btn {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 15px 40px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rp-video-play-btn .play-icon-wrapper {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.rp-video-play-btn:hover {
    background: #fff;
    color: #000;
}

.rp-video-play-btn:hover .play-icon-wrapper {
    border-color: #000;
}

/* Video Lightbox */
.rp-video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    /* Controlled by JS as flex */
    align-items: center;
    justify-content: center;
}

.rp-video-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-video-iframe-container {
    width: 100%;
    height: 100%;
}

.rp-video-iframe-container iframe {
    width: 100%;
    height: 100%;
}

.rp-video-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1000000;
    padding: 10px;
    opacity: 0.7;
}

.rp-video-close-btn:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .rp-video-section {
        height: 400px;
    }

    .rp-video-play-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .rp-video-play-btn .play-icon-wrapper {
        width: 35px;
        height: 35px;
    }
}


/* Open Houses Section */
.rp-open-houses {
    margin-top: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
}

.rp-open-houses-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    color: var(--rp-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rp-open-houses-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-open-house-item {
    padding: 15px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.rp-open-house-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rp-open-house-item:first-child {
    padding-top: 0;
}

.rp-open-house-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rp-open-house-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rp-primary);
}

.rp-open-house-time {
    font-size: 0.95rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-open-house-note {
    font-size: 0.85rem;
    margin: 10px 0 0 0;
    font-style: italic;
    color: #888;
}

/* Agent Profile Card */
.rp-agent-profile-card {
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    margin: 20px 0;
    width: 100%;
}

.rp-agent-photo-col {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    padding-top: 10px;
}

.rp-agent-photo-col img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
}

.rp-agent-content-col {
    flex: 1;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rp-agent-name {
    margin: 0 0 15px !important;
    color: var(--rp-primary);
    text-transform: uppercase;
    line-height: 1.2;
}

.rp-agent-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
}

.rp-agent-detail {
    display: flex;
    flex-direction: column;
    min-width: fit-content;
}

.detail-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.detail-value {
    font-weight: 400;
}

.detail-value a {
    color: inherit;
    text-decoration: underline !important;
}

.detail-value a:hover {
    color: var(--rp-primary);
}

@media (max-width: 992px) {
    .rp-agent-profile-card {
        flex-direction: column;
    }

    .rp-agent-photo-col {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        text-align: center;
    }

    .rp-agent-photo-col img {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .rp-agent-content-col {
        padding: 40px 30px;
        width: 100%;
    }

    .rp-agent-name {
        font-size: 32px !important;
        text-align: center;
    }

    .rp-agent-details-grid {
        gap: 25px;
        justify-content: center;
    }

    .rp-agent-cta-row {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .rp-agent-photo-col {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .rp-agent-photo-col img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .rp-agent-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
    }

    .rp-agent-name {
        font-size: 26px !important;
        text-align: center;
        width: 100%;
    }

    .rp-agent-cta-row {
        text-align: center;
        width: 100%;
        margin-top: 20px;
    }
}

/* Features Grid Restructured V3 */
.rp-features-grid-restructured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.rp-feature-group-v3 {
    margin-bottom: 40px;
}

.rp-feature-group-title-v3 {
    margin: 0 0 15px !important;
    color: var(--rp-primary);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #999;
}

.rp-feature-items-v3 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rp-feature-item-v3 {
    font-size: 16px;
    line-height: 1.4;
}

.feature-label-v3 {
    color: #999;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-value-v3 {
    font-weight: 700;
}

@media (max-width: 992px) {
    .rp-features-grid-restructured {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Global Footer Block */
.rp-global-footer-block {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.rp-footer-block-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 200px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rp-footer-block-content {
    max-width: 800px;
}

.rp-footer-block-title {
    text-transform: uppercase;
    margin: 0 0 20px;
    color: #fff !important;
}

.rp-footer-separator {
    border-top-style: solid;
    border-top-width: 1px;
    width: 15%;
    border-color: #fff;
    margin-bottom: 15px;
    margin: 0 auto;
}

.rp-footer-block-subtitle {
    margin-top: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.rp-footer-cta-btn {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 20px 46px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rp-footer-cta-btn:hover {
    background: #fff;
    color: #9d7515;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .rp-features-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rp-features-grid-v2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rp-footer-block-title {
        font-size: 32px;
    }

    .rp-footer-block-subtitle {
        font-size: 16px;
    }
}

/* Schedule a Showing Section */
.rp-schedule-showing-section {
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.rp-showing-flex-container {
    display: flex;
    min-height: 600px;
}

.rp-showing-image-col {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.rp-showing-image-wrapper {
    width: 100%;
    height: 100%;
}

.rp-showing-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rp-showing-image-col:hover img {
    transform: scale(1.05);
}

.rp-showing-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.rp-showing-image-overlay h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #fff;
    font-weight: 700;
}

.rp-showing-image-overlay p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.rp-showing-form-col {
    flex: 1;
    padding: 60px;
}

.rp-showing-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.rp-showing-nav {
    background: #f9f9f9;
    border: 1px solid #eee;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: #333;
}

.rp-showing-nav:hover {
    background: var(--rp-primary);
    color: #fff;
    border-color: var(--rp-primary);
}

.rp-showing-carousel-container {
    flex-grow: 1;
    overflow: hidden;
}

.rp-showing-carousel-inner {
    display: flex;
    gap: 12px !important;
    transition: transform 0.5s ease;
}

.rp-showing-date-card {
    flex: 0 0 calc(33.333% - 8px);
    background: #fff;
    border: 1px solid #eee;
    padding: 15px 5px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rp-showing-date-card:hover {
    border-color: var(--rp-primary);
    background: #fdfdfd;
}

.rp-showing-date-card.active {
    border-color: var(--rp-primary);
    background: #fff;
    box-shadow: 0 5px 15px rgba(157, 117, 21, 0.1);
}

.showing-day {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
    font-weight: 700;
}

.showing-date {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--rp-primary);
}

.showing-month {
    display: block;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
}

/* Meeting Type Selection */
.rp-meeting-type-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .rp-meeting-type-selection {
        flex-direction: column;
        gap: 10px;
    }
}

.rp-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #999;
}

.rp-type-btn i {
    font-size: 16px;
}

.rp-type-btn.active {
    background: #fff;
    border-color: var(--rp-primary);
    color: var(--rp-primary);
    box-shadow: 0 5px 15px rgba(157, 117, 21, 0.1);
}

.rp-showing-form {
    margin-top: 20px;
}

.rp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .rp-form-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.rp-form-group {
    margin-bottom: 15px;
}

.rp-form-group.full-width {
    grid-column: span 2;
}

.rp-showing-form input,
.rp-showing-form select,
.rp-showing-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
}

.rp-showing-form textarea {
    min-height: auto !important;
    height: 100px;
}

.rp-showing-form input:focus,
.rp-showing-form select:focus,
.rp-showing-form textarea:focus {
    outline: none;
}

.rp-showing-form button[type=submit] {
    width: 100%;
    border: 1px solid #9d7515;
    color: #9d7515;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 20px 46px;
}

.rp-showing-form button[type=submit]:hover {
    background: #9d7515;
    color: #fff;
}

@media (max-width: 1024px) {
    .rp-showing-image-col {
        display: none;
    }
}

.rp-showing-form-col {
    width: 50%;
}

@media (max-width: 768px) {
    .rp-showing-flex-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .rp-showing-form-col {
        padding: 30px 15px;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        overflow: hidden;
    }
}

/* Carousel Mobile Overrides: Show 2 dates */
@media (max-width: 768px) {
    .rp-showing-date-card {
        flex: 0 0 calc(50% - 6px) !important;
    }
}

@media (max-width: 480px) {
    .rp-showing-date-card {
        flex: 0 0 calc(50% - 6px) !important;
    }
}

/* Layout Utilities V3 */
.rp-full-width-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.rp-container-1400 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 90px;
    width: 100%;
    box-sizing: border-box;
}

/* Remove old boxed container constraints */
.rp-boxed-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rp-agent-section-wrapper {
    background-color: #fafafa;
}

/* Section Specific Overrides */
.rp-header-section-wrapper {
    padding-top: 20px;
}

/* .rp-footer-section-wrapper {
    padding: 90px 0;
} */

/* Ensure 2nd column in agent details stays in 1 line */
.rp-agent-details-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.rp-agent-info-row {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: nowrap;
}

.rp-schedule-section-wrapper {
    background-color: #fafafa;
}

@media (max-width: 1400px) {
    .rp-container-1400 {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .rp-container-1400 {
        padding: 60px 20px;
    }

    .rp-header-section-wrapper,
    .rp-content-grid-wrapper,
    .rp-video-section-wrapper,
    .rp-agent-section-wrapper,
    .rp-features-section-wrapper,
    .rp-schedule-section-wrapper,
    .rp-mortgage-section-wrapper {
        padding: 30px 0;
    }
}

/* Mobile Layout Enhancements */
.mobile-filter-trigger-wrap {
    display: none;
}

.desktop-only {
    display: block;
}

.rp-mobile-view-toggle {
    display: none;
}

.rp-filters-popup,
.rp-filters-popup-content {
    display: contents;
    /* Desktop: act as transparent wrappers */
}

.rp-filters-popup-header,
.rp-filters-popup-footer {
    display: none;
}

.mobile-label {
    display: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a2a40;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .realplus-inline-search .inline-search-container {
        flex-wrap: nowrap !important;
        justify-content: space-between;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-filter-trigger-wrap {
        display: block;
        flex: 0 0 auto;
    }

    .inline-field.keyword-field {
        flex: 1;
        min-width: 0;
        padding-right: 5px;
    }

    .rp-mobile-filter-btn {
        background: #fff;
        border: 1px solid #e4e4e4;
        padding: 10px 15px;
        border-radius: 5px;
        font-weight: 600;
        font-size: 14px;
        color: #1a2a40;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        height: 40px;
    }

    /* Filters Popup */
    .rp-filters-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 100000;
        display: none;
        /* Controlled by JS */
        flex-direction: column;
    }

    .rp-filters-popup-content {
        display: block;
        /* Mobile popup needs block layout */
    }

    .rp-filters-popup.active {
        display: flex;
    }

    .rp-filters-popup-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .rp-filters-popup-header h3 {
        margin: 0;
        font-size: 18px;
    }

    .rp-filters-close {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #333;
    }

    .rp-filters-popup-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }

    .rp-filters-popup-content .inline-field {
        margin-bottom: 25px;
        padding: 0;
        border: none;
    }

    .mobile-label {
        display: block;
    }

    .rp-filters-popup-footer {
        padding: 20px;
        border-top: 1px solid #eee;
        display: block !important;
    }

    /* Hide list in hybrid mode on mobile to show only map */
    .view-mode-hybrid .rp-hybrid-list {
        display: none !important;
    }

    .view-mode-hybrid .rp-hybrid-map {
        width: 100% !important;
        height: calc(100vh - 200px) !important;
        min-height: 500px;
    }

    .rp-apply-filters-btn {
        width: 100%;
        background: #1a2a40;
        color: #fff;
        border: none;
        padding: 15px;
        border-radius: 5px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
    }

    /* Price Popup Adjustments for Mobile Popup */
    .rp-filters-popup-content .price-popup-content {
        display: block !important;
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 10px 0 0 0;
        border: none;
    }

    .rp-filters-popup-content .price-popup-trigger {
        display: block;
        border: none;
        padding: 0;
        background: transparent !important;
    }

    .rp-filters-popup-content .current-price-range {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* Neighborhood Guide Enhancements */
.rp-neighborhood-hero-wrapper {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.rp-neighborhood-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
}

.rp-hero-content {
    max-width: 800px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rp-hero-title {
    font-size: 64px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff !important;
}

.rp-hero-desc {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Stats Grid */
.rp-neighborhood-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.rp-stat-card {
    background: #fff;
    padding: 30px 20px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rp-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rp-stat-icon {
    font-size: 24px;
    color: #9d7515;
    width: 50px;
    height: 50px;
    background: rgba(157, 117, 21, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.rp-stat-content {
    display: flex;
    flex-direction: column;
}

.rp-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.rp-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Lifestyle Scores */
.rp-neighborhood-lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.rp-lifestyle-card {
    background: #fdfdfd;
    padding: 40px;
    text-align: center;
    border: 1px solid #eee;
}

.rp-score-circle {
    width: 100px;
    height: 100px;
    border: 4px solid #9d7515;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-score-num {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.rp-lifestyle-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rp-lifestyle-info i {
    color: #9d7515;
}

.rp-lifestyle-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Score Specific Colors */
.rp-lifestyle-card.walk .rp-score-circle {
    border-color: #2e7d32;
}

.rp-lifestyle-card.bike .rp-score-circle {
    border-color: #0277bd;
}

.rp-lifestyle-card.transit .rp-score-circle {
    border-color: #ef6c00;
}

/* Local Guide */
.rp-neighborhood-guide-wrapper {
    background: #fff;
    padding: 60px 0;
    margin-bottom: 80px;
}

.rp-guide-header {
    margin-bottom: 40px;
}

.rp-guide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rp-guide-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.rp-guide-cat-btn {
    background: #f5f5f5;
    border: 1px solid #eee;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rp-guide-cat-btn:hover,
.rp-guide-cat-btn.active {
    background: #9d7515;
    color: #fff;
    border-color: #9d7515;
}

.rp-guide-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.rp-poi-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.rp-poi-icon {
    font-size: 18px;
    color: #9d7515;
    padding-top: 5px;
}

.rp-poi-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.rp-poi-type {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

.rp-guide-loader {
    padding: 100px 0;
    text-align: center;
}

/* Neighborhood Guide Table & Tabs */
.rp-guide-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
}

.rp-guide-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-guide-tab-btn i {
    color: #9d7515;
    opacity: 0.6;
}

.rp-guide-tab-btn.active {
    color: #9d7515;
}

.rp-guide-tab-btn.active i {
    opacity: 1;
}

.rp-tab-pane {
    display: none;
}

.rp-tab-pane.active {
    display: block;
}

.rp-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

.rp-guide-table th {
    text-align: left;
    padding: 15px;
    background: #f9f9f9;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    border-bottom: 2px solid #eee;
}

.rp-guide-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.rp-guide-table tr:hover {
    background: #fdfdfd;
}

.rp-cell-category {
    color: #9d7515;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.rp-cell-distance {
    font-weight: 600;
    color: #1a2a40;
}

.rp-cell-address {
    color: #666;
    font-size: 13px;
}

.rp-poi-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rp-tab-pane {
    display: none !important;
}

.rp-tab-pane.active {
    display: block !important;
}

.rp-poi-address-sub {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-top: 4px;
}

.rp-row-hidden {
    display: none !important;
}

.rp-star-rating {
    color: #9d7515;
    font-size: 13px;
    display: flex;
    gap: 2px;
}

.rp-guide-pagination {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.rp-load-more-guide {
    background: #1a2a40 !important;
    color: #fff !important;
    padding: 12px 35px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rp-load-more-guide:hover {
    background: #9d7515 !important;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .rp-neighborhood-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rp-neighborhood-hero-wrapper {
        height: 400px;
    }

    .rp-hero-title {
        font-size: 36px;
    }

    .rp-neighborhood-stats-grid {
        grid-template-columns: 1fr;
    }

    .rp-neighborhood-lifestyle-grid {
        grid-template-columns: 1fr;
    }

    .rp-guide-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {

    /* Floating View Toggle */
    .rp-mobile-view-toggle {
        display: block;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
    }

    .rp-view-toggle-btn {
        background: #1a2a40;
        color: #fff;
        border: none;
        padding: 12px 25px;
        border-radius: 30px;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    .toggle-text-list {
        display: none;
    }

    /* Toggle text based on active view class on button */
    .rp-view-toggle-btn.view-active-map .toggle-text-map {
        display: none;
    }

    .rp-view-toggle-btn.view-active-map .toggle-text-list {
        display: block;
    }
}