/* ===============================
   Featured Property Section
================================ */

.featured-section {
    display: flex;
    justify-content: center;
    padding: 80px 0;
    width: 100%;
    height: auto;
}

.featured-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 160px;
    gap: 74px;
}

.featured-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-content h2 {
    color: var(--color-primary-blue);
}

.featured-content p {
    max-width: 1200px;
    font-size: var(--blurb-size);
    font-family: var(--font-henry);
    font-weight: 300;
}

/* ===============================
   Desktop Grid
================================ */

.home-card-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
}

.property-card {
    border-radius: 8px;
    overflow: hidden;
}

.property-link {
    text-decoration: none;
    color: inherit;
}

.property-image img {
    width: 100%;
    height: 506px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.property-info {
    padding: 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--color-primary-blue);
}

.property-title {
    font-family: var(--font-montserrat);
    font-weight: var(--heading-weight);
}

.property-location,
.property-status,
.property-price {
    font-size: 20px;
    color: #344054;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-henry);
}

.property-location svg,
.property-status svg,
.property-price svg {
    width: 20px;
    flex-shrink: 0;
}

/* Hide nav buttons on desktop */
.property-nav-btn {
    display: none;
}

/* ===============================
   Tablets (≤ 1024px)
================================ */

@media (max-width: 1024px) {
    .featured-wrapper {
        margin: 0 60px;
        gap: 50px;
    }

    .featured-section {
        padding: 60px 0;
    }

    .home-card-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .property-image img {
        height: 420px;
    }
}

/* ===============================
   Mobile (≤ 768px)
================================ */

@media (max-width: 768px) {
    .featured-section {
        padding: 40px 0;
    }

    .featured-wrapper {
        margin: 0 20px;
        gap: 25px;
        align-items: center;
    }

    .featured-content p {
        font-size: 16px;
    }

    .home-card-wrapper {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Prevent wrapper from collapsing */
        width: 100%;
    }

    .home-card-wrapper::-webkit-scrollbar {
        display: none;
    }

    .property-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    .property-image img {
        height: 360px;
    }

    .property-location,
    .property-status,
    .property-price {
        font-size: 16px;
    }

    /* Show mobile nav buttons */
    .property-nav-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 12px;
    }

    .property-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        background: none;
        color: #002349;
        font-size: 44px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: opacity 0.2s ease;
    }

    .property-btn:hover {
        opacity: 0.6;
    }

    .property-btn:active {
        opacity: 0.4;
    }
}

/* ===============================
   Small Mobile (≤ 480px)
================================ */

@media (max-width: 480px) {
    .featured-wrapper {
        margin: 0 16px;
        gap: 20px;
    }

    .featured-section {
        padding: 32px 0;
    }

    .property-image img {
        height: 280px;
    }
}