/* Home 4 action buttons, matching the square teal search-button reference. */
body.reference-home4 {
    --home4-button-color: #086e8a;
    --home4-button-hover: #075870;
}

body.reference-home4 :is(
    .home4-video-action,
    .home4-seller-shortcut,
    .home4-properties .section-heading .text-link,
    .home4-path .text-link,
    .empty-contact-link,
    .button,
    .btn.button-primary,
    .btn.button-light,
    .site-footer button[data-bs-target="#valuationModal"],
    .home4-menu-navigation button[data-home4-valuation]
) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--home4-button-gap, 11px);
    min-width: 0;
    max-width: 100%;
    min-height: var(--home4-button-min-height, 50px);
    padding: var(--home4-button-padding, 13px 22px);
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--home4-button-color);
    color: #fff;
    font-family: FontemaggiDisplay, Impact, 'Arial Narrow', sans-serif;
    font-size: var(--home4-button-font-size, 20px);
    font-weight: 400;
    letter-spacing: .1em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: none;
    white-space: var(--home4-button-white-space, normal);
    box-shadow: none;
    cursor: pointer;
    transition: var(--home4-button-transition, background-color .2s ease, border-color .2s ease);
}

body.reference-home4 :is(
    .home4-video-action,
    .home4-seller-shortcut,
    .home4-properties .section-heading .text-link,
    .home4-path .text-link,
    .empty-contact-link,
    .button,
    .btn.button-primary,
    .btn.button-light,
    .site-footer button[data-bs-target="#valuationModal"],
    .home4-menu-navigation button[data-home4-valuation]
):is(:hover, :active) {
    background: var(--home4-button-hover);
    border-color: transparent;
    color: #fff;
    box-shadow: none;
}

body.reference-home4 :is(
    .home4-video-action,
    .home4-seller-shortcut,
    .home4-properties .section-heading .text-link,
    .home4-path .text-link,
    .empty-contact-link,
    .button,
    .btn.button-primary,
    .btn.button-light,
    .site-footer button[data-bs-target="#valuationModal"],
    .home4-menu-navigation button[data-home4-valuation]
):focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px var(--home4-button-color);
}

body.reference-home4 :is(
    .home4-video-action,
    .home4-seller-shortcut,
    .home4-properties .section-heading .text-link,
    .home4-path .text-link,
    .empty-contact-link,
    .button,
    .btn.button-primary,
    .btn.button-light,
    .home4-menu-navigation button[data-home4-valuation]
) > :is(svg, span[aria-hidden="true"]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: -1;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    opacity: 1;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    transform: none;
    transition: none;
}

body.reference-home4 .home4-video-actions {
    gap: 14px;
    max-width: 400px;
}

body.reference-home4 .home4-video-action {
    flex: 1 1 0;
    --home4-button-white-space: nowrap;
}

body.reference-home4 .search-actions .button-primary { --home4-button-min-height: 55px; }
body.reference-home4 .home4-menu-navigation button[data-home4-valuation] { width: 100%; }

@media (max-width: 767px) {
    body.reference-home4 .home4-video-actions { gap: 12px; max-width: 350px; }
    body.reference-home4 .home4-video-action {
        --home4-button-padding: 12px 10px;
        --home4-button-font-size: 18px;
        --home4-button-gap: 9px;
    }
    body.reference-home4 .home4-seller-shortcut { --home4-button-padding: 13px 16px; }
    body.reference-home4 .site-footer button[data-bs-target="#valuationModal"] {
        width: 100%;
        --home4-button-padding: 13px 10px;
    }
}

@media (max-height: 600px) and (min-width: 480px) {
    body.reference-home4 .home4-video-action {
        --home4-button-min-height: 44px;
        --home4-button-padding: 9px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.reference-home4 { --home4-button-transition: none; }
}
