/* PATRIZIA Real Insights Plugin Styles */

.patrizia-ri-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: white;
}

.real_insights_archive_main {
    background-color: white !important;
}

.real_insights_grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: auto auto auto;
    gap: 10px; 
    background-color: white;
}

.real_insights_grid-item {
    display: flex;
    flex-direction: column;
    justify-content: start;
    box-sizing: border-box;
    background: #333; 
    padding: 20px;
    position: relative;
    min-height: 220px;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.70); 
}

.real_insights_grid-item:hover {
    filter: brightness(120%);
}

.real_insights_large-item { 
    grid-column: span 2;
    grid-row: span 2;
    height: 450px;
}

.time, .title, .date {
    color: white;
    z-index: 1;
    position: relative;
}

.title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 26px;
    line-height: 1.2;
}

.title a {
    color: white !important;
    text-decoration: none;
}

.title a:hover {
    color: inherit;
}

.real_insights_large-item .title {
    font-size: 36px;
    max-width: 60%;
}

.arrow-icon {
    position: absolute;
    left: 15px;
    bottom: 15px;
    width: 50px;
    height: auto;
    z-index: 2;
}

.arrow-icon img {
    width: 100%;
    height: auto;
}

.corner-logo {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60px;
    height: auto;
    z-index: 2;
}

.patrizia-plus-label {
    position: absolute;
    right: 10px;
    top: -5px;
    width: 80px;
    z-index: 2;
}

.ri_type {
    position: absolute;
    right: 50px;
    bottom: 10px;
    width: 100px;
    color: white;
    z-index: 2;
}

/* Filter Styles */
.filter_nav h2 {
    width: 30%;
    display: inline-block;
    color: #333;
}

.left_filter_label {
    width: 250px;
    display: inline-block;
    color: #333;
}

.right_filter_select {
    width: 800px;
    display: inline-block;
}

.category_row {
    margin-bottom: 20px;
}

/* Custom checkbox button styles */
.filter-checkbox {
    display: none !important;
}

.filter_button_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter_button_list li {
    list-style: none;
    display: inline-block;
    font-size: 0.8em;
}

.filter-label {
    background-color: #333;
    display: inline-block;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.filter-label:hover {
    background-color: #555;
}

.filter-checkbox:checked + .filter-label {
    background-color: #333;
    color: white;
    border: 2px solid white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .patrizia-ri-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .right_filter_select {
        width: 100%;
    }
    
    .left_filter_label {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .real_insights_grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .real_insights_large-item {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }
    
    .real_insights_large-item .title {
        font-size: 28px;
        max-width: 80%;
    }
    
    .title {
        font-size: 22px;
    }
    
    .filter_nav h2 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .filter-label {
        padding: 8px 16px;
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .patrizia-ri-container {
        padding: 0 10px;
    }
    
    .real_insights_grid-item {
        padding: 15px;
        min-height: 200px;
    }
    
    .real_insights_large-item {
        height: 250px;
    }
    
    .title {
        font-size: 18px;
    }
    
    .real_insights_large-item .title {
        font-size: 24px;
        max-width: 90%;
    }
}

/* Filter Transitions and States */
/* Grid items use display flex by default */

.real_insights_grid-item.ri-filtered-out {
    display: none;
}

.real_insights_grid-item.ri-filtered-in {
    display: flex;
}

/* Filter Button States */
.filter-label {
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-label.active {
    background-color: #333;
    color: white;
    border: 2px solid white;
    font-weight: bold;
}

.filter-label:not(.active) {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.filter-label:hover {
    background-color: #555;
    color: white;
}

/* Results Counter */
.ri-results-counter {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* Hide checkboxes since we're using labels as buttons */
.filter-checkbox {
    display: none;
}

/* Improve filter section spacing */
.category_row {
    margin-bottom: 15px;
}

.filter_button_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter_button_list li {
    margin: 0;
}