/**
 * Domovita - ancillary upsell / affiliate block.
 *
 * Scoped under .dv-upsell-block (and the .dv-newhome-page wrapper) so nothing
 * leaks into the rest of the site. Light backgrounds with dark text throughout
 * for guaranteed WCAG AA contrast (see feedback_dark_on_dark_contrast_pattern).
 * Greens match the lister-page / transactional-email palette.
 *
 * The "Ad" disclosure is deliberately prominent, not buried - ASA/CAP requires
 * affiliate links to be obviously identifiable.
 *
 * @package     Domovita
 * @subpackage  com_domovita
 * @version     1.0.0
 */

.dv-upsell-block {
    --dv-u-green: #1a4d2e;
    --dv-u-green-mid: #2d7a4f;
    --dv-u-ink: #16261c;
    --dv-u-muted: #4a5a50;
    --dv-u-line: #d9e2dc;
    --dv-u-tint: #f3f7f4;
    margin: 1.25rem 0 0;
    color: var(--dv-u-ink);
}

.dv-upsell-heading {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    color: var(--dv-u-green);
}

/* F3 - the disclosure. Prominent panel, dark text on a light tint. */
.dv-upsell-disclosure {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    background: var(--dv-u-tint);
    border: 1px solid var(--dv-u-line);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--dv-u-muted);
}

.dv-upsell-adtag {
    flex: 0 0 auto;
    display: inline-block;
    background: var(--dv-u-ink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    line-height: 1.4;
}

.dv-upsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.dv-upsell-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--dv-u-line);
    border-radius: 10px;
    padding: 1rem 1rem 1.1rem;
}

.dv-upsell-card-title {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    color: var(--dv-u-ink);
}

.dv-upsell-card-blurb {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    color: var(--dv-u-muted);
}

.dv-upsell-cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    background: var(--dv-u-green);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.dv-upsell-cta:hover,
.dv-upsell-cta:focus {
    background: var(--dv-u-green-mid);
    color: #fff;
    text-decoration: none;
}

.dv-upsell-cta:focus-visible {
    outline: 3px solid var(--dv-u-green-mid);
    outline-offset: 2px;
}

.dv-newhome-services-intro {
    color: var(--dv-l-muted, #4a5a50);
}

@media (max-width: 540px) {
    .dv-upsell-grid {
        grid-template-columns: 1fr;
    }
}
