/* ========================================
   Property Types Section - Modern Design
   ======================================== */

.property-types-section {
    padding: 5rem 0;
    background: #ffffff;
}

/* Section Header */
.property-types-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.property-types-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.property-types-section .section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Property Types Grid */
.property-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Property Type Card */
.property-type-card {
    position: relative;
    display: block;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.property-type-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.property-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-type-card:hover .property-type-image img {
    transform: scale(1.08);
}

/* Overlay Gradient */
.property-type-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    transition: opacity 0.4s ease;
}

.property-type-card:hover .property-type-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Content Section */
.property-type-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.property-type-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
    transition: transform 0.3s ease;
}

.property-type-card:hover .property-type-title {
    transform: translateX(4px);
}

[dir="rtl"] .property-type-card:hover .property-type-title {
    transform: translateX(-4px);
}

/* Arrow Icon */
.property-type-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.property-type-arrow svg {
    width: 20px;
    height: 20px;
    color: white;
}

.property-type-card:hover .property-type-arrow {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

[dir="rtl"] .property-type-card:hover .property-type-arrow {
    transform: translateX(-4px);
}

[dir="rtl"] .property-type-arrow svg {
    transform: scaleX(-1);
}

/* ======================================
   Responsive Design
   ====================================== */

/* Large Tablets - 3 Columns */
@media (max-width: 991px) {
    .property-types-section {
        padding: 4rem 0;
    }

    .property-types-section .section-title {
        font-size: 2rem;
    }

    .property-types-section .section-subtitle {
        font-size: 1rem;
    }

    .property-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .property-type-title {
        font-size: 1.125rem;
    }

    .property-type-content {
        padding: 1.25rem;
    }
}

/* Tablets - 2 Columns */
@media (max-width: 768px) {
    .property-types-section {
        padding: 3rem 0;
    }

    .property-types-section .section-header {
        margin-bottom: 2rem;
    }

    .property-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .property-type-card {
        aspect-ratio: 3/4;
    }

    .property-type-title {
        font-size: 1rem;
    }

    .property-type-content {
        padding: 1rem;
    }

    .property-type-arrow {
        width: 36px;
        height: 36px;
    }

    .property-type-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile - 2 Columns (smaller) */
@media (max-width: 640px) {
    .property-types-section {
        padding: 2.5rem 0;
    }

    .property-types-section .section-title {
        font-size: 1.75rem;
    }

    .property-types-section .section-subtitle {
        font-size: 0.938rem;
    }

    .property-types-grid {
        gap: 0.875rem;
    }

    .property-type-card {
        border-radius: 10px;
    }

    .property-type-title {
        font-size: 0.938rem;
    }

    .property-type-content {
        padding: 0.875rem;
    }

    .property-type-arrow {
        top: 12px !important;
        width: 24px;
        height: 24px;
    }

    .property-type-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Very Small Mobile - 1 Column */
@media (max-width: 480px) {
    .property-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-type-card {
        aspect-ratio: 4/5;
    }
}
