/* assets/css/cerca.css - Ricerca directory professionisti */
.ec-cerca { max-width: 860px; margin: 0 auto; padding: 24px 16px; }
.ec-cerca-title { margin: 0 0 18px; font-size: 1.6rem; }

.ec-search-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ec-search-field {
    flex: 1; min-width: 160px;
    padding: 10px 12px; border: 1px solid #d8d4cc; border-radius: 8px;
    font-size: 1rem; background: #fdfdfc; font-family: inherit;
}
.ec-search-field:focus { outline: none; border-color: #1f5fbf; box-shadow: 0 0 0 3px rgba(31,95,191,.12); }
.ec-search-bar .ec-btn { flex: 0 0 auto; }
.ec-btn { padding: 11px 20px; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; }
.ec-btn-primary { background: #1f5fbf; color: #fff; font-weight: 600; }
.ec-btn-primary:hover { background: #1a52a5; }
.ec-btn:disabled { opacity: .6; cursor: default; }

.ec-cerca-status { color: #6b6b6b; font-size: .92rem; margin-bottom: 12px; }

.ec-cerca-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ec-card {
    display: block; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid #e5e2dc; border-radius: 12px;
    padding: 16px; transition: box-shadow .15s, border-color .15s;
}
.ec-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); border-color: #cfe0ff; }
.ec-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ec-card-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
    background: #1f5fbf; color: #fff; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.ec-card-nome { font-weight: 600; }
.ec-card-rating { color: #6b6b6b; font-size: .85rem; }
.ec-card-badges { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.ec-badge { font-size: .72rem; padding: 2px 7px; border-radius: 999px; }
.ec-badge-ok { background: #eef7ee; color: #276b2b; }
.ec-badge-premium { background: #fff4e0; color: #9a6b1a; }

@media (max-width: 520px) { .ec-search-field { min-width: 100%; } }