/* ===========================================
   HOMY SEARCH - RECHERCHES SAUVEGARDEES
   =========================================== */

/* Titre de section */
#homy-search-wrapper .homy-saved-searches-title {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--homy-blue, #3CB4E8);
    padding: 10px 24px 6px;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Item de recherche sauvegardee */
#homy-search-wrapper .homy-saved-search-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    position: relative !important;
}

#homy-search-wrapper .homy-saved-search-item:hover {
    background: var(--homy-gray, #F5F5F5) !important;
}

/* Info (nom + dates) */
#homy-search-wrapper .homy-saved-search-info {
    flex: 1 !important;
    min-width: 0 !important;
}

#homy-search-wrapper .homy-saved-search-name {
    font-family: 'Raleway', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--homy-dark, #011F28) !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#homy-search-wrapper .homy-saved-search-dates {
    font-family: 'Raleway', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--homy-dark, #011F28) !important;
    opacity: 0.55 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

#homy-search-wrapper .homy-saved-search-dates strong {
    font-weight: 500 !important;
}

/* Bouton menu 3-dots */
#homy-search-wrapper .homy-saved-search-menu {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    color: var(--homy-purple, #A17DB3) !important;
    border-radius: 50% !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

#homy-search-wrapper .homy-saved-search-menu:hover {
    background: rgba(161, 125, 179, 0.1) !important;
    color: var(--homy-primary, #2C192D) !important;
}

/* Menu de confirmation (supprimer) */
#homy-search-wrapper .homy-saved-search-confirm {
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    animation: homy-confirm-in 0.15s ease !important;
}

@keyframes homy-confirm-in {
    from { opacity: 0; transform: translateY(-50%) scale(0.95); }
    to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

#homy-search-wrapper .homy-saved-search-delete {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 16px !important;
    background: var(--homy-red, #DC2626) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
    transition: background 0.15s ease !important;
}

#homy-search-wrapper .homy-saved-search-delete:hover {
    background: #b91c1c !important;
}

/* ===========================================
   RESPONSIVE - MOBILE
   =========================================== */

@media (max-width: 768px) {
    #homy-search-wrapper .homy-saved-searches-title {
        font-size: 12px;
        padding: 8px 18px 4px;
    }

    #homy-search-wrapper .homy-saved-search-item {
        padding: 10px 18px !important;
        gap: 10px !important;
    }

    #homy-search-wrapper .homy-saved-search-name {
        font-size: 14px !important;
    }

    #homy-search-wrapper .homy-saved-search-dates {
        font-size: 12px !important;
    }

    #homy-search-wrapper .homy-saved-search-confirm {
        right: 18px !important;
    }
}

/* ===========================================
   DROPDOWN - max-height augmente si saved searches
   =========================================== */

#homy-search-wrapper .homy-search-dropdown {
    max-height: 420px !important;
}