#mls-attribution:not(:empty) {
    background-color: var(--hoa-mls-attribution-bg);
    width: 100%;
}

.mls-attribution {
    background-color: var(--hoa-mls-attribution-bg);
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    margin: 0;
    padding: 40px 64px 24px;
}

#mls-attribution .mls-attribution {
    background-color: transparent;
}

.mls-attribution__item,
.mls-attribution > .mls-attribution__link {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.mls-attribution__item + .mls-attribution__item {
    margin-top: 28px;
}

.mls-attribution__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 24px;
    margin-bottom: 12px;
}

.mls-attribution__logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 0;
}

.mls-attribution__item > .mls-attribution__logo {
    margin-bottom: 12px;
}

.mls-attribution__text,
.mls-attribution__text p {
    font-size: 12px;
    line-height: 1.5;
    max-width: 920px;
    margin: 0 0 12px;
    color: var(--hoa-dark-grey);
}

.mls-attribution__text {
    white-space: pre-line;
}

.mls-attribution__link {
    margin: 0;
}

.mls-attribution__more-link {
    color: #2563eb;
    text-decoration: underline;
}

.mls-attribution__more-link:hover {
    color: #1d4ed8;
}

.hoa-footer {
    background-color: var(--hoa-light-grey);
    padding: 40px 64px 36px;
    color: var(--hoa-dark-blue);
}

.hoa-footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "brand contact"
        "links copyright";
    column-gap: 80px;
    row-gap: 48px;
    align-items: start;
}

.hoa-footer-brand {
    grid-area: brand;
    max-width: 560px;
}

.hoa-footer-contact {
    grid-area: contact;
}

.hoa-footer-links {
    grid-area: links;
    display: flex;
    align-items: center;
    gap: 40px;
    align-self: center;
}

.hoa-footer-copyright {
    grid-area: copyright;
    margin: 0;
    align-self: center;
}

.footer-company-name {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    color: var(--hoa-rust);
}

.footer-company-name a {
    color: inherit;
    text-decoration: none;
}

.hoa-footer-tagline {
    max-width: 520px;
    margin: 12px 0 0;
    font-weight: 400;
    line-height: 1.5;
    color: var(--hoa-dark-grey);
}

.brokerage-licenses-footer-note {
    margin: 24px 0 0;
    line-height: 1.5;
}

.brokerage-licenses-footer-note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hoa-footer-contact-title {
    margin: 0 0 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hoa-dark-blue);
}

.hoa-footer-contact-name {
    margin: 0;
    line-height: 1.5;
}

.footer-link {
    text-decoration: none;
    color: var(--hoa-dark-blue);
}

.footer-link:hover,
.footer-email:hover {
    color: var(--hoa-rust);
}

.footer-email {
    display: block;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    color: var(--hoa-dark-blue);
}

.hoa-footer-office {
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .mls-attribution,
    #mls-attribution .mls-attribution,
    .hoa-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hoa-footer {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .hoa-footer-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "contact"
            "links"
            "copyright";
        column-gap: 0;
        row-gap: 0;
    }

    .hoa-footer-brand {
        max-width: none;
    }

    .hoa-footer-contact {
        margin-top: 28px;
    }

    .hoa-footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 48px;
        align-self: start;
    }

    .hoa-footer-copyright {
        margin-top: 20px;
        align-self: start;
    }
}