.search-breadcrumb {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}
.search-breadcrumb a { color: inherit; text-decoration: none; }
.search-breadcrumb span { margin: 0 0.4rem; }

.search-header h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.search-header__form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f5f5f7;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    max-width: 560px;
}
.search-header__form i { color: rgba(0,0,0,0.4); }
.search-header__form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
}
.search-header__form button {
    border: none;
    background: var(--bs-primary, #5b2ecb);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}
.search-header__summary {
    margin-top: 0.75rem;
    color: rgba(0,0,0,0.6);
    font-size: 0.95rem;
}

/* Filter pills — big enough for quick tapping between patients */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 2rem;
}
.search-filters a {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    background: #f1f1f4;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}
.search-filters a.active {
    background: var(--bs-primary, #5b2ecb);
    color: #fff;
}
.search-filters .count {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

/* Result rows — designed for fast vertical scanning */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.search-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.search-result:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
}
.search-result__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.search-result__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #999;
    font-size: 1.4rem;
}
.search-result__icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f1f1f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
}
.search-result__content {
    flex: 1;
    min-width: 0;
}
.search-result__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    background: #f1f1f4;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}
.search-result__badge--doctor {
    background: #e8f0fe;
    color: #1a56db;
}
.search-result__content h4 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}
.search-result__meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-result__arrow {
    color: rgba(0,0,0,0.25);
    flex-shrink: 0;
}

/* Empty state */
.search-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}
.search-empty-state i {
    font-size: 2rem;
    color: rgba(0,0,0,0.2);
    margin-bottom: 0.75rem;
}
.search-empty-state p {
    margin: 0.25rem 0;
    color: rgba(0,0,0,0.6);
}
.search-empty-state__hint a {
    color: var(--bs-primary, #5b2ecb);
}

/* Mobile: bigger tap targets, since this may be used one-handed between patients */
@media (max-width: 576px) {
    .search-result {
        padding: 0.85rem 1rem;
    }
    .search-filters a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}