.owl-carousel .owl-nav [class*=owl-]{border-color:transparent;color:#fff;background-color:var(--cnvs-themecolor)}.owl-carousel.real-estate .owl-nav [class*=owl-]:hover{background-color:var(--cnvs-secondary-color)!important}.real-estate-item{position:relative}.real-estate-item-image{position:relative;width:100%}.real-estate-item-image::before{position:absolute;content:'';pointer-events:none;z-index:1;opacity:.9;top:auto;bottom:0;width:100%;height:50%;background:-moz-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,.85) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(0,0,0,0)),color-stop(100%,rgba(0,0,0,.85)));background:-webkit-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,.85) 100%);background:-o-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,.85) 100%);background:-ms-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,.85) 100%);background:linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,.85) 100%)}.real-estate-item-image>a,.real-estate-item-image>img{display:block;width:100%;height:auto}.real-estate-item-image .badge{display:block;position:absolute;top:20px;left:20px;z-index:1;font-size:11px;padding:5px 8px;text-transform:uppercase;font-weight:400;letter-spacing:1px}.real-estate-item-price{position:absolute;right:20px;bottom:20px;z-index:1;font-size:26px;font-weight:400;letter-spacing:1px;line-height:1;color:#fff;text-shadow:1px 1px 1px rgba(0,0,0,.1)}.real-estate-item-price span{display:block;margin-top:3px;font-weight:300;font-size:12px;color:rgba(255,255,255,.85);text-align:right}.real-estate-item-info{position:absolute;left:20px;bottom:20px;z-index:1}.real-estate-item-info a{display:block;float:left;color:#fff;text-shadow:1px 1px 1px rgba(0,0,0,.1);font-size:12px;line-height:1;text-align:center;padding:8px;background-color:rgba(0,0,0,.25);border-radius:4px;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}.real-estate-item-info a:hover{background-color:rgba(0,0,0,.75)}.real-estate-item-info a i{width:12px;height:12px}.real-estate-item-info a:not(:first-child){margin-left:5px}.real-estate-item-desc{position:relative;margin-top:20px;padding:0 20px}.real-estate-item-desc h3{font-size:21px}.real-estate-item-desc h3+span{display:block;margin-top:-27px;color:#999}.real-estate-item-desc h3 a{color:#333}.real-estate-item-desc h3 a:hover{color:#555}.real-estate-item-features{margin-top:15px}.real-estate-item-features [class^=col-]{margin-top:5px}.real-estate-item-features i{position:relative;top:1px;margin-left:3px}.real-estate-item-link{position:absolute;top:2px;right:20px;width:32px;height:32px;line-height:30px;text-align:center;font-size:16px;color:#555;text-shadow:1px 1px 1px rgba(0,0,0,.1);border:1px solid #555;border-radius:50%;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}.real-estate-item-link:hover{border-color:transparent;background-color:var(--cnvs-themecolor);color:#fff}.real-estate-properties [class^=col-]{position:relative;margin-bottom:30px}.real-estate-properties [class^=col-]>a{display:block;position:relative;height:250px;background-color:#eee}.real-estate-properties [class^=col-] img{display:block}.real-estate-properties [class^=col-]>a::before{content:'';position:absolute;width:100%;height:100%;top:0;left:0;background-color:rgba(0,0,0,.4);opacity:.4;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.real-estate-properties [class^=col-]>a:hover::before{opacity:1}

/* Content Blocks Enhanced Styles */
.content-blocks {
    line-height: 1.7;
    font-family: var(--cnvs-body-font);
}

/* Headings with enhanced styling */
.content-blocks .block-heading {
    font-family: var(--cnvs-primary-font);
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    position: relative;
    color: #2c3e50;
}

.content-blocks .block-heading.text-center::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--cnvs-themecolor);
    border-radius: 2px;
}

.content-blocks .block-heading.text-left::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--cnvs-themecolor);
    border-radius: 2px;
}

.content-blocks .block-heading.text-right::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--cnvs-themecolor);
    border-radius: 2px;
}

.content-blocks .block-heading.h1 { font-size: 3rem; line-height: 1.2; }
.content-blocks .block-heading.h2 { font-size: 2.5rem; line-height: 1.3; }
.content-blocks .block-heading.h3 { font-size: 2rem; line-height: 1.4; }
.content-blocks .block-heading.h4 { font-size: 1.75rem; line-height: 1.4; }
.content-blocks .block-heading.h5 { font-size: 1.5rem; line-height: 1.5; }
.content-blocks .block-heading.h6 { font-size: 1.25rem; line-height: 1.5; }

/* Paragraphs with enhanced typography */
.content-blocks .block-paragraph {
    margin-bottom: 1.8rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #34495e;
    font-weight: 400;
}

.content-blocks .block-paragraph.text-justify {
    text-align: justify;
    hyphens: auto;
}

/* Enhanced Image Block */
.content-blocks .block-image {
    margin: 3rem 0;
    position: relative;
}

.content-blocks .block-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
}

.content-blocks .block-image-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.content-blocks .block-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.content-blocks .block-image-container:hover img {
    transform: scale(1.05);
}

.content-blocks .image-caption {
    margin-top: 1rem;
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.content-blocks .image-size-small { max-width: 300px; }
.content-blocks .image-size-medium { max-width: 500px; }
.content-blocks .image-size-large { max-width: 800px; }
.content-blocks .image-size-full { width: 100%; }

/* Enhanced List Styling */
.content-blocks .block-list {
    margin: 2rem 0;
    padding-left: 0;
}

.content-blocks .block-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    font-size: 1.05rem;
}

.content-blocks .block-list.list-unordered li::before {
    content: '●';
    color: var(--cnvs-themecolor);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.content-blocks .block-list.list-ordered {
    counter-reset: list-counter;
    list-style: none;
}

.content-blocks .block-list.list-ordered li {
    counter-increment: list-counter;
}

.content-blocks .block-list.list-ordered li::before {
    content: counter(list-counter);
    background: var(--cnvs-themecolor);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Enhanced Quote Styling */
.content-blocks .block-quote {
    margin: 3rem 0;
    position: relative;
    font-family: var(--cnvs-primary-font);
}

.content-blocks .block-quote.quote-default {
    padding: 2.5rem 3rem 2rem 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--cnvs-themecolor);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.content-blocks .block-quote.quote-highlight {
    padding: 3rem;
    background: var(--cnvs-themecolor);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.content-blocks .block-quote.quote-minimal {
    padding: 2rem 0;
    border: none;
    background: none;
    font-style: italic;
}

.content-blocks .block-quote.quote-bordered {
    padding: 2.5rem;
    border: 2px solid var(--cnvs-themecolor);
    border-radius: 12px;
    background: rgba(var(--cnvs-themecolor-rgb), 0.02);
}

.content-blocks .block-quote::before {
    content: '"';
    font-size: 5rem;
    font-family: serif;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.2;
    line-height: 1;
}

.content-blocks .block-quote-content {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.content-blocks .block-quote-author {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.8;
}

/* Enhanced Button Styling */
.content-blocks .block-button {
    margin: 2.5rem 0;
}

.content-blocks .button-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.content-blocks .button-custom:hover::before {
    left: 100%;
}

.content-blocks .button-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.content-blocks .button-primary {
    background: var(--cnvs-themecolor);
    color: white;
}

.content-blocks .button-secondary {
    background: #6c757d;
    color: white;
}

.content-blocks .button-outline {
    background: transparent;
    color: var(--cnvs-themecolor);
    border-color: var(--cnvs-themecolor);
}

.content-blocks .button-outline:hover {
    background: var(--cnvs-themecolor);
    color: white;
}

.content-blocks .button-ghost {
    background: transparent;
    color: var(--cnvs-themecolor);
    text-decoration: underline;
    border: none;
    border-radius: 0;
}

.content-blocks .button-sm { padding: 8px 16px; font-size: 0.9rem; }
.content-blocks .button-lg { padding: 16px 32px; font-size: 1.1rem; }
.content-blocks .button-xl { padding: 20px 40px; font-size: 1.2rem; }

/* Enhanced Code Block */
.content-blocks .block-code {
    margin: 2.5rem 0;
    position: relative;
}

.content-blocks .code-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
}

.content-blocks .code-container::before {
    content: attr(data-language);
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    z-index: 1;
}

.content-blocks .code-container pre {
    margin: 0;
    padding: 2rem;
    border-radius: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.content-blocks .code-dark {
    background: #2d3748;
    color: #e2e8f0;
}

.content-blocks .code-light {
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

/* Enhanced Video Block */
.content-blocks .block-video {
    margin: 3rem 0;
}

.content-blocks .video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: #000;
    width: 100%;
}

.content-blocks .video-container iframe,
.content-blocks .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.content-blocks .video-title {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.content-blocks .video-description {
    margin-top: 1rem;
    color: #7f8c8d;
    font-style: italic;
    line-height: 1.5;
}

.content-blocks .video-size-small { 
    max-width: 480px; 
    margin: 0 auto;
}
.content-blocks .video-size-medium { 
    max-width: 720px; 
    margin: 0 auto;
}
.content-blocks .video-size-large { 
    max-width: 960px; 
    margin: 0 auto;
}
.content-blocks .video-size-full { 
    width: 100%; 
    max-width: 100%;
}

/* Video aspect ratios using proper ratio technique */
.content-blocks .video-aspect-16-9 {
    aspect-ratio: 16/9;
}

.content-blocks .video-aspect-4-3 {
    aspect-ratio: 4/3;
}

.content-blocks .video-aspect-1-1 {
    aspect-ratio: 1/1;
}

.content-blocks .video-aspect-21-9 {
    aspect-ratio: 21/9;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .content-blocks .video-aspect-16-9 {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 ratio */
        height: 0;
    }
    
    .content-blocks .video-aspect-4-3 {
        position: relative;
        padding-bottom: 75%; /* 4:3 ratio */
        height: 0;
    }
    
    .content-blocks .video-aspect-1-1 {
        position: relative;
        padding-bottom: 100%; /* 1:1 ratio */
        height: 0;
    }
    
    .content-blocks .video-aspect-21-9 {
        position: relative;
        padding-bottom: 42.86%; /* 21:9 ratio */
        height: 0;
    }
}

/* Enhanced Table Styling */
.content-blocks .block-table {
    margin: 3rem 0;
}

.content-blocks .table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: white;
}

.content-blocks .table-enhanced {
    margin: 0;
    font-size: 1rem;
}

.content-blocks .table-enhanced th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #2c3e50;
    padding: 1.25rem 1rem;
    border: none;
    border-bottom: 2px solid var(--cnvs-themecolor);
}

.content-blocks .table-enhanced td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.content-blocks .table-enhanced tbody tr:hover {
    background: rgba(var(--cnvs-themecolor-rgb), 0.05);
}

.content-blocks .table-enhanced.table-striped tbody tr:nth-child(odd) {
    background: rgba(0,0,0,0.02);
}

.content-blocks .table-enhanced.table-bordered {
    border: 1px solid #ecf0f1;
}

.content-blocks .table-enhanced.table-bordered th,
.content-blocks .table-enhanced.table-bordered td {
    border: 1px solid #ecf0f1;
}

/* Enhanced CTA Block */
.content-blocks .block-cta {
    margin: 4rem 0;
}

.content-blocks .cta-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.content-blocks .cta-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 64px rgba(0,0,0,0.2);
}

.content-blocks .cta-content {
    padding: 4rem 3rem;
    position: relative;
    z-index: 1;
}

.content-blocks .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 0;
}

.content-blocks .cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.content-blocks .cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.content-blocks .cta-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: white;
    color: var(--cnvs-themecolor);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.content-blocks .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: var(--cnvs-themecolor);
}

.content-blocks .cta-minimal {
    background: rgba(var(--cnvs-themecolor-rgb), 0.05);
    border: 2px solid var(--cnvs-themecolor);
}

.content-blocks .cta-bordered {
    border: 3px solid var(--cnvs-themecolor);
    background: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-blocks .block-heading.h1 { font-size: 2.5rem; }
    .content-blocks .block-heading.h2 { font-size: 2rem; }
    .content-blocks .block-heading.h3 { font-size: 1.75rem; }
    
    .content-blocks .block-quote {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .content-blocks .block-quote::before {
        font-size: 3rem;
        top: -5px;
        left: 10px;
    }
    
    .content-blocks .cta-content {
        padding: 3rem 2rem;
    }
    
    .content-blocks .cta-title {
        font-size: 2rem;
    }
    
    .content-blocks .image-size-small,
    .content-blocks .image-size-medium,
    .content-blocks .image-size-large {
        max-width: 100%;
    }
    
    .content-blocks .video-size-small,
    .content-blocks .video-size-medium,
    .content-blocks .video-size-large {
        max-width: 100%;
        margin: 0;
    }
    
    .content-blocks .video-container {
        border-radius: 8px;
    }
    
    .content-blocks .video-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .content-blocks .table-container {
        border-radius: 8px;
    }
    
    .content-blocks .table-enhanced th,
    .content-blocks .table-enhanced td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Alert Styling for Unknown Blocks */
.content-blocks .block-unknown {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    border-left: 4px solid #f1c40f;
}

.content-blocks .block-unknown summary {
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
}

.content-blocks .block-unknown pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    overflow-x: auto;
}