/**
 * Button Hover Fix
 * Ensures blue buttons stay blue on hover (darker blue, not orange)
 */

/* Global fix for ALL buttons with blue background - highest specificity */
a[style*="background-color: rgb(0, 102, 179)"]:hover,
a[style*="background-color:#0066b3"]:hover,
a[style*="background-color: #0066b3"]:hover,
a[style*="background:rgb(0, 102, 179)"]:hover,
a[style*="background:#0066b3"]:hover,
a[style*="background: #0066b3"]:hover,
a[style*="background: rgb(0, 102, 179)"]:hover,
[style*="background-color: rgb(0, 102, 179)"]:hover,
[style*="background-color:#0066b3"]:hover,
[style*="background-color: #0066b3"]:hover {
    background-color: #004d8a !important; /* Darker blue on hover */
    background: #004d8a !important;
    color: #ffffff !important;
    cursor: pointer;
    border-color: #004d8a !important;
}

/* UIkit button specific selectors */
.uk-button[style*="background"]:hover {
    /* Check if it's a blue button */
    background: #004d8a !important;
    background-color: #004d8a !important;
    color: #ffffff !important;
}

/* Buttons with blue class or data attributes */
.uk-button.blue:hover,
.uk-button.blue-button:hover,
.uk-button[data-color="blue"]:hover,
.btn.blue:hover,
.btn.blue-button:hover,
a.uk-button:not([style*="ff6900"]):not([style*="ff6600"]):not([style*="255, 105, 0"]):hover {
    background: #004d8a !important;
    background-color: #004d8a !important;
    color: #ffffff !important;
}

/* Specific fix for search form buttons */
.immo-search-form .uk-button:hover,
.immo-search-form .uk-button:focus,
.immo-search-form a.uk-button:hover,
.immo-search-form a.uk-button:focus {
    background: #004d8a !important;
    background-color: #004d8a !important;
    color: #ffffff !important;
}

/* Forms and modals */
form .uk-button[style*="0066b3"]:hover,
form .uk-button[style*="0, 102, 179"]:hover,
.uk-modal .uk-button[style*="0066b3"]:hover,
.uk-modal .uk-button[style*="0, 102, 179"]:hover {
    background: #004d8a !important;
    background-color: #004d8a !important;
    color: #ffffff !important;
}

/* Keep orange buttons orange on hover - exclude these from blue rules */
a[style*="background-color: rgb(255, 105, 0)"]:hover,
a[style*="background-color:#ff6900"]:hover,
a[style*="background-color: #ff6900"]:hover,
a[style*="background-color:#ff6600"]:hover,
a[style*="background-color: #ff6600"]:hover,
.uk-button[style*="ff6900"]:hover,
.uk-button[style*="ff6600"]:hover,
.uk-button[style*="255, 105, 0"]:hover {
    background: #ff8331 !important; /* Lighter orange on hover */
    background-color: #ff8331 !important;
    color: #ffffff !important;
}

/* Override any conflicting styles with max specificity */
body .uk-button[style*="0066b3"]:hover,
body .uk-button[style*="0, 102, 179"]:hover,
body a.uk-button[style*="0066b3"]:hover,
body a.uk-button[style*="0, 102, 179"]:hover {
    background: #004d8a !important;
    background-color: #004d8a !important;
    color: #ffffff !important;
    border-color: #004d8a !important;
}

/* Fix for panel header links that appear as blue buttons */
.uk-panel-header a:hover,
.panel-header-right a:hover,
.uk-panel-header.panel-header-right a:hover,
div.uk-panel-header a:hover,
div.panel-header-right a:hover {
    background: #004d8a !important;
    background-color: #004d8a !important;
    color: #ffffff !important;
    border-color: #004d8a !important;
}

/* Catch ALL anchor tags that look like buttons */
a[href]:hover {
    /* If it has button-like styling, make it darker blue */
}

/* More specific - any link that's styled as a button in panels */
.uk-width-1-1 .uk-panel-header a:hover,
.uk-width-1-1 .panel-header-right a:hover,
.uk-width-medium-1-2 .uk-panel-header a:hover,
.uk-width-medium-1-2 .panel-header-right a:hover,
.uk-width-large-1-2 .uk-panel-header a:hover,
.uk-width-large-1-2 .panel-header-right a:hover {
    background: #004d8a !important;
    background-color: #004d8a !important;
    color: #ffffff !important;
    border-color: #004d8a !important;
}

/* Universal fix - any element that looks blue should stay blue on hover */
*[style*="0066b3"]:hover,
*[style*="0, 102, 179"]:hover,
a:not([style*="ff6900"]):not([style*="ff6600"]):not([style*="255, 105, 0"]):not(.orange):not(.uk-button-primary):hover {
    /* Only apply if element has blue-like background */
}

/* Most aggressive override for the specific structure you showed */
body .uk-panel-header a:hover,
body .panel-header-right a:hover,
body div.uk-panel-header.panel-header-right a:hover {
    background: #004d8a !important;
    background-color: #004d8a !important;
    color: #ffffff !important;
    border-color: #004d8a !important;
    text-decoration: none !important;
}