/**
 * RealEstate Hub - Public Styles
 * @package RealEstate_Hub
 */

/* Property Cards */
.reh-featured-properties {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.reh-featured-properties.columns-2 { grid-template-columns: repeat(2, 1fr); }
.reh-featured-properties.columns-3 { grid-template-columns: repeat(3, 1fr); }
.reh-featured-properties.columns-4 { grid-template-columns: repeat(4, 1fr); }

.reh-property-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reh-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.reh-property-card .property-image {
    position: relative;
    overflow: hidden;
}

.reh-property-card .property-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.reh-property-card:hover .property-image img {
    transform: scale(1.05);
}

.reh-property-card .property-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--reh-button, #1f6fa3);
    color: var(--reh-button-text, #fff);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.reh-property-card .property-details {
    padding: 20px;
}

.reh-property-card .property-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.reh-property-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.reh-property-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.reh-property-card h3 a:hover {
    color: #3498db;
}

.reh-property-card .property-location {
    color: #5f6b76;
    font-size: 14px;
    margin-bottom: 15px;
}

.reh-property-card .property-features {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #5f6b76;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

/* Search Form */
.reh-search-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.reh-search-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.reh-search-form input,
.reh-search-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.reh-search-form button {
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.reh-search-form button:hover {
    background: #2980b9;
}

/* Agents Grid */
.reh-agents-archive-wrapper,
.reh-agent-single-wrapper {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.reh-agents-archive-wrapper .reh-archive-header {
    margin-bottom: 20px;
}

.reh-agents-archive-wrapper .reh-archive-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2rem;
}

.reh-agents-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.reh-agents-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.reh-agents-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.reh-agents-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

.reh-agent-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reh-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.reh-agent-card .agent-photo,
.reh-agent-profile .agent-photo {
    /* Themes commonly style a generic .agent-photo as a small fixed, clipped
       frame. The plugin sizes its own images, so the wrapper must not crop. */
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.reh-agent-card .agent-photo img {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
}

.reh-agent-card .agent-name {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.reh-agent-card .agent-name a {
    color: #2c3e50;
    text-decoration: none;
}

.reh-agent-card .agent-name a:hover {
    color: #3498db;
}

.reh-agent-card .agent-office,
.reh-agent-card .agent-specialties,
.reh-agent-card .agent-bio,
.reh-agent-card .agent-contact p,
.reh-agent-profile .agent-office,
.reh-agent-profile .agent-contact p {
    margin: 0 0 10px;
    color: #6c757d;
}

.reh-agent-profile {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

.reh-agent-profile-header {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: start;
}

.reh-agent-profile .agent-photo img {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center 20%;
}

.reh-agent-profile .agent-info h2 {
    margin: 0 0 12px;
    color: #2c3e50;
}

.reh-agent-profile .agent-bio {
    margin: 18px 0;
    line-height: 1.7;
}

.agent-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.agent-properties .property-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    background: #fdfdfd;
}

.agent-properties .property-item p {
    margin: 0 0 8px;
}

.reh-agent-listings-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.reh-agent-listings-empty p {
    margin: 0 0 14px;
    color: #475569;
}

.reh-view-agent-listings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Market Trends */
.reh-market-trends {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 30px 0;
}

.reh-market-trends .trend-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.reh-market-trends .stat {
    text-align: center;
}

.reh-market-trends .stat label {
    display: block;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.reh-market-trends .stat strong {
    font-size: 28px;
    color: #2c3e50;
}

.reh-market-trends .stat strong.up {
    color: #3498db;
}

.reh-market-trends .stat strong.down {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .reh-featured-properties.columns-3,
    .reh-featured-properties.columns-4 {
        grid-template-columns: repeat(1, 1fr);
    }

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

    .reh-agent-profile-header {
        grid-template-columns: 1fr;
    }

    .reh-market-trends .trend-stats {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
    color: #fff;
}

/* ========================================
   SINGLE PROPERTY PAGE STYLES
   ======================================== */

/* Font Awesome 5 is enqueued by RealEstate_Hub_Public::enqueue_styles(). A
   mid-file @import is ignored by browsers, so none is declared here. */

/* Container */
.reh-single-property-wrapper {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa;
}

.reh-archive-wrapper {
    padding: 30px 0 60px;
}

.reh-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
}

/* The listing article is laid out by the plugin. Themes that pad every
   post_class() article (e.g. a mobile .entry rule) must not add another
   gutter inside .reh-container. */
.reh-single-property-wrapper .reh-property-single {
    padding: 0;
    margin: 0;
    min-width: 0;
}

.reh-content-main,
.reh-content-sidebar,
.reh-property-hero-gallery,
.reh-property-hero-info {
    min-width: 0;
}

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

/* Archive Hero Header */
.reh-archive-hero {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.reh-archive-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.reh-archive-hero .reh-archive-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.reh-archive-hero .reh-archive-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.reh-archive-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.reh-archive-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

/* Results Header with Sort */
.reh-results-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9375rem;
}

.results-count i {
    color: #3498db;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* Breadcrumb */
.reh-breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    padding: 10px 0;
}

.reh-breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.reh-breadcrumb a:hover {
    color: #2980b9;
}

.reh-breadcrumb .separator {
    margin: 0 8px;
    color: #adb5bd;
}

.reh-breadcrumb .current {
    color: #495057;
}

/* Property Hero — Gallery + Key Info Side by Side */
.reh-property-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

.reh-property-hero-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.reh-property-hero-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reh-hero-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.5px;
    margin-top: 8px;
}

.reh-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.reh-hero-specs {
    font-size: 0.9375rem;
    color: #6c757d;
    font-weight: 500;
}

.reh-hero-mls {
    font-size: 0.8125rem;
    color: #5f6b76;
    font-weight: 500;
}

/* Tour, video and more-information links from the listing's DDF media. */
.reh-listing-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
}

.reh-listing-links .reh-listing-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #1f5f8b;
    border-radius: var(--reh-button-radius, 8px);
    background: #fff;
    color: #1f5f8b;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.reh-listing-links .reh-listing-link:hover,
.reh-listing-links .reh-listing-link:focus {
    background: #1f5f8b;
    color: #fff;
}

/* Optional seller contact: details load into a dialog after a click. */
.reh-seller-contact {
    margin: 0 0 10px;
}

.reh-seller-contact__dialog {
    /* Theme resets zero the margin browsers use to centre dialogs. */
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    max-height: calc(100% - 32px);
    overflow: auto;
    width: calc(100% - 32px);
    max-width: 420px;
    padding: 28px 24px 20px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.3);
}

.reh-seller-contact__dialog::backdrop {
    background: rgba(17, 24, 39, 0.55);
}

.reh-seller-contact__close {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 4px 8px;
    border: 0;
    background: none;
    color: #374151;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.reh-seller-contact__details p {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.reh-seller-contact__title {
    font-size: 1.125rem;
    font-weight: 700;
}

.reh-seller-contact__name {
    font-weight: 600;
}

.reh-seller-contact__brokerage {
    margin-top: 12px !important;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.8125rem;
}

.reh-seller-contact__error {
    margin: 8px 0 0;
    color: #b32d2e;
    font-size: 0.875rem;
}

.reh-hero-highlights {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reh-hero-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: #495057;
}

.reh-hero-highlights li i {
    color: #3498db;
    font-size: 0.75rem;
}

.reh-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.reh-hero-agent-line {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Sticky CTA Sidebar */
.reh-sticky-cta {
    /* The containing sidebar is sticky. Keeping this child in normal flow
       prevents it from covering the mandatory brokerage attribution below. */
    position: static;
}

.sticky-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 4px;
}

.sticky-address {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.sticky-specs {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 16px;
}

.sticky-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.sticky-trust-line {
    text-align: center;
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0;
}

/* Quiet Attribution */
.reh-attribution-quiet {
    background: #f8f9fa;
    border: none;
    box-shadow: none;
    padding: 16px;
}

.reh-attribution-quiet .attr-line {
    font-size: 0.8125rem;
    color: #95a5a6;
    margin-bottom: 2px;
}

.reh-attribution-quiet .attr-brokerage {
    font-weight: 500;
}

.reh-attribution-quiet .attr-mls {
    font-family: monospace;
    font-size: 0.75rem;
}

.reh-attribution-quiet .attr-disclaimer {
    font-size: 0.6875rem;
    color: #b0bec5;
    margin-top: 8px;
    line-height: 1.4;
}

/* CREA DDF listing attribution */
.reh-crea-attribution {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #d9dee3;
    color: #27313a;
}

.reh-crea-attribution--compact {
    margin-top: 14px;
    padding-top: 12px;
}

.reh-crea-attribution--detail {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
    background: #fff;
    border: 1px solid #ccd4da;
    border-left: 4px solid #c62828;
    border-radius: 6px;
}

.reh-crea-attribution__parties {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reh-crea-attribution__label {
    color: #59636d;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.reh-crea-attribution__office {
    color: #1d252c;
    font-size: 0.875rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.reh-crea-attribution--detail .reh-crea-attribution__office {
    font-size: 1rem;
}

.reh-crea-attribution__agent,
.reh-crea-attribution__mls,
.reh-crea-attribution__source {
    color: #59636d;
    font-size: 0.75rem;
    line-height: 1.4;
}

.reh-crea-attribution__badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 90px;
}

.reh-crea-attribution__badge img {
    display: block;
    width: 125px;
    min-width: 90px;
    height: 125px;
    object-fit: contain;
}

/* Keep CREA's official rectangular artwork unaltered inside a square display box. */
.reh-crea-attribution--compact .reh-crea-attribution__badge img {
    width: 100px;
    height: 100px;
}

.reh-crea-attribution__copyright {
    flex-basis: 100%;
    color: #59636d;
    font-size: 0.6875rem;
    line-height: 1.45;
}

.reh-map-popup .reh-crea-attribution {
    flex-wrap: wrap;
}

/* National Pool enhanced browse-wrap notice. In the page flow by default
   (no JavaScript: it cannot be closed, so it must not cover content); the
   notice script floats it for visitors who have not accepted it yet. */
.reh-ddf-terms-notice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 920px;
    margin: 16px auto;
    padding: 16px 18px;
    color: #fff;
    background: #20262c;
    border: 1px solid #4c5964;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.reh-ddf-terms-notice.reh-ddf-terms-notice--floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    /* Above page chrome, below the photo lightbox (9999), which must show
       the whole photo including its watermark corners. */
    z-index: 9000;
}

.reh-ddf-terms-notice[hidden] {
    display: none;
}

.reh-ddf-terms-notice p {
    margin: 0;
}

.reh-ddf-terms-notice__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    flex: 0 0 auto;
}

.reh-ddf-terms-notice a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    text-decoration: underline;
}

.reh-ddf-terms-notice a.reh-ddf-terms-notice__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.reh-ddf-terms-notice a.reh-ddf-terms-notice__action--primary {
    color: #172026;
    background: #fff;
}

.reh-ddf-terms {
    width: min(100% - 32px, 860px);
    margin: 40px auto;
}

@media (max-width: 640px) {
    .reh-crea-attribution,
    .reh-ddf-terms-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .reh-ddf-terms-notice__actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Leaflet Multi-Marker Map */
.reh-leaflet-map {
    background: #edf2f7;
}

.reh-map-marker {
    background: none !important;
    border: none !important;
}

.reh-marker-price {
    background: #2c3e50;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    position: relative;
}

.reh-marker-price::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2c3e50;
}

.reh-popup-wrapper .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.reh-popup-wrapper .leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.reh-popup-wrapper .leaflet-popup-tip {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Map Embed (single property) */
.reh-property-map-embed {
    margin-bottom: 12px;
}

.reh-property-map-embed iframe {
    width: 100%;
    min-height: 350px;
}

.reh-location-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: #6c757d;
    padding: 12px 0;
}

.reh-location-details i {
    color: #3498db;
}

/* Responsive: Property Hero */
@media (max-width: 992px) {
    .reh-property-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reh-hero-price {
        font-size: 1.75rem;
    }
    .reh-hero-title {
        font-size: 1.25rem;
    }
}

/* Property Gallery Slider */
.reh-property-gallery,
.reh-property-hero-gallery {
    margin-bottom: 0;
}

.reh-gallery-slider {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.slider-main {
    position: relative;
    background: #000;
    overflow: hidden;
}

.slide-item {
    display: none;
    width: 100%;
    max-height: 600px;
}

.slide-item.active {
    display: block;
}

.slide-item img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav i {
    font-size: 1.25rem;
    color: #2c3e50;
}

.slider-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.slider-thumbnails {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: #f8f9fa;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.slider-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.slider-thumbnails::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 999px;
}

.slider-thumbnails::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 999px;
}

.thumb-item {
    flex: 0 0 96px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
    scroll-snap-align: center;
    padding: 0;
    background: transparent;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #3498db;
    opacity: 1;
    transform: scale(1.05);
}

.thumb-item img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}

/* Market-feedback release: listing navigation, favorites, and list layout. */
.reh-load-more-wrap {
    margin: 24px 0 40px;
    text-align: center;
}

.reh-load-more-wrap [aria-busy="true"] {
    cursor: progress;
    opacity: 0.75;
}

.reh-load-more-error,
.reh-saved-listings-notice {
    margin: 12px 0 0;
    color: #9b1c1c;
    font-weight: 600;
}

.reh-saved-listings-notice {
    color: #475569;
    font-weight: 500;
}

.reh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.reh-favorite-btn,
.favorite-btn.reh-favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #334155;
    cursor: pointer;
}

.reh-favorite-btn:hover,
.reh-favorite-btn.active,
.reh-favorite-btn.favorited {
    color: #dc2626;
    background: #fff;
}

.reh-property-card > .property-image .reh-favorite-btn {
    right: auto;
    left: 14px;
}

.property-price small,
.reh-sold-date {
    display: block;
    margin-top: 4px;
    font-size: 0.48em;
    font-weight: 500;
}

.reh-properties-grid.reh-layout-list .reh-property-card {
    display: grid;
    grid-template-columns: minmax(260px, 38%) 1fr;
}

.reh-properties-grid.reh-layout-list .reh-property-card .property-image {
    min-height: 100%;
}

.reh-properties-grid.reh-layout-list .reh-property-card .property-image img {
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f4f6f8;
}

@media (max-width: 700px) {
    .reh-properties-grid.reh-layout-list .reh-property-card {
        grid-template-columns: 1fr;
    }
}

/* Content Grid Layout */
.reh-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.reh-content-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section Styling */
.reh-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.section-title i {
    color: #3498db;
    font-size: 1.5rem;
}

.section-content {
    color: #495057;
    line-height: 1.8;
    font-size: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-item:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.15);
}

.feature-item i {
    font-size: 2rem;
    color: #3498db;
    min-width: 40px;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Map Section */
.reh-property-map {
    height: 400px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    gap: 10px;
}

.map-placeholder i {
    font-size: 3rem;
    color: #adb5bd;
}

.map-placeholder p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.map-placeholder small {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Sidebar Cards */
.reh-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 20px;
}

/* Quick Action Card - Prominent CTAs */
.quick-action-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-card .btn {
    margin: 0;
}

.reh-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.reh-sidebar-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 16px rgba(52,152,219,0.15);
}

.reh-sidebar-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.reh-sidebar-card .card-title i {
    color: #3498db;
}

.card-content {
    color: #495057;
}

/* Listing Attribution Card (CREA Compliance) */
.attribution-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.attribution-content {
    font-size: 0.9375rem;
}

.attribution-agent {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.attribution-agent .agent-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 8px;
}

.attribution-agent .agent-phone,
.attribution-agent .agent-email {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    color: #495057;
}

.attribution-agent .agent-phone i,
.attribution-agent .agent-email i {
    color: #3498db;
    font-size: 0.875rem;
    width: 16px;
}

.attribution-agent a,
.attribution-brokerage a {
    color: #3498db;
    text-decoration: none;
}

.attribution-agent a:hover,
.attribution-brokerage a:hover {
    text-decoration: underline;
}

.attribution-brokerage {
    margin-bottom: 15px;
}

.attribution-brokerage .brokerage-label {
    font-size: 0.8125rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.attribution-brokerage .brokerage-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.attribution-brokerage .brokerage-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
}

.attribution-brokerage .brokerage-phone i {
    color: #3498db;
    font-size: 0.875rem;
}

.attribution-disclaimer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.attribution-disclaimer small {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Property Summary Card */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.9375rem;
    color: #6c757d;
    font-weight: 500;
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Lightbox Modal */
.reh-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

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

.lightbox-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.lightbox-close i {
    font-size: 1.5rem;
    color: #2c3e50;
}

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

.lightbox-nav:hover {
    background: #fff;
}

.lightbox-nav.lightbox-prev {
    left: 20px;
}

.lightbox-nav.lightbox-next {
    right: 20px;
}

.lightbox-nav i {
    font-size: 1.5rem;
    color: #2c3e50;
}

.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

@media (max-width: 640px) {
    /* On phones the National Pool terms notice is a tall fixed bar at the
       bottom of the viewport; keep the photo counter clear of it. */
    .lightbox-counter {
        top: 24px;
        bottom: auto;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav.lightbox-prev {
        left: 8px;
    }

    .lightbox-nav.lightbox-next {
        right: 8px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .reh-content-grid {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 992px) {
    .reh-content-grid {
        grid-template-columns: 1fr;
    }

    .reh-content-sidebar {
        position: static;
    }

    .reh-property-title {
        font-size: 2rem;
    }

    .reh-property-price .price-value {
        font-size: 2rem;
    }

    .reh-quick-stats {
        padding: 20px 10px;
    }
}

@media (max-width: 768px) {
    /* .reh-container supplies the side gutter on phones; a second
       horizontal padding here squeezed the page by 30px. */
    .reh-single-property-wrapper {
        padding: 20px 0;
    }

    .reh-property-header {
        padding: 20px;
    }

    .reh-property-header-content {
        flex-direction: column;
    }

    .reh-header-right {
        text-align: left;
        width: 100%;
    }

    .reh-property-title {
        font-size: 1.75rem;
    }

    .reh-property-price .price-value {
        font-size: 1.75rem;
    }

    .reh-quick-stats {
        justify-content: flex-start;
        gap: 15px;
    }

    .quick-stat-item {
        min-width: 80px;
    }

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

    .reh-section {
        padding: 20px;
    }

    .reh-sidebar-card {
        padding: 20px;
    }

    /* Theme buttons default to nowrap; inside listing pages long labels
       (translated "Send Message", agent names) must wrap, not overflow. */
    .reh-single-property-wrapper .btn {
        white-space: normal;
        max-width: 100%;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .slider-thumbnails {
        gap: 8px;
        padding: 10px;
    }

    .thumb-item {
        flex-basis: 72px;
    }

    .thumb-item img {
        height: 54px;
    }
}

@media (max-width: 480px) {
    .reh-section,
    .reh-sidebar-card {
        padding: 16px;
    }

    .section-title {
        font-size: 1.375rem;
    }
}

/* ========================================
   PROFESSIONAL BUTTON STYLES
   ======================================== */

/* Primary Button.
   Generic submit controls are styled only inside plugin markup (any ancestor
   with a reh-* class) so theme comment, search and block forms keep their own
   look. :where() keeps the original specificity. */
.btn,
.reh-btn,
:where([class^="reh-"], [class*=" reh-"]) input[type="submit"],
:where([class^="reh-"], [class*=" reh-"]) button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    /* White text needs 4.5:1: #1f6fa3 gives 5.4:1 (#3498db gave 3.15:1). */
    background: linear-gradient(135deg, #1f6fa3 0%, #185a85 100%);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52,152,219,0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Block */
.btn-block {
    width: 100%;
    display: flex;
}

/* Large Button */
.btn-lg {
    padding: 18px 32px;
    font-size: 1.125rem;
}

.btn:hover,
.reh-btn:hover,
:where([class^="reh-"], [class*=" reh-"]) input[type="submit"]:hover,
:where([class^="reh-"], [class*=" reh-"]) button[type="submit"]:hover {
    background: linear-gradient(135deg, #185a85 0%, #134a6d 100%);
    box-shadow: 0 6px 20px rgba(52,152,219,0.35);
    transform: translateY(-2px);
    color: #fff !important;
}

.btn:active,
.reh-btn:active,
:where([class^="reh-"], [class*=" reh-"]) input[type="submit"]:active,
:where([class^="reh-"], [class*=" reh-"]) button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

/* Secondary Button - Outline Style (#1f6fa3 text: 5.4:1 on white) */
.btn-secondary,
.reh-btn-secondary {
    background: #fff !important;
    color: #1f6fa3 !important;
    border: 2px solid #1f6fa3 !important;
    box-shadow: 0 2px 8px rgba(52,152,219,0.15) !important;
}

.btn-secondary:hover,
.reh-btn-secondary:hover {
    background: #3498db !important;
    color: #fff !important;
    border-color: #3498db !important;
    box-shadow: 0 4px 16px rgba(52,152,219,0.25) !important;
    transform: translateY(-2px);
}

/* Success Button */
.btn-success,
.reh-btn-success {
    background: linear-gradient(135deg, #2980b9 0%, #2472a4 100%);
    box-shadow: 0 4px 12px rgba(39,174,96,0.25);
}

.btn-success:hover,
.reh-btn-success:hover {
    background: linear-gradient(135deg, #2472a4 0%, #1a6fa0 100%);
    box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}

/* Outline Button */
.btn-outline,
.reh-btn-outline {
    background: transparent;
    color: #1f6fa3 !important;
    border: 2px solid #1f6fa3;
    box-shadow: none;
}

.btn-outline:hover,
.reh-btn-outline:hover {
    background: #3498db;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(52,152,219,0.25);
}

/* Large Button */
.btn-large,
.reh-btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Small Button */
.btn-small,
.reh-btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Icon Buttons */
.btn i,
.reh-btn i {
    font-size: 1.1em;
}

/* Form Inputs - Professional Styling (plugin markup only; see above) */
:where([class^="reh-"], [class*=" reh-"]) input[type="text"],
:where([class^="reh-"], [class*=" reh-"]) input[type="email"],
:where([class^="reh-"], [class*=" reh-"]) input[type="tel"],
:where([class^="reh-"], [class*=" reh-"]) input[type="number"],
:where([class^="reh-"], [class*=" reh-"]) input[type="date"],
:where([class^="reh-"], [class*=" reh-"]) input[type="time"],
:where([class^="reh-"], [class*=" reh-"]) select,
:where([class^="reh-"], [class*=" reh-"]) textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: #2c3e50;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

:where([class^="reh-"], [class*=" reh-"]) input[type="text"]:focus,
:where([class^="reh-"], [class*=" reh-"]) input[type="email"]:focus,
:where([class^="reh-"], [class*=" reh-"]) input[type="tel"]:focus,
:where([class^="reh-"], [class*=" reh-"]) input[type="number"]:focus,
:where([class^="reh-"], [class*=" reh-"]) input[type="date"]:focus,
:where([class^="reh-"], [class*=" reh-"]) input[type="time"]:focus,
:where([class^="reh-"], [class*=" reh-"]) select:focus,
:where([class^="reh-"], [class*=" reh-"]) textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

:where([class^="reh-"], [class*=" reh-"]) textarea {
    min-height: 120px;
    resize: vertical;
}

/* Form Labels */
:where([class^="reh-"], [class*=" reh-"]) label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9375rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

/* Inquiry / appointment form feedback (public.js). Styled here rather than
   in a template so it also works for the listing-page contact form. */
.reh-form-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}

.reh-form-notice:focus {
    outline: 3px solid rgba(41, 128, 185, 0.45);
    outline-offset: 2px;
}

/* Two classes so the inline .success-message styles printed by the legacy
   contact/appointment templates (white on light green, under 3:1) lose. */
.reh-form-notice.reh-form-notice--success,
.reh-form-notice.reh-form-notice--error {
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: none;
    font-size: 1rem;
    text-align: left;
}

.reh-form-notice.reh-form-notice--success {
    background: #ecfdf3;
    border: 1px solid #86efac;
    color: #14532d;
}

.reh-form-notice.reh-form-notice--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

/* Contact Form Styling */
.reh-sidebar-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.reh-sidebar-card input,
.reh-sidebar-card textarea,
.reh-sidebar-card select {
    margin-bottom: 0;
}

/* Price Highlight */
.reh-property-price .price-value {
    background: linear-gradient(135deg, #2980b9 0%, #2472a4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Shadows and Depth */
.reh-property-header,
.reh-section,
.reh-sidebar-card,
.reh-gallery-slider {
    position: relative;
}

.reh-property-header::before,
.reh-section::before,
.reh-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: -1;
}

.reh-property-header:hover::before,
.reh-section:hover::before,
.reh-sidebar-card:hover::before {
    opacity: 1;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #3498db;
    color: #fff;
}

::-moz-selection {
    background: #3498db;
    color: #fff;
}

/* ========================================
   COMPACT SEARCH FORM - MODERN DESIGN
   ======================================== */

.reh-search-form-modern {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 100%;
    box-sizing: border-box;
}

/* The modern wrapper supplies the card chrome. The inner form still carries
   the legacy .reh-search-form class, whose 30px grey panel must not stack a
   second padded box inside it (it pushed fields off small phones). */
.reh-search-form-modern .reh-search-form {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.search-form-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-main-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-item {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.filter-item i {
    position: absolute;
    left: 12px;
    color: #6c757d;
    z-index: 1;
    font-size: 0.875rem;
    pointer-events: none;
}

.reh-search-form-modern .filter-item input,
.reh-search-form-modern .filter-item input[type="text"],
.reh-search-form-modern .filter-item input[type="number"],
.reh-search-form-modern .filter-item select {
    height: 44px !important;
    padding: 0 12px 0 36px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease;
    /* background-color only: a background shorthand here would also erase
       the select arrow image below. */
    background-color: #f5f7fa !important;
    cursor: pointer;
    color: #333 !important;
    width: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: none !important;
}

.reh-search-form-modern .filter-item input::placeholder {
    color: #6c757d;
}

.reh-search-form-modern .filter-item input,
.reh-search-form-modern .filter-item input[type="text"] {
    width: 200px;
}

.reh-search-form-modern .filter-item input[type="number"] {
    width: 130px;
}

.reh-search-form-modern .filter-item select {
    /* Size to the longest option (e.g. "Any Viewing", translated labels)
       now that the right padding is reserved for the arrow. */
    width: auto;
    min-width: 130px;
    max-width: min(100%, 240px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* The native arrow is removed by appearance:none, so draw one. The
       !important flags are required because the design-settings inline CSS
       (class-market-enhancements.php) sets an !important background shorthand
       on every search control, which would otherwise wipe this image. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px 12px !important;
    padding-right: 30px !important;
    text-overflow: ellipsis;
}

.reh-search-form-modern .filter-item input:hover,
.reh-search-form-modern .filter-item select:hover {
    background-color: #eef1f5 !important;
}

.reh-search-form-modern .filter-item input:focus,
.reh-search-form-modern .filter-item select:focus {
    background-color: #fff !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.45) !important;
}

.filter-keyword {
    flex: 2 1 240px;
    min-width: 200px;
}

.filter-sort {
    margin-left: auto;
}

.filter-keyword input {
    width: 100%;
}

.filter-price {
    display: none;
}

.price-separator {
    display: none;
}

.reh-search-form--advanced .filter-price {
    display: flex;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

.reh-search-form-modern .filter-price input[type="number"] {
    flex: 0 1 130px;
    width: 130px;
    min-width: 0;
}

/* Only the first price field has an icon; !important is needed to beat the
   shared control padding above (also !important). */
.reh-search-form--advanced .filter-price input[name="max_price"] {
    padding-left: 12px !important;
}

.reh-search-form--advanced .price-separator {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: #6c757d;
    font-weight: 600;
}

.reh-search-form--vertical .search-main-filters {
    flex-direction: column;
    align-items: stretch;
}

.reh-search-form--vertical .filter-item {
    width: 100%;
}

.reh-search-form--vertical .filter-item input,
.reh-search-form--vertical .filter-item input[type="text"],
.reh-search-form--vertical .filter-item select {
    width: 100%;
    max-width: 100%;
}

.reh-search-form--vertical .filter-price input[type="number"] {
    flex: 1 1 120px;
    width: auto;
}

.reh-search-form--vertical .btn-search {
    width: 100%;
    justify-content: center;
}

.reh-search-form--vertical.reh-search-form--advanced .filter-price {
    flex-wrap: wrap;
}

.reh-search-form--vertical.reh-search-form--advanced .price-separator {
    display: none;
}

.filter-sort select {
    width: 130px;
}

.btn-search {
    padding: 0 24px;
    height: 44px;
    white-space: nowrap;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
}

.btn-search i {
    font-size: 0.875rem;
}

.btn-clear-filters {
    padding: 0 16px;
    height: 44px;
    white-space: nowrap;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    background: #f5f7fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    background: #e9ecef;
    color: #495057;
}

.search-advanced-toggle {
    display: none;
}

.search-advanced-filters {
    display: none;
}

/* Results Header */
.reh-results-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    color: #495057;
}

.results-count i {
    color: #3498db;
    font-size: 1.25rem;
}

.results-count strong {
    color: #2c3e50;
    font-size: 1.25rem;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.view-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.view-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* Properties Grid */
.reh-properties-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

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

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

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

.property-status.status-sold {
    background: #c0392b !important; /* white text 5.4:1 */
    font-weight: 700;
}

.reh-properties-grid.columns-1 {
    grid-template-columns: 1fr;
}

/* List view (the archive/search "List" toggle switches the grid to
   columns-1): lay each card out as a horizontal row instead of one huge
   full-width card. The photo keeps object-fit: contain (see the DDF
   watermark rule at the end of this file). */
.reh-properties-grid.columns-1 .reh-property-card-modern {
    display: grid;
    grid-template-columns: minmax(200px, 34%) minmax(0, 1fr);
    align-items: stretch;
}

.reh-properties-grid.columns-1 .reh-property-card-modern .property-image {
    aspect-ratio: 4 / 3;
    align-self: start;
    background: #f4f6f8;
}

.reh-properties-grid.columns-1 .reh-property-card-modern .property-image > a {
    display: block;
    height: 100%;
}

.reh-properties-grid.columns-1 .reh-property-card-modern .property-content {
    min-width: 0;
}

.reh-properties-grid.columns-1 .reh-property-card-modern .property-actions {
    justify-content: flex-start;
}

.reh-properties-grid.columns-1 .reh-property-card-modern .btn-view-details {
    flex: 0 1 auto;
}

@media (max-width: 700px) {
    .reh-properties-grid.columns-1 .reh-property-card-modern {
        grid-template-columns: 1fr;
    }

    .reh-properties-grid.columns-1 .reh-property-card-modern .property-image {
        aspect-ratio: 16 / 10;
    }
}

/* Modern Property Card */
.reh-property-card-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reh-property-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: #3498db;
}

.reh-property-card-modern .property-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

.reh-property-card-modern:hover .property-image img {
    transform: scale(1.08);
}

.property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fff;
    color: #2c3e50;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.badge-status.status-active {
    background: linear-gradient(135deg, #2980b9 0%, #2472a4 100%);
    color: #fff;
}

.badge-status.status-sold {
    /* White 11px text needs at least 4.5:1 on both gradient stops. */
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: #fff;
}

.property-content {
    padding: 22px;
}

.property-price {
    font-size: 1.875rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

/* Rental price indicator */
.rental-frequency {
    font-size: 0.6em;
    font-weight: 500;
    color: #6c757d;
    -webkit-text-fill-color: #6c757d;
    background: none;
}

.property-title {
    margin: 0 0 6px 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
}

.property-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: #3498db;
}

.property-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #5f6b76;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.property-location i {
    color: #3498db;
    font-size: 0.8125rem;
}

.property-type-label {
    color: #5f6b76;
    font-weight: 400;
}

.property-meta {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-size: 0.9375rem;
    font-weight: 600;
}

.meta-item i {
    color: #3498db;
    font-size: 1rem;
}

.property-actions {
    display: flex;
    gap: 10px;
}

.btn-view-details {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* No Results */
.reh-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.reh-no-results i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.reh-no-results h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 10px;
}

.reh-no-results p {
    color: #6c757d;
    font-size: 1.0625rem;
}

/* Pagination */
.reh-pagination-modern {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.reh-pagination-modern a,
.reh-pagination-modern span {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reh-pagination-modern a:hover {
    border-color: #3498db;
    background: #3498db;
    color: #fff;
}

.reh-pagination-modern .current {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* Responsive. The field selectors repeat the base selectors (same
   specificity, later in the file) so these widths actually apply. */
@media (max-width: 1200px) {
    .reh-search-form-modern .filter-item input[type="text"] {
        width: 160px;
    }

    .btn-search {
        padding: 0 16px;
    }
}

@media (max-width: 992px) {
    .reh-properties-grid.columns-4,
    .reh-properties-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .reh-search-form-modern {
        padding: 16px;
    }

    .reh-search-form-modern .filter-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .reh-search-form-modern .filter-keyword,
    .reh-search-form-modern .filter-price {
        flex: 1 1 100%;
        min-width: 0;
    }

    .reh-search-form-modern .filter-item input,
    .reh-search-form-modern .filter-item input[type="text"],
    .reh-search-form-modern .filter-item input[type="number"],
    .reh-search-form-modern .filter-item select {
        width: 100%;
        max-width: 100%;
    }

    .reh-search-form-modern .filter-price input[type="number"] {
        flex: 1 1 0;
        width: auto;
    }

    .btn-search {
        flex: 1 1 100%;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .reh-search-form-modern {
        border-radius: 12px;
        padding: 15px;
    }

    .reh-search-form-modern .filter-item {
        flex: 1 1 100%;
    }

    .btn-search {
        width: 100%;
        height: 48px;
    }

    .reh-properties-grid.columns-4,
    .reh-properties-grid.columns-3,
    .reh-properties-grid.columns-2 {
        grid-template-columns: 1fr;
    }

    .reh-results-header-modern {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ==================================================
   ABOUT PROFILE SECTION
   ================================================== */

/* The About profile is a full-width layout: hide the theme sidebar only on
   pages that actually render it (not on every Page of the site). */
body.page .content-area:has(.reh-about) > .widget-area,
body.page .content-area:has(.reh-about) > aside.sidebar,
body.reh-has-about-profile .content-area > .widget-area,
body.reh-has-about-profile .content-area > aside.sidebar {
    display: none;
}

/* body.reh-has-about-profile is added server-side for browsers without
   :has() (Firefox before 121, Safari before 15.4). */
body.page .content-area:has(.reh-about),
body.reh-has-about-profile .content-area {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.reh-about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section with Photo and Content */
.reh-about-hero {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
    padding: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.3);
}

.reh-about-photo {
    flex-shrink: 0;
}

.reh-about-photo img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.reh-about-copy {
    flex: 1;
    color: #fff;
}

.reh-about-kicker {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px 0;
}

.reh-about-copy h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.reh-about-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 25px 0;
}

/* Credentials Chips */
.reh-about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.reh-about-credentials .chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.reh-about-credentials .chip:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Bio Text */
.reh-about-bio {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Hard white text for bio on blue hero - prevents theme defaults from bleeding through */
.reh-about-hero .reh-about-bio,
.reh-about-hero .reh-about-bio p,
.reh-about-hero .reh-about-bio a,
.reh-about-hero .reh-about-bio li {
    color: #fff;
}

.reh-about-bio p {
    margin: 0 0 15px 0;
}

/* Call to Action Buttons */
.reh-about-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reh-about-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* Long labels wrap on narrow phones instead of widening the page. */
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reh-about-cta .btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.reh-about-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.reh-about-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.reh-about-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Stats Bar */
.reh-about-stats {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    padding: 50px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.reh-about-stats .stat {
    text-align: center;
    flex: 1;
}

.reh-about-stats .stat strong {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #3498db;
    line-height: 1;
    margin-bottom: 10px;
}

.reh-about-stats .stat span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services / Process Section */
.reh-about-services {
    padding: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.reh-about-services h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 35px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

.service-item i {
    font-size: 1.5rem;
    color: #2980b9;
    flex-shrink: 0;
}

.service-item span {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 992px) {
    .reh-about-hero {
        flex-direction: column;
        gap: 40px;
        padding: 40px 30px;
        text-align: center;
    }

    .reh-about-photo {
        margin: 0 auto;
    }

    .reh-about-photo img {
        width: 250px;
        height: 250px;
    }

    .reh-about-copy h1 {
        font-size: 2.5rem;
    }

    .reh-about-credentials {
        justify-content: center;
    }

    .reh-about-cta {
        justify-content: center;
    }

    .reh-about-stats {
        flex-wrap: wrap;
        padding: 35px 25px;
    }

    .reh-about-stats .stat {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .reh-about {
        padding: 40px 15px;
    }

    .reh-about-hero {
        padding: 30px 20px;
        gap: 30px;
        margin-bottom: 40px;
    }

    .reh-about-photo img {
        width: 200px;
        height: 200px;
    }

    .reh-about-copy h1 {
        font-size: 2rem;
    }

    .reh-about-bio {
        font-size: 1rem;
    }

    .reh-about-stats {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .reh-about-stats .stat strong {
        font-size: 2.5rem;
    }

    .reh-about-services {
        padding: 30px 20px;
    }

    .reh-about-services h2 {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .reh-about-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        letter-spacing: 0;
    }
}
/* ==================================================
   TESTIMONIALS SHOWCASE SECTION (Matching About Us Design)
   ================================================== */

/* Main Container */
.reh-testimonials-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Header */
.reh-testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.reh-testimonials-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.reh-testimonials-subheading {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout - Dynamic columns */
.testimonials-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.testimonials-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.testimonials-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Individual Testimonial Card */
.testimonial-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.18);
}

/* Quote Icon (Background) */
.testimonial-card-modern::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.12);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* Rating Stars */
.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-rating i {
    color: #f39c12;
    font-size: 1.125rem;
}

.testimonial-rating .far {
    color: #ddd;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.verified-badge i {
    font-size: 0.875rem;
}

/* Testimonial Text */
.testimonial-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-text p {
    margin: 0;
}

/* Client Info Section */
.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

/* Avatar Container */
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(37, 99, 235, 0.14);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Initials Circle (Fallback) */
.testimonial-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Client Info Text */
.testimonial-client-info {
    flex: 1;
}

.testimonial-client-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 3px 0;
}

.testimonial-client-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* CTA Button Section */
.reh-testimonials-cta {
    text-align: center;
    margin-top: 50px;
}

.reh-testimonials-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.reh-testimonials-cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.36);
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

.reh-testimonials-cta .btn-cta i {
    font-size: 1.25rem;
}

/* Empty State */
.reh-testimonials-empty {
    text-align: center;
    padding: 100px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.reh-testimonials-empty .empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reh-testimonials-empty .empty-icon i {
    font-size: 3rem;
    color: #fff;
}

.reh-testimonials-empty h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.reh-testimonials-empty p {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0 0 30px 0;
}

.reh-testimonials-empty .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.reh-testimonials-empty .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
}

/* Featured Testimonial Highlight */
.testimonial-card-modern.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
}

.testimonial-card-modern.featured:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.25);
}

/* Responsive Design */
@media (max-width: 992px) {
    .testimonials-grid[data-columns="3"],
    .testimonials-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .reh-testimonials-header h2 {
        font-size: 2rem;
    }

    .testimonial-card-modern {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .reh-testimonials-showcase {
        padding: 60px 15px;
    }

    .reh-testimonials-header {
        margin-bottom: 40px;
    }

    .reh-testimonials-header h2 {
        font-size: 1.75rem;
    }

    .reh-testimonials-subheading {
        font-size: 1rem;
    }

    .testimonials-grid,
    .testimonials-grid[data-columns="2"],
    .testimonials-grid[data-columns="3"],
    .testimonials-grid[data-columns="4"] {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .testimonial-card-modern {
        padding: 25px;
    }

    .testimonial-card-modern::before {
        font-size: 3rem;
        top: 15px;
        left: 20px;
    }

    .testimonial-text {
        font-size: 0.9375rem;
    }

    .testimonial-avatar,
    .testimonial-initials {
        width: 50px;
        height: 50px;
    }

    .testimonial-initials {
        font-size: 1.125rem;
    }

    .reh-testimonials-cta .btn-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reh-testimonials-header h2 {
        font-size: 1.5rem;
    }

    .testimonial-client {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .testimonial-avatar,
    .testimonial-initials {
        margin-bottom: 10px;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.reh-contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.reh-contact-hero {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 32px;
    background: linear-gradient(135deg, var(--reh-button-hover, #185a85), var(--reh-button, #1f6fa3));
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
    color: #0f172a;
}

.reh-contact-profile {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.reh-contact-avatar {
    flex-shrink: 0;
}

.reh-contact-profile--no-avatar {
    grid-template-columns: minmax(0, 1fr);
}

.reh-contact-avatar--logo img {
    width: auto;
    max-width: 140px;
    height: auto;
    max-height: 96px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
}

.reh-contact-topics {
    border: 0;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reh-contact-topics legend {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 0.95rem;
    padding: 0;
}

.reh-contact-topic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #d7dee7;
    border-radius: 999px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.3;
}

.reh-contact-topic input {
    accent-color: var(--reh-button, #1f6fa3);
    margin: 0;
}

.reh-contact-topic:has(input:checked) {
    border-color: var(--reh-button, #1f6fa3);
    background: #ffffff;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--reh-button, #1f6fa3) 25%, transparent);
}

.reh-contact-topic:has(input:focus-visible) {
    outline: 2px solid var(--reh-button, #1f6fa3);
    outline-offset: 2px;
}

.reh-contact-avatar img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.reh-contact-avatar-placeholder {
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background: linear-gradient(135deg, var(--reh-button, #1f6fa3), var(--reh-button-hover, #185a85));
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.reh-contact-meta .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    font-size: 0.8rem;
}

.reh-contact-meta h2 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    color: #0f172a;
}

.reh-contact-meta .title {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-weight: 600;
}

.reh-contact-meta .helper {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.reh-contact-channels {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.reh-contact-channels .channel {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 12px 14px;
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reh-contact-channels .channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

.reh-contact-channels .channel .icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.reh-contact-channels .channel--static {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.reh-contact-channels .channel--booking {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    font-weight: 600;
    text-align: center;
    justify-content: center;
}

.reh-contact-channels .channel--booking:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2472a4 100%);
    color: #fff;
    transform: translateY(-2px);
}

.reh-contact-btn--booking {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: #fff !important;
    font-weight: 600;
    text-align: center;
}

.reh-contact-btn--booking:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2472a4 100%) !important;
}

.reh-contact-form-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.reh-contact-form-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--reh-primary-text, #1f6fa3);
    font-weight: 700;
    margin: 0 0 4px 0;
    font-size: 0.85rem;
}

.reh-contact-form-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    color: #0f172a;
}

.reh-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    color: #0f172a;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.reh-contact-form--styled .reh-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 16px;
}

.reh-contact-form--styled .form-group {
    display: flex;
    flex-direction: column;
}

.reh-contact-form--styled label {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.reh-contact-form--styled .required {
    color: #e11d48;
}

.reh-contact-form--styled input[type="text"],
.reh-contact-form--styled input[type="email"],
.reh-contact-form--styled input[type="tel"],
.reh-contact-form--styled textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.reh-contact-form--styled input:focus,
.reh-contact-form--styled textarea:focus {
    outline: none;
    border-color: var(--reh-button, #1f6fa3);
    box-shadow: 0 0 0 3px rgba(31, 111, 163, 0.18);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--reh-button, #1f6fa3) 18%, transparent);
    background: #fff;
}

.reh-contact-form--styled textarea {
    resize: vertical;
    min-height: 140px;
}

.reh-contact-form--styled .form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.reh-contact-form--styled .form-actions .helper {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Contact-page submit actions use the same accessible palette as search. */
.reh-contact-form--styled .form-actions .btn {
    background: var(--reh-button, #1f6fa3) !important;
    border-color: var(--reh-button, #1f6fa3) !important;
    color: var(--reh-button-text, #fff) !important;
}

.reh-contact-form--styled .form-actions .btn:hover,
.reh-contact-form--styled .form-actions .btn:focus-visible {
    background: var(--reh-button-hover, #185a85) !important;
    border-color: var(--reh-button-hover, #185a85) !important;
    color: var(--reh-button-hover-text, #fff) !important;
}

.reh-contact-page--compact {
    padding: 0;
}

.reh-contact-page--compact .reh-contact-hero {
    grid-template-columns: 1fr;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.reh-contact-page--compact .reh-contact-profile {
    grid-template-columns: auto 1fr;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.reh-contact-page--compact .reh-contact-avatar img,
.reh-contact-page--compact .reh-contact-avatar-placeholder {
    width: 72px;
    height: 72px;
}

.reh-contact-page--compact .reh-contact-form-panel {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.reh-contact-page--compact .reh-contact-channels .channel {
    background: #f3f4f6;
    color: #0f172a;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.reh-contact-page--compact .reh-contact-channels .channel--static {
    background: #f8fafc;
}

@media (max-width: 900px) {
    .reh-contact-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reh-contact-page {
        padding: 40px 16px;
    }

    /* The compact (listing-page) form already sits inside a padded
       .reh-section; it must not pick up the standalone page gutter. */
    .reh-contact-page--compact {
        padding: 0;
    }

    .reh-contact-hero {
        padding: 18px;
        gap: 18px;
    }

    .reh-contact-form-panel {
        padding: 18px;
    }

    .reh-contact-page--compact .reh-contact-form-panel,
    .reh-contact-page--compact .reh-contact-profile {
        padding: 14px;
    }

    .reh-contact-form--styled .form-actions .btn {
        width: 100%;
        white-space: normal;
    }

    .reh-contact-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .reh-contact-avatar {
        margin: 0 auto;
    }

    .reh-contact-channels .channel {
        justify-content: center;
    }

    .reh-contact-form--styled .reh-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT PAGE - BUSINESS HOURS
   ============================================ */

.reh-contact-hours {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.reh-contact-hours h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #0f172a;
}

.hours-grid {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row:hover {
    background: #f9fafb;
}

.hours-row--today {
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    font-weight: 700;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}

.hours-day {
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-badge {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hours-time {
    color: #4b5563;
    font-weight: 500;
}

.hours-time .closed {
    color: #dc2626;
    font-weight: 600;
}

@media (max-width: 640px) {
    .hours-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ============================================
   CONTACT PAGE - SOCIAL MEDIA
   ============================================ */

.reh-contact-social {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px 40px;
}

.reh-contact-social h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #0f172a;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-link--facebook {
    background: #1877f2;
}

.social-link--facebook:hover {
    background: #145dbf;
}

.social-link--linkedin {
    background: #0a66c2;
}

.social-link--linkedin:hover {
    background: #004182;
}

.social-link--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link--instagram:hover {
    opacity: 0.9;
}

.social-link--twitter {
    background: #1da1f2;
}

.social-link--twitter:hover {
    background: #0d8bd9;
}

.social-link--youtube {
    background: #ff0000;
}

.social-link--youtube:hover {
    background: #cc0000;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   FLOATING CONTACT CARD
   ============================================ */

/* Popup Card */
.reh-contact-popup {
    position: fixed;
    bottom: 86px;
    right: 20px;
    width: 340px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 24px;
    /* Below the listing photo lightbox (.reh-lightbox, z-index 9999). */
    z-index: 9992;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    /* visibility (not just opacity) takes the closed popup's links out of
       the keyboard tab order; the delay lets the fade-out finish first. */
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.reh-contact-popup.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

/* Close Button */
.reh-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #5f6b76;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
    padding: 0;
    line-height: 1;
}

.reh-popup-close:hover {
    background: #ecf0f1;
}

/* Header */
.reh-popup-header {
    text-align: center;
    margin-bottom: 16px;
}

.reh-popup-name {
    font-size: 15px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 2px 0;
}

.reh-popup-title {
    font-size: 12px;
    color: #5f6b76;
    margin: 0;
}

/* Contact Buttons */
.reh-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.reh-contact-btn {
    min-height: 44px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    /* Not `all`: an inherited visibility transition would keep the buttons
       hidden (unfocusable) for a moment after the popup opens. */
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Primary Button (Email) */
.reh-contact-btn--primary {
    background: var(--reh-button, #1f6fa3);
    color: var(--reh-button-text, #fff);
}

.reh-contact-btn--primary:hover {
    background: var(--reh-button-hover, #185a85);
    color: var(--reh-button-hover-text, #fff);
}

/* Secondary Button (Call) */
.reh-contact-btn--secondary {
    background: transparent;
    color: var(--reh-primary-text, #1f6fa3);
    border: 1px solid currentColor;
}

.reh-contact-btn--secondary:hover {
    background: #ecf0f1;
}

/* Helper Text */
.reh-popup-helper {
    font-size: 12px;
    color: #5f6b76;
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* ============================================
   RESPONSIVE (Mobile)
   ============================================ */

@media (max-width: 768px) {
    .reh-floating-contact-trigger {
        width: 48px !important;
        height: 48px !important;
        bottom: 16px !important;
        right: 16px !important;
    }

    .reh-contact-popup {
        width: calc(100vw - 32px);
        max-width: 320px;
        left: auto;
        right: 16px;
        bottom: 80px;
    }
}

/* ============================================
   MARKET STATS
   ============================================ */

.reh-market-stats {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.market-stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.market-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.market-stat-card:hover::before {
    opacity: 1;
}

.market-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
    border-color: #d1d5db;
}

.market-stat-card:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.stat-image-wrapper {
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-image-wrapper::after {
    /* The label is translated in the markup (data-enlarge-label). */
    content: '\1F50D  ' attr(data-enlarge-label);
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.market-stat-card:hover .stat-image-wrapper::after {
    opacity: 1;
    transform: translateY(0);
}

.stat-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
}

.market-stat-card:hover .stat-image-wrapper img {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-label {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    background: linear-gradient(to bottom, #fafafa 0%, #f9fafb 100%);
    text-align: center;
    border-top: 1px solid #e5e7eb;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Empty state */
.reh-market-stats-empty {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 16px;
    border: 2px dashed #d1d5db;
}

.reh-market-stats-empty p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* ============================================
   MARKET STATS LIGHTBOX
   ============================================ */

.reh-stats-lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.reh-stats-lightbox-backdrop.active {
    opacity: 1;
}

.reh-stats-lightbox-modal {
    max-width: 95vw;
    max-height: 95vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.reh-stats-lightbox-backdrop.active .reh-stats-lightbox-modal {
    transform: scale(1);
}

.reh-stats-lightbox-image {
    max-width: 100%;
    max-height: calc(95vh - 80px);
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    padding: 20px;
}

.reh-stats-lightbox-caption {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.reh-stats-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

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

.reh-stats-lightbox-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ============================================
   MARKET STATS RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .reh-market-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 16px;
    }

    .stat-image-wrapper {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .reh-market-stats {
        padding: 20px 12px;
        gap: 24px;
    }

    .market-stat-card {
        border-radius: 12px;
    }

    .stat-image-wrapper {
        min-height: 400px;
        padding: 12px;
    }

    .stat-image-wrapper img {
        padding: 12px;
    }

    .stat-image-wrapper::after {
        font-size: 11px;
        padding: 6px 12px;
        bottom: 12px;
        right: 12px;
    }

    .stat-label {
        font-size: 14px;
        padding: 16px 20px;
    }

    .reh-market-stats-empty {
        margin: 40px auto;
        padding: 30px 20px;
    }

    .reh-stats-lightbox-backdrop {
        padding: 16px;
    }

    .reh-stats-lightbox-modal {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 8px;
    }

    .reh-stats-lightbox-image {
        max-height: calc(100vh - 80px);
        padding: 12px;
    }

    .reh-stats-lightbox-caption {
        font-size: 14px;
        padding: 12px 16px;
    }

    .reh-stats-lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* ==========================================================================
   Featured Properties Carousel
   ========================================================================== */

/* Parent section must contain all positioned children */
.featured-properties-section {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden; /* Prevent arrows from bleeding outside */
}

.reh-featured-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 50px;
    box-sizing: border-box;
}

/* Plugin blocks must never widen a theme's content column: in a grid or
   flex layout a min-width of "auto" lets a carousel track, a no-wrap line or
   a map push the whole page wider than the screen. */
.reh-featured-carousel,
.reh-featured-properties,
.reh-properties-search-wrapper,
.reh-search-form-modern,
.reh-leaflet-map,
.reh-property-map-embed {
    min-width: 0;
    max-width: 100%;
}

.reh-featured-address {
    overflow: hidden;
    text-overflow: ellipsis;
}

.reh-search-form-modern .filter-price input[type="number"] {
    min-width: 0;
}

/* Navigation Arrows */
.reh-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Lowered from 10 - stays within carousel stacking context */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reh-carousel-arrow:hover {
    background: #2c3e50;
    border-color: #2c3e50;
    color: white;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.reh-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reh-carousel-prev {
    left: 0;
}

.reh-carousel-next {
    right: 0;
}

/* Carousel Track */
.reh-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.reh-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Featured Property Card */
.reh-featured-card {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.reh-carousel-track[data-columns="2"] .reh-featured-card {
    flex: 0 0 calc(50% - 12px);
}

.reh-carousel-track[data-columns="4"] .reh-featured-card {
    flex: 0 0 calc(25% - 18px);
}

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

/* Card Image */
.reh-featured-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.reh-featured-card-image > a {
    display: block;
    height: 100%;
}

.reh-featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reh-featured-card:hover .reh-featured-card-image img {
    transform: scale(1.1);
}

/* Badges */
.reh-featured-badge,
.reh-rental-badge {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reh-featured-badge {
    left: 12px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
}

.reh-rental-badge {
    right: 12px;
    background: #2980b9;
    color: white;
}

/* Card Content */
.reh-featured-card-content {
    padding: 20px;
}

.reh-featured-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.reh-featured-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reh-featured-address a {
    color: inherit;
    text-decoration: none;
}

.reh-featured-location {
    color: #5f6b76;
    font-size: 0.9rem;
    margin: 0 0 12px 0;
}

/* Property Meta (Beds, Baths, Sqft) */
.reh-featured-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.reh-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #555;
}

.reh-meta-item svg {
    color: #2563eb;
}

.reh-featured-mls {
    font-size: 0.8rem;
    color: #5f6b76;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Carousel Dots */
.reh-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.reh-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.reh-carousel-dot.active,
.reh-carousel-dot:hover {
    background: #2563eb;
    transform: scale(1.2);
}

/* Autoplay pause/play control added by public.js (WCAG 2.2.2). */
.reh-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.reh-carousel-controls .reh-carousel-dots {
    margin-top: 0;
}

.reh-carousel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.reh-carousel-toggle:hover,
.reh-carousel-toggle:focus-visible {
    border-color: #2c3e50;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .reh-featured-card,
    .reh-carousel-track[data-columns="3"] .reh-featured-card,
    .reh-carousel-track[data-columns="4"] .reh-featured-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .reh-featured-carousel {
        padding: 0 40px;
    }

    .reh-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .reh-featured-card,
    .reh-carousel-track[data-columns="2"] .reh-featured-card,
    .reh-carousel-track[data-columns="3"] .reh-featured-card,
    .reh-carousel-track[data-columns="4"] .reh-featured-card {
        flex: 0 0 calc(100% - 0px);
    }

    .reh-featured-card-image {
        height: 180px;
    }

    .reh-featured-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .reh-featured-carousel {
        padding: 0 35px;
    }

    .reh-carousel-arrow {
        width: 32px;
        height: 32px;
    }

    .reh-carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   Homepage About "Meet the Agent" Section - Modern Dynamic Design
   ========================================================================== */

.reh-homepage-about {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eaf2fb 50%, #f0f5fc 100%);
    overflow: hidden;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
}

/* Animated Background Graphics */
.reh-homepage-about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(41, 128, 185, 0.05) 100%);
    border-radius: 50%;
    animation: float-bg 15s ease-in-out infinite;
    z-index: 0;
}

.reh-homepage-about::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 150%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.06) 0%, rgba(41, 128, 185, 0.03) 100%);
    border-radius: 50%;
    animation: float-bg 20s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float-bg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(2deg); }
    66% { transform: translate(-20px, 20px) rotate(-2deg); }
}

.reh-homepage-about-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden; /* clearfix for float */
}

/* Photo Side with Dynamic Frame - Float Layout */
.reh-homepage-about-photo {
    position: relative;
    float: left;
    margin: 0 40px 20px 0;
}

.reh-homepage-about-photo-frame {
    position: relative;
    display: inline-block;
}

/* Teal accent corner decorations */
.reh-homepage-about-photo-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 70px;
    height: 70px;
    border-left: 3px solid #3498db;
    border-top: 3px solid #3498db;
    z-index: 2;
    animation: corner-pulse 3s ease-in-out infinite;
}

.reh-homepage-about-photo-frame::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 70px;
    height: 70px;
    border-right: 3px solid #2980b9;
    border-bottom: 3px solid #2980b9;
    z-index: 2;
    animation: corner-pulse 3s ease-in-out infinite 1.5s;
}

@keyframes corner-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Floating accent dots */
.reh-homepage-about-photo::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -40px;
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    animation: dot-float 4s ease-in-out infinite;
    z-index: 3;
}

.reh-homepage-about-photo::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -30px;
    width: 8px;
    height: 8px;
    background: #2980b9;
    border-radius: 50%;
    animation: dot-float 4s ease-in-out infinite 2s;
    z-index: 3;
}

@keyframes dot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.reh-homepage-about-photo-frame img {
    position: relative;
    z-index: 1;
    width: 280px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow:
        0 25px 80px rgba(52, 152, 219, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.reh-homepage-about-photo-frame:hover img {
    transform: translateY(-8px);
    box-shadow:
        0 35px 100px rgba(52, 152, 219, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Label with animated line - flows around photo */
.reh-homepage-about-label {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reh-label-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.reh-label-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.reh-label-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #3498db;
    text-transform: uppercase;
}

/* Name - Elegant Serif Font with gradient accent */
.reh-homepage-about-name {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: #1a2b32;
    margin: 0 0 30px 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
}

.reh-homepage-about-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* Bio with better typography */
.reh-homepage-about-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 30px;
}

.reh-homepage-about-bio p {
    margin: 0 0 15px 0;
}

.reh-homepage-about-bio p:last-child {
    margin-bottom: 0;
}

/* CTA Button - Teal theme matching */
.reh-homepage-about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reh-homepage-about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.reh-homepage-about-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.45);
    color: #fff;
}

.reh-homepage-about-cta:hover::before {
    left: 100%;
}

/* Arrow icon for CTA */
.reh-homepage-about-cta::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.reh-homepage-about-cta:hover::after {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .reh-homepage-about {
        padding: 60px 20px;
    }

    .reh-homepage-about-container {
        text-align: center;
    }

    .reh-homepage-about-photo {
        float: none;
        margin: 0 auto 30px auto;
        display: flex;
        justify-content: center;
    }

    .reh-homepage-about-photo-frame img {
        width: 220px;
    }

    .reh-homepage-about-label {
        justify-content: center;
        display: flex;
        width: 100%;
    }

    .reh-homepage-about-name {
        font-size: 2.2rem;
    }

    .reh-homepage-about-name::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Hide floating dots on mobile */
    .reh-homepage-about-photo::before,
    .reh-homepage-about-photo::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .reh-homepage-about {
        padding: 50px 15px;
    }

    .reh-homepage-about-photo-frame img {
        width: 200px;
    }

    .reh-homepage-about-photo-frame::before {
        width: 50px;
        height: 50px;
        top: -10px;
        left: -10px;
    }

    .reh-homepage-about-photo-frame::after {
        width: 50px;
        height: 50px;
        bottom: -10px;
        right: -10px;
    }

    .reh-homepage-about-name {
        font-size: 2rem;
    }

    .reh-homepage-about-bio {
        font-size: 0.95rem;
    }

    .reh-homepage-about-cta {
        padding: 14px 28px;
        font-size: 13px;
    }
}

/* ============================================================
 * Footer Disclaimer Band (CREA/MLS compliance)
 * Rendered by includes/footer-disclaimer.php
 * Theme calls do_action('realestate_hub_footer_disclaimer')
 * inside <footer>; falls back to wp_footer if theme doesn't.
 * ============================================================ */
.reh-footer-disclaimer-band {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.8125rem;
    line-height: 1.6;
    padding: 24px 16px;
    margin-top: 0;
}

.reh-footer-disclaimer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.reh-footer-disclaimer-inner .reh-footer-brokerage-logo {
    display: block;
    width: auto;
    max-width: min(220px, 60vw);
    max-height: 90px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.reh-footer-disclaimer-inner p {
    margin: 0 0 10px 0;
}

/* Footer themes often set white text on every descendant. The legal band has
   its own light surface, so its copy and terms link must remain readable. */
.reh-footer-disclaimer-band .reh-footer-disclaimer-inner p {
    color: #334155 !important;
}

.reh-footer-disclaimer-band .reh-footer-disclaimer-inner a {
    color: #155a63 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reh-footer-disclaimer-inner .reh-disclaimer-broker {
    font-size: 0.9rem;
    color: #2d3748;
}

.reh-footer-disclaimer-inner .reh-disclaimer-broker strong {
    color: #1a202c;
}

.reh-footer-disclaimer-inner .reh-disclaimer-text {
    font-size: 0.75rem;
    color: #4a5568; /* 7.2:1 on the #f7fafc band */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .reh-footer-disclaimer-band {
        padding: 20px 12px;
        font-size: 0.75rem;
    }
    .reh-footer-disclaimer-inner .reh-disclaimer-text {
        font-size: 0.75rem;
    }
}

/* Keep the complete DDF photo frame visible so CREA-provided watermarks are not cropped. */
.reh-property-card .property-image img,
.reh-property-card-modern .property-image img,
.reh-featured-card-image img,
.reh-widget-property > a img,
.reh-map-popup > img,
.reh-popup-image img,
.thumb-item img {
    object-fit: contain !important;
    object-position: center;
    background: #f4f6f8;
}

.reh-property-card:hover .property-image img,
.reh-property-card-modern:hover .property-image img,
.reh-featured-card:hover .reh-featured-card-image img {
    transform: none !important;
}

/* More search filters: building style, ownership, garage, exposure, condo fee */
.reh-search-form-modern .reh-more-filters {
    flex: 1 1 100%;
    order: 99;
}

.reh-search-form-modern .reh-more-filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--reh-primary-text, #1f6fa3);
    list-style: none;
    padding: 4px 0;
}

.reh-search-form-modern .reh-more-filters__toggle::-webkit-details-marker {
    display: none;
}

.reh-search-form-modern .reh-more-filters__toggle i {
    position: static;
    color: inherit;
}

.reh-search-form-modern .reh-more-filters__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

@media (min-width: 993px) {
    .reh-search-form-modern .filter-condo-fee input[type="number"] {
        width: 170px;
    }
}

/* Building & Features on listing pages */
.reh-listing-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px 32px;
}

.reh-listing-details__title {
    font-size: 1rem;
    margin: 0 0 8px;
    color: #2c3e50;
}

.reh-listing-details__list {
    margin: 0;
}

.reh-listing-details__row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.reh-listing-details__row dt {
    flex: 0 0 42%;
    margin: 0;
    color: #6c757d;
    font-weight: 500;
}

.reh-listing-details__row dd {
    flex: 1 1 auto;
    margin: 0;
    color: #333;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .reh-listing-details {
        grid-template-columns: 1fr;
    }
}
