/**
 * 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;
}

@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 - NO overflow-x hidden on page level */
.reo-page,
.reo-page *,
.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-page,
.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;
    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 {
    justify-content: space-between;
    align-items: center !important;
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 4px;
}

.reo-sorting {
    align-items: center !important;
    gap: 0.5rem;
}

.reo-sorting label {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    color: #333;
}

.reo-sorting select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

/* ============================================
   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: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.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: 400px;
    padding: 3rem 2rem;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.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;
}

/* 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-actions {
        grid-column: 1 / -1;
        grid-row: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 0;
    }

    .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: 350px;
        padding: 2.5rem 1.5rem;
    }

    .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 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .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 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .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: 300px;
        padding: 2rem 1rem;
    }

    .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: 280px;
        padding: 1.5rem 0.75rem;
    }

    .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;
    }
}