/* ==========================================
   LISTINGS CTA
========================================== */

.listings-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 55px;
}


/* ==========================================
   FEATURED LISTINGS SECTION
========================================== */

.featured-listings {
    padding: 100px 20px 80px;
    background: #ffffff;
}


/* ==========================================
   SECTION HEADING
========================================== */

.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-eyebrow {
    display: block;
    margin-bottom: 14px;

    color: var(--gold);

    font-family: var(--body-font);
    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 18px;

    color: var(--navy);

    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
}

.section-heading p {
    max-width: 650px;
    margin: 0 auto;

    color: #6f7b88;

    font-family: var(--body-font);
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ==========================================
   LISTING GRID
========================================== */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
}



/* ==========================================
   LISTING CARD
========================================== */

.listing-card {
    position: relative;

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);

    transition: .35s;
}

.listing-card:hover {
    transform: translateY(-10px);

    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
}


/* Gold hover line */

.listing-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 4px;

    background: var(--gold);

    transform: scaleX(0);
    transform-origin: left;

    transition: .35s;

    z-index: 2;
}

.listing-card:hover::before {
    transform: scaleX(1);
}


/* ==========================================
   LISTING IMAGE
========================================== */

.listing-image {
    position: relative;

    overflow: hidden;

    aspect-ratio: 16 / 10;
}

.listing-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.08);
}


/* ==========================================
   LISTING STATUS
========================================== */

.listing-status {
    position: absolute;

    top: 18px;
    left: 18px;

    padding: 8px 16px;

    background: rgba(255, 255, 255, .92);

    backdrop-filter: blur(10px);

    border-radius: 30px;

    font-size: .75rem;
    font-weight: 700;

    color: var(--navy);

    z-index: 1;
}


/* ==========================================
   LISTING PRICE
========================================== */

.listing-price {
    position: absolute;

    bottom: 20px;
    left: 20px;

    padding: 12px 18px;

    background: rgba(14, 47, 90, .88);

    backdrop-filter: blur(14px);

    color: white;

    font-size: 1.35rem;
    font-weight: 700;

    border-radius: 10px;
}


/* ==========================================
   LISTING CONTENT
========================================== */

.listing-content {
    padding: 28px;
}

.listing-content h3 {
    margin: 0 0 8px;

    color: var(--navy);

    font-size: 1.45rem;
}

.listing-location {
    margin-bottom: 22px;

    color: #7D8794;

    font-size: 1rem;
}


/* ==========================================
   LISTING DETAILS
========================================== */

.listing-details {
    display: flex;

    justify-content: space-between;

    margin-bottom: 24px;

    padding: 18px 0;

    border-top: 1px solid #ECEFF3;
    border-bottom: 1px solid #ECEFF3;
}

.listing-details span {
    color: #5F6875;

    font-size: .9rem;
    font-weight: 600;
}


/* ==========================================
   LISTING LINK
========================================== */

.listing-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--gold);

    font-weight: 700;

    text-decoration: none;

    transition: .25s;
}

.listing-link:hover {
    gap: 14px;
}


/* ==========================================
   SECTION ACTION
========================================== */

.section-action {
    display: flex;

    justify-content: center;

    width: 100%;

    margin-top: 70px;
}


/* ==========================================
   RESPONSIVE
========================================== */


@media (max-width: 1100px) {

    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}



@media (max-width: 768px) {

    .featured-listings {
        padding: 80px 20px;
    }

    .listing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}


@media (max-width: 650px) {

    .featured-listings {
        padding: 70px 20px;
    }

}