/*
 * City hub pages (/homes-for-sale/).
 *
 * Every rule is scoped under .hfs-page so nothing here can reach another
 * template. Divi's heading sizes come from the customizer in the database, not
 * from this theme's CSS, so headings are left to inherit rather than being
 * given sizes that would fight it.
 */

.hfs-page {
    padding: 40px 0 60px;
}

.hfs-page .hfs-title {
    margin-bottom: 18px;
}

.hfs-page .hfs-intro {
    max-width: 820px;
    margin-bottom: 34px;
    line-height: 1.65;
}

.hfs-page .hfs-h2 {
    margin: 42px 0 18px;
}

.hfs-page .hfs-note {
    font-size: 13px;
    opacity: 0.75;
    margin-top: 12px;
}

/* Market statistics */

.hfs-page .hfs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin: 0;
}

.hfs-page .hfs-stat {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 18px 20px;
    background: #fafafa;
}

.hfs-page .hfs-stat dt {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    margin-bottom: 6px;
}

.hfs-page .hfs-stat dd {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

/* Listing grid */

.hfs-page .hfs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.hfs-page .hfs-card {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.18s ease;
}

.hfs-page .hfs-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hfs-page .hfs-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hfs-page .hfs-card-img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f0f0f0;
}

.hfs-page .hfs-card-body {
    padding: 16px 18px 18px;
}

.hfs-page .hfs-card-price {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.hfs-page .hfs-card-address {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.35;
}

.hfs-page .hfs-card-meta {
    font-size: 14px;
    margin: 0 0 4px;
    opacity: 0.85;
}

.hfs-page .hfs-card-type {
    font-size: 13px;
    margin: 0;
    opacity: 0.65;
}

/* Calls to action and city lists */

.hfs-page .hfs-cta {
    margin: 34px 0 0;
}

.hfs-page .hfs-city-index {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px 24px;
}

.hfs-page .hfs-city-index li {
    padding: 0;
}

.hfs-page .hfs-city-index-compact {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

@media (max-width: 767px) {
    .hfs-page {
        padding: 24px 0 40px;
    }

    .hfs-page .hfs-stat dd {
        font-size: 20px;
    }

    .hfs-page .hfs-card-img {
        height: 210px;
    }
}
