/* ===========================
   School Picker (sp-*)
   Used in Jahrgangs-Login modal + registration step 3
   =========================== */

.sp-list {
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    max-height: 320px;
    overflow-y: auto;
}

/* Hide empty container before first PLZ search (avoids stray gray border) */
.sp-list:empty {
    display: none;
}

.sp-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.12s;
    outline: none;
}

.sp-row:hover,
.sp-row:focus {
    background: #f8f9fa;
}

.sp-row--selected {
    background: #e8f0fe;
}

.sp-row--selected:hover,
.sp-row--selected:focus {
    background: #dde7fd;
}

.sp-radio {
    flex-shrink: 0;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.12s;
}

.sp-row--selected .sp-radio {
    border-color: #0d6efd;
}

.sp-row--selected .sp-radio::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d6efd;
}

.sp-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp-name {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-subtitle {
    font-size: 12px;
    color: #6c757d;
    margin-top: 1px;
}

.sp-distance {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 2px;
}

.sp-sep {
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

.sp-empty,
.sp-loading,
.sp-error {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #6c757d;
}

.sp-error {
    color: #dc3545;
}

.sp-manual-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0 8px;
}

.sp-filter-wrap {
    margin-top: 6px;
}
