/**
 * Property Types Detailed Section Styles
 * Alternating image + text layout
 */

/* Property Types Detailed Section */
.property-types-detailed-section {
    position: relative;
    padding: 100px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.property-types-detailed-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(235, 55, 41, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(126, 20, 22, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.property-types-detailed-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Header */
.property-types-detailed-header {
    text-align: center;
    margin-bottom: 80px;
}

.property-types-detailed-header .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.property-types-detailed-header .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Property Types List */
.property-types-detailed-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Property Type Item */
.property-type-detailed-item {
    position: relative;
}

.property-type-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Layout Variations */
.property-type-detailed-item.layout-left .property-type-image-side {
    order: 1;
}

.property-type-detailed-item.layout-left .property-type-text-side {
    order: 2;
}

.property-type-detailed-item.layout-right .property-type-image-side {
    order: 2;
}

.property-type-detailed-item.layout-right .property-type-text-side {
    order: 1;
}

/* Image Side */
.property-type-image-side {
    position: relative;
}

.property-type-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #eb3729 0%, #7e1416 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(235, 55, 41, 0.2);
}

.property-type-icon-large {
    position: relative;
    z-index: 2;
    color: #ffffff;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.property-type-detailed-item:hover .property-type-icon-large {
    transform: scale(1.1) rotate(5deg);
}

.property-type-icon-large svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.property-type-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(235, 55, 41, 0.9) 0%, rgba(126, 20, 22, 0.9) 100%);
    opacity: 0.95;
    z-index: 1;
}

/* Text Side */
.property-type-text-side {
    position: relative;
}

.property-type-content {
    padding: 20px 0;
}

.property-type-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(235, 55, 41, 0.1);
    color: #eb3729;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.property-type-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.property-type-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Features */
.property-type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    border-color: #eb3729;
    background: rgba(235, 55, 41, 0.05);
    color: #eb3729;
    transform: translateY(-2px);
}

.feature-tag svg {
    color: #eb3729;
    flex-shrink: 0;
}

/* Footer */
.property-type-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.property-count-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.count-number {
    font-size: 2rem;
    font-weight: 800;
    color: #eb3729;
    line-height: 1;
}

.count-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.property-type-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #eb3729 0%, #7e1416 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 55, 41, 0.3);
}

.property-type-cta:hover {
    background: linear-gradient(135deg, #ff3d30 0%, #9e1a1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 55, 41, 0.5);
}

.property-type-cta svg {
    transition: transform 0.3s ease;
}

.property-type-cta:hover svg {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .property-types-detailed-container {
        padding: 0 30px;
    }
    
    .property-type-content-wrapper {
        gap: 40px;
    }
    
    .property-types-detailed-list {
        gap: 60px;
    }
}

@media (max-width: 968px) {
    .property-type-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .property-type-detailed-item.layout-left .property-type-image-side,
    .property-type-detailed-item.layout-right .property-type-image-side {
        order: 1;
    }
    
    .property-type-detailed-item.layout-left .property-type-text-side,
    .property-type-detailed-item.layout-right .property-type-text-side {
        order: 2;
    }
    
    .property-type-image-container {
        aspect-ratio: 16 / 9;
    }
    
    .property-type-icon-large {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .property-types-detailed-section {
        padding: 60px 0;
    }
    
    .property-types-detailed-container {
        padding: 0 20px;
    }
    
    .property-types-detailed-header {
        margin-bottom: 50px;
    }
    
    .property-types-detailed-list {
        gap: 50px;
    }
    
    .property-type-content-wrapper {
        gap: 30px;
    }
    
    .property-type-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .property-type-title {
        font-size: 1.8rem;
    }
    
    .property-type-description {
        font-size: 1rem;
    }
    
    .property-type-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-type-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .property-types-detailed-section {
        padding: 40px 0;
        height: 348vh;
        overflow: visible;
    }
    
    .property-types-detailed-list {
        gap: 270px;
    }
    
    .property-type-image-container {
        aspect-ratio: 4 / 3;
    }
    
    .property-type-icon-large {
        width: 70px;
        height: 70px;
    }
    
    .property-type-title {
        font-size: 1.5rem;
    }
    
    .property-type-description {
        font-size: 0.95rem;
    }
    
    .feature-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .count-number {
        font-size: 1.5rem;
    }
    
    .property-type-cta {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* Animation on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-type-detailed-item {
    animation: fadeInUp 0.8s ease-out backwards;
}

.property-type-detailed-item:nth-child(1) {
    animation-delay: 0.1s;
}

.property-type-detailed-item:nth-child(2) {
    animation-delay: 0.2s;
}

.property-type-detailed-item:nth-child(3) {
    animation-delay: 0.3s;
}

.property-type-detailed-item:nth-child(4) {
    animation-delay: 0.4s;
}

@media (max-width: 390px) {
    .property-types-detailed-section {
     
        height: 250vh;
      
    }
}
