/* ── Homefinder — Base reset ──────────────────── */
/* v1.7.0 — homepage hero + listing cards */
.hf-site *, .hf-site *::before, .hf-site *::after { box-sizing: border-box; }
.hf-site { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #111827; background: #f8f9f9; }

/* ── Header ───────────────────────────────────── */
.hf-header {
    background: #fff;
    border-bottom: 3px solid var(--hf-accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.hf-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hf-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--hf-accent);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.hf-nav { display: flex; align-items: center; gap: 20px; }
.hf-nav a {
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}
.hf-nav a:hover { color: var(--hf-accent); }
.hf-nav__login {
    background: var(--hf-accent);
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.hf-nav__login:hover { opacity: .88; }

/* Favorites nav link — mirrors the card-heart visual: grey glyph for guests,
   red glyph + red label when logged in (i.e. saved area is active). */
.hf-nav__fav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-weight: 600;
}
.hf-nav__fav .hf-nav__fav-heart {
    flex: 0 0 auto;
    color: #6b7280; /* matches .hf-save-heart unsaved colour */
    font-size: 18px;
    line-height: 1;
}
.hf-nav__fav:hover .hf-nav__fav-heart { color: #e4574c; }
.hf-nav__fav--active { color: #e4574c !important; font-weight: 700 !important; }
.hf-nav__fav--active:hover { color: #c8392e !important; }
.hf-nav__fav--active .hf-nav__fav-heart { color: #e4574c; }

/* ── Main ─────────────────────────────────────── */
.hf-main { min-height: calc(100vh - 120px); }

/* ── Search hero ──────────────────────────────── */
.hf-search-hero {
    background: var(--hf-accent);
    color: #fff;
    text-align: center;
    padding: 36px 20px 28px;
}
.hf-search-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.hf-search-hero p { margin: 0; font-size: 15px; opacity: .88; }
.hf-search-body { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }

/* ── Save search button ───────────────────────── */
#hf-save-search-btn {
    background: transparent;
    border: 1px solid var(--hf-accent);
    color: var(--hf-accent);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
#hf-save-search-btn:hover { background: var(--hf-accent); color: #fff; }

/* ── Auth page ────────────────────────────────── */
.hf-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 16px;
    min-height: 60vh;
}
.hf-auth-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,.10);
    padding: 32px;
    width: 100%;
    max-width: 420px;
}
.hf-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}
.hf-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.hf-tab.active { color: var(--hf-accent); border-bottom-color: var(--hf-accent); }
.hf-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}
.hf-alert--error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.hf-alert--success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.hf-form { display: none; flex-direction: column; gap: 16px; }
.hf-form.active { display: flex; }
.hf-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}
.hf-form input[type="text"],
.hf-form input[type="email"],
.hf-form input[type="password"] {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 15px;
    outline: none;
    transition: border-color .15s;
}
.hf-form input:focus { border-color: var(--hf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hf-accent) 15%, transparent); }
.hf-form input::placeholder { color: #aab2bd; }

/* ── Auth split-screen (login / register) ─────── */
.hf-auth-split { display: flex; min-height: calc(100vh - 60px); }
.hf-auth-pane {
    flex: 0 0 clamp(360px, 42%, 560px);
    display: flex; align-items: center; justify-content: center;
    padding: 44px 30px; background: #fff;
}
.hf-auth-inner { width: 100%; max-width: 380px; }
.hf-auth-logo {
    display: inline-block; font-size: 20px; font-weight: 800;
    color: var(--hf-accent); text-decoration: none; letter-spacing: -.3px; margin-bottom: 26px;
}
.hf-auth-heading { font-size: 28px; font-weight: 800; margin: 0 0 8px; color: #111827; letter-spacing: -.5px; }
.hf-auth-sub { font-size: 14.5px; color: #6b7280; margin: 0 0 22px; line-height: 1.5; }
.hf-auth-hint { font-weight: 400; font-size: 12px; color: #9ca3af; }
.hf-auth-submit { width: 100%; padding: 12px; font-size: 15px; border-radius: 8px; margin-top: 2px; }
.hf-auth-switch { font-size: 13.5px; color: #6b7280; margin: 14px 0 0; text-align: center; }
.hf-auth-switch a { color: var(--hf-accent); font-weight: 600; text-decoration: none; }
.hf-auth-perks {
    list-style: none; margin: 26px 0 0; padding: 22px 0 0;
    border-top: 1px solid #eef0f3; display: flex; flex-direction: column; gap: 13px;
}
.hf-auth-perks li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: #374151; }
.hf-auth-perks svg { flex: 0 0 auto; color: var(--hf-accent); }

.hf-auth-photo {
    flex: 1; position: relative;
    background: url('../images/tri-cities-hero.jpg') center/cover no-repeat;
}
.hf-auth-photo__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.5)); }
.hf-auth-photo__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px; color: #fff; z-index: 1; }
.hf-auth-photo__tag { font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.5px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hf-auth-photo__sub { font-size: 15px; margin: 0; opacity: .96; text-shadow: 0 1px 8px rgba(0,0,0,.45); }

@media (max-width: 860px) {
    .hf-auth-split { flex-direction: column; min-height: 0; }
    .hf-auth-photo { flex: none; min-height: 190px; order: -1; }
    .hf-auth-photo__caption { padding: 18px 20px; }
    .hf-auth-photo__tag { font-size: 21px; }
    .hf-auth-photo__sub { font-size: 13px; }
    .hf-auth-pane { flex: none; padding: 30px 20px; }
}
.hf-btn-primary {
    background: var(--hf-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.hf-btn-primary:hover { opacity: .88; }
.hf-form__foot { margin: 4px 0 0; font-size: 12px; color: #6b7280; text-align: center; }
.hf-form__foot a { color: var(--hf-accent); }

/* ── Account page ─────────────────────────────── */
.hf-account-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 16px;
}
.hf-account-header { margin-bottom: 28px; }

/* ── Favorites page ───────────────────────────── */
.hf-fav-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px 18px; margin-bottom: 20px;
}
.hf-fav-count strong { display: block; font-size: 17px; }
.hf-fav-count span   { font-size: 13px; color: #6b7280; }
.hf-fav-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hf-fav-action {
    background: #fff; border: 1px solid #cbd5e1; color: var(--hf-accent);
    font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
}
.hf-fav-action:hover:not(:disabled) { border-color: var(--hf-accent); }
.hf-fav-action:disabled { opacity: .45; cursor: default; }
.hf-fav-action--danger { color: #e4574c; }
.hf-fav-action--danger:hover:not(:disabled) { border-color: #e4574c; }
.hf-fav-select {
    appearance: none; -webkit-appearance: none;
    background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23475569' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 30px 8px 12px;
    font-size: 13px; font-weight: 600; color: #334155; cursor: pointer;
}

.hf-fav-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.hf-fav-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .15s ease;
}
.hf-fav-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.10); }
.hf-fav-card.is-off { opacity: .92; }
.hf-fav-card__top { padding: 10px 14px 0; }
.hf-fav-checkwrap { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--hf-accent); cursor: pointer; }
.hf-fav-checkwrap input { width: 16px; height: 16px; accent-color: var(--hf-accent); cursor: pointer; }
.hf-fav-card__photo {
    position: relative; display: block; margin-top: 10px;
    width: 100%; aspect-ratio: 16/10; background: #eef2f5; overflow: hidden;
}
.hf-fav-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-fav-card__no-photo {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #c2cbd4; background: #eef2f5;
}
.hf-fav-card.is-off .hf-fav-card__photo { filter: grayscale(1); }
.hf-fav-card__body { padding: 14px 16px 16px; }
.hf-fav-card__price { font-size: 21px; font-weight: 700; color: #111827; }
.hf-fav-card.is-off .hf-fav-card__price { color: #9aa3ad; }
.hf-fav-card__specs { font-size: 13.5px; color: #374151; margin: 4px 0 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.hf-fav-card__specs span { white-space: nowrap; }
.hf-fav-card__type { color: #6b7280; }
.hf-fav-card__addr { font-size: 14px; color: #1f2937; margin-top: 6px; }
.hf-fav-card__mls { font-size: 11.5px; color: #9aa3ad; margin-top: 5px; }
.hf-fav-empty-filter { text-align: center; color: #6b7280; padding: 30px 0; }

/* Compare modal */
.hf-fav-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.hf-fav-modal[hidden] { display: none; }
.hf-fav-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.hf-fav-modal__box {
    position: relative; background: #fff; border-radius: 12px; max-width: 940px; width: calc(100% - 32px);
    max-height: 90vh; display: flex; flex-direction: column; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hf-fav-modal__close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: #6b7280; cursor: pointer; z-index: 2; }
.hf-fav-modal__title { margin: 0 0 14px; padding-right: 32px; font-size: 19px; font-weight: 700; flex: 0 0 auto; }
.hf-fav-compare-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.hf-fav-compare-table th:first-child, .hf-fav-compare-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.hf-fav-compare-table { border-collapse: collapse; width: 100%; min-width: 480px; }
.hf-fav-compare-table th, .hf-fav-compare-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #eef0f3; font-size: 13.5px; vertical-align: top; }
.hf-fav-compare-table th { vertical-align: bottom; }
.hf-cmp-label { font-weight: 600; color: #6b7280; white-space: nowrap; }
.hf-cmp-photo { display: block; width: 100%; height: 96px; border-radius: 8px; background-size: cover; background-position: center; background-color: #eef2f5; margin-bottom: 8px; }
.hf-cmp-photo--none { background: #eef2f5; }
.hf-cmp-price { display: block; font-size: 16px; font-weight: 700; }
.hf-cmp-addr { display: block; font-size: 13px; }
.hf-cmp-addr a { color: var(--hf-accent); text-decoration: none; }
.hf-cmp-city { display: block; font-size: 12px; color: #6b7280; }

@media (max-width: 720px) {
    .hf-fav-grid { grid-template-columns: 1fr; }
    .hf-fav-bar { flex-direction: column; align-items: stretch; }
    .hf-fav-tools { justify-content: space-between; }
}
.hf-account-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; text-transform: none !important; letter-spacing: normal !important; }
.hf-account-header p { margin: 0; color: #6b7280; }
.hf-account-empty { text-align: center; padding: 48px 0; color: #6b7280; }
.hf-account-empty p { margin-bottom: 16px; font-size: 15px; }
.hf-saved-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hf-saved-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.hf-saved-item__info { flex: 1; }
.hf-saved-item__info strong { display: block; font-size: 15px; margin-bottom: 3px; }
.hf-saved-item__meta { font-size: 12px; color: #9ca3af; }
.hf-saved-item__actions { display: flex; gap: 8px; align-items: center; }
.hf-btn-secondary {
    border: 1px solid var(--hf-accent);
    color: var(--hf-accent);
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.hf-btn-secondary:hover { background: var(--hf-accent); color: #fff; }
.hf-btn-delete {
    background: none;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.hf-btn-delete:hover { border-color: #ef4444; color: #ef4444; }
.hf-account-footer { margin-top: 32px; text-align: center; }
.hf-account-footer a { color: #9ca3af; font-size: 13px; text-decoration: none; }
.hf-account-footer a:hover { color: var(--hf-accent); }

/* ── Footer ───────────────────────────────────── */
.hf-footer {
    background: #f8f9fa;
    color: #4b5563;
    padding: 36px 20px 28px;
    font-size: 13px;
    border-top: 1px solid #e5e7eb;
    margin-top: 48px;
}
.hf-footer__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.hf-footer p { margin: 0 0 8px; }
.hf-footer a { color: var(--hf-brand, #232b2b); text-decoration: none; }
.hf-footer a:hover { text-decoration: underline; }
.hf-footer__disclaimer { font-size: 11px; line-height: 1.55; color: #9ca3af; }

/* ── Homepage hero ────────────────────────────── */
.hf-hero {
    position: relative;
    min-height: 460px;
    background: url('../images/tri-cities-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hf-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
}
.hf-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}
.hf-hero__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin: 0 0 16px;
}
.hf-hero__title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    text-transform: none !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 32px;
    max-width: 520px;
}
.hf-hero__search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    max-width: 560px;
    width: 100%;
    height: 56px;
    padding: 0 8px 0 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.22);
    gap: 10px;
}
.hf-hero__search-icon { color: #999; flex-shrink: 0; display: block; }
.hf-hero__search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #1a1a1a;
    min-width: 0;
}
.hf-hero__search input::placeholder { color: #aaa; }
.hf-hero__search button {
    height: 40px;
    padding: 0 22px;
    border-radius: 20px;
    border: none;
    background: var(--hf-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: opacity .15s;
}
.hf-hero__search button:hover { opacity: .88; }

/* ── Lead capture modal ───────────────────────── */
.hf-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hf-modal[hidden] { display: none; }
.hf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    cursor: default;
    pointer-events: all;
}
.hf-modal__box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hf-modal__close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 24px; color: #6b7280;
    cursor: pointer; line-height: 1; padding: 0;
}
.hf-modal__close:hover { color: #111; }
.hf-modal__title {
    font-size: 22px; font-weight: 700;
    margin: 0 0 4px;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #111827;
}
.hf-modal__step { font-size: 13px; font-weight: 600; color: var(--hf-accent); margin: 0 0 18px; }
.hf-modal__benefits { margin: 0 0 20px; padding: 0; list-style: none; }
.hf-modal__benefits li { font-size: 14px; color: #374151; padding: 3px 0; }
.hf-modal__benefits li::before { content: '✓  '; color: var(--hf-accent); font-weight: 700; }
.hf-modal__label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; }
.hf-modal__input {
    width: 100%; border: 1px solid #d1d5db; border-radius: 6px;
    padding: 10px 12px; font-size: 15px; outline: none;
    margin-bottom: 12px; box-sizing: border-box;
}
.hf-modal__input:focus { border-color: var(--hf-accent); box-shadow: 0 0 0 3px rgba(35,43,43,.1); }
.hf-modal__error { font-size: 13px; color: #b91c1c; margin: -8px 0 8px; display: none; }
.hf-modal__submit {
    width: 100%; background: var(--hf-accent); color: #fff;
    border: none; border-radius: 6px;
    padding: 13px; font-size: 15px; font-weight: 600;
    cursor: pointer; margin-bottom: 16px;
}
.hf-modal__submit:hover { opacity: .88; }
.hf-modal__submit:disabled { opacity: .6; cursor: not-allowed; }
.hf-modal__terms { font-size: 11px; color: #9ca3af; margin: 0 0 4px; text-align: center; line-height: 1.5; }
.hf-modal__terms a { color: #6b7280; text-decoration: underline; }
.hf-modal__divider {
    display: flex; align-items: center; gap: 12px;
    margin: 4px 0 12px; color: #9ca3af; font-size: 13px;
}
.hf-modal__divider::before,
.hf-modal__divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.hf-modal__fb {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; background: #1877f2; color: #fff;
    border: none; border-radius: 6px;
    padding: 12px; font-size: 15px; font-weight: 600;
    text-decoration: none; margin-bottom: 16px;
}
.hf-modal__fb:hover { background: #1464d8; color: #fff; }
.hf-modal__login { font-size: 13px; text-align: center; margin: 12px 0 0; color: #374151; }
.hf-modal__login a { color: var(--hf-accent); font-weight: 600; text-decoration: none; }
.hf-modal__login a:hover { text-decoration: underline; }
.hf-modal__title--terms { font-size: 15px; line-height: 1.4; }
.hf-modal__subtitle { font-size: 13px; color: #6b7280; margin: -8px 0 20px; }
.hf-survey__q { margin-bottom: 18px; }
.hf-survey__label { font-size: 14px; font-weight: 600; color: #111827; margin: 0 0 8px; }
.hf-survey__opt { display: block; font-size: 14px; color: #374151; margin-bottom: 5px; cursor: pointer; }
.hf-survey__opt input[type="radio"] { margin-right: 8px; accent-color: var(--hf-accent); }
.hf-survey__nav { display: flex; justify-content: flex-end; margin-top: 24px; }
.hf-survey__nav--both { justify-content: space-between; align-items: center; }
.hf-survey__btn { width: auto !important; padding: 10px 28px !important; }
.hf-survey__back { background: none; border: none; color: #374151; font-size: 14px; cursor: pointer; padding: 0; }
.hf-survey__back:hover { color: #111; }
.hf-modal__terms-scroll {
    max-height: 240px; overflow-y: auto;
    border: 1px solid #e5e7eb; border-radius: 6px;
    padding: 14px; margin: 14px 0 18px;
    font-size: 13px; line-height: 1.6; color: #374151;
}

/* ── Featured listings section ────────────────── */
.hf-featured {
    background: #fff;
    padding: 48px 0 48px;
}
.hf-featured__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.hf-featured__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.hf-featured__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.hf-featured__sub { font-size: 13px; color: #888; margin: 0; }
.hf-featured__nav { display: flex; gap: 8px; flex-shrink: 0; margin-top: 4px; }
.hf-nav-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #ddd; background: #fff;
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s, box-shadow .15s;
    color: #333;
}
.hf-nav-btn:hover { border-color: #999; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Scroll track */
.hf-scroll-wrap { overflow: hidden; }
.hf-scroll-track {
    display: flex;
    gap: 16px;
    transition: transform .35s ease;
    will-change: transform;
}
.hf-scroll-track .hf-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 200px;
}

/* View all footer */
.hf-featured__footer { text-align: center; margin-top: 32px; }
.hf-viewall-btn {
    display: inline-block;
    font-size: 14px; font-weight: 600;
    color: var(--hf-accent);
    text-decoration: none;
    border: 1.5px solid var(--hf-accent);
    padding: 10px 28px; border-radius: 6px;
    transition: background .15s, color .15s;
}
.hf-viewall-btn:hover { background: var(--hf-accent); color: #fff; }
.hf-featured__empty { color: #6b7280; text-align: center; padding: 40px 0; }

/* ── Listing cards grid ───────────────────────── */
.hf-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hf-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s, transform .18s;
    display: flex;
    flex-direction: column;
}
.hf-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.14);
    transform: translateY(-2px);
}
.hf-card__photo {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
}

/* ── Save listing heart (cards + search results) ──────────────── */
.hf-card__photo,
.ddf-item__photo { position: relative; }

.hf-save-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #6b7280;
    font-size: 18px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: transform .12s ease, color .12s ease, background .12s ease;
    -webkit-text-stroke: 0;
}
.hf-save-heart:hover { transform: scale(1.1); background: #fff; }
.hf-save-heart.is-saved { color: #e4574c; }

/* Larger heart overlaid on the listing-detail hero photo */
.hfl-hero-heart {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 24px;
    top: 14px;
    right: 14px;
    z-index: 5;
}

/* Detail-page text save button — filled state */
.hfl-save-btn.is-saved { color: #e4574c; border-color: #e4574c; }

/* Account page sections */
.hf-account-section { margin-bottom: 36px; }
.hf-account-section__title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.hf-account-section__sub { margin: 0 0 16px; color: #6b7280; font-size: 14px; }
.hf-saved-listings .hf-card { position: relative; }
.hf-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hf-card__no-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
.hf-card__body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hf-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.hf-card__address {
    font-size: 12px;
    color: #374151;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hf-card__location {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}
.hf-card__specs {
    font-size: 11px;
    color: #6b7280;
    margin: 3px 0 0;
}
.hf-card__brokerage {
    font-size: 11px;
    color: #9ca3af;
    margin: 6px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}

/* ── Filter bar (homefinder search page) ─────── */
.hf-search-body { background: #f8f9f9; }
.hf-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 20px 0;
    position: sticky;
    top: 60px;
    z-index: 50;
}
.hf-filter-bar__row1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.hf-fb-search-wrap { flex: 1; position: relative; }
.hf-fb-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    background: #f8f9f9;
}
.hf-fb-search svg { color: #9ca3af; flex-shrink: 0; }
.hf-fb-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #111827;
}
.hf-fb-search:focus-within { border-color: var(--hf-accent); background: #fff; }
.hf-mapview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}
.hf-mapview-btn:hover, .hf-mapview-btn.active { border-color: var(--hf-accent); color: var(--hf-accent); }

/* Row 2 — pill buttons */
.hf-filter-bar__row2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}
.hf-fp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .12s, color .12s;
}
.hf-fp:hover { border-color: #9ca3af; }
.hf-fp--filters { gap: 6px; }
.hf-fp--filters:hover { border-color: var(--hf-accent); color: var(--hf-accent); }

/* Pill dropdown wrapper */
.hf-fp-wrap { position: relative; }
.hf-fp__drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    padding: 8px 0;
}
.hf-fp-wrap.open .hf-fp__drop { display: block; }
.hf-fp__drop-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 8px 16px 6px;
    margin: 0;
}
.hf-fp__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}
.hf-fp__opt:hover, .hf-fp__opt--active { background: #f3f4f6; color: #111827; }
.hf-fp__opt input[type="radio"] { accent-color: var(--hf-accent); }
.hf-fp__drop--price { min-width: 260px; padding: 16px; }
.hf-fp__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
}
.hf-fp__price-row input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    min-width: 0;
}
.hf-fp__price-row input:focus { border-color: var(--hf-accent); }
.hf-fp__price-row span { color: #9ca3af; }
.hf-fp__pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px 16px 8px;
}
.hf-fpill {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #374151;
}
.hf-fpill:hover { border-color: var(--hf-accent); color: var(--hf-accent); }
.hf-fpill.active { background: var(--hf-accent); border-color: var(--hf-accent); color: #fff; }
.hf-fp__apply-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 8px 16px 8px;
    background: var(--hf-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.hf-fp__apply-btn:hover { opacity: .88; }

/* Save search pill */
.hf-save-pill {
    margin-left: auto;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    white-space: nowrap;
}
.hf-save-pill:hover { opacity: .85; }

/* ── More panel overlay ───────────────────────── */
.hf-more-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 400;
}
.hf-more-overlay.open { display: block; }

/* ── More slide-in panel ──────────────────────── */
.hf-more-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    z-index: 401;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transition: right .28s cubic-bezier(.4,0,.2,1);
}
.hf-more-panel.open { right: 0; }
.hf-more-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    font-weight: 700;
}
.hf-more-panel__header button {
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}
.hf-more-panel__header button:hover { color: #111827; }
.hf-more-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.hf-more-section h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.hf-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hf-range-row input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
}
.hf-range-row input:focus { border-color: var(--hf-accent); }
.hf-range-row span { color: #9ca3af; font-size: 16px; }
.hf-more-panel__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}
.hf-more-panel__footer .hf-btn-primary { width: 100%; text-align: center; padding: 12px; }

/* ── Autocomplete dropdown ────────────────────── */
.hf-ac-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.hf-ac-wrap .hf-hero__search { margin: 0; }
.hf-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 300;
    display: none;
    overflow: hidden;
}
.hf-autocomplete li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    cursor: pointer;
    gap: 12px;
    transition: background .12s;
}
.hf-autocomplete li:hover,
.hf-autocomplete li.hf-ac--active { background: #f3f4f6; }
.hf-ac__label { font-size: 14px; font-weight: 500; color: #111827; }
.hf-ac__sub { font-size: 12px; color: #9ca3af; white-space: nowrap; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .hf-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hf-hero__title { font-size: 38px; }
    .hf-hero__inner { padding: 60px 24px; }
    .hf-scroll-track .hf-card { flex: 0 0 calc(50% - 8px); }
    .hf-featured__inner { padding: 0 24px; }
}
@media (max-width: 600px) {
    .hf-header__inner { padding: 0 14px; }
    .hf-logo { font-size: 15px; }
    .hf-nav { gap: 12px; }
    .hf-nav a { font-size: 13px; }
    .hf-search-hero { padding: 24px 14px 18px; }
    .hf-search-hero h1 { font-size: 20px; }
    .hf-auth-box { padding: 24px 16px; }
    .hf-saved-item { flex-direction: column; align-items: flex-start; }
    .hf-hero { min-height: 300px; }
    .hf-hero__inner { padding: 48px 24px; }
    .hf-hero__title { font-size: 28px; }
    .hf-hero__search { height: 48px; }
    .hf-hero__search button { height: 34px; padding: 0 16px; font-size: 13px; }
    .hf-cards { grid-template-columns: 1fr; }
    .hf-featured__inner { padding: 0 16px; }
    .hf-scroll-track .hf-card { flex: 0 0 80%; }
}

/* ── Account dropdown ──────────────────────────── */
.hf-user-menu { position: relative; }

.hf-user-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    padding: 6px 0;
    white-space: nowrap;
}

.hf-chevron { transition: transform 0.2s; }
.hf-user-trigger[aria-expanded="true"] .hf-chevron { transform: rotate(180deg); }

.hf-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 9999;
}

.hf-dropdown__section {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    padding: 10px 16px 4px;
    margin: 0;
}

.hf-dropdown__item {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}

.hf-dropdown__item:hover { background: #f3f4f6; color: #111; }

.hf-dropdown__divider {
    border-top: 1px solid #e5e7eb;
    margin: 6px 0;
}

.hf-dropdown__signout { color: #6b7280; }

/* ── Discovery sections ───────────────────────── */
.hf-section { padding: 50px 0; border-top: 1px solid #f0f0f0; }
.hf-section__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hf-section__header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 16px; }
.hf-section__title { font-size: 22px; font-weight: 700; margin: 0; color: #111; }
.hf-section__sub { font-size: 14px; color: #6b7280; margin: 4px 0 0; }

.hf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .hf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .hf-grid { grid-template-columns: 1fr; } }

/* Open house time badge on cards */
.hf-card__oh-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--hf-accent);
    margin: 4px 0 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ── Sold / gated section ─────────────────────── */
.hf-section--sold { background: #f8f9fa; }
.hf-sold-wrap { position: relative; }
.hf-card--blurred { filter: blur(5px); pointer-events: none; user-select: none; }
.hf-sold-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    gap: 10px;
    text-align: center;
    padding: 16px;
    border-radius: 10px;
}
.hf-sold-overlay p { font-weight: 600; font-size: 13px; color: #111; margin: 0; }
.hf-sold-overlay .hf-btn-primary { font-size: 13px; padding: 8px 18px; }
.hf-sold-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: .5px;
    vertical-align: middle;
    margin-left: 6px;
}
.hf-dropdown__signout:hover { color: #dc2626; background: #fef2f2; }

/* ===== FOOTER — agent strip + cross-links ===== */
.hf-footer-agent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #4b5563;
    flex-wrap: wrap;
}
.hf-footer-agent-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 22%; /* keep the face centered after cover-crop */
    flex-shrink: 0;
}
.hf-footer-agent strong { color: #111827; font-weight: 700; }
.hf-footer-agent a {
    color: var(--hf-brand, #232b2b);
    text-decoration: none;
    font-weight: 600;
}
.hf-footer-agent a:hover { text-decoration: underline; }

.hf-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 22px;
}
.hf-footer-links a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    text-decoration: none;
    background: #fff;
    font-weight: 500;
    transition: border-color .15s, color .15s, background .15s;
}
.hf-footer-links a:hover {
    border-color: var(--hf-brand, #232b2b);
    color: var(--hf-brand, #232b2b);
    background: #fff;
}

/* ── Cost-tools CTA strip — homefinder home page + listing detail ───── */
.hfl-tools-strip {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.hf-section--tools .hfl-tools-strip {
    /* On the home page the strip lives inside its own section so it doesn't
       need the dividing border that separates it from the tabs above. */
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.hfl-tools-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.hf-section--tools .hfl-tools-title {
    font-size: 22px;
    margin: 0 0 18px;
}
.hfl-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.hfl-tool-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hfl-tool-card:hover {
    border-color: var(--hf-brand, #232b2b);
    box-shadow: 0 6px 20px -8px rgba(0,0,0,.18);
    transform: translateY(-1px);
}
.hfl-tool-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6;
    color: var(--hf-brand, #232b2b);
}
.hfl-tool-card:hover .hfl-tool-icon {
    background: var(--hf-brand, #232b2b);
    color: #fff;
}
.hfl-tool-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.hfl-tool-label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}
.hfl-tool-sub {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.35;
}
.hfl-tool-cta {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hf-brand, #232b2b);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
@media (max-width: 720px) {
    .hfl-tools-grid { grid-template-columns: 1fr; }
    .hfl-tool-card  { padding: 14px; }
}

/* ── Quick-Answer block (home page) — visible facts for users AND AI crawlers ─── */
.hf-quick-answer {
    background: #f8f9f9;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.hf-quick-answer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px;
}
.hf-quick-answer__lead {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.55;
    color: #111827;
}
.hf-quick-answer__lead strong { color: var(--hf-brand, #232b2b); }
.hf-quick-answer__bullets {
    list-style: disc;
    padding-left: 22px;
    margin: 0;
    color: #4b5563;
}
.hf-quick-answer__bullets li {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 3px 0;
}
@media (max-width: 720px) {
    .hf-quick-answer__inner { padding: 16px 16px; }
    .hf-quick-answer__lead  { font-size: 14.5px; }
}
