/**
 * Custom Styles for Maxx Property Features Widget
 */

/* Modern card styling with 3D effects */
.maxx-custom-features .features {
    perspective: 1000px;
    margin-bottom: 1.5rem;
}

.maxx-custom-features .features-icon {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.maxx-custom-features .features:hover .features-icon {
    transform: translateY(-6px) rotateY(5deg) rotateX(5deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.maxx-custom-features .features-icon .feature-icon-wrapper .houzez-icon,
.maxx-custom-features .features-icon .feature-icon-wrapper .fas,
.maxx-custom-features .features-icon .feature-icon-wrapper .far,
.maxx-custom-features .features-icon .feature-icon-wrapper .fab {
    font-size: 48px;
    color: #0b6230;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    display: block;
}

.maxx-custom-features .features:hover .features-icon .feature-icon-wrapper .houzez-icon,
.maxx-custom-features .features:hover .features-icon .feature-icon-wrapper .fas,
.maxx-custom-features .features:hover .features-icon .feature-icon-wrapper .far,
.maxx-custom-features .features:hover .features-icon .feature-icon-wrapper .fab {
    transform: rotateY(15deg) rotateX(10deg) scale(1.1);
}

.maxx-custom-features .features-icon .feature-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.maxx-custom-features .features-icon .feature-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.maxx-custom-features .features-icon .feature-title a:hover {
    color: #0b6230;
}

.maxx-custom-features .features-icon .feature-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-top: 0;
}

.maxx-custom-features .group_name {
    font-size: 1.2rem;
    color: #343a40;
    border-bottom: 2px solid #0b6230;
    padding-bottom: 10px;
    margin: 30px 0 20px;
    font-weight: 700;
}

/* Responsive grid layout */
.maxx-custom-features .features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.maxx-custom-features .features-grid .features {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 250px;
}

/* Ensure 3 columns on desktop */
@media (min-width: 992px) {
    .maxx-custom-features .features-grid .features {
        flex: 0 1 calc(33.333% - 1rem);
    }
}

/* Single column layout */
.maxx-custom-features .features-grid .features.single-column {
    flex: 0 1 calc(100% - 1rem);
}

/* Two column layout */
@media (min-width: 768px) {
    .maxx-custom-features .features-grid .features.two-columns {
        flex: 0 1 calc(50% - 1rem);
    }
}

/* Tablet view */
@media (max-width: 991px) {
    .maxx-custom-features .features-grid .features {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* Mobile view */
@media (max-width: 767px) {
    .maxx-custom-features .features-grid .features {
        flex: 1 1 100%;
    }
    
    .maxx-custom-features .features-icon {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .maxx-custom-features .group_name {
        font-size: 1.1rem;
        margin: 20px 0 15px;
    }
}