/* ========================================
   Popular Properties Section - Swiper Carousel
   ======================================== */

:root {
    --prop-primary: #154D71;        /* Main color - Dark Blue */
    --prop-secondary: #1C6EA4;      /* Second color - Medium Blue */
    --prop-accent: #33A1E0;         /* Third color - Light Blue */
    --prop-success: #28A745;        /* Success Green */
}

.popular-properties-section {
    padding: 5rem 0;
    background: #fafafa;
}

/* Swiper Container */
.properties-carousel-home {
    position: relative;
    margin: 0 auto;
    padding: 0 3rem;
    overflow: hidden;
}

.properties-carousel-home .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
}

.properties-carousel-home .swiper-slide {
    height: auto;
    flex-shrink: 0;
}

/* Property Card */
.property-card-home {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
}

.property-card-home:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.property-link-home {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Section */
.property-image-home {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.property-image-home img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card-home:hover .property-image-home img {
    transform: scale(1.05);
}

/* Placeholder for no image */
.property-image-home:not(:has(img))::after {
    content: '🏠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
}

/* Badges Container */
.property-badges-home {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: start;
    align-items: flex-start;
    z-index: 2;
	gap: 5px;
}

/* Featured Badge - Success Green */
.badge-featured-home {
    padding: 0.375rem 0.75rem;
    background: #1C6EA4;
    color: white;
    border-radius: 4px;
    font-size: 0.688rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Type Badge - Dark Gray/Black */
.badge-type-home {
    padding: 0.375rem 0.75rem;
    background: #374151;
    color: white;
    border-radius: 4px;
    font-size: 0.688rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Label Badge - Main Blue */
.badge-label-home {
    padding: 0.375rem 0.75rem;
    background: #1C6EA4;
    color: white;
    border-radius: 4px;
    font-size: 0.688rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(28, 110, 164, 0.3);
}

[dir="rtl"] .property-badges-home {
    left: 1rem;
    right: 1rem;
}

/* Content Section */
.property-content-home {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

/* Title */
.property-title-home {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

/* Price - Accent Blue */
.property-price-home {
    font-size: 1.5rem;
    font-weight: 700;
    color: #154D71;
    margin: 0;
}

/* Features Row */
.property-features-home {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.feature-home {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.938rem;
	height:32px;
}

.feature-home svg {
    flex-shrink: 0;
    color: #6b7280;
	width: 32px;
}

.feature-home span {
    font-weight: 500;
    color: #374151;
}

/* Swiper Navigation Buttons */
.carousel-prev-home,
.carousel-next-home {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #374151;
    transition: all 0.3s ease;
}

.carousel-prev-home:after,
.carousel-next-home:after {
    font-size: 20px;
    font-weight: 700;
}

.carousel-prev-home:hover,
.carousel-next-home:hover {
    background: var(--prop-accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(51, 161, 224, 0.4);
}

.carousel-prev-home.swiper-button-disabled,
.carousel-next-home.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev-home {
    left: -0.5rem;
}

.carousel-next-home {
    right: -0.5rem;
}

[dir="rtl"] .carousel-prev-home {
    left: auto;
    right: -0.5rem;
}

[dir="rtl"] .carousel-next-home {
    right: auto;
    left: -0.5rem;
}

/* Swiper Pagination */
.carousel-dots-home {
    position: static;
    margin-top: 2rem;
}

.carousel-dots-home .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-dots-home .swiper-pagination-bullet-active {
    background: var(--prop-accent);
    width: 24px;
    border-radius: 4px;
}

/* ======================================
   Responsive Styles
   ====================================== */

/* Tablet - 2 Columns */
@media (max-width: 991px) {
    .popular-properties-section {
        padding: 3.5rem 0;
    }

    .properties-carousel-home {
        padding: 0 2.5rem;
    }

    .property-title-home {
        font-size: 1rem;
        min-height: 2.8rem;
    }

    .property-price-home {
        font-size: 1.375rem;
    }

    .property-content-home {
        padding: 1.25rem;
    }

    .feature-home {
        font-size: 0.875rem;
    }

    .feature-home svg {
        width: 18px;
        height: 18px;
    }

    .carousel-prev-home,
    .carousel-next-home {
        width: 44px;
        height: 44px;
    }
}

/* Mobile - 1 Column */
@media (max-width: 640px) {
    .popular-properties-section {
        padding: 2.5rem 0;
    }

    .properties-carousel-home {
        padding: 0 2rem;
    }

    .property-content-home {
        padding: 1rem;
        gap: 0.625rem;
    }

    .property-title-home {
        font-size: 0.938rem;
        min-height: 2.6rem;
    }

    .property-price-home {
        font-size: 1.25rem;
    }

    .property-features-home {
        gap: 0.875rem;
        flex-wrap: wrap;
    }

    .feature-home {
        font-size: 0.813rem;
    }

    .feature-home svg {
        width: 16px;
        height: 16px;
    }

    .badge-featured-home,
    .badge-type-home,
    .badge-label-home {
        font-size: 0.625rem;
        padding: 0.313rem 0.625rem;
    }

    .property-badges-home {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }

    .carousel-prev-home,
    .carousel-next-home {
        width: 40px;
        height: 40px;
    }

    .carousel-prev-home {
        left: -0.25rem;
    }

    .carousel-next-home {
        right: -0.25rem;
    }

    [dir="rtl"] .carousel-prev-home {
        left: auto;
        right: -0.25rem;
    }

    [dir="rtl"] .carousel-next-home {
        right: auto;
        left: -0.25rem;
    }

    .carousel-dots-home {
        margin-top: 1.5rem;
    }
}

/* ========================================
   CTA Buttons in Popular Properties
   ======================================== */

.popular-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.popular-cta-actions .btn-cta-primary,
.popular-cta-actions .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.popular-cta-actions .btn-cta-primary {
    background-color: #154D71;
    color: #fff !important;
}

.popular-cta-actions .btn-cta-primary:hover {
    background-color: #0d3a52;
    color: #fff !important;
    transform: translateY(-2px);
}

.popular-cta-actions .btn-cta-secondary {
    background-color: #154D71;
    color: #fff !important;
}

.popular-cta-actions .btn-cta-secondary:hover {
    background-color: #0d3a52;
    color: #fff !important;
    transform: translateY(-2px);
}

.popular-cta-actions .btn-cta-primary svg,
.popular-cta-actions .btn-cta-secondary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .popular-cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .popular-cta-actions .btn-cta-primary,
    .popular-cta-actions .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.938rem;
    }
}
