/* Contenidor de l'element al menú */
.rh-menu-search-item {
    position: relative !important;
    display: flex;
    align-items: center;
}

/* Enllaç de la icona (Lupa) */
.rh-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: #ffffff;
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

.rh-search-toggle:hover {
    color: #b81d24; /* Vermell corporatiu Ràdio Hostafrancs */
}

.rh-search-toggle .rh-icon {
    transition: transform 0.25s ease, stroke 0.2s ease;
}

/* Gir de la icona en obrir */
.rh-search-toggle .rh-icon.open {
    transform: rotate(90deg);
    stroke: #b81d24;
}

/* Caixa desplegable per sota del menú */
.rh-search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 300px;
    background-color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    border-top: 3px solid #b81d24; /* Línia superior d'accent */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
}

/* Fleca superior d'unió amb el menú */
.rh-search-dropdown::before {
    content: '';
    position: absolute;
    top: -9px;
    right: 15px;
    border-width: 0 7px 6px 7px;
    border-style: solid;
    border-color: transparent transparent #b81d24 transparent;
}

/* Formulari de cerca intern */
.rh-search-dropdown form {
    display: flex;
    gap: 6px;
    margin: 0;
}

/* Camp de text */
.rh-search-dropdown input[type="search"],
.rh-search-dropdown .search-field {
    flex: 1;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 14px;
    color: #222222;
    background-color: #f9f9f9;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rh-search-dropdown input[type="search"]:focus,
.rh-search-dropdown .search-field:focus {
    border-color: #b81d24;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(184, 29, 36, 0.15);
}

/* Botó d'enviament */
.rh-search-dropdown input[type="submit"],
.rh-search-dropdown .search-submit,
.rh-search-dropdown button[type="submit"] {
    padding: 8px 14px;
    background-color: #b81d24;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rh-search-dropdown input[type="submit"]:hover,
.rh-search-dropdown .search-submit:hover,
.rh-search-dropdown button[type="submit"]:hover {
    background-color: #8e141a; /* Vermell més fosc per a l'efecte hover */
}