:root{
    --orange: #dd7447;
    --blue: #0f509b;
    --yellow: #f3c237;
    --whatsapp: #25d366;
    --text: #2c2c2c;
    --muted: #666;
    --page-bg: #f7f7f7;
    --nav-scrolled-height: 64px;
    --ps-surface: #fff;
    --ps-border: #e5e7eb;
    --ps-radius: 12px;
    --ps-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.5;
}

body.agent-landing-page{
    background: var(--page-bg);
}

a{
    color: var(--blue);
    text-decoration: none;
}

.white{ color: #fff; }

/* shell */
.agent-landing{
    padding: 0;
    width: 100%;
}

.agent-landing.included-bio{
    --page-bg: whitesmoke;
    padding-top: var(--nav-scrolled-height);
}

/* hero — aligned with info hub / subpage heroes */
.agent-landing__hero{
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.12), transparent 40%),
        linear-gradient(135deg, #f3c237 0%, #dd7447 55%, #c9683f 100%);
    color: #fff;
    padding: clamp(2rem, 5vw, 3rem) 1.5rem clamp(4.5rem, 9vw, 5.5rem);
    position: relative;
    text-align: center;
}

.agent-landing__hero::after{
    background: linear-gradient(to bottom, transparent, var(--page-bg));
    bottom: 0;
    content: "";
    height: 4rem;
    left: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.agent-landing__hero-inner{
    margin: 0 auto;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.agent-landing__eyebrow{
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
    opacity: 0.92;
    text-transform: uppercase;
}

.agent-landing__hero h1{
    color: #fff;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 0.5rem;
}

.agent-landing__hero-title{
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.agent-landing__hero-tagline{
    font-size: clamp(0.9rem, 1.8vw, 1.02rem);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 36rem;
    opacity: 0.9;
}

/* body + card */
.agent-landing__body{
    margin: -2.5rem auto 0;
    max-width: 720px;
    padding: 0 1.25rem 2rem;
    position: relative;
    width: 100%;
    z-index: 2;
}

.agent-landing__photo{
    border: 6px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: block;
    height: 180px;
    margin: 0 auto -90px;
    object-fit: cover;
    position: relative;
    width: 180px;
    z-index: 3;
}

.agent-landing__card{
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    padding: clamp(5.75rem, 11vw, 6.25rem) clamp(1.35rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2rem);
    text-align: center;
}

.agent-landing__card--no-photo{
    padding-top: clamp(1.35rem, 3vw, 2rem);
}

.agent-landing__cta{
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.agent-landing__btn{
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem;
}

.agent-landing__btn:hover{
    background: #fafafa;
}

.agent-landing__btn--primary{
    background: var(--whatsapp);
    border-color: var(--whatsapp);
    color: #fff;
}

.agent-landing__btn--primary:hover{
    background: #1ebe57;
    color: #fff;
}

.agent-landing__btn--ghost{
    background: transparent;
}

.agent-landing__social{
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 0.5rem 0 1.5rem;
}

.agent-landing__social a{
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    color: var(--text);
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.agent-landing__listings{
    margin-top: 1.5rem;
    text-align: left;
}

.agent-landing__listings h3{
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    text-align: center;
}

.agent-landing__listing-grid{
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.agent-listing-card{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agent-listing-card:hover{
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.agent-listing-card img,
.agent-listing-card__placeholder{
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #ececec, #d8d8d8);
    display: block;
    object-fit: cover;
    width: 100%;
}

.agent-listing-card__body{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem 0.9rem;
}

.agent-listing-card__loc{
    color: var(--muted);
    font-size: 0.85rem;
}

.agent-listing-card__price{
    color: var(--orange);
    font-weight: 700;
    margin-top: 0.15rem;
}

.agent-landing__more,
.agent-landing__empty{
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 1rem;
    text-align: center;
}

.agent-landing__bio{
    color: #444;
    margin-top: 1.5rem;
    text-align: left;
}

.agent-landing__phone{
    color: var(--muted);
    margin-top: 1rem;
}

.agent-landing__secondary{
    margin-top: 1.5rem;
}

.agent-landing__link{
    color: var(--muted);
    font-size: 0.9rem;
}

.agent-landing__footer{
    background: #333;
    margin-top: 2rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.agent-landing__footer img{
    max-width: 120px;
}

.agent-landing__footer h2{
    font-size: 1.5rem;
    font-weight: 300;
    margin: 1rem 0 0.5rem;
}

.agent-landing__footer p{
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.agent-landing__footer small{
    display: block;
    font-size: 0.75rem;
    margin-top: 2rem;
    opacity: 0.85;
}

@media (max-width: 540px){
    .agent-landing__photo{
        height: 150px;
        margin-bottom: -75px;
        width: 150px;
    }

    .agent-landing__card{
        padding-top: clamp(5rem, 14vw, 5.5rem);
    }

    .agent-landing__hero h1{
        font-size: 1.6rem;
    }

    .agent-landing__cta{
        background: linear-gradient(to top, var(--ps-surface) 70%, transparent);
        bottom: 0;
        flex-direction: column;
        padding: 0.75rem 0 0.5rem;
        position: sticky;
        z-index: 5;
    }

    .agent-landing__btn{
        justify-content: center;
        width: 100%;
    }
}
