/* ==========================================================================
   flexmls IDX buttons: brand colours (2026-11-16)

   flexmls-idx's own style.css gives every IDX button
   `background: linear-gradient(0deg, #fcfcfc, #e6e6e6)`. The child style.css rules only
   set background-color, so the grey gradient painted over them and the white
   labels disappeared (top-bar Log In, View Details, Ask Question, listing-page
   buttons, pagination, lead-gen Submit). Clear the gradient and use the logo
   palette:
     navy       #004982  (APEX wordmark)  primary
     blue       #0073b7  (mountain)       secondary
     deep navy  #002448  (darkest logo)   hover
   More specific rules in style.css (top bar, listing summaries, listing details)
   keep their own background colours; this only removes the gradient under
   them and gives every other IDX button a branded default.
   ========================================================================== */
html body .flexmls_connect__button:not(.portal-button-secondary),
html body .flexmls_connect__page_content button:not(.portal-button-secondary),
html body .flexmls_connect__sr_detail button,
html body .flexmls_connect__sr_details_buttons button,
html body .flexmls_connect__ld_button_group button,
html body .flexmls_connect__photo_pager button,
html body .flexmls_connect__photo_switcher button,
html body .flexmls_connect__sr_pagination button,
html body .flexmls_connect__sr_pagination .flexmls_connect__button {
    background-image: none;
    background-color: #004982;
    color: #fff;
    border: 0;
    text-shadow: none;
    transition: background-color 0.2s ease;
}

/* Secondary actions: Ask Question / Ask A Question / Schedule A Showing */
html body .flexmls_connect__ld_button_group button:nth-of-type(n+2),
html body .flexmls_connect__sr_details_buttons button:nth-of-type(2) {
    background-color: #0073b7;
}

html body .flexmls_connect__button:not(.portal-button-secondary):hover,
html body .flexmls_connect__page_content button:not(.portal-button-secondary):hover,
html body .flexmls_connect__sr_detail button:hover,
html body .flexmls_connect__ld_button_group button:nth-of-type(n):hover,
html body .flexmls_connect__photo_pager button:hover,
html body .flexmls_connect__photo_switcher button:hover,
html body .flexmls_connect__sr_pagination .flexmls_connect__button:hover,
#wtp_idx_listings_summary .flexmls_connect__sr_details_buttons button:nth-of-type(n):hover,
.wtp-flexmls_connect__sr_result__wrap .flexmls_connect__sr_details_buttons button:nth-of-type(n):hover {
    background-image: none;
    background-color: #002448;
    color: #fff;
    text-decoration: none;
}

/* Top-bar Log In keeps its lighter blue hover from the rules above */
html body .xs-top-nav.wtp-mls-login-wrapper button.portal-button-primary:hover {
    background-color: #0073b7;
}

html body .flexmls_connect__button:focus-visible,
html body .flexmls_connect__page_content button:focus-visible,
html body .flexmls_connect__sr_detail button:focus-visible,
html body .flexmls_connect__sr_details_buttons button:focus-visible,
html body .flexmls_connect__ld_button_group button:focus-visible {
    outline: 2px solid #0090d8;
    outline-offset: 2px;
}
