/**
 * Real Estate Offers Plugin Styles - FIXED VERSION
 * Changes: Full-width heroes outside wrapper, reduced agent title, fixed overflow
 */

/* ============================================
   GRID LAYOUT - CRITICAL
   ============================================ */
.reo-offers-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
    width: 100% !important;
}

.reo-offer-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

.reo-offers-grid,
.reo-offers-grid *,
.reo-offer-card,
.reo-offer-card * {
    box-sizing: border-box !important;
}

.reo-offers-grid > * {
    float: none !important;
    position: relative !important;
}

/* Homfi-style offers list (archive page) */
.reo-offers-list.reo-offers-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin: 1.5rem 0 2rem !important;
}

.reo-offers-list .reo-offer-card {
    display: grid !important;
    grid-template-columns: minmax(240px, 36%) 1fr;
    grid-template-rows: auto;
    flex-direction: row !important;
    height: auto !important;
    min-height: 210px;
    border-radius: 14px;
    border: 1px solid rgba(48, 120, 184, 0.12);
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.06);
}

.reo-offers-list .reo-offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 54, 93, 0.1);
}

.reo-offers-list .reo-offer-image {
    grid-column: 1;
    width: 100%;
    min-height: 210px;
    height: auto;
    align-self: stretch;
    padding-bottom: 0;
    aspect-ratio: auto;
}

.reo-offers-list .reo-offer-image-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.reo-offers-list .reo-offer-content {
    grid-column: 2;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.35rem 1.5rem;
    padding: 1.15rem 1.35rem;
    align-content: start;
}

.reo-offers-list .reo-offer-main {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.reo-offers-list .reo-offer-aside {
    grid-column: 2;
    grid-row: 1 / span 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 160px;
    text-align: right;
}

.reo-offers-list .reo-offer-title {
    margin: 0;
    min-height: 0;
    font-size: 1.05rem;
}

.reo-offers-list .reo-offer-location {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5f78;
}

.reo-offers-list .reo-offer-details {
    margin-top: 0.35rem;
    gap: 0.85rem;
}

.reo-offers-list .reo-offer-agent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: #4a5f78;
}

.reo-offers-list .reo-offer-agent-label {
    font-weight: 600;
    color: #1a365d;
}

.reo-offers-list .reo-offer-agent-name {
    font-weight: 500;
}

.reo-offers-list .reo-offer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.reo-offer-agent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: #4a5f78;
}

.reo-offer-agent-label {
    font-weight: 600;
    color: #1a365d;
}

.reo-offer-agent-name {
    font-weight: 500;
}

.reo-offer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.reo-keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #edf2f7;
    color: #2d4a6f;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.reo-offers-list .reo-offer-price-sqm {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7c93;
}

.reo-offers-list .reo-offer-price {
    margin: 0;
    padding: 0;
    border: 0;
}

.reo-offers-list .reo-offer-price strong {
    font-size: 1.45rem;
    color: #1a365d;
    line-height: 1.2;
}

.reo-offers-list .reo-offer-card .reo-btn {
    margin-top: 0;
    align-self: flex-end;
    white-space: nowrap;
}

.reo-offers-list .reo-offer-badge {
    top: 12px;
    left: 12px;
}

@media (max-width: 900px) {
    .reo-offers-list .reo-offer-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .reo-offers-list .reo-offer-image {
        grid-column: 1;
        grid-row: 1;
        min-height: 220px;
        height: auto;
        aspect-ratio: 16 / 10;
        padding-bottom: 0;
    }

    .reo-offers-list .reo-offer-content {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .reo-offers-list .reo-offer-aside {
        grid-column: 1;
        grid-row: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(48, 120, 184, 0.1);
    }

    .reo-offers-list .reo-offer-card .reo-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    .reo-offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .reo-offers-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .reo-offers-grid {
        gap: 1rem !important;
    }
}

/* Force box-sizing on plugin chrome only — never the Astra/Elementor header */
.reo-offers-hero-section,
.reo-offers-hero-section *,
.reo-content-wrapper,
.reo-content-wrapper *,
.reo-offers-archive,
.reo-offers-archive *,
.reo-offer-detail,
.reo-offer-detail *,
.reo-agents-archive,
.reo-agents-archive *,
.reo-agent-detail,
.reo-agent-detail * {
    box-sizing: border-box !important;
}

.reo-offers-archive,
.reo-offer-detail,
.reo-agents-archive,
.reo-agent-detail {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Only hide overflow on specific containers, not page level */
.reo-content-wrapper {
    overflow-x: hidden !important;
}

.reo-offers-grid,
.reo-agents-grid,
.reo-filters-grid,
.reo-info-grid,
.reo-features-grid,
.reo-offer-layout,
.reo-gallery-thumbs {
    display: grid !important;
}

.reo-offer-card,
.reo-offer-content,
.reo-filter-group,
.reo-filter-actions,
.reo-results-info,
.reo-sorting,
.reo-offer-sidebar,
.reo-agent-card {
    display: flex !important;
}

[class*="reo-"]::before,
[class*="reo-"]::after {
    box-sizing: border-box !important;
}

/* ============================================
   CORE STYLES
   ============================================ */

/* Custom Header */
.reo-custom-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-bottom: 0;
    display: block !important;
}

.reo-header-content {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 2rem;
    display: block !important;
}

.reo-back-home {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block !important;
    transition: color 0.2s;
}

.reo-back-home:hover {
    color: #005a87;
}

/* Breadcrumb */
.reo-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    display: block !important;
}

.reo-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.reo-breadcrumb a:hover {
    text-decoration: underline;
}

.reo-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #999;
    display: inline !important;
}

.reo-breadcrumb .current {
    color: #333;
    display: inline !important;
}

/* Content Wrapper */
.reo-content-wrapper {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    display: block !important;
}

/* Page Header */
.reo-page-header {
    margin-bottom: 2rem;
    padding-top: 2rem;
    display: block !important;
}

.reo-page-header h1 {
    font-size: 2rem;
    margin: 0;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

.reo-header-custom-text {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    display: block !important;
}

.reo-header-custom-text p:first-child {
    margin-top: 0;
}

.reo-header-custom-text p:last-child {
    margin-bottom: 0;
}

/* Custom Footer */
.reo-custom-footer {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    display: block !important;
}

.reo-footer-content {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 2rem;
    display: block !important;
}

.reo-footer-content p {
    margin: 0.5rem 0;
    color: #fff;
}

.reo-footer-content a {
    color: #3498db;
}

.reo-footer-content a:hover {
    color: #fff;
}

/* Filters */
.reo-filters-wrapper {
    margin: 2rem 0;
    display: block !important;
}

.reo-filters-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.reo-filters-toggle:hover {
    background: #005a87;
}

.reo-filters-toggle .toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block !important;
}

.reo-filters-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.reo-filters-container {
    margin-top: 1rem;
    padding: 2rem;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block !important;
}

.reo-filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.reo-filter-group {
    flex-direction: column !important;
}

.reo-filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: block;
    color: #333;
}

.reo-filter-group input,
.reo-filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    width: 100%;
}

.reo-filter-actions {
    gap: 1rem;
    flex-wrap: wrap !important;
}

/* Buttons */
.reo-btn {
    display: inline-block !important;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.reo-btn-primary {
    /* Colors set via dynamic CSS */
}

.reo-btn-primary:hover {
    /* Colors set via dynamic CSS */
}

.reo-btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
}

.reo-btn-secondary:hover {
    background: #f7f7f7;
    color: #333;
}

.reo-btn-secondary svg {
    width: 18px;
    height: 18px;
    display: block !important;
}

/* Results Info */
.reo-results-info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1.25rem;
    min-height: 3.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(48, 120, 184, 0.1);
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.06);
}

.reo-results-info > p {
    margin: 0 !important;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f4f86;
    line-height: 1.35;
}

.reo-sorting {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 0.6rem;
    margin: 0;
    flex-wrap: nowrap;
}

.reo-sorting form {
    display: flex !important;
    align-items: center;
    margin: 0;
}

.reo-sorting label {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
    color: #333;
    line-height: 1.2;
}

.reo-sorting select {
    padding: 0.5rem 2rem 0.5rem 0.85rem;
    border: 1px solid rgba(48, 120, 184, 0.18);
    border-radius: 10px;
    background: #fff;
    min-width: 200px;
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
    vertical-align: middle;
}

/* ============================================
   OFFER CARD - CONSISTENT STYLING
   Used in both offers list and agent detail page
   ============================================ */
.reo-offer-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-direction: column !important;
    height: 100%;
    position: relative;
}

.reo-offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Image - Square bottom corners, rounded top via card overflow */
.reo-offer-image {
    position: relative;
    padding-bottom: 66.67%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 0;
    margin-bottom: 0;
    width: 100%;
}

.reo-offer-image img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0;
}

.reo-offer-content {
    padding: 1.5rem;
    flex-direction: column !important;
    flex-grow: 1;
}

/* CONSISTENT CARD TITLE */
.reo-offer-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    flex-wrap: wrap !important;
    font-weight: 600;
}

.reo-offer-title a {
    color: #333;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reo-offer-title a:hover {
    color: #0073aa;
}

.reo-offer-location {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
    display: flex !important;
    align-items: center !important;
    gap: 6px;
}

.reo-offer-location svg {
    width: 14px;
    height: 14px;
    fill: #666;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.reo-offer-price {
    margin-bottom: 1rem;
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.reo-offer-price strong {
    font-size: 1.5rem;
    color: #0073aa;
    white-space: nowrap;
    font-weight: 700;
    display: block;
}

.reo-offer-details {
    gap: 1rem;
    flex-wrap: wrap !important;
    font-size: 0.9rem;
    color: #666;
    display: flex !important;
    align-items: center !important;
}

.reo-detail {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
}

.reo-detail svg {
    width: 18px;
    height: 18px;
    fill: #666;
    flex-shrink: 0 !important;
    display: block !important;
}

.reo-offer-card .reo-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Pagination */
.reo-pagination {
    display: flex !important;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.reo-page-link {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.reo-page-link:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.reo-page-link.reo-current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    pointer-events: none !important;
}

/* No Results */
.reo-no-results {
    text-align: center;
    padding: 3rem 1rem;
    background: #f7f7f7;
    border-radius: 4px;
    display: block !important;
}

.reo-no-results p {
    margin: 0.5rem 0;
    color: #666;
}

/* Error */
.reo-error {
    padding: 2rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    display: block !important;
}

/* Carousel */
.reo-offer-image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.reo-carousel-track {
    display: flex !important;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.reo-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0 !important;
}

.reo-carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.reo-carousel-slide img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.reo-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    padding: 0 !important;
}

.reo-offer-card:hover .reo-carousel-nav {
    opacity: 1;
}

.reo-carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
}

.reo-carousel-prev {
    left: 12px;
}

.reo-carousel-next {
    right: 12px;
}

.reo-carousel-nav svg {
    width: 20px;
    height: 20px;
    fill: #333;
    display: block !important;
}

.reo-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 6px;
    z-index: 10;
}

.reo-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0 !important;
}

.reo-carousel-dot.active {
    width: 20px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
}

.reo-offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reo-offer-badge svg {
    width: 14px;
    height: 14px;
    display: block !important;
}

.reo-offer-flag {
    font-size: 20px;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* ============================================
   OFFER DETAIL PAGE - MODERN VERSION
   ============================================ */

.reo-offer-single-modern {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Gallery */
.reo-offer-gallery-modern {
    margin-bottom: 2rem;
}

.reo-gallery-main-modern {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.reo-gallery-main-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reo-offer-badge-detail {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.reo-offer-badge-detail svg {
    width: 16px;
    height: 16px;
}

.reo-gallery-thumbs-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.reo-thumb-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.reo-thumb-wrapper:hover {
    border-color: #0073aa;
    transform: scale(1.05);
}

.reo-thumb-wrapper.active {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.reo-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout */
.reo-offer-layout-modern {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.reo-offer-main-modern {
    min-width: 0;
}

.reo-offer-sidebar-modern {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

/* Header - NO border */
.reo-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: none;
}

.reo-detail-title {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #1a1a1a;
    line-height: 1.28;
    letter-spacing: -0.02em;
    max-width: 24em;
}

.reo-detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.reo-detail-location svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.reo-detail-price-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reo-detail-price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0073aa;
}

.reo-detail-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.reo-quick-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #444;
}

.reo-quick-stat svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

.reo-quick-stat .stat-label {
    font-weight: 600;
    color: #666;
}

/* Sections - NO border under headings */
.reo-section-modern {
    margin-bottom: 3rem;
}

.reo-section-modern h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.75rem 0;
    padding-bottom: 0;
    color: #1a1a1a;
    border-bottom: none;
}

/* Key Information Grid - NO background, NO border */
.reo-key-info-modern .reo-info-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.reo-info-card {
    background: transparent;
    padding: 1.25rem;
    border-radius: 8px;
    border: none;
}

.info-card-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-card-value {
    font-size: 1.125rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* Description */
.reo-description-modern .reo-description-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.reo-description-content p {
    margin-bottom: 1rem;
}

.reo-description-content p:last-child {
    margin-bottom: 0;
}

/* Features */
.reo-features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.reo-feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    background: #f0f7ff;
    border: 1px solid #d0e7ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0073aa;
    font-weight: 500;
}

.reo-feature-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Floor Plan */
.reo-floor-plan-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.reo-floor-plan-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Map */
.reo-map-modern #reo-map {
    height: 450px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* Sidebar Widgets - NO background, NO border */
.reo-sidebar-widget-modern {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.reo-sidebar-widget-modern h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.reo-sidebar-widget-modern p {
    margin: 0 0 1rem 0;
    color: #666;
}

/* Agent Card */
.reo-agent-card-modern {
    text-align: center;
}

.reo-agent-photo-modern {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.reo-agent-photo-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reo-agent-name-modern {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.reo-agent-title-modern {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.reo-agent-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reo-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reo-contact-phone {
    background: #0073aa;
    color: #fff;
}

.reo-contact-phone:hover {
    background: #005a87;
    color: #fff;
}

.reo-contact-email {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.reo-contact-email:hover {
    background: #f7f7f7;
    color: #333;
}

.reo-contact-btn svg {
    width: 18px;
    height: 18px;
}

/* ID Widget - NO background */
.reo-id-widget {
    background: transparent;
}

.reo-offer-id {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.id-label {
    color: #666;
    font-weight: 500;
}

.id-value {
    color: #1a1a1a;
    font-weight: 600;
}

/* Footer */
.reo-offer-footer-modern {
    margin-top: 3rem;
    padding-top: 2rem;
}

/* ============================================
   AGENTS LIST PAGE - FULL WIDTH HERO
   ============================================ */

/* Agents Hero Section - FULL WIDTH, outside content wrapper */
.reo-agents-hero-section {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    margin-bottom: 2rem;
}

.reo-agents-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.reo-agents-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 1;
}

.reo-agents-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.reo-agents-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reo-agents-hero-content .reo-agents-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Agents Archive - remove old hero styles */
.reo-agents-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Offers Hero Section - Full Width with Filters */
.reo-offers-hero-section {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 3rem 2rem 0;
    margin-bottom: 0;
}

.reo-offers-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.reo-offers-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

.reo-offers-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.reo-offers-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reo-offers-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.reo-offers-hero-section .reo-filters-elevated {
    position: relative;
    z-index: 10;
    margin-top: 1rem;
}

.reo-agents-archive .reo-page-header {
    display: none; /* Hidden - using hero instead */
}

.reo-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.reo-agent-card-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reo-agent-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.reo-agent-photo-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.reo-agent-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reo-agent-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.reo-agent-photo-placeholder svg {
    width: 50%;
    height: 50%;
    opacity: 0.9;
}

.reo-agent-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.reo-agent-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.reo-agent-card-title {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.reo-agent-card-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reo-agent-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.reo-contact-link {
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
}

.reo-contact-link:hover {
    color: #0073aa;
}

.reo-agent-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.reo-agent-card-content .reo-btn {
    width: 100%;
    margin-top: auto;
}

/* ============================================
   AGENT DETAIL PAGE - FULL WIDTH HERO
   ============================================ */

.reo-agent-detail {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Agent Hero Section - FULL WIDTH, outside content wrapper */
.reo-agent-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 0 2rem 3rem 2rem;
    margin-bottom: 0;
}

/* Gradient background for hero when no cover image */
.reo-agent-hero-gradient {
    /* Gradient set via inline style using primary colors */
}

.reo-agent-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.reo-agent-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.reo-agent-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.reo-agent-photo-hero {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    background: #f0f0f0;
}

.reo-agent-photo-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reo-agent-photo-hero .reo-agent-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.reo-agent-photo-hero .reo-agent-photo-placeholder svg {
    width: 55%;
    height: 55%;
    opacity: 0.9;
}

.reo-agent-hero-info {
    flex: 1;
    padding-bottom: 0.5rem;
}

/* REDUCED font size for agent name */
.reo-agent-name-hero {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.reo-agent-job-title-hero {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1.5rem 0;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.reo-agent-contact-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.reo-contact-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.reo-contact-btn-hero svg {
    width: 18px;
    height: 18px;
}

.reo-agent-hero-content .reo-btn-primary,
.reo-agent-contact-hero .reo-btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}

.reo-agent-hero-content .reo-btn-primary:hover,
.reo-agent-contact-hero .reo-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004a70 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Solid white button with dark text - readable on all backgrounds */
.reo-agent-hero-content .reo-btn-secondary,
.reo-agent-contact-hero .reo-btn-secondary {
    background: #ffffff !important;
    color: #2c3e50 !important;
    border: 2px solid #ffffff !important;
    font-weight: 600;
}

.reo-agent-hero-content .reo-btn-secondary:hover,
.reo-agent-contact-hero .reo-btn-secondary:hover {
    background: #f8f9fa !important;
    color: #1a252f !important;
    border-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Agent About & Offers Sections - Constrained width */
.reo-agent-about,
.reo-agent-offers {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0;
}

.reo-agent-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.reo-agent-description p {
    margin-bottom: 1rem;
}

/* Section headers - NO border */
.reo-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    color: #1a1a1a;
    border-bottom: none;
}

.reo-agent-footer {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    padding: 2rem 0;
    text-align: center;
}

/* ============================================
   HERO SECTION & ELEVATED FILTERS - OFFERS LIST
   ============================================ */

.reo-hero-section {
    position: relative;
    width: 100%;
    margin-top: 0;
    margin-bottom: 2rem;
    min-height: 400px;
    padding-top: 150px;
}

/* Hero background - FULL WIDTH */
.reo-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.reo-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 1;
}

/* Elevated Filters Card */
.reo-filters-elevated {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.08);
    margin-top: 0px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove/Hide Filters Title */
.reo-filters-title {
    display: none !important;
}

/* Homfi-style filter layout */
.reo-filter-form-homfi {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
    align-items: end;
}

.reo-filter-form-homfi .reo-filter-group {
    order: 1;
}

.reo-filter-group--wide {
    grid-column: 1 / -1;
    order: 2;
}

.reo-filter-group--range {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.reo-filter-range-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.3;
}

.reo-filter-range-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.reo-filter-range-fields input[type="number"] {
    width: 100%;
    min-width: 0;
}

.reo-filter-form-homfi .reo-filter-actions {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    order: 99;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(48, 120, 184, 0.08);
    width: 100%;
}

.reo-filter-form-homfi .reo-filter-actions .reo-btn {
    flex: 0 0 auto;
    min-width: 140px;
    max-height: none;
}

.reo-filter-form-homfi .reo-filter-group input[type="text"],
.reo-filter-form-homfi .reo-filter-group input[type="number"] {
    appearance: none;
    padding: 0.875rem 1rem;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fb);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: #1e293b;
    font-weight: 500;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reo-filter-form-homfi .reo-filter-group input:focus {
    outline: none;
    border-color: #3078b8;
    box-shadow: 0 0 0 3px rgba(48, 120, 184, 0.12);
}

/* Gallery hero + lightbox */
.reo-gallery-hero-main {
    cursor: pointer;
}

.reo-media-stage .reo-offer-badge-detail {
    z-index: 1110;
}

.reo-media-stage .reo-gallery-hero {
    position: relative;
}

.reo-media-stage .reo-gallery-main-modern {
    margin-bottom: 0;
}

.reo-media-panel[hidden] {
    display: none !important;
}

.reo-media-panel.is-active {
    display: block;
}

.reo-media-panel--map {
    position: relative;
    background: #e8eef4;
    min-height: 280px;
}

.reo-media-map,
.reo-media-panel--map #reo-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    z-index: 1;
}

.reo-media-panel--map .leaflet-container {
    z-index: 1;
}

.reo-embed-frame,
.reo-media-video-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #0b1220;
}

.reo-media-panel--plans .reo-gallery-hero-image-btn img,
.reo-media-panel--plans #reoPlanImage {
    object-fit: contain;
    background: #f4efe8;
}

.reo-media-pills {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1100;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.reo-media-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: rgba(255, 255, 255, 0.96);
    color: #1a365d;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(26, 54, 93, 0.18);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.reo-media-pill:hover {
    transform: translateY(-1px);
    background: #fff;
}

.reo-media-pill.is-active {
    background: #3078b8;
    color: #fff;
}

.reo-media-pill-count {
    font-weight: 600;
    opacity: 0.78;
    font-size: 0.8rem;
}

.reo-media-pill.is-active .reo-media-pill-count {
    opacity: 0.92;
}

.reo-media-stage .reo-gallery-counter {
    bottom: 18px;
}

@media (max-width: 640px) {
    .reo-media-pills {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .reo-media-pill {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }

    .reo-media-stage .reo-gallery-counter {
        bottom: 52px;
        right: 10px;
    }
}

.reo-gallery-hero-image-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.reo-gallery-hero-image-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reo-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1a365d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.reo-gallery-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
}

.reo-gallery-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.reo-gallery-prev {
    left: 16px;
}

.reo-gallery-next {
    right: 16px;
}

.reo-gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 12;
    background: rgba(26, 54, 93, 0.82);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.reo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reo-lightbox[hidden] {
    display: none !important;
}

.reo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 32, 0.92);
}

.reo-lightbox-stage {
    position: relative;
    z-index: 2;
    width: min(92vw, 1200px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.reo-lightbox-image {
    max-width: 100%;
    max-height: calc(88vh - 3rem);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.reo-lightbox-counter {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.reo-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.reo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.reo-lightbox-nav svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.reo-lightbox-prev {
    left: 1rem;
}

.reo-lightbox-next {
    right: 1rem;
}

body.reo-lightbox-open {
    overflow: hidden;
}

/* 5-Column Layout - Row 1 + Row 2 + Actions */
.reo-filter-form {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 1.25rem;
    align-items: end;
}

/* Filter Groups */
.reo-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reo-filter-group label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Beautiful Select Styling */
.reo-filter-group select {
    appearance: none;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fb);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reo-filter-group select:hover {
    border-color: #cbd5e1;
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
}

.reo-filter-group select:focus {
    outline: none;
    border-color: #0073aa;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(0, 115, 170, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Beautiful Input Styling */
.reo-filter-group input[type="text"],
.reo-filter-group input[type="number"] {
    padding: 0.875rem 1rem;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fb);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: #1e293b;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reo-filter-group input[type="text"]:hover,
.reo-filter-group input[type="number"]:hover {
    border-color: #cbd5e1;
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
}

.reo-filter-group input[type="text"]:focus,
.reo-filter-group input[type="number"]:focus {
    outline: none;
    border-color: #0073aa;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(0, 115, 170, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.reo-filter-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Price Inputs with Currency Suffix (zł) */
.reo-filter-group input[name="price_min"],
.reo-filter-group input[name="price_max"] {
    padding-right: 3rem;
}

.reo-filter-group:has(input[name="price_min"])::after,
.reo-filter-group:has(input[name="price_max"])::after {
    content: 'zł';
    position: absolute;
    right: 1rem;
    bottom: 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
}

.reo-filter-group:has(input[name="price_min"]),
.reo-filter-group:has(input[name="price_max"]) {
    position: relative;
}

/* Size Inputs with m² Suffix */
.reo-filter-group input[name="size_min"],
.reo-filter-group input[name="size_max"] {
    padding-right: 3rem;
}

.reo-filter-group:has(input[name="size_min"])::after,
.reo-filter-group:has(input[name="size_max"])::after {
    content: 'm²';
    position: absolute;
    right: 1rem;
    bottom: 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
}

.reo-filter-group:has(input[name="size_min"]),
.reo-filter-group:has(input[name="size_max"]) {
    position: relative;
}

/* Actions Row - Side-by-side buttons */
.reo-filter-actions {
    grid-column: 5 / 6;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-self: stretch;
    margin-top: 1.8rem;
}

/* Button Styling */
.reo-filter-actions .reo-btn {
    flex: 1;
    padding: 0.875rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 3.125rem;
}

.reo-filter-actions .reo-btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 115, 170, 0.2);
}

.reo-filter-actions .reo-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004a70 100%);
    box-shadow: 0 6px 12px rgba(0, 115, 170, 0.3);
    transform: translateY(-1px);
}

.reo-filter-actions .reo-btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 2px solid #e8ecf0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reo-filter-actions .reo-btn-secondary:hover {
    background: #f8f9fb;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .reo-filter-form {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .reo-filter-form-homfi {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .reo-filter-actions {
        grid-column: 1 / -1;
        grid-row: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 0;
    }

    .reo-filter-form-homfi .reo-filter-actions {
        justify-content: flex-end !important;
    }

    .reo-filter-actions .reo-btn {
        min-width: 140px;
        flex: initial;
    }

    .reo-agents-hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .reo-agent-hero {
        min-height: 350px;
    }

    .reo-agent-photo-hero {
        width: 120px;
        height: 120px;
    }

    .reo-agent-name-hero {
        font-size: 1.75rem;
    }

    .reo-agent-job-title-hero {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .reo-offer-layout-modern {
        grid-template-columns: 1fr !important;
    }

    .reo-offer-sidebar-modern {
        position: static;
    }

    .reo-detail-title {
        font-size: 1.75rem;
    }

    .reo-detail-price-main {
        font-size: 2rem;
    }

    .reo-agents-hero-section {
        min-height: 250px;
        padding: 3rem 1.5rem;
    }

    .reo-offers-hero-section {
        min-height: 0;
        padding: 2.5rem 1.5rem 0;
    }

    .reo-offers-hero-content h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .reo-hero-section {
        min-height: 350px;
        margin-bottom: 1.5rem;
    }

    .reo-hero-background {
        height: 250px;
    }

    .reo-filters-elevated {
        padding: 2rem 1.5rem;
        margin-top: 80px;
        border-radius: 16px;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .reo-filter-form,
    .reo-filter-form-homfi {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reo-filter-group--wide {
        grid-column: span 1;
    }

    .reo-filter-actions {
        flex-direction: row;
    }

    .reo-filter-actions .reo-btn {
        min-width: initial;
        flex: 1;
    }

    .reo-agent-hero {
        min-height: 400px;
        align-items: center;
        padding: 2rem 1.5rem;
    }

    .reo-agent-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .reo-agent-photo-hero {
        width: 100px;
        height: 100px;
    }

    .reo-agent-name-hero {
        font-size: 1.5rem;
    }

    .reo-agent-job-title-hero {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .reo-agent-contact-hero {
        justify-content: center;
        width: 100%;
    }

    .reo-contact-btn-hero {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .reo-agent-about,
    .reo-agent-offers {
        padding: 0 1rem;
    }

    .reo-content-wrapper {
        padding: 0 1rem 2rem 1rem;
    }

    .reo-header-content,
    .reo-footer-content {
        padding: 0 1rem;
    }

    .reo-filters-container {
        padding: 1rem;
    }

    .reo-filters-grid {
        grid-template-columns: 1fr !important;
    }

    .reo-results-info {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 0.85rem;
        padding: 1rem 1.1rem;
    }

    .reo-sorting {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .reo-sorting select {
        width: 100%;
        min-width: 0;
    }

    .reo-offers-grid {
        grid-template-columns: 1fr !important;
    }

    .reo-agents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reo-agents-archive {
        padding: 0;
    }

    .reo-agent-name {
        font-size: 1.5rem;
    }

    .reo-agent-contact-grid {
        grid-template-columns: 1fr;
    }

    .reo-info-grid-modern {
        grid-template-columns: 1fr !important;
    }

    .reo-features-grid-modern {
        grid-template-columns: 1fr !important;
    }

    .reo-page-header h1 {
        font-size: 1.5rem;
    }

    .reo-carousel-nav {
        width: 32px;
        height: 32px;
    }

    .reo-carousel-nav svg {
        width: 18px;
        height: 18px;
    }

    .reo-offer-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .reo-detail-title {
        font-size: 1.5rem;
    }

    .reo-detail-price-main {
        font-size: 1.75rem;
    }

    .reo-detail-quick-stats {
        gap: 1rem;
    }

    .reo-gallery-thumbs-modern {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .reo-agents-hero-section {
        min-height: 200px;
        padding: 2.5rem 1rem;
    }

    .reo-agents-hero-content h1 {
        font-size: 1.75rem;
    }

    .reo-agents-hero-content .reo-agents-subtitle {
        font-size: 1rem;
    }

    .reo-offers-hero-section {
        min-height: 0;
        padding: 2rem 1rem 0;
    }

    .reo-offers-hero-background {
        height: 220px;
    }

    .reo-offers-hero-content h1 {
        font-size: 2rem;
    }

    .reo-offers-hero-subtitle {
        font-size: 1.1rem;
    }

    .reo-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .reo-hero-background {
        height: 200px;
    }

    .reo-filters-elevated {
        padding: 1.5rem 1.25rem;
        margin-top: 60px;
    }

    .reo-filter-group input,
    .reo-filter-group select {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .reo-filter-actions {
        gap: 0.5rem;
    }

    .reo-agent-hero {
        min-height: 350px;
        padding: 1.5rem 1rem;
    }

    .reo-agent-name-hero {
        font-size: 1.375rem;
    }

    .reo-agent-contact-hero {
        flex-direction: column;
        gap: 0.75rem;
    }

    .reo-contact-btn-hero {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .reo-content-wrapper {
        padding: 0 0.5rem 1rem 0.5rem;
    }

    .reo-header-content,
    .reo-footer-content {
        padding: 0 0.5rem;
    }

    .reo-offer-card {
        padding: 0;
    }

    .reo-agents-archive {
        padding: 0;
    }

    .reo-agent-card-content {
        padding: 1rem;
    }

    .reo-sidebar-widget-modern {
        padding: 1rem;
    }

    .reo-detail-quick-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .reo-agents-hero-section {
        min-height: 180px;
        padding: 2rem 1rem;
    }

    .reo-agents-hero-content h1 {
        font-size: 1.5rem;
    }

    .reo-agents-hero-content .reo-agents-subtitle {
        font-size: 0.9rem;
    }

    .reo-offers-hero-section {
        min-height: 0;
        padding: 1.5rem 0.75rem 0;
    }

    .reo-offers-hero-background {
        height: 180px;
    }

    .reo-offers-hero-content h1 {
        font-size: 1.75rem;
    }

    .reo-offers-hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   SHORTCODE STYLES - Uses main plugin styling
   ============================================ */

.reo-shortcode-wrapper {
    margin: 2rem 0;
    width: 100%;
}

.reo-shortcode-wrapper *,
.reo-shortcode-wrapper *::before,
.reo-shortcode-wrapper *::after {
    box-sizing: border-box;
}

/* Error/No Results in shortcode */
.reo-shortcode-wrapper .reo-no-results,
.reo-shortcode-wrapper .reo-shortcode-error {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
}

.reo-shortcode-wrapper .reo-shortcode-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* Column variations for shortcode */
.reo-shortcode-columns-1 .reo-offers-grid {
    grid-template-columns: 1fr !important;
    max-width: 600px;
}

.reo-shortcode-columns-2 .reo-offers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

.reo-shortcode-columns-3 .reo-offers-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.reo-shortcode-columns-4 .reo-offers-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

/* Responsive columns for shortcode */
@media (max-width: 1200px) {
    .reo-shortcode-columns-4 .reo-offers-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

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

@media (max-width: 768px) {
    .reo-shortcode-columns-2 .reo-offers-grid,
    .reo-shortcode-columns-3 .reo-offers-grid,
    .reo-shortcode-columns-4 .reo-offers-grid {
        grid-template-columns: 1fr !important;
    }

    /* Always show nav on mobile for shortcodes */
    .reo-shortcode-wrapper .reo-carousel-nav {
        opacity: 1;
    }
}

/* ============================================
   THEME INTEGRATION + PREMIUM REFINEMENTS
   ============================================ */

body.reo-page #lqd-site-content,
body.reo-page main.content {
    background: transparent;
}

body.reo-page .reo-page-breadcrumb {
    background: #fff;
    border-bottom: 1px solid rgba(48, 120, 184, 0.12);
    padding: 0.85rem 0;
}

body.reo-page .reo-breadcrumb {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: #3a5370;
}

body.reo-page .reo-breadcrumb a {
    color: #3078b8;
    text-decoration: none;
}

body.reo-page .reo-breadcrumb a:hover {
    text-decoration: underline;
}

body.reo-page .reo-breadcrumb .current {
    color: #6b7c93;
}

body.reo-page .reo-filters-elevated {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.reo-page .reo-filter-group select,
body.reo-page .reo-filter-group input {
    border-radius: 10px;
    border-color: rgba(48, 120, 184, 0.18);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.reo-page .reo-filter-group select:focus,
body.reo-page .reo-filter-group input:focus {
    border-color: #3078b8;
    box-shadow: 0 0 0 3px rgba(48, 120, 184, 0.12);
    outline: none;
}

body.reo-page .reo-offer-card,
body.reo-page .reo-offer-single-modern {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(48, 120, 184, 0.08);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
}

body.reo-page .reo-offer-card:hover {
    box-shadow: 0 16px 40px rgba(26, 54, 93, 0.14);
    transform: translateY(-4px);
}

body.reo-page .reo-btn-primary {
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(48, 120, 184, 0.25);
}

body.reo-page .reo-btn-secondary {
    border-radius: 999px;
}

body.reo-page .reo-offer-price-sqm {
    color: #3d4f63;
}

body.reo-page .reo-offer-price strong,
body.reo-page .reo-detail-price {
    color: #1e6cff;
    font-weight: 700;
}

body.reo-page .reo-offer-gallery-modern,
body.reo-page .reo-gallery-main-modern {
    border-radius: 16px;
    overflow: hidden;
}

body.reo-page .reo-agent-card-modern,
body.reo-page .reo-detail-sidebar {
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(26, 54, 93, 0.1);
}

body.reo-page .titlebar-inner {
    display: none !important;
}

body.reo-page .reo-content-wrapper {
    padding: 2.5rem 1.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

body.reo-page h1.reo-detail-title {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    max-width: 24em;
}

body.reo-page .reo-offers-hero-section + .reo-content-wrapper {
    padding-top: 0.5rem;
}

body.reo-page .reo-results-info {
    margin-top: 0;
}

body.reo-page .reo-offers-archive > .reo-results-info:first-child {
    margin-top: 0;
}

body.reo-page .reo-offer-single-modern {
    background: #fff;
    padding: 2.25rem 2.5rem 2.75rem;
}

body.reo-page .reo-offer-detail-grid {
    gap: 2.5rem;
}

body.reo-page .reo-offer-gallery-modern {
    margin-bottom: 2.5rem;
}

body.reo-page .reo-gallery-main-modern {
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 40px rgba(26, 54, 93, 0.1);
}

body.reo-page .reo-gallery-thumbs-modern {
    gap: 1rem;
}

body.reo-page .reo-offer-layout-modern {
    gap: 2.5rem;
    margin-top: 0.5rem;
}

body.reo-page .reo-detail-main,
body.reo-page .reo-offer-sidebar-modern {
    padding: 0.25rem;
}

body.reo-page .reo-offer-sidebar-modern {
    top: 7rem;
}

body.reo-page .reo-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
}

body.reo-page .reo-sidebar-widget-modern {
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid rgba(48, 120, 184, 0.08);
}

body.reo-page .reo-detail-description {
    padding: 1.75rem 0 2rem;
    line-height: 1.75;
}

body.reo-page .reo-detail-stats {
    gap: 1.25rem;
    padding: 1.25rem 0 2rem;
}

body.reo-page .reo-thumb-wrapper {
    border-radius: 10px;
}

@media (max-width: 768px) {
    body.reo-page .reo-content-wrapper {
        padding: 1.5rem 1rem 3rem;
    }

    body.reo-page .reo-offer-single-modern {
        padding: 1.25rem 1rem 1.75rem;
        border-radius: 12px;
    }

    body.reo-page .reo-offer-sidebar-modern {
        top: auto;
    }
}

/* AI Estate: compact hero, readable dark-form fields, mobile search + pager */
body.reo-page #page {
    display: flex;
    flex-direction: column;
}

body.reo-page #content.site-content {
    position: relative;
    z-index: 1;
    background-color: #fff;
}

body.reo-page .reo-offers-hero-section {
    margin-top: 1.5rem !important;
    padding: 0 1.5rem 0 !important;
    z-index: 1;
}

body.reo-page .reo-offers-hero-banner {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.75rem;
}

body.reo-page .reo-offers-hero-banner .reo-offers-hero-background {
    height: 100% !important;
    top: 0;
    bottom: 0;
}

body.reo-page .reo-offers-hero-content {
    position: relative;
    z-index: 2;
    margin: 0 auto !important;
    padding: 2.75rem 1.25rem 2.5rem;
}

body.reo-page .reo-offers-hero-content h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin: 0 0 0.35rem;
}

body.reo-page .reo-offers-hero-subtitle {
    font-size: 0.95rem;
    margin: 0;
}

body.reo-page .reo-offers-hero-subtitle h2 {
    font-size: 1.05rem;
    margin: 0 0 0.2rem;
    color: inherit;
}

body.reo-page .reo-offers-hero-section .reo-filters-elevated {
    margin-top: 0 !important;
    padding: 0;
    z-index: 2;
}

body.reo-page .reo-filter-form--dark {
    padding: 1.25rem 1.35rem;
}

body.reo-page .reo-filter-form .reo-filter-actions .reo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
    min-height: 48px;
    height: 48px;
}

body.reo-page .reo-filter-form--dark input[type="text"],
body.reo-page .reo-filter-form--dark input[type="number"],
body.reo-page .reo-filter-form--dark select {
    height: auto !important;
    min-height: 48px !important;
    max-height: none !important;
    line-height: 1.35 !important;
    padding: 0.7rem 0.95rem !important;
    background-color: #fff !important;
    color: #12131d !important;
    -webkit-text-fill-color: #12131d !important;
    border: 1px solid rgba(30, 108, 255, 0.28) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color-scheme: light;
}

body.reo-page .reo-filter-form--dark select {
    padding-right: 2.6rem !important;
    appearance: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2312131d' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 12px !important;
}

body.reo-page .reo-filter-form--dark select:hover,
body.reo-page .reo-filter-form--dark select:focus,
body.reo-page .reo-filter-form--dark input:hover,
body.reo-page .reo-filter-form--dark input:focus {
    background-color: #fff !important;
    color: #12131d !important;
    -webkit-text-fill-color: #12131d !important;
    border-color: #1e6cff !important;
}

body.reo-page .reo-filter-form--dark select:hover,
body.reo-page .reo-filter-form--dark select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2312131d' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 12px !important;
}

body.reo-page .reo-filter-form--dark input::placeholder {
    color: #667085 !important;
    -webkit-text-fill-color: #667085 !important;
    opacity: 1;
}

body.reo-page .reo-filter-form--dark option {
    color: #12131d;
    background: #fff;
}

body.reo-page .reo-filter-form--dark .reo-filter-group:has(input[name="price_min"])::after,
body.reo-page .reo-filter-form--dark .reo-filter-group:has(input[name="price_max"])::after,
body.reo-page .reo-filter-form--dark .reo-filter-group:has(input[name="size_min"])::after,
body.reo-page .reo-filter-form--dark .reo-filter-group:has(input[name="size_max"])::after {
    color: #667085;
}

body.reo-page .reo-pagination {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}

body.reo-page .reo-page-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: #1e6cff;
    border-color: rgba(30, 108, 255, 0.35);
}

body.reo-page .reo-page-link.reo-current {
    background: #1e6cff !important;
    color: #fff !important;
    border-color: #1e6cff !important;
}

body.reo-page .reo-page-link:hover {
    background: #1e6cff;
    color: #fff;
    border-color: #1e6cff;
}

body.reo-page .reo-page-ellipsis {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #667085;
}

@media (max-width: 768px) {
    body.reo-page .reo-offers-hero-section {
        margin-top: 1rem !important;
        padding: 0 0.85rem 0 !important;
    }

    body.reo-page .reo-offers-hero-banner {
        margin-bottom: 1.25rem;
    }

    body.reo-page .reo-offers-hero-content {
        margin-bottom: 0 !important;
        padding: 2rem 1rem 1.75rem;
    }

    body.reo-page .reo-filters-elevated {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        border-radius: 16px;
        z-index: 2 !important;
    }

    body.reo-page .reo-filter-form-homfi {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    body.reo-page .reo-filter-form--dark {
        padding: 1rem !important;
        border-radius: 16px;
    }

    body.reo-page .reo-filter-group--wide {
        grid-column: 1 / -1 !important;
    }

    body.reo-page .reo-filter-form-homfi .reo-filter-actions {
        flex-direction: column !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
    }

    body.reo-page .reo-filter-form-homfi .reo-filter-actions .reo-btn {
        width: 100%;
        min-width: 0 !important;
        flex: 1 1 auto;
    }

    body.reo-page .reo-pagination {
        gap: 0.4rem;
        margin: 1.1rem 0 1.75rem;
        padding: 0;
    }

    body.reo-page .reo-page-link {
        padding: 0.45rem 0.7rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    body.reo-page .reo-page-link.reo-prev,
    body.reo-page .reo-page-link.reo-next {
        flex: 1 1 100%;
        order: 20;
        max-width: 100%;
    }
}

/* Astra pads all buttons 15px 30px, which collapses gallery SVG width to 0 */
body.reo-page .reo-gallery-nav,
body.reo-page .reo-lightbox-nav {
    box-sizing: border-box !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    background: rgba(18, 19, 29, 0.84) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38) !important;
    line-height: 0 !important;
    font-size: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: visible !important;
}

body.reo-page .reo-gallery-nav:hover,
body.reo-page .reo-lightbox-nav:hover {
    background: #12131d !important;
    color: #fff !important;
}

    body.reo-page .reo-gallery-nav svg,
body.reo-page .reo-lightbox-nav svg {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    fill: #fff !important;
    color: #fff !important;
    flex-shrink: 0 !important;
}

/* Branch landing search: same dark surface as the franchise page, blue CTA */
body.reo-branch-page .reo-branch-page-search {
    background: #050505;
    color: #fff;
    padding: 2.75rem 1.25rem 3.25rem;
    margin: 0;
}

body.reo-branch-page .reo-branch-page-search .reo-branch-search {
    max-width: 1120px;
    margin: 0 auto;
}

body.reo-branch-page .reo-branch-search-title {
    text-align: center;
    color: #fff !important;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1.35rem !important;
    font-family: inherit;
}

body.reo-branch-page .reo-filter-form--dark {
    background: #12131d !important;
    border: 1px solid rgba(30, 108, 255, 0.37) !important;
    border-radius: 24px !important;
    padding: 1.35rem 1.4rem !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

body.reo-branch-page .reo-filter-form--dark label,
body.reo-branch-page .reo-filter-form--dark .reo-filter-range-label {
    color: #fffafa !important;
}

body.reo-branch-page .reo-filter-form--dark input[type="text"],
body.reo-branch-page .reo-filter-form--dark input[type="number"],
body.reo-branch-page .reo-filter-form--dark select {
    height: auto !important;
    min-height: 48px !important;
    line-height: 1.35 !important;
    padding: 0.7rem 0.95rem !important;
    background-color: #fff !important;
    color: #12131d !important;
    -webkit-text-fill-color: #12131d !important;
    border: 1px solid rgba(30, 108, 255, 0.28) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.reo-branch-page .reo-filter-form--dark select {
    padding-right: 2.6rem !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2312131d' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 12px !important;
}

body.reo-branch-page .reo-filter-form--dark .reo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body.reo-branch-page .reo-filter-form--dark .reo-btn-primary {
    background: #1e6cff !important;
    color: #fff !important;
    border: 0 !important;
}

body.reo-branch-page .reo-filter-form--dark .reo-btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

@media (max-width: 768px) {
    body.reo-branch-page .reo-branch-page-search {
        padding: 1.75rem 0.85rem 2.25rem;
    }

    body.reo-branch-page .reo-filter-form-homfi {
        grid-template-columns: 1fr !important;
    }

    body.reo-branch-page .reo-filter-form--dark .reo-filter-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body.reo-branch-page .reo-filter-form--dark .reo-btn {
        width: 100%;
    }
}

body.reo-page .reo-lightbox-close {
    box-sizing: border-box !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    background: rgba(18, 19, 29, 0.84) !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38) !important;
    overflow: visible !important;
}

body.reo-page .reo-lightbox-close svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    fill: #fff !important;
    flex: 0 0 18px !important;
}

body.reo-page a.reo-contact-btn.reo-contact-pdf {
    display: inline-flex !important;
    align-self: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 10px auto 0 !important;
    padding: 6px 12px !important;
    gap: 6px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

body.reo-page a.reo-contact-btn.reo-contact-pdf svg {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
}